/*!
 * KoliBri - The accessible HTML-Standard
 */
'use strict';

var normalizers = require('./normalizers-R90MJyQR.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-B6AfADe2.js.map

//# sourceMappingURL=value-number-clamped-B6AfADe2.js.map