UNPKG

@public-ui/components

Version:

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

31 lines (24 loc) 1.21 kB
/*! * KoliBri - The accessible HTML-Standard */ 'use strict'; var common = require('./common-DPb6NWR4.js'); const alternativeButtonLinkRolePropTypeOptions = ['tab', 'treeitem']; const validateAlternativeButtonLinkRole = (component, value) => { common.watchValidator(component, `_role`, (value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value), new Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]), value); }; const validateAriaControls = (component, value) => { common.watchString(component, '_ariaControls', value); }; const validateAriaDescription = (component, value) => { common.watchString(component, '_ariaDescription', value); }; const validateAriaExpanded = (component, value) => { common.watchBoolean(component, '_ariaExpanded', value); }; exports.validateAlternativeButtonLinkRole = validateAlternativeButtonLinkRole; exports.validateAriaControls = validateAriaControls; exports.validateAriaDescription = validateAriaDescription; exports.validateAriaExpanded = validateAriaExpanded; //# sourceMappingURL=aria-expanded-CVaHNiQi.js.map //# sourceMappingURL=aria-expanded-CVaHNiQi.js.map