UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

16 lines 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAriaControls = exports.getLength = void 0; const getLength = (options) => { let numOptions = 0; options.forEach(section => (numOptions += section.options.length)); return numOptions; }; exports.getLength = getLength; const getAriaControls = (options, ariaControls) => { let newAriaControls = ''; options[0]?.options?.forEach((_section, index) => (newAriaControls += ` ${ariaControls}${index}`)); return newAriaControls.trimStart(); }; exports.getAriaControls = getAriaControls; //# sourceMappingURL=options.js.map