/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-6b06f3c
 * Released under the MIT license.
 */

/**
 * Clamps a size value within min/max constraints.
 * Handles both number and string constraint values (only numbers are applied).
 */
export function clampSize(value, minSize, maxSize) {
    let result = value;
    if (typeof maxSize === 'number') {
        result = Math.min(maxSize, result);
    }
    if (typeof minSize === 'number') {
        result = Math.max(minSize, result);
    }
    return Math.max(result, 0);
}

        