@plurix/ecom-components 1.1.2-scs1825.7 → 1.1.3-commerce.scs1825
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.
- package/dist/packages/ChangeOrderModal/ChangeOrderModal.d.ts +3 -2
- package/dist/packages/ChangeOrderModal/ChangeOrderModal.js +62 -51
- package/dist/packages/ChangeOrderModal/assets/icons.js +6 -6
- package/dist/packages/ChangeOrderModal/components/ModalFooter.d.ts +2 -2
- package/dist/packages/ChangeOrderModal/components/ModalFooter.js +5 -5
- package/dist/packages/ChangeOrderModal/components/ProductSelected.js +6 -6
- package/dist/packages/ChangeOrderModal/components/SimilarProductList.d.ts +4 -3
- package/dist/packages/ChangeOrderModal/components/SimilarProductList.js +51 -46
- package/dist/packages/ChangeOrderModal/components/SimilarProducts.d.ts +4 -3
- package/dist/packages/ChangeOrderModal/components/SimilarProducts.js +28 -21
- package/dist/packages/Coupons/components/ModalFooter.d.ts +1 -2
- package/dist/packages/Coupons/components/ModalFooter.js +14 -15
- package/dist/styles/change-order-modal.global.css +1 -1
- package/dist/styles/coupons.global.css +1 -1
- package/dist/styles/modal.global.css +1 -1
- package/dist/utils/changerOrderModal.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { SelectedItemProps } from './components/ProductSelected';
|
|
3
|
+
import { SimilarProducts as SimilarProductsProps } from '../../types/ChangeOrderModal';
|
|
3
4
|
|
|
4
5
|
export interface ChangeOrderModalProps {
|
|
5
6
|
postalCode: string;
|
|
@@ -8,6 +9,6 @@ export interface ChangeOrderModalProps {
|
|
|
8
9
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
9
10
|
environment: 'io' | 'faststore';
|
|
10
11
|
isClubClient?: boolean;
|
|
11
|
-
|
|
12
|
+
saveSelectedSimilarProduct?: (similarProduct: SimilarProductsProps | undefined) => void;
|
|
12
13
|
}
|
|
13
|
-
export declare const ChangeOrderModal: ({ selectedItem, postalCode, environment, isClubClient, isOpen, setIsOpen,
|
|
14
|
+
export declare const ChangeOrderModal: ({ selectedItem, postalCode, environment, isClubClient, isOpen, setIsOpen, saveSelectedSimilarProduct }: ChangeOrderModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,85 +1,96 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Modal as
|
|
4
|
-
import { ProductSelected as
|
|
5
|
-
import { SimilarProducts as
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as a, jsxs as E, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useMemo as b, useCallback as m, useEffect as q } from "react";
|
|
3
|
+
import { Modal as F } from "../Modal/Modal.js";
|
|
4
|
+
import { ProductSelected as R } from "./components/ProductSelected.js";
|
|
5
|
+
import { SimilarProducts as T } from "./components/SimilarProducts.js";
|
|
6
|
+
import { ModalFooter as $ } from "./components/ModalFooter.js";
|
|
7
|
+
/* empty css */import y from "axios";
|
|
8
|
+
import { Skeleton as A } from "@acctglobal/skeleton";
|
|
9
|
+
const J = ({
|
|
8
10
|
selectedItem: o,
|
|
9
|
-
postalCode:
|
|
10
|
-
environment:
|
|
11
|
-
isClubClient:
|
|
11
|
+
postalCode: t,
|
|
12
|
+
environment: g,
|
|
13
|
+
isClubClient: O,
|
|
12
14
|
isOpen: P,
|
|
13
|
-
setIsOpen:
|
|
14
|
-
|
|
15
|
+
setIsOpen: x,
|
|
16
|
+
saveSelectedSimilarProduct: c
|
|
15
17
|
}) => {
|
|
16
|
-
const [
|
|
17
|
-
() => `/_v/commerce/products/productsSimilar?postalCode=${
|
|
18
|
-
[
|
|
19
|
-
),
|
|
18
|
+
const [u, M] = f(), [k, l] = f(), [w, n] = f(!1), h = g === "io", s = b(
|
|
19
|
+
() => `/_v/commerce/products/productsSimilar?postalCode=${t}&skus=${o == null ? void 0 : o.productOriginId}&field=sku`,
|
|
20
|
+
[t, o]
|
|
21
|
+
), j = m(async () => {
|
|
20
22
|
try {
|
|
21
|
-
|
|
22
|
-
const { data: r } = await
|
|
23
|
+
n(!0);
|
|
24
|
+
const { data: r } = await y.post("/api/proxy", {
|
|
23
25
|
targetUrl: s,
|
|
24
26
|
method: "GET",
|
|
25
27
|
headers: {
|
|
26
28
|
"Content-Type": "application/json",
|
|
27
29
|
Accept: "application/json"
|
|
28
30
|
}
|
|
29
|
-
}), { similarProducts:
|
|
30
|
-
(
|
|
31
|
+
}), { similarProducts: p } = await r, i = p.find(
|
|
32
|
+
(d) => d.productOrigin === (o == null ? void 0 : o.productOriginId)
|
|
31
33
|
);
|
|
32
|
-
|
|
34
|
+
l(i == null ? void 0 : i.products);
|
|
33
35
|
} catch (r) {
|
|
34
36
|
console.log("Error in Change Order Modal", r);
|
|
35
37
|
} finally {
|
|
36
|
-
|
|
38
|
+
n(!1);
|
|
37
39
|
}
|
|
38
|
-
}, [o,
|
|
40
|
+
}, [o, t, s]), C = m(async () => {
|
|
39
41
|
try {
|
|
40
|
-
|
|
41
|
-
const { data: r } = await
|
|
42
|
-
(
|
|
42
|
+
n(!0);
|
|
43
|
+
const { data: r } = await y.get(s), { similarProducts: p } = await r, i = p.find(
|
|
44
|
+
(d) => d.productOrigin === (o == null ? void 0 : o.productOriginId)
|
|
43
45
|
);
|
|
44
|
-
|
|
46
|
+
l(i == null ? void 0 : i.products);
|
|
45
47
|
} catch (r) {
|
|
46
48
|
console.log("Error in Change Order Modal", r);
|
|
47
49
|
} finally {
|
|
48
|
-
|
|
50
|
+
n(!1);
|
|
49
51
|
}
|
|
50
|
-
}, [o,
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
}, []), /* @__PURE__ */
|
|
54
|
-
|
|
52
|
+
}, [o, t, s]);
|
|
53
|
+
return q(() => {
|
|
54
|
+
g === "faststore" && j(), C();
|
|
55
|
+
}, []), /* @__PURE__ */ a(
|
|
56
|
+
F,
|
|
55
57
|
{
|
|
56
58
|
isOpen: P,
|
|
57
|
-
setIsOpen:
|
|
59
|
+
setIsOpen: x,
|
|
58
60
|
className: "change-order-modal",
|
|
59
61
|
title: "Produto com estoque baixo",
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
isClubClient: S,
|
|
66
|
-
choosedItemId: l,
|
|
67
|
-
setChoosedItemId: k,
|
|
68
|
-
products: v
|
|
62
|
+
Footer: /* @__PURE__ */ a(
|
|
63
|
+
$,
|
|
64
|
+
{
|
|
65
|
+
saveSelectedSimilarProduct: () => {
|
|
66
|
+
u && (c == null || c(u));
|
|
69
67
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
children: w ? /* @__PURE__ */ a(
|
|
71
|
+
A,
|
|
72
|
+
{
|
|
73
|
+
width: h ? "100%" : "90%",
|
|
74
|
+
height: h ? 600 : 425,
|
|
75
|
+
backgroundColor: "var(--color-grayScale-faded)",
|
|
76
|
+
margin: "auto",
|
|
77
|
+
animation: !0
|
|
78
|
+
}
|
|
79
|
+
) : /* @__PURE__ */ E(S, { children: [
|
|
80
|
+
o && /* @__PURE__ */ a(R, { selectedItem: o }),
|
|
81
|
+
/* @__PURE__ */ a(
|
|
82
|
+
T,
|
|
73
83
|
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
isClubClient: O,
|
|
85
|
+
similarProductSelect: u,
|
|
86
|
+
setSimilarProductSelect: M,
|
|
87
|
+
products: k
|
|
77
88
|
}
|
|
78
|
-
)
|
|
89
|
+
)
|
|
79
90
|
] })
|
|
80
91
|
}
|
|
81
92
|
);
|
|
82
93
|
};
|
|
83
94
|
export {
|
|
84
|
-
|
|
95
|
+
J as ChangeOrderModal
|
|
85
96
|
};
|
|
@@ -9,8 +9,8 @@ const a = ({
|
|
|
9
9
|
Check: /* @__PURE__ */ C(
|
|
10
10
|
"svg",
|
|
11
11
|
{
|
|
12
|
-
width: o
|
|
13
|
-
height: o
|
|
12
|
+
width: o || l || "10",
|
|
13
|
+
height: o || t || "8",
|
|
14
14
|
viewBox: "0 0 10 8",
|
|
15
15
|
fill: "none",
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -18,10 +18,10 @@ const a = ({
|
|
|
18
18
|
"path",
|
|
19
19
|
{
|
|
20
20
|
d: "M1 4.00016L3.66667 6.66683L9 1.3335",
|
|
21
|
-
stroke: r
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
stroke: r || "var(--color-grayScale-white)",
|
|
22
|
+
strokeWidth: "1.2",
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round"
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
27
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ModalFooter: ({
|
|
2
|
-
|
|
1
|
+
export declare const ModalFooter: ({ saveSelectedSimilarProduct }: {
|
|
2
|
+
saveSelectedSimilarProduct?: () => void;
|
|
3
3
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
}) => /* @__PURE__ */
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
const t = ({
|
|
3
|
+
saveSelectedSimilarProduct: o
|
|
4
|
+
}) => /* @__PURE__ */ n("div", { className: "change-order-moda-footer", children: /* @__PURE__ */ n(
|
|
5
5
|
"button",
|
|
6
6
|
{
|
|
7
7
|
onClick: () => o == null ? void 0 : o(),
|
|
@@ -10,5 +10,5 @@ const n = ({
|
|
|
10
10
|
}
|
|
11
11
|
) });
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
t as ModalFooter
|
|
14
14
|
};
|
|
@@ -10,7 +10,7 @@ const P = ({ selectedItem: a }) => {
|
|
|
10
10
|
sellingPrice: o,
|
|
11
11
|
measurementUnit: r,
|
|
12
12
|
unitMultiplier: c
|
|
13
|
-
} = a
|
|
13
|
+
} = a || {}, n = m(() => d ? 48 : 80, []);
|
|
14
14
|
return /* @__PURE__ */ e("section", { className: "change-order-pre-content", children: [
|
|
15
15
|
/* @__PURE__ */ i(
|
|
16
16
|
"img",
|
|
@@ -27,13 +27,13 @@ const P = ({ selectedItem: a }) => {
|
|
|
27
27
|
/* @__PURE__ */ i("h3", { className: "product-name", children: t }),
|
|
28
28
|
/* @__PURE__ */ e("div", { className: "product-details", children: [
|
|
29
29
|
/* @__PURE__ */ i("p", { className: "quantity", children: p(
|
|
30
|
-
r
|
|
31
|
-
c
|
|
32
|
-
s
|
|
30
|
+
r || "",
|
|
31
|
+
c || 0,
|
|
32
|
+
s || 0
|
|
33
33
|
) }),
|
|
34
34
|
/* @__PURE__ */ e("p", { className: "sellingPrice", children: [
|
|
35
|
-
h(o
|
|
36
|
-
/* @__PURE__ */ i("span", { className: "sellingPrice-multiply", children: u(r
|
|
35
|
+
h(o || 0),
|
|
36
|
+
/* @__PURE__ */ i("span", { className: "sellingPrice-multiply", children: u(r || "", c || 0) })
|
|
37
37
|
] })
|
|
38
38
|
] })
|
|
39
39
|
] })
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
1
2
|
import { SimilarProducts } from '../../../types/ChangeOrderModal';
|
|
2
3
|
|
|
3
|
-
export declare const SimilarProductItem: ({ similarProduct,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export declare const SimilarProductItem: ({ similarProduct, similarProductSelect, setSimilarProductSelect, isClubClient }: {
|
|
5
|
+
similarProductSelect: SimilarProducts | undefined;
|
|
6
|
+
setSimilarProductSelect: Dispatch<SetStateAction<SimilarProducts | undefined>>;
|
|
6
7
|
similarProduct: SimilarProducts;
|
|
7
8
|
isClubClient?: boolean;
|
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,78 +1,83 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { formatEspecifications as w, formatBrazilianPrice as
|
|
4
|
-
import { Icons as
|
|
5
|
-
import { isMobile as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as c } from "react";
|
|
3
|
+
import { formatEspecifications as w, formatBrazilianPrice as u, formatedMultiply as z } from "../../../utils/changerOrderModal.js";
|
|
4
|
+
import { Icons as S } from "../assets/icons.js";
|
|
5
|
+
import { isMobile as U } from "../../../constants/index.js";
|
|
6
6
|
const H = ({
|
|
7
|
-
similarProduct:
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
similarProduct: a,
|
|
8
|
+
similarProductSelect: r,
|
|
9
|
+
setSimilarProductSelect: f,
|
|
10
10
|
isClubClient: v
|
|
11
11
|
}) => {
|
|
12
12
|
const {
|
|
13
13
|
images: N,
|
|
14
14
|
name: d,
|
|
15
|
-
productId:
|
|
16
|
-
sellingPrice:
|
|
17
|
-
measurementUnit:
|
|
18
|
-
unitMultiplier:
|
|
19
|
-
hasDiscount:
|
|
20
|
-
listPrice:
|
|
21
|
-
isClub:
|
|
22
|
-
skuSpecifications:
|
|
23
|
-
} =
|
|
15
|
+
productId: m,
|
|
16
|
+
sellingPrice: n,
|
|
17
|
+
measurementUnit: y,
|
|
18
|
+
unitMultiplier: b,
|
|
19
|
+
hasDiscount: C,
|
|
20
|
+
listPrice: o,
|
|
21
|
+
isClub: I,
|
|
22
|
+
skuSpecifications: h
|
|
23
|
+
} = a, [{ imageUrl: M }] = N, l = c(() => U ? 48 : 80, []), p = c(
|
|
24
|
+
() => m === (r == null ? void 0 : r.productId),
|
|
25
|
+
[r]
|
|
26
|
+
), i = c(() => w(h || []), [h]), {
|
|
24
27
|
discountPorcent: k,
|
|
25
|
-
frontLstPrice:
|
|
26
|
-
frontSellingPrice:
|
|
28
|
+
frontLstPrice: L,
|
|
29
|
+
frontSellingPrice: P,
|
|
27
30
|
frontPriceMultiply: j
|
|
28
|
-
} =
|
|
29
|
-
discountPorcent: Math.round(
|
|
30
|
-
frontLstPrice:
|
|
31
|
-
(
|
|
31
|
+
} = c(() => !n || !o ? {} : {
|
|
32
|
+
discountPorcent: Math.round(n / o * 100 * -1),
|
|
33
|
+
frontLstPrice: u(
|
|
34
|
+
(o || 0) - (n || 0)
|
|
32
35
|
),
|
|
33
|
-
frontSellingPrice:
|
|
34
|
-
frontPriceMultiply: z(
|
|
35
|
-
}, [
|
|
36
|
+
frontSellingPrice: u(n || 0),
|
|
37
|
+
frontPriceMultiply: z(y, b)
|
|
38
|
+
}, [n, o]), x = {
|
|
36
39
|
Vegano: "var(--color-seals-veg)",
|
|
37
40
|
Orgânico: "var(--color-seals-org)",
|
|
38
41
|
"Sem Glúten": "var(--color-seals-gluten-free)",
|
|
39
42
|
"Sem Lactose": "var(--color-seals-lactose-free)",
|
|
40
43
|
"Sem Açúcar": "var(--color-seals-sugar-free)"
|
|
41
|
-
}, g =
|
|
42
|
-
return /* @__PURE__ */
|
|
44
|
+
}, g = p ? "var(--color-main)" : "var(--color-grayScale-lightest)";
|
|
45
|
+
return /* @__PURE__ */ s(
|
|
43
46
|
"div",
|
|
44
47
|
{
|
|
45
48
|
className: "similar-product-list-item",
|
|
46
|
-
onClick: () =>
|
|
49
|
+
onClick: () => {
|
|
50
|
+
m !== (r == null ? void 0 : r.productId) && f(a);
|
|
51
|
+
},
|
|
47
52
|
style: {
|
|
48
53
|
borderColor: g
|
|
49
54
|
},
|
|
50
55
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ e("div", { style: { width: l }, children: /* @__PURE__ */ e(
|
|
52
57
|
"img",
|
|
53
58
|
{
|
|
54
|
-
height:
|
|
55
|
-
width:
|
|
59
|
+
height: l,
|
|
60
|
+
width: l,
|
|
56
61
|
src: M,
|
|
57
62
|
alt: d,
|
|
58
63
|
style: { objectFit: "contain" }
|
|
59
64
|
}
|
|
60
65
|
) }),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ s("div", { className: "infos", children: [
|
|
67
|
+
/* @__PURE__ */ s("div", { className: "description", children: [
|
|
68
|
+
/* @__PURE__ */ e("h4", { className: "product-name", children: d }),
|
|
69
|
+
/* @__PURE__ */ e(
|
|
65
70
|
"span",
|
|
66
71
|
{
|
|
67
72
|
className: "choose-icon",
|
|
68
73
|
style: {
|
|
69
74
|
backgroundColor: g
|
|
70
75
|
},
|
|
71
|
-
children:
|
|
76
|
+
children: p && /* @__PURE__ */ e(S, { iconId: "Check" })
|
|
72
77
|
}
|
|
73
78
|
)
|
|
74
79
|
] }),
|
|
75
|
-
!!(
|
|
80
|
+
!!(i != null && i.length) && /* @__PURE__ */ e("div", { className: "seal-container", children: i.map((t) => /* @__PURE__ */ e(
|
|
76
81
|
"span",
|
|
77
82
|
{
|
|
78
83
|
className: "seal",
|
|
@@ -80,18 +85,18 @@ const H = ({
|
|
|
80
85
|
children: t
|
|
81
86
|
}
|
|
82
87
|
)) }),
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ s("div", { className: "prices", children: [
|
|
89
|
+
C && /* @__PURE__ */ s("div", { className: "discount", children: [
|
|
90
|
+
/* @__PURE__ */ e("p", { className: "list-price", children: L }),
|
|
91
|
+
/* @__PURE__ */ s("span", { className: "badge", children: [
|
|
87
92
|
k,
|
|
88
93
|
"%"
|
|
89
94
|
] })
|
|
90
95
|
] }),
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
|
|
96
|
+
/* @__PURE__ */ s("p", { className: "sellingPrice", children: [
|
|
97
|
+
P,
|
|
98
|
+
/* @__PURE__ */ e("span", { className: "sellingPrice-multiply", children: j }),
|
|
99
|
+
I && v && /* @__PURE__ */ e("span", { className: "badge", children: "Club" })
|
|
95
100
|
] })
|
|
96
101
|
] })
|
|
97
102
|
] })
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
1
2
|
import { SimilarProducts as SimilarProductProps } from '../../../types/ChangeOrderModal';
|
|
2
3
|
|
|
3
4
|
interface Props {
|
|
4
5
|
products?: SimilarProductProps[];
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
similarProductSelect?: SimilarProductProps;
|
|
7
|
+
setSimilarProductSelect: Dispatch<SetStateAction<SimilarProductProps | undefined>>;
|
|
7
8
|
isClubClient?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare const SimilarProducts: ({ products, isClubClient,
|
|
10
|
+
export declare const SimilarProducts: ({ products, isClubClient, similarProductSelect, setSimilarProductSelect }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
11
|
export {};
|
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icons as
|
|
3
|
-
import { SimilarProductItem as
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Icons as l } from "../assets/icons.js";
|
|
3
|
+
import { SimilarProductItem as t } from "./SimilarProductList.js";
|
|
4
|
+
const N = ({
|
|
5
5
|
products: i,
|
|
6
|
-
isClubClient:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) => i != null && i.length ? /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
6
|
+
isClubClient: a,
|
|
7
|
+
similarProductSelect: s,
|
|
8
|
+
setSimilarProductSelect: m
|
|
9
|
+
}) => i != null && i.length ? /* @__PURE__ */ r("section", { className: "change-order-similar-products", children: [
|
|
10
|
+
/* @__PURE__ */ n("h3", { className: "title", children: "Na falta substitua por:" }),
|
|
11
|
+
/* @__PURE__ */ n("div", { className: "similar-product-list", children: i.map((o) => /* @__PURE__ */ n(
|
|
12
|
+
t,
|
|
13
13
|
{
|
|
14
|
-
isClubClient:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
similarProduct:
|
|
14
|
+
isClubClient: a,
|
|
15
|
+
similarProductSelect: s,
|
|
16
|
+
setSimilarProductSelect: m,
|
|
17
|
+
similarProduct: o
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
o.itemId
|
|
20
20
|
)) }),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
onClick: () => m == null ? void 0 : m(void 0),
|
|
25
|
+
className: "remove-buttom",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ n(l, { iconId: "Trash" }),
|
|
28
|
+
" Remover subtituto"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
)
|
|
25
32
|
] }) : null;
|
|
26
33
|
export {
|
|
27
|
-
|
|
34
|
+
N as SimilarProducts
|
|
28
35
|
};
|
|
@@ -5,6 +5,5 @@ export interface ModalFooterProps {
|
|
|
5
5
|
confirmButtonText?: string;
|
|
6
6
|
isFloating?: boolean;
|
|
7
7
|
redirectionClubText?: string;
|
|
8
|
-
account?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const ModalFooter: ({ cancelButtonAction, cancelButtonText, confirmButtonAction, confirmButtonText, isFloating, redirectionClubText
|
|
9
|
+
export declare const ModalFooter: ({ cancelButtonAction, cancelButtonText, confirmButtonAction, confirmButtonText, isFloating, redirectionClubText }: ModalFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
const
|
|
3
|
-
cancelButtonAction:
|
|
4
|
-
cancelButtonText:
|
|
5
|
-
confirmButtonAction:
|
|
6
|
-
confirmButtonText:
|
|
7
|
-
isFloating:
|
|
8
|
-
redirectionClubText:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/* @__PURE__ */ o(
|
|
13
|
-
!(e === "avenidab2c") && t && /* @__PURE__ */ o(
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
const d = ({
|
|
3
|
+
cancelButtonAction: t,
|
|
4
|
+
cancelButtonText: r,
|
|
5
|
+
confirmButtonAction: c,
|
|
6
|
+
confirmButtonText: l,
|
|
7
|
+
isFloating: a,
|
|
8
|
+
redirectionClubText: n
|
|
9
|
+
}) => /* @__PURE__ */ e("div", { className: `modal-footer-container ${a ? "floating" : ""}`, children: [
|
|
10
|
+
c && l && /* @__PURE__ */ o("button", { onClick: c, className: "modal-confirm-button", children: l }),
|
|
11
|
+
/* @__PURE__ */ o("button", { onClick: t, className: "modal-cancel-button", children: r }),
|
|
12
|
+
n && /* @__PURE__ */ o(
|
|
14
13
|
"button",
|
|
15
14
|
{
|
|
16
15
|
onClick: () => {
|
|
17
16
|
window.location.href = "/s/?clubProducts";
|
|
18
17
|
},
|
|
19
18
|
className: "modal-confirm-button redirection-club-button",
|
|
20
|
-
children:
|
|
19
|
+
children: n
|
|
21
20
|
}
|
|
22
21
|
)
|
|
23
22
|
] });
|
|
24
23
|
export {
|
|
25
|
-
|
|
24
|
+
d as ModalFooter
|
|
26
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.change-order-modal #modal-content-container{width:100%}.change-order-modal #modal-content-container #modal-content{background-color:var(--color-grayScale-white);border-radius:16px 16px 0 0}.change-order-modal #modal-content-container #modal-content .modal-footer{display:flex;position:relative;padding:0}.change-order-modal #modal-content-container #modal-pre-content{padding:16px}.change-order-modal header{width:100%;display:flex;justify-content:space-between;padding:16px}.change-order-modal header .modal-title{font-size:16px;font-weight:700;line-height:20px;color:var(--color-grayScale)}.change-order-modal .modal-close{background:none;border:none;cursor:pointer}@media (min-width: 768px){.change-order-modal #modal-content-container #modal-content{border-radius:16px}.change-order-modal header .modal-title{font-size:24px;line-height:28px}}.change-order-modal #modal-content-container #modal-content .change-order-pre-content{display:flex;margin:16px}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos{width:100%}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details{display:flex;justify-content:space-between;align-items:center}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details .quantity{color:var(--color-grayScale);font-size:14px;line-height:18px;font-weight:700}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details .sellingPrice-multiply{font-weight:400}.change-order-modal #modal-content-container{height:90%}@media (min-width: 768px){.change-order-modal #modal-content-container{max-height:90%}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details .quantity{font-size:16px;line-height:20px}}.change-order-modal #modal-content-container #modal-content .change-order-similar-products{
|
|
1
|
+
.change-order-modal #modal-content-container{width:100%}.change-order-modal #modal-content-container #modal-content{display:flex;flex-direction:column;background-color:var(--color-grayScale-white);border-radius:16px 16px 0 0}.change-order-modal #modal-content-container #modal-content #modal-scroll{flex:1}.change-order-modal #modal-content-container #modal-content .modal-footer{display:flex;position:relative;padding:0;border-radius:16px}.change-order-modal #modal-content-container #modal-pre-content{padding:16px}.change-order-modal header{width:100%;display:flex;justify-content:space-between;padding:16px}.change-order-modal header .modal-title{font-size:16px;font-weight:700;line-height:20px;color:var(--color-grayScale)}.change-order-modal .modal-close{background:none;border:none;cursor:pointer}@media (min-width: 768px){.change-order-modal #modal-content-container #modal-content{border-radius:16px}.change-order-modal header .modal-title{font-size:24px;line-height:28px}}.change-order-modal #modal-content-container #modal-content .change-order-pre-content{display:flex;margin:16px}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos{width:100%}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details{display:flex;justify-content:space-between;align-items:center}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details .quantity{color:var(--color-grayScale);font-size:14px;line-height:18px;font-weight:700}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details .sellingPrice-multiply{font-weight:400}.change-order-modal #modal-content-container{height:90%}@media (min-width: 768px){.change-order-modal #modal-content-container{max-height:90%}.change-order-modal #modal-content-container #modal-content .change-order-pre-content .change-order-pre-content-infos .product-details .quantity{font-size:16px;line-height:20px}}.change-order-modal #modal-content-container #modal-content .change-order-similar-products{overflow-y:auto;margin:0 8px;padding:8px}.change-order-modal #modal-content-container #modal-content .change-order-similar-products::-webkit-scrollbar{width:4px;background-color:var(--color-main-faded)}.change-order-modal #modal-content-container #modal-content .change-order-similar-products::-webkit-scrollbar-thumb{width:3px;padding-top:16px;background-color:var(--color-main);max-height:34px;border-radius:20px}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .remove-buttom{color:var(--color-negativeFeedback);background-color:transparent;border:none;font-weight:700;font-size:14px;line-height:18px;display:flex;align-items:center;justify-content:center;margin:22px 0;column-gap:4px;text-decoration:underline;cursor:pointer}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .title{font-size:14px;line-height:18px;font-weight:700;color:var(--color-grayScale);margin-bottom:16px}@media (min-width: 768px){.change-order-modal #modal-content-container #modal-content .change-order-similar-products .remove-buttom{margin:16px 0}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .title{font-size:20px;line-height:24px}}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list{display:flex;row-gap:16px;flex-direction:column}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item{display:flex;border-style:solid;border-width:1px;border-radius:8px;padding:8px;width:100%}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item{display:flex;cursor:pointer;background-color:var(--color-grayScale-white)}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos{width:100%}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .description{width:100%;display:flex;justify-content:space-between}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .seal-container{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .seal{color:var(--color-grayScale-white);font-size:9px;list-style:16px;text-align:center;padding:4px;border-radius:2px}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .description .choose-icon{width:16px;height:16px;border-radius:100%;display:flex;align-items:center;justify-content:center}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .prices .discount .list-price{font-size:12px;line-height:16px;font-weight:400;color:var(--color-grayScale-dark);text-decoration:line-through}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .prices .discount{display:flex;column-gap:4px;align-items:center}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .prices .discount .badge{padding:1px 4px;color:var(--color-main);border-radius:16px;font-size:12px;font-weight:700;background-color:var(--color-secondary)}.change-order-modal #modal-content-container #modal-content .change-order-similar-products .similar-product-list .similar-product-list-item .infos .prices{display:flex;flex-direction:column;row-gap:5px}.change-order-modal .change-order-moda-footer{height:68px;background-color:#fff;border-radius:0 0 16px 16px;z-index:999;position:relative;width:100%;display:flex;flex-direction:row;align-content:center;padding:16px;box-shadow:0 -4px 4px 0 var(--color-support-shadow)}.change-order-modal .change-order-moda-footer .change-order-save-buttom{width:100%;height:34px;background-color:var(--color-main);border-color:transparent;border-radius:2px;color:var(--color-assistant-main);font-size:14px;line-height:18px;font-weight:500;cursor:pointer}.change-order-modal #modal-content-container #modal-content .product-name{font-size:14px;line-height:16px;font-weight:400;color:var(--color-grayScale);margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:start}.change-order-modal #modal-content-container #modal-content .badge{padding:1px 4px;color:var(--color-main);border-radius:16px;font-size:12px;font-weight:700;background-color:var(--color-secondary)}.change-order-modal #modal-content-container #modal-content .sellingPrice{color:var(--color-main);font-size:16px;line-height:20px;font-weight:700;display:flex;align-items:center;column-gap:1px}@media (min-width: 768px){.change-order-modal #modal-content-container #modal-content .sellingPrice{font-size:20px;line-height:24px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.coupons-container *{box-sizing:border-box;font-family:DM Sans,sans-serif}.coupons-container h1,.coupons-container h3,.coupons-container p{margin:0}.coupons-container ul{list-style:none;margin:0;padding:0}.coupons-container .modal-title-container{display:flex;align-items:center;justify-content:space-between}.coupons-container .modal-title{margin:0;color:var(--color-grayScale);font-size:16px;font-weight:700;line-height:20px}@media (min-width: 640px){.coupons-container .modal-title{font-size:24px;line-height:28px}}.coupons-container .modal-close-icon{display:flex;outline:0;border:0;margin-left:10px;padding:0;background-color:transparent;cursor:pointer}@media (min-width: 640px){.coupons-container .modal-close-icon{margin-left:16px}}.coupons-container .breadcrumb-container{margin-top:16px;margin-bottom
|
|
1
|
+
.coupons-container *{box-sizing:border-box;font-family:DM Sans,sans-serif}.coupons-container h1,.coupons-container h3,.coupons-container p{margin:0}.coupons-container ul{list-style:none;margin:0;padding:0}.coupons-container .modal-title-container{display:flex;align-items:center;justify-content:space-between}.coupons-container .modal-title{margin:0;color:var(--color-grayScale);font-size:16px;font-weight:700;line-height:20px}@media (min-width: 640px){.coupons-container .modal-title{font-size:24px;line-height:28px}}.coupons-container .modal-close-icon{display:flex;outline:0;border:0;margin-left:10px;padding:0;background-color:transparent;cursor:pointer}@media (min-width: 640px){.coupons-container .modal-close-icon{margin-left:16px}}.coupons-container .breadcrumb-container{margin-top:16px;margin-bottom:8px}.coupons-container .breadcrumb-container .breadcrumb-content-container{align-items:center;display:flex;margin-bottom:16px;font-size:14px;line-height:18px}.coupons-container .breadcrumb-container .breadcrumb-content-container button{outline:0;border:0;background-color:transparent;color:var(--color-grayScale-darkest);font-size:14px;line-height:18px;cursor:pointer}.coupons-container .breadcrumb-container .breadcrumb-content-container svg{margin:0 10px}.coupons-container .breadcrumb-container .breadcrumb-content-container span{color:var(--color-main);font-weight:700}.coupons-container .breadcrumb-container .breadcrumb-back-button{display:flex;justify-content:center;align-items:center;outline:0;border:0;background-color:transparent;cursor:pointer;color:var(--color-support-links);font-size:14px;line-height:18px;text-decoration:underline}.coupons-container .breadcrumb-container .breadcrumb-back-button svg{margin-right:10px}.coupons-container .modal-footer-container{margin-top:24px;background-color:var(--color-grayScale-white)}.coupons-container .modal-footer-container.floating{box-shadow:0 -4px 4px 0 var(--color-support-shadow);position:absolute;bottom:0;left:0;width:100%;padding:16px}.coupons-container .modal-confirm-button{display:flex;justify-content:center;width:100%;outline:0;border:1px solid var(--color-main);border-radius:2px;margin-bottom:16px;padding:8px 16px;background-color:var(--color-main);cursor:pointer;color:var(--color-assistant-main);font-size:16px;font-weight:500;line-height:20px}.redirection-club-button{margin-top:16px;margin-bottom:0!important}.coupons-container .modal-cancel-button{display:flex;justify-content:center;width:100%;outline:0;border:1px solid var(--color-main);border-radius:2px;padding:8px 16px;background-color:transparent;cursor:pointer;color:var(--color-main);font-size:16px;font-weight:500;line-height:20px}.coupons-container .form-coupons form{display:flex;flex-direction:column;margin:24px 0}.coupons-container .form-coupons input{padding:8px;margin-bottom:8px;border-radius:2px;border:1px solid var(--color-grayScale-light);background:var(--color-grayScale-white);font-size:16px;line-height:20px}.coupons-container .form-coupons button{display:flex;justify-content:center;padding:8px;font-weight:500;line-height:20px;cursor:pointer;color:var(--color-grayScale-dark);border:1px solid var(--color-grayScale-dark);background-color:var(--color-grayScale-white)}.coupons-container .form-coupons button:disabled{cursor:wait;color:var(--color-grayScale-lightest);background-color:var(--color-grayScale-darkest)}.coupons-container .cart-empty-coupons-label{max-width:500px;margin:1rem 0rem}.coupons-container .cart-empty-coupons-label span{margin-right:16px}.coupons-container .cart-empty-coupons-label p{display:flex;flex-direction:row;padding:8px 16px;margin-top:24px;border-radius:4px;line-height:1rem;font-size:16px;color:var(--color-infoFeedback-dark);background-color:var(--color-infoFeedback-faded)}.coupons-container .container-title-coupons h1{margin-bottom:16px;color:var(--color-grayScale);font-size:16px;font-weight:700;line-height:20px}.coupons-container .container-title-coupons .container-coupons{width:100%;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:16px}.coupons-container .container-card-coupon{width:100%;display:flex;flex-direction:row;justify-content:space-between;padding:1rem;gap:8px;border-radius:8px;border:1px solid var(--color-grayScale-faded);background:var(--color-grayScale-white);box-shadow:4px 4px 8px 0 var(--color-support-shadow)}.coupons-container .container-card-coupon.active{border:1.5px solid var(--color-positiveFeedback)}.coupons-container .container-card-coupon .text-container{flex:1;display:flex;flex-direction:column;align-self:center;align-items:flex-start;gap:8px}.coupons-container .container-card-coupon .text-container .container-title{display:flex;flex-direction:row}.coupons-container .container-card-coupon .text-container .container-title .title{margin-left:.5rem;line-height:20px;font-weight:700;color:var(--color-grayScale);font-size:16px}.coupons-container .container-card-coupon .text-container .price-badge{border-radius:2rem;padding:.25rem 1rem;font-weight:700;font-size:20px;color:var(--color-badge-secondary);background-color:var(--color-badge-main)}.coupons-container .container-card-coupon .text-container .subtitle{font-weight:400;line-height:20px;font-size:16px;color:var(--color-grayScale-darkest)}.coupons-container .container-card-coupon .vertical-line{border-right:2px dashed var(--color-grayScale-light)}.coupons-container .container-card-coupon .buttons-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.coupons-container .container-card-coupon .buttons-container .applied-coupon{display:flex;align-items:center;width:110px;height:34px;padding:16px 8px;border:unset;border-radius:2px;line-height:20px;font-weight:500;font-size:16px;color:var(--color-main);background:var(--color-positiveFeedback-faded)}.coupons-container .container-card-coupon .buttons-container .applied-coupon span,.coupons-container .container-card-coupon .buttons-container .success-icon{margin-right:8px}.coupons-container .container-card-coupon .buttons-container .apply-coupon{width:110px;height:34px;padding:8px 16px;border:unset;border-radius:2px;color:var(--color-assistant-main);background:var(--color-main);cursor:pointer}.coupons-container .container-card-coupon .buttons-container .apply-coupon:disabled{cursor:wait;color:var(--color-grayScale-lightest);background-color:var(--color-grayScale-darkest)}.coupons-container .container-card-coupon .buttons-container .remove-coupon{width:110px;height:34px;margin-top:16px;padding:8px 16px;border-radius:2px;font-weight:500;line-height:20px;color:var(--color-main);border:1px solid var(--color-main);background:var(--color-grayScale-white);cursor:pointer}.coupons-container .container-card-coupon .buttons-container a{width:110px;margin-top:16px;text-decoration-line:underline;text-align:center;font-weight:400;line-height:20px;font-size:16px;color:var(--color-support-links);cursor:pointer}.coupons-container .modal-rule-coupon-external .modal-rule-coupon-internal .cartEmptyCoupon-h3{font-size:16px;font-weight:700;line-height:20px;color:#1c1c1c;margin:1.5rem 0rem}.coupons-container .modal-rule-coupon-external .modal-rule-coupon-internal #cartEmptyCoupon-p{line-height:1rem}.coupons-container .modal-rule-coupon-external .modal-rule-coupon-internal .cartEmptyCoupon-svg{display:flex;justify-content:center}.coupons-container .modal-rule-coupon-external .modal-rule-coupon-internal .modal-rule-coupon-children span{margin-right:16px}.coupons-container .modal-rule-coupon-external .modal-rule-coupon-internal .modal-rule-coupon-children p{display:flex;flex-direction:row;padding:8px 16px;border-radius:4px;line-height:2.5rem;font-size:16px;color:var(--color-infoFeedback-dark);background-color:var(--color-infoFeedback-faded)}.coupons-container .applied-coupon-badge{display:flex;position:fixed;width:fit-content;justify-content:flex-start;align-items:center;padding:1rem;z-index:10;bottom:40px;left:50%;transform:translate(-50%);border-radius:4px;box-shadow:4px 4px 8px var(--color-support-shadow)}.coupons-container .applied-coupon-badge span{margin-right:8px}.coupons-container .error-coupon{background-color:var(--color-negativeFeedback-faded)}.coupons-container .success-coupon{background-color:var(--color-positiveFeedback-faded)}.coupons-container .noCoupons{display:flex;flex-direction:column;align-items:center}.coupons-container .noCoupons .noCoupons-h1{font-weight:700}.coupons-container .noCoupons .noCoupons-p{margin-bottom:24px;color:var(--color-grayScale-darkest)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.no-scroll{overflow:hidden;touch-action:none}#modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;width:100%;height:100%;display:flex;align-items:flex-end;background-color:var(--color-support-overlay)}@media (min-width: 768px){#modal-container{justify-content:center;align-items:center}}#modal-content-container{width:100%}@media (min-width: 768px){#modal-content-container{max-width:550px;max-height:85%}}#modal-content-container
|
|
1
|
+
.no-scroll{overflow:hidden;touch-action:none}#modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;width:100%;height:100%;display:flex;align-items:flex-end;background-color:var(--color-support-overlay)}@media (min-width: 768px){#modal-container{justify-content:center;align-items:center}}#modal-content-container{width:100%}@media (min-width: 768px){#modal-content-container{max-width:550px;max-height:85%}}#modal-content-container{height:100%;width:100%}#modal-content-container #modal-content{width:100%;height:100%;background-color:var(--color-grayScale-white);border-radius:16px 16px 0 0;position:relative}@media (min-width: 768px){#modal-content-container #modal-content{border-radius:16px}}#modal-content-container #modal-content header{display:flex;justify-content:space-between;align-items:flex-start;height:56px;padding:16px}#modal-content-container #modal-content header .modal-title{color:var(--color-grayScale);font-size:14px;line-height:18px;font-weight:400}@media (min-width: 768px){#modal-content-container #modal-content header .modal-title{font-size:16px;line-height:20px}}#modal-content-container #modal-content header button{display:flex;align-items:center;justify-content:center;outline:none;border:none;padding:0;background-color:transparent;cursor:pointer}#modal-content-container #modal-content header button.modal-title{color:var(--color-support-links);text-decoration:underline}#modal-content-container #modal-content header button.modal-close{margin-left:10px}#modal-content-container #modal-content #modal-scroll{max-height:calc(100% - 56px);height:100%;overflow-y:auto}#modal-content-container #modal-content #modal-scroll::-webkit-scrollbar{width:4px;background-color:var(--color-grayScale-light)}#modal-content-container #modal-content #modal-scroll::-webkit-scrollbar-thumb{width:4px;background-color:var(--color-main);border-radius:20px}#modal-content-container .modal-footer{position:absolute;bottom:0;left:0;width:100%;box-shadow:0 -4px 4px var(--color-support-shadow);padding:24px 16px;background-color:var(--color-grayScale-white)}
|
|
@@ -13,7 +13,7 @@ const s = (t, r, e = "") => {
|
|
|
13
13
|
const e = r == null ? void 0 : r.filter(
|
|
14
14
|
(n) => t.includes(n.field.originalName) && n.values.some((c) => c.originalName.toLowerCase() === "true")
|
|
15
15
|
);
|
|
16
|
-
return (e == null ? void 0 : e.map((n) => n.field.originalName))
|
|
16
|
+
return (e == null ? void 0 : e.map((n) => n.field.originalName)) || [];
|
|
17
17
|
}, f = (t) => i([
|
|
18
18
|
"Vegano",
|
|
19
19
|
"Orgânico",
|
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.1.
|
|
5
|
+
"version": "1.1.3-commerce.scs1825",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/main.js",
|
|
8
8
|
"types": "dist/main.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"test": "jest"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"react": "^
|
|
30
|
-
"react-dom": "^
|
|
29
|
+
"react": "^18.2.0",
|
|
30
|
+
"react-dom": "^18.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/preset-env": "^7.24.5",
|