@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
31 lines (30 loc) • 1.77 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { MsgPropType, PropAccessKey, PropDisabled, PropHideError, PropHideLabel, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropMultiple, PropName, PropOptionsWithOptgroup, PropRequired, PropRows, PropShortKey, PropSyncValueBySelector, PropTouched } from '../props';
import type { InputTypeOnDefault, KoliBriHIcons, SelectOption, Stringified, W3CInputValue } from '../types';
type RequiredProps = PropLabelWithExpertSlot & PropOptionsWithOptgroup;
type OptionalProps = {
alert: boolean;
error: string;
hint: string;
msg: Stringified<MsgPropType>;
on: InputTypeOnDefault;
tabIndex: number;
value: Stringified<W3CInputValue[]>;
} & PropAccessKey & PropDisabled & PropHideError & PropHideLabel & PropHorizontalIcons & PropMultiple & PropName & PropRequired & PropRows & PropShortKey & PropSyncValueBySelector & PropTouched;
type RequiredStates = {
hasValue: boolean;
options: SelectOption<W3CInputValue>[];
value: W3CInputValue[];
} & PropId & PropHideError & PropMultiple & PropLabelWithExpertSlot;
type OptionalStates = {
alert: boolean;
error: string;
hint: string;
on: InputTypeOnDefault;
tabIndex: number;
} & PropAccessKey & PropDisabled & PropHideLabel & KoliBriHIcons & PropId & PropName & PropRequired & PropRows & PropMsg & PropShortKey & PropTouched;
export type SelectProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type SelectStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type SelectWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;
export type SelectAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};