UNPKG

@public-ui/components

Version:

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

26 lines (25 loc) 1.04 kB
import type { Generic } from 'adopted-style-sheets'; import type { ColorPair, PropColor, PropLabel } from '../props'; import type { KoliBriIconsProp, Stringified } from '../types'; import type { ButtonProps } from './button'; type RequiredProps = PropLabel; type OptionalProps = { icons: Stringified<KoliBriIconsProp>; color: Stringified<PropColor>; smartButton: Stringified<ButtonProps>; }; type RequiredStates = { color: ColorPair; }; type OptionalStates = { icons: KoliBriIconsProp; smartButton: ButtonProps; }; type RequiredWatchers = RequiredStates; type OptionalWatchers = OptionalStates; export type BadgeProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type BadgeStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type BadgeAPI = Generic.Element.Component & Generic.Element.Members<RequiredProps, OptionalProps> & Generic.Element.Watchers<RequiredWatchers, OptionalWatchers> & { readonly state: Generic.Element.Members<RequiredStates, OptionalStates>; }; export {};