@plurix/ecom-components 1.18.19-commerce → 1.18.21-commerce
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
interface BannerImage {
|
|
3
|
-
src: string;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
}
|
|
7
|
-
interface BannerData {
|
|
8
|
-
visibility: boolean;
|
|
9
|
-
mobile: BannerImage;
|
|
10
|
-
desktop: BannerImage;
|
|
11
|
-
alt: string;
|
|
12
|
-
}
|
|
13
2
|
interface ClubCollectsProps {
|
|
14
3
|
currentSeals?: number;
|
|
15
4
|
nextSealProgress?: number;
|
|
@@ -17,7 +6,7 @@ interface ClubCollectsProps {
|
|
|
17
6
|
sealGoalValue?: number;
|
|
18
7
|
subtotalValue?: number;
|
|
19
8
|
sealQuantityText?: string;
|
|
20
|
-
|
|
9
|
+
bannerSrc?: string;
|
|
21
10
|
}
|
|
22
|
-
export declare const ClubCollects: ({ currentSeals, nextSealProgress, missingValue, sealGoalValue, subtotalValue, sealQuantityText,
|
|
11
|
+
export declare const ClubCollects: ({ currentSeals, nextSealProgress, missingValue, sealGoalValue, subtotalValue, sealQuantityText, bannerSrc }: ClubCollectsProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
12
|
export {};
|
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import { ClubCollectsIcon as
|
|
3
|
-
/* empty css */const
|
|
4
|
-
currentSeals:
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { ClubCollectsIcon as t } from "../../assets/svgs/ClubCollectsIcon.js";
|
|
3
|
+
/* empty css */const p = ({
|
|
4
|
+
currentSeals: c,
|
|
5
5
|
nextSealProgress: o,
|
|
6
6
|
missingValue: r,
|
|
7
|
-
sealGoalValue:
|
|
8
|
-
subtotalValue:
|
|
9
|
-
sealQuantityText:
|
|
10
|
-
|
|
7
|
+
sealGoalValue: i,
|
|
8
|
+
subtotalValue: n,
|
|
9
|
+
sealQuantityText: e,
|
|
10
|
+
bannerSrc: a
|
|
11
11
|
}) => /* @__PURE__ */ l("div", { className: "clubCollects", children: [
|
|
12
12
|
/* @__PURE__ */ l("div", { className: "clubCollects__header", children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ s(t, {}),
|
|
14
|
+
/* @__PURE__ */ s("span", { className: "clubCollects__logo", children: "Coleciona" })
|
|
15
15
|
] }),
|
|
16
16
|
/* @__PURE__ */ l("div", { className: "clubCollects__content", children: [
|
|
17
17
|
/* @__PURE__ */ l("p", { className: "clubCollects__current", children: [
|
|
18
18
|
"Garantidos no carrinho atual:",
|
|
19
19
|
" ",
|
|
20
20
|
/* @__PURE__ */ l("span", { children: [
|
|
21
|
-
|
|
21
|
+
c,
|
|
22
22
|
" ",
|
|
23
|
-
|
|
23
|
+
c === 1 ? "selo" : "selos"
|
|
24
24
|
] })
|
|
25
25
|
] }),
|
|
26
26
|
/* @__PURE__ */ l("div", { className: "clubCollects__progressWrapper", children: [
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ s("div", { className: "clubCollects__progress", children: /* @__PURE__ */ s(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
30
|
className: "clubCollects__progressFill",
|
|
31
|
-
style: {
|
|
32
|
-
width: `${o}%`
|
|
33
|
-
}
|
|
31
|
+
style: { width: `${o}%` }
|
|
34
32
|
}
|
|
35
33
|
) }),
|
|
36
34
|
/* @__PURE__ */ l("span", { className: "clubCollects__next", children: [
|
|
37
35
|
"+",
|
|
38
|
-
|
|
36
|
+
e,
|
|
39
37
|
" selo"
|
|
40
38
|
] })
|
|
41
39
|
] }),
|
|
@@ -43,7 +41,7 @@ import { ClubCollectsIcon as d } from "../../assets/svgs/ClubCollectsIcon.js";
|
|
|
43
41
|
"Subtotal ",
|
|
44
42
|
/* @__PURE__ */ l("span", { children: [
|
|
45
43
|
"R$ ",
|
|
46
|
-
Number(
|
|
44
|
+
Number(n).toFixed(2)
|
|
47
45
|
] }),
|
|
48
46
|
" faltam",
|
|
49
47
|
" ",
|
|
@@ -53,30 +51,19 @@ import { ClubCollectsIcon as d } from "../../assets/svgs/ClubCollectsIcon.js";
|
|
|
53
51
|
] }),
|
|
54
52
|
" para o próximo selo"
|
|
55
53
|
] }),
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */ c("source", { media: "(min-width: 768px)", srcSet: s.desktop.src }),
|
|
58
|
-
/* @__PURE__ */ c(
|
|
59
|
-
"img",
|
|
60
|
-
{
|
|
61
|
-
src: s.mobile.src,
|
|
62
|
-
alt: s.alt,
|
|
63
|
-
width: s.mobile.width,
|
|
64
|
-
height: s.mobile.height
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
] }) }),
|
|
54
|
+
a && /* @__PURE__ */ s("div", { className: "clubCollects__banner", children: /* @__PURE__ */ s("img", { src: a, alt: "Banner da campanha" }) }),
|
|
68
55
|
/* @__PURE__ */ l("p", { className: "clubCollects__rule", children: [
|
|
69
56
|
"A cada ",
|
|
70
57
|
/* @__PURE__ */ l("strong", { children: [
|
|
71
58
|
"R$ ",
|
|
72
|
-
|
|
59
|
+
i
|
|
73
60
|
] }),
|
|
74
61
|
" em compras =",
|
|
75
62
|
" ",
|
|
76
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ s("strong", { children: e })
|
|
77
64
|
] })
|
|
78
65
|
] })
|
|
79
66
|
] });
|
|
80
67
|
export {
|
|
81
|
-
|
|
68
|
+
p as ClubCollects
|
|
82
69
|
};
|