UNPKG

@public-ui/components

Version:

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

19 lines (18 loc) 1.02 kB
import type { Generic } from 'adopted-style-sheets'; import type { RadioOption, Optgroup, Option, StencilUnknown } from '../types'; import type { Stringified } from '../types/common'; import type { WatchOptions } from '../utils'; export type OptionsPropType = Stringified<Option<StencilUnknown>[]>; export type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>; export type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>; export type PropOptions = { options: OptionsPropType; }; export type PropRadioOptions = { options: RadioOptionsPropType; }; export type PropOptionsWithOptgroup = { options: OptionsWithOptgroupPropType; }; export declare const validateOptions: (component: Generic.Element.Component, value: OptionsPropType | undefined, options?: WatchOptions) => void; export declare const validateOptionsWithOptgroup: (component: Generic.Element.Component, value: OptionsWithOptgroupPropType | undefined, options?: WatchOptions) => void;