@lanaco/lnc-react-ui 4.0.183 → 4.0.185
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/BlogCardsSponsoredSection.cjs +5 -3
- package/dist/BlogCardsSponsoredSection.js +68 -64
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +8 -6
- package/dist/BlogListSection.js +122 -114
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +5 -3
- package/dist/BlogsSectionDetailed.js +53 -49
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +9 -7
- package/dist/BlogsSectionSimple.js +53 -47
- package/dist/BlogsSectionSimpleCentered.cjs +7 -5
- package/dist/BlogsSectionSimpleCentered.js +31 -26
- package/dist/BlogsSectionWithFilters.cjs +9 -7
- package/dist/BlogsSectionWithFilters.js +47 -42
- package/dist/BrandHitsSection.cjs +9 -7
- package/dist/BrandHitsSection.js +40 -35
- package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
- package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
- package/dist/CheckBoxInput.cjs +27 -27
- package/dist/CheckBoxInput.js +61 -98
- package/dist/ColorInput.cjs +26 -26
- package/dist/ColorInput.js +127 -162
- package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
- package/dist/DetailedProductsInfinitiveSection.js +6 -5
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +12 -10
- package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
- package/dist/FieldOfInterestsMasonrySection.js +90 -85
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
- package/dist/GeneralWithTagsCardsSection.cjs +12 -8
- package/dist/GeneralWithTagsCardsSection.js +50 -44
- package/dist/GiftCardsSection.cjs +7 -5
- package/dist/GiftCardsSection.js +46 -40
- package/dist/MasonryGeneralCardsSection.cjs +6 -5
- package/dist/MasonryGeneralCardsSection.js +26 -23
- package/dist/Modal.cjs +14 -13
- package/dist/Modal.js +88 -86
- package/dist/OverlayGeneralCardsSection.cjs +7 -5
- package/dist/OverlayGeneralCardsSection.js +30 -35
- package/dist/ProductsWithBannerSection.cjs +8 -6
- package/dist/ProductsWithBannerSection.js +71 -77
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +31 -28
- package/dist/ReviewsSection.cjs +11 -9
- package/dist/ReviewsSection.js +38 -36
- package/dist/SalesCampaignsSection.cjs +22 -19
- package/dist/SalesCampaignsSection.js +299 -300
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +7 -3
- package/dist/SimpleProductsSection.cjs +5 -5
- package/dist/SimpleProductsSection.js +62 -72
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +9 -7
- package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
- package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
- package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
- package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
- package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
- package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
- package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
- package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
- package/package.json +1 -1
package/dist/Modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as t, Fragment as L, jsxs as R } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as z, useRef as
|
|
2
|
+
import { forwardRef as z, useRef as V, useState as q, useImperativeHandle as J, useEffect as K } from "react";
|
|
3
3
|
import { P as o } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import
|
|
5
|
+
import P from "./Icon.js";
|
|
6
6
|
import { b as w } from "./utils-Dc5zIpaz.js";
|
|
7
|
-
import { r as
|
|
7
|
+
import { r as Q } from "./index-B1vKwsDE.js";
|
|
8
8
|
import { m as M } from "./motion-Ckekul_K.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
10
|
import { A as S } from "./index-D-c5IxDk.js";
|
|
11
|
-
const
|
|
11
|
+
const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FULL" ? `calc(100dvh - ${g} - ${h})` : `calc(100dvh - ${g} - ${h} - ${l})` : n ? e == "FULL" ? `calc(100dvh - ${g})` : `calc(100dvh - ${g} - ${l})` : a ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${l})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${l})`, ee = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${l})`, oe = (e, n, a) => e == "FULL" ? "0" : `${n ? "0" : "16px"} 0 ${a ? "0" : "16px"} 0`, te = C(M.div)`
|
|
12
12
|
position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
|
|
13
13
|
top: 0;
|
|
14
14
|
left: 0;
|
|
@@ -17,16 +17,17 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
17
17
|
background: ${(e) => e.scrollOverlay === !0 ? "transparent" : e.overlayColor};
|
|
18
18
|
z-index: ${(e) => e.zIndex};
|
|
19
19
|
display: flex;
|
|
20
|
-
`,
|
|
20
|
+
`, re = C(M.div)`
|
|
21
21
|
position: relative;
|
|
22
22
|
width: 50%;
|
|
23
23
|
background-color: white;
|
|
24
24
|
${(e) => e.scrollOverlay == !1 ? "position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" : "height: fit-content; margin-right: auto; margin-left: auto;"}
|
|
25
25
|
background-color: ${(e) => w(e.theme, "Modal", "default", "enabled", "bg")};
|
|
26
26
|
z-index: ${(e) => e.zIndex};
|
|
27
|
-
width: ${(e) =>
|
|
28
|
-
max-width: ${(e) =>
|
|
29
|
-
box-shadow:
|
|
27
|
+
width: ${(e) => ie[e.size.toUpperCase()]};
|
|
28
|
+
max-width: ${(e) => ee(e.size.toUpperCase())};
|
|
29
|
+
box-shadow:
|
|
30
|
+
0px 20px 25px -5px rgba(0, 0, 0, 0.1),
|
|
30
31
|
0px 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
31
32
|
border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
|
|
32
33
|
display: flex;
|
|
@@ -34,7 +35,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
34
35
|
gap: 0.5rem;
|
|
35
36
|
|
|
36
37
|
& .lnc-modal-header {
|
|
37
|
-
max-height: ${
|
|
38
|
+
max-height: ${g};
|
|
38
39
|
overflow: hidden;
|
|
39
40
|
padding: ${l} ${l} 0 ${l};
|
|
40
41
|
}
|
|
@@ -44,7 +45,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
44
45
|
margin: 0;
|
|
45
46
|
}
|
|
46
47
|
& .lnc-modal-footer {
|
|
47
|
-
max-height: ${
|
|
48
|
+
max-height: ${h};
|
|
48
49
|
overflow: hidden;
|
|
49
50
|
padding-top: 1rem;
|
|
50
51
|
}
|
|
@@ -55,16 +56,16 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
55
56
|
flex-direction: column;
|
|
56
57
|
justify-content: space-between;
|
|
57
58
|
scrollbar-width: thin;
|
|
58
|
-
${(e) => e.scrollOverlay == !1 && `max-height: ${
|
|
59
|
+
${(e) => e.scrollOverlay == !1 && `max-height: ${Z(
|
|
59
60
|
e.size.toUpperCase(),
|
|
60
61
|
e.header,
|
|
61
62
|
e.footer
|
|
62
63
|
)};`}
|
|
63
64
|
overflow: auto;
|
|
64
|
-
margin: ${(e) =>
|
|
65
|
+
margin: ${(e) => oe(e.size, e.header, e.footer)};
|
|
65
66
|
padding: 0 ${l} 0 ${l};
|
|
66
67
|
}
|
|
67
|
-
`,
|
|
68
|
+
`, ne = C.div`
|
|
68
69
|
position: absolute;
|
|
69
70
|
cursor: pointer;
|
|
70
71
|
top: 1.375rem;
|
|
@@ -106,7 +107,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
106
107
|
"cancelBtnBgOpacity"
|
|
107
108
|
)};
|
|
108
109
|
}
|
|
109
|
-
`,
|
|
110
|
+
`, ae = C(M.div)`
|
|
110
111
|
display: ${(e) => e.scrollOverlay === !0 ? "block" : "none"};
|
|
111
112
|
position: fixed;
|
|
112
113
|
top: 0;
|
|
@@ -115,25 +116,26 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
115
116
|
width: 100%;
|
|
116
117
|
background-color: ${(e) => e.overlayColor};
|
|
117
118
|
z-index: 3;
|
|
118
|
-
`,
|
|
119
|
+
`, le = z((e, n) => {
|
|
119
120
|
const {
|
|
120
|
-
|
|
121
|
+
preventDefault: a = !1,
|
|
122
|
+
portalElement: m = document.body,
|
|
121
123
|
isOpen: s = !1,
|
|
122
|
-
header:
|
|
123
|
-
footer:
|
|
124
|
-
scrollOverlay:
|
|
125
|
-
overlay:
|
|
126
|
-
overlayColor:
|
|
124
|
+
header: i,
|
|
125
|
+
footer: c,
|
|
126
|
+
scrollOverlay: d = !1,
|
|
127
|
+
overlay: p = !0,
|
|
128
|
+
overlayColor: f = "rgba(0, 0, 0, 0.3)",
|
|
127
129
|
showCloseButton: u = !0,
|
|
128
|
-
onOpen:
|
|
130
|
+
onOpen: x = () => {
|
|
129
131
|
},
|
|
130
|
-
onClose:
|
|
132
|
+
onClose: U = () => {
|
|
131
133
|
},
|
|
132
|
-
zIndex:
|
|
133
|
-
size:
|
|
134
|
-
clickOutsideToClose:
|
|
135
|
-
className:
|
|
136
|
-
style:
|
|
134
|
+
zIndex: y = 1e3,
|
|
135
|
+
size: $ = "fluid",
|
|
136
|
+
clickOutsideToClose: b = !0,
|
|
137
|
+
className: G = "",
|
|
138
|
+
style: _ = {},
|
|
137
139
|
overlayProps: F,
|
|
138
140
|
overlayAnimation: k = {
|
|
139
141
|
animate: { opacity: 1 },
|
|
@@ -151,18 +153,18 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
151
153
|
},
|
|
152
154
|
transition: { type: "spring", duration: 0.6 }
|
|
153
155
|
},
|
|
154
|
-
onFinishOpen:
|
|
156
|
+
onFinishOpen: W = () => {
|
|
155
157
|
},
|
|
156
158
|
children: T,
|
|
157
159
|
rest: I
|
|
158
|
-
} = e, E =
|
|
159
|
-
let
|
|
160
|
-
const
|
|
161
|
-
r == null || r.preventDefault(), r == null || r.stopPropagation(), r.target === r.currentTarget &&
|
|
160
|
+
} = e, E = V(), [v, N] = q(s);
|
|
161
|
+
let D = { theme: Y(), size: $, zIndex: y, className: G, style: _ };
|
|
162
|
+
const j = (r) => {
|
|
163
|
+
a && (r == null || r.preventDefault(), r == null || r.stopPropagation()), r.target === r.currentTarget && b && O(r);
|
|
162
164
|
};
|
|
163
|
-
|
|
165
|
+
J(n, () => ({
|
|
164
166
|
open() {
|
|
165
|
-
|
|
167
|
+
X();
|
|
166
168
|
},
|
|
167
169
|
close() {
|
|
168
170
|
O();
|
|
@@ -171,94 +173,94 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
171
173
|
return v;
|
|
172
174
|
}
|
|
173
175
|
}));
|
|
174
|
-
const
|
|
175
|
-
N(!0),
|
|
176
|
+
const X = (r) => {
|
|
177
|
+
N(!0), x(r);
|
|
176
178
|
}, O = (r) => {
|
|
177
|
-
N(!1),
|
|
179
|
+
N(!1), U(r);
|
|
178
180
|
};
|
|
179
|
-
return
|
|
180
|
-
v === !0 &&
|
|
181
|
-
}, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children:
|
|
181
|
+
return K(() => {
|
|
182
|
+
v === !0 && W();
|
|
183
|
+
}, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: m ? /* @__PURE__ */ t(L, { children: Q.createPortal(
|
|
182
184
|
/* @__PURE__ */ t(
|
|
183
|
-
|
|
185
|
+
A,
|
|
184
186
|
{
|
|
185
187
|
ref: E,
|
|
186
|
-
overlay:
|
|
187
|
-
scrollOverlay:
|
|
188
|
-
onClickOutsideModal:
|
|
189
|
-
overlayColor:
|
|
188
|
+
overlay: p,
|
|
189
|
+
scrollOverlay: d,
|
|
190
|
+
onClickOutsideModal: j,
|
|
191
|
+
overlayColor: f,
|
|
190
192
|
overlayProps: F,
|
|
191
193
|
overlayAnimation: k,
|
|
192
194
|
modalAnimation: B,
|
|
193
|
-
themeProps:
|
|
195
|
+
themeProps: D,
|
|
194
196
|
showCloseButton: u,
|
|
195
197
|
close: O,
|
|
196
|
-
header:
|
|
197
|
-
footer:
|
|
198
|
+
header: i,
|
|
199
|
+
footer: c,
|
|
198
200
|
isOpen: s,
|
|
199
201
|
...I,
|
|
200
202
|
children: T
|
|
201
203
|
}
|
|
202
204
|
),
|
|
203
|
-
|
|
205
|
+
m
|
|
204
206
|
) }) : /* @__PURE__ */ t(
|
|
205
|
-
|
|
207
|
+
A,
|
|
206
208
|
{
|
|
207
209
|
ref: E,
|
|
208
|
-
overlay:
|
|
209
|
-
scrollOverlay:
|
|
210
|
-
onClickOutsideModal:
|
|
211
|
-
overlayColor:
|
|
210
|
+
overlay: p,
|
|
211
|
+
scrollOverlay: d,
|
|
212
|
+
onClickOutsideModal: j,
|
|
213
|
+
overlayColor: f,
|
|
212
214
|
overlayProps: F,
|
|
213
215
|
overlayAnimation: k,
|
|
214
216
|
modalAnimation: B,
|
|
215
|
-
themeProps:
|
|
217
|
+
themeProps: D,
|
|
216
218
|
showCloseButton: u,
|
|
217
219
|
close: O,
|
|
218
|
-
header:
|
|
219
|
-
footer:
|
|
220
|
+
header: i,
|
|
221
|
+
footer: c,
|
|
220
222
|
isOpen: s,
|
|
221
223
|
...I,
|
|
222
224
|
children: T
|
|
223
225
|
}
|
|
224
226
|
) }) });
|
|
225
|
-
}),
|
|
227
|
+
}), A = z(
|
|
226
228
|
({
|
|
227
229
|
overlay: e,
|
|
228
230
|
scrollOverlay: n,
|
|
229
231
|
onClickOutsideModal: a,
|
|
230
|
-
overlayColor:
|
|
231
|
-
overlayProps:
|
|
232
|
+
overlayColor: m,
|
|
233
|
+
overlayProps: s,
|
|
232
234
|
overlayAnimation: i,
|
|
233
235
|
modalAnimation: c,
|
|
234
236
|
themeProps: d,
|
|
235
237
|
showCloseButton: p,
|
|
236
|
-
header:
|
|
237
|
-
footer:
|
|
238
|
+
header: f,
|
|
239
|
+
footer: u,
|
|
238
240
|
close: x,
|
|
239
241
|
isOpen: U,
|
|
240
242
|
children: y,
|
|
241
243
|
...$
|
|
242
244
|
}, b) => /* @__PURE__ */ t(S, { children: e ? /* @__PURE__ */ R(L, { children: [
|
|
243
245
|
/* @__PURE__ */ t(
|
|
244
|
-
|
|
246
|
+
ae,
|
|
245
247
|
{
|
|
246
248
|
scrollOverlay: n,
|
|
247
249
|
onClick: a,
|
|
248
|
-
overlayColor:
|
|
249
|
-
...
|
|
250
|
+
overlayColor: m,
|
|
251
|
+
...s,
|
|
250
252
|
...i
|
|
251
253
|
}
|
|
252
254
|
),
|
|
253
255
|
/* @__PURE__ */ t(
|
|
254
|
-
|
|
256
|
+
te,
|
|
255
257
|
{
|
|
256
258
|
...d,
|
|
257
259
|
onClick: a,
|
|
258
260
|
scrollOverlay: n,
|
|
259
|
-
overlayColor:
|
|
261
|
+
overlayColor: m,
|
|
260
262
|
isOpen: U,
|
|
261
|
-
...
|
|
263
|
+
...s,
|
|
262
264
|
...i,
|
|
263
265
|
children: /* @__PURE__ */ t(
|
|
264
266
|
H,
|
|
@@ -269,8 +271,8 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
269
271
|
modalAnimation: c,
|
|
270
272
|
showCloseButton: p,
|
|
271
273
|
close: x,
|
|
272
|
-
header:
|
|
273
|
-
footer:
|
|
274
|
+
header: f,
|
|
275
|
+
footer: u,
|
|
274
276
|
...$,
|
|
275
277
|
children: y
|
|
276
278
|
}
|
|
@@ -285,8 +287,8 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
285
287
|
modalAnimation: c,
|
|
286
288
|
showCloseButton: p,
|
|
287
289
|
close: x,
|
|
288
|
-
header:
|
|
289
|
-
footer:
|
|
290
|
+
header: f,
|
|
291
|
+
footer: u,
|
|
290
292
|
...$,
|
|
291
293
|
children: y
|
|
292
294
|
}
|
|
@@ -296,16 +298,16 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
296
298
|
themeProps: e,
|
|
297
299
|
scrollOverlay: n,
|
|
298
300
|
modalAnimation: a,
|
|
299
|
-
showCloseButton:
|
|
300
|
-
close:
|
|
301
|
+
showCloseButton: m,
|
|
302
|
+
close: s,
|
|
301
303
|
header: i,
|
|
302
304
|
footer: c,
|
|
303
305
|
children: d,
|
|
304
306
|
...p
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
+
}, f) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ R(
|
|
308
|
+
re,
|
|
307
309
|
{
|
|
308
|
-
ref:
|
|
310
|
+
ref: f,
|
|
309
311
|
...e,
|
|
310
312
|
...a,
|
|
311
313
|
header: i,
|
|
@@ -314,13 +316,13 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
314
316
|
...p,
|
|
315
317
|
className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
|
|
316
318
|
children: [
|
|
317
|
-
|
|
318
|
-
|
|
319
|
+
m && /* @__PURE__ */ t(
|
|
320
|
+
ne,
|
|
319
321
|
{
|
|
320
322
|
...e,
|
|
321
323
|
className: "modal-lnc-times",
|
|
322
|
-
onClick:
|
|
323
|
-
children: /* @__PURE__ */ t(
|
|
324
|
+
onClick: s,
|
|
325
|
+
children: /* @__PURE__ */ t(P, { icon: "times" })
|
|
324
326
|
}
|
|
325
327
|
),
|
|
326
328
|
i && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: i }),
|
|
@@ -330,7 +332,7 @@ const f = "5rem", h = "3.8rem", l = "1.5rem", Y = (e, n, a) => n && a ? e == "FU
|
|
|
330
332
|
}
|
|
331
333
|
) })
|
|
332
334
|
);
|
|
333
|
-
|
|
335
|
+
le.propTypes = {
|
|
334
336
|
/**
|
|
335
337
|
* If the value is given modal will use createPortal to be rendered in portalElement
|
|
336
338
|
*/
|
|
@@ -362,7 +364,7 @@ ae.propTypes = {
|
|
|
362
364
|
size: o.oneOf(["fluid", "xs", "s", "m", "l", "xl", "full"]),
|
|
363
365
|
overlayProps: o.any
|
|
364
366
|
};
|
|
365
|
-
const
|
|
367
|
+
const ie = {
|
|
366
368
|
FLUID: "max-content",
|
|
367
369
|
XS: "320px",
|
|
368
370
|
S: "412px",
|
|
@@ -372,5 +374,5 @@ const le = {
|
|
|
372
374
|
FULL: "100vw"
|
|
373
375
|
};
|
|
374
376
|
export {
|
|
375
|
-
|
|
377
|
+
le as default
|
|
376
378
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),d=require("react"),x=require("./Button.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),_=require("./index-D-3I_Ppj.cjs"),u=f.styled.a`
|
|
2
|
+
text-decoration: none;
|
|
3
|
+
color: var(--gray-950);
|
|
2
4
|
display: flex;
|
|
3
5
|
height: 28.75rem;
|
|
4
6
|
padding: 2.25rem;
|
|
@@ -60,7 +62,7 @@
|
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
@media (max-width: ${
|
|
65
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
64
66
|
padding: 2rem;
|
|
65
67
|
min-height: 17.5rem;
|
|
66
68
|
width: 100%;
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
`,
|
|
88
|
+
`,m=d.forwardRef(({title:r,description:t,buttonText:i,imageUrl:s,backgroundColor:l="none",handleSelectCard:a=()=>{},handleButtonAction:e=()=>{},selectAction:c},h)=>n.jsxs(u,{ref:h,backgroundImage:s,backgroundColor:l,onClick:a,href:`/${c}`,children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),t&&n.jsx("div",{className:"section__description",children:t})]}),n.jsx(x,{text:i,onClick:o=>{o==null||o.preventDefault(),o==null||o.stopPropagation(),e()},borderRadius:"regular",color:"gray",className:"section__action"})]})),y=f.styled.div`
|
|
87
89
|
display: flex;
|
|
88
90
|
flex-direction: column;
|
|
89
91
|
align-items: flex-start;
|
|
@@ -122,7 +124,7 @@
|
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
@media (max-width: ${
|
|
127
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
126
128
|
& .section__title {
|
|
127
129
|
font-size: 1.375rem;
|
|
128
130
|
line-height: 1.75rem;
|
|
@@ -132,4 +134,4 @@
|
|
|
132
134
|
flex-direction: column;
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
|
-
`,
|
|
137
|
+
`,v=d.forwardRef(({title:r,items:t,isLoading:i=!1,onSelectCard:s=()=>{},onButtonAction:l=()=>{}},a)=>n.jsxs(y,{ref:a,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(_.SuspenseBlogsSectionDetailed,{isLoading:i,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:t==null?void 0:t.map((e,c)=>n.jsx(m,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>s(e),handleButtonAction:()=>l(e),selectAction:e==null?void 0:e.selectAction},`overlay-general-card__${c+1}`))})})]}));module.exports=v;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import m from "./Button.js";
|
|
4
|
+
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { M as h } from "./consts-BuFChS64.js";
|
|
6
|
+
import { S as u } from "./index-BovNbKxB.js";
|
|
7
|
+
const x = g.a`
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
color: var(--gray-950);
|
|
9
10
|
display: flex;
|
|
10
11
|
height: 28.75rem;
|
|
11
12
|
padding: 2.25rem;
|
|
@@ -67,7 +68,7 @@ const p = h.div`
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
@media (max-width: ${
|
|
71
|
+
@media (max-width: ${h + "px"}) {
|
|
71
72
|
padding: 2rem;
|
|
72
73
|
min-height: 17.5rem;
|
|
73
74
|
width: 100%;
|
|
@@ -90,7 +91,7 @@ const p = h.div`
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
`,
|
|
94
|
+
`, p = f(
|
|
94
95
|
({
|
|
95
96
|
title: r,
|
|
96
97
|
description: o,
|
|
@@ -100,24 +101,27 @@ const p = h.div`
|
|
|
100
101
|
handleSelectCard: s = () => {
|
|
101
102
|
},
|
|
102
103
|
handleButtonAction: e = () => {
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
},
|
|
105
|
+
selectAction: c
|
|
106
|
+
}, _) => /* @__PURE__ */ d(
|
|
107
|
+
x,
|
|
106
108
|
{
|
|
109
|
+
ref: _,
|
|
107
110
|
backgroundImage: a,
|
|
108
111
|
backgroundColor: l,
|
|
109
112
|
onClick: s,
|
|
113
|
+
href: `/${c}`,
|
|
110
114
|
children: [
|
|
111
115
|
/* @__PURE__ */ d("div", { className: "section__text", children: [
|
|
112
116
|
r && /* @__PURE__ */ n("div", { className: "section__title", children: r }),
|
|
113
117
|
o && /* @__PURE__ */ n("div", { className: "section__description", children: o })
|
|
114
118
|
] }),
|
|
115
119
|
/* @__PURE__ */ n(
|
|
116
|
-
|
|
120
|
+
m,
|
|
117
121
|
{
|
|
118
122
|
text: i,
|
|
119
|
-
onClick: (
|
|
120
|
-
|
|
123
|
+
onClick: (t) => {
|
|
124
|
+
t == null || t.preventDefault(), t == null || t.stopPropagation(), e();
|
|
121
125
|
},
|
|
122
126
|
borderRadius: "regular",
|
|
123
127
|
color: "gray",
|
|
@@ -127,17 +131,7 @@ const p = h.div`
|
|
|
127
131
|
]
|
|
128
132
|
}
|
|
129
133
|
)
|
|
130
|
-
)
|
|
131
|
-
_.propTypes = {
|
|
132
|
-
title: t.string,
|
|
133
|
-
description: t.string,
|
|
134
|
-
buttonText: t.string,
|
|
135
|
-
imageUrl: t.string,
|
|
136
|
-
backgroundColor: t.string,
|
|
137
|
-
handleSelectCard: t.func,
|
|
138
|
-
handleButtonAction: t.func
|
|
139
|
-
};
|
|
140
|
-
const y = h.div`
|
|
134
|
+
), v = g.div`
|
|
141
135
|
display: flex;
|
|
142
136
|
flex-direction: column;
|
|
143
137
|
align-items: flex-start;
|
|
@@ -176,7 +170,7 @@ const y = h.div`
|
|
|
176
170
|
}
|
|
177
171
|
}
|
|
178
172
|
|
|
179
|
-
@media (max-width: ${
|
|
173
|
+
@media (max-width: ${h + "px"}) {
|
|
180
174
|
& .section__title {
|
|
181
175
|
font-size: 1.375rem;
|
|
182
176
|
line-height: 1.75rem;
|
|
@@ -186,7 +180,7 @@ const y = h.div`
|
|
|
186
180
|
flex-direction: column;
|
|
187
181
|
}
|
|
188
182
|
}
|
|
189
|
-
`,
|
|
183
|
+
`, $ = f(
|
|
190
184
|
({
|
|
191
185
|
title: r,
|
|
192
186
|
items: o,
|
|
@@ -195,15 +189,15 @@ const y = h.div`
|
|
|
195
189
|
},
|
|
196
190
|
onButtonAction: l = () => {
|
|
197
191
|
}
|
|
198
|
-
}, s) => /* @__PURE__ */ d(
|
|
192
|
+
}, s) => /* @__PURE__ */ d(v, { ref: s, children: [
|
|
199
193
|
/* @__PURE__ */ n("div", { className: "section__title", children: r }),
|
|
200
194
|
/* @__PURE__ */ n(
|
|
201
|
-
|
|
195
|
+
u,
|
|
202
196
|
{
|
|
203
197
|
isLoading: i,
|
|
204
198
|
keyPrefix: "overlay-general-cards-skeleton",
|
|
205
|
-
children: /* @__PURE__ */ n("div", { className: "section__items", children: o == null ? void 0 : o.map((e,
|
|
206
|
-
|
|
199
|
+
children: /* @__PURE__ */ n("div", { className: "section__items", children: o == null ? void 0 : o.map((e, c) => /* @__PURE__ */ n(
|
|
200
|
+
p,
|
|
207
201
|
{
|
|
208
202
|
title: e == null ? void 0 : e.title,
|
|
209
203
|
description: e == null ? void 0 : e.description,
|
|
@@ -211,14 +205,15 @@ const y = h.div`
|
|
|
211
205
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
212
206
|
backgroundColor: e == null ? void 0 : e.backgroundColor,
|
|
213
207
|
handleSelectCard: () => a(e),
|
|
214
|
-
handleButtonAction: () => l(e)
|
|
208
|
+
handleButtonAction: () => l(e),
|
|
209
|
+
selectAction: e == null ? void 0 : e.selectAction
|
|
215
210
|
},
|
|
216
|
-
`overlay-general-card__${
|
|
211
|
+
`overlay-general-card__${c + 1}`
|
|
217
212
|
)) })
|
|
218
213
|
}
|
|
219
214
|
)
|
|
220
215
|
] })
|
|
221
216
|
);
|
|
222
217
|
export {
|
|
223
|
-
|
|
218
|
+
$ as default
|
|
224
219
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),P=require("./useDetectMobile-zkbzoOGV.cjs"),w=require("./style-CkcozOY6.cjs"),u=require("./utils-RnrgDDZP.cjs"),f=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),L=g.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 22.5rem;
|
|
4
4
|
min-height: 22.5rem;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,W=g.styled.div`
|
|
35
35
|
display: grid;
|
|
36
36
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
37
37
|
gap: 1.25rem;
|
|
@@ -39,11 +39,13 @@
|
|
|
39
39
|
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
40
40
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
`,C=g.styled.a`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
gap: 0.5rem;
|
|
46
46
|
cursor: pointer;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
color: var(--gray-950);
|
|
47
49
|
|
|
48
50
|
& img {
|
|
49
51
|
width: 100%;
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
& .card-title {
|
|
56
58
|
font-size: 0.875rem;
|
|
57
59
|
font-weight: 600;
|
|
58
|
-
${
|
|
60
|
+
${u.truncateTextInRows(2)}
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
@@ -69,11 +71,11 @@
|
|
|
69
71
|
object-fit: cover;
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
|
|
74
|
+
`,$=a.forwardRef((t,d)=>{const{uuid:s,title:n,image:l,sellerUuid:k,onSelectCard:S=()=>{},imageComponent:h,metadata:o,nameSlug:m}=t,c=a.useRef(null);return e.jsxs(C,{ref:c,className:"product-card",name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,onClick:j=>S(j,d),href:`/product/${u.isDefinedNotEmptyString(m)?`${m}-`:""}${s}`,children:[u.isDefined(h)?h:e.jsx(f.ProductImageWrapper,{src:l}),e.jsx("div",{className:"card-title",children:n})]})}),_=g.styled(i.SkeletonColumnWrapper)`
|
|
73
75
|
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
74
76
|
& .skeleton__banner {
|
|
75
77
|
height: 100%;
|
|
76
78
|
aspect-ratio: 1 / 1;
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
|
-
`,
|
|
81
|
+
`,q=({keyPrefix:t})=>e.jsxs(_,{children:[e.jsx(i.SkeletonLinePlaceholder,{height:"22.5rem",className:"skeleton__banner"}),e.jsxs(i.SkeletonRowWrapper,{children:[e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${t}-1`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-2`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-3`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-4`)]})]}),v=({keyPrefix:t,isLoading:d=!1,fallbackComponent:s=e.jsx(e.Fragment,{}),children:n})=>e.jsx(a.Suspense,{fallbackComponent:s,children:d===!0?e.jsx(q,{keyPrefix:t}):n}),R=a.memo($),y=a.forwardRef((t,d)=>{const{icon:s,items:n,limit:l=4,imageUrl:k,title:S="Season inspiration",isLoading:h=!1,getImage:o=()=>{},componentName:m}=t,c=P.useDetectMobile(),j=a.useMemo(()=>e.jsx(e.Fragment,{children:c===!0?n==null?void 0:n.map((r,b)=>e.jsx(R,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:m,accessor:r==null?void 0:r.accessor}},b)):n==null?void 0:n.slice(0,l).map((r,b)=>e.jsx(R,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:m,accessor:r==null?void 0:r.accessor}},b))}),[n,c,l]);return e.jsxs(w.RegulatTitleSectionWrapper,{ref:d,children:[e.jsx("div",{className:"regular-title",children:e.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(s)&&e.jsx("i",{className:s}),e.jsx("span",{children:S})]})}),e.jsxs(v,{isLoading:h,keyPrefix:"products-with-banner-skeleton",children:[e.jsx(L,{className:"products-banner",children:e.jsx("img",{src:k})}),e.jsx(W,{limit:l,children:j})]})]})});module.exports=y;
|