@brizy/ui
Version:
React elements in Brizy style
27 lines (26 loc) • 733 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHeight = exports.getGutter = void 0;
const constants_1 = require("../constants");
const getGutter = (gutter) => {
switch (gutter) {
case "strict":
return [20, 28];
case "lazy":
return [30, 30];
case "hustle":
return [30, 0];
default:
return gutter;
}
};
exports.getGutter = getGutter;
const getHeight = (height) => {
if (height === "fullHeight") {
return { [`--${constants_1.BRZ_PREFIX}-layout-height`]: "100%" };
}
else {
return { [`--${constants_1.BRZ_PREFIX}-layout-height`]: height };
}
};
exports.getHeight = getHeight;