UNPKG

@public-ui/components

Version:

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

37 lines (36 loc) 2.01 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropAccessKey, PropDisabled, PropHasCounter, PropHideLabel, PropHideMsg, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropMultiple, PropName, PropReadOnly, PropRequired, PropShortKey, PropSuggestions, PropSyncValueBySelector, PropTouched } from '../props'; import type { InputTypeOnDefault, InputTypeOnOff, KoliBriHIcons, Stringified, W3CInputValue } from '../types'; import type { ButtonProps } from './button'; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { autoComplete: InputTypeOnOff; hint: string; maxLength: number; msg: Stringified<MsgPropType>; on: InputTypeOnDefault; pattern: string; placeholder: string; smartButton: Stringified<ButtonProps>; value: string; } & PropAccessKey & PropDisabled & PropHasCounter & PropHideMsg & PropHideLabel & PropHorizontalIcons & PropMultiple & PropName & PropReadOnly & PropRequired & PropShortKey & PropSuggestions & PropSyncValueBySelector & PropTouched; type RequiredStates = { autoComplete: InputTypeOnOff; hasValue: boolean; suggestions: W3CInputValue[]; } & PropId & PropHideMsg & PropLabelWithExpertSlot; type OptionalStates = { currentLength: number; hint: string; maxLength: number; on: InputTypeOnDefault; pattern: string; placeholder: string; smartButton: ButtonProps; value: string; } & PropAccessKey & PropDisabled & PropHasCounter & PropHideLabel & KoliBriHIcons & PropMsg & PropMultiple & PropName & PropReadOnly & PropRequired & PropShortKey & PropTouched; export type InputEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type InputEmailStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type InputEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>; export type InputEmailAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};