import { ReactNode } from 'react'; import { DrawerVariant } from './DrawerVariant'; /** * Props for the StaffbaseDrawer component. * * Note: drawer content is only mounted in the portal while the drawer is open * (status !== CLOSED) and unmounted once fully closed, so there is no separate * "lazy render" toggle. * @interface StaffbaseDrawerProps * @property {ReactNode} children - The content to render inside the drawer. * @property {string} [closeLabel] - Accessible label for the close button (i18n). Defaults to 'Close drawer'. * @property {() => void} onClose - The function to execute when closing the drawer. * @property {() => void} onClosed - Optional callback when drawer is fully closed. * @property {boolean} open - Whether the drawer is open or not. * @property {string | HTMLElement | ShadowRoot | null} portalContainer - Where the drawer portal should mount. * Can be a CSS selector string (defaults to `document.body`), an `HTMLElement`, or a `ShadowRoot`. * @property {string} [title] - Accessible name for the dialog (i18n). Defaults to 'Drawer'. * @property {DrawerVariant} [variant] - 'drawer' (default) or 'modal'. Modal renders centered with overlay; drawer slides in from right. * @property {string} [modalWidth] - When variant is 'modal', the panel width (e.g. '90vw', 'min(720px, 90vw)'). * Defaults to min(720px, 90vw) when omitted. */ export interface StaffbaseDrawerProps { children?: ReactNode; closeLabel?: string; hideCloseButton?: boolean; hideTitle?: boolean; modalWidth?: string; onClose: () => void; onClosed?: () => void; open: boolean; portalContainer?: string | HTMLElement | ShadowRoot | null; title?: string; variant?: DrawerVariant; } //# sourceMappingURL=StaffbaseDrawerProps.d.ts.map