@trafilea/afrodita-components 6.39.12 → 6.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +9 -1
- package/build/index.esm.js +23 -17
- package/build/index.esm.js.map +1 -1
- package/build/index.js +23 -16
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -3208,7 +3208,7 @@ var getStylesBySize$g = function (size) {
|
|
|
3208
3208
|
};
|
|
3209
3209
|
}
|
|
3210
3210
|
};
|
|
3211
|
-
var Container$1q = newStyled.div(templateObject_1$
|
|
3211
|
+
var Container$1q = newStyled.div(templateObject_1$2l || (templateObject_1$2l = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n padding: ", ";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: ", ";\n text-align: center;\n cursor: default;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n padding: ", ";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: ", ";\n text-align: center;\n cursor: default;\n"])), function (_a) {
|
|
3212
3212
|
var backgroundColor = _a.backgroundColor;
|
|
3213
3213
|
return backgroundColor;
|
|
3214
3214
|
}, function (_a) {
|
|
@@ -3247,7 +3247,7 @@ var ClubOfferTag = function (_a) {
|
|
|
3247
3247
|
var theme = useTheme();
|
|
3248
3248
|
return (jsxRuntime.jsx(Container$1q, __assign$1({ backgroundColor: disabled ? theme.colors.shades['50'].color : backgroundColor, borderColor: disabled ? theme.colors.shades['50'].color : borderColor, size: size, "data-testid": "cluboffer-container", style: style, className: className }, { children: jsxRuntime.jsx(H3$2, __assign$1({ textColor: disabled ? theme.colors.shades['250'].color : textColor, size: size, style: { fontSize: '0.875rem', lineHeight: '18px' } }, { children: clubOfferText }), void 0) }), void 0));
|
|
3249
3249
|
};
|
|
3250
|
-
var templateObject_1$
|
|
3250
|
+
var templateObject_1$2l, templateObject_2$1G;
|
|
3251
3251
|
|
|
3252
3252
|
var getStylesBySize$f = function (size, bordersRounded, theme) {
|
|
3253
3253
|
var _a, _b, _c;
|
|
@@ -3278,7 +3278,7 @@ var getStylesBySize$f = function (size, bordersRounded, theme) {
|
|
|
3278
3278
|
};
|
|
3279
3279
|
}
|
|
3280
3280
|
};
|
|
3281
|
-
var Container$1p = newStyled.div(templateObject_1$
|
|
3281
|
+
var Container$1p = newStyled.div(templateObject_1$2k || (templateObject_1$2k = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n padding: ", ";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: ", ";\n text-align: center;\n cursor: default;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n padding: ", ";\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: ", ";\n text-align: center;\n cursor: default;\n"])), function (_a) {
|
|
3282
3282
|
var backgroundColor = _a.backgroundColor;
|
|
3283
3283
|
return backgroundColor;
|
|
3284
3284
|
}, function (_a) {
|
|
@@ -3317,7 +3317,7 @@ var DiscountTag$3 = function (_a) {
|
|
|
3317
3317
|
var theme = useTheme();
|
|
3318
3318
|
return (jsxRuntime.jsx(Container$1p, __assign$1({ backgroundColor: disabled ? theme.colors.shades['50'].color : backgroundColor, borderColor: disabled ? theme.colors.shades['50'].color : borderColor, size: size, "data-testid": "discount-container", style: style, bordersRounded: bordersRounded }, { children: jsxRuntime.jsxs(H3$1, __assign$1({ textColor: disabled ? theme.colors.shades['250'].color : textColor, size: size, style: style, theme: theme }, { children: [discount, "% ", offText, " ", showSavings && savings && "- ".concat(savings)] }), void 0) }), void 0));
|
|
3319
3319
|
};
|
|
3320
|
-
var templateObject_1$
|
|
3320
|
+
var templateObject_1$2k, templateObject_2$1F;
|
|
3321
3321
|
|
|
3322
3322
|
var Viewports = {
|
|
3323
3323
|
mobile: 'mobile',
|
|
@@ -3426,7 +3426,7 @@ var getFontSize = function (size, theme, finalPriceStyled, finalPriceStyledSmall
|
|
|
3426
3426
|
return (_c = getStylesBySize$e(size, theme)) === null || _c === void 0 ? void 0 : _c.fontSize;
|
|
3427
3427
|
}
|
|
3428
3428
|
};
|
|
3429
|
-
var Container$1o = newStyled.div(templateObject_1$
|
|
3429
|
+
var Container$1o = newStyled.div(templateObject_1$2j || (templateObject_1$2j = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
3430
3430
|
var Price = newStyled.p(templateObject_2$1E || (templateObject_2$1E = __makeTemplateObject(["\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n text-decoration: ", ";\n margin: ", ";\n position: relative;\n margin-top: ", ";\n"], ["\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n text-decoration: ", ";\n margin: ", ";\n position: relative;\n margin-top: ", ";\n"])), function (_a) {
|
|
3431
3431
|
var weight = _a.weight;
|
|
3432
3432
|
return (weight ? weight : '400');
|
|
@@ -3484,9 +3484,9 @@ var PriceLabel$1 = function (_a) {
|
|
|
3484
3484
|
};
|
|
3485
3485
|
return (jsxRuntime.jsxs(Container$1o, __assign$1({}, rest, { id: "priceLabel" }, { children: [clubStyle ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!!originalPrice && jsxRuntime.jsx(OriginalPrice, {}, void 0), jsxRuntime.jsx(Price, __assign$1({ margin: true, "data-testid": getTestId$1(testId, 'final-product-price') }, priceCommonProps, { style: finalPriceStyle, size: size }, { children: finalPrice }), void 0)] }, void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Price, __assign$1({ margin: true, "data-testid": getTestId$1(testId, 'final-product-price') }, priceCommonProps, { style: finalPriceStyle, size: size }, { children: finalPrice }), void 0), !!originalPrice && jsxRuntime.jsx(OriginalPrice, {}, void 0)] }, void 0)), discount && (jsxRuntime.jsx(TagContainer, __assign$1({ size: size }, { children: jsxRuntime.jsx(DiscountTag$3, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }), void 0));
|
|
3486
3486
|
};
|
|
3487
|
-
var templateObject_1$
|
|
3487
|
+
var templateObject_1$2j, templateObject_2$1E, templateObject_3$1h;
|
|
3488
3488
|
|
|
3489
|
-
var FinalPriceStyledContainer$3 = newStyled.div(templateObject_1$
|
|
3489
|
+
var FinalPriceStyledContainer$3 = newStyled.div(templateObject_1$2i || (templateObject_1$2i = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
3490
3490
|
var PriceLabelV2$1 = function (_a) {
|
|
3491
3491
|
var _b;
|
|
3492
3492
|
var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, discount = _a.discount, clubOffer = _a.clubOffer, color = _a.color, testId = _a.testId, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.originalPriceUnderlined, originalPriceUnderlined = _d === void 0 ? true : _d, _e = _a.size, size = _e === void 0 ? exports.ComponentSize.Small : _e, _f = _a.bordersRounded, bordersRounded = _f === void 0 ? false : _f, _g = _a.savingsDisplay, savingsDisplay = _g === void 0 ? true : _g, pricePerItem = _a.pricePerItem, _h = _a.hasRoundedSavings, hasRoundedSavings = _h === void 0 ? true : _h, rest = __rest(_a, ["finalPrice", "originalPrice", "discount", "clubOffer", "color", "testId", "originalPriceStyled", "originalPriceUnderlined", "size", "bordersRounded", "savingsDisplay", "pricePerItem", "hasRoundedSavings"]);
|
|
@@ -3555,9 +3555,9 @@ var PriceLabelV2$1 = function (_a) {
|
|
|
3555
3555
|
lineHeight: '22px',
|
|
3556
3556
|
} }), void 0)) }), void 0))] }), void 0));
|
|
3557
3557
|
};
|
|
3558
|
-
var templateObject_1$
|
|
3558
|
+
var templateObject_1$2i;
|
|
3559
3559
|
|
|
3560
|
-
var FinalPriceStyledContainer$2 = newStyled.div(templateObject_1$
|
|
3560
|
+
var FinalPriceStyledContainer$2 = newStyled.div(templateObject_1$2h || (templateObject_1$2h = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
3561
3561
|
var ContainerDirectionColumn = newStyled.div(templateObject_2$1D || (templateObject_2$1D = __makeTemplateObject(["\n display: column;\n align-items: center;\n"], ["\n display: column;\n align-items: center;\n"])));
|
|
3562
3562
|
var DiscountEachOneContainer = newStyled.div(templateObject_3$1g || (templateObject_3$1g = __makeTemplateObject(["\n display: flex;\n padding-left: 0.5rem;\n"], ["\n display: flex;\n padding-left: 0.5rem;\n"])));
|
|
3563
3563
|
var PriceLabelV3 = function (_a) {
|
|
@@ -3630,9 +3630,9 @@ var PriceLabelV3 = function (_a) {
|
|
|
3630
3630
|
lineHeight: '22px',
|
|
3631
3631
|
} }), void 0)) }), void 0))] }, void 0)] }), void 0));
|
|
3632
3632
|
};
|
|
3633
|
-
var templateObject_1$
|
|
3633
|
+
var templateObject_1$2h, templateObject_2$1D, templateObject_3$1g;
|
|
3634
3634
|
|
|
3635
|
-
var FinalPriceStyledContainer$1 = newStyled.div(templateObject_1$
|
|
3635
|
+
var FinalPriceStyledContainer$1 = newStyled.div(templateObject_1$2g || (templateObject_1$2g = __makeTemplateObject(["\n display: flex;\n margin-left: -5px;\n"], ["\n display: flex;\n margin-left: -5px;\n"])));
|
|
3636
3636
|
var PriceLabel = function (_a) {
|
|
3637
3637
|
var _b;
|
|
3638
3638
|
var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, color = _a.color, testId = _a.testId, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.originalPriceUnderlined, originalPriceUnderlined = _d === void 0 ? true : _d, _e = _a.size, size = _e === void 0 ? exports.ComponentSize.Small : _e, _f = _a.isClubOffer, isClubOffer = _f === void 0 ? false : _f, rest = __rest(_a, ["finalPrice", "originalPrice", "color", "testId", "originalPriceStyled", "originalPriceUnderlined", "size", "isClubOffer"]);
|
|
@@ -3666,9 +3666,9 @@ var PriceLabel = function (_a) {
|
|
|
3666
3666
|
marginTop: '-6px',
|
|
3667
3667
|
} }, priceCommonProps, { size: size }, { children: finalPriceArray[1] ? finalPriceArray[1] : '00' }), void 0)] }), void 0)] }), void 0));
|
|
3668
3668
|
};
|
|
3669
|
-
var templateObject_1$
|
|
3669
|
+
var templateObject_1$2g;
|
|
3670
3670
|
|
|
3671
|
-
var FinalPriceStyledContainer = newStyled.div(templateObject_1$
|
|
3671
|
+
var FinalPriceStyledContainer = newStyled.div(templateObject_1$2f || (templateObject_1$2f = __makeTemplateObject(["\n display: flex;\n margin-left: -5px;\n"], ["\n display: flex;\n margin-left: -5px;\n"])));
|
|
3672
3672
|
var PriceLabelV2 = function (_a) {
|
|
3673
3673
|
var _b;
|
|
3674
3674
|
var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, color = _a.color, testId = _a.testId, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.originalPriceUnderlined, originalPriceUnderlined = _d === void 0 ? true : _d, _e = _a.size, size = _e === void 0 ? exports.ComponentSize.Small : _e, _f = _a.isClubOffer, isClubOffer = _f === void 0 ? false : _f, rest = __rest(_a, ["finalPrice", "originalPrice", "color", "testId", "originalPriceStyled", "originalPriceUnderlined", "size", "isClubOffer"]);
|
|
@@ -3701,11 +3701,11 @@ var PriceLabelV2 = function (_a) {
|
|
|
3701
3701
|
: (_b = "".concat(finalPrice)) === null || _b === void 0 ? void 0 : _b.split(currencySymbol)[1];
|
|
3702
3702
|
return (jsxRuntime.jsxs(Container$1o, __assign$1({}, rest, { children: [isOriginalPrice && !isClubOffer && jsxRuntime.jsx(OriginalPrice, {}, void 0), jsxRuntime.jsxs(FinalPriceStyledContainer, __assign$1({ "data-testid": getTestId$1(testId, 'final-product-price'), style: { marginLeft: '-3px' } }, { children: [jsxRuntime.jsxs(Price, __assign$1({ finalPriceStyled: true }, priceCommonProps, { size: size }, { children: [currencySymbol, finalPriceString] }), void 0), jsxRuntime.jsx(Price, __assign$1({ finalPriceStyledSmall: true }, priceCommonProps, { size: size }, { children: finalPriceArray[1] ? finalPriceArray[1] : '00' }), void 0)] }), void 0)] }), void 0));
|
|
3703
3703
|
};
|
|
3704
|
-
var templateObject_1$
|
|
3704
|
+
var templateObject_1$2f;
|
|
3705
3705
|
|
|
3706
|
-
var ContainerWrapper$2 = newStyled.div(templateObject_1$
|
|
3706
|
+
var ContainerWrapper$2 = newStyled.div(templateObject_1$2e || (templateObject_1$2e = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 2px;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 2px;\n"])));
|
|
3707
3707
|
var ImgWrapper = newStyled.div(templateObject_2$1C || (templateObject_2$1C = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n width: 50px auto;\n height: 20px;\n opacity: 0px;\n position: relative;\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n width: 50px auto;\n height: 20px;\n opacity: 0px;\n position: relative;\n"])));
|
|
3708
|
-
var templateObject_1$
|
|
3708
|
+
var templateObject_1$2e, templateObject_2$1C;
|
|
3709
3709
|
|
|
3710
3710
|
var ClubPriceMemberLabel = function (_a) {
|
|
3711
3711
|
var isClub = _a.isClub, _b = _a.isPDP, isPDP = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.isCollections, isCollections = _c === void 0 ? false : _c, rest = __rest(_a, ["isClub", "isPDP", "icon", "isCollections"]);
|
|
@@ -3714,6 +3714,12 @@ var ClubPriceMemberLabel = function (_a) {
|
|
|
3714
3714
|
return (jsxRuntime.jsx("div", { children: isClub ? (jsxRuntime.jsxs(ContainerWrapper$2, __assign$1({ id: "priceMemberLabelWrapper" }, { children: [PriceComponent, jsxRuntime.jsx(ImgWrapper, __assign$1({ id: "priceMemberLabelImgWrapper" }, { children: icon }), void 0)] }), void 0)) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: PriceComponent }, void 0)) }, void 0));
|
|
3715
3715
|
};
|
|
3716
3716
|
|
|
3717
|
+
var HorizontalDivider = newStyled.div(templateObject_1$2d || (templateObject_1$2d = __makeTemplateObject(["\n border: unset;\n outline: unset;\n background-color: var(--colors-shades-100-color);\n height: 1px;\n width: ", ";\n margin: 4% auto;\n"], ["\n border: unset;\n outline: unset;\n background-color: var(--colors-shades-100-color);\n height: 1px;\n width: ", ";\n margin: 4% auto;\n"])), function (_a) {
|
|
3718
|
+
var width = _a.width;
|
|
3719
|
+
return width !== null && width !== void 0 ? width : '100%';
|
|
3720
|
+
});
|
|
3721
|
+
var templateObject_1$2d;
|
|
3722
|
+
|
|
3717
3723
|
var Container$1n = newStyled.div(templateObject_1$2c || (templateObject_1$2c = __makeTemplateObject(["\n @keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n }\n\n display: inline-block;\n height: ", ";\n width: ", ";\n position: relative;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n\n ::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background-image: linear-gradient(\n 90deg,\n ", ",\n ", ",\n ", "\n );\n animation: shimmer 2s infinite;\n content: '';\n box-sizing: border-box;\n }\n"], ["\n @keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n }\n\n display: inline-block;\n height: ", ";\n width: ", ";\n position: relative;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n box-sizing: border-box;\n\n ::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background-image: linear-gradient(\n 90deg,\n ", ",\n ", ",\n ", "\n );\n animation: shimmer 2s infinite;\n content: '';\n box-sizing: border-box;\n }\n"])), function (_a) {
|
|
3718
3724
|
var height = _a.height;
|
|
3719
3725
|
return height !== null && height !== void 0 ? height : '1.5em';
|
|
@@ -22047,6 +22053,7 @@ exports.Filters = Filters;
|
|
|
22047
22053
|
exports.FitGuarantee = FitGuarantee;
|
|
22048
22054
|
exports.FitPredictor = FitPredictor;
|
|
22049
22055
|
exports.Global = Global;
|
|
22056
|
+
exports.HorizontalDivider = HorizontalDivider;
|
|
22050
22057
|
exports.HurryUp = HurryUp;
|
|
22051
22058
|
exports.Icon = Icon;
|
|
22052
22059
|
exports.IconButton = IconButton;
|