@brizy/ui
Version:
React elements in Brizy style
17 lines (16 loc) • 609 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getContentScrollbarWidth = exports.getContentWidthProperty = void 0;
const constants_1 = require("../constants");
const getContentWidthProperty = (width) => {
return {
[`--${constants_1.BRZ_PREFIX}-frame-content-width`]: width,
};
};
exports.getContentWidthProperty = getContentWidthProperty;
const getContentScrollbarWidth = (width) => {
return {
[`--${constants_1.BRZ_PREFIX}-frame-content-scrollbar-width`]: `${width}px`,
};
};
exports.getContentScrollbarWidth = getContentScrollbarWidth;