@trafilea/afrodita-components 6.16.2 → 6.16.4

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
@@ -3534,6 +3534,8 @@ var ChevronLeftVariant = function (props) { return (jsxRuntime.jsx(Icon$1, __ass
3534
3534
 
3535
3535
  var ChevronRight = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "arrows/chevron_right" }), void 0)); };
3536
3536
 
3537
+ var ChevronRightGrey = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "arrows/chevron_right_grey" }), void 0)); };
3538
+
3537
3539
  var ChevronRightLite = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "arrows/chevron_right_lite" }), void 0)); };
3538
3540
 
3539
3541
  var ChevronRightVariant = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "arrows/chevron_right_variant" }), void 0)); };
@@ -3572,6 +3574,7 @@ var Arrows = /*#__PURE__*/Object.freeze({
3572
3574
  ChevronLeftLite: ChevronLeftLite,
3573
3575
  ChevronLeftVariant: ChevronLeftVariant,
3574
3576
  ChevronRight: ChevronRight,
3577
+ ChevronRightGrey: ChevronRightGrey,
3575
3578
  ChevronRightLite: ChevronRightLite,
3576
3579
  ChevronRightVariant: ChevronRightVariant,
3577
3580
  ChevronUp: ChevronUp,
@@ -3864,6 +3867,8 @@ var ShoppingBagV2 = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1
3864
3867
 
3865
3868
  var ShoppingBagV3 = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "navigation/shopping_bag_v3" }), void 0)); };
3866
3869
 
3870
+ var ShoppingBagV4 = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "navigation/shopping_bag_v4" }), void 0)); };
3871
+
3867
3872
  var ShoppingCart = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "navigation/shopping_cart" }), void 0)); };
3868
3873
 
3869
3874
  var ShoppingCartV2 = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "navigation/shopping_cart_v2" }), void 0)); };
@@ -3901,6 +3906,7 @@ var Navigation = /*#__PURE__*/Object.freeze({
3901
3906
  ShoppingBag: ShoppingBag,
3902
3907
  ShoppingBagV2: ShoppingBagV2,
3903
3908
  ShoppingBagV3: ShoppingBagV3,
3909
+ ShoppingBagV4: ShoppingBagV4,
3904
3910
  ShoppingCart: ShoppingCart,
3905
3911
  ShoppingCartV2: ShoppingCartV2,
3906
3912
  SlideDot: SlideDot$1,
@@ -3918,6 +3924,8 @@ var CallUs = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, pro
3918
3924
 
3919
3925
  var Chat = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/chat" }), void 0); };
3920
3926
 
3927
+ var Coupons = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/coupons" }), void 0); };
3928
+
3921
3929
  var Email = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/email" }), void 0); };
3922
3930
 
3923
3931
  var ExpressShipping = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/express_shipping" }), void 0)); };
@@ -3932,6 +3940,8 @@ var GetDiscount = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}
3932
3940
 
3933
3941
  var HasselFreeReturns = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/hassel_free_returns" }), void 0)); };
3934
3942
 
3943
+ var HelpCenter = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/help_center" }), void 0); };
3944
+
3935
3945
  var Loading = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({ testId: "Loading" }, props, { name: "other/loading" }), void 0)); };
3936
3946
 
3937
3947
  var McAfee = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/mc_afee" }), void 0); };
@@ -3974,6 +3984,7 @@ var Other = /*#__PURE__*/Object.freeze({
3974
3984
  BodConMobileLabel: BodConMobileLabel,
3975
3985
  CallUs: CallUs,
3976
3986
  Chat: Chat,
3987
+ Coupons: Coupons,
3977
3988
  Email: Email,
3978
3989
  ExpressShipping: ExpressShipping,
3979
3990
  FitGuarantee: FitGuarantee$1,
@@ -3981,6 +3992,7 @@ var Other = /*#__PURE__*/Object.freeze({
3981
3992
  FreeExchange: FreeExchange,
3982
3993
  GetDiscount: GetDiscount,
3983
3994
  HasselFreeReturns: HasselFreeReturns,
3995
+ HelpCenter: HelpCenter,
3984
3996
  Loading: Loading,
3985
3997
  McAfee: McAfee,
3986
3998
  Play: Play,
@@ -4089,29 +4101,32 @@ var PDP = /*#__PURE__*/Object.freeze({
4089
4101
  TrustBadge: TrustBadge
4090
4102
  });
4091
4103
 
4092
- var Visa = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/visa" }), void 0); };
4093
-
4094
- var MasterCard = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/master_card" }), void 0); };
4104
+ var Amazon = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({ testId: "AmazonIcon" }, props, { name: "payment/amazon" }), void 0)); };
4095
4105
 
4096
4106
  var Amex = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/amex" }), void 0); };
4097
4107
 
4098
4108
  var JCB = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/jcb" }), void 0); };
4099
4109
 
4100
- var Paypal = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({ testId: "PaypalIcon" }, props, { name: "payment/paypal" }), void 0)); };
4101
-
4102
4110
  var Klarna = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/klarna" }), void 0); };
4103
4111
 
4104
- var Amazon = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({ testId: "AmazonIcon" }, props, { name: "payment/amazon" }), void 0)); };
4112
+ var MasterCard = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/master_card" }), void 0); };
4113
+
4114
+ var PaymentMethods = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/payment_methods" }), void 0)); };
4115
+
4116
+ var Paypal = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({ testId: "PaypalIcon" }, props, { name: "payment/paypal" }), void 0)); };
4117
+
4118
+ var Visa = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "payment/visa" }), void 0); };
4105
4119
 
4106
4120
  var Payment = /*#__PURE__*/Object.freeze({
4107
4121
  __proto__: null,
4108
- Visa: Visa,
4109
- MasterCard: MasterCard,
4122
+ Amazon: Amazon,
4110
4123
  Amex: Amex,
4111
4124
  JCB: JCB,
4112
- Paypal: Paypal,
4113
4125
  Klarna: Klarna,
4114
- Amazon: Amazon
4126
+ MasterCard: MasterCard,
4127
+ PaymentMethods: PaymentMethods,
4128
+ Paypal: Paypal,
4129
+ Visa: Visa
4115
4130
  });
4116
4131
 
4117
4132
  var SlideDot = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "slidedots/slide_dot" }), void 0); };
@@ -4678,11 +4693,11 @@ var FlexStart = newStyled.div(templateObject_5$w || (templateObject_5$w = __make
4678
4693
  var templateObject_1$1R, templateObject_2$1f, templateObject_3$Z, templateObject_4$K, templateObject_5$w;
4679
4694
 
4680
4695
  var _this$1 = undefined;
4681
- var Coupon = function (_a) {
4682
- var imgSrc = _a.imgSrc, title = _a.title, content = _a.content, couponCode = _a.couponCode, offerLink = _a.offerLink, width = _a.width, height = _a.height, _b = _a.btnText, btnText = _b === void 0 ? 'Redeem Offer' : _b;
4696
+ var CouponCard = function (_a) {
4697
+ var image = _a.image, title = _a.title, content = _a.content, couponCode = _a.couponCode, offerLink = _a.offerLink, width = _a.width, height = _a.height, _b = _a.btnText, btnText = _b === void 0 ? 'Redeem Offer' : _b;
4683
4698
  var _c = React$2.useState(false), showCoupon = _c[0], setShowCoupon = _c[1];
4684
4699
  var handleCopy = React$2.useCallback(function (couponCode) { return (couponCode ? navigator.clipboard.writeText(couponCode) : undefined); }, []);
4685
- return (jsxRuntime.jsxs(Container$19, __assign$1({ height: height, width: width }, { children: [jsxRuntime.jsx(LeftSide, { children: jsxRuntime.jsx(Image$3, { src: imgSrc, alt: "Product", width: "100%", height: "100%", borderRadius: "8px 0 0 8px" }, void 0) }, void 0), jsxRuntime.jsxs(RightSide, { children: [jsxRuntime.jsxs(FlexStart, { children: [jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", weight: "bold", size: "small" }, { children: title }), void 0), content] }, void 0), jsxRuntime.jsx(FlexCentered, { children: !showCoupon ? (jsxRuntime.jsx(ButtonPrimary, { type: "button", text: btnText, wide: true, size: exports.ComponentSize.Small, onClick: function () { return setShowCoupon(function (prev) { return !prev; }); } }, void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ButtonSecondaryOutline, { "data-testid": "coupon-code-btn", testId: "coupon-code-btn", type: "button", text: couponCode !== null && couponCode !== void 0 ? couponCode : '', wide: true, size: exports.ComponentSize.Small, icon: {
4700
+ return (jsxRuntime.jsxs(Container$19, __assign$1({ height: height, width: width }, { children: [jsxRuntime.jsx(LeftSide, { children: jsxRuntime.jsx(Image$3, { objectFit: "cover", src: image.src, alt: image.alt, width: "100%", height: "100%", borderRadius: "8px 0 0 8px" }, void 0) }, void 0), jsxRuntime.jsxs(RightSide, { children: [jsxRuntime.jsxs(FlexStart, { children: [jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", weight: "bold", size: "small" }, { children: title }), void 0), content] }, void 0), jsxRuntime.jsx(FlexCentered, { children: !showCoupon ? (jsxRuntime.jsx(ButtonPrimary, { type: "button", text: btnText, wide: true, size: exports.ComponentSize.Large, onClick: function () { return setShowCoupon(function (prev) { return !prev; }); } }, void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ButtonSecondaryOutline, { "data-testid": "coupon-code-btn", testId: "coupon-code-btn", type: "button", text: couponCode !== null && couponCode !== void 0 ? couponCode : '', wide: true, size: exports.ComponentSize.Small, icon: {
4686
4701
  name: 'actions/copy_outlined',
4687
4702
  position: 'right',
4688
4703
  margin: '10px',
@@ -4692,7 +4707,7 @@ var Coupon = function (_a) {
4692
4707
  // Partner titles
4693
4708
  var REVEL_BEAUTY_TITLE = 'REVEL BEAUTY';
4694
4709
  var THE_SPA_DR_TITLE = 'THE SPA DR.';
4695
- // Coupon contents
4710
+ // CouponCard contents
4696
4711
  var CouponDefaultBody = function (firstLine, secondLine) { return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small", style: { textAlign: 'initial' } }, { children: firstLine }), void 0), jsxRuntime.jsx(Text$7, __assign$1({ variant: "heading5", weight: "bold" }, { children: secondLine }), void 0)] }, void 0)); };
4697
4712
  var TheBodConContent = function () { return (jsxRuntime.jsxs(FlexContainer$2, { children: [jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [jsxRuntime.jsx(Bold, { children: "FREE and PREMIUM" }, void 0), " access to The BodCon Community App."] }), void 0), jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: ["The #1 Body Confidence Community. You'll have ", jsxRuntime.jsx(Bold, { children: "FREE access to:" }, void 0)] }), void 0), jsxRuntime.jsxs("ul", __assign$1({ style: { marginBottom: '5px', padding: '11px' } }, { children: [jsxRuntime.jsx("li", __assign$1({ style: { marginBottom: '5px' } }, { children: jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: "Our confidence series: great courses made by the top influencers in the field, just for you to start your body-confidence journey!" }), void 0) }), void 0), jsxRuntime.jsx("li", { children: jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: "Our more than 1.000 women's community and get-togethers to talk about women's empowerment." }), void 0) }, void 0)] }), void 0), jsxRuntime.jsxs(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [jsxRuntime.jsx(Bold, { children: "FREE" }, void 0), " access to The BodCon 2023 replays!"] }), void 0), jsxRuntime.jsx(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: "Empower yourself and change how you see and feel about your body forever." }), void 0)] }, void 0)); };
4698
4713
  var cancellationFlowContentPerKey = {
@@ -4708,12 +4723,24 @@ var couponDimensions = {
4708
4723
  };
4709
4724
  var CancellationFlowAccordionContentPerPartner = {
4710
4725
  RevelBeauty: [
4711
- jsxRuntime.jsx(Coupon, { width: couponDimensions.width, height: couponDimensions.height, title: REVEL_BEAUTY_TITLE, imgSrc: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Beauty_Lift_and_Tighten_Serum.png?v=1709316823', content: cancellationFlowContentPerKey['RevelBeauty-1'], couponCode: 'CLUBFRIENDS', offerLink: 'https://revelbeauty.com/products/lift-tighten-serum' }, "RevelBeauty-1"),
4712
- jsxRuntime.jsx(Coupon, { width: couponDimensions.width, height: couponDimensions.height, title: REVEL_BEAUTY_TITLE, imgSrc: 'https://cdn.shopify.com/s/files/1/2679/8624/files/revel-beauty-orders-above-50.png?v=1709326588', content: cancellationFlowContentPerKey['RevelBeauty-2'], couponCode: 'SHIPPINGONUS', offerLink: 'https://revelbeauty.com/' }, "RevelBeauty-2"),
4726
+ jsxRuntime.jsx(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: REVEL_BEAUTY_TITLE, image: {
4727
+ src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Beauty_Lift_and_Tighten_Serum.png?v=1709316823',
4728
+ alt: 'Daily Essentials 4-Step Skin Care System',
4729
+ }, content: cancellationFlowContentPerKey['RevelBeauty-1'], couponCode: 'CLUBFRIENDS', offerLink: 'https://revelbeauty.com/products/lift-tighten-serum' }, "RevelBeauty-1"),
4730
+ jsxRuntime.jsx(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: REVEL_BEAUTY_TITLE, image: {
4731
+ src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/revel-beauty-orders-above-50.png?v=1709326588',
4732
+ alt: 'Daily Essentials 4-Step Skin Care System',
4733
+ }, content: cancellationFlowContentPerKey['RevelBeauty-2'], couponCode: 'SHIPPINGONUS', offerLink: 'https://revelbeauty.com/' }, "RevelBeauty-2"),
4713
4734
  ],
4714
4735
  TheSpaDr: [
4715
- jsxRuntime.jsx(Coupon, { width: couponDimensions.width, height: couponDimensions.height, title: THE_SPA_DR_TITLE, imgSrc: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Daily_Essentials_4-Step_Skin_Care_System.png?v=1709333354', content: cancellationFlowContentPerKey['TheSpaDr-1'], couponCode: 'SHMCLUBFRIENDS', offerLink: 'https://thespadr.com/products/4-step-age-defying-clean-skincare-system-3?variant=42658350727366' }, "TheSpaDr-1"),
4716
- jsxRuntime.jsx(Coupon, { width: couponDimensions.width, height: couponDimensions.height, title: THE_SPA_DR_TITLE, imgSrc: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Nourish_Antioxidant_Serum.png?v=1709333354', content: cancellationFlowContentPerKey['TheSpaDr-2'], couponCode: 'SHMCLUB10OFF', offerLink: 'https://thespadr.com/products/step-2-age-defying-lift-tight-serum?variant=15992476860510' }, "TheSpaDr-2"),
4736
+ jsxRuntime.jsx(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: THE_SPA_DR_TITLE, image: {
4737
+ src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Daily_Essentials_4-Step_Skin_Care_System.png?v=1709333354',
4738
+ alt: 'Daily Essentials 4-Step Skin Care System',
4739
+ }, content: cancellationFlowContentPerKey['TheSpaDr-1'], couponCode: 'SHMCLUBFRIENDS', offerLink: 'https://thespadr.com/products/4-step-age-defying-clean-skincare-system-3?variant=42658350727366' }, "TheSpaDr-1"),
4740
+ jsxRuntime.jsx(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: THE_SPA_DR_TITLE, image: {
4741
+ src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Nourish_Antioxidant_Serum.png?v=1709333354',
4742
+ alt: 'Daily Essentials 4-Step Skin Care System',
4743
+ }, content: cancellationFlowContentPerKey['TheSpaDr-2'], couponCode: 'SHMCLUB10OFF', offerLink: 'https://thespadr.com/products/step-2-age-defying-lift-tight-serum?variant=15992476860510' }, "TheSpaDr-2"),
4717
4744
  ],
4718
4745
  TheBodCon: [cancellationFlowContentPerKey['TheBodCon']],
4719
4746
  };
@@ -20140,7 +20167,7 @@ exports.Checkbox = Checkbox;
20140
20167
  exports.ClubOfferTag = ClubOfferTag;
20141
20168
  exports.ClubRadioGroupInput = ClubRadioGroupInput;
20142
20169
  exports.Collection = Collection;
20143
- exports.Coupon = Coupon;
20170
+ exports.CouponCard = CouponCard;
20144
20171
  exports.CrossSell = index$1;
20145
20172
  exports.DeliveryDetails = DeliveryDetails;
20146
20173
  exports.DiscountTag = DiscountTag$1;