Files
klz-cables.com/.pnpm-store/v10/files/4d/19ea76b13bc6f32cbbcac2c4e8197bbe2372756d9ecc3d6a649df5cc7e3f811c9745a4963e861a99eb7e1a8cdde05d22250a40479dfc1df0621a9d5b7df36a
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

21 lines
1.3 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.contentBox = exports.paddingBox = void 0;
var length_percentage_1 = require("../css/types/length-percentage");
var paddingBox = function (element) {
var bounds = element.bounds;
var styles = element.styles;
return bounds.add(styles.borderLeftWidth, styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth), -(styles.borderTopWidth + styles.borderBottomWidth));
};
exports.paddingBox = paddingBox;
var contentBox = function (element) {
var styles = element.styles;
var bounds = element.bounds;
var paddingLeft = length_percentage_1.getAbsoluteValue(styles.paddingLeft, bounds.width);
var paddingRight = length_percentage_1.getAbsoluteValue(styles.paddingRight, bounds.width);
var paddingTop = length_percentage_1.getAbsoluteValue(styles.paddingTop, bounds.width);
var paddingBottom = length_percentage_1.getAbsoluteValue(styles.paddingBottom, bounds.width);
return bounds.add(paddingLeft + styles.borderLeftWidth, paddingTop + styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth + paddingLeft + paddingRight), -(styles.borderTopWidth + styles.borderBottomWidth + paddingTop + paddingBottom));
};
exports.contentBox = contentBox;
//# sourceMappingURL=box-sizing.js.map