@lanaco/lnc-react-ui 4.0.157 → 4.0.161
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 +11 -9
- package/dist/BlogCardsSponsoredSection.js +108 -90
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +88 -84
- package/dist/BlogListSection.cjs +5 -5
- package/dist/BlogListSection.js +139 -126
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +37 -35
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +43 -41
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +9 -4
- package/dist/BlogsSectionDetailed.cjs +11 -11
- package/dist/BlogsSectionDetailed.js +122 -108
- package/dist/BlogsSectionLarge.cjs +4 -4
- package/dist/BlogsSectionLarge.js +43 -40
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +100 -86
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +81 -66
- package/dist/BlogsSectionWithFilters.cjs +11 -11
- package/dist/BlogsSectionWithFilters.js +108 -93
- package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
- package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +5 -3
- package/dist/DetailedProductsInfinitiveSection.js +31 -27
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +76 -65
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -12
- package/dist/FieldOfInterestsMasonrySection.js +35 -27
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -0
- package/dist/FieldOfInterestsWithTagsCardsSection.js +5 -3
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -3
- package/dist/MasonryGeneralCardsSection.js +9 -11
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -27
- package/dist/ProductsWithBannerSection.js +93 -78
- package/dist/QuattroCardsSection.cjs +2 -0
- package/dist/QuattroCardsSection.js +2 -0
- package/dist/SalesCampaignsSection.cjs +29 -27
- package/dist/SalesCampaignsSection.js +247 -239
- package/dist/ShopCardsSection.cjs +5 -3
- package/dist/ShopCardsSection.js +29 -25
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +62 -51
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +67 -56
- package/dist/index-1Dm1i6WK.js +52 -0
- package/dist/index-BGTtoLxz.cjs +1 -0
- package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
- package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
- package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
- package/dist/{style-BLuyU97E.js → style-DKAOBWn3.js} +1 -0
- package/dist/{style-lSjkOR95.cjs → style-Db3VFbfP.cjs} +1 -0
- package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
- package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
- package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
- package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Cm0f72Po.cjs +0 -1
- package/dist/index-DGp7FHms.js +0 -42
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { p as
|
|
4
|
-
import { s as
|
|
2
|
+
import { forwardRef as c, useLayoutEffect as L } from "react";
|
|
3
|
+
import { p as $, o as E, l as O, k as S } from "./utils-BdsZgOUE.js";
|
|
4
|
+
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { M as g } from "./consts-BuFChS64.js";
|
|
6
6
|
import A from "./Icon.js";
|
|
7
7
|
import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
-
const T =
|
|
8
|
+
const T = h.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: fit-content;
|
|
@@ -44,7 +44,7 @@ const T = f.div`
|
|
|
44
44
|
font-style: normal;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
line-height: 1.5rem;
|
|
47
|
-
${
|
|
47
|
+
${$(2)}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
& .wrapper__description {
|
|
@@ -54,7 +54,7 @@ const T = f.div`
|
|
|
54
54
|
font-weight: 400;
|
|
55
55
|
line-height: 1rem;
|
|
56
56
|
letter-spacing: 0.025rem;
|
|
57
|
-
${
|
|
57
|
+
${$(2)}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -70,17 +70,19 @@ const T = f.div`
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`, j =
|
|
73
|
+
`, j = h.div`
|
|
74
74
|
width: 100%;
|
|
75
75
|
height: 11.625rem;
|
|
76
76
|
border-radius: 0.75rem;
|
|
77
77
|
background: ${E("-90deg")};
|
|
78
|
-
`, q =
|
|
78
|
+
`, q = h.div`
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
align-items: center;
|
|
82
82
|
gap: 0.75rem;
|
|
83
83
|
height: 100%;
|
|
84
|
+
max-width: 8rem;
|
|
85
|
+
min-width: 8rem;
|
|
84
86
|
|
|
85
87
|
&:hover {
|
|
86
88
|
cursor: pointer;
|
|
@@ -113,6 +115,8 @@ const T = f.div`
|
|
|
113
115
|
font-style: normal;
|
|
114
116
|
font-weight: 400;
|
|
115
117
|
line-height: 1.5rem;
|
|
118
|
+
max-width: 8rem;
|
|
119
|
+
${$(2)}
|
|
116
120
|
}
|
|
117
121
|
|
|
118
122
|
&.active {
|
|
@@ -123,6 +127,8 @@ const T = f.div`
|
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
@media (max-width: ${g + "px"}) {
|
|
130
|
+
max-width: unset;
|
|
131
|
+
min-width: unset;
|
|
126
132
|
flex-direction: row;
|
|
127
133
|
align-items: center;
|
|
128
134
|
gap: 0.25rem;
|
|
@@ -157,9 +163,10 @@ const T = f.div`
|
|
|
157
163
|
font-size: 0.875rem;
|
|
158
164
|
line-height: 1.25rem;
|
|
159
165
|
white-space: nowrap;
|
|
166
|
+
max-width: unset;
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
|
-
`, R =
|
|
169
|
+
`, R = h.div`
|
|
163
170
|
width: 7.5rem;
|
|
164
171
|
width: 7.5rem;
|
|
165
172
|
border-radius: 999px;
|
|
@@ -169,7 +176,7 @@ const T = f.div`
|
|
|
169
176
|
width: 7.5rem;
|
|
170
177
|
height: 2.5rem;
|
|
171
178
|
}
|
|
172
|
-
`, B =
|
|
179
|
+
`, B = c(({}, i) => /* @__PURE__ */ r(R, {})), D = c(
|
|
173
180
|
({ text: i, isActive: o = !1, icon: t, onSelectCard: a = () => {
|
|
174
181
|
} }, s) => /* @__PURE__ */ l(
|
|
175
182
|
q,
|
|
@@ -183,7 +190,7 @@ const T = f.div`
|
|
|
183
190
|
]
|
|
184
191
|
}
|
|
185
192
|
)
|
|
186
|
-
), G =
|
|
193
|
+
), G = c(
|
|
187
194
|
({
|
|
188
195
|
image: i,
|
|
189
196
|
imageComponent: o,
|
|
@@ -211,13 +218,13 @@ const T = f.div`
|
|
|
211
218
|
}
|
|
212
219
|
);
|
|
213
220
|
}
|
|
214
|
-
), H =
|
|
221
|
+
), H = c(({}, i) => /* @__PURE__ */ l(j, { children: [
|
|
215
222
|
/* @__PURE__ */ r("div", { className: "wrapper__image" }),
|
|
216
223
|
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
217
224
|
/* @__PURE__ */ r("div", { className: "wrapper__title" }),
|
|
218
225
|
/* @__PURE__ */ r("div", { className: "wrapper__description" })
|
|
219
226
|
] })
|
|
220
|
-
] })), P =
|
|
227
|
+
] })), P = h.div`
|
|
221
228
|
display: flex;
|
|
222
229
|
flex-direction: column;
|
|
223
230
|
align-items: center;
|
|
@@ -256,7 +263,6 @@ const T = f.div`
|
|
|
256
263
|
& .wrapper__tags {
|
|
257
264
|
display: flex;
|
|
258
265
|
justify-content: center;
|
|
259
|
-
align-items: center;
|
|
260
266
|
gap: 0.75rem;
|
|
261
267
|
}
|
|
262
268
|
|
|
@@ -274,6 +280,8 @@ const T = f.div`
|
|
|
274
280
|
}
|
|
275
281
|
|
|
276
282
|
@media (max-width: ${g + "px"}) {
|
|
283
|
+
gap: 1rem;
|
|
284
|
+
|
|
277
285
|
& .wrapper__tags {
|
|
278
286
|
overflow-x: scroll;
|
|
279
287
|
justify-content: flex-start;
|
|
@@ -298,7 +306,7 @@ const T = f.div`
|
|
|
298
306
|
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
299
307
|
}
|
|
300
308
|
}
|
|
301
|
-
`, Y =
|
|
309
|
+
`, Y = c(
|
|
302
310
|
({
|
|
303
311
|
title: i,
|
|
304
312
|
subtitle: o,
|
|
@@ -315,28 +323,28 @@ const T = f.div`
|
|
|
315
323
|
},
|
|
316
324
|
className: p
|
|
317
325
|
}, C) => {
|
|
318
|
-
var
|
|
326
|
+
var N, z;
|
|
319
327
|
return L(() => {
|
|
320
328
|
if (!S(p))
|
|
321
329
|
return;
|
|
322
330
|
const e = () => {
|
|
323
|
-
const d = document.querySelector(`.${p} .wrapper__cards`),
|
|
324
|
-
|
|
331
|
+
const d = document.querySelector(`.${p} .wrapper__cards`), m = d.querySelectorAll(".wrapper__card");
|
|
332
|
+
m.forEach((w) => {
|
|
325
333
|
const M = w.getBoundingClientRect().height, F = Math.ceil((M + 10) / 20);
|
|
326
334
|
w.style.gridRowEnd = `span ${F}`;
|
|
327
335
|
});
|
|
328
|
-
const k =
|
|
336
|
+
const k = m == null ? void 0 : m[m.length - 1];
|
|
329
337
|
if (k) {
|
|
330
338
|
const w = k.offsetTop + k.offsetHeight;
|
|
331
339
|
d.style.height = `${w}px`;
|
|
332
340
|
}
|
|
333
|
-
},
|
|
334
|
-
let
|
|
335
|
-
return
|
|
336
|
-
d.complete ?
|
|
337
|
-
|
|
341
|
+
}, f = document.querySelector(`.${p} .wrapper__cards`).querySelectorAll(".wrapper__image");
|
|
342
|
+
let _ = 0;
|
|
343
|
+
return f.length === 0 ? e() : (f.forEach((d) => {
|
|
344
|
+
d.complete ? _++ : d.addEventListener("load", () => {
|
|
345
|
+
_++, _ === f.length && e();
|
|
338
346
|
});
|
|
339
|
-
}),
|
|
347
|
+
}), _ === f.length && e()), window.addEventListener("resize", e), () => {
|
|
340
348
|
window.removeEventListener("resize", e);
|
|
341
349
|
};
|
|
342
350
|
}, [p, a]), /* @__PURE__ */ l(
|
|
@@ -363,7 +371,7 @@ const T = f.div`
|
|
|
363
371
|
onSelectCard: () => y == null ? void 0 : y(e)
|
|
364
372
|
},
|
|
365
373
|
`field-of-interests-masonry-tag__${n + 1}`
|
|
366
|
-
)) : (
|
|
374
|
+
)) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ r(
|
|
367
375
|
B,
|
|
368
376
|
{},
|
|
369
377
|
`field-of-interests-masonry-tag-skeleton__${n + 1}`
|
|
@@ -379,7 +387,7 @@ const T = f.div`
|
|
|
379
387
|
className: "wrapper__card"
|
|
380
388
|
},
|
|
381
389
|
`field-of-interests-with-tags-card__${n + 1}`
|
|
382
|
-
)) : (
|
|
390
|
+
)) : (z = Array.from("12345")) == null ? void 0 : z.map((e, n) => /* @__PURE__ */ r(
|
|
383
391
|
H,
|
|
384
392
|
{},
|
|
385
393
|
`field-of-interests-with-tags-card-skeleton__${n + 1}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),f=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-Dl9xPH4c.cjs"),$=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-Dl9xPH4c.cjs"),$=require("./index-DicTpiG0.cjs"),c=h.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 11.625rem;
|
|
4
4
|
border-radius: 0.75rem;
|
|
@@ -3,7 +3,7 @@ import { forwardRef as h } from "react";
|
|
|
3
3
|
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as x } from "./consts-BuFChS64.js";
|
|
5
5
|
import { o as v, l as C } from "./utils-BdsZgOUE.js";
|
|
6
|
-
import { S as F } from "./index-
|
|
6
|
+
import { S as F } from "./index-y6sKgrZC.js";
|
|
7
7
|
const N = _.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 11.625rem;
|
|
@@ -197,6 +197,8 @@ const W = c.div`
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
@media (max-width: ${v + "px"}) {
|
|
200
|
+
gap: 1rem;
|
|
201
|
+
|
|
200
202
|
& .wrapper__tags {
|
|
201
203
|
overflow-x: scroll;
|
|
202
204
|
justify-content: flex-start;
|
|
@@ -240,7 +242,7 @@ const W = c.div`
|
|
|
240
242
|
onSelectCard: _ = () => {
|
|
241
243
|
}
|
|
242
244
|
}, k) => {
|
|
243
|
-
var
|
|
245
|
+
var g, w;
|
|
244
246
|
return /* @__PURE__ */ m(
|
|
245
247
|
M,
|
|
246
248
|
{
|
|
@@ -264,7 +266,7 @@ const W = c.div`
|
|
|
264
266
|
onSelectCard: () => h == null ? void 0 : h(e)
|
|
265
267
|
},
|
|
266
268
|
`field-of-interests-with-tags-card-tag__${l + 1}`
|
|
267
|
-
)) : (
|
|
269
|
+
)) : (g = Array.from("123")) == null ? void 0 : g.map((e, l) => /* @__PURE__ */ i(
|
|
268
270
|
z,
|
|
269
271
|
{},
|
|
270
272
|
`field-of-interests-with-tags-card-tag-skeleton__${l + 1}`
|
|
@@ -279,7 +281,7 @@ const W = c.div`
|
|
|
279
281
|
onSelectCard: () => _ == null ? void 0 : _(e)
|
|
280
282
|
},
|
|
281
283
|
`field-of-interests-with-tags-card__${l + 1}`
|
|
282
|
-
)) : (
|
|
284
|
+
)) : (w = Array.from("123")) == null ? void 0 : w.map((e, l) => /* @__PURE__ */ i(
|
|
283
285
|
E,
|
|
284
286
|
{},
|
|
285
287
|
`field-of-interests-with-tags-card-skeleton__${l + 1}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-Db3VFbfP.cjs"),o=require("./utils-Dl9xPH4c.cjs"),j=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),S=c.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { R as k } from "./style-
|
|
4
|
+
import { R as k } from "./style-DKAOBWn3.js";
|
|
5
5
|
import { o as b, q as G, G as S, k as u } from "./utils-BdsZgOUE.js";
|
|
6
6
|
import N from "./Button.js";
|
|
7
7
|
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
@@ -137,8 +137,6 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
140
|
-
gap: 1.25rem;
|
|
141
|
-
|
|
142
140
|
& .regular-title {
|
|
143
141
|
font-size: 1.375rem;
|
|
144
142
|
|
|
@@ -160,7 +158,7 @@
|
|
|
160
158
|
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
161
159
|
display: flex;
|
|
162
160
|
flex-direction: column;
|
|
163
|
-
gap:
|
|
161
|
+
gap: 1.25rem;
|
|
164
162
|
width: 100%;
|
|
165
163
|
height: 100%;
|
|
166
164
|
max-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, Fragment as w, jsxs as
|
|
1
|
+
import { jsx as t, Fragment as w, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
3
|
import b from "./Button.js";
|
|
4
4
|
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
@@ -140,23 +140,23 @@ const y = s.div`
|
|
|
140
140
|
onSelectCard: l = () => {
|
|
141
141
|
},
|
|
142
142
|
className: o,
|
|
143
|
-
position:
|
|
143
|
+
position: d,
|
|
144
144
|
tag: g,
|
|
145
145
|
backgroundColor: x
|
|
146
146
|
}, u) => {
|
|
147
147
|
const _ = v();
|
|
148
|
-
return /* @__PURE__ */ t(w, { children: /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ m(
|
|
149
149
|
y,
|
|
150
150
|
{
|
|
151
151
|
ref: u,
|
|
152
152
|
theme: _,
|
|
153
153
|
className: o,
|
|
154
|
-
position:
|
|
154
|
+
position: d,
|
|
155
155
|
backgroundColor: x,
|
|
156
156
|
onClick: l,
|
|
157
157
|
children: [
|
|
158
158
|
/* @__PURE__ */ t("img", { src: e, className: "wrapper__image" }),
|
|
159
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ m("div", { className: "wrapper__text", children: [
|
|
160
160
|
g && /* @__PURE__ */ t("div", { className: "text__tag", children: g }),
|
|
161
161
|
/* @__PURE__ */ t("div", { className: "text__title", children: r }),
|
|
162
162
|
h(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
|
|
@@ -197,8 +197,6 @@ const y = s.div`
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
@media (max-width: ${c + "px"}) {
|
|
200
|
-
gap: 1.25rem;
|
|
201
|
-
|
|
202
200
|
& .regular-title {
|
|
203
201
|
font-size: 1.375rem;
|
|
204
202
|
|
|
@@ -220,22 +218,22 @@ const y = s.div`
|
|
|
220
218
|
@media (max-width: ${c + "px"}) {
|
|
221
219
|
display: flex;
|
|
222
220
|
flex-direction: column;
|
|
223
|
-
gap:
|
|
221
|
+
gap: 1.25rem;
|
|
224
222
|
width: 100%;
|
|
225
223
|
height: 100%;
|
|
226
224
|
max-height: 100%;
|
|
227
225
|
}
|
|
228
226
|
`, I = f(
|
|
229
227
|
({ title: r, items: e, limit: i = 3, onSelectCard: a = () => {
|
|
230
|
-
} }, l) => /* @__PURE__ */
|
|
228
|
+
} }, l) => /* @__PURE__ */ m($, { ref: l, children: [
|
|
231
229
|
/* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
|
|
232
|
-
/* @__PURE__ */ t(N, { limit: i, children: e && (e == null ? void 0 : e.map((o,
|
|
230
|
+
/* @__PURE__ */ t(N, { limit: i, children: e && (e == null ? void 0 : e.map((o, d) => /* @__PURE__ */ t(
|
|
233
231
|
k,
|
|
234
232
|
{
|
|
235
233
|
...o,
|
|
236
234
|
onSelectCard: () => a(o)
|
|
237
235
|
},
|
|
238
|
-
`landing-page-masonry-general-card__${
|
|
236
|
+
`landing-page-masonry-general-card__${d + 1}`
|
|
239
237
|
))) })
|
|
240
238
|
] })
|
|
241
239
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const O=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),g=require("./CustomStyles-
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),g=require("./CustomStyles-BwHfr4iM.cjs"),h=require("./index-Cp66dWMi.cjs"),M=require("./Dropdown.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),r=s.forwardRef((n,l)=>{const{styles:p,debounceTime:t=0,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:i="small",color:a="primary",className:c="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((d,f)=>{o==null||o(d,f)},t));return O.jsx(M.default,{isMulti:!0,ref:l,styles:p||g.customStyles,size:i,color:a,theme:b,isSearchable:u,isClearable:y,className:c,style:T,...P,onInputChange:m})});r.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { P as e } from "./index-CblbdqjE.js";
|
|
3
3
|
import { forwardRef as y, useCallback as h } from "react";
|
|
4
|
-
import { a as M } from "./CustomStyles-
|
|
4
|
+
import { a as M } from "./CustomStyles-iconSXFL.js";
|
|
5
5
|
import { d as S } from "./index-Dt62UGku.js";
|
|
6
6
|
import C from "./Dropdown.js";
|
|
7
7
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const O=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),g=require("./CustomStyles-
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),g=require("./CustomStyles-BwHfr4iM.cjs"),h=require("./index-Cp66dWMi.cjs"),M=require("./DropdownLookup.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),r=s.forwardRef((n,l)=>{const{styles:p,debounceTime:t=0,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:a="small",color:i="primary",className:c="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((d,f)=>{o==null||o(d,f)},t));return O.jsx(M,{isMulti:!0,ref:l,styles:p||g.customStyles,size:a,color:i,theme:b,isSearchable:u,isClearable:y,onInputChange:m,className:c,style:T,...P})});r.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import { P as e } from "./index-CblbdqjE.js";
|
|
3
3
|
import { forwardRef as g, useCallback as h } from "react";
|
|
4
|
-
import { a as M } from "./CustomStyles-
|
|
4
|
+
import { a as M } from "./CustomStyles-iconSXFL.js";
|
|
5
5
|
import { d as S } from "./index-Dt62UGku.js";
|
|
6
6
|
import C from "./DropdownLookup.js";
|
|
7
7
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),y=require("./style-Db3VFbfP.cjs"),c=require("./utils-Dl9xPH4c.cjs"),N=require("./index-BueKsXT8.cjs"),$=f.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 22.5rem;
|
|
4
4
|
min-height: 22.5rem;
|
|
@@ -16,37 +16,30 @@
|
|
|
16
16
|
object-fit: cover;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@media (max-width: ${
|
|
19
|
+
@media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
|
|
20
20
|
height: 100%;
|
|
21
21
|
min-height: 100%;
|
|
22
22
|
max-height: 100%;
|
|
23
23
|
aspect-ratio: 1 / 1;
|
|
24
|
+
|
|
25
|
+
& .product-card {
|
|
26
|
+
& img {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
min-width: 100%;
|
|
30
|
+
min-height: 100%;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
24
33
|
}
|
|
25
|
-
`,
|
|
34
|
+
`,I=f.styled.div`
|
|
26
35
|
display: grid;
|
|
27
36
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
28
37
|
gap: 1.25rem;
|
|
29
38
|
|
|
30
|
-
@media (max-width: ${
|
|
31
|
-
|
|
32
|
-
gap: 1rem;
|
|
33
|
-
overflow-x: auto;
|
|
34
|
-
|
|
35
|
-
-webkit-overflow-scrolling: touch;
|
|
36
|
-
::-webkit-scrollbar {
|
|
37
|
-
-webkit-appearance: none;
|
|
38
|
-
}
|
|
39
|
-
-ms-overflow-style: none;
|
|
40
|
-
/* Internet Explorer 10+ */
|
|
41
|
-
scrollbar-width: none;
|
|
42
|
-
/* Firefox */
|
|
43
|
-
|
|
44
|
-
&::-webkit-scrollbar {
|
|
45
|
-
display: none;
|
|
46
|
-
/* Safari and Chrome */
|
|
47
|
-
}
|
|
39
|
+
@media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
|
|
40
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
48
41
|
}
|
|
49
|
-
`,
|
|
42
|
+
`,C=f.styled.div`
|
|
50
43
|
display: flex;
|
|
51
44
|
flex-direction: column;
|
|
52
45
|
gap: 0.5rem;
|
|
@@ -62,22 +55,22 @@
|
|
|
62
55
|
& .card-title {
|
|
63
56
|
font-size: 0.875rem;
|
|
64
57
|
font-weight: 600;
|
|
65
|
-
${
|
|
58
|
+
${c.truncateTextInRows(2)}
|
|
66
59
|
}
|
|
67
60
|
|
|
68
61
|
& .skeleton-img {
|
|
69
|
-
background-color: ${
|
|
62
|
+
background-color: ${c.linearGradientAnimation("-90deg")};
|
|
70
63
|
border-radius: 0.75rem;
|
|
71
64
|
border: 1px solid white;
|
|
72
65
|
}
|
|
73
66
|
|
|
74
67
|
& .skeleton-title {
|
|
75
|
-
background-color: ${
|
|
68
|
+
background-color: ${c.linearGradientAnimation("-90deg")};
|
|
76
69
|
width: 100%;
|
|
77
70
|
height: 1.25rem;
|
|
78
71
|
}
|
|
79
72
|
|
|
80
|
-
@media (max-width: ${
|
|
73
|
+
@media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
|
|
81
74
|
& img {
|
|
82
75
|
width: 8.875rem;
|
|
83
76
|
height: 8.875rem;
|
|
@@ -88,4 +81,4 @@
|
|
|
88
81
|
object-fit: cover;
|
|
89
82
|
}
|
|
90
83
|
}
|
|
91
|
-
`,
|
|
84
|
+
`,R=o.forwardRef((t,d)=>{const{uuid:a,title:i,image:s,sellerUuid:w,onSelectCard:l=()=>{},imageComponent:m,metadata:n}=t,u=o.useRef(null);return r.jsxs(C,{ref:u,className:"product-card",name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.accessor,onClick:g=>l(g,d),children:[c.isDefined(m)?m:r.jsx(N.ProductImageWrapper,{src:s}),r.jsx("div",{className:"card-title",children:i})]})}),_=o.forwardRef(({},t)=>r.jsxs(C,{className:"product-card",children:[r.jsx("img",{className:"skeleton-img"}),r.jsx("div",{className:"skeleton-title"})]})),q=({limit:t=4,isLoading:d=!1,keyPrefix:a})=>r.jsx(r.Fragment,{children:Array.from({length:t},(i,s)=>r.jsx(_,{isLoading:d},`${a}-skeleton-product-card-${s}`))}),M=({children:t,fallbackComponent:d=r.jsx(r.Fragment,{}),isLoading:a=!1,limit:i,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:d,children:a===!0?r.jsx(q,{isLoading:a,limit:i,keyPrefix:s}):t}),b=o.memo(R),U=o.forwardRef((t,d)=>{const{icon:a,items:i,limit:s=4,imageUrl:w,onSelectCard:l=()=>{},title:m="Season inspiration",isLoading:n=!1,getImage:u=()=>{},componentName:g}=t,S=v.useDetectMobile(),P=o.useMemo(()=>r.jsx(r.Fragment,{children:S===!0?i==null?void 0:i.map((e,h)=>r.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(k,p)=>l({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:p}),image:u(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:g,accessor:e==null?void 0:e.accessor}},h)):i==null?void 0:i.slice(0,s).map((e,h)=>r.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(k,p)=>l({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:p}),image:u(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:g,accessor:e==null?void 0:e.accessor}},h))}),[i,S,s]);return r.jsxs(y.RegulatTitleSectionWrapper,{ref:d,children:[r.jsx("div",{className:"regular-title",children:r.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(a)&&r.jsx("i",{className:a}),r.jsx("span",{children:m})]})}),r.jsx($,{className:"products-banner",children:r.jsx("img",{src:w})}),r.jsx(I,{limit:s,children:r.jsx(M,{isLoading:n,limit:s,keyPrefix:"explore-landing",children:P})})]})});module.exports=U;
|