UNPKG

@coreui/react

Version:

UI Components Library for React.js

72 lines (68 loc) 1.76 kB
'use strict'; var PropTypes = require('prop-types'); var colorPropType = PropTypes.oneOfType([ PropTypes.oneOf([ 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', ]), PropTypes.string, ]); var fallbackPlacementsPropType = PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.oneOf(['top', 'bottom', 'right', 'left']).isRequired), PropTypes.oneOf(['top', 'bottom', 'right', 'left']), ]); var placementPropType = PropTypes.oneOf([ 'auto', 'auto-start', 'auto-end', 'top-end', 'top', 'top-start', 'bottom-end', 'bottom', 'bottom-start', 'right-start', 'right', 'right-end', 'left-start', 'left', 'left-end', ]); var shapePropType = PropTypes.oneOfType([ PropTypes.oneOf([ 'rounded', 'rounded-top', 'rounded-end', 'rounded-bottom', 'rounded-start', 'rounded-circle', 'rounded-pill', 'rounded-0', 'rounded-1', 'rounded-2', 'rounded-3', ]), PropTypes.string, ]); var textColorsPropType = PropTypes.oneOfType([ colorPropType, PropTypes.oneOf(['white', 'muted']), PropTypes.string, ]); var triggerPropType = PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.oneOf(['hover', 'focus', 'click']).isRequired), PropTypes.oneOf(['hover', 'focus', 'click']), ]); exports.colorPropType = colorPropType; exports.fallbackPlacementsPropType = fallbackPlacementsPropType; exports.placementPropType = placementPropType; exports.shapePropType = shapePropType; exports.textColorsPropType = textColorsPropType; exports.triggerPropType = triggerPropType; //# sourceMappingURL=props.js.map