UNPKG

@public-ui/components

Version:

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

25 lines (24 loc) 1.49 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropDisabled, PropHideLabel, PropHideMsg, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropRadioOptions, PropRequired, PropSyncValueBySelector, PropTooltipAlign, PropTouched } from '../props'; import type { InputTypeOnDefault, RadioOption, StencilUnknown, Stringified } from '../types'; import type { PropOrientation } from '../props/orientation'; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { hint: string; msg: Stringified<MsgPropType>; on: InputTypeOnDefault; value: StencilUnknown; } & PropDisabled & PropHideLabel & PropHideMsg & PropName & PropOrientation & PropRadioOptions & PropRequired & PropSyncValueBySelector & PropTouched & PropTooltipAlign; type RequiredStates = { options: RadioOption<StencilUnknown>[]; } & PropId & PropHideMsg & PropLabelWithExpertSlot & PropOrientation; type OptionalStates = { hint: string; on: InputTypeOnDefault; value: StencilUnknown; } & PropDisabled & PropHideLabel & PropMsg & PropName & PropRequired & 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 {};