@plurix/ecom-components 1.16.5-commerce.1 → 1.16.5-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,4 +1,4 @@
1
- import { jsx as s, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as t } from "react/jsx-runtime";
2
2
  import { useState as C } from "react";
3
3
  import { ProductCardUnavailable as z } from "../ProducCardUnavailable/index.js";
4
4
  import { ProductCardBadgeKg as B } from "../ProductCardBadge/ProductCardBadgeKg.js";
@@ -16,16 +16,16 @@ const T = ({
16
16
  hasPromotionalPrice: o,
17
17
  clubPrice: g,
18
18
  outOfStock: l,
19
- variant: t,
19
+ variant: a,
20
20
  defaultScListPrice: n,
21
21
  isClubClient: u,
22
22
  addToCartAction: P,
23
23
  quantitySelectorAction: h,
24
- productInCart: v,
25
- openModal: S
24
+ productInCart: S,
25
+ openModal: b
26
26
  }) => {
27
27
  var d, f;
28
- const [b, k] = C(!1), [y, D] = C(!1), x = r === "domolivio" ? "#EBE0CF" : "#FDF3DE";
28
+ const [v, k] = C(!1), [y, D] = C(!1), x = r === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
29
  if (l)
30
30
  return /* @__PURE__ */ s(
31
31
  z,
@@ -37,122 +37,117 @@ const T = ({
37
37
  }
38
38
  );
39
39
  const m = u && e.hasClubPrice;
40
- return /* @__PURE__ */ s(
40
+ return /* @__PURE__ */ t(
41
41
  "div",
42
42
  {
43
43
  className: "product-card-horizontal",
44
44
  style: {
45
45
  backgroundColor: l ? "var(--color-grayScale-faded" : "var(--color-grayScale-white)"
46
46
  },
47
- children: /* @__PURE__ */ a(
48
- "div",
49
- {
50
- onClick: S,
51
- className: "product-card-section-product-horizontal",
52
- children: [
53
- /* @__PURE__ */ s(
54
- O,
55
- {
56
- isProductClubAndClient: m,
57
- variant: t,
58
- hasPlusFriendBadge: c,
59
- promotion: i,
60
- image: (f = e.image) == null ? void 0 : f[0],
61
- account: r
62
- }
63
- ),
64
- /* @__PURE__ */ a(
65
- "div",
66
- {
67
- className: "product-card-horizontal-description",
68
- style: {
69
- backgroundColor: m ? x : "var(--color-grayScale-faded)"
70
- },
71
- children: [
72
- /* @__PURE__ */ a("div", { className: "product-card-section-name", children: [
73
- /* @__PURE__ */ s(p, { name: e.name }),
74
- /* @__PURE__ */ a(
75
- "div",
76
- {
77
- className: "product-card-section-badge-horizontal",
78
- style: {
79
- display: !y && !b ? "none" : ""
80
- },
81
- children: [
82
- /* @__PURE__ */ s(
83
- B,
84
- {
85
- unitMultiplier: e.unitMultiplier,
86
- skuSpecifications: e.skuSpecifications,
87
- measurementUnit: e.measurementUnit,
88
- setIsShowProductBadge: D
89
- }
90
- ),
91
- /* @__PURE__ */ s(
92
- M,
93
- {
94
- offers: e.offers,
95
- defaultScListPrice: n,
96
- nativeListPrice: e.customOffers.listPriceCustom,
97
- nativeSpotPrice: e.customOffers.spotPriceCustom,
98
- skuSpecifications: e.skuSpecifications,
99
- unitMultiplier: e.unitMultiplier,
100
- hasPromotionalPrice: o,
101
- setIsShowProductBadge: k
102
- }
103
- )
104
- ]
105
- }
106
- )
107
- ] }),
108
- t === "horizontal" && /* @__PURE__ */ s(
109
- w,
110
- {
111
- variant: t,
112
- productSectionBadge: {
113
- text: i == null ? void 0 : i.flagText,
114
- color: {
115
- textColor: i == null ? void 0 : i.textColor,
116
- backGroundColor: i == null ? void 0 : i.colorCode
117
- }
118
- }
119
- }
120
- ),
121
- /* @__PURE__ */ s(
122
- U,
47
+ children: [
48
+ /* @__PURE__ */ t("button", { className: "product-card-section-product-horizontal", onClick: b, children: [
49
+ /* @__PURE__ */ s(
50
+ O,
51
+ {
52
+ isProductClubAndClient: m,
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
+ style: {
65
+ backgroundColor: m ? x : "var(--color-grayScale-faded)"
66
+ },
67
+ children: [
68
+ /* @__PURE__ */ t("div", { className: "product-card-section-name", children: [
69
+ /* @__PURE__ */ s(p, { name: e.name }),
70
+ /* @__PURE__ */ t(
71
+ "div",
123
72
  {
124
- account: r,
125
- isClubClient: u,
126
- unitMultiplier: e.unitMultiplier,
127
- hasPromotionalPrice: o,
128
- measurementUnit: e.measurementUnit,
129
- skuSpecifications: e.skuSpecifications,
130
- customOffers: {
131
- listPriceCustom: e.customOffers.listPriceCustom,
132
- hasDiscount: e.customOffers.hasDiscount,
133
- spotPriceCustom: e.customOffers.spotPriceCustom,
134
- spotPriceKg: e.customOffers.spotPriceKg
73
+ className: "product-card-section-badge-horizontal",
74
+ style: {
75
+ display: !y && !v ? "none" : ""
135
76
  },
136
- defaultScListPrice: n,
137
- clubPrice: g,
138
- hasPlusFriendBadge: c
139
- }
140
- ),
141
- /* @__PURE__ */ s(
142
- N,
143
- {
144
- addToCartAction: P,
145
- quantitySelectorAction: h,
146
- productInCart: v,
147
- layout: t
77
+ children: [
78
+ /* @__PURE__ */ s(
79
+ B,
80
+ {
81
+ unitMultiplier: e.unitMultiplier,
82
+ skuSpecifications: e.skuSpecifications,
83
+ measurementUnit: e.measurementUnit,
84
+ setIsShowProductBadge: D
85
+ }
86
+ ),
87
+ /* @__PURE__ */ s(
88
+ M,
89
+ {
90
+ offers: e.offers,
91
+ defaultScListPrice: n,
92
+ nativeListPrice: e.customOffers.listPriceCustom,
93
+ nativeSpotPrice: e.customOffers.spotPriceCustom,
94
+ skuSpecifications: e.skuSpecifications,
95
+ unitMultiplier: e.unitMultiplier,
96
+ hasPromotionalPrice: o,
97
+ setIsShowProductBadge: k
98
+ }
99
+ )
100
+ ]
148
101
  }
149
102
  )
150
- ]
151
- }
152
- )
153
- ]
154
- }
155
- )
103
+ ] }),
104
+ a === "horizontal" && /* @__PURE__ */ s(
105
+ w,
106
+ {
107
+ variant: a,
108
+ productSectionBadge: {
109
+ text: i == null ? void 0 : i.flagText,
110
+ color: {
111
+ textColor: i == null ? void 0 : i.textColor,
112
+ backGroundColor: i == null ? void 0 : i.colorCode
113
+ }
114
+ }
115
+ }
116
+ ),
117
+ /* @__PURE__ */ s(
118
+ U,
119
+ {
120
+ account: r,
121
+ isClubClient: u,
122
+ unitMultiplier: e.unitMultiplier,
123
+ hasPromotionalPrice: o,
124
+ measurementUnit: e.measurementUnit,
125
+ skuSpecifications: e.skuSpecifications,
126
+ customOffers: {
127
+ listPriceCustom: e.customOffers.listPriceCustom,
128
+ hasDiscount: e.customOffers.hasDiscount,
129
+ spotPriceCustom: e.customOffers.spotPriceCustom,
130
+ spotPriceKg: e.customOffers.spotPriceKg
131
+ },
132
+ defaultScListPrice: n,
133
+ clubPrice: g,
134
+ hasPlusFriendBadge: c
135
+ }
136
+ )
137
+ ]
138
+ }
139
+ )
140
+ ] }),
141
+ /* @__PURE__ */ s(
142
+ N,
143
+ {
144
+ addToCartAction: P,
145
+ quantitySelectorAction: h,
146
+ productInCart: S,
147
+ layout: a
148
+ }
149
+ )
150
+ ]
156
151
  }
157
152
  );
158
153
  };
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
2
  import { useState as f } from "react";
3
3
  import { ProductCardUnavailable as M } from "../ProducCardUnavailable/index.js";
4
4
  import { ProductCardBadgeKg as N } from "../ProductCardBadge/ProductCardBadgeKg.js";
@@ -8,7 +8,7 @@ import { ProductCardImage as x } from "../ProductCardImage/index.js";
8
8
  import { ProductCardName as E } from "../ProductCardName/index.js";
9
9
  import { ProductCardPrice as I } from "../ProductCardPrice/index.js";
10
10
  const G = ({
11
- account: s,
11
+ account: t,
12
12
  hasPlusFriendBadge: o,
13
13
  promotion: d,
14
14
  product: i,
@@ -21,11 +21,11 @@ const G = ({
21
21
  hasClub: C,
22
22
  openModal: g,
23
23
  addToCartAction: h,
24
- quantitySelectorAction: v,
25
- productInCart: S
24
+ quantitySelectorAction: S,
25
+ productInCart: b
26
26
  }) => {
27
27
  var l, u;
28
- const [k, b] = f(!1), [D, O] = f(!1), B = s === "domolivio" ? "#EBE0CF" : "#FDF3DE";
28
+ const [k, v] = f(!1), [D, O] = f(!1), B = t === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
29
  if (p)
30
30
  return /* @__PURE__ */ e(
31
31
  M,
@@ -33,100 +33,101 @@ const G = ({
33
33
  image: (l = i.image) == null ? void 0 : l[0],
34
34
  name: i.name,
35
35
  variant: r,
36
- account: s
36
+ account: t
37
37
  }
38
38
  );
39
39
  const n = m && i.hasClubPrice;
40
- return /* @__PURE__ */ e("div", { id: "product-card", children: /* @__PURE__ */ e("div", { className: "product-card", children: /* @__PURE__ */ t("div", { className: "product-card-container", onClick: g, children: [
41
- /* @__PURE__ */ e(
42
- x,
43
- {
44
- isProductClubAndClient: n,
45
- variant: r,
46
- hasPlusFriendBadge: o,
47
- promotion: d,
48
- image: (u = i.image) == null ? void 0 : u[0],
49
- account: s
50
- }
51
- ),
52
- /* @__PURE__ */ t(
53
- "div",
54
- {
55
- className: "product-card-description",
56
- style: {
57
- backgroundColor: n ? B : "var(--color-grayScale-faded)"
58
- },
59
- children: [
60
- /* @__PURE__ */ t("div", { className: "product-card-section-name", children: [
61
- /* @__PURE__ */ e(E, { name: i.name }),
62
- /* @__PURE__ */ t(
63
- "div",
40
+ return /* @__PURE__ */ s("div", { id: "product-card", className: "product-card", style: {
41
+ backgroundColor: n ? B : "var(--color-grayScale-faded)"
42
+ }, children: [
43
+ /* @__PURE__ */ s("button", { className: "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",
64
+ {
65
+ className: "product-card-section-badge",
66
+ style: {
67
+ display: !D && !k ? "none" : ""
68
+ },
69
+ children: [
70
+ /* @__PURE__ */ e(
71
+ N,
72
+ {
73
+ unitMultiplier: i.unitMultiplier,
74
+ skuSpecifications: i.skuSpecifications,
75
+ measurementUnit: i.measurementUnit,
76
+ setIsShowProductBadge: O
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: v
90
+ }
91
+ )
92
+ ]
93
+ }
94
+ )
95
+ ] }),
96
+ /* @__PURE__ */ e(
97
+ I,
64
98
  {
65
- className: "product-card-section-badge",
66
- style: {
67
- display: !D && !k ? "none" : ""
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
68
111
  },
69
- children: [
70
- /* @__PURE__ */ e(
71
- N,
72
- {
73
- unitMultiplier: i.unitMultiplier,
74
- skuSpecifications: i.skuSpecifications,
75
- measurementUnit: i.measurementUnit,
76
- setIsShowProductBadge: O
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: b
90
- }
91
- )
92
- ]
112
+ defaultScListPrice: c,
113
+ clubPrice: P,
114
+ hasPlusFriendBadge: o
93
115
  }
94
116
  )
95
- ] }),
96
- /* @__PURE__ */ e(
97
- I,
98
- {
99
- account: s,
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(
118
- U,
119
- {
120
- addToCartAction: h,
121
- quantitySelectorAction: v,
122
- productInCart: S,
123
- layout: r
124
- }
125
- )
126
- ]
117
+ ]
118
+ }
119
+ )
120
+ ] }),
121
+ /* @__PURE__ */ e(
122
+ U,
123
+ {
124
+ addToCartAction: h,
125
+ quantitySelectorAction: S,
126
+ productInCart: b,
127
+ layout: r
127
128
  }
128
129
  )
129
- ] }) }) });
130
+ ] });
130
131
  };
131
132
  export {
132
133
  G as ProductCardVertical
@@ -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}.product-card-container{height:100%;display:flex;flex-direction:column;flex:1}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;flex:1}.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{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;position:relative;align-items:center;height:100%;cursor:pointer;background-color:var(--color-grayScale-white);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);width:calc(var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2));margin:8px 0 0}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;min-height:123px;padding:7.5px 8px;width:calc(100% - (var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2)));height:100%;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{margin-top:unset}.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:100%;height:40px;padding:8px 16px;margin-top:4px;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-horizontal .product-card-button{position:absolute;bottom:0;left:0;width:stretch;max-width:none;margin:8px;font-size:var(--text-size-3);line-height:24px}.product-card-horizontal .input-add{position:absolute;bottom:0;left:0;width:stretch;margin:8px}.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}.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{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:40px;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:38px;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
+ :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}.product-card-container{height:100%;display:flex;flex-direction:column;flex:1;appearance:none;border:none;background:unset}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;flex:1}.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{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;position:relative;align-items:center;height:100%;cursor:pointer;background-color:var(--color-grayScale-white);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);width:calc(var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2));margin:8px 0 0}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;min-height:123px;padding:7.5px 8px;width:calc(100% - (var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2)));height:100%;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{margin-top:unset}.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% - 32px);height:40px;padding:8px 16px;margin:8px 16px;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-horizontal .product-card-button{position:absolute;bottom:0;left:0;width:stretch;max-width:none;margin:8px;font-size:var(--text-size-3);line-height:24px}.product-card-horizontal .input-add{position:absolute;bottom:0;left:0;width:stretch;margin:8px}.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{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:40px;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:38px;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)}
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.1",
5
+ "version": "1.16.5-commerce.2",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",