@trafilea/afrodita-components 5.0.0-beta.256 → 5.0.0-beta.257
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.esm.js +9 -5
- package/build/index.esm.js.map +1 -1
- package/build/index.js +9 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -5376,16 +5376,20 @@ var PriceLabelV2 = function (_a) {
|
|
|
5376
5376
|
: ['', ''];
|
|
5377
5377
|
var priceCommonProps = {
|
|
5378
5378
|
size: ComponentSize.Small,
|
|
5379
|
-
color:
|
|
5379
|
+
color: isClubOffer
|
|
5380
|
+
? 'var(--colors-pallete-wine-color)'
|
|
5381
|
+
: color || theme.colors.pallete.secondary.color,
|
|
5380
5382
|
weight: 700,
|
|
5381
5383
|
};
|
|
5382
5384
|
var OriginalPrice = function () { return (jsx$1(Price, __assign$1({ size: originalPriceStyled ? size : ComponentSize.Small, color: theme.colors.shades['300'].color, margin: true, underlined: originalPriceUnderlined, "data-testid": getTestId(testId, 'original-product-price') }, { children: originalPrice }), void 0)); };
|
|
5383
5385
|
return (jsxs$1(Container$_, { children: [isOriginalPrice && jsx$1(OriginalPrice, {}, void 0), jsxs$1(FinalPriceStyledContainer, __assign$1({ "data-testid": getTestId(testId, 'final-product-price') }, { children: [jsx$1(Price, __assign$1({ margin: true, finalPriceStyledSmall: true, style: { fontSize: '14px', marginTop: '-5px' } }, priceCommonProps, { children: currencySymbol }), void 0), jsx$1(Price, __assign$1({ finalPriceStyled: true }, priceCommonProps, { children: finalPriceArray[0] ? finalPriceArray[0] : (_b = "".concat(finalPrice)) === null || _b === void 0 ? void 0 : _b.split(currencySymbol)[1] }), void 0), jsx$1(Price, __assign$1({ finalPriceStyledSmall: true, style: { fontSize: '14px', marginTop: '-6px' } }, priceCommonProps, { children: finalPriceArray[1] ? finalPriceArray[1] : '00' }), void 0)] }), void 0), isDiscount && (jsx$1(TagContainer, __assign$1({ size: ComponentSize.Small }, { children: discount && (jsx$1(DiscountTag, __assign$1({}, discount, { size: ComponentSize.Medium, style: { fontSize: '14px', letterSpacing: '-0.05rem' } }), void 0)) }), void 0)), isClubOffer && (jsx$1(TagContainer, __assign$1({ size: ComponentSize.Medium }, { children: clubOffer && (jsx$1(ClubOfferTag, __assign$1({}, clubOffer, { size: ComponentSize.Small, style: {
|
|
5384
|
-
borderRadius: '
|
|
5385
|
-
width: '
|
|
5386
|
-
height: '
|
|
5386
|
+
borderRadius: '8px',
|
|
5387
|
+
width: '107px',
|
|
5388
|
+
height: '28px',
|
|
5387
5389
|
alignItems: 'center',
|
|
5388
|
-
padding: '
|
|
5390
|
+
padding: '3px 8px 3px 8px',
|
|
5391
|
+
fontSize: '14px',
|
|
5392
|
+
lineHeight: '22px',
|
|
5389
5393
|
} }), void 0)) }), void 0))] }, void 0));
|
|
5390
5394
|
};
|
|
5391
5395
|
var templateObject_1$1n;
|