@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
53 lines (52 loc) • 2.49 kB
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { MsgPropType, PropChecked, PropDisabled, PropHideError, PropHideLabel, PropIndeterminate, PropLabelAlign, PropLabelWithExpertSlot, PropMsg, PropName, PropRequired, PropSyncValueBySelector, PropTouched, PropShortKey, PropAccessKey } from '../props';
import type { AnyIconFontClass, InputTypeOnDefault, StencilUnknown, Stringified } from '../types';
export declare const inputCheckboxVariantOptions: readonly ["button", "default", "switch"];
export type InputCheckboxVariant = (typeof inputCheckboxVariantOptions)[number];
export type InputCheckboxIconsProp = {
checked: AnyIconFontClass;
indeterminate?: AnyIconFontClass;
unchecked?: AnyIconFontClass;
} | {
checked?: AnyIconFontClass;
indeterminate: AnyIconFontClass;
unchecked?: AnyIconFontClass;
} | {
checked?: AnyIconFontClass;
indeterminate?: AnyIconFontClass;
unchecked: AnyIconFontClass;
};
export type InputCheckboxIconsState = {
checked: AnyIconFontClass;
indeterminate: AnyIconFontClass;
unchecked: AnyIconFontClass;
};
type RequiredProps = PropLabelWithExpertSlot;
type OptionalProps = {
alert: boolean;
error: string;
hint: string;
icons: Stringified<InputCheckboxIconsProp>;
msg: Stringified<MsgPropType>;
on: InputTypeOnDefault;
tabIndex: number;
value: Stringified<StencilUnknown>;
variant: InputCheckboxVariant;
} & PropAccessKey & PropChecked & PropDisabled & PropHideError & PropHideLabel & PropIndeterminate & PropName & PropRequired & PropShortKey & PropSyncValueBySelector & PropTouched & PropLabelAlign;
type RequiredStates = {
icons: InputCheckboxIconsState;
id: string;
value: StencilUnknown;
variant: InputCheckboxVariant;
} & PropChecked & PropHideError & PropIndeterminate & PropLabelWithExpertSlot;
type OptionalStates = {
alert: boolean;
hint: string;
on: InputTypeOnDefault;
tabIndex: number;
} & PropAccessKey & PropDisabled & PropHideLabel & PropMsg & PropName & PropRequired & PropShortKey & PropTouched & PropLabelAlign;
export type InputCheckboxProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type InputCheckboxStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type InputCheckboxWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;
export type InputCheckboxAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};