/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-a795c5b | Cube Dev Team */
//#region src/components/content/Layout/utils.ts
/**
* Clamps a size value within min/max constraints.
* Handles both number and string constraint values (only numbers are applied).
*/
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);
}

//#endregion
export { clampSize };
//# sourceMappingURL=utils.js.map