Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/0d3692ba227c8e48987b24e161b...

1 line
1.6 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nimport InputGroupText from './InputGroupText';\nvar propTypes = {\n tag: tagPropType,\n addonType: PropTypes.oneOf(['prepend', 'append']).isRequired,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'div'\n};\n\nvar InputGroupAddon = function InputGroupAddon(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n addonType = props.addonType,\n children = props.children,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tag\", \"addonType\", \"children\"]);\n\n var classes = mapToCssModules(classNames(className, 'input-group-' + addonType), cssModule); // Convenience to assist with transition\n\n if (typeof children === 'string') {\n return React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }), React.createElement(InputGroupText, {\n children: children\n }));\n }\n\n return React.createElement(Tag, _extends({}, attributes, {\n className: classes,\n children: children\n }));\n};\n\nInputGroupAddon.propTypes = propTypes;\nInputGroupAddon.defaultProps = defaultProps;\nexport default InputGroupAddon;","map":null,"metadata":{},"sourceType":"module"}