@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
18 lines (14 loc) • 671 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
;
var common = require('./common-DPb6NWR4.js');
const SAFE_CLASS_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_-]{3,60}$/;
const isSafeClassName = (value) => typeof value === 'string' && SAFE_CLASS_NAME_RE.test(value);
const SAFE_CLASS_NAME_ALLOWED = new Set([SAFE_CLASS_NAME_RE.source]);
const validateVariantClassName = (component, value) => {
common.watchValidator(component, '_variant', isSafeClassName, SAFE_CLASS_NAME_ALLOWED, value);
};
exports.validateVariantClassName = validateVariantClassName;
//# sourceMappingURL=variant-class-name-BCWuCRd0.js.map
//# sourceMappingURL=variant-class-name-BCWuCRd0.js.map