UNPKG

@public-ui/components

Version:

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

28 lines (22 loc) 934 B
/*! * KoliBri - The accessible HTML-Standard */ 'use strict'; var normalizers = require('./normalizers-BCLslVaT.js'); const maxProp = normalizers.createPropDefinition('max', 100, normalizers.normalizeNumber, (v) => v > 0); const unitProp = normalizers.createPropDefinition('unit', '%', normalizers.normalizeString, (v) => v.length > 0); const clampedNumberValueProp = normalizers.createDependentPropDefinition('value', 0, (value, deps) => { const normalized = normalizers.normalizeNumber(value); if (normalized < deps.min) { return deps.min; } else if (normalized > deps.max) { return deps.max; } return normalized; }, (v) => v !== undefined && v !== null); exports.clampedNumberValueProp = clampedNumberValueProp; exports.maxProp = maxProp; exports.unitProp = unitProp; //# sourceMappingURL=value-number-clamped-Ahfs15Fl.js.map //# sourceMappingURL=value-number-clamped-Ahfs15Fl.js.map