1 | import React from 'react';
|
2 | import { BaseModalProps } from 'react-overlays/Modal';
|
3 | import ModalBody from './ModalBody';
|
4 | import ModalDialog from './ModalDialog';
|
5 | import ModalFooter from './ModalFooter';
|
6 | import ModalHeader from './ModalHeader';
|
7 | import ModalTitle from './ModalTitle';
|
8 | import { BsPrefixRefForwardingComponent } from './helpers';
|
9 | export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdropTransition' | 'children'> {
|
10 | size?: 'sm' | 'lg' | 'xl';
|
11 | bsPrefix?: string;
|
12 | centered?: boolean;
|
13 | backdropClassName?: string;
|
14 | animation?: boolean;
|
15 | dialogClassName?: string;
|
16 | contentClassName?: string;
|
17 | dialogAs?: React.ElementType;
|
18 | scrollable?: boolean;
|
19 | [other: string]: any;
|
20 | }
|
21 | declare type Modal = BsPrefixRefForwardingComponent<'div', ModalProps> & {
|
22 | Body: typeof ModalBody;
|
23 | Header: typeof ModalHeader;
|
24 | Title: typeof ModalTitle;
|
25 | Footer: typeof ModalFooter;
|
26 | Dialog: typeof ModalDialog;
|
27 | TRANSITION_DURATION: number;
|
28 | BACKDROP_TRANSITION_DURATION: number;
|
29 | };
|
30 | declare const Modal: Modal;
|
31 | export default Modal;
|