UNPKG

@public-ui/components

Version:

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

26 lines (25 loc) 1.56 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropAccessKey, PropDisabled, PropHideMsg, PropHideLabel, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropRadioOptions, PropRequired, PropShortKey, PropSyncValueBySelector, PropTooltipAlign, PropTouched } from '../props'; import type { InputTypeOnDefault, RadioOption, Orientation, StencilUnknown, Stringified } from '../types'; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { hint: string; msg: Stringified<MsgPropType>; on: InputTypeOnDefault; orientation: Orientation; value: StencilUnknown; } & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropName & PropRadioOptions & PropRequired & PropShortKey & PropSyncValueBySelector & PropTouched & PropTooltipAlign; type RequiredStates = { options: RadioOption<StencilUnknown>[]; orientation: Orientation; } & PropId & PropHideMsg & PropLabelWithExpertSlot; type OptionalStates = { hint: string; on: InputTypeOnDefault; value: StencilUnknown; } & PropAccessKey & PropDisabled & PropHideLabel & PropMsg & PropName & PropRequired & PropShortKey & PropTouched; export type InputRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type InputRadioStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type InputRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>; export type InputRadioAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};