UNPKG

@public-ui/components

Version:

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

21 lines (18 loc) 761 B
/*! * KoliBri - The accessible HTML-Standard */ import { G as watchJsonArrayString, q as a11yHint } from './prop.validators.js'; const validateSuggestions = (component, value) => { watchJsonArrayString(component, '_suggestions', (item) => typeof item === 'string' || typeof item === 'number', value, undefined, { hooks: { afterPatch: (value) => { if (Array.isArray(value) && value.length) { a11yHint('Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.'); } }, }, }); }; export { validateSuggestions as v }; //# sourceMappingURL=suggestions.js.map //# sourceMappingURL=suggestions.js.map