UNPKG

@public-ui/components

Version:

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

28 lines (27 loc) 1.67 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropAccessKey, PropAutoComplete, PropDisabled, PropHideLabel, PropHideMsg, PropHint, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropShortKey, PropSuggestions, PropSyncValueBySelector, PropTouched } from '../props'; import type { InputTypeOnDefault, KoliBriHIcons, NumberString, Stringified, W3CInputValue } from '../types'; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { max: number | NumberString; min: number | NumberString; msg: Stringified<MsgPropType>; on: InputTypeOnDefault; step: number | NumberString; value: number | NumberString; } & PropAccessKey & PropAutoComplete & PropDisabled & PropHideMsg & PropHideLabel & PropHint & PropHorizontalIcons & PropName & PropSuggestions & PropSyncValueBySelector & PropShortKey & PropTouched; type RequiredStates = { suggestions: W3CInputValue[]; } & PropId & PropHideMsg & PropLabelWithExpertSlot; type OptionalStates = { max: number; min: number; on: InputTypeOnDefault; step: number; value: number; } & PropAccessKey & PropAutoComplete & PropDisabled & PropHideLabel & PropHint & KoliBriHIcons & PropMsg & PropName & PropShortKey & PropTouched; export type InputRangeProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type InputRangeStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type InputRangeWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>; export type InputRangeAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};