@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
40 lines (39 loc) • 2.13 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { MsgPropType, PropAccessKey, PropAdjustHeight, PropDisabled, PropHasCounter, PropHideError, PropHideLabel, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropReadOnly, PropRequired, PropRows, PropShortKey, PropSpellCheck, PropSyncValueBySelector, PropTouched } from '../props';
import type { InputTypeOnDefault, KoliBriHIcons, Stringified } from '../types';
export declare const cssResizeOptions: readonly ["both", "horizontal", "vertical", "none"];
export type CSSResize = (typeof cssResizeOptions)[number];
type RequiredProps = PropLabelWithExpertSlot;
type OptionalProps = {
alert: boolean;
error: string;
hint: string;
maxLength: number;
msg: Stringified<MsgPropType>;
on: InputTypeOnDefault;
placeholder: string;
resize: CSSResize;
tabIndex: number;
value: string;
} & PropAccessKey & PropAdjustHeight & PropDisabled & PropHasCounter & PropHideError & PropHideLabel & PropHorizontalIcons & PropId & PropName & PropReadOnly & PropRequired & PropRows & PropShortKey & PropSpellCheck & PropSyncValueBySelector & PropTouched;
type RequiredStates = {
adjustHeight: boolean;
currentLength: number;
hasValue: boolean;
resize: CSSResize;
} & PropAdjustHeight & PropHideError & PropId & PropLabelWithExpertSlot;
type OptionalStates = {
alert: boolean;
error: string;
hint: string;
maxLength: number;
on: InputTypeOnDefault;
placeholder: string;
tabIndex: number;
value: string;
} & PropAccessKey & PropDisabled & PropHasCounter & PropHideLabel & KoliBriHIcons & 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 {};