import React$1 from "react"; import { JBModalCloseEvent, JBModalEventType, JBModalWebComponent } from "jb-modal"; import { JBElementStandardProps } from "jb-core/react"; //#region modules/jb-modal/react/lib/events-hook.d.ts type EventProps = { /** * when component loaded, in most cases component is already loaded before react mount so you dont need this but if you load web-component dynamically with lazy load it will be called after react mount */ onLoad?: (e: JBModalEventType) => void; /** * when all property set and ready to use, in most cases component is already loaded before react mount so you dont need this but if you load web-component dynamically with lazy load it will be called after react mount */ onInit?: (e: JBModalEventType) => void; onClose?: (e: JBModalEventType) => void; /** * when modal opened automatically by url hash (when element have id and url has #id) use this to update open state in parent component */ onUrlOpen?: (e: JBModalEventType) => void; }; //#endregion //#region modules/jb-modal/react/lib/module-declaration.d.ts declare module "react" { namespace JSX { interface IntrinsicElements { "jb-modal": JBModalType; } interface JBModalType extends React.DetailedHTMLProps, JBModalWebComponent> { label?: string; description?: string; autoCloseOnBackgroundClick?: boolean; autoCloseOnEscape?: boolean; "is-open"?: boolean | "true" | "false"; } } } //#endregion //#region modules/jb-modal/react/lib/JBModal.d.ts export declare const JBModal: React$1.ForwardRefExoticComponent & React$1.RefAttributes>; type ModalProps = EventProps & React$1.PropsWithChildren<{ isOpen?: boolean; /** Automatically close after an uncanceled backdrop close request. Defaults to false. */ autoCloseOnBackgroundClick?: boolean; /** Automatically close after an uncanceled Escape close request. Defaults to true. */ autoCloseOnEscape?: boolean; /** Accessible name announced for the modal dialog. */ label?: string; /** Additional accessible description announced for the modal dialog. */ description?: string; }>; export type Props = ModalProps & JBElementStandardProps; //#endregion