@plurix/ecom-components 1.16.5-commerce.2 → 1.16.5-commerce.3

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