UNPKG

@public-ui/components

Version:

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

25 lines (24 loc) 1.63 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropAccessKey, PropDisabled, PropHideLabel, PropHideMsg, PropHint, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropOptions, PropRequired, PropShortKey, PropSyncValueBySelector, PropTouched, PropRows } from '../props'; import type { InputTypeOnDefault, KoliBriHIcons, Option, StencilUnknown, Stringified } from '../types'; type RequiredProps = PropLabelWithExpertSlot & PropOptions; type OptionalProps = { msg: Stringified<MsgPropType>; on: InputTypeOnDefault; placeholder: string; value: StencilUnknown; hideClearButton: boolean; } & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHint & PropHorizontalIcons & PropName & PropRequired & PropRows & PropSyncValueBySelector & PropShortKey & PropTouched; type RequiredStates = { options: Option<StencilUnknown>[]; } & PropId & PropHideMsg & PropLabelWithExpertSlot; type OptionalStates = { on: InputTypeOnDefault; placeholder: string; hideClearButton: boolean; } & PropAccessKey & PropDisabled & PropHideLabel & KoliBriHIcons & PropHint & PropId & PropName & PropRequired & PropRows & 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 {};