@trafilea/afrodita-components 6.35.1 → 6.35.3

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.
@@ -3541,7 +3541,7 @@ var PriceLabelV3 = function (_a) {
3541
3541
  var isOriginalPrice = originalPrice && isDiffFinalAndOriginalPrice;
3542
3542
  var isDiscount = discount && isDiffFinalAndOriginalPrice;
3543
3543
  var isClubOffer = clubOffer && isDiffFinalAndOriginalPrice;
3544
- var supportedCurrencies = ['A$', 'CA$', '£'];
3544
+ var supportedCurrencies = ['AU$', 'CA$', '£'];
3545
3545
  var currencySymbol = '$';
3546
3546
  if (typeof finalPrice === 'string') {
3547
3547
  supportedCurrencies.forEach(function (availableCurrency) {
@@ -3559,7 +3559,7 @@ var PriceLabelV3 = function (_a) {
3559
3559
  size: ComponentSize.Small,
3560
3560
  color: isClubOffer
3561
3561
  ? 'var(--colors-pallete-wine-color)'
3562
- : color || theme.colors.pallete.secondary.color,
3562
+ : color !== null && color !== void 0 ? color : theme.colors.pallete.secondary.color,
3563
3563
  weight: 700,
3564
3564
  };
3565
3565
  var originalPriceNum, finalPriceNum;
@@ -7082,7 +7082,7 @@ var renderOptions$1 = function (options, showCross) {
7082
7082
  };
7083
7083
  var SingleColorPicker = function (_a) {
7084
7084
  var options = _a.options, selectedValue = _a.selectedValue, label = _a.label, onChange = _a.onChange, _b = _a.inline, inline = _b === void 0 ? false : _b, _c = _a.showCross, showCross = _c === void 0 ? false : _c;
7085
- return (jsxs(ColorRadioGroup$1, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsx(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.63rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: renderOptions$1(options, showCross) }), void 0)] }), void 0));
7085
+ return (jsxs(ColorRadioGroup$1, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsx(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.5rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: renderOptions$1(options, showCross) }), void 0)] }), void 0));
7086
7086
  };
7087
7087
 
7088
7088
  var ColorPickerWithTooltip = function (_a) {
@@ -20220,7 +20220,7 @@ var ButtonsContainer = newStyled.div(templateObject_1$p || (templateObject_1$p =
20220
20220
  var inline = _a.inline;
20221
20221
  return (inline ? '0 0 0 10px' : '8px 0 0 0');
20222
20222
  });
20223
- var Row = newStyled.div(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n gap: 5px;\n display: flex;\n margin: 5px 0 3px;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"], ["\n gap: 5px;\n display: flex;\n margin: 5px 0 3px;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"])));
20223
+ var Row = newStyled.div(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n gap: 5px;\n display: flex;\n margin: 8px 0 0;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"], ["\n gap: 5px;\n display: flex;\n margin: 8px 0 0;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"])));
20224
20224
  var templateObject_1$p, templateObject_2$l;
20225
20225
 
20226
20226
  var SizeSelector = function (_a) {
package/build/index.js CHANGED
@@ -3567,7 +3567,7 @@ var PriceLabelV3 = function (_a) {
3567
3567
  var isOriginalPrice = originalPrice && isDiffFinalAndOriginalPrice;
3568
3568
  var isDiscount = discount && isDiffFinalAndOriginalPrice;
3569
3569
  var isClubOffer = clubOffer && isDiffFinalAndOriginalPrice;
3570
- var supportedCurrencies = ['A$', 'CA$', '£'];
3570
+ var supportedCurrencies = ['AU$', 'CA$', '£'];
3571
3571
  var currencySymbol = '$';
3572
3572
  if (typeof finalPrice === 'string') {
3573
3573
  supportedCurrencies.forEach(function (availableCurrency) {
@@ -3585,7 +3585,7 @@ var PriceLabelV3 = function (_a) {
3585
3585
  size: exports.ComponentSize.Small,
3586
3586
  color: isClubOffer
3587
3587
  ? 'var(--colors-pallete-wine-color)'
3588
- : color || theme.colors.pallete.secondary.color,
3588
+ : color !== null && color !== void 0 ? color : theme.colors.pallete.secondary.color,
3589
3589
  weight: 700,
3590
3590
  };
3591
3591
  var originalPriceNum, finalPriceNum;
@@ -7108,7 +7108,7 @@ var renderOptions$1 = function (options, showCross) {
7108
7108
  };
7109
7109
  var SingleColorPicker = function (_a) {
7110
7110
  var options = _a.options, selectedValue = _a.selectedValue, label = _a.label, onChange = _a.onChange, _b = _a.inline, inline = _b === void 0 ? false : _b, _c = _a.showCross, showCross = _c === void 0 ? false : _c;
7111
- return (jsxs(ColorRadioGroup$1, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsx(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.63rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: renderOptions$1(options, showCross) }), void 0)] }), void 0));
7111
+ return (jsxs(ColorRadioGroup$1, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsx(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.5rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: renderOptions$1(options, showCross) }), void 0)] }), void 0));
7112
7112
  };
7113
7113
 
7114
7114
  var ColorPickerWithTooltip = function (_a) {
@@ -20246,7 +20246,7 @@ var ButtonsContainer = newStyled.div(templateObject_1$p || (templateObject_1$p =
20246
20246
  var inline = _a.inline;
20247
20247
  return (inline ? '0 0 0 10px' : '8px 0 0 0');
20248
20248
  });
20249
- var Row = newStyled.div(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n gap: 5px;\n display: flex;\n margin: 5px 0 3px;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"], ["\n gap: 5px;\n display: flex;\n margin: 5px 0 3px;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"])));
20249
+ var Row = newStyled.div(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n gap: 5px;\n display: flex;\n margin: 8px 0 0;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"], ["\n gap: 5px;\n display: flex;\n margin: 8px 0 0;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"])));
20250
20250
  var templateObject_1$p, templateObject_2$l;
20251
20251
 
20252
20252
  var SizeSelector = function (_a) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "6.35.1",
6
+ "version": "6.35.3",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",