Files
klz-cables.com/.pnpm-store/v10/files/05/ee56c32228a4b896ef9bd4ef3340dc8835056755821b518ca678350b310d33c47f6e283a955c08e0e4e8950065f99244e89897e93849c327952bcc8197ee03
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

47 lines
1.6 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.textShadow = void 0;
var parser_1 = require("../syntax/parser");
var length_percentage_1 = require("../types/length-percentage");
var color_1 = require("../types/color");
var length_1 = require("../types/length");
exports.textShadow = {
name: 'text-shadow',
initialValue: 'none',
type: 1 /* LIST */,
prefix: false,
parse: function (context, tokens) {
if (tokens.length === 1 && parser_1.isIdentWithValue(tokens[0], 'none')) {
return [];
}
return parser_1.parseFunctionArgs(tokens).map(function (values) {
var shadow = {
color: color_1.COLORS.TRANSPARENT,
offsetX: length_percentage_1.ZERO_LENGTH,
offsetY: length_percentage_1.ZERO_LENGTH,
blur: length_percentage_1.ZERO_LENGTH
};
var c = 0;
for (var i = 0; i < values.length; i++) {
var token = values[i];
if (length_1.isLength(token)) {
if (c === 0) {
shadow.offsetX = token;
}
else if (c === 1) {
shadow.offsetY = token;
}
else {
shadow.blur = token;
}
c++;
}
else {
shadow.color = color_1.color.parse(context, token);
}
}
return shadow;
});
}
};
//# sourceMappingURL=text-shadow.js.map