UNPKG

@public-ui/components

Version:

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

33 lines (32 loc) 2.08 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropAccessKey, PropAdjustHeight, PropDisabled, PropHasCounter, PropHideLabel, PropHideMsg, PropHint, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMaxLengthBehavior, PropMsg, PropName, PropReadOnly, PropRequired, PropRows, PropShortKey, PropSpellCheck, PropSyncValueBySelector, PropTouched } from '../props'; import type { InputTypeOnDefault, KoliBriHIcons, Stringified } from '../types'; export declare const cssResizeOptions: readonly ["vertical", "none"]; export type CSSResize = (typeof cssResizeOptions)[number]; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { maxLength: number; msg: Stringified<MsgPropType>; on: InputTypeOnDefault; placeholder: string; resize: CSSResize; value: string; } & PropAccessKey & PropAdjustHeight & PropDisabled & PropHasCounter & PropHideLabel & PropHideMsg & PropHint & PropHorizontalIcons & PropId & PropMaxLengthBehavior & PropName & PropReadOnly & PropRequired & PropRows & PropShortKey & PropSpellCheck & PropSyncValueBySelector & PropTouched; type RequiredStates = { adjustHeight: boolean; currentLength: number; currentLengthDebounced: number; hasValue: boolean; resize: CSSResize; } & PropAdjustHeight & PropHideMsg & PropId & PropLabelWithExpertSlot; type OptionalStates = { maxLength: number; on: InputTypeOnDefault; placeholder: string; value: string; } & PropAccessKey & KoliBriHIcons & PropDisabled & PropHasCounter & PropHideLabel & PropHint & PropMaxLengthBehavior & PropMsg & PropName & PropReadOnly & PropRequired & PropRows & PropShortKey & PropSpellCheck & PropTouched; export type TextareaProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type TextareaStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type TextareaWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>; export type TextareaAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};