@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
21 lines (20 loc) • 757 B
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { PropLabel } from '../props';
import type { KoliBriModalEventCallbacks } from '../types';
type RequiredProps = PropLabel;
type OptionalProps = {
activeElement: HTMLElement | null;
on: KoliBriModalEventCallbacks;
width: string;
};
type RequiredStates = {
activeElement: HTMLElement | null;
width: string;
} & PropLabel;
type OptionalStates = {
on: KoliBriModalEventCallbacks;
};
export type ModalProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type ModalStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type ModalAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};