Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {forwardRef} from 'react'
import PropTypes from 'prop-types'
import MoleculeModalContent from './Content/index.js'
import MoleculeModalFooter from './Footer/index.js'
import {MODAL_SIZES} from './config.js'
import MoleculeModal from './MoleculeModal.js'
import MoleculeModalWithoutAnimation from './MoleculeModalWithoutAnimation.js'
import MoleculeModalWithURLState from './MoleculeModalWithURLState.js'
const MoleculeModalWithAnimation = forwardRef(({onClose, onAnimationEnd, ...rest}, ref) => {
return <MoleculeModal ref={ref} onAnimationEnd={onAnimationEnd} onClose={onClose} {...rest} />
})
MoleculeModalWithAnimation.displayName = `(${MoleculeModal.displayName})WithAnimation`
MoleculeModalWithAnimation.contextTypes = MoleculeModal.contextTypes
MoleculeModalWithAnimation.propTypes = {
onClose: PropTypes.func,
onAnimationEnd: PropTypes.func
}
MoleculeModalWithAnimation.displayName = 'MoleculeModal'
MoleculeModalWithAnimation.Content = MoleculeModalContent
MoleculeModalWithAnimation.Footer = MoleculeModalFooter
MoleculeModal.Content = MoleculeModalContent
MoleculeModal.Footer = MoleculeModalFooter
export {
MODAL_SIZES as MoleculeModalSizes,
MODAL_SIZES as moleculeModalSizes,
MODAL_SIZES,
MoleculeModal,
MoleculeModalContent,
MoleculeModalFooter,
MoleculeModalWithURLState,
MoleculeModalWithURLState as MoleculeModalWithUrlState,
MoleculeModalWithAnimation,
MoleculeModalWithoutAnimation
}
export default MoleculeModal
|