import React from 'react'; import { CloseOrigin } from '../BaseDialog'; interface PanelProps { /** * The content of the dialog to render */ children: React.ReactNode; /** * When true the closeButton will be disabled */ closeButtonDisabled?: boolean; /** * When true, the close button in the top right corner will not be shown */ hideCloseButton?: boolean; /** * Whether to hide or show the Panel */ isOpen: boolean; /** * function that is executed immediately after opening the modal */ onAfterOpen?: () => void; /** * This function is called whenever the user requests to close the Panel. It * is the responsibility of the application to handle this correctly and set * isOpen to false. This function will be called with an origin string that * specifies how the user requested to close the modal. */ onClose: (origin: CloseOrigin) => void; /** * The side of the screen to display the Panel on. */ position?: 'left' | 'right'; /** * When true (default), the Panel will close when the Esc key is pressed. */ shouldCloseOnEsc?: boolean; /** * When true (default), the Panel will close when the bckground overlay is * clicked. */ shouldCloseOnOverlayClick?: boolean; /** * Forces a specific width */ width?: string; } declare const Panel: { ({ children, closeButtonDisabled, hideCloseButton, isOpen, onAfterOpen, onClose, position, shouldCloseOnEsc, shouldCloseOnOverlayClick, width, }: PanelProps): React.ReactElement; Header: ({ children }: import("../shared/Header").HeaderProps) => React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>; Body: ({ children }: import("../shared/Body").BodyProps) => React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>; Footer: { ({ children }: import("../shared/Footer").FooterProps): React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>; propTypes: { children: import("prop-types").Requireable; }; /** * Whether to hide or show the Panel */ }; }; export default Panel;