UNPKG

smart-react-components

Version:

React UI library, wide variety of editable ready to use Styled and React components.

19 lines (14 loc) 1.15 kB
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var index = require('./index-6d498b59.js'); var theme = require('./theme.js'); var React = require('react'); var React__default = _interopDefault(React); var index$2 = require('./modal/index.js'); const OVERLAY_PROPS = { background: theme.default.isMobile }; const Popup = ({ children, modalElementProps = index.DV.JSX_ELEMENT_PROPS, overlayProps = OVERLAY_PROPS, status, setStatus, beforeOpen, beforeClose, afterOpen, afterClose, transitionClassName, transitionType, transitionDuration, showAnimation, hideAnimation }) => { return (React__default.createElement(index$2, { modalElementProps: modalElementProps, overlayProps: overlayProps, overlayClick: false, status: status, setStatus: setStatus, beforeOpen: beforeOpen, beforeClose: beforeClose, afterOpen: afterOpen, afterClose: afterClose, transitionClassName: transitionClassName, transitionType: transitionType, transitionDuration: transitionDuration, showAnimation: showAnimation, hideAnimation: hideAnimation }, children)); }; exports.PopUp = Popup;