UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

20 lines (19 loc) 788 B
import type { Generic } from 'adopted-style-sheets'; import type { PropLabel } from '../props'; import type { PropDialogVariant } from '../props/variant/dialog'; import type { KoliBriModalEventCallbacks } from '../types'; type RequiredProps = PropLabel; type OptionalProps = { on: KoliBriModalEventCallbacks; width: string; } & PropDialogVariant; type RequiredStates = { width: string; } & PropLabel; type OptionalStates = { on: KoliBriModalEventCallbacks; } & PropDialogVariant; export type DialogProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type DialogStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type DialogAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};