UNPKG

@public-ui/components

Version:

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

23 lines (19 loc) 787 B
/*! * KoliBri - The accessible HTML-Standard */ 'use strict'; var common = require('./common-DPb6NWR4.js'); const validateSuggestions = (component, value) => { common.watchJsonArrayString(component, '_suggestions', (item) => typeof item === 'string' || typeof item === 'number', value, undefined, { hooks: { afterPatch: (value) => { if (Array.isArray(value) && value.length) { common.a11yHint('Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.'); } }, }, }); }; exports.validateSuggestions = validateSuggestions; //# sourceMappingURL=suggestions-CjIs1OMC.js.map //# sourceMappingURL=suggestions-CjIs1OMC.js.map