@plurix/ecom-components 1.16.5-commerce.9 → 1.16.6-commerce.2

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.
@@ -1,5 +1,6 @@
1
1
  interface AddToCartButtonProps {
2
2
  handleAddToCart: () => void;
3
+ buttonAddToCartText: string;
3
4
  }
4
- export declare const AddToCartButton: ({ handleAddToCart }: AddToCartButtonProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const AddToCartButton: ({ handleAddToCart, buttonAddToCartText }: AddToCartButtonProps) => import("react/jsx-runtime").JSX.Element;
5
6
  export {};
@@ -1,8 +1,11 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { CartShop as a } from "../../../assets/svgs/CartShop.js";
3
- import i from "./CustomQuantitySelector/Button.js";
4
- const m = ({ handleAddToCart: t }) => /* @__PURE__ */ o(
5
- i,
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import { CartShop as i } from "../../../assets/svgs/CartShop.js";
3
+ import n from "./CustomQuantitySelector/Button.js";
4
+ const e = ({
5
+ handleAddToCart: t,
6
+ buttonAddToCartText: o
7
+ }) => /* @__PURE__ */ r(
8
+ n,
6
9
  {
7
10
  onClick: t,
8
11
  "data-button-variant": "primary",
@@ -10,11 +13,11 @@ const m = ({ handleAddToCart: t }) => /* @__PURE__ */ o(
10
13
  title: "Add to cart Sales",
11
14
  className: "product-card-button",
12
15
  children: [
13
- /* @__PURE__ */ r(a, {}),
14
- "Adicionar"
16
+ /* @__PURE__ */ a(i, {}),
17
+ o
15
18
  ]
16
19
  }
17
20
  );
18
21
  export {
19
- m as AddToCartButton
22
+ e as AddToCartButton
20
23
  };
@@ -22,14 +22,14 @@ var m = (t, e) => {
22
22
  import { jsxs as p, jsx as n } from "react/jsx-runtime";
23
23
  import { forwardRef as v } from "react";
24
24
  import q from "./IconButton.js";
25
- const g = v(function(w, h) {
25
+ const S = v(function(w, b) {
26
26
  var s = w, {
27
27
  quantity: e,
28
28
  testId: a = "store-quantity-selector",
29
29
  leftButtonProps: i,
30
30
  rightButtonProps: f,
31
31
  measureUnit: o
32
- } = s, b = m(s, [
32
+ } = s, h = m(s, [
33
33
  "quantity",
34
34
  "testId",
35
35
  "leftButtonProps",
@@ -41,8 +41,8 @@ const g = v(function(w, h) {
41
41
  y(l({
42
42
  className: "quantity-selector",
43
43
  "data-testid": a,
44
- ref: h
45
- }, b), {
44
+ ref: b
45
+ }, h), {
46
46
  children: [
47
47
  /* @__PURE__ */ n(
48
48
  q,
@@ -52,10 +52,22 @@ const g = v(function(w, h) {
52
52
  className: "quantity-selector-button button-plus"
53
53
  }, i)
54
54
  ),
55
- /* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", width: "100px", justifyContent: "center" }, children: [
56
- /* @__PURE__ */ n("div", { style: { width: "auto" }, children: /* @__PURE__ */ n("p", { "aria-label": "Quantidade", className: "quantity-selector-quantity", children: e }) }),
57
- o && o !== "un" && /* @__PURE__ */ n("p", { className: "quantity-selector-measure-unit", children: o })
58
- ] }),
55
+ /* @__PURE__ */ p(
56
+ "div",
57
+ {
58
+ style: {
59
+ display: "flex",
60
+ alignItems: "center",
61
+ justifyContent: "center",
62
+ width: "100px",
63
+ height: "100%"
64
+ },
65
+ children: [
66
+ /* @__PURE__ */ n("div", { style: { width: "auto" }, children: /* @__PURE__ */ n("p", { "aria-label": "Quantidade", className: "quantity-selector-quantity", children: e }) }),
67
+ o && o !== "un" && /* @__PURE__ */ n("p", { className: "quantity-selector-measure-unit", children: o })
68
+ ]
69
+ }
70
+ ),
59
71
  /* @__PURE__ */ n(
60
72
  q,
61
73
  l({
@@ -69,5 +81,5 @@ const g = v(function(w, h) {
69
81
  );
70
82
  });
71
83
  export {
72
- g as default
84
+ S as default
73
85
  };
@@ -4,7 +4,8 @@ interface ProductCardButtonProps {
4
4
  addToCartAction: () => void;
5
5
  quantitySelectorAction: ProductCardProps['quantitySelectorAction'];
6
6
  productInCart: boolean;
7
+ buttonAddToCartText: string;
7
8
  layout?: string;
8
9
  }
9
- export declare const ProductCardButton: ({ addToCartAction, quantitySelectorAction, productInCart, layout }: ProductCardButtonProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ProductCardButton: ({ addToCartAction, quantitySelectorAction, productInCart, layout, buttonAddToCartText }: ProductCardButtonProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -1,24 +1,31 @@
1
- var e = Object.defineProperty, m = Object.defineProperties;
2
- var p = Object.getOwnPropertyDescriptors;
1
+ var m = Object.defineProperty, p = Object.defineProperties;
2
+ var f = Object.getOwnPropertyDescriptors;
3
3
  var n = Object.getOwnPropertySymbols;
4
- var f = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
5
- var i = (o, t, r) => t in o ? e(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r, u = (o, t) => {
4
+ var l = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
+ var i = (o, t, r) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r, u = (o, t) => {
6
6
  for (var r in t || (t = {}))
7
- f.call(t, r) && i(o, r, t[r]);
7
+ l.call(t, r) && i(o, r, t[r]);
8
8
  if (n)
9
9
  for (var r of n(t))
10
- l.call(t, r) && i(o, r, t[r]);
10
+ C.call(t, r) && i(o, r, t[r]);
11
11
  return o;
12
- }, a = (o, t) => m(o, p(t));
12
+ }, a = (o, t) => p(o, f(t));
13
13
  import { jsx as d } from "react/jsx-runtime";
14
- import { AddToCartButton as C } from "./AddToCartButton.js";
15
- import h from "./QuantitySelector.js";
16
- const T = ({
14
+ import { AddToCartButton as h } from "./AddToCartButton.js";
15
+ import s from "./QuantitySelector.js";
16
+ const b = ({
17
17
  addToCartAction: o,
18
18
  quantitySelectorAction: t,
19
19
  productInCart: r,
20
- layout: c
21
- }) => /* @__PURE__ */ d("div", { id: "product-card-button", children: r ? /* @__PURE__ */ d(h, a(u({}, t), { layout: c })) : /* @__PURE__ */ d(C, { handleAddToCart: o }) });
20
+ layout: c,
21
+ buttonAddToCartText: e
22
+ }) => /* @__PURE__ */ d("div", { id: "product-card-button", children: r ? /* @__PURE__ */ d(s, a(u({}, t), { layout: c })) : /* @__PURE__ */ d(
23
+ h,
24
+ {
25
+ handleAddToCart: o,
26
+ buttonAddToCartText: e
27
+ }
28
+ ) });
22
29
  export {
23
- T as ProductCardButton
30
+ b as ProductCardButton
24
31
  };
@@ -1,3 +1,3 @@
1
1
  import { ProductCardProps } from '../../../types/ProductCard';
2
2
 
3
- export declare const ProductCardHorizontal: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, addToCartAction, quantitySelectorAction, productInCart, openModal }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ProductCardHorizontal: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, addToCartAction, quantitySelectorAction, productInCart, openModal, buttonAddToCartText }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,14 @@
1
1
  import { jsx as s, jsxs as t } from "react/jsx-runtime";
2
2
  import { useState as d } from "react";
3
- import { ProductCardUnavailable as B } from "../ProducCardUnavailable/index.js";
3
+ import { ProductCardUnavailable as N } from "../ProducCardUnavailable/index.js";
4
4
  import { ProductCardBadgeKg as O } from "../ProductCardBadge/ProductCardBadgeKg.js";
5
5
  import { ProductCardDiscountBadge as M } from "../ProductCardBadge/ProductCardDiscountBadge.js";
6
- import { ProductCardButton as N } from "../ProductCardButton/index.js";
7
- import { ProductCardImage as p } from "../ProductCardImage/index.js";
8
- import { ProductCardName as y } from "../ProductCardName/index.js";
9
- import { ProductCardPrice as U } from "../ProductCardPrice/index.js";
10
- import { ProductCardPromotionFlag as E } from "../ProductCardPromotionFlag/index.js";
11
- const T = ({
6
+ import { ProductCardButton as p } from "../ProductCardButton/index.js";
7
+ import { ProductCardImage as y } from "../ProductCardImage/index.js";
8
+ import { ProductCardName as U } from "../ProductCardName/index.js";
9
+ import { ProductCardPrice as E } from "../ProductCardPrice/index.js";
10
+ import { ProductCardPromotionFlag as F } from "../ProductCardPromotionFlag/index.js";
11
+ const q = ({
12
12
  account: r,
13
13
  hasPlusFriendBadge: c,
14
14
  promotion: i,
@@ -22,13 +22,14 @@ const T = ({
22
22
  addToCartAction: g,
23
23
  quantitySelectorAction: h,
24
24
  productInCart: b,
25
- openModal: S
25
+ openModal: v,
26
+ buttonAddToCartText: S
26
27
  }) => {
27
28
  var m, f;
28
- const [k, v] = d(!1), [D, x] = d(!1), z = r === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
+ const [k, D] = d(!1), [x, z] = d(!1), B = r === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
30
  if (P)
30
31
  return /* @__PURE__ */ s(
31
- B,
32
+ N,
32
33
  {
33
34
  image: (m = e.image) == null ? void 0 : m[0],
34
35
  name: e.name,
@@ -42,34 +43,35 @@ const T = ({
42
43
  {
43
44
  className: "product-card-horizontal",
44
45
  style: {
45
- backgroundColor: u ? z : "var(--color-grayScale-faded)"
46
+ backgroundColor: u ? B : "var(--color-grayScale-faded)"
46
47
  },
47
48
  children: [
48
- /* @__PURE__ */ t("button", { className: "clean-button product-card-section-product-horizontal", onClick: S, children: [
49
- /* @__PURE__ */ s(
50
- p,
51
- {
52
- isProductClubAndClient: u,
53
- variant: a,
54
- hasPlusFriendBadge: c,
55
- promotion: i,
56
- image: (f = e.image) == null ? void 0 : f[0],
57
- account: r
58
- }
59
- ),
60
- /* @__PURE__ */ t(
61
- "div",
62
- {
63
- className: "product-card-horizontal-description",
64
- children: [
49
+ /* @__PURE__ */ t(
50
+ "button",
51
+ {
52
+ className: "clean-button product-card-section-product-horizontal",
53
+ onClick: v,
54
+ children: [
55
+ /* @__PURE__ */ s(
56
+ y,
57
+ {
58
+ isProductClubAndClient: u,
59
+ variant: a,
60
+ hasPlusFriendBadge: c,
61
+ promotion: i,
62
+ image: (f = e.image) == null ? void 0 : f[0],
63
+ account: r
64
+ }
65
+ ),
66
+ /* @__PURE__ */ t("div", { className: "product-card-horizontal-description", children: [
65
67
  /* @__PURE__ */ t("div", { className: "product-card-section-name", children: [
66
- /* @__PURE__ */ s(y, { name: e.name }),
68
+ /* @__PURE__ */ s(U, { name: e.name }),
67
69
  /* @__PURE__ */ t(
68
70
  "div",
69
71
  {
70
72
  className: "product-card-section-badge-horizontal",
71
73
  style: {
72
- display: !D && !k ? "none" : ""
74
+ display: !x && !k ? "none" : ""
73
75
  },
74
76
  children: [
75
77
  /* @__PURE__ */ s(
@@ -78,7 +80,7 @@ const T = ({
78
80
  unitMultiplier: e.unitMultiplier,
79
81
  skuSpecifications: e.skuSpecifications,
80
82
  measurementUnit: e.measurementUnit,
81
- setIsShowProductBadge: x
83
+ setIsShowProductBadge: z
82
84
  }
83
85
  ),
84
86
  /* @__PURE__ */ s(
@@ -91,7 +93,7 @@ const T = ({
91
93
  skuSpecifications: e.skuSpecifications,
92
94
  unitMultiplier: e.unitMultiplier,
93
95
  hasPromotionalPrice: o,
94
- setIsShowProductBadge: v
96
+ setIsShowProductBadge: D
95
97
  }
96
98
  )
97
99
  ]
@@ -99,7 +101,7 @@ const T = ({
99
101
  )
100
102
  ] }),
101
103
  a === "horizontal" && /* @__PURE__ */ s(
102
- E,
104
+ F,
103
105
  {
104
106
  variant: a,
105
107
  productSectionBadge: {
@@ -112,7 +114,7 @@ const T = ({
112
114
  }
113
115
  ),
114
116
  /* @__PURE__ */ s(
115
- U,
117
+ E,
116
118
  {
117
119
  account: r,
118
120
  isClubClient: n,
@@ -130,18 +132,20 @@ const T = ({
130
132
  clubPrice: C,
131
133
  hasPlusFriendBadge: c
132
134
  }
133
- )
134
- ]
135
- }
136
- )
137
- ] }),
135
+ ),
136
+ /* @__PURE__ */ s("div", { className: "invisible-button" })
137
+ ] })
138
+ ]
139
+ }
140
+ ),
138
141
  /* @__PURE__ */ s(
139
- N,
142
+ p,
140
143
  {
141
144
  addToCartAction: g,
142
145
  quantitySelectorAction: h,
143
146
  productInCart: b,
144
- layout: a
147
+ layout: a,
148
+ buttonAddToCartText: S
145
149
  }
146
150
  )
147
151
  ]
@@ -149,5 +153,5 @@ const T = ({
149
153
  );
150
154
  };
151
155
  export {
152
- T as ProductCardHorizontal
156
+ q as ProductCardHorizontal
153
157
  };
@@ -8,22 +8,22 @@ const x = ({
8
8
  isClubClient: a,
9
9
  hasPlusFriendBadge: p
10
10
  }) => {
11
- const s = !!(c && c !== r.spotPriceCustom), l = (C) => C.toLocaleString("pt-br", { style: "currency", currency: "BRL" }), o = g({
11
+ const s = !!(c && c !== r.spotPriceCustom), l = (u) => u.toLocaleString("pt-br", { style: "currency", currency: "BRL" }), o = g({
12
12
  measurementUnit: d,
13
13
  spotPriceCustom: r.spotPriceCustom,
14
14
  spotPriceKg: r == null ? void 0 : r.spotPriceKg,
15
15
  unitMultiplier: t
16
- }), u = p ? "no +amigo" : "no clube";
16
+ }), C = p ? "no +amigo" : "no clube";
17
17
  return /* @__PURE__ */ i(P, { children: /* @__PURE__ */ n("div", { className: "product-card-price", children: [
18
18
  !a && s && c !== o && /* @__PURE__ */ i("div", { className: "product-card-club-price-container", children: /* @__PURE__ */ i(
19
19
  "p",
20
20
  {
21
21
  className: "product-card-club-price",
22
22
  style: {
23
- backgroundColor: e === "domolivio" ? "#EAE0D0" : "#F4AF25",
24
- color: e === "domolivio" ? "#181247" : "#2c3490"
23
+ backgroundColor: e === "domolivio" ? "#EBE0CF" : "#FADB9D",
24
+ color: e === "domolivio" ? "#181247" : "#2C3490"
25
25
  },
26
- children: `${l(c || 0)} ${u}`
26
+ children: `${l(c || 0)} ${C}`
27
27
  }
28
28
  ) }),
29
29
  /* @__PURE__ */ n("div", { className: "product-card-price-container", children: [
@@ -1,3 +1,3 @@
1
1
  import { ProductCardProps } from '../../../types/ProductCard';
2
2
 
3
- export declare const ProductCardVertical: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, hasClub, openModal, addToCartAction, quantitySelectorAction, productInCart }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ProductCardVertical: ({ account, hasPlusFriendBadge, promotion, product, hasPromotionalPrice, clubPrice, outOfStock, variant, defaultScListPrice, isClubClient, hasClub, openModal, addToCartAction, quantitySelectorAction, productInCart, buttonAddToCartText }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,13 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
2
  import { useState as f } from "react";
3
- import { ProductCardUnavailable as B } from "../ProducCardUnavailable/index.js";
4
- import { ProductCardBadgeKg as M } from "../ProductCardBadge/ProductCardBadgeKg.js";
5
- import { ProductCardDiscountBadge as y } from "../ProductCardBadge/ProductCardDiscountBadge.js";
6
- import { ProductCardButton as U } from "../ProductCardButton/index.js";
7
- import { ProductCardImage as x } from "../ProductCardImage/index.js";
8
- import { ProductCardName as E } from "../ProductCardName/index.js";
9
- import { ProductCardPrice as I } from "../ProductCardPrice/index.js";
10
- const G = ({
3
+ import { ProductCardUnavailable as M } from "../ProducCardUnavailable/index.js";
4
+ import { ProductCardBadgeKg as y } from "../ProductCardBadge/ProductCardBadgeKg.js";
5
+ import { ProductCardDiscountBadge as U } from "../ProductCardBadge/ProductCardDiscountBadge.js";
6
+ import { ProductCardButton as x } from "../ProductCardButton/index.js";
7
+ import { ProductCardImage as E } from "../ProductCardImage/index.js";
8
+ import { ProductCardName as I } from "../ProductCardName/index.js";
9
+ import { ProductCardPrice as K } from "../ProductCardPrice/index.js";
10
+ const H = ({
11
11
  account: t,
12
12
  hasPlusFriendBadge: o,
13
13
  promotion: d,
@@ -21,14 +21,15 @@ const G = ({
21
21
  hasClub: C,
22
22
  openModal: g,
23
23
  addToCartAction: b,
24
- quantitySelectorAction: h,
25
- productInCart: v
24
+ quantitySelectorAction: v,
25
+ productInCart: h,
26
+ buttonAddToCartText: S
26
27
  }) => {
27
28
  var l, u;
28
- const [S, k] = f(!1), [D, N] = f(!1), O = t === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
+ const [k, D] = f(!1), [N, O] = f(!1), B = t === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
30
  if (p)
30
31
  return /* @__PURE__ */ e(
31
- B,
32
+ M,
32
33
  {
33
34
  image: (l = i.image) == null ? void 0 : l[0],
34
35
  name: i.name,
@@ -37,99 +38,109 @@ const G = ({
37
38
  }
38
39
  );
39
40
  const n = m && i.hasClubPrice;
40
- return /* @__PURE__ */ s("div", { id: "product-card", className: "product-card", style: {
41
- backgroundColor: n ? O : "var(--color-grayScale-faded)"
42
- }, children: [
43
- /* @__PURE__ */ s("button", { className: "clean-button product-card-container", onClick: g, children: [
44
- /* @__PURE__ */ e(
45
- x,
46
- {
47
- isProductClubAndClient: n,
48
- variant: r,
49
- hasPlusFriendBadge: o,
50
- promotion: d,
51
- image: (u = i.image) == null ? void 0 : u[0],
52
- account: t
53
- }
54
- ),
55
- /* @__PURE__ */ s(
56
- "div",
57
- {
58
- className: "product-card-description",
59
- children: [
60
- /* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
61
- /* @__PURE__ */ e(E, { name: i.name }),
62
- /* @__PURE__ */ s(
63
- "div",
41
+ return /* @__PURE__ */ s(
42
+ "div",
43
+ {
44
+ id: "product-card",
45
+ className: "product-card",
46
+ style: {
47
+ backgroundColor: n ? B : "var(--color-grayScale-faded)"
48
+ },
49
+ children: [
50
+ /* @__PURE__ */ s(
51
+ "button",
52
+ {
53
+ className: "clean-button product-card-container",
54
+ onClick: g,
55
+ children: [
56
+ /* @__PURE__ */ e(
57
+ E,
64
58
  {
65
- className: "product-card-section-badge",
66
- style: {
67
- display: !D && !S ? "none" : ""
68
- },
69
- children: [
70
- /* @__PURE__ */ e(
71
- M,
72
- {
73
- unitMultiplier: i.unitMultiplier,
74
- skuSpecifications: i.skuSpecifications,
75
- measurementUnit: i.measurementUnit,
76
- setIsShowProductBadge: N
77
- }
78
- ),
79
- /* @__PURE__ */ e(
80
- y,
81
- {
82
- offers: i.offers,
83
- defaultScListPrice: c,
84
- nativeListPrice: i.customOffers.listPriceCustom,
85
- nativeSpotPrice: i.customOffers.spotPriceCustom,
86
- skuSpecifications: i.skuSpecifications,
87
- unitMultiplier: i.unitMultiplier,
88
- hasPromotionalPrice: a,
89
- setIsShowProductBadge: k
90
- }
91
- )
92
- ]
59
+ isProductClubAndClient: n,
60
+ variant: r,
61
+ hasPlusFriendBadge: o,
62
+ promotion: d,
63
+ image: (u = i.image) == null ? void 0 : u[0],
64
+ account: t
93
65
  }
94
- )
95
- ] }),
96
- /* @__PURE__ */ e(
97
- I,
98
- {
99
- account: t,
100
- hasClub: C,
101
- isClubClient: m,
102
- unitMultiplier: i.unitMultiplier,
103
- hasPromotionalPrice: a,
104
- measurementUnit: i.measurementUnit,
105
- skuSpecifications: i.skuSpecifications,
106
- customOffers: {
107
- listPriceCustom: i.customOffers.listPriceCustom,
108
- hasDiscount: i.customOffers.hasDiscount,
109
- spotPriceCustom: i.customOffers.spotPriceCustom,
110
- spotPriceKg: i.customOffers.spotPriceKg
111
- },
112
- defaultScListPrice: c,
113
- clubPrice: P,
114
- hasPlusFriendBadge: o
115
- }
116
- ),
117
- /* @__PURE__ */ e("div", { className: "insible-button" })
118
- ]
119
- }
120
- )
121
- ] }),
122
- /* @__PURE__ */ e(
123
- U,
124
- {
125
- addToCartAction: b,
126
- quantitySelectorAction: h,
127
- productInCart: v,
128
- layout: r
129
- }
130
- )
131
- ] });
66
+ ),
67
+ /* @__PURE__ */ s("div", { className: "product-card-description", children: [
68
+ /* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
69
+ /* @__PURE__ */ e(I, { name: i.name }),
70
+ /* @__PURE__ */ s(
71
+ "div",
72
+ {
73
+ className: "product-card-section-badge",
74
+ style: {
75
+ display: !N && !k ? "none" : ""
76
+ },
77
+ children: [
78
+ /* @__PURE__ */ e(
79
+ y,
80
+ {
81
+ unitMultiplier: i.unitMultiplier,
82
+ skuSpecifications: i.skuSpecifications,
83
+ measurementUnit: i.measurementUnit,
84
+ setIsShowProductBadge: O
85
+ }
86
+ ),
87
+ /* @__PURE__ */ e(
88
+ U,
89
+ {
90
+ offers: i.offers,
91
+ defaultScListPrice: c,
92
+ nativeListPrice: i.customOffers.listPriceCustom,
93
+ nativeSpotPrice: i.customOffers.spotPriceCustom,
94
+ skuSpecifications: i.skuSpecifications,
95
+ unitMultiplier: i.unitMultiplier,
96
+ hasPromotionalPrice: a,
97
+ setIsShowProductBadge: D
98
+ }
99
+ )
100
+ ]
101
+ }
102
+ )
103
+ ] }),
104
+ /* @__PURE__ */ e(
105
+ K,
106
+ {
107
+ account: t,
108
+ hasClub: C,
109
+ isClubClient: m,
110
+ unitMultiplier: i.unitMultiplier,
111
+ hasPromotionalPrice: a,
112
+ measurementUnit: i.measurementUnit,
113
+ skuSpecifications: i.skuSpecifications,
114
+ customOffers: {
115
+ listPriceCustom: i.customOffers.listPriceCustom,
116
+ hasDiscount: i.customOffers.hasDiscount,
117
+ spotPriceCustom: i.customOffers.spotPriceCustom,
118
+ spotPriceKg: i.customOffers.spotPriceKg
119
+ },
120
+ defaultScListPrice: c,
121
+ clubPrice: P,
122
+ hasPlusFriendBadge: o
123
+ }
124
+ ),
125
+ /* @__PURE__ */ e("div", { className: "invisible-button" })
126
+ ] })
127
+ ]
128
+ }
129
+ ),
130
+ /* @__PURE__ */ e(
131
+ x,
132
+ {
133
+ addToCartAction: b,
134
+ quantitySelectorAction: v,
135
+ productInCart: h,
136
+ buttonAddToCartText: S,
137
+ layout: r
138
+ }
139
+ )
140
+ ]
141
+ }
142
+ );
132
143
  };
133
144
  export {
134
- G as ProductCardVertical
145
+ H as ProductCardVertical
135
146
  };
@@ -1,3 +1,3 @@
1
1
  import { ProductCardProps } from '../../types/ProductCard';
2
2
 
3
- export declare const ProductCard: ({ product, variant, account, hasPlusFriendBadge, hasPromotionalPrice, clubPrice, defaultScListPrice, hasClub, isClubClient, openModal, promotion, outOfStock, addToCartAction, quantitySelectorAction, productInCart }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ProductCard: ({ product, variant, account, hasPlusFriendBadge, hasPromotionalPrice, clubPrice, defaultScListPrice, hasClub, isClubClient, openModal, promotion, outOfStock, addToCartAction, quantitySelectorAction, productInCart, buttonAddToCartText }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,64 +1,67 @@
1
- import { jsx as D } from "react/jsx-runtime";
2
- import { ProductCardHorizontal as G } from "./ProductCardHorizontal/index.js";
3
- import { ProductCardVertical as J } from "./ProductCardVertical/index.js";
4
- /* empty css */const U = ({
5
- product: C,
1
+ import { jsx as G } from "react/jsx-runtime";
2
+ import { ProductCardHorizontal as K } from "./ProductCardHorizontal/index.js";
3
+ import { ProductCardVertical as N } from "./ProductCardVertical/index.js";
4
+ /* empty css */const X = ({
5
+ product: f,
6
6
  variant: r,
7
- account: f,
7
+ account: C,
8
8
  hasPlusFriendBadge: i = !1,
9
9
  hasPromotionalPrice: l,
10
- clubPrice: x,
11
- defaultScListPrice: V,
10
+ clubPrice: V,
11
+ defaultScListPrice: j,
12
12
  hasClub: m,
13
- isClubClient: E,
14
- openModal: j,
15
- promotion: p,
16
- outOfStock: s,
13
+ isClubClient: J,
14
+ openModal: p,
15
+ promotion: s,
16
+ outOfStock: x,
17
17
  addToCartAction: z,
18
18
  quantitySelectorAction: H,
19
- productInCart: b
19
+ productInCart: w,
20
+ buttonAddToCartText: D
20
21
  }) => {
21
- const w = !!(m && E);
22
- return r === "vertical" ? /* @__PURE__ */ D(
23
- J,
22
+ const E = !!(m && J);
23
+ return r === "vertical" ? /* @__PURE__ */ G(
24
+ N,
24
25
  {
25
- isClubClient: w,
26
+ isClubClient: E,
26
27
  hasClub: m,
27
- defaultScListPrice: V,
28
+ defaultScListPrice: j,
28
29
  hasPromotionalPrice: l,
29
- product: C,
30
+ product: f,
30
31
  variant: r,
31
- outOfStock: s,
32
- promotion: p,
33
- clubPrice: x,
34
- openModal: j,
32
+ outOfStock: x,
33
+ promotion: s,
34
+ clubPrice: V,
35
+ openModal: p,
35
36
  hasPlusFriendBadge: i,
36
37
  addToCartAction: z,
37
38
  quantitySelectorAction: H,
38
- productInCart: b,
39
- account: f
39
+ productInCart: w,
40
+ account: C,
41
+ buttonAddToCartText: D
40
42
  }
41
- ) : /* @__PURE__ */ D(
42
- G,
43
+ ) : /* @__PURE__ */ G(
44
+ K,
43
45
  {
44
- openModal: j,
45
- isClubClient: w,
46
+ openModal: p,
47
+ isClubClient: E,
46
48
  hasClub: m,
47
- defaultScListPrice: V,
49
+ defaultScListPrice: j,
48
50
  hasPromotionalPrice: l,
49
- product: C,
51
+ product: f,
50
52
  variant: r,
51
53
  hasPlusFriendBadge: i,
52
- outOfStock: s,
53
- promotion: p,
54
- clubPrice: x,
54
+ outOfStock: x,
55
+ promotion: s,
56
+ clubPrice: V,
55
57
  addToCartAction: z,
56
58
  quantitySelectorAction: H,
57
- productInCart: b,
58
- account: f
59
+ productInCart: w,
60
+ account: C,
61
+ buttonAddToCartText: D
59
62
  }
60
63
  );
61
64
  };
62
65
  export {
63
- U as ProductCard
66
+ X as ProductCard
64
67
  };
@@ -1 +1 @@
1
- #carousel .carousel-content{width:100%;display:flex;flex-direction:row;justify-content:center}#carousel .carousel-content .carousel-arrow-button-prev,#carousel .carousel-content .carousel-arrow-button-next{display:flex;justify-content:center;align-items:center}#carousel .carousel-content .carousel-container{display:flex;flex-direction:row;width:100%;height:100%;scroll-behavior:smooth;overflow-x:scroll}#carousel .numeric-bullets{display:flex;flex-direction:row;justify-content:center;text-align:center}#carousel .bullets-container{display:flex;flex-direction:row;justify-content:center}
1
+ #carousel .carousel-content{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center}#carousel .carousel-content .carousel-arrow-button-prev,#carousel .carousel-content .carousel-arrow-button-next{display:flex;justify-content:center;align-items:center}#carousel .carousel-content .carousel-container{display:flex;flex-direction:row;width:100%;height:100%;scroll-behavior:smooth;overflow-x:scroll}#carousel .numeric-bullets{display:flex;flex-direction:row;justify-content:center;text-align:center}#carousel .bullets-container{display:flex;flex-direction:row;justify-content:center}
@@ -1 +1 @@
1
- .product-card-see-more{width:162px;height:100%;display:flex;flex-direction:column;min-height:276px;max-height:304px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-see-more-text-container{display:flex;align-items:center;flex:1;height:100%}.border-color-white{border:1px solid var(--color-grayScale-white)}.product-card-see-more-link-horizontal,.product-card-see-more-text{padding:0 16px;margin:auto 0;font-weight:var(--text-weight-regular);font-size:var(--text-size-2);line-height:20px;color:var(--color-grayScale)}.product-card-see-more-link-horizontal,.product-card-see-more-text span{display:block;font-weight:var(--text-weight-bold);font-size:24px;line-height:28px}.product-card-see-more-link-horizontal,.product-card-see-more-link{display:flex;align-items:center;justify-content:center;height:40px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);font-size:var(--text-size-2);font-weight:var(--text-weight-bold);line-height:20px;text-align:center;color:var(--color-grayScale-white);text-decoration:none}.product-card-see-more-horizontal{width:304px;min-height:176px;max-height:206px;display:flex;flex-direction:column;height:calc(100% + 56px);border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-see-more-horizontal-container{flex:1}.product-card-see-more-horizontal div{padding:24px 16px}@media (min-width: 769px){.product-card-see-more{width:226px;min-height:324px;max-height:350px}.product-card-see-more-text span{font-size:32px;line-height:36px}}.product-card-see-more-text-horizontal{max-width:270px;font-weight:var(--text-weight-regular);font-size:var(--text-size-2);line-height:20px;color:var(--color-grayScale)}.product-card-see-more-text-horizontal span{font-weight:var(--text-weight-bold);font-size:24px;line-height:28px}
1
+ .product-card-see-more{width:162px;height:100%;display:flex;flex-direction:column;min-height:276px;max-height:304px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-see-more-text-container{display:flex;align-items:center;flex:1;height:100%}.border-color-white{border:1px solid var(--color-grayScale-white)}.product-card-see-more-link-horizontal,.product-card-see-more-text{padding:0 16px;margin:auto 0;font-weight:var(--text-weight-regular);font-size:var(--text-size-2);line-height:20px;color:var(--color-grayScale)}.product-card-see-more-link-horizontal,.product-card-see-more-text span{display:block;font-weight:var(--text-weight-bold);font-size:24px;line-height:28px}.product-card-see-more-link-horizontal,.product-card-see-more-link{display:flex;align-items:center;justify-content:center;height:40px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);font-size:var(--text-size-2);font-weight:var(--text-weight-bold);line-height:20px;text-align:center;color:var(--color-grayScale-white);text-decoration:none}.product-card-see-more-horizontal{width:304px;min-height:176px;max-height:206px;display:flex;flex-direction:column;height:100%;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-see-more-horizontal-container{flex:1}.product-card-see-more-horizontal div{padding:24px 16px}@media (min-width: 769px){.product-card-see-more{width:226px;min-height:324px;max-height:350px}.product-card-see-more-text span{font-size:32px;line-height:36px}}.product-card-see-more-text-horizontal{max-width:270px;font-weight:var(--text-weight-regular);font-size:var(--text-size-2);line-height:20px;color:var(--color-grayScale)}.product-card-see-more-text-horizontal span{font-weight:var(--text-weight-bold);font-size:24px;line-height:28px}
@@ -1 +1 @@
1
- :root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-radius:8px;overflow:hidden}.clean-button{display:flex;flex-direction:column;appearance:none;border:none;background:none;outline:none;text-align:left;cursor:pointer;font:inherit;color:inherit;margin:0;padding:0;text-transform:none;height:100%}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;height:100%}.insible-button{width:100%;height:52px;background-color:transparent}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{position:relative;display:flex;flex-direction:column;width:304px;height:calc(100% + 56px);min-height:163px;max-height:206px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-section-product-horizontal{display:flex;flex-direction:row;position:relative;height:100%;border-radius:8px}.product-card-section-product-horizontal .product-card-image-container{position:relative;align-self:flex-start;padding:0 var(--product-card-horizontal-padding);height:100%}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain;margin-top:8px;margin-bottom:auto}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;min-height:108px;max-height:155px;height:100%;width:calc(100% - (var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2)));padding:7.5px 8px;border-radius:8px;border-bottom-left-radius:unset;border-top-left-radius:unset}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1;background-color:var(--color-grayScale-faded)}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:calc(100% - 16px);height:40px;padding:8px 16px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-button span{display:flex;align-items:center;gap:4px}#product-card-button{position:absolute;bottom:0;left:0;width:stretch}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:var(--color-grayScale-white);border-top-left-radius:7px;border-top-right-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;background-color:#fadb9d;border-radius:4px;color:#2c3490;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+.product-card-unavailable-text{width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-description{padding:8px 16px 0}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}.quantity-selector,.product-card-button{width:calc(100% - 32px);margin:8px 16px}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:calc(100% - 16px);height:40px;margin:8px;border:1px solid var(--color-grayScale-light);border-radius:20px;background-color:var(--color-grayScale-white);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:39px;padding:var(--space-0);background-color:#e6e6e6;border:unset;border-bottom-left-radius:20px;border-top-left-radius:20px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-top-right-radius:20px;border-top-left-radius:unset;border-bottom-right-radius:20px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:hover:not(:disabled) [data-store-icon]{background-color:var(--bg-secondary-light)}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector:hover:not([data-store-quantity-selector=disabled]){box-shadow:0 0 0 var(--border-width-1) var(--color-support-shadow)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}.quantity-selector[data-store-quantity-selector=disabled] [data-quantity-selector-button]:hover [data-store-icon]{background-color:transparent}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}.quantity-selector .quantity-selector-button:focus [data-store-icon]{outline:2px solid var(--color-main);outline-offset:2px;background-color:var(--bg-secondary-light)}}}.quantity-selector .quantity-selector-button:focus-visible{outline:none;box-shadow:none}.quantity-selector .quantity-selector-button:focus-visible [data-store-icon]{outline:2px solid var(--color-main);outline-offset:2px;background-color:var(--bg-secondary-light)}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@include media(">tablet"){.product-add-text p {font-size: var(--text-size-1); line-height: 18px;}}.product-card-unavailable-text{height:40px;margin:8px;align-content:center;border:1px solid var(--color-grayScale-light);border-radius:20px;position:absolute;bottom:0;left:0;width:stretch;background-color:var(--color-grayScale-lightest)}.product-card-unavailable-text p{text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;color:var(--color-grayScale-darkest)}
1
+ *{-webkit-tap-highlight-color:transparent}:root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-radius:8px;overflow:hidden}.clean-button{display:flex;flex-direction:column;appearance:none;border:none;background:none;outline:none;text-align:left;cursor:pointer;font:inherit;color:inherit;margin:0;padding:0;text-transform:none;height:100%}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;height:100%}.invisible-button{width:100%;height:46px;background-color:transparent}.product-card-horizontal .invisible-button{height:38px}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{position:relative;display:flex;flex-direction:column;width:304px;height:100%;min-height:163px;max-height:206px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-section-product-horizontal{display:flex;flex-direction:row;position:relative;height:100%;border-radius:8px}.product-card-section-product-horizontal .product-card-image-container{position:relative;align-self:flex-start;padding:0 var(--product-card-horizontal-padding);height:100%;min-height:163px;max-height:206px}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain;margin-top:8px;margin-bottom:auto}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;height:100%;width:100%;padding:7.5px 8px;border-radius:8px;border-bottom-left-radius:unset;border-top-left-radius:unset}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1;background-color:var(--color-grayScale-faded)}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:calc(100% - 16px);height:40px;padding:8px 16px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-button span{display:flex;align-items:center;gap:4px}#product-card-button{position:absolute;bottom:0;left:0;width:stretch}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:var(--color-grayScale-white)}.product-card .product-card-image-container{border-top:7px}.product-card-horizontal .product-card-image-container{border-top-left-radius:7px;border-bottom-left-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;border-radius:4px;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+.product-card-unavailable-text{width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-description{padding:8px 16px 0}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}.product-card .quantity-selector,.product-card .product-card-button,.product-card-horizontal .quantity-selector,.product-card-horizontal .product-card-button{width:calc(100% - 32px);margin:8px 16px}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:calc(100% - 16px);height:40px;margin:8px;border:1px solid var(--color-grayScale-light);border-radius:20px;background-color:var(--color-grayScale-white);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:100%;padding:var(--space-0);background-color:#e6e6e6;border:unset;border-bottom-left-radius:20px;border-top-left-radius:20px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-top-right-radius:20px;border-top-left-radius:unset;border-bottom-right-radius:20px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}}}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@include media(">tablet"){.product-add-text p {font-size: var(--text-size-1); line-height: 18px;}}.product-card-unavailable-text{height:40px;margin:8px;align-content:center;border:1px solid var(--color-grayScale-light);border-radius:20px;position:absolute;bottom:0;left:0;width:stretch;background-color:var(--color-grayScale-lightest)}.product-card-unavailable-text p{text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;color:var(--color-grayScale-darkest)}
@@ -29,6 +29,7 @@ export interface ProductCardProps {
29
29
  isRightDisabled: boolean;
30
30
  };
31
31
  productInCart: boolean;
32
+ buttonAddToCartText: string;
32
33
  }
33
34
  export interface PromotionProps {
34
35
  collectionID: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@plurix/ecom-components",
3
3
  "author": "Plurix",
4
4
  "private": false,
5
- "version": "1.16.5-commerce.9",
5
+ "version": "1.16.6-commerce.2",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",