| 28 | } |
| 29 | |
| 30 | class Modal extends Component { |
| 31 | static setAppElement(element) { |
| 32 | ariaAppHider.setElement(element); |
| 33 | } |
| 34 | |
| 35 | /* eslint-disable react/no-unused-prop-types */ |
| 36 | static propTypes = { |
| 37 | isOpen: PropTypes.bool.isRequired, |
| 38 | style: PropTypes.shape({ |
| 39 | content: PropTypes.object, |
| 40 | overlay: PropTypes.object |
| 41 | }), |
| 42 | portalClassName: PropTypes.string, |
| 43 | bodyOpenClassName: PropTypes.string, |
| 44 | htmlOpenClassName: PropTypes.string, |
| 45 | className: PropTypes.oneOfType([ |
| 46 | PropTypes.string, |
| 47 | PropTypes.shape({ |
| 48 | base: PropTypes.string.isRequired, |
| 49 | afterOpen: PropTypes.string.isRequired, |
| 50 | beforeClose: PropTypes.string.isRequired |
| 51 | }) |
| 52 | ]), |
| 53 | overlayClassName: PropTypes.oneOfType([ |
| 54 | PropTypes.string, |
| 55 | PropTypes.shape({ |
| 56 | base: PropTypes.string.isRequired, |
| 57 | afterOpen: PropTypes.string.isRequired, |
| 58 | beforeClose: PropTypes.string.isRequired |
| 59 | }) |
| 60 | ]), |
| 61 | appElement: PropTypes.oneOfType([ |
| 62 | PropTypes.instanceOf(SafeHTMLElement), |
| 63 | PropTypes.instanceOf(SafeHTMLCollection), |
| 64 | PropTypes.instanceOf(SafeNodeList), |
| 65 | PropTypes.arrayOf(PropTypes.instanceOf(SafeHTMLElement)) |
| 66 | ]), |
| 67 | onAfterOpen: PropTypes.func, |
| 68 | onRequestClose: PropTypes.func, |
| 69 | closeTimeoutMS: PropTypes.number, |
| 70 | ariaHideApp: PropTypes.bool, |
| 71 | shouldFocusAfterRender: PropTypes.bool, |
| 72 | shouldCloseOnOverlayClick: PropTypes.bool, |
| 73 | shouldReturnFocusAfterClose: PropTypes.bool, |
| 74 | preventScroll: PropTypes.bool, |
| 75 | parentSelector: PropTypes.func, |
| 76 | aria: PropTypes.object, |
| 77 | data: PropTypes.object, |
| 78 | role: PropTypes.string, |
| 79 | contentLabel: PropTypes.string, |
| 80 | shouldCloseOnEsc: PropTypes.bool, |
| 81 | overlayRef: PropTypes.func, |
| 82 | contentRef: PropTypes.func, |
| 83 | id: PropTypes.string, |
| 84 | overlayElement: PropTypes.func, |
| 85 | contentElement: PropTypes.func |
| 86 | }; |
| 87 | /* eslint-enable react/no-unused-prop-types */ |
nothing calls this directly
no test coverage detected
searching dependent graphs…