UNPKG

@gez/date-time-kit

Version:

11 lines (10 loc) 912 B
import { type Attrs as PopoverAttrs, Ele as PopoverEle } from '.'; import type { BaseAttrs } from '../web-component-base'; export type reExportPopoverAttrs = { [K in `pop-${Exclude<keyof PopoverAttrs, keyof BaseAttrs>}`]?: K extends `pop-${infer U}` ? U extends keyof PopoverAttrs ? PopoverAttrs[U] : never : never; }; export declare const popoverAttrKeys: readonly ["pop-disabled", "pop-open", "pop-placement", "pop-strategy", "pop-offset"]; export declare const isPopoverAttrKey: (name: string) => name is (typeof popoverAttrKeys)[number]; export declare const parentPopAttrSync2PopEle: (name: string, oldValue: string | null, newValue: string | null, popEle: PopoverEle) => name is (typeof popoverAttrKeys)[number]; export declare const popEleAttrSync2Parent: (parent: HTMLElement, popEle: PopoverEle) => void; export declare const clearupPopEleAttrSync2Parent: (parent: HTMLElement) => void | undefined;