@lanaco/lnc-react-ui 4.0.121 → 4.0.122
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/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +3 -3
- package/dist/BannerSectionSimple.cjs +40 -4
- package/dist/BannerSectionSimple.js +66 -29
- package/dist/BannerSectionWithList.cjs +42 -8
- package/dist/BannerSectionWithList.js +57 -22
- package/dist/BannerSectionWithListImage.cjs +23 -6
- package/dist/BannerSectionWithListImage.js +52 -35
- package/dist/BlogCardsSponsoredSection.cjs +13 -7
- package/dist/BlogCardsSponsoredSection.js +19 -13
- package/dist/BlogListSection.cjs +11 -3
- package/dist/BlogListSection.js +18 -10
- package/dist/BlogsSectionSimple.cjs +16 -7
- package/dist/BlogsSectionSimple.js +47 -32
- package/dist/BlogsSectionSimpleCentered.cjs +19 -10
- package/dist/BlogsSectionSimpleCentered.js +33 -24
- package/dist/FieldOfInterestsMasonrySection.cjs +22 -15
- package/dist/FieldOfInterestsMasonrySection.js +70 -63
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +9 -5
- package/dist/FieldOfInterestsWithTagsCardsSection.js +37 -33
- package/dist/OverlayGeneralCardsSection.cjs +5 -8
- package/dist/OverlayGeneralCardsSection.js +16 -19
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/{index-BaLBHyTh.cjs → index-CSgGox95.cjs} +6 -6
- package/dist/{index-CsrdUl1x.js → index-DK8dqEUQ.js} +5 -5
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as c, useLayoutEffect as
|
|
3
|
-
import { p as
|
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, useLayoutEffect as L } from "react";
|
|
3
|
+
import { p as z, o as E, l as O, k as S } from "./utils-BbgAIA9N.js";
|
|
4
4
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { M as
|
|
5
|
+
import { M as g } from "./consts-BuFChS64.js";
|
|
6
6
|
import A from "./Icon.js";
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
7
|
+
import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const T = m.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: fit-content;
|
|
@@ -44,7 +44,7 @@ const W = m.div`
|
|
|
44
44
|
font-style: normal;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
line-height: 1.5rem;
|
|
47
|
-
${
|
|
47
|
+
${z(2)}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
& .wrapper__description {
|
|
@@ -54,14 +54,27 @@ const W = m.div`
|
|
|
54
54
|
font-weight: 400;
|
|
55
55
|
line-height: 1rem;
|
|
56
56
|
letter-spacing: 0.025rem;
|
|
57
|
-
${
|
|
57
|
+
${z(2)}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (max-width: ${g + "px"}) {
|
|
62
|
+
& .wrapper__content {
|
|
63
|
+
& .wrapper__title {
|
|
64
|
+
font-size: 0.875rem;
|
|
65
|
+
line-height: 1.25rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
& .wrapper__description {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
58
71
|
}
|
|
59
72
|
}
|
|
60
73
|
`, j = m.div`
|
|
61
74
|
width: 100%;
|
|
62
75
|
height: 11.625rem;
|
|
63
76
|
border-radius: 0.75rem;
|
|
64
|
-
background: ${
|
|
77
|
+
background: ${E("-90deg")};
|
|
65
78
|
`, q = m.div`
|
|
66
79
|
display: flex;
|
|
67
80
|
flex-direction: column;
|
|
@@ -109,18 +122,16 @@ const W = m.div`
|
|
|
109
122
|
}
|
|
110
123
|
}
|
|
111
124
|
|
|
112
|
-
@media (max-width: ${
|
|
125
|
+
@media (max-width: ${g + "px"}) {
|
|
113
126
|
flex-direction: row;
|
|
114
127
|
align-items: center;
|
|
115
128
|
gap: 0.25rem;
|
|
116
129
|
border-radius: 999px;
|
|
117
|
-
width: 100%;
|
|
118
130
|
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
119
131
|
padding: 0 0.75rem;
|
|
120
132
|
|
|
121
133
|
&.active {
|
|
122
134
|
background: var(--gray-950, #14161a);
|
|
123
|
-
|
|
124
135
|
& .wrapper__icon {
|
|
125
136
|
background: transparent;
|
|
126
137
|
}
|
|
@@ -152,42 +163,42 @@ const W = m.div`
|
|
|
152
163
|
width: 7.5rem;
|
|
153
164
|
width: 7.5rem;
|
|
154
165
|
border-radius: 999px;
|
|
155
|
-
background: ${
|
|
166
|
+
background: ${E("-90deg")};
|
|
156
167
|
|
|
157
|
-
@media (max-width: ${
|
|
168
|
+
@media (max-width: ${g + "px"}) {
|
|
158
169
|
width: 7.5rem;
|
|
159
170
|
height: 2.5rem;
|
|
160
171
|
}
|
|
161
|
-
`, B = c(({},
|
|
162
|
-
({ text:
|
|
172
|
+
`, B = c(({}, i) => /* @__PURE__ */ r(R, {})), D = c(
|
|
173
|
+
({ text: i, isActive: o = !1, icon: t, onSelectCard: a = () => {
|
|
163
174
|
} }, f) => /* @__PURE__ */ l(q, { className: o ? "active" : "", onClick: a, children: [
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ r(A, { icon: t, className: "wrapper__icon" }),
|
|
176
|
+
/* @__PURE__ */ r("div", { className: "wrapper__text", children: i })
|
|
166
177
|
] })
|
|
167
178
|
), G = c(
|
|
168
179
|
({
|
|
169
|
-
image:
|
|
180
|
+
image: i,
|
|
170
181
|
imageComponent: o,
|
|
171
182
|
title: t,
|
|
172
183
|
description: a,
|
|
173
184
|
className: f,
|
|
174
|
-
onSelectCard:
|
|
185
|
+
onSelectCard: u = () => {
|
|
175
186
|
}
|
|
176
187
|
}, k) => {
|
|
177
|
-
const { theme:
|
|
178
|
-
return /* @__PURE__ */ l(
|
|
179
|
-
|
|
188
|
+
const { theme: x } = W();
|
|
189
|
+
return /* @__PURE__ */ l(T, { theme: x, className: f, onClick: u, children: [
|
|
190
|
+
O(o) ? o : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image" }),
|
|
180
191
|
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
181
|
-
t && /* @__PURE__ */
|
|
182
|
-
a && /* @__PURE__ */
|
|
192
|
+
t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
|
|
193
|
+
a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
|
|
183
194
|
] })
|
|
184
195
|
] });
|
|
185
196
|
}
|
|
186
|
-
), H = c(({},
|
|
187
|
-
/* @__PURE__ */
|
|
197
|
+
), H = c(({}, i) => /* @__PURE__ */ l(j, { children: [
|
|
198
|
+
/* @__PURE__ */ r("div", { className: "wrapper__image" }),
|
|
188
199
|
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ r("div", { className: "wrapper__title" }),
|
|
201
|
+
/* @__PURE__ */ r("div", { className: "wrapper__description" })
|
|
191
202
|
] })
|
|
192
203
|
] })), P = m.div`
|
|
193
204
|
display: flex;
|
|
@@ -230,15 +241,11 @@ const W = m.div`
|
|
|
230
241
|
justify-content: center;
|
|
231
242
|
align-items: center;
|
|
232
243
|
gap: 0.75rem;
|
|
233
|
-
|
|
234
|
-
grid-template-columns: ${(r) => `repeat(${r.numberOfTags || 0}, minmax(0, 7rem))`};
|
|
235
|
-
justify-content: center;
|
|
236
|
-
display: grid;
|
|
237
244
|
}
|
|
238
245
|
|
|
239
246
|
& .wrapper__cards {
|
|
240
247
|
display: grid;
|
|
241
|
-
grid-template-columns: ${(
|
|
248
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(12.5rem, 1fr))`};
|
|
242
249
|
grid-auto-rows: 0.625rem;
|
|
243
250
|
gap: 0.625rem;
|
|
244
251
|
width: 100%;
|
|
@@ -249,7 +256,7 @@ const W = m.div`
|
|
|
249
256
|
}
|
|
250
257
|
}
|
|
251
258
|
|
|
252
|
-
@media (max-width: ${
|
|
259
|
+
@media (max-width: ${g + "px"}) {
|
|
253
260
|
& .wrapper__tags {
|
|
254
261
|
overflow-x: scroll;
|
|
255
262
|
justify-content: flex-start;
|
|
@@ -271,28 +278,28 @@ const W = m.div`
|
|
|
271
278
|
}
|
|
272
279
|
|
|
273
280
|
& .wrapper__cards {
|
|
274
|
-
grid-template-columns: ${(
|
|
281
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
275
282
|
}
|
|
276
283
|
}
|
|
277
284
|
`, Y = c(
|
|
278
285
|
({
|
|
279
|
-
title:
|
|
286
|
+
title: i,
|
|
280
287
|
subtitle: o,
|
|
281
288
|
tags: t = [],
|
|
282
289
|
items: a = [],
|
|
283
290
|
limitTags: f = 5,
|
|
284
|
-
limitTagsForMobile:
|
|
291
|
+
limitTagsForMobile: u = 5,
|
|
285
292
|
limit: k = 3,
|
|
286
|
-
limitForMobile:
|
|
287
|
-
selectedTag:
|
|
288
|
-
onSelectTag:
|
|
293
|
+
limitForMobile: x = 2,
|
|
294
|
+
selectedTag: I,
|
|
295
|
+
onSelectTag: v = () => {
|
|
289
296
|
},
|
|
290
|
-
onSelectCard:
|
|
297
|
+
onSelectCard: y = () => {
|
|
291
298
|
},
|
|
292
299
|
className: s
|
|
293
300
|
}, C) => {
|
|
294
301
|
var $, N;
|
|
295
|
-
return
|
|
302
|
+
return L(() => {
|
|
296
303
|
if (!S(s))
|
|
297
304
|
return;
|
|
298
305
|
const e = () => {
|
|
@@ -301,18 +308,18 @@ const W = m.div`
|
|
|
301
308
|
const M = w.getBoundingClientRect().height, F = Math.ceil((M + 10) / 20);
|
|
302
309
|
w.style.gridRowEnd = `span ${F}`;
|
|
303
310
|
});
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
306
|
-
const w =
|
|
311
|
+
const b = d == null ? void 0 : d[d.length - 1];
|
|
312
|
+
if (b) {
|
|
313
|
+
const w = b.offsetTop + b.offsetHeight;
|
|
307
314
|
p.style.height = `${w}px`;
|
|
308
315
|
}
|
|
309
|
-
},
|
|
310
|
-
let
|
|
311
|
-
return
|
|
312
|
-
p.complete ?
|
|
313
|
-
|
|
316
|
+
}, _ = document.querySelector(`.${s} .wrapper__cards`).querySelectorAll(".wrapper__image");
|
|
317
|
+
let h = 0;
|
|
318
|
+
return _.length === 0 ? e() : (_.forEach((p) => {
|
|
319
|
+
p.complete ? h++ : p.addEventListener("load", () => {
|
|
320
|
+
h++, h === _.length && e();
|
|
314
321
|
});
|
|
315
|
-
}),
|
|
322
|
+
}), h === _.length && e()), window.addEventListener("resize", e), () => {
|
|
316
323
|
window.removeEventListener("resize", e);
|
|
317
324
|
};
|
|
318
325
|
}, [s, a]), /* @__PURE__ */ l(
|
|
@@ -320,42 +327,42 @@ const W = m.div`
|
|
|
320
327
|
{
|
|
321
328
|
ref: C,
|
|
322
329
|
limitTags: f,
|
|
323
|
-
limitTagsForMobile:
|
|
330
|
+
limitTagsForMobile: u,
|
|
324
331
|
limitCards: k,
|
|
325
|
-
limitCardsForMobile:
|
|
332
|
+
limitCardsForMobile: x,
|
|
326
333
|
className: s,
|
|
327
334
|
numberOfTags: t == null ? void 0 : t.length,
|
|
328
335
|
children: [
|
|
329
336
|
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
330
|
-
|
|
331
|
-
o && /* @__PURE__ */
|
|
337
|
+
i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
338
|
+
o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
|
|
332
339
|
] }),
|
|
333
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ r(
|
|
334
341
|
D,
|
|
335
342
|
{
|
|
336
343
|
icon: e == null ? void 0 : e.icon,
|
|
337
344
|
text: e == null ? void 0 : e.title,
|
|
338
|
-
isActive: (e == null ? void 0 : e.code) ===
|
|
339
|
-
onSelectCard: () =>
|
|
345
|
+
isActive: (e == null ? void 0 : e.code) === I,
|
|
346
|
+
onSelectCard: () => v == null ? void 0 : v(e)
|
|
340
347
|
},
|
|
341
348
|
`field-of-interests-masonry-tag__${n + 1}`
|
|
342
|
-
)) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */
|
|
349
|
+
)) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ r(
|
|
343
350
|
B,
|
|
344
351
|
{},
|
|
345
352
|
`field-of-interests-masonry-tag-skeleton__${n + 1}`
|
|
346
353
|
)) }) }),
|
|
347
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ r(
|
|
348
355
|
G,
|
|
349
356
|
{
|
|
350
357
|
image: e == null ? void 0 : e.image,
|
|
351
358
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
352
359
|
title: e == null ? void 0 : e.title,
|
|
353
360
|
description: e == null ? void 0 : e.description,
|
|
354
|
-
onSelectCard: () =>
|
|
361
|
+
onSelectCard: () => y == null ? void 0 : y(e),
|
|
355
362
|
className: "wrapper__card"
|
|
356
363
|
},
|
|
357
364
|
`field-of-interests-with-tags-card__${n + 1}`
|
|
358
|
-
)) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */
|
|
365
|
+
)) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ r(
|
|
359
366
|
H,
|
|
360
367
|
{},
|
|
361
368
|
`field-of-interests-with-tags-card-skeleton__${n + 1}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs")
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),y=require("./consts-goSZX3xP.cjs"),I=require("./Icon.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=p.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
${o.truncateTextInRows(2)}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
cursor: pointer;
|
|
52
52
|
`,W=p.styled.div`
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 11.625rem;
|
|
@@ -104,12 +104,16 @@
|
|
|
104
104
|
color: var(--white, #fff);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
+
|
|
108
|
+
@media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
|
|
109
|
+
min-width: fit-content;
|
|
110
|
+
}
|
|
107
111
|
`,R=p.styled.div`
|
|
108
112
|
width: 7rem;
|
|
109
113
|
height: 3rem;
|
|
110
114
|
border-radius: 999px;
|
|
111
115
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
112
|
-
`,q=l.forwardRef(({},i)=>r.jsx(R,{})),
|
|
116
|
+
`,q=l.forwardRef(({},i)=>r.jsx(R,{})),E=l.forwardRef(({name:i,isActive:s,icon:t,onSelectCard:a=()=>{}},m)=>r.jsxs(F,{className:s?"active":"",onClick:a,children:[o.isDefinedNotEmptyString(t)&&r.jsx(I,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:s,name:t,description:a,onSelectCard:m=()=>{}},g)=>{const{theme:d}=N.useTheme();return r.jsxs(C,{theme:d,onClick:m,children:[o.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),z=l.forwardRef(({},i)=>r.jsx(W,{})),A=p.styled.div`
|
|
113
117
|
display: flex;
|
|
114
118
|
flex-direction: column;
|
|
115
119
|
align-items: center;
|
|
@@ -157,7 +161,7 @@
|
|
|
157
161
|
width: 100%;
|
|
158
162
|
}
|
|
159
163
|
|
|
160
|
-
@media (max-width: ${
|
|
164
|
+
@media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
|
|
161
165
|
& .wrapper__tags {
|
|
162
166
|
overflow-x: scroll;
|
|
163
167
|
justify-content: flex-start;
|
|
@@ -183,4 +187,4 @@
|
|
|
183
187
|
gap: 1rem;
|
|
184
188
|
}
|
|
185
189
|
}
|
|
186
|
-
`,
|
|
190
|
+
`,M=l.forwardRef(({title:i,subtitle:s,tags:t=[],limitTags:a=7,limitTagsForMobile:m=7,limit:g=3,limitForMobile:d=2,items:f=[],selectedTag:c,isLoadingTags:b=!1,isLoadingItems:j=!1,onSelectTag:_=()=>{},onSelectCard:h=()=>{},getImage:k=()=>{}},$)=>{var u,v;const w=e=>{_==null||_(e)},x=e=>{h==null||h(e)};return r.jsxs(A,{ref:$,limitTags:a,limitTagsForMobile:m,limitCards:g,limitCardsForMobile:d,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:b?(u=Array.from("123"))==null?void 0:u.map((e,n)=>r.jsx(q,{},`field-of-interests-with-tags-card-tag-skeleton__${n+1}`)):t==null?void 0:t.map((e,n)=>r.jsx(E,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,isActive:(e==null?void 0:e.uuid)===(c==null?void 0:c.uuid),onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card-tag__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:j?(v=Array.from("123"))==null?void 0:v.map((e,n)=>r.jsx(z,{},`field-of-interests-with-tags-card-skeleton__${n+1}`)):f==null?void 0:f.map((e,n)=>r.jsx(O,{image:k(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid),imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.name,description:(e==null?void 0:e.description)||(e==null?void 0:e.shortDescription),onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-with-tags-card__${n+1}`))})]})});module.exports=M;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { p as y, o as b, k as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { p as y, o as b, k as W, l as F } from "./utils-BbgAIA9N.js";
|
|
5
|
+
import { M as k } from "./consts-BuFChS64.js";
|
|
6
|
+
import j from "./Icon.js";
|
|
7
|
+
import { u as z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const O = p.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
@@ -55,7 +55,7 @@ const O = p.div`
|
|
|
55
55
|
${y(2)}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
cursor: pointer;
|
|
59
59
|
`, A = p.div`
|
|
60
60
|
width: 100%;
|
|
61
61
|
height: 11.625rem;
|
|
@@ -111,26 +111,30 @@ const O = p.div`
|
|
|
111
111
|
color: var(--white, #fff);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
|
|
115
|
+
@media (max-width: ${k + "px"}) {
|
|
116
|
+
min-width: fit-content;
|
|
117
|
+
}
|
|
114
118
|
`, M = p.div`
|
|
115
119
|
width: 7rem;
|
|
116
120
|
height: 3rem;
|
|
117
121
|
border-radius: 999px;
|
|
118
122
|
background: ${b("-90deg")};
|
|
119
123
|
`, D = l(({}, r) => /* @__PURE__ */ i(M, {})), G = l(
|
|
120
|
-
({ name: r, isActive: n, icon: t, onSelectCard:
|
|
121
|
-
} }, m) => /* @__PURE__ */
|
|
122
|
-
|
|
124
|
+
({ name: r, isActive: n, icon: t, onSelectCard: o = () => {
|
|
125
|
+
} }, m) => /* @__PURE__ */ s(E, { className: n ? "active" : "", onClick: o, children: [
|
|
126
|
+
W(t) && /* @__PURE__ */ i(j, { icon: t, className: "wrapper__icon" }),
|
|
123
127
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
124
128
|
] })
|
|
125
129
|
), L = l(
|
|
126
|
-
({ image: r, imageComponent: n, name: t, description:
|
|
130
|
+
({ image: r, imageComponent: n, name: t, description: o, onSelectCard: m = () => {
|
|
127
131
|
} }, u) => {
|
|
128
|
-
const { theme: f } =
|
|
129
|
-
return /* @__PURE__ */
|
|
130
|
-
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
+
const { theme: f } = z();
|
|
133
|
+
return /* @__PURE__ */ s(O, { theme: f, onClick: m, children: [
|
|
134
|
+
F(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
135
|
+
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
132
136
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
133
|
-
|
|
137
|
+
o && /* @__PURE__ */ i("div", { className: "wrapper__description", children: o })
|
|
134
138
|
] })
|
|
135
139
|
] });
|
|
136
140
|
}
|
|
@@ -182,7 +186,7 @@ const O = p.div`
|
|
|
182
186
|
width: 100%;
|
|
183
187
|
}
|
|
184
188
|
|
|
185
|
-
@media (max-width: ${
|
|
189
|
+
@media (max-width: ${k + "px"}) {
|
|
186
190
|
& .wrapper__tags {
|
|
187
191
|
overflow-x: scroll;
|
|
188
192
|
justify-content: flex-start;
|
|
@@ -213,41 +217,41 @@ const O = p.div`
|
|
|
213
217
|
title: r,
|
|
214
218
|
subtitle: n,
|
|
215
219
|
tags: t = [],
|
|
216
|
-
limitTags:
|
|
220
|
+
limitTags: o = 7,
|
|
217
221
|
limitTagsForMobile: m = 7,
|
|
218
222
|
limit: u = 3,
|
|
219
223
|
limitForMobile: f = 2,
|
|
220
224
|
items: d = [],
|
|
221
225
|
selectedTag: c,
|
|
222
|
-
isLoadingTags:
|
|
223
|
-
isLoadingItems:
|
|
226
|
+
isLoadingTags: $ = !1,
|
|
227
|
+
isLoadingItems: N = !1,
|
|
224
228
|
onSelectTag: h = () => {
|
|
225
229
|
},
|
|
226
230
|
onSelectCard: _ = () => {
|
|
227
231
|
},
|
|
228
|
-
getImage:
|
|
232
|
+
getImage: C = () => {
|
|
229
233
|
}
|
|
230
|
-
},
|
|
234
|
+
}, I) => {
|
|
231
235
|
var x, v;
|
|
232
|
-
const
|
|
236
|
+
const w = (e) => {
|
|
233
237
|
h == null || h(e);
|
|
234
|
-
},
|
|
238
|
+
}, g = (e) => {
|
|
235
239
|
_ == null || _(e);
|
|
236
240
|
};
|
|
237
|
-
return /* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ s(
|
|
238
242
|
T,
|
|
239
243
|
{
|
|
240
|
-
ref:
|
|
241
|
-
limitTags:
|
|
244
|
+
ref: I,
|
|
245
|
+
limitTags: o,
|
|
242
246
|
limitTagsForMobile: m,
|
|
243
247
|
limitCards: u,
|
|
244
248
|
limitCardsForMobile: f,
|
|
245
249
|
children: [
|
|
246
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
247
251
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
248
252
|
n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
|
|
249
253
|
] }),
|
|
250
|
-
/* @__PURE__ */ i("div", { className: "wrapper__tags", children:
|
|
254
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: $ ? (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
|
|
251
255
|
D,
|
|
252
256
|
{},
|
|
253
257
|
`field-of-interests-with-tags-card-tag-skeleton__${a + 1}`
|
|
@@ -257,22 +261,22 @@ const O = p.div`
|
|
|
257
261
|
icon: e == null ? void 0 : e.icon,
|
|
258
262
|
name: e == null ? void 0 : e.name,
|
|
259
263
|
isActive: (e == null ? void 0 : e.uuid) === (c == null ? void 0 : c.uuid),
|
|
260
|
-
onSelectCard: () =>
|
|
264
|
+
onSelectCard: () => w == null ? void 0 : w(e)
|
|
261
265
|
},
|
|
262
266
|
`field-of-interests-with-tags-card-tag__${a + 1}`
|
|
263
267
|
)) }),
|
|
264
|
-
/* @__PURE__ */ i("div", { className: "wrapper__cards", children:
|
|
268
|
+
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: N ? (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ i(
|
|
265
269
|
R,
|
|
266
270
|
{},
|
|
267
271
|
`field-of-interests-with-tags-card-skeleton__${a + 1}`
|
|
268
272
|
)) : d == null ? void 0 : d.map((e, a) => /* @__PURE__ */ i(
|
|
269
273
|
L,
|
|
270
274
|
{
|
|
271
|
-
image:
|
|
275
|
+
image: C(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
|
|
272
276
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
273
277
|
name: e == null ? void 0 : e.name,
|
|
274
|
-
description: (e == null ? void 0 : e.
|
|
275
|
-
onSelectCard: () =>
|
|
278
|
+
description: (e == null ? void 0 : e.description) || (e == null ? void 0 : e.shortDescription),
|
|
279
|
+
onSelectCard: () => g == null ? void 0 : g(e)
|
|
276
280
|
},
|
|
277
281
|
`field-of-interests-with-tags-card__${a + 1}`
|
|
278
282
|
)) })
|
|
@@ -21,8 +21,12 @@
|
|
|
21
21
|
& img {
|
|
22
22
|
transition: var(--transition, all 0.3s ease);
|
|
23
23
|
overflow: hidden;
|
|
24
|
+
scale: 1.1;
|
|
25
|
+
aspect-ratio: 1 / 1;
|
|
26
|
+
mix-blend-mode: multiply;
|
|
27
|
+
width: 100%;
|
|
28
|
+
object-fit: cover;
|
|
24
29
|
}
|
|
25
|
-
overflow: hidden;
|
|
26
30
|
|
|
27
31
|
&:hover {
|
|
28
32
|
& img {
|
|
@@ -68,13 +72,6 @@
|
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
& img {
|
|
72
|
-
aspect-ratio: 1 / 1;
|
|
73
|
-
mix-blend-mode: multiply;
|
|
74
|
-
width: 100%;
|
|
75
|
-
object-fit: cover;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
75
|
& .img-skeleton {
|
|
79
76
|
background-color: ${u.linearGradientAnimation("-90deg")};
|
|
80
77
|
min-height: 28.75rem;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as r, Fragment as p, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, Suspense as m } from "react";
|
|
3
3
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as h } from "./consts-BuFChS64.js";
|
|
5
5
|
import { R as v } from "./style-08foMKSd.js";
|
|
6
|
-
import { p as x, o as y, k
|
|
7
|
-
import
|
|
6
|
+
import { p as x, o as y, k } from "./utils-BbgAIA9N.js";
|
|
7
|
+
import w from "./Button.js";
|
|
8
8
|
import { useTheme as b } from "./ThemeProvider.js";
|
|
9
9
|
const $ = f.div`
|
|
10
10
|
display: grid;
|
|
@@ -29,8 +29,12 @@ const $ = f.div`
|
|
|
29
29
|
& img {
|
|
30
30
|
transition: var(--transition, all 0.3s ease);
|
|
31
31
|
overflow: hidden;
|
|
32
|
+
scale: 1.1;
|
|
33
|
+
aspect-ratio: 1 / 1;
|
|
34
|
+
mix-blend-mode: multiply;
|
|
35
|
+
width: 100%;
|
|
36
|
+
object-fit: cover;
|
|
32
37
|
}
|
|
33
|
-
overflow: hidden;
|
|
34
38
|
|
|
35
39
|
&:hover {
|
|
36
40
|
& img {
|
|
@@ -76,13 +80,6 @@ const $ = f.div`
|
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
& img {
|
|
80
|
-
aspect-ratio: 1 / 1;
|
|
81
|
-
mix-blend-mode: multiply;
|
|
82
|
-
width: 100%;
|
|
83
|
-
object-fit: cover;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
83
|
& .img-skeleton {
|
|
87
84
|
background-color: ${y("-90deg")};
|
|
88
85
|
min-height: 28.75rem;
|
|
@@ -96,7 +93,7 @@ const $ = f.div`
|
|
|
96
93
|
max-height: 28.75rem;
|
|
97
94
|
}
|
|
98
95
|
}
|
|
99
|
-
`, C =
|
|
96
|
+
`, C = g(({}, n) => /* @__PURE__ */ r(u, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), N = ({ limit: n = 2, isLoading: o = !1, keyPrefix: t }) => /* @__PURE__ */ r(p, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
|
|
100
97
|
C,
|
|
101
98
|
{
|
|
102
99
|
isLoading: o
|
|
@@ -104,7 +101,7 @@ const $ = f.div`
|
|
|
104
101
|
`${t}-skeleton-product-card-${a}`
|
|
105
102
|
)) }), S = ({
|
|
106
103
|
children: n,
|
|
107
|
-
fallbackComponent: o = /* @__PURE__ */ r(
|
|
104
|
+
fallbackComponent: o = /* @__PURE__ */ r(p, {}),
|
|
108
105
|
isLoading: t = !1,
|
|
109
106
|
limit: l,
|
|
110
107
|
keyPrefix: a
|
|
@@ -115,7 +112,7 @@ const $ = f.div`
|
|
|
115
112
|
limit: l,
|
|
116
113
|
keyPrefix: a
|
|
117
114
|
}
|
|
118
|
-
) : n }), _ =
|
|
115
|
+
) : n }), _ = g(
|
|
119
116
|
({
|
|
120
117
|
title: n,
|
|
121
118
|
image: o,
|
|
@@ -128,7 +125,7 @@ const $ = f.div`
|
|
|
128
125
|
}
|
|
129
126
|
}, e) => {
|
|
130
127
|
const { theme: s } = b();
|
|
131
|
-
return /* @__PURE__ */ r(
|
|
128
|
+
return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(
|
|
132
129
|
u,
|
|
133
130
|
{
|
|
134
131
|
ref: e,
|
|
@@ -142,8 +139,8 @@ const $ = f.div`
|
|
|
142
139
|
/* @__PURE__ */ r("div", { children: n }),
|
|
143
140
|
/* @__PURE__ */ r("div", { className: "content-text-title", children: l })
|
|
144
141
|
] }),
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
k(a) && /* @__PURE__ */ r(
|
|
143
|
+
w,
|
|
147
144
|
{
|
|
148
145
|
text: a,
|
|
149
146
|
onClick: d,
|
|
@@ -157,7 +154,7 @@ const $ = f.div`
|
|
|
157
154
|
}
|
|
158
155
|
) });
|
|
159
156
|
}
|
|
160
|
-
), E =
|
|
157
|
+
), E = g(
|
|
161
158
|
({
|
|
162
159
|
title: n,
|
|
163
160
|
items: o,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),n=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),M=require("./consts-goSZX3xP.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./index-B_HNDmXL.cjs"),N=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),n=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),M=require("./consts-goSZX3xP.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./index-B_HNDmXL.cjs"),N=require("./index-CSgGox95.cjs"),v=require("./suspense-product-card-simple-CJwnghtt.cjs"),T=k.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: repeat(6, 1fr);
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -4,7 +4,7 @@ import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
4
4
|
import { M as B } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { S as L } from "./index-B2pFbNKc.js";
|
|
7
|
-
import { T as j } from "./index-
|
|
7
|
+
import { T as j } from "./index-DK8dqEUQ.js";
|
|
8
8
|
import { S as z } from "./suspense-product-card-simple-Z-FddSb-.js";
|
|
9
9
|
const C = v.div`
|
|
10
10
|
display: grid;
|