@plurix/ecom-components 1.16.4-commerce.4 → 1.16.5-commerce-3559

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.
@@ -0,0 +1 @@
1
+ export declare const CartShop: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,48 @@
1
+ import { jsxs as i, jsx as C } from "react/jsx-runtime";
2
+ const h = () => /* @__PURE__ */ i(
3
+ "svg",
4
+ {
5
+ width: "24",
6
+ height: "24",
7
+ viewBox: "0 0 24 24",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ children: [
11
+ /* @__PURE__ */ i("g", { clipPath: "url(#clip0_286_15272)", children: [
12
+ /* @__PURE__ */ C(
13
+ "path",
14
+ {
15
+ d: "M10.6305 17.4783C9.65952 17.4783 8.86963 18.2682 8.86963 19.2391C8.86963 20.2101 9.65952 21 10.6305 21C11.6015 21 12.3914 20.2101 12.3914 19.2391C12.3914 18.2682 11.6015 17.4783 10.6305 17.4783ZM10.6305 19.8261C10.3069 19.8261 10.0435 19.5628 10.0435 19.2391C10.0435 18.9155 10.3069 18.6522 10.6305 18.6522C10.9541 18.6522 11.2175 18.9155 11.2175 19.2391C11.2175 19.5628 10.9541 19.8261 10.6305 19.8261Z",
16
+ fill: "white"
17
+ }
18
+ ),
19
+ /* @__PURE__ */ C(
20
+ "path",
21
+ {
22
+ d: "M17.2826 17.4783C16.3116 17.4783 15.5217 18.2682 15.5217 19.2391C15.5217 20.2101 16.3116 21 17.2826 21C18.2536 21 19.0435 20.2101 19.0435 19.2391C19.0435 18.2682 18.2536 17.4783 17.2826 17.4783ZM17.2826 19.8261C16.959 19.8261 16.6956 19.5628 16.6956 19.2391C16.6956 18.9155 16.9589 18.6522 17.2826 18.6522C17.6062 18.6522 17.8696 18.9155 17.8696 19.2391C17.8696 19.5628 17.6062 19.8261 17.2826 19.8261Z",
23
+ fill: "white"
24
+ }
25
+ ),
26
+ /* @__PURE__ */ C(
27
+ "path",
28
+ {
29
+ d: "M19.818 13.4662L20.9919 6.42274C21.0203 6.25234 20.9725 6.07842 20.8609 5.94659C20.7493 5.81514 20.5857 5.73913 20.413 5.73913H7.34046L6.90231 3.47535C6.84884 3.19948 6.60731 3 6.32606 3H3.58693C3.2629 3 3 3.26293 3 3.58697C3 3.911 3.26293 4.17394 3.58697 4.17394H5.84193L6.27934 6.4341C6.27959 6.43529 6.27962 6.43649 6.27983 6.43768L7.40132 12.2313L8.09762 15.8289C8.15113 16.1048 8.39262 16.3043 8.6739 16.3043H19.2391C19.5632 16.3043 19.8261 16.0414 19.8261 15.7173C19.8261 15.3933 19.5632 15.1303 19.2391 15.1303H9.15807L8.93089 13.9564H19.2391C19.5261 13.9565 19.771 13.749 19.818 13.4662ZM10.826 11.0217C10.826 11.3458 10.563 11.6087 10.239 11.6087C9.91495 11.6087 9.65202 11.3458 9.65202 11.0217V8.6739C9.65202 8.34987 9.91495 8.08693 10.239 8.08693C10.563 8.08693 10.826 8.34987 10.826 8.6739V11.0217ZM14.3477 11.0217C14.3477 11.3458 14.0848 11.6087 13.7607 11.6087C13.4367 11.6087 13.1738 11.3458 13.1738 11.0217V8.6739C13.1738 8.34987 13.4367 8.08693 13.7607 8.08693C14.0848 8.08693 14.3477 8.34987 14.3477 8.6739V11.0217ZM17.8694 11.0217C17.8694 11.3458 17.6065 11.6087 17.2825 11.6087C16.9584 11.6087 16.6955 11.3458 16.6955 11.0217V8.6739C16.6955 8.34987 16.9584 8.08693 17.2825 8.08693C17.6065 8.08693 17.8694 8.34987 17.8694 8.6739V11.0217Z",
30
+ fill: "white"
31
+ }
32
+ )
33
+ ] }),
34
+ /* @__PURE__ */ C("defs", { children: /* @__PURE__ */ C("clipPath", { id: "clip0_286_15272", children: /* @__PURE__ */ C(
35
+ "rect",
36
+ {
37
+ width: "18",
38
+ height: "18",
39
+ fill: "white",
40
+ transform: "translate(3 3)"
41
+ }
42
+ ) }) })
43
+ ]
44
+ }
45
+ );
46
+ export {
47
+ h as CartShop
48
+ };
@@ -1,56 +1,45 @@
1
- import { jsxs as r, jsx as a } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
2
2
  import { ProductCardImage as l } from "../ProductCardImage/index.js";
3
3
  import { ProductCardName as e } from "../ProductCardName/index.js";
4
4
  const u = ({
5
5
  account: c,
6
- image: o,
6
+ image: r,
7
7
  name: d,
8
8
  variant: t
9
- }) => t === "horizontal" ? /* @__PURE__ */ r(
9
+ }) => t === "horizontal" ? /* @__PURE__ */ a(
10
10
  "div",
11
11
  {
12
12
  id: "product-card-unavailable",
13
13
  className: "product-card-horizontal-unavailable",
14
- children: [
15
- /* @__PURE__ */ a(
16
- "div",
17
- {
18
- className: "product-card-horizontal",
19
- style: {
20
- backgroundColor: "var(--color-grayScale-faded)"
21
- },
22
- children: /* @__PURE__ */ r("div", { className: "product-card-section-product-horizontal out-of-stock", children: [
23
- /* @__PURE__ */ a(l, { image: o, account: c }),
24
- /* @__PURE__ */ a(
25
- "div",
26
- {
27
- className: "product-card-horizontal-description out-of-stock",
28
- style: {
29
- backgroundColor: "var(--color-grayScale-lightest)"
30
- },
31
- children: /* @__PURE__ */ a(e, { name: d })
32
- }
33
- )
34
- ] })
35
- }
36
- ),
37
- /* @__PURE__ */ a("div", { className: "product-card-unavailable-text", children: /* @__PURE__ */ a("p", { children: "Indisponível" }) })
38
- ]
39
- }
40
- ) : /* @__PURE__ */ r("div", { id: "product-card-unavailable", className: "out-of-stock", children: [
41
- /* @__PURE__ */ r("div", { className: "product-card out-of-stock", children: [
42
- /* @__PURE__ */ a(
43
- l,
14
+ children: /* @__PURE__ */ a(
15
+ "div",
44
16
  {
45
- image: {
46
- url: o.url,
47
- alternateName: o.alternateName
17
+ className: "product-card-horizontal",
18
+ style: {
19
+ backgroundColor: "var(--color-grayScale-faded)"
48
20
  },
49
- variant: "vertical",
50
- account: c
21
+ children: /* @__PURE__ */ o("div", { className: "product-card-section-product-horizontal out-of-stock", children: [
22
+ /* @__PURE__ */ a(l, { image: r, account: c }),
23
+ /* @__PURE__ */ a("div", { className: "product-card-horizontal-description out-of-stock", children: /* @__PURE__ */ a(e, { name: d }) }),
24
+ /* @__PURE__ */ a("div", { className: "product-card-unavailable-text", children: /* @__PURE__ */ a("p", { children: "Indisponível" }) })
25
+ ] })
51
26
  }
52
- ),
53
- /* @__PURE__ */ a("div", { className: "out-of-stock-description-content", children: /* @__PURE__ */ a(
27
+ )
28
+ }
29
+ ) : /* @__PURE__ */ a("div", { id: "product-card-unavailable", className: "out-of-stock", children: /* @__PURE__ */ o("div", { className: "product-card out-of-stock", children: [
30
+ /* @__PURE__ */ a(
31
+ l,
32
+ {
33
+ image: {
34
+ url: r.url,
35
+ alternateName: r.alternateName
36
+ },
37
+ variant: "vertical",
38
+ account: c
39
+ }
40
+ ),
41
+ /* @__PURE__ */ o("div", { className: "out-of-stock-description-content", children: [
42
+ /* @__PURE__ */ a(
54
43
  "div",
55
44
  {
56
45
  className: "product-card-description",
@@ -60,10 +49,10 @@ const u = ({
60
49
  },
61
50
  children: /* @__PURE__ */ a(e, { name: d })
62
51
  }
63
- ) })
64
- ] }),
65
- /* @__PURE__ */ a("div", { className: "product-card-unavailable-text", children: /* @__PURE__ */ a("p", { children: "Indisponível" }) })
66
- ] });
52
+ ),
53
+ /* @__PURE__ */ a("div", { className: "product-card-unavailable-text", children: /* @__PURE__ */ a("p", { children: "Indisponível" }) })
54
+ ] })
55
+ ] }) });
67
56
  export {
68
57
  u as ProductCardUnavailable
69
58
  };
@@ -1,16 +1,20 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import o from "./CustomQuantitySelector/Button.js";
3
- const n = ({ handleAddToCart: t }) => /* @__PURE__ */ a(
4
- o,
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,
5
6
  {
6
7
  onClick: t,
7
8
  "data-button-variant": "primary",
8
9
  "aria-label": "adicionado ao carrinho",
9
10
  title: "Add to cart Sales",
10
11
  className: "product-card-button",
11
- children: "Adicionar"
12
+ children: [
13
+ /* @__PURE__ */ r(a, {}),
14
+ "Adicionar"
15
+ ]
12
16
  }
13
17
  );
14
18
  export {
15
- n as AddToCartButton
19
+ m as AddToCartButton
16
20
  };
@@ -1,64 +1,76 @@
1
- var N = Object.defineProperty, x = Object.defineProperties;
2
- var v = Object.getOwnPropertyDescriptors;
3
- var l = Object.getOwnPropertySymbols;
1
+ var x = Object.defineProperty, N = Object.defineProperties;
2
+ var j = Object.getOwnPropertyDescriptors;
3
+ var r = Object.getOwnPropertySymbols;
4
4
  var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
5
- var u = (t, a, e) => a in t ? N(t, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[a] = e, r = (t, a) => {
6
- for (var e in a || (a = {}))
7
- c.call(a, e) && u(t, e, a[e]);
8
- if (l)
9
- for (var e of l(a))
10
- d.call(a, e) && u(t, e, a[e]);
5
+ var u = (t, e, a) => e in t ? x(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, l = (t, e) => {
6
+ for (var a in e || (e = {}))
7
+ c.call(e, a) && u(t, a, e[a]);
8
+ if (r)
9
+ for (var a of r(e))
10
+ d.call(e, a) && u(t, a, e[a]);
11
11
  return t;
12
- }, y = (t, a) => x(t, v(a));
13
- var m = (t, a) => {
14
- var e = {};
12
+ }, y = (t, e) => N(t, j(e));
13
+ var m = (t, e) => {
14
+ var a = {};
15
15
  for (var i in t)
16
- c.call(t, i) && a.indexOf(i) < 0 && (e[i] = t[i]);
17
- if (t != null && l)
18
- for (var i of l(t))
19
- a.indexOf(i) < 0 && d.call(t, i) && (e[i] = t[i]);
20
- return e;
16
+ c.call(t, i) && e.indexOf(i) < 0 && (a[i] = t[i]);
17
+ if (t != null && r)
18
+ for (var i of r(t))
19
+ e.indexOf(i) < 0 && d.call(t, i) && (a[i] = t[i]);
20
+ return a;
21
21
  };
22
- import { jsxs as q, jsx as n } from "react/jsx-runtime";
23
- import { forwardRef as Q } from "react";
24
- import p from "./IconButton.js";
25
- const A = Q(function(j, h) {
26
- var s = j, {
27
- quantity: a,
28
- testId: e = "store-quantity-selector",
22
+ import { jsxs as p, jsx as n } from "react/jsx-runtime";
23
+ import { forwardRef as v } from "react";
24
+ import q from "./IconButton.js";
25
+ const S = v(function(w, b) {
26
+ var s = w, {
27
+ quantity: e,
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",
36
36
  "rightButtonProps",
37
37
  "measureUnit"
38
38
  ]);
39
- return /* @__PURE__ */ q(
39
+ return /* @__PURE__ */ p(
40
40
  "div",
41
- y(r({
41
+ y(l({
42
42
  className: "quantity-selector",
43
- "data-testid": e,
44
- ref: h
45
- }, b), {
43
+ "data-testid": a,
44
+ ref: b
45
+ }, h), {
46
46
  children: [
47
47
  /* @__PURE__ */ n(
48
- p,
49
- r({
48
+ q,
49
+ l({
50
50
  "aria-controls": "quantity-selector-input",
51
51
  "aria-label": "Diminuir quantidade",
52
52
  className: "quantity-selector-button button-plus"
53
53
  }, i)
54
54
  ),
55
- /* @__PURE__ */ q("div", { style: { display: "flex", alignItems: "center" }, children: [
56
- /* @__PURE__ */ n("div", { style: { width: "auto" }, children: /* @__PURE__ */ n("p", { "aria-label": "Quantidade", className: "quantity-selector-quantity", children: a }) }),
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
- p,
61
- r({
72
+ q,
73
+ l({
62
74
  "aria-controls": "quantity-selector-input",
63
75
  "aria-label": "Aumentar quantidade",
64
76
  className: "quantity-selector-button quantity-selector-button-plus"
@@ -69,5 +81,5 @@ const A = Q(function(j, h) {
69
81
  );
70
82
  });
71
83
  export {
72
- A as default
84
+ S as default
73
85
  };
@@ -1,11 +1,11 @@
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";
5
- import { ProductCardDiscountBadge as M } from "../ProductCardBadge/ProductCardDiscountBadge.js";
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";
2
+ import { useState as d } from "react";
3
+ import { ProductCardUnavailable as B } from "../ProducCardUnavailable/index.js";
4
+ import { ProductCardBadgeKg as N } from "../ProductCardBadge/ProductCardBadgeKg.js";
5
+ import { ProductCardDiscountBadge as O } from "../ProductCardBadge/ProductCardDiscountBadge.js";
6
+ import { ProductCardButton as M } from "../ProductCardButton/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
10
  import { ProductCardPromotionFlag as E } from "../ProductCardPromotionFlag/index.js";
11
11
  const T = ({
@@ -14,143 +14,135 @@ const T = ({
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
- productInCart: v,
25
- openModal: S
24
+ productInCart: b,
25
+ openModal: v
26
26
  }) => {
27
- var f, d;
28
- const [b, k] = C(!1), [D, x] = C(!1), y = r === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
- if (l)
27
+ var m, f;
28
+ const [S, k] = 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: (f = e.image) == null ? void 0 : f[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" : "#fff"
45
+ backgroundColor: u ? z : "var(--color-grayScale-faded)"
46
46
  },
47
47
  children: [
48
48
  /* @__PURE__ */ t(
49
- "div",
49
+ "button",
50
50
  {
51
- onClick: S,
52
- className: "product-card-section-product-horizontal",
51
+ className: "clean-button product-card-section-product-horizontal",
52
+ onClick: v,
53
53
  children: [
54
54
  /* @__PURE__ */ s(
55
- O,
55
+ p,
56
56
  {
57
- isProductClubAndClient: m,
57
+ isProductClubAndClient: u,
58
58
  variant: a,
59
59
  hasPlusFriendBadge: c,
60
60
  promotion: i,
61
- image: (d = e.image) == null ? void 0 : d[0],
61
+ image: (f = e.image) == null ? void 0 : f[0],
62
62
  account: r
63
63
  }
64
64
  ),
65
- /* @__PURE__ */ t(
66
- "div",
67
- {
68
- className: "product-card-horizontal-description",
69
- style: {
70
- backgroundColor: m ? y : "var(--color-grayScale-faded)"
71
- },
72
- children: [
73
- /* @__PURE__ */ t("div", { className: "product-card-section-name", children: [
74
- /* @__PURE__ */ s(p, { name: e.name }),
75
- /* @__PURE__ */ t(
76
- "div",
77
- {
78
- className: "product-card-section-badge-horizontal",
79
- style: {
80
- display: !D && !b ? "none" : ""
81
- },
82
- children: [
83
- /* @__PURE__ */ s(
84
- B,
85
- {
86
- unitMultiplier: e.unitMultiplier,
87
- skuSpecifications: e.skuSpecifications,
88
- measurementUnit: e.measurementUnit,
89
- setIsShowProductBadge: x
90
- }
91
- ),
92
- /* @__PURE__ */ s(
93
- M,
94
- {
95
- offers: e.offers,
96
- defaultScListPrice: n,
97
- nativeListPrice: e.customOffers.listPriceCustom,
98
- nativeSpotPrice: e.customOffers.spotPriceCustom,
99
- skuSpecifications: e.skuSpecifications,
100
- unitMultiplier: e.unitMultiplier,
101
- hasPromotionalPrice: o,
102
- setIsShowProductBadge: k
103
- }
104
- )
105
- ]
106
- }
107
- )
108
- ] }),
109
- a === "horizontal" && /* @__PURE__ */ s(
110
- E,
111
- {
112
- variant: a,
113
- productSectionBadge: {
114
- text: i == null ? void 0 : i.flagText,
115
- color: {
116
- textColor: i == null ? void 0 : i.textColor,
117
- backGroundColor: i == null ? void 0 : i.colorCode
65
+ /* @__PURE__ */ t("div", { className: "product-card-horizontal-description", children: [
66
+ /* @__PURE__ */ t("div", { className: "product-card-section-name", children: [
67
+ /* @__PURE__ */ s(y, { name: e.name }),
68
+ /* @__PURE__ */ t(
69
+ "div",
70
+ {
71
+ className: "product-card-section-badge-horizontal",
72
+ style: {
73
+ display: !D && !S ? "none" : ""
74
+ },
75
+ children: [
76
+ /* @__PURE__ */ s(
77
+ N,
78
+ {
79
+ unitMultiplier: e.unitMultiplier,
80
+ skuSpecifications: e.skuSpecifications,
81
+ measurementUnit: e.measurementUnit,
82
+ setIsShowProductBadge: x
118
83
  }
119
- }
120
- }
121
- ),
122
- /* @__PURE__ */ s(
123
- U,
124
- {
125
- account: r,
126
- isClubClient: u,
127
- unitMultiplier: e.unitMultiplier,
128
- hasPromotionalPrice: o,
129
- measurementUnit: e.measurementUnit,
130
- skuSpecifications: e.skuSpecifications,
131
- customOffers: {
132
- listPriceCustom: e.customOffers.listPriceCustom,
133
- hasDiscount: e.customOffers.hasDiscount,
134
- spotPriceCustom: e.customOffers.spotPriceCustom,
135
- spotPriceKg: e.customOffers.spotPriceKg
136
- },
137
- defaultScListPrice: n,
138
- clubPrice: g,
139
- hasPlusFriendBadge: c
84
+ ),
85
+ /* @__PURE__ */ s(
86
+ O,
87
+ {
88
+ offers: e.offers,
89
+ defaultScListPrice: l,
90
+ nativeListPrice: e.customOffers.listPriceCustom,
91
+ nativeSpotPrice: e.customOffers.spotPriceCustom,
92
+ skuSpecifications: e.skuSpecifications,
93
+ unitMultiplier: e.unitMultiplier,
94
+ hasPromotionalPrice: o,
95
+ setIsShowProductBadge: k
96
+ }
97
+ )
98
+ ]
99
+ }
100
+ )
101
+ ] }),
102
+ a === "horizontal" && /* @__PURE__ */ s(
103
+ E,
104
+ {
105
+ variant: a,
106
+ productSectionBadge: {
107
+ text: i == null ? void 0 : i.flagText,
108
+ color: {
109
+ textColor: i == null ? void 0 : i.textColor,
110
+ backGroundColor: i == null ? void 0 : i.colorCode
140
111
  }
141
- )
142
- ]
143
- }
144
- )
112
+ }
113
+ }
114
+ ),
115
+ /* @__PURE__ */ s(
116
+ U,
117
+ {
118
+ account: r,
119
+ isClubClient: n,
120
+ unitMultiplier: e.unitMultiplier,
121
+ hasPromotionalPrice: o,
122
+ measurementUnit: e.measurementUnit,
123
+ skuSpecifications: e.skuSpecifications,
124
+ customOffers: {
125
+ listPriceCustom: e.customOffers.listPriceCustom,
126
+ hasDiscount: e.customOffers.hasDiscount,
127
+ spotPriceCustom: e.customOffers.spotPriceCustom,
128
+ spotPriceKg: e.customOffers.spotPriceKg
129
+ },
130
+ defaultScListPrice: l,
131
+ clubPrice: C,
132
+ hasPlusFriendBadge: c
133
+ }
134
+ ),
135
+ /* @__PURE__ */ s("div", { className: "invisible-button" })
136
+ ] })
145
137
  ]
146
138
  }
147
139
  ),
148
140
  /* @__PURE__ */ s(
149
- N,
141
+ M,
150
142
  {
151
- addToCartAction: P,
143
+ addToCartAction: g,
152
144
  quantitySelectorAction: h,
153
- productInCart: v,
145
+ productInCart: b,
154
146
  layout: a
155
147
  }
156
148
  )
@@ -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,7 +1,7 @@
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 M } from "../ProducCardUnavailable/index.js";
4
- import { ProductCardBadgeKg as N } from "../ProductCardBadge/ProductCardBadgeKg.js";
3
+ import { ProductCardUnavailable as B } from "../ProducCardUnavailable/index.js";
4
+ import { ProductCardBadgeKg as M } 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
7
  import { ProductCardImage as x } from "../ProductCardImage/index.js";
@@ -20,15 +20,15 @@ const G = ({
20
20
  isClubClient: m,
21
21
  hasClub: C,
22
22
  openModal: g,
23
- addToCartAction: h,
23
+ addToCartAction: b,
24
24
  quantitySelectorAction: v,
25
- productInCart: S
25
+ productInCart: h
26
26
  }) => {
27
27
  var l, u;
28
- const [k, b] = f(!1), [D, O] = f(!1), B = t === "domolivio" ? "#EBE0CF" : "#FDF3DE";
28
+ const [S, k] = f(!1), [D, N] = f(!1), O = t === "domolivio" ? "#EBE0CF" : "#FDF3DE";
29
29
  if (p)
30
30
  return /* @__PURE__ */ e(
31
- M,
31
+ B,
32
32
  {
33
33
  image: (l = i.image) == null ? void 0 : l[0],
34
34
  name: i.name,
@@ -37,98 +37,107 @@ const G = ({
37
37
  }
38
38
  );
39
39
  const n = m && i.hasClubPrice;
40
- return /* @__PURE__ */ s("div", { id: "product-card", children: [
41
- /* @__PURE__ */ e("div", { className: "product-card", children: /* @__PURE__ */ s("div", { className: "product-card-container", onClick: g, children: [
42
- /* @__PURE__ */ e(
43
- x,
44
- {
45
- isProductClubAndClient: n,
46
- variant: r,
47
- hasPlusFriendBadge: o,
48
- promotion: d,
49
- image: (u = i.image) == null ? void 0 : u[0],
50
- account: t
51
- }
52
- ),
53
- /* @__PURE__ */ s(
54
- "div",
55
- {
56
- className: "product-card-description",
57
- style: {
58
- backgroundColor: n ? B : "var(--color-grayScale-faded)"
59
- },
60
- children: [
61
- /* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
62
- /* @__PURE__ */ e(E, { name: i.name }),
63
- /* @__PURE__ */ s(
64
- "div",
40
+ return /* @__PURE__ */ s(
41
+ "div",
42
+ {
43
+ id: "product-card",
44
+ className: "product-card",
45
+ style: {
46
+ backgroundColor: n ? O : "var(--color-grayScale-faded)"
47
+ },
48
+ children: [
49
+ /* @__PURE__ */ s(
50
+ "button",
51
+ {
52
+ className: "clean-button product-card-container",
53
+ onClick: g,
54
+ children: [
55
+ /* @__PURE__ */ e(
56
+ x,
65
57
  {
66
- className: "product-card-section-badge",
67
- style: {
68
- display: !D && !k ? "none" : ""
69
- },
70
- children: [
71
- /* @__PURE__ */ e(
72
- N,
73
- {
74
- unitMultiplier: i.unitMultiplier,
75
- skuSpecifications: i.skuSpecifications,
76
- measurementUnit: i.measurementUnit,
77
- setIsShowProductBadge: O
78
- }
79
- ),
80
- /* @__PURE__ */ e(
81
- y,
82
- {
83
- offers: i.offers,
84
- defaultScListPrice: c,
85
- nativeListPrice: i.customOffers.listPriceCustom,
86
- nativeSpotPrice: i.customOffers.spotPriceCustom,
87
- skuSpecifications: i.skuSpecifications,
88
- unitMultiplier: i.unitMultiplier,
89
- hasPromotionalPrice: a,
90
- setIsShowProductBadge: b
91
- }
92
- )
93
- ]
58
+ isProductClubAndClient: n,
59
+ variant: r,
60
+ hasPlusFriendBadge: o,
61
+ promotion: d,
62
+ image: (u = i.image) == null ? void 0 : u[0],
63
+ account: t
94
64
  }
95
- )
96
- ] }),
97
- /* @__PURE__ */ e(
98
- I,
99
- {
100
- account: t,
101
- hasClub: C,
102
- isClubClient: m,
103
- unitMultiplier: i.unitMultiplier,
104
- hasPromotionalPrice: a,
105
- measurementUnit: i.measurementUnit,
106
- skuSpecifications: i.skuSpecifications,
107
- customOffers: {
108
- listPriceCustom: i.customOffers.listPriceCustom,
109
- hasDiscount: i.customOffers.hasDiscount,
110
- spotPriceCustom: i.customOffers.spotPriceCustom,
111
- spotPriceKg: i.customOffers.spotPriceKg
112
- },
113
- defaultScListPrice: c,
114
- clubPrice: P,
115
- hasPlusFriendBadge: o
116
- }
117
- )
118
- ]
119
- }
120
- )
121
- ] }) }),
122
- /* @__PURE__ */ e(
123
- U,
124
- {
125
- addToCartAction: h,
126
- quantitySelectorAction: v,
127
- productInCart: S,
128
- layout: r
129
- }
130
- )
131
- ] });
65
+ ),
66
+ /* @__PURE__ */ s("div", { className: "product-card-description", children: [
67
+ /* @__PURE__ */ s("div", { className: "product-card-section-name", children: [
68
+ /* @__PURE__ */ e(E, { name: i.name }),
69
+ /* @__PURE__ */ s(
70
+ "div",
71
+ {
72
+ className: "product-card-section-badge",
73
+ style: {
74
+ display: !D && !S ? "none" : ""
75
+ },
76
+ children: [
77
+ /* @__PURE__ */ e(
78
+ M,
79
+ {
80
+ unitMultiplier: i.unitMultiplier,
81
+ skuSpecifications: i.skuSpecifications,
82
+ measurementUnit: i.measurementUnit,
83
+ setIsShowProductBadge: N
84
+ }
85
+ ),
86
+ /* @__PURE__ */ e(
87
+ y,
88
+ {
89
+ offers: i.offers,
90
+ defaultScListPrice: c,
91
+ nativeListPrice: i.customOffers.listPriceCustom,
92
+ nativeSpotPrice: i.customOffers.spotPriceCustom,
93
+ skuSpecifications: i.skuSpecifications,
94
+ unitMultiplier: i.unitMultiplier,
95
+ hasPromotionalPrice: a,
96
+ setIsShowProductBadge: k
97
+ }
98
+ )
99
+ ]
100
+ }
101
+ )
102
+ ] }),
103
+ /* @__PURE__ */ e(
104
+ I,
105
+ {
106
+ account: t,
107
+ hasClub: C,
108
+ isClubClient: m,
109
+ unitMultiplier: i.unitMultiplier,
110
+ hasPromotionalPrice: a,
111
+ measurementUnit: i.measurementUnit,
112
+ skuSpecifications: i.skuSpecifications,
113
+ customOffers: {
114
+ listPriceCustom: i.customOffers.listPriceCustom,
115
+ hasDiscount: i.customOffers.hasDiscount,
116
+ spotPriceCustom: i.customOffers.spotPriceCustom,
117
+ spotPriceKg: i.customOffers.spotPriceKg
118
+ },
119
+ defaultScListPrice: c,
120
+ clubPrice: P,
121
+ hasPlusFriendBadge: o
122
+ }
123
+ ),
124
+ /* @__PURE__ */ e("div", { className: "invisible-button" })
125
+ ] })
126
+ ]
127
+ }
128
+ ),
129
+ /* @__PURE__ */ e(
130
+ U,
131
+ {
132
+ addToCartAction: b,
133
+ quantitySelectorAction: v,
134
+ productInCart: h,
135
+ layout: r
136
+ }
137
+ )
138
+ ]
139
+ }
140
+ );
132
141
  };
133
142
  export {
134
143
  G as ProductCardVertical
@@ -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 = ({
5
- product: l,
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,
6
6
  variant: r,
7
- account: C,
8
- hasPlusFriendBadge: f = !1,
9
- hasPromotionalPrice: s,
7
+ account: f,
8
+ hasPlusFriendBadge: i = !1,
9
+ hasPromotionalPrice: l,
10
10
  clubPrice: x,
11
11
  defaultScListPrice: V,
12
12
  hasClub: m,
13
- isClubClient: g,
14
- openModal: d,
15
- promotion: e,
16
- outOfStock: j,
17
- addToCartAction: p,
18
- quantitySelectorAction: z,
19
- productInCart: H
13
+ isClubClient: E,
14
+ openModal: j,
15
+ promotion: p,
16
+ outOfStock: s,
17
+ addToCartAction: z,
18
+ quantitySelectorAction: H,
19
+ productInCart: b
20
20
  }) => {
21
- const b = !!(m && g);
22
- return /* @__PURE__ */ i("div", { style: { height: "100%" }, children: r === "vertical" ? /* @__PURE__ */ i(
23
- v,
21
+ const w = !!(m && E);
22
+ return r === "vertical" ? /* @__PURE__ */ D(
23
+ J,
24
24
  {
25
- isClubClient: b,
25
+ isClubClient: w,
26
26
  hasClub: m,
27
27
  defaultScListPrice: V,
28
- hasPromotionalPrice: s,
29
- product: l,
28
+ hasPromotionalPrice: l,
29
+ product: C,
30
30
  variant: r,
31
- outOfStock: j,
32
- promotion: e,
31
+ outOfStock: s,
32
+ promotion: p,
33
33
  clubPrice: x,
34
- openModal: d,
35
- hasPlusFriendBadge: f,
36
- addToCartAction: p,
37
- quantitySelectorAction: z,
38
- productInCart: H,
39
- account: C
34
+ openModal: j,
35
+ hasPlusFriendBadge: i,
36
+ addToCartAction: z,
37
+ quantitySelectorAction: H,
38
+ productInCart: b,
39
+ account: f
40
40
  }
41
- ) : /* @__PURE__ */ i(
42
- t,
41
+ ) : /* @__PURE__ */ D(
42
+ G,
43
43
  {
44
- openModal: d,
45
- isClubClient: b,
44
+ openModal: j,
45
+ isClubClient: w,
46
46
  hasClub: m,
47
47
  defaultScListPrice: V,
48
- hasPromotionalPrice: s,
49
- product: l,
48
+ hasPromotionalPrice: l,
49
+ product: C,
50
50
  variant: r,
51
- hasPlusFriendBadge: f,
52
- outOfStock: j,
53
- promotion: e,
51
+ hasPlusFriendBadge: i,
52
+ outOfStock: s,
53
+ promotion: p,
54
54
  clubPrice: x,
55
- addToCartAction: p,
56
- quantitySelectorAction: z,
57
- productInCart: H,
58
- account: C
55
+ addToCartAction: z,
56
+ quantitySelectorAction: H,
57
+ productInCart: b,
58
+ account: f
59
59
  }
60
- ) });
60
+ );
61
61
  };
62
62
  export {
63
- G as ProductCard
63
+ U as ProductCard
64
64
  };
@@ -1,59 +1,59 @@
1
- import { jsxs as x, jsx as u } from "react/jsx-runtime";
2
- import { SetViewButton as d } from "./SetViewButton.js";
1
+ import { jsxs as b, jsx as u } from "react/jsx-runtime";
2
+ import { SetViewButton as w } from "./SetViewButton.js";
3
3
  import { ArrowIcon as C } from "../../../assets/svgs/ArrowIcon.js";
4
4
  import { useRegionalizationContext as N } from "../context/RegionalizationContext.js";
5
5
  import { deliverySetData as V } from "../utils/deliverySetData.js";
6
6
  import { pickupSetData as j } from "../utils/pickupSetData.js";
7
- const F = ({
8
- moreInfosScreen: i,
9
- pickuConfirmScreem: h
7
+ const E = ({
8
+ moreInfosScreen: l,
9
+ pickuConfirmScreem: B
10
10
  }) => {
11
11
  const {
12
- confirmButton: I,
13
- textBackButton: S,
12
+ confirmButton: x,
13
+ textBackButton: h,
14
14
  delivery: e,
15
15
  pickup: a,
16
16
  pickupAddress: o,
17
- internalMethod: l,
17
+ internalMethod: i,
18
18
  regionalizeCatalog: n,
19
19
  address: t,
20
- deliveryRequestInfos: b,
21
- postalCode: w,
20
+ deliveryRequestInfos: I,
21
+ postalCode: v,
22
22
  setMethod: r,
23
- setCity: m,
24
- setUf: c,
25
- setPickupName: f,
26
- setPickupTimes: v,
27
- pickupTimes: B,
28
- setInputPostalCode: p
23
+ setCity: c,
24
+ setUf: m,
25
+ setPickupName: s,
26
+ setPickupTimes: f,
27
+ pickupTimes: d,
28
+ setInputPostalCode: S
29
29
  } = N();
30
- return /* @__PURE__ */ x("div", { className: "container-navigation", children: [
31
- /* @__PURE__ */ x(
32
- d,
30
+ return console.log("sbs", i), console.log("sbs pickupAddress", o), console.log("sbs address", t), /* @__PURE__ */ b("div", { className: "container-navigation", children: [
31
+ /* @__PURE__ */ b(
32
+ w,
33
33
  {
34
- view: i ? "InitialView" : h ? "AllStoresScreen" : "PostalCodeInputScreen",
34
+ view: l ? "InitialView" : B ? "AllStoresScreen" : "PostalCodeInputScreen",
35
35
  className: "back-button",
36
36
  children: [
37
37
  /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(C, { color: "var(--color-main)" }) }),
38
- S
38
+ h
39
39
  ]
40
40
  }
41
41
  ),
42
42
  /* @__PURE__ */ u(
43
- d,
43
+ w,
44
44
  {
45
45
  view: "InitialView",
46
- closeModal: !i,
46
+ closeModal: !l,
47
47
  className: "continue-button",
48
48
  onClick: () => {
49
- var s;
50
- r == null || r(l), l === "delivery" ? (V(t, b, w), m == null || m(t == null ? void 0 : t.localidade), c == null || c(t == null ? void 0 : t.uf), n == null || n(w)) : (p(((s = o == null ? void 0 : o.address) == null ? void 0 : s.postalCode) || ""), j(o, B), f == null || f(o == null ? void 0 : o.name), v == null || v(B), n == null || n(o == null ? void 0 : o.address.postalCode));
49
+ var p;
50
+ r == null || r(i), i === "delivery" && (V(t, I, v), c == null || c(t == null ? void 0 : t.localidade), m == null || m(t == null ? void 0 : t.uf), n == null || n(v)), i === "pickup-in-point" && (S(((p = o == null ? void 0 : o.address) == null ? void 0 : p.postalCode) || ""), j(o, d), s == null || s(o == null ? void 0 : o.name), f == null || f(d), n == null || n(o == null ? void 0 : o.address.postalCode));
51
51
  },
52
- children: i ? I : l === "delivery" ? e == null ? void 0 : e.confirmButton : a == null ? void 0 : a.confirmButton
52
+ children: l ? x : i === "delivery" ? e == null ? void 0 : e.confirmButton : a == null ? void 0 : a.confirmButton
53
53
  }
54
54
  )
55
55
  ] });
56
56
  };
57
57
  export {
58
- F as Navigation
58
+ E as Navigation
59
59
  };
@@ -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%;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}.product-card-see-more-text-container{display:flex;align-items:center;height:100%;border:1px solid var(--color-grayScale-lightest);border-radius:8px;border-bottom:unset;border-bottom-left-radius:unset;border-bottom-right-radius:unset;flex:1}.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;width:100%;font-weight:var(--text-weight-bold);font-size:24px;line-height:28px}.product-card-see-more-link-horizontal,.product-card-see-more-link{width:100%;height:48px;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;border:1px solid var(--color-main);border-top:unset;border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-left-radius:8px;border-bottom-right-radius:8px;display:flex;align-items:center;justify-content:center}.product-card-see-more-horizontal{width:304px;border-radius:8px;min-height:176px;max-height:206px;display:flex;flex-direction:column;height:100%}.product-card-see-more-horizontal-container{border:1px solid var(--color-grayScale-lightest);border-radius:8px;border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-bottom:unset;flex:1}.product-card-see-more-horizontal div{padding:24px 16px}.product-card-see-more-link-horizontal{margin:0}@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-top-left-radius:8px;border-top-right-radius:8px;border-bottom:0;overflow:hidden}.product-card-container{height:100%;display:flex;flex-direction:column;flex:1}.product-card,.product-card+#product-card-button,.product-card+.product-card-unavailable-text{width:162px;min-width:150px;max-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{border-radius:8px}.product-card-horizontal{min-width:304px;max-width:304px;border-radius:8px;flex:1;display:flex;flex-direction:column;height:100%;max-height:206px}.product-card-horizontal+.product-card-unavailable-text{min-width:304px;max-width:304px}.product-card-section-product-horizontal{display:flex;align-items:center;position:relative;cursor:pointer;background-color:#fff;border:1px solid var(--color-grayScale-lightest);border-radius:8px;border-bottom:unset;border-bottom-left-radius:unset;border-bottom-right-radius:unset;height:100%}.product-card-section-product-horizontal .product-card-image-container{position:unset;height:100px;padding:0 var(--product-card-horizontal-padding);width:calc(var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2));margin: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;max-height:158px;padding:7.5px 8px;border-top-right-radius:7px;width:calc(100% - (var(--product-card-horizontal-width) + (var(--product-card-horizontal-margin) * 2)));height:100%}.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}.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:162px;min-width:150px;max-width:162px;height:48px;padding:0;border:1px solid var(--color-main);border-top:none;border-bottom-left-radius:8px;border-bottom-right-radius:8px;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-horizontal .product-card-button{font-size:var(--text-size-3);line-height:24px;width:100%;max-width:none}.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:#fff;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-button,.product-card+.product-card-unavailable-text{width:226px;max-width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-button{width:226px;max-width:226px}.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:48px;border:1px solid var(--color-main);border-bottom-left-radius:8px;border-bottom-right-radius:8px;background-color:var(--bg-neutral-lightest);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-family:DM Sans,sans-serif;font-size:var;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:46px;padding:var(--space-0);font-family:DM Sans,sans-serif;background-color:var(--color-grayScale-lightest);border:unset;border-bottom-left-radius:7px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-bottom-right-radius:7px;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:48px;width:100%;background-color:var(--color-grayScale-lightest);border:1px solid var(--color-grayScale-lightest);color:var(--color-grayScale-darkest);text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;align-content:center;border-bottom-left-radius:8px;border-bottom-right-radius:8px}
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%}.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)}
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.4",
5
+ "version": "1.16.5-commerce-3559",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",