UNPKG

melt

Version:

The next generation of Melt UI. Built for Svelte 5.

19 lines (18 loc) 788 B
/** * For some god-forsaken stupid reason, hidePopover throws an error * if the element is already hidden, and then breaks the entire app. * This avoids that. */ export declare function safelyHidePopover(el: HTMLElement): void; /** * showPopover is equally stupid. */ export declare function safelyShowPopover(el: HTMLElement): void; export declare function getParentPopoversAndDialogs(element: HTMLElement): Generator<HTMLElement | HTMLDialogElement>; export declare function areAllParentPopoversAndDialogsOpen(element: HTMLElement): boolean; export declare function isDialogOrPopoverOpen(element: HTMLElement): boolean; type AutoOpenPopoverArgs = { el: HTMLElement; }; export declare function autoOpenPopover({ el }: AutoOpenPopoverArgs): (() => void) | undefined; export {};