@trafilea/afrodita-components 6.49.6 → 6.49.7

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
@@ -3748,7 +3748,7 @@ var PriceLabelV2 = function (_a) {
3748
3748
  };
3749
3749
  var templateObject_1$2p;
3750
3750
 
3751
- var ContainerWrapper$2 = newStyled.div(templateObject_1$2o || (templateObject_1$2o = __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"])));
3751
+ var ContainerWrapper$3 = newStyled.div(templateObject_1$2o || (templateObject_1$2o = __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"])));
3752
3752
  var ImgWrapper = newStyled.div(templateObject_2$1J || (templateObject_2$1J = __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"])));
3753
3753
  var templateObject_1$2o, templateObject_2$1J;
3754
3754
 
@@ -3756,7 +3756,7 @@ var ClubPriceMemberLabel = function (_a) {
3756
3756
  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"]);
3757
3757
  var color = isClub ? '#882A2B' : '#292929';
3758
3758
  var PriceComponent = isPDP ? (jsxRuntime.jsx(PriceLabelV2, { originalPrice: rest.originalPrice, finalPrice: rest.finalPrice, color: color, isClubOffer: isCollections }, void 0)) : (jsxRuntime.jsx(PriceLabel, __assign$1({}, rest, { color: color, isClubOffer: isCollections }), void 0));
3759
- 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));
3759
+ return (jsxRuntime.jsx("div", { children: isClub ? (jsxRuntime.jsxs(ContainerWrapper$3, __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));
3760
3760
  };
3761
3761
 
3762
3762
  var HorizontalDivider = newStyled.div(templateObject_1$2n || (templateObject_1$2n = __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) {
@@ -20471,7 +20471,7 @@ var BasicAccordion = function (_a) {
20471
20471
  } }), void 0));
20472
20472
  };
20473
20473
 
20474
- var ContainerWrapper$1 = newStyled.div(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n max-height: 180px;\n width: auto;\n max-width: 450px;\n gap: 5px;\n @media (max-width: 480px) {\n gap: 0px;\n font-size: 12px !important;\n }\n"], ["\n display: flex;\n flex-direction: row;\n max-height: 180px;\n width: auto;\n max-width: 450px;\n gap: 5px;\n @media (max-width: 480px) {\n gap: 0px;\n font-size: 12px !important;\n }\n"])));
20474
+ var ContainerWrapper$2 = newStyled.div(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n max-height: 180px;\n width: auto;\n max-width: 450px;\n gap: 5px;\n @media (max-width: 480px) {\n gap: 0px;\n font-size: 12px !important;\n }\n"], ["\n display: flex;\n flex-direction: row;\n max-height: 180px;\n width: auto;\n max-width: 450px;\n gap: 5px;\n @media (max-width: 480px) {\n gap: 0px;\n font-size: 12px !important;\n }\n"])));
20475
20475
  var ImageWrapper = newStyled.div(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n max-width: 132px;\n max-height: 160px;\n border-radius: 6px;\n @media (max-width: 480px) {\n width: 102px;\n height: 123px;\n }\n"], ["\n max-width: 132px;\n max-height: 160px;\n border-radius: 6px;\n @media (max-width: 480px) {\n width: 102px;\n height: 123px;\n }\n"])));
20476
20476
  var ImageComponent = newStyled(Image$3)(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n max-width: 132px;\n max-height: 160px;\n border-radius: 6px;\n position: relative;\n @media (max-width: 480px) {\n max-width: 102px;\n max-height: 123px;\n }\n"], ["\n max-width: 132px;\n max-height: 160px;\n border-radius: 6px;\n position: relative;\n @media (max-width: 480px) {\n max-width: 102px;\n max-height: 123px;\n }\n"])));
20477
20477
  var RightComponentWrapper = newStyled.div(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 4px;\n padding: 5px;\n @media (max-width: 401px) {\n gap: 0px;\n padding: 0px;\n }\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 4px;\n padding: 5px;\n @media (max-width: 401px) {\n gap: 0px;\n padding: 0px;\n }\n"])));
@@ -20482,7 +20482,7 @@ var templateObject_1$r, templateObject_2$k, templateObject_3$k, templateObject_4
20482
20482
 
20483
20483
  function CartItemCard(_a) {
20484
20484
  var style = _a.style, className = _a.className, children = _a.children;
20485
- return (jsxRuntime.jsx(ContainerWrapper$1, __assign$1({ style: style, className: className }, { children: children }), void 0));
20485
+ return (jsxRuntime.jsx(ContainerWrapper$2, __assign$1({ style: style, className: className }, { children: children }), void 0));
20486
20486
  }
20487
20487
  var CartItemImage = function (_a) {
20488
20488
  var alt = _a.alt, src = _a.src, className = _a.className, sizes = _a.sizes;
@@ -20717,7 +20717,7 @@ var ClubOfferSelector2 = function (_a) {
20717
20717
  }, useV2Style: true, onChange: function () { }, disabled: disabledInputs && disabledInputs.includes(radioIds.clubOfferSelector2.id) }, void 0) }, void 0), jsxRuntime.jsx(StyledPrice$1, { testId: "subscription", finalPrice: "".concat(currencySymbol).concat(decimalFormat(Number(clubOfferFinalPrice))), selected: isSelected, size: exports.ComponentSize.Large, originalPrice: "".concat(currencySymbol).concat(decimalFormat(Number(listPrice))) }, void 0)] }), void 0), isSelected && (jsxRuntime.jsx(BenefitsContainer$1, { children: jsxRuntime.jsx(BenefitText, { variant: "body", dangerouslySetInnerHTML: { __html: updatedClubOfferBenefits[0] } }, void 0) }, void 0))] }), void 0), isSelected && (jsxRuntime.jsxs(TermsText, __assign$1({ variant: "body" }, { children: [updatedClubOfferBenefits[1], jsxRuntime.jsxs("span", { children: ["Terms ", jsxRuntime.jsx("a", __assign$1({ href: termsTextLink }, { children: "here" }), void 0), "."] }, void 0)] }), void 0)), jsxRuntime.jsxs(SinglePurchaseContainer$1, __assign$1({ isNoMember: true, "data-testid": "single-purchase-block", selected: radioIds.oneTime.id === radioCheck.id, onClick: function () { return handleChange(radioIds.oneTime, 'radio'); } }, { children: [jsxRuntime.jsx(RadioInput, { label: singlePurchaseLabel, name: radioIds.oneTime.id, id: radioIds.oneTime.id, value: radioIds.oneTime.id, checked: radioIds.oneTime.id === radioCheck.id, size: exports.ComponentSize.Medium, onChange: function () { }, useV2Style: true, disabled: disabledInputs && disabledInputs.includes(radioIds.oneTime.id) }, void 0), jsxRuntime.jsx(StyledPrice$1, { isNoMember: true, testId: "single-purchase", finalPrice: "".concat(currencySymbol).concat(decimalFormat(Number(discountedPrice))), selected: radioIds.oneTime.id === radioCheck.id, size: exports.ComponentSize.Large, originalPrice: "".concat(currencySymbol).concat(decimalFormat(Number(listPrice))) }, void 0)] }), void 0)] }), void 0));
20718
20718
  };
20719
20719
 
20720
- var ContainerWrapper = newStyled.div(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding: 8px 10px 8px 15px;\n background: white;\n gap: 10px;\n border-radius: 6px;\n background: ", ";\n border: 1px solid ", ";\n"], ["\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding: 8px 10px 8px 15px;\n background: white;\n gap: 10px;\n border-radius: 6px;\n background: ", ";\n border: 1px solid ", ";\n"])), function (_a) {
20720
+ var ContainerWrapper$1 = newStyled.div(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding: 8px 10px 8px 15px;\n background: white;\n gap: 10px;\n border-radius: 6px;\n background: ", ";\n border: 1px solid ", ";\n"], ["\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding: 8px 10px 8px 15px;\n background: white;\n gap: 10px;\n border-radius: 6px;\n background: ", ";\n border: 1px solid ", ";\n"])), function (_a) {
20721
20721
  var $checked = _a.$checked;
20722
20722
  return ($checked ? '#FFF3E3' : '#FAFAFA');
20723
20723
  }, function (_a) {
@@ -20732,7 +20732,7 @@ var templateObject_1$o, templateObject_2$h, templateObject_3$h, templateObject_4
20732
20732
 
20733
20733
  function Card(_a) {
20734
20734
  var children = _a.children, link = _a.link, icon = _a.icon, _b = _a.isChecked, isChecked = _b === void 0 ? false : _b, bodyCopy = _a.bodyCopy, titleCopy = _a.titleCopy, style = _a.style, _c = _a.termsText, termsText = _c === void 0 ? 'Terms here.' : _c;
20735
- return (jsxRuntime.jsxs(ContainerWrapper, __assign$1({ "$checked": isChecked, style: style }, { children: [jsxRuntime.jsxs(CardHeaderWrapper, { children: [jsxRuntime.jsxs(ClubCopyWrapper, { children: [icon, jsxRuntime.jsx(ClubCopyTextWrapper, { children: titleCopy }, void 0)] }, void 0), jsxRuntime.jsx("div", { children: children }, void 0)] }, void 0), !isChecked && (jsxRuntime.jsxs(CardBody, __assign$1({ id: "joinClubCardBody" }, { children: [bodyCopy, ' ', jsxRuntime.jsx("a", __assign$1({ href: link, target: "_blank", rel: "noreferrer" }, { children: termsText }), void 0)] }), void 0))] }), void 0));
20735
+ return (jsxRuntime.jsxs(ContainerWrapper$1, __assign$1({ "$checked": isChecked, style: style }, { children: [jsxRuntime.jsxs(CardHeaderWrapper, { children: [jsxRuntime.jsxs(ClubCopyWrapper, { children: [icon, jsxRuntime.jsx(ClubCopyTextWrapper, { children: titleCopy }, void 0)] }, void 0), jsxRuntime.jsx("div", { children: children }, void 0)] }, void 0), !isChecked && (jsxRuntime.jsxs(CardBody, __assign$1({ id: "joinClubCardBody" }, { children: [bodyCopy, ' ', jsxRuntime.jsx("a", __assign$1({ href: link, target: "_blank", rel: "noreferrer" }, { children: termsText }), void 0)] }), void 0))] }), void 0));
20736
20736
  }
20737
20737
 
20738
20738
  var StyledButton = newStyled.button(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n padding: 10px 20px;\n border-radius: 8px;\n background: var(--shapermint-default-complementary-wine-882-a-2-b, #882a2b);\n color: var(--neutrals-white-ffffff, #fff);\n text-align: center;\n font-family: 'Avenir Next';\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 18px;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n ", ";\n"], ["\n padding: 10px 20px;\n border-radius: 8px;\n background: var(--shapermint-default-complementary-wine-882-a-2-b, #882a2b);\n color: var(--neutrals-white-ffffff, #fff);\n text-align: center;\n font-family: 'Avenir Next';\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 18px;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n ", ";\n"])), function (_a) {
@@ -22443,17 +22443,24 @@ var SubscriptionPlanSelector = function (_a) {
22443
22443
  }, useV2Style: true, checked: !radiosStatuses.oneTime.disabled && radiosStatuses.oneTime.checked, disabled: radiosStatuses.oneTime.disabled }, void 0), jsxRuntime.jsx(StyledPrice, { testId: "single-purchase", finalPrice: "$".concat(decimalFormat(Number(discountedPrice))), disabled: radiosStatuses.oneTime.disabled, highlighted: !radiosStatuses.oneTime.disabled && radiosStatuses.oneTime.highlighted, size: exports.ComponentSize.Large, originalPrice: "$".concat(decimalFormat(Number(listPrice))) }, void 0)] }), void 0)] }), void 0));
22444
22444
  };
22445
22445
 
22446
- newStyled.div(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n padding: 3%;\n gap: 10px;\n border-radius: 2px 0px 0px 0px;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n text-transform: capitalize;\n"], ["\n width: 100%;\n height: ", ";\n padding: 3%;\n gap: 10px;\n border-radius: 2px 0px 0px 0px;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n text-transform: capitalize;\n"])), function (_a) {
22446
+ var GreetingsWrapper = newStyled.div(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n padding: 3%;\n gap: 10px;\n border-radius: 2px 0px 0px 0px;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n text-transform: capitalize;\n"], ["\n width: 100%;\n height: ", ";\n padding: 3%;\n gap: 10px;\n border-radius: 2px 0px 0px 0px;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n text-transform: capitalize;\n"])), function (_a) {
22447
22447
  var height = _a.height;
22448
22448
  return (height ? height : '30px');
22449
22449
  }, function (_a) {
22450
22450
  var bgColor = _a.bgColor;
22451
22451
  return (bgColor ? bgColor : '#BDD7D7');
22452
22452
  });
22453
- newStyled.div(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 15px;\n"], ["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 15px;\n"])));
22454
- newStyled(Text$7)(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n font-size: 14px !important;\n font-weight: 600;\n line-height: 18px;\n text-align: center;\n\n @media screen and (max-width: 390px) {\n font-size: 12px !important;\n }\n"], ["\n font-size: 14px !important;\n font-weight: 600;\n line-height: 18px;\n text-align: center;\n\n @media screen and (max-width: 390px) {\n font-size: 12px !important;\n }\n"])));
22453
+ var ContainerWrapper = newStyled.div(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 15px;\n"], ["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 15px;\n"])));
22454
+ var LabelTextWrapper$1 = newStyled(Text$7)(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n font-size: 14px !important;\n font-weight: 600;\n line-height: 18px;\n text-align: center;\n\n @media screen and (max-width: 390px) {\n font-size: 12px !important;\n }\n"], ["\n font-size: 14px !important;\n font-weight: 600;\n line-height: 18px;\n text-align: center;\n\n @media screen and (max-width: 390px) {\n font-size: 12px !important;\n }\n"])));
22455
22455
  var templateObject_1$1, templateObject_2$1, templateObject_3$1;
22456
22456
 
22457
+ function GreetingsCard(_a) {
22458
+ var text = _a.text, height = _a.height, bgColor = _a.bgColor;
22459
+ return (jsxRuntime.jsx(ContainerWrapper, __assign$1({ id: "greetingsCard" }, { children: jsxRuntime.jsx(GreetingsWrapper, __assign$1({ height: height, bgColor: bgColor, style: {
22460
+ textAlign: 'center',
22461
+ } }, { children: jsxRuntime.jsx(LabelTextWrapper$1, __assign$1({ variant: "tag", weight: "demi" }, { children: text }), void 0) }), void 0) }), void 0));
22462
+ }
22463
+
22457
22464
  var Container = newStyled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n"])));
22458
22465
  var BodyContainer = newStyled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 100%;\n margin-top: 12px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 100%;\n margin-top: 12px;\n"])));
22459
22466
  var DescriptionWrapper = newStyled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n"], ["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n"])));
@@ -22534,6 +22541,7 @@ exports.Filters = Filters;
22534
22541
  exports.FitGuarantee = FitGuarantee;
22535
22542
  exports.FitPredictor = FitPredictor;
22536
22543
  exports.Global = Global;
22544
+ exports.GreetingsCard = GreetingsCard;
22537
22545
  exports.HorizontalDivider = HorizontalDivider;
22538
22546
  exports.HurryUp = HurryUp;
22539
22547
  exports.Icon = Icon;