@lanaco/lnc-react-ui 4.0.26 → 4.0.28
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/DetailedProductsSection.cjs +25 -0
- package/dist/DetailedProductsSection.js +99 -0
- package/dist/ProductsWithBannerSection.cjs +90 -0
- package/dist/ProductsWithBannerSection.js +152 -0
- package/dist/SimpleProductsSection.cjs +31 -0
- package/dist/SimpleProductsSection.js +94 -0
- package/dist/UrgentSaleProductsSection.cjs +68 -0
- package/dist/UrgentSaleProductsSection.js +135 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -14
- package/dist/index10.cjs +134 -63
- package/dist/index10.js +223 -121
- package/dist/index11.cjs +112 -62
- package/dist/index11.js +1510 -101
- package/dist/index2.cjs +41 -18
- package/dist/index2.js +86 -85
- package/dist/index3.cjs +72 -22
- package/dist/index3.js +128 -78
- package/dist/index4.cjs +51 -54
- package/dist/index4.js +79 -110
- package/dist/index5.cjs +66 -32
- package/dist/index5.js +118 -80
- package/dist/index6.cjs +124 -55
- package/dist/index6.js +194 -116
- package/dist/index7.cjs +66 -46
- package/dist/index7.js +104 -83
- package/dist/index8.cjs +164 -52
- package/dist/index8.js +278 -104
- package/dist/index9.cjs +68 -120
- package/dist/index9.js +184 -185
- package/package.json +1 -1
- package/vite.config.js +4 -4
- package/dist/index12.cjs +0 -194
- package/dist/index12.js +0 -312
- package/dist/index13.cjs +0 -98
- package/dist/index13.js +0 -221
- package/dist/index14.cjs +0 -161
- package/dist/index14.js +0 -254
- package/dist/index15.cjs +0 -135
- package/dist/index15.js +0 -1534
package/dist/index6.js
CHANGED
|
@@ -1,144 +1,222 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
|
|
1
|
+
import { jsx as t, Fragment as u, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import _ from "./Button.js";
|
|
4
|
+
import { n as d } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { m as o, t as c, k as g } from "./utils-DtEdJZWa.js";
|
|
6
|
+
import { u as w } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
import { M as f } from "./consts-DNVz1x1I.js";
|
|
8
|
+
const b = d.div`
|
|
8
9
|
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: flex-start;
|
|
9
12
|
border-radius: 0.75rem;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
max-height: ${(e) => e.height || "22.5rem"};
|
|
13
|
-
min-height: ${(e) => e.height || "22.5rem"};
|
|
14
|
-
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
15
|
-
|
|
16
|
-
& button {
|
|
17
|
-
width: fit-content;
|
|
18
|
-
}
|
|
13
|
+
position: relative;
|
|
14
|
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
19
15
|
|
|
20
|
-
${(
|
|
21
|
-
|
|
16
|
+
grid-column: ${(r) => {
|
|
17
|
+
var e;
|
|
18
|
+
return ((e = r.position) == null ? void 0 : e.columnStart) || "1";
|
|
19
|
+
}} /
|
|
20
|
+
${(r) => {
|
|
21
|
+
var e;
|
|
22
|
+
return ((e = r.position) == null ? void 0 : e.columnEnd) || "6";
|
|
23
|
+
}};
|
|
24
|
+
grid-row: ${(r) => {
|
|
25
|
+
var e;
|
|
26
|
+
return ((e = r.position) == null ? void 0 : e.rowStart) || "1";
|
|
27
|
+
}} /
|
|
28
|
+
${(r) => {
|
|
29
|
+
var e;
|
|
30
|
+
return ((e = r.position) == null ? void 0 : e.rowEnd) || "1";
|
|
31
|
+
}};
|
|
22
32
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
& .wrapper__image {
|
|
34
|
+
height: 100%;
|
|
35
|
+
width: 100%;
|
|
26
36
|
object-fit: cover;
|
|
27
|
-
|
|
28
|
-
min-width: ${(e) => e.imgW || "22.5rem"};
|
|
29
|
-
max-height: ${(e) => e.height || "22.5rem"};
|
|
30
|
-
min-height: ${(e) => e.height || "22.5rem"};
|
|
37
|
+
border-radius: 0.75rem;
|
|
31
38
|
}
|
|
32
39
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
& .wrapper__image--skeleton {
|
|
41
|
+
width: 24.5rem;
|
|
42
|
+
height: 30rem;
|
|
43
|
+
border-radius: 0.75rem;
|
|
44
|
+
background-color: ${o("-90deg")};
|
|
45
|
+
}
|
|
37
46
|
|
|
38
|
-
|
|
39
|
-
|
|
47
|
+
& .wrapper__text {
|
|
48
|
+
display: flex;
|
|
40
49
|
flex-direction: column;
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
align-items: flex-start;
|
|
51
|
+
padding: 1rem;
|
|
52
|
+
position: absolute;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
gap: 0.75rem;
|
|
43
56
|
|
|
44
|
-
&
|
|
45
|
-
|
|
57
|
+
& .text__title {
|
|
58
|
+
color: var(--white, #ffffff);
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
line-height: 1.5rem;
|
|
63
|
+
${c(2)}
|
|
46
64
|
}
|
|
47
65
|
|
|
48
|
-
&
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
66
|
+
& .text__tag {
|
|
67
|
+
background-color: var(--warning-600, #d97706);
|
|
68
|
+
color: var(--white, #ffffff);
|
|
69
|
+
font-size: 0.875rem;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
line-height: 1.25rem;
|
|
73
|
+
padding: 0.25rem 0.5rem;
|
|
74
|
+
|
|
75
|
+
border-radius: 0.375rem;
|
|
76
|
+
background: var(--warning-600, #d97706);
|
|
53
77
|
}
|
|
54
|
-
}
|
|
55
|
-
`, C = r.div`
|
|
56
|
-
padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
|
|
57
|
-
display: flex;
|
|
58
|
-
gap: 2rem;
|
|
59
|
-
flex-direction: ${(e) => e.isHorizontalContent === !0 ? "row" : "column"};
|
|
60
|
-
flex: 1;
|
|
61
78
|
|
|
62
|
-
|
|
79
|
+
& .text__description {
|
|
80
|
+
color: var(--white);
|
|
81
|
+
font-size: 0.875rem;
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
line-height: 1.25rem;
|
|
85
|
+
${c(2)}
|
|
86
|
+
}
|
|
63
87
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
88
|
+
& .text__action {
|
|
89
|
+
background: var(--white);
|
|
90
|
+
color: var(--black);
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
background: var(--primary-500, #f59e0b);
|
|
94
|
+
color: var(--white);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& .text__title--skeleton {
|
|
99
|
+
background-color: ${o("-90deg")};
|
|
100
|
+
height: 1rem;
|
|
101
|
+
width: 9rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
& .text__description--skeleton {
|
|
105
|
+
background-color: ${o("-90deg")};
|
|
106
|
+
height: 1rem;
|
|
107
|
+
width: 12rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& .text__action--skeleton {
|
|
111
|
+
background-color: ${o("-90deg")};
|
|
112
|
+
height: 2rem;
|
|
113
|
+
width: 9rem;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`, v = p(
|
|
117
|
+
({
|
|
118
|
+
title: r,
|
|
119
|
+
image: e,
|
|
120
|
+
description: i,
|
|
121
|
+
actionText: n,
|
|
122
|
+
onSelectCard: a = () => {
|
|
123
|
+
},
|
|
124
|
+
className: l,
|
|
125
|
+
position: h,
|
|
126
|
+
tag: s
|
|
127
|
+
}, $) => {
|
|
128
|
+
const x = w();
|
|
129
|
+
return /* @__PURE__ */ t(u, { children: /* @__PURE__ */ m(
|
|
130
|
+
b,
|
|
131
|
+
{
|
|
132
|
+
theme: x,
|
|
133
|
+
className: l,
|
|
134
|
+
onClick: a,
|
|
135
|
+
position: h,
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ t("img", { src: e, className: "wrapper__image" }),
|
|
138
|
+
/* @__PURE__ */ m("div", { className: "wrapper__text", children: [
|
|
139
|
+
s && /* @__PURE__ */ t("div", { className: "text__tag", children: s }),
|
|
140
|
+
/* @__PURE__ */ t("div", { className: "text__title", children: r }),
|
|
141
|
+
g(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
|
|
142
|
+
g(n) && /* @__PURE__ */ t(
|
|
143
|
+
_,
|
|
144
|
+
{
|
|
145
|
+
text: n,
|
|
146
|
+
onClick: a,
|
|
147
|
+
className: "text__action"
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
] })
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
) });
|
|
67
154
|
}
|
|
68
|
-
|
|
155
|
+
), y = d.div`
|
|
69
156
|
display: flex;
|
|
70
157
|
flex-direction: column;
|
|
71
|
-
gap:
|
|
158
|
+
gap: 1.5rem;
|
|
72
159
|
|
|
73
|
-
& .
|
|
74
|
-
|
|
160
|
+
& .regular-title {
|
|
161
|
+
display: flex;
|
|
162
|
+
gap: 0.5rem;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
font-size: 1.5rem;
|
|
75
166
|
font-weight: 600;
|
|
167
|
+
& .regular-title-text {
|
|
168
|
+
display: flex;
|
|
169
|
+
gap: 0.5rem;
|
|
170
|
+
align-items: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
& i {
|
|
174
|
+
font-size: 1.5rem;
|
|
175
|
+
color: var(--primary-500, #f59e0b);
|
|
176
|
+
}
|
|
76
177
|
}
|
|
77
178
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
179
|
+
@media (max-width: ${f + "px"}) {
|
|
180
|
+
gap: 1.25rem;
|
|
181
|
+
|
|
182
|
+
& .regular-title {
|
|
183
|
+
font-size: 1.375rem;
|
|
184
|
+
|
|
185
|
+
&.center {
|
|
186
|
+
justify-content: center;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
82
189
|
}
|
|
190
|
+
`, k = d.div`
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-template-columns: repeat(12, 1fr);
|
|
193
|
+
grid-template-rows: 15rem 15rem;
|
|
194
|
+
grid-column-gap: 1.25rem;
|
|
195
|
+
grid-row-gap: 1.25rem;
|
|
196
|
+
height: 30rem;
|
|
197
|
+
max-height: 30rem;
|
|
83
198
|
|
|
84
|
-
@media (max-width: ${
|
|
199
|
+
@media (max-width: ${f + "px"}) {
|
|
200
|
+
display: flex;
|
|
85
201
|
flex-direction: column;
|
|
202
|
+
gap: 1rem;
|
|
203
|
+
width: 100%;
|
|
204
|
+
height: 100%;
|
|
205
|
+
max-height: 100%;
|
|
206
|
+
padding: 0 1rem;
|
|
86
207
|
}
|
|
87
|
-
`,
|
|
88
|
-
|
|
89
|
-
title:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
isHorizontalContent: u = !1,
|
|
100
|
-
backgroundColor: b,
|
|
101
|
-
hasBorder: f = !1,
|
|
102
|
-
onBannerClick: w
|
|
103
|
-
} = e, d = y();
|
|
104
|
-
return /* @__PURE__ */ t(
|
|
105
|
-
M,
|
|
106
|
-
{
|
|
107
|
-
bgcolor: b,
|
|
108
|
-
height: s,
|
|
109
|
-
imgW: c,
|
|
110
|
-
imgHMob: x,
|
|
111
|
-
hasBorder: f,
|
|
112
|
-
children: [
|
|
113
|
-
n !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a }),
|
|
114
|
-
/* @__PURE__ */ t(
|
|
115
|
-
C,
|
|
116
|
-
{
|
|
117
|
-
isHorizontalContent: u,
|
|
118
|
-
smallPadding: p,
|
|
119
|
-
children: [
|
|
120
|
-
/* @__PURE__ */ t(H, { children: [
|
|
121
|
-
/* @__PURE__ */ i("div", { className: "header-title", children: l }),
|
|
122
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children: h })
|
|
123
|
-
] }),
|
|
124
|
-
/* @__PURE__ */ i(
|
|
125
|
-
v,
|
|
126
|
-
{
|
|
127
|
-
size: "medium",
|
|
128
|
-
color: "neutral",
|
|
129
|
-
type: "button",
|
|
130
|
-
onClick: w,
|
|
131
|
-
children: g
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
),
|
|
137
|
-
n === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a })
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
});
|
|
208
|
+
`, C = p(
|
|
209
|
+
({ title: r, items: e, limit: i = 3 }, n) => /* @__PURE__ */ m(y, { children: [
|
|
210
|
+
/* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
|
|
211
|
+
/* @__PURE__ */ t(k, { limit: i, children: e && (e == null ? void 0 : e.map((a, l) => /* @__PURE__ */ t(
|
|
212
|
+
v,
|
|
213
|
+
{
|
|
214
|
+
...a
|
|
215
|
+
},
|
|
216
|
+
`landing-page-masonry-general-card__${l + 1}`
|
|
217
|
+
))) })
|
|
218
|
+
] })
|
|
219
|
+
);
|
|
142
220
|
export {
|
|
143
|
-
|
|
221
|
+
C as default
|
|
144
222
|
};
|
package/dist/index7.cjs
CHANGED
|
@@ -1,65 +1,85 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
justify-content: center;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
gap: 2rem;
|
|
8
|
-
align-items: center;
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),c=require("./utils-CE6bljYe.cjs"),d=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),l=require("./consts-dNz9tpt4.cjs"),h=d.newStyled.div`
|
|
2
|
+
width: 7.5rem;
|
|
3
|
+
height: auto;
|
|
4
|
+
max-height: 7.5rem;
|
|
9
5
|
|
|
10
|
-
&
|
|
11
|
-
width:
|
|
6
|
+
& .wrapper__image {
|
|
7
|
+
width: 7.5rem;
|
|
8
|
+
height: auto;
|
|
12
9
|
}
|
|
13
10
|
|
|
14
|
-
@media (max-width: ${
|
|
15
|
-
|
|
11
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
12
|
+
width: 4.5rem;
|
|
13
|
+
height: auto;
|
|
14
|
+
max-height: 4.5rem;
|
|
15
|
+
|
|
16
|
+
& .wrapper__image {
|
|
17
|
+
width: 4.5rem;
|
|
18
|
+
height: auto;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
|
-
`,
|
|
18
|
-
|
|
21
|
+
`,_=d.newStyled.div`
|
|
22
|
+
width: 7.5rem;
|
|
23
|
+
height: 7.5rem;
|
|
24
|
+
background: ${c.linearGradientAnimation("-90deg")};
|
|
25
|
+
|
|
26
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
27
|
+
width: 4.5rem;
|
|
28
|
+
height: 4.5rem;
|
|
29
|
+
}
|
|
30
|
+
`,g=s.forwardRef(({imageComponent:t,image:n,onSelectCard:a},i)=>r.jsx(h,{children:c.isDefined(t)?t:r.jsx("img",{src:n,className:"wrapper__image",onSelectCard:a})})),w=s.forwardRef(({},t)=>r.jsx(_,{})),m=d.newStyled.div`
|
|
19
31
|
display: flex;
|
|
20
|
-
justify-content: center;
|
|
21
32
|
flex-direction: column;
|
|
22
|
-
|
|
33
|
+
align-items: flex-start;
|
|
34
|
+
gap: 2rem;
|
|
23
35
|
|
|
24
|
-
& .
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
& .wrapper__heading {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: 1rem;
|
|
40
|
+
text-align: center;
|
|
28
41
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
& .wrapper__title {
|
|
43
|
+
color: var(--gray-950, #14161a);
|
|
44
|
+
text-align: center;
|
|
45
|
+
font-size: 1.5rem;
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
line-height: 2rem;
|
|
49
|
+
letter-spacing: -0.47px;
|
|
50
|
+
}
|
|
34
51
|
|
|
35
|
-
|
|
52
|
+
& .wrapper__subtitle {
|
|
53
|
+
color: var(---gray-600, #676e79);
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
line-height: 1.25rem;
|
|
58
|
+
letter-spacing: 0.25px;
|
|
59
|
+
}
|
|
36
60
|
}
|
|
37
|
-
`,p=s.newStyled.div`
|
|
38
|
-
text-align: center;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
gap: 0.75rem;
|
|
43
|
-
font-size: 0.875rem;
|
|
44
|
-
font-weight: 500;
|
|
45
|
-
align-items: center;
|
|
46
61
|
|
|
47
|
-
& .
|
|
62
|
+
& .wrapper__content {
|
|
48
63
|
display: flex;
|
|
64
|
+
justify-content: center;
|
|
49
65
|
align-items: center;
|
|
66
|
+
gap: 3rem;
|
|
67
|
+
align-self: stretch;
|
|
50
68
|
|
|
51
|
-
& .
|
|
52
|
-
|
|
53
|
-
color: var(--success-600);
|
|
69
|
+
& .wrapper__item {
|
|
70
|
+
max-width: 7.5rem;
|
|
54
71
|
}
|
|
55
72
|
}
|
|
56
73
|
|
|
57
|
-
@media (max-width: ${
|
|
58
|
-
& .
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
75
|
+
& .wrapper__content {
|
|
76
|
+
align-content: center;
|
|
77
|
+
gap: 1rem;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
|
|
80
|
+
& .wrapper__item {
|
|
81
|
+
max-width: 4 0.5rem;
|
|
82
|
+
}
|
|
63
83
|
}
|
|
64
84
|
}
|
|
65
|
-
`,
|
|
85
|
+
`,x=s.forwardRef(({title:t,subtitle:n,items:a=[],onSelectCard:i=()=>{}},f)=>{var o;return r.jsx(m,{children:r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n}),r.jsx("div",{className:"wrapper__content",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,p)=>r.jsx(g,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid),className:"wrapper__item"},`brand-hit-card__${p+1}`)):(o=Array.from("12345"))==null?void 0:o.map((e,p)=>r.jsx(w,{},`brand-hit-card-skeleton__${p+1}`))})]})})});module.exports=x;
|
package/dist/index7.js
CHANGED
|
@@ -1,104 +1,125 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
gap: 2rem;
|
|
14
|
-
align-items: center;
|
|
1
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o } from "react";
|
|
3
|
+
import { m as c, l as g } from "./utils-DtEdJZWa.js";
|
|
4
|
+
import { n as d } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { M as l } from "./consts-DNVz1x1I.js";
|
|
6
|
+
const _ = d.div`
|
|
7
|
+
width: 7.5rem;
|
|
8
|
+
height: auto;
|
|
9
|
+
max-height: 7.5rem;
|
|
15
10
|
|
|
16
|
-
&
|
|
17
|
-
width:
|
|
11
|
+
& .wrapper__image {
|
|
12
|
+
width: 7.5rem;
|
|
13
|
+
height: auto;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
|
-
@media (max-width: ${
|
|
21
|
-
|
|
16
|
+
@media (max-width: ${l + "px"}) {
|
|
17
|
+
width: 4.5rem;
|
|
18
|
+
height: auto;
|
|
19
|
+
max-height: 4.5rem;
|
|
20
|
+
|
|
21
|
+
& .wrapper__image {
|
|
22
|
+
width: 4.5rem;
|
|
23
|
+
height: auto;
|
|
24
|
+
}
|
|
22
25
|
}
|
|
23
|
-
`,
|
|
24
|
-
|
|
26
|
+
`, s = d.div`
|
|
27
|
+
width: 7.5rem;
|
|
28
|
+
height: 7.5rem;
|
|
29
|
+
background: ${c("-90deg")};
|
|
30
|
+
|
|
31
|
+
@media (max-width: ${l + "px"}) {
|
|
32
|
+
width: 4.5rem;
|
|
33
|
+
height: 4.5rem;
|
|
34
|
+
}
|
|
35
|
+
`, w = o(
|
|
36
|
+
({ imageComponent: t, image: n, onSelectCard: e }, i) => /* @__PURE__ */ a(_, { children: g(t) ? t : /* @__PURE__ */ a(
|
|
37
|
+
"img",
|
|
38
|
+
{
|
|
39
|
+
src: n,
|
|
40
|
+
className: "wrapper__image",
|
|
41
|
+
onSelectCard: e
|
|
42
|
+
}
|
|
43
|
+
) })
|
|
44
|
+
), f = o(({}, t) => /* @__PURE__ */ a(s, {})), x = d.div`
|
|
25
45
|
display: flex;
|
|
26
|
-
justify-content: center;
|
|
27
46
|
flex-direction: column;
|
|
28
|
-
|
|
47
|
+
align-items: flex-start;
|
|
48
|
+
gap: 2rem;
|
|
29
49
|
|
|
30
|
-
& .
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
50
|
+
& .wrapper__heading {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 1rem;
|
|
54
|
+
text-align: center;
|
|
34
55
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
56
|
+
& .wrapper__title {
|
|
57
|
+
color: var(--gray-950, #14161a);
|
|
58
|
+
text-align: center;
|
|
59
|
+
font-size: 1.5rem;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
line-height: 2rem;
|
|
63
|
+
letter-spacing: -0.47px;
|
|
64
|
+
}
|
|
40
65
|
|
|
41
|
-
|
|
66
|
+
& .wrapper__subtitle {
|
|
67
|
+
color: var(---gray-600, #676e79);
|
|
68
|
+
font-size: 0.875rem;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
line-height: 1.25rem;
|
|
72
|
+
letter-spacing: 0.25px;
|
|
73
|
+
}
|
|
42
74
|
}
|
|
43
|
-
`, b = o.div`
|
|
44
|
-
text-align: center;
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
gap: 0.75rem;
|
|
49
|
-
font-size: 0.875rem;
|
|
50
|
-
font-weight: 500;
|
|
51
|
-
align-items: center;
|
|
52
75
|
|
|
53
|
-
& .
|
|
76
|
+
& .wrapper__content {
|
|
54
77
|
display: flex;
|
|
78
|
+
justify-content: center;
|
|
55
79
|
align-items: center;
|
|
80
|
+
gap: 3rem;
|
|
81
|
+
align-self: stretch;
|
|
56
82
|
|
|
57
|
-
& .
|
|
58
|
-
|
|
59
|
-
color: var(--success-600);
|
|
83
|
+
& .wrapper__item {
|
|
84
|
+
max-width: 7.5rem;
|
|
60
85
|
}
|
|
61
86
|
}
|
|
62
87
|
|
|
63
|
-
@media (max-width: ${
|
|
64
|
-
& .
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
88
|
+
@media (max-width: ${l + "px"}) {
|
|
89
|
+
& .wrapper__content {
|
|
90
|
+
align-content: center;
|
|
91
|
+
gap: 1rem;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
|
|
94
|
+
& .wrapper__item {
|
|
95
|
+
max-width: 4 0.5rem;
|
|
96
|
+
}
|
|
69
97
|
}
|
|
70
98
|
}
|
|
71
|
-
`,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
type: "button",
|
|
96
|
-
onClick: () => t(c) ? c() : d(),
|
|
97
|
-
children: s
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
] });
|
|
101
|
-
});
|
|
99
|
+
`, k = o(
|
|
100
|
+
({ title: t, subtitle: n, items: e = [], onSelectCard: i = () => {
|
|
101
|
+
} }, u) => {
|
|
102
|
+
var h;
|
|
103
|
+
return /* @__PURE__ */ a(x, { children: /* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
|
|
104
|
+
t && /* @__PURE__ */ a("div", { className: "wrapper__title", children: t }),
|
|
105
|
+
n && /* @__PURE__ */ a("div", { className: "wrapper__subtitle", children: n }),
|
|
106
|
+
/* @__PURE__ */ a("div", { className: "wrapper__content", children: e && (e == null ? void 0 : e.length) > 0 ? e == null ? void 0 : e.map((r, p) => /* @__PURE__ */ a(
|
|
107
|
+
w,
|
|
108
|
+
{
|
|
109
|
+
image: r == null ? void 0 : r.image,
|
|
110
|
+
imageComponent: r == null ? void 0 : r.imageComponent,
|
|
111
|
+
onSelectCard: () => i == null ? void 0 : i(r == null ? void 0 : r.uuid),
|
|
112
|
+
className: "wrapper__item"
|
|
113
|
+
},
|
|
114
|
+
`brand-hit-card__${p + 1}`
|
|
115
|
+
)) : (h = Array.from("12345")) == null ? void 0 : h.map((r, p) => /* @__PURE__ */ a(
|
|
116
|
+
f,
|
|
117
|
+
{},
|
|
118
|
+
`brand-hit-card-skeleton__${p + 1}`
|
|
119
|
+
)) })
|
|
120
|
+
] }) });
|
|
121
|
+
}
|
|
122
|
+
);
|
|
102
123
|
export {
|
|
103
|
-
|
|
124
|
+
k as default
|
|
104
125
|
};
|