@plurix/ecom-components 1.16.1-commerce.7 → 1.16.2-commerce

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,13 +1,13 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { useState as v } from "react";
2
+ import { useState as l } from "react";
3
3
  import { ProductCardUnavailable as O } from "../ProducCardUnavailable/index.js";
4
4
  import { ProductCardBadgeKg as M } from "../ProductCardBadge/ProductCardBadgeKg.js";
5
5
  import { ProductCardDiscountBadge as N } from "../ProductCardBadge/ProductCardDiscountBadge.js";
6
6
  import { ProductCardButton as y } from "../ProductCardButton/index.js";
7
- import { ProductCardImage as D } from "../ProductCardImage/index.js";
8
- import { ProductCardName as U } from "../ProductCardName/index.js";
9
- import { ProductCardPrice as b } from "../ProductCardPrice/index.js";
10
- const V = ({
7
+ import { ProductCardImage as U } from "../ProductCardImage/index.js";
8
+ import { ProductCardName as B } from "../ProductCardName/index.js";
9
+ import { ProductCardPrice as x } from "../ProductCardPrice/index.js";
10
+ const q = ({
11
11
  hasPlusFriendBadge: r,
12
12
  promotion: f,
13
13
  product: i,
@@ -20,31 +20,31 @@ const V = ({
20
20
  hasClub: p,
21
21
  openModal: C,
22
22
  addToCartAction: g,
23
- quantitySelectorAction: S,
24
- productInCart: h
23
+ quantitySelectorAction: h,
24
+ productInCart: v
25
25
  }) => {
26
- var u, l;
27
- const [k, m] = v(!1);
26
+ var n, u;
27
+ const [S, b] = l(!1), [k, D] = l(!1);
28
28
  if (P)
29
29
  return /* @__PURE__ */ e(
30
30
  O,
31
31
  {
32
- image: (u = i.image) == null ? void 0 : u[0],
32
+ image: (n = i.image) == null ? void 0 : n[0],
33
33
  name: i.name,
34
34
  variant: t
35
35
  }
36
36
  );
37
- const n = c && i.hasClubPrice;
37
+ const m = c && i.hasClubPrice;
38
38
  return /* @__PURE__ */ s("div", { id: "product-card", children: [
39
39
  /* @__PURE__ */ e("div", { className: "product-card", children: /* @__PURE__ */ s("div", { className: "product-card-container", onClick: C, children: [
40
40
  /* @__PURE__ */ e(
41
- D,
41
+ U,
42
42
  {
43
- isProductClubAndClient: n,
43
+ isProductClubAndClient: m,
44
44
  variant: t,
45
45
  hasPlusFriendBadge: r,
46
46
  promotion: f,
47
- image: (l = i.image) == null ? void 0 : l[0]
47
+ image: (u = i.image) == null ? void 0 : u[0]
48
48
  }
49
49
  ),
50
50
  /* @__PURE__ */ s(
@@ -52,16 +52,16 @@ const V = ({
52
52
  {
53
53
  className: "product-card-description",
54
54
  style: {
55
- backgroundColor: n ? "#FDF3DE" : "var(--color-grayScale-faded)"
55
+ backgroundColor: m ? "#FDF3DE" : "var(--color-grayScale-faded)"
56
56
  },
57
57
  children: [
58
58
  /* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
59
- /* @__PURE__ */ e(U, { name: i.name }),
59
+ /* @__PURE__ */ e(B, { name: i.name }),
60
60
  /* @__PURE__ */ s(
61
61
  "div",
62
62
  {
63
63
  className: "product-card-section-badge",
64
- style: { display: k ? "" : "none" },
64
+ style: { display: !k && !S ? "none" : "" },
65
65
  children: [
66
66
  /* @__PURE__ */ e(
67
67
  M,
@@ -69,7 +69,7 @@ const V = ({
69
69
  unitMultiplier: i.unitMultiplier,
70
70
  skuSpecifications: i.skuSpecifications,
71
71
  measurementUnit: i.measurementUnit,
72
- setIsShowProductBadge: m
72
+ setIsShowProductBadge: D
73
73
  }
74
74
  ),
75
75
  /* @__PURE__ */ e(
@@ -82,7 +82,7 @@ const V = ({
82
82
  skuSpecifications: i.skuSpecifications,
83
83
  unitMultiplier: i.unitMultiplier,
84
84
  hasPromotionalPrice: o,
85
- setIsShowProductBadge: m
85
+ setIsShowProductBadge: b
86
86
  }
87
87
  )
88
88
  ]
@@ -90,7 +90,7 @@ const V = ({
90
90
  )
91
91
  ] }),
92
92
  /* @__PURE__ */ e(
93
- b,
93
+ x,
94
94
  {
95
95
  hasClub: p,
96
96
  isClubClient: c,
@@ -117,13 +117,13 @@ const V = ({
117
117
  y,
118
118
  {
119
119
  addToCartAction: g,
120
- quantitySelectorAction: S,
121
- productInCart: h,
120
+ quantitySelectorAction: h,
121
+ productInCart: v,
122
122
  layout: t
123
123
  }
124
124
  )
125
125
  ] });
126
126
  };
127
127
  export {
128
- V as ProductCardVertical
128
+ q as ProductCardVertical
129
129
  };
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.1-commerce.7",
5
+ "version": "1.16.2-commerce",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",