@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
19 lines (18 loc) • 1.01 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { HeadingLevel, PropAlert, PropAlertType, PropAlertVariant, PropHasCloser, PropLabel } from '../props';
import type { EventCallback } from '../types';
export type KoliBriAlertEventCallbacks = {
onClose?: EventCallback<Event>;
};
type RequiredAlertProps = NonNullable<unknown>;
type OptionalAlertProps = {
level: HeadingLevel;
on: KoliBriAlertEventCallbacks;
} & PropLabel & PropAlert & PropHasCloser & PropAlertType & PropAlertVariant;
type RequiredAlertStates = RequiredAlertProps;
type OptionalAlertStates = OptionalAlertProps;
export type InternalAlertProps = RequiredAlertProps & OptionalAlertProps;
export type AlertProps = Generic.Element.Members<RequiredAlertProps, OptionalAlertProps>;
export type AlertStates = Generic.Element.Members<RequiredAlertStates, OptionalAlertStates>;
export type AlertAPI = Generic.Element.ComponentApi<RequiredAlertProps, OptionalAlertProps, RequiredAlertStates, OptionalAlertStates>;
export {};