@wix/design-system
Version:
@wix/design-system
17 lines (16 loc) • 620 B
JavaScript
;
exports.__esModule = true;
exports.normalizeIndentSize = exports.getDepthThreshold = void 0;
var _constants = require("./constants");
var getIsCorrectIndentSizeValue = indentSize => {
return _constants.indentSizes.includes(indentSize);
};
var normalizeIndentSize = indentSize => {
return getIsCorrectIndentSizeValue(indentSize) ? indentSize : _constants.DEFAULT_INDENT_SIZE;
};
exports.normalizeIndentSize = normalizeIndentSize;
var getDepthThreshold = indentSize => {
return _constants.depthThresholds[indentSize];
};
exports.getDepthThreshold = getDepthThreshold;
//# sourceMappingURL=utils.js.map