@trafilea/afrodita-components 6.38.9 → 6.38.11
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 +4 -0
- package/build/index.esm.js +5 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -4
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +4 -0
- package/build/theme/revel.theme.js +3 -0
- package/build/theme/shapermint.theme.d.ts +4 -0
- package/build/theme/shapermint.theme.js +3 -0
- package/build/theme/thebodcon.theme.d.ts +4 -0
- package/build/theme/thebodcon.theme.js +4 -0
- package/build/theme/thespadr.theme.d.ts +4 -0
- package/build/theme/thespadr.theme.js +3 -0
- package/build/theme/truekind.theme.d.ts +4 -0
- package/build/theme/truekind.theme.js +3 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1474,6 +1474,9 @@ declare type Theme = {
|
|
|
1474
1474
|
typography: ThemeTypography;
|
|
1475
1475
|
fonts: ThemeFonts;
|
|
1476
1476
|
assets: ThemeAssets;
|
|
1477
|
+
label: {
|
|
1478
|
+
member: string;
|
|
1479
|
+
};
|
|
1477
1480
|
};
|
|
1478
1481
|
declare type ThemeBreakpoints = {
|
|
1479
1482
|
mobile: number;
|
|
@@ -1527,6 +1530,7 @@ declare type ThemeColors = {
|
|
|
1527
1530
|
950: ThemeBasicPallete;
|
|
1528
1531
|
990: ThemeBasicPallete;
|
|
1529
1532
|
1000?: ThemeBasicPallete;
|
|
1533
|
+
1010?: ThemeBasicPallete;
|
|
1530
1534
|
};
|
|
1531
1535
|
semantic: {
|
|
1532
1536
|
positive: ThemeColorPallete;
|
package/build/index.esm.js
CHANGED
|
@@ -6604,8 +6604,9 @@ var PriceWithTagContainer = newStyled.span(templateObject_5$D || (templateObject
|
|
|
6604
6604
|
var RegularPriceTag = function () {
|
|
6605
6605
|
return jsx$1(RegularPriceTagSpan, { children: "REGULAR PRICE" }, void 0);
|
|
6606
6606
|
};
|
|
6607
|
-
var ClubPriceTag = function () {
|
|
6608
|
-
|
|
6607
|
+
var ClubPriceTag = function (_a) {
|
|
6608
|
+
var label = _a.label;
|
|
6609
|
+
return jsx$1(ClubPriceTagSpan, { children: label || 'CLUB MEMBERS' }, void 0);
|
|
6609
6610
|
};
|
|
6610
6611
|
function getTestId() {
|
|
6611
6612
|
var args = [];
|
|
@@ -6649,9 +6650,9 @@ var PriceLabelV4 = function (_a) {
|
|
|
6649
6650
|
: ComponentSize.XSmall;
|
|
6650
6651
|
return (jsx$1(Price, __assign$1({ size: sizeProp, color: theme.component.pricing.priceLabel.price.originalPriceColor, underlined: originalPriceUnderlined, "data-testid": getTestId(testId, 'original-product-price'), theme: theme }, { children: originalPrice }), void 0));
|
|
6651
6652
|
};
|
|
6652
|
-
return (jsxs$1(Container$1o, __assign$1({}, rest, { children: [clubStyle && !styledPrice ? (jsxs$1(PriceContainer$1, { children: [jsxs$1(PriceWithTagContainer, { children: [jsx$1(OriginalPrice, {}, void 0), jsx$1(RegularPriceTag, {}, void 0)] }, void 0), jsxs$1(PriceWithTagContainer, { children: [jsx$1(Price, __assign$1({ margin: true, "data-testid": getTestId(testId, 'final-product-price') }, priceCommonProps, { style: finalPriceStyle, size: size }, { children: clubPrice }), void 0), jsx$1(ClubPriceTag, {}, void 0)] }, void 0)] }, void 0)) : (jsxs$1(PriceContainer$1, { children: [jsxs$1(PriceWithTagContainer, { children: [jsx$1(OriginalPrice, {}, void 0), jsx$1(RegularPriceTag, {}, void 0)] }, void 0), jsxs$1(PriceWithTagContainer, { children: [jsxs$1(PriceContainerV2, { children: [jsx$1(Price, __assign$1({ margin: true, finalPriceStyledSmall: true, style: { marginTop: '-5px', color: '#c64844' } }, priceCommonProps, { size: size, "data-testid": getTestId(testId, 'final-product-price') }, { children: currencySymbol }), void 0), jsxs$1(Price, __assign$1({ finalPriceStyled: true }, priceCommonProps, { size: size, style: { color: '#c64844' } }, { children: [finalPriceArray[0]
|
|
6653
|
+
return (jsxs$1(Container$1o, __assign$1({}, rest, { children: [clubStyle && !styledPrice ? (jsxs$1(PriceContainer$1, { children: [jsxs$1(PriceWithTagContainer, { children: [jsx$1(OriginalPrice, {}, void 0), jsx$1(RegularPriceTag, {}, void 0)] }, void 0), jsxs$1(PriceWithTagContainer, { children: [jsx$1(Price, __assign$1({ margin: true, "data-testid": getTestId(testId, 'final-product-price') }, priceCommonProps, { style: finalPriceStyle, size: size }, { children: clubPrice }), void 0), jsx$1(ClubPriceTag, { label: theme.label.member }, void 0)] }, void 0)] }, void 0)) : (jsxs$1(PriceContainer$1, { children: [jsxs$1(PriceWithTagContainer, { children: [jsx$1(OriginalPrice, {}, void 0), jsx$1(RegularPriceTag, {}, void 0)] }, void 0), jsxs$1(PriceWithTagContainer, { children: [jsxs$1(PriceContainerV2, { children: [jsx$1(Price, __assign$1({ margin: true, finalPriceStyledSmall: true, style: { marginTop: '-5px', color: '#c64844' } }, priceCommonProps, { size: size, "data-testid": getTestId(testId, 'final-product-price') }, { children: currencySymbol }), void 0), jsxs$1(Price, __assign$1({ finalPriceStyled: true }, priceCommonProps, { size: size, style: { color: '#c64844' } }, { children: [finalPriceArray[0]
|
|
6653
6654
|
? finalPriceArray[0]
|
|
6654
|
-
: (_b = "".concat(productFinalPrice)) === null || _b === void 0 ? void 0 : _b.split(currencySymbol)[1], "."] }), void 0), jsx$1(Price, __assign$1({ finalPriceStyledSmall: true, style: { marginTop: '-6px', color: '#c64844' } }, priceCommonProps, { size: size }, { children: finalPriceArray[1] ? finalPriceArray[1] : '00' }), void 0)] }, void 0), jsx$1(ClubPriceTag, {}, void 0)] }, void 0)] }, void 0)), discount && (jsx$1(TagContainer, __assign$1({ size: size }, { children: jsx$1(DiscountTag$3, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }), void 0));
|
|
6655
|
+
: (_b = "".concat(productFinalPrice)) === null || _b === void 0 ? void 0 : _b.split(currencySymbol)[1], "."] }), void 0), jsx$1(Price, __assign$1({ finalPriceStyledSmall: true, style: { marginTop: '-6px', color: '#c64844' } }, priceCommonProps, { size: size }, { children: finalPriceArray[1] ? finalPriceArray[1] : '00' }), void 0)] }, void 0), jsx$1(ClubPriceTag, { label: theme.label.member }, void 0)] }, void 0)] }, void 0)), discount && (jsx$1(TagContainer, __assign$1({ size: size }, { children: jsx$1(DiscountTag$3, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }), void 0));
|
|
6655
6656
|
};
|
|
6656
6657
|
var templateObject_1$1E, templateObject_2$1f, templateObject_3$_, templateObject_4$O, templateObject_5$D;
|
|
6657
6658
|
|