UNPKG

@public-ui/components

Version:

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

23 lines (19 loc) 1.04 kB
/*! * KoliBri - The accessible HTML-Standard */ 'use strict'; var tslib_es6 = require('./tslib.es6-Cm0ytgPY.js'); var index = require('./index-BrhW8s5h.js'); var bemRegistry = require('./bem-registry-DevvgGUu.js'); var clsx = require('./clsx-Bm_HQUnh.js'); const iconBem = bemRegistry.bem.forBlock('kol-icon'); const BEM_CLASS_ICON = iconBem(); const BEM_CLASS_ICON__ICON = iconBem('icon'); const IconFC = (_a) => { var { class: classNames, icons, label } = _a, htmlAttributes = tslib_es6.__rest(_a, ["class", "icons", "label"]); const hasAriaLabel = (label === null || label === void 0 ? void 0 : label.length) > 0; return (index.h("i", Object.assign({}, htmlAttributes, { "aria-hidden": hasAriaLabel ? undefined : 'true', "aria-label": hasAriaLabel ? label : undefined, class: clsx.clsx(BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, icons, classNames), role: hasAriaLabel ? 'img' : 'presentation' }))); }; exports.IconFC = IconFC; //# sourceMappingURL=component-CuHGwo27.js.map //# sourceMappingURL=component-CuHGwo27.js.map