Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Modal.defaultProps = {
bodyOpenClassName: 'modal-open',
role: 'dialog',
title: null,
focusOnMount: true,
shouldCloseOnEsc: true,
shouldCloseOnClickOutside: true,
isDismissible: true,
/* accessibility */
aria: {
labelledby: null,
describedby: null,
},
};
export default withInstanceId( Modal );
onChange={ value => setAttributes( { defaultValue: value } ) }
/>
setAttributes( { id: value } ) }
/>
}
/>
);
};
export default withInstanceId( JetpackFieldCheckbox );
setAttributes( {
height: spacerHeight,
} );
} }
value={ inputHeightValue }
min="20"
step="10"
/>
);
};
export default withInstanceId( SpacerEdit );
/>
);
}
FontFamilyPicker.propTypes = {
value: PropTypes.string,
fonts: PropTypes.arrayOf( PropTypes.shape( {
value: PropTypes.string,
label: PropTypes.string,
} ) ),
onChange: PropTypes.func,
instanceId: PropTypes.number.isRequired,
};
export default withInstanceId( FontFamilyPicker );
/>
);
};
EntityListFilterBar.propTypes = {
listId: PropTypes.string.isRequired,
defaultView: PropTypes.string,
defaultPerPage: PropTypes.oneOfType( [
PropTypes.string,
PropTypes.number,
] ),
entityFilters: PropTypes.object,
};
export default withInstanceId( EntityListFilterBar );
classes: PropTypes.shape( {
tableClass: PropTypes.string,
headerClass: PropTypes.string,
headerRowClass: PropTypes.string,
headerThClass: PropTypes.string,
bodyClass: PropTypes.string,
bodyRowClass: PropTypes.string,
bodyThClass: PropTypes.string,
bodyTdClass: PropTypes.string,
footerClass: PropTypes.string,
footerRowClass: PropTypes.string,
footerThClass: PropTypes.string,
} ),
};
export default withInstanceId( ResponsiveTable );
/>
<button disabled="{" type="submit">
{ _x( 'Import', 'button label' ) }
</button>
);
}
}
export default withInstanceId( ImportForm );
label={ labels[ screen ] }
/>
)
} )
}
)
}
}
ResponsiveToggle.defaultProps = {
screens: [ 'desktop' ],
onChangeScreen: () => {},
}
export default withInstanceId( ResponsiveToggle )
defaultLocked: true,
top: '',
right: '',
bottom: '',
left: '',
units: [ 'px' ],
unit: 'px',
onChangeUnit: () => {},
screens: [ 'desktop' ],
enableTop: true,
enableRight: true,
enableBottom: true,
enableLeft: true,
}
export default withInstanceId( FourNumberControl )
aria-expanded={ isOpen }
aria-live="polite"
isLink
>
) }
renderContent={ () => }
/>
);
}
export default withInstanceId( PostSchedule );