@trafilea/afrodita-components 6.5.9 → 6.5.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.js CHANGED
@@ -5497,7 +5497,7 @@ var PriceLabelV2 = function (_a) {
5497
5497
  var isOriginalPrice = originalPrice && isDiffFinalAndOriginalPrice;
5498
5498
  var isDiscount = discount && isDiffFinalAndOriginalPrice;
5499
5499
  var isClubOffer = clubOffer && isDiffFinalAndOriginalPrice;
5500
- var supportedCurrencies = ['A$', 'CA$', '£'];
5500
+ var supportedCurrencies = ['AU$', 'CA$', '£'];
5501
5501
  var currencySymbol = '$';
5502
5502
  if (typeof productFinalPrice === 'string') {
5503
5503
  supportedCurrencies.forEach(function (availableCurrency) {
@@ -18902,22 +18902,14 @@ var ButtonsContainer = newStyled.div(templateObject_1$c || (templateObject_1$c =
18902
18902
  var Row = newStyled.div(templateObject_2$8 || (templateObject_2$8 = __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"])));
18903
18903
  var templateObject_1$c, templateObject_2$8;
18904
18904
 
18905
- var getPreLabel = function (sizeLabel) {
18906
- if (sizeLabel === '3XL' || sizeLabel === '4XL') {
18907
- return 'Runs big - ';
18908
- }
18909
- if (sizeLabel === 'M' || sizeLabel === 'L' || sizeLabel === 'M / L') {
18910
- return 'Runs small - ';
18911
- }
18912
- return '';
18913
- };
18914
18905
  var SizeSelector = function (_a) {
18915
- var label = _a.label, sizes = _a.sizes, selectedValue = _a.selectedValue, onChange = _a.onChange, onClickSizeTip = _a.onClickSizeTip, _b = _a.inline, inline = _b === void 0 ? false : _b, width = _a.width, _c = _a.hasSizeGuide, hasSizeGuide = _c === void 0 ? false : _c;
18906
+ var _b;
18907
+ var label = _a.label, sizes = _a.sizes, selectedValue = _a.selectedValue, onChange = _a.onChange, onClickSizeTip = _a.onClickSizeTip, _c = _a.inline, inline = _c === void 0 ? false : _c, width = _a.width, _d = _a.hasSizeGuide, hasSizeGuide = _d === void 0 ? false : _d, sizeTipReferences = _a.sizeTipReferences;
18916
18908
  return (jsxs("div", __assign$1({ css: {
18917
18909
  display: 'flex',
18918
18910
  flexDirection: inline ? 'row' : 'column',
18919
18911
  alignItems: inline ? 'center' : 'start',
18920
- } }, { children: [jsxs(Text$8, __assign$1({ variant: "body", weight: "regular", size: "small", css: { alignSelf: inline ? 'start' : 'inherit', padding: inline ? '0.75rem 0' : '0' } }, { children: [label, !inline && (jsx(Text$8, __assign$1({ variant: "label", weight: "demi", size: "regular" }, { children: selectedValue.description }), void 0))] }), void 0), hasSizeGuide && (jsxs(Row, { children: [jsx(Icon.Actions.CircleInfo, { width: 1.2 }, void 0), jsx(Text$8, __assign$1({ variant: "body", weight: "demi", size: "small", css: { display: 'flex' } }, { children: "Sizing Tip:" }), void 0), jsxs(Text$8, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [getPreLabel(selectedValue.label), "Refer to our"] }), void 0), onClickSizeTip && (jsx(SizeFitGuide, { title: "Size and Fit Guide", onClick: onClickSizeTip, hideIcon: true }, void 0))] }, void 0)), jsx(ButtonsContainer, __assign$1({ inline: inline }, { children: sizes.map(function (size) {
18912
+ } }, { children: [jsxs(Text$8, __assign$1({ variant: "body", weight: "regular", size: "small", css: { alignSelf: inline ? 'start' : 'inherit', padding: inline ? '0.75rem 0' : '0' } }, { children: [label, !inline && (jsx(Text$8, __assign$1({ variant: "label", weight: "demi", size: "regular" }, { children: selectedValue.description }), void 0))] }), void 0), hasSizeGuide && (jsxs(Row, { children: [jsx(Icon.Actions.CircleInfo, { width: 1.2 }, void 0), jsx(Text$8, __assign$1({ variant: "body", weight: "demi", size: "small", css: { display: 'flex' } }, { children: "Sizing Tip:" }), void 0), jsx(Text$8, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: (_b = sizeTipReferences === null || sizeTipReferences === void 0 ? void 0 : sizeTipReferences[selectedValue.label]) !== null && _b !== void 0 ? _b : 'Refer to our' }), void 0), onClickSizeTip && (jsx(SizeFitGuide, { title: "Size and Fit Guide", onClick: onClickSizeTip, hideIcon: true }, void 0))] }, void 0)), jsx(ButtonsContainer, __assign$1({ inline: inline }, { children: sizes.map(function (size) {
18921
18913
  var active = !size.disabled && size.label === selectedValue.label;
18922
18914
  return (jsx(SelectorSecondary, { css: {
18923
18915
  padding: '0.75rem 1rem 0.625rem',