UNPKG

@public-ui/components

Version:

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

26 lines (20 loc) 1.09 kB
/*! * KoliBri - The accessible HTML-Standard */ import { a as watchValidator, h as watchString, b as watchBoolean } from './prop.validators.js'; const alternativeButtonLinkRolePropTypeOptions = ['tab', 'treeitem']; const validateAlternativeButtonLinkRole = (component, value) => { watchValidator(component, `_role`, (value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value), new Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]), value); }; const validateAriaControls = (component, value) => { watchString(component, '_ariaControls', value); }; const validateAriaDescription = (component, value) => { watchString(component, '_ariaDescription', value); }; const validateAriaExpanded = (component, value) => { watchBoolean(component, '_ariaExpanded', value); }; export { validateAriaDescription as a, validateAriaExpanded as b, validateAlternativeButtonLinkRole as c, validateAriaControls as v }; //# sourceMappingURL=aria-expanded.js.map //# sourceMappingURL=aria-expanded.js.map