UNPKG

631 BTypeScriptView Raw
1declare const _default: {
2 /**
3 * Return the modals array
4 */
5 modals: () => {
6 element: HTMLDivElement;
7 blockScroll: boolean;
8 }[];
9 /**
10 * Register a new modal
11 */
12 add: (newModal: HTMLDivElement, blockScroll: boolean) => void;
13 /**
14 * Remove a modal
15 */
16 remove: (oldModal: HTMLDivElement) => void;
17 /**
18 * Check if the modal is the first one on the screen
19 */
20 isTopModal: (modal: HTMLDivElement) => boolean;
21};
22/**
23 * Handle the order of the modals.
24 * Inspired by the material-ui implementation.
25 */
26export default _default;