@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
31 lines (30 loc) • 1.69 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { MsgPropType, PropAccessKey, PropDisabled, PropHideError, PropHideLabel, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropOptions, PropRequired, PropShortKey, PropSyncValueBySelector, PropTouched } from '../props';
import type { InputTypeOnDefault, KoliBriHIcons, Option, StencilUnknown, Stringified } from '../types';
type RequiredProps = PropLabelWithExpertSlot & PropOptions;
type OptionalProps = {
hint: string;
msg: Stringified<MsgPropType>;
on: InputTypeOnDefault;
placeholder: string;
tabIndex: number;
value: StencilUnknown;
hideClearButton: boolean;
} & PropAccessKey & PropDisabled & PropHideError & PropHideLabel & PropHorizontalIcons & PropName & PropRequired & PropSyncValueBySelector & PropShortKey & PropTouched;
type RequiredStates = {
options: Option<StencilUnknown>[];
} & PropId & PropHideError & PropLabelWithExpertSlot;
type OptionalStates = {
alert: boolean;
hint: string;
value: string;
on: InputTypeOnDefault;
tabIndex: number;
placeholder: string;
hideClearButton: boolean;
} & PropAccessKey & PropDisabled & PropHideLabel & KoliBriHIcons & PropId & PropName & PropRequired & PropMsg & PropShortKey & PropTouched;
export type SingleSelectProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type SingleSelectStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type SingleSelectWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;
export type SingleSelectAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};