@plurix/ecom-components 1.16.4-commerce → 1.16.4-commerce.0

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.
@@ -4,19 +4,19 @@ import { ProductCardUnavailable as M } from "../ProducCardUnavailable/index.js";
4
4
  import { ProductCardBadgeKg as N } from "../ProductCardBadge/ProductCardBadgeKg.js";
5
5
  import { ProductCardDiscountBadge as y } from "../ProductCardBadge/ProductCardDiscountBadge.js";
6
6
  import { ProductCardButton as U } from "../ProductCardButton/index.js";
7
- import { ProductCardImage as B } from "../ProductCardImage/index.js";
8
- import { ProductCardName as x } from "../ProductCardName/index.js";
7
+ import { ProductCardImage as x } from "../ProductCardImage/index.js";
8
+ import { ProductCardName as E } from "../ProductCardName/index.js";
9
9
  import { ProductCardPrice as I } from "../ProductCardPrice/index.js";
10
- const z = ({
11
- account: r,
10
+ const G = ({
11
+ account: t,
12
12
  hasPlusFriendBadge: o,
13
13
  promotion: d,
14
14
  product: i,
15
- hasPromotionalPrice: a,
15
+ hasPromotionalPrice: c,
16
16
  clubPrice: P,
17
17
  outOfStock: p,
18
- variant: t,
19
- defaultScListPrice: c,
18
+ variant: r,
19
+ defaultScListPrice: a,
20
20
  isClubClient: m,
21
21
  hasClub: C,
22
22
  openModal: g,
@@ -24,30 +24,30 @@ const z = ({
24
24
  quantitySelectorAction: v,
25
25
  productInCart: S
26
26
  }) => {
27
- var u, l;
28
- const [b, k] = f(!1), [D, O] = f(!1);
27
+ var l, u;
28
+ const [k, b] = f(!1), [D, O] = f(!1), B = t !== "domolivio" ? "#FDF3DE" : "#EBE0CF";
29
29
  if (p)
30
30
  return /* @__PURE__ */ e(
31
31
  M,
32
32
  {
33
- image: (u = i.image) == null ? void 0 : u[0],
33
+ image: (l = i.image) == null ? void 0 : l[0],
34
34
  name: i.name,
35
- variant: t,
36
- account: r
35
+ variant: r,
36
+ account: t
37
37
  }
38
38
  );
39
39
  const n = m && i.hasClubPrice;
40
40
  return /* @__PURE__ */ s("div", { id: "product-card", children: [
41
41
  /* @__PURE__ */ e("div", { className: "product-card", children: /* @__PURE__ */ s("div", { className: "product-card-container", onClick: g, children: [
42
42
  /* @__PURE__ */ e(
43
- B,
43
+ x,
44
44
  {
45
45
  isProductClubAndClient: n,
46
- variant: t,
46
+ variant: r,
47
47
  hasPlusFriendBadge: o,
48
48
  promotion: d,
49
- image: (l = i.image) == null ? void 0 : l[0],
50
- account: r
49
+ image: (u = i.image) == null ? void 0 : u[0],
50
+ account: t
51
51
  }
52
52
  ),
53
53
  /* @__PURE__ */ s(
@@ -55,17 +55,17 @@ const z = ({
55
55
  {
56
56
  className: "product-card-description",
57
57
  style: {
58
- backgroundColor: n ? "#FDF3DE" : "var(--color-grayScale-faded)"
58
+ backgroundColor: n ? B : "var(--color-grayScale-faded)"
59
59
  },
60
60
  children: [
61
61
  /* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
62
- /* @__PURE__ */ e(x, { name: i.name }),
62
+ /* @__PURE__ */ e(E, { name: i.name }),
63
63
  /* @__PURE__ */ s(
64
64
  "div",
65
65
  {
66
66
  className: "product-card-section-badge",
67
67
  style: {
68
- display: !D && !b ? "none" : ""
68
+ display: !D && !k ? "none" : ""
69
69
  },
70
70
  children: [
71
71
  /* @__PURE__ */ e(
@@ -81,13 +81,13 @@ const z = ({
81
81
  y,
82
82
  {
83
83
  offers: i.offers,
84
- defaultScListPrice: c,
84
+ defaultScListPrice: a,
85
85
  nativeListPrice: i.customOffers.listPriceCustom,
86
86
  nativeSpotPrice: i.customOffers.spotPriceCustom,
87
87
  skuSpecifications: i.skuSpecifications,
88
88
  unitMultiplier: i.unitMultiplier,
89
- hasPromotionalPrice: a,
90
- setIsShowProductBadge: k
89
+ hasPromotionalPrice: c,
90
+ setIsShowProductBadge: b
91
91
  }
92
92
  )
93
93
  ]
@@ -100,7 +100,7 @@ const z = ({
100
100
  hasClub: C,
101
101
  isClubClient: m,
102
102
  unitMultiplier: i.unitMultiplier,
103
- hasPromotionalPrice: a,
103
+ hasPromotionalPrice: c,
104
104
  measurementUnit: i.measurementUnit,
105
105
  skuSpecifications: i.skuSpecifications,
106
106
  customOffers: {
@@ -109,7 +109,7 @@ const z = ({
109
109
  spotPriceCustom: i.customOffers.spotPriceCustom,
110
110
  spotPriceKg: i.customOffers.spotPriceKg
111
111
  },
112
- defaultScListPrice: c,
112
+ defaultScListPrice: a,
113
113
  clubPrice: P,
114
114
  hasPlusFriendBadge: o
115
115
  }
@@ -124,11 +124,11 @@ const z = ({
124
124
  addToCartAction: h,
125
125
  quantitySelectorAction: v,
126
126
  productInCart: S,
127
- layout: t
127
+ layout: r
128
128
  }
129
129
  )
130
130
  ] });
131
131
  };
132
132
  export {
133
- z as ProductCardVertical
133
+ G as ProductCardVertical
134
134
  };
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.4-commerce",
5
+ "version": "1.16.4-commerce.0",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",