UNPKG

@team-lodestone/lodestone-ui

Version:

Library of UI components used by Project Lodestone.

41 lines (40 loc) 1.58 kB
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> { new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings; } & Exports; (internal: unknown, props: Props & { $$events?: Events; $$slots?: Slots; }): Exports & { $set?: any; $on?: any; }; z_$$bindings?: Bindings; } type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends { default: any; } ? Props extends Record<string, never> ? any : { children?: any; } : {}); declare const Dialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{ /** Whether the dialog is visible and should render */ visible?: boolean; /** Image to show in the background of the dialog header */ image?: string; /** Title of the dialog (not HTML title) */ title: string; /** Calls this function when the dialog is closed */ onClose?: () => void; /** Does not make the dialog fullscreen when mobile */ noMobileUi?: boolean; closeDialog?: () => void; showDialog?: () => void; toggleVisibility?: () => void; }, { default: {}; }>, { [evt: string]: CustomEvent<any>; }, { default: {}; }, { closeDialog: () => void; showDialog: () => void; toggleVisibility: () => void; }, string>; type Dialog = InstanceType<typeof Dialog>; export default Dialog;