/*!
 * KoliBri - The accessible HTML-Standard
 */
import { createDependentPropDefinition } from "./helpers/factory";
import { normalizeNumber } from "./helpers/normalizers";
export const clampedNumberValueProp = createDependentPropDefinition('value', 0, (value, deps) => {
    const normalized = normalizeNumber(value);
    if (normalized < deps.min) {
        return deps.min;
    }
    else if (normalized > deps.max) {
        return deps.max;
    }
    return normalized;
}, (v) => v !== undefined && v !== null);
//# sourceMappingURL=value-number-clamped.js.map
