@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
21 lines (18 loc) • 779 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { H as watchJsonArrayString, k as a11yHint } from './common-Cx_AGO_M.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-DEcHprcz.js.map
//# sourceMappingURL=suggestions-DEcHprcz.js.map