1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport Image from './Image';\nvar propTypes = {\n /**\n * @default 'img'\n */\n bsPrefix: PropTypes.string,\n\n /**\n * Sets image as fluid image.\n */\n fluid: PropTypes.bool,\n\n /**\n * Sets image shape as rounded.\n */\n rounded: PropTypes.bool,\n\n /**\n * Sets image shape as circle.\n */\n roundedCircle: PropTypes.bool,\n\n /**\n * Sets image shape as thumbnail.\n */\n thumbnail: PropTypes.bool\n};\nvar defaultProps = {\n fluid: true\n};\nvar FigureImage = React.forwardRef(function (_ref, ref) {\n var className = _ref.className,\n props = _objectWithoutPropertiesLoose(_ref, [\"className\"]);\n\n return React.createElement(Image, _extends({\n ref: ref\n }, props, {\n className: classNames(className, 'figure-img')\n }));\n});\nFigureImage.displayName = 'FigureImage';\nFigureImage.propTypes = propTypes;\nFigureImage.defaultProps = defaultProps;\nexport default FigureImage;","map":null,"metadata":{},"sourceType":"module"} |