UNPKG

@public-ui/components

Version:

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

33 lines (32 loc) 1.69 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropAccessKey, PropDisabled, PropHideError, PropHideLabel, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropReadOnly, PropRequired, PropShortKey, PropSuggestions, PropSyncValueBySelector, PropTouched } from '../props'; import type { InputTypeOnDefault, InputTypeOnOff, Iso8601, KoliBriHIcons, OptionalInputProps, Stringified, W3CInputValue } from '../types'; import type { ButtonProps } from './button'; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { error: string; msg: Stringified<MsgPropType>; placeholder: string; } & OptionalInputProps<number | Iso8601> & PropHideError & PropSuggestions; type RequiredStates = { autoComplete: InputTypeOnOff; hasValue: boolean; suggestions: W3CInputValue[]; } & PropId & PropHideError & PropLabelWithExpertSlot; type OptionalStates = { alert: boolean; hint: string; max: string; min: string; on: InputTypeOnDefault; placeholder: string; smartButton: ButtonProps; step: number; tabIndex: number; value: string; } & PropAccessKey & PropDisabled & PropHideLabel & KoliBriHIcons & PropMsg & PropName & PropReadOnly & PropRequired & PropSyncValueBySelector & PropShortKey & PropTouched; export type InputNumberProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type InputNumberStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type InputNumberWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>; export type InputNumberAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};