Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/a20607f74f0b03d9ccda89904745e5f7.json
2020-12-22 09:59:14 -05:00

1 line
1.9 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _objectSpread2 from \"@babel/runtime/helpers/esm/objectSpread\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nimport Fade from './Fade';\nvar propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n fade: PropTypes.bool,\n isOpen: PropTypes.bool,\n tag: tagPropType,\n transition: PropTypes.shape(Fade.propTypes),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n};\nvar defaultProps = {\n isOpen: true,\n tag: 'div',\n fade: true,\n transition: _objectSpread2({}, Fade.defaultProps, {\n unmountOnExit: true\n })\n};\n\nfunction Toast(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n isOpen = props.isOpen,\n children = props.children,\n transition = props.transition,\n fade = props.fade,\n innerRef = props.innerRef,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tag\", \"isOpen\", \"children\", \"transition\", \"fade\", \"innerRef\"]);\n\n var classes = mapToCssModules(classNames(className, 'toast'), cssModule);\n\n var toastTransition = _objectSpread2({}, Fade.defaultProps, {}, transition, {\n baseClass: fade ? transition.baseClass : '',\n timeout: fade ? transition.timeout : 0\n });\n\n return React.createElement(Fade, _extends({}, attributes, toastTransition, {\n tag: Tag,\n className: classes,\n in: isOpen,\n role: \"alert\",\n innerRef: innerRef\n }), children);\n}\n\nToast.propTypes = propTypes;\nToast.defaultProps = defaultProps;\nexport default Toast;","map":null,"metadata":{},"sourceType":"module"}