UNPKG

@public-ui/components

Version:

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

16 lines (15 loc) 849 B
import type { Generic } from 'adopted-style-sheets'; import type { WatchStringOptions } from '../utils'; export declare function hasEnoughReadableChars(str: string, min?: number): boolean; export declare function containsOnlyNumbers(str: string): boolean; export type LabelPropType = string; export type LabelWithExpertSlotPropType = LabelPropType | ''; export type PropLabel = { label: LabelPropType; }; export type PropLabelWithExpertSlot = { label: LabelWithExpertSlotPropType; }; export type LabelProp = Generic.Element.Members<PropLabel, unknown>; export declare const validateLabel: (component: Generic.Element.Component, value?: LabelPropType, options?: WatchStringOptions) => void; export declare const validateLabelWithExpertSlot: (component: Generic.Element.Component, value?: LabelPropType, options?: WatchStringOptions) => void;