@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
27 lines (26 loc) • 1.56 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { MsgPropType, PropAccessKey, PropDisabled, PropHideLabel, PropHideMsg, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropRequired, PropShortKey, PropSuggestions, PropSyncValueBySelector, PropTouched } from '../props';
import type { InputTypeOnDefault, KoliBriHIcons, Stringified, W3CInputValue } from '../types';
type RequiredProps = PropLabelWithExpertSlot & PropSuggestions;
type OptionalProps = {
hint: string;
msg: Stringified<MsgPropType>;
on: InputTypeOnDefault;
placeholder: string;
value: string;
} & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHorizontalIcons & PropName & PropRequired & PropShortKey & PropSyncValueBySelector & PropTouched;
type RequiredStates = {
hasValue: boolean;
suggestions: W3CInputValue[];
value: string;
} & PropId & PropHideMsg & PropLabelWithExpertSlot;
type OptionalStates = {
hint: string;
on: InputTypeOnDefault;
placeholder: string;
} & PropAccessKey & PropDisabled & PropHideLabel & KoliBriHIcons & PropId & PropName & PropRequired & PropMsg & PropShortKey & PropTouched;
export type ComboboxProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type ComboboxStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type ComboboxWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;
export type ComboboxAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};