import { SvelteComponent, Snippet } from 'svelte'; import { HTMLAttributes } from 'svelte/elements'; export interface Props { class?: string; /** * Component's HTML Element * * @default 'div' */ component?: string | typeof SvelteComponent; /** * Object with Tailwind CSS colors classes * */ colors?: { /** * Dialog bg color in iOS theme * * @default 'bg-ios-light-glass dark:bg-ios-dark-glass' */ bgIos?: string; /** * Dialog bg color in iOS theme * * @default 'bg-md-light-surface-3 dark:bg-md-dark-surface-3' */ bgMaterial?: string; /** * Title text color in iOS theme * * @default '' */ titleIos?: string; /** * Title text color in Material theme * * @default 'text-md-light-on-surface dark:text-md-dark-on-surface' */ titleMaterial?: string; /** * Content text color in iOS theme * * @default '' */ contentTextIos?: string; /** * Content text color in Material theme * * @default 'text-md-light-on-surface-variant dark:text-md-dark-on-surface-variant' */ contentTextMaterial?: string; }; /** * Tailwind CSS classes for title font size iOS theme * * @default 'text-[17px]' * */ titleFontSizeIos?: string; /** * Tailwind CSS classes for title font size Material theme * * @default 'text-[24px]' * */ titleFontSizeMaterial?: string; /** * Dialog title content */ title?: Snippet | string; /** * Dialog main content */ content?: Snippet | string; /** * Dialog buttons content */ buttons?: Snippet | string; /** * Allows to open/close Popup and set its initial state * * @default false */ opened?: boolean; /** * Enables Popup backdrop (dark semi transparent layer behind) * * @default true */ backdrop?: boolean; /** * Click handler on backdrop element */ onBackdropClick?: (e: any) => void; } interface DialogProps {} interface DialogProps extends Props {} interface DialogEvents extends Record<'',{}>{} declare class Dialog extends SvelteComponent< DialogProps & Omit, keyof Props>, DialogEvents, { } > {} export default Dialog;