UNPKG

@public-ui/components

Version:

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

16 lines (13 loc) 626 B
/*! * KoliBri - The accessible HTML-Standard */ import { a as watchValidator } from './prop.validators.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) => { watchValidator(component, '_variant', isSafeClassName, SAFE_CLASS_NAME_ALLOWED, value); }; export { validateVariantClassName as v }; //# sourceMappingURL=variant-class-name.js.map //# sourceMappingURL=variant-class-name.js.map