@lanaco/lnc-react-ui 4.0.130 → 4.0.132
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/BannerSectionCarousel.cjs +12 -8
- package/dist/BannerSectionCarousel.js +14 -10
- package/dist/BlogCardsSponsoredSection.cjs +7 -20
- package/dist/BlogCardsSponsoredSection.js +70 -99
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +198 -192
- package/dist/BlogListSection.cjs +4 -18
- package/dist/BlogListSection.js +70 -93
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +2 -5
- package/dist/BlogsSectionDetailed.js +22 -25
- package/dist/BlogsSectionLarge.js +1 -1
- package/dist/BlogsSectionSimple.cjs +14 -7
- package/dist/BlogsSectionSimple.js +83 -72
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-EE-IJbC3.js → index-DJ545v7b.js} +1 -7
- package/dist/{suspense-product-card-detailed-Crkoym56.js → suspense-product-card-detailed-BP1opdKD.js} +70 -57
- package/dist/suspense-product-card-detailed-D0jNIBlf.cjs +131 -0
- package/package.json +1 -1
- package/dist/suspense-product-card-detailed-ByW7-U8H.cjs +0 -118
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsxs as l, jsx as n, Fragment as J } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as L } from "react";
|
|
3
3
|
import { P as e } from "./index-CblbdqjE.js";
|
|
4
4
|
import { p as K, s as Q } from "./utils-BPdU4_1q.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { F as
|
|
11
|
-
import
|
|
12
|
-
import { s as
|
|
5
|
+
import Y from "./TextInput.js";
|
|
6
|
+
import k from "./Icon.js";
|
|
7
|
+
import B from "./Link.js";
|
|
8
|
+
import $ from "./DropdownMenu.js";
|
|
9
|
+
import A from "./DropdownItem.js";
|
|
10
|
+
import { F as O } from "./tag-CtleOqEC.js";
|
|
11
|
+
import P from "./BlogProductCardsSection.js";
|
|
12
|
+
import { s as j } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
13
|
+
import { P as ee } from "./index-3TFXgZHA.js";
|
|
13
14
|
import z from "./BlogListSection.js";
|
|
14
|
-
import { M as
|
|
15
|
-
const
|
|
15
|
+
import { M as ne } from "./consts-BuFChS64.js";
|
|
16
|
+
const te = j.div`
|
|
16
17
|
display: flex;
|
|
17
18
|
justify-content: space-between;
|
|
18
19
|
align-items: center;
|
|
@@ -93,9 +94,9 @@ const ee = A.div`
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
`,
|
|
97
|
+
`, re = L(
|
|
97
98
|
({
|
|
98
|
-
perPageOptions:
|
|
99
|
+
perPageOptions: c = [
|
|
99
100
|
{ code: 10, name: "Show 10 items" },
|
|
100
101
|
{ code: 25, name: "Show 25 items" },
|
|
101
102
|
{ code: 50, name: "Show 50 items" }
|
|
@@ -103,24 +104,24 @@ const ee = A.div`
|
|
|
103
104
|
perPage: f,
|
|
104
105
|
handlePerPage: u = () => {
|
|
105
106
|
},
|
|
106
|
-
page:
|
|
107
|
+
page: o = 1,
|
|
107
108
|
handlePage: s = () => {
|
|
108
109
|
},
|
|
109
110
|
totalPage: t
|
|
110
111
|
}, m) => {
|
|
111
|
-
var
|
|
112
|
-
const
|
|
113
|
-
|
|
112
|
+
var h, d;
|
|
113
|
+
const _ = () => {
|
|
114
|
+
o > 1 && (s == null || s(o - 1));
|
|
114
115
|
}, g = () => {
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
const
|
|
116
|
+
o < t && (s == null || s(o + 1));
|
|
117
|
+
}, x = () => {
|
|
118
|
+
const i = [];
|
|
118
119
|
if (t <= 7)
|
|
119
120
|
for (let a = 1; a <= t; a++)
|
|
120
|
-
|
|
121
|
+
i.push(a);
|
|
121
122
|
else
|
|
122
|
-
|
|
123
|
-
return
|
|
123
|
+
o <= 3 ? i.push(1, 2, 3, "...", t) : o >= t - 2 ? i.push(1, "...", t - 2, t - 1, t) : i.push(1, 2, 3, "...", t);
|
|
124
|
+
return i == null ? void 0 : i.map((a, p) => a === "..." ? /* @__PURE__ */ n(
|
|
124
125
|
"div",
|
|
125
126
|
{
|
|
126
127
|
className: "pagination__page ellipsis",
|
|
@@ -131,28 +132,28 @@ const ee = A.div`
|
|
|
131
132
|
"div",
|
|
132
133
|
{
|
|
133
134
|
onClick: () => s(a),
|
|
134
|
-
className: `pagination__page ${
|
|
135
|
+
className: `pagination__page ${o === a ? "active" : ""}`,
|
|
135
136
|
children: a
|
|
136
137
|
},
|
|
137
138
|
`pagination-page__${p}`
|
|
138
139
|
));
|
|
139
140
|
};
|
|
140
|
-
return /* @__PURE__ */ l(
|
|
141
|
+
return /* @__PURE__ */ l(te, { className: "pagination", children: [
|
|
141
142
|
/* @__PURE__ */ n(
|
|
142
|
-
|
|
143
|
+
$,
|
|
143
144
|
{
|
|
144
145
|
color: "neutral",
|
|
145
|
-
control: ((
|
|
146
|
+
control: ((h = c == null ? void 0 : c.find((i) => (i == null ? void 0 : i.code) === f)) == null ? void 0 : h.name) || ((d = c[0]) == null ? void 0 : d.name),
|
|
146
147
|
placement: "bottom",
|
|
147
148
|
zIndex: 1001,
|
|
148
149
|
className: "pagination__per-page",
|
|
149
|
-
children:
|
|
150
|
-
|
|
150
|
+
children: c == null ? void 0 : c.map((i, a) => /* @__PURE__ */ n(
|
|
151
|
+
A,
|
|
151
152
|
{
|
|
152
|
-
active: (
|
|
153
|
+
active: (i == null ? void 0 : i.code) === (f == null ? void 0 : f.code),
|
|
153
154
|
className: "sort-by__item",
|
|
154
|
-
onClick: () => u(
|
|
155
|
-
children:
|
|
155
|
+
onClick: () => u(i),
|
|
156
|
+
children: i == null ? void 0 : i.name
|
|
156
157
|
},
|
|
157
158
|
`blog-epxlore-section-per-page-option__${a + 1}`
|
|
158
159
|
))
|
|
@@ -162,24 +163,24 @@ const ee = A.div`
|
|
|
162
163
|
/* @__PURE__ */ n(
|
|
163
164
|
"div",
|
|
164
165
|
{
|
|
165
|
-
className: `pagination__page ${
|
|
166
|
-
onClick:
|
|
167
|
-
children: /* @__PURE__ */ n(
|
|
166
|
+
className: `pagination__page ${o === 1 ? "disabled" : ""}`,
|
|
167
|
+
onClick: _,
|
|
168
|
+
children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--left" })
|
|
168
169
|
}
|
|
169
170
|
),
|
|
170
|
-
|
|
171
|
+
x(),
|
|
171
172
|
/* @__PURE__ */ n(
|
|
172
173
|
"div",
|
|
173
174
|
{
|
|
174
|
-
className: `pagination__page ${
|
|
175
|
+
className: `pagination__page ${o === t ? "disabled" : ""}`,
|
|
175
176
|
onClick: g,
|
|
176
|
-
children: /* @__PURE__ */ n(
|
|
177
|
+
children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--right" })
|
|
177
178
|
}
|
|
178
179
|
)
|
|
179
180
|
] })
|
|
180
181
|
] });
|
|
181
182
|
}
|
|
182
|
-
),
|
|
183
|
+
), ie = j.div`
|
|
183
184
|
display: flex;
|
|
184
185
|
align-items: flex-start;
|
|
185
186
|
gap: 2rem;
|
|
@@ -370,7 +371,7 @@ const ee = A.div`
|
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
|
|
373
|
-
@media (max-width: ${
|
|
374
|
+
@media (max-width: ${ne + "px"}) {
|
|
374
375
|
flex-direction: column;
|
|
375
376
|
|
|
376
377
|
& .landing__main-content {
|
|
@@ -417,194 +418,199 @@ const ee = A.div`
|
|
|
417
418
|
display: none;
|
|
418
419
|
}
|
|
419
420
|
}
|
|
420
|
-
`,
|
|
421
|
+
`, ae = L(
|
|
421
422
|
({
|
|
422
|
-
mainTitle:
|
|
423
|
+
mainTitle: c,
|
|
423
424
|
sideTitle: f,
|
|
424
425
|
tags: u,
|
|
425
|
-
selectedTag:
|
|
426
|
+
selectedTag: o,
|
|
426
427
|
handleSelectTag: s = () => {
|
|
427
428
|
},
|
|
428
429
|
blogs: t,
|
|
429
430
|
miniBlogs: m,
|
|
430
|
-
products:
|
|
431
|
+
products: _,
|
|
431
432
|
blogsLoading: g = !1,
|
|
432
|
-
productsLoading:
|
|
433
|
-
sortingOptions:
|
|
433
|
+
productsLoading: x = !1,
|
|
434
|
+
sortingOptions: h,
|
|
434
435
|
sortBy: d,
|
|
435
|
-
handleSortBy:
|
|
436
|
+
handleSortBy: i = () => {
|
|
436
437
|
},
|
|
437
438
|
allTagText: a = "All",
|
|
438
439
|
searchPlaceholderText: p = "Search blogs",
|
|
439
|
-
timeToReadText:
|
|
440
|
-
getBlogImageUrl:
|
|
440
|
+
timeToReadText: S = "{0} min read",
|
|
441
|
+
getBlogImageUrl: y = () => {
|
|
441
442
|
},
|
|
442
|
-
handleSelectBlog:
|
|
443
|
+
handleSelectBlog: w = () => {
|
|
443
444
|
},
|
|
444
|
-
handleSelectBlogTag:
|
|
445
|
+
handleSelectBlogTag: T = () => {
|
|
445
446
|
},
|
|
446
|
-
handleShareBlog:
|
|
447
|
+
handleShareBlog: C = () => {
|
|
447
448
|
},
|
|
448
|
-
handleBookmarkBlog:
|
|
449
|
+
handleBookmarkBlog: I = () => {
|
|
449
450
|
},
|
|
450
|
-
showAllButtonLink:
|
|
451
|
+
showAllButtonLink: E,
|
|
451
452
|
showAllButtonText: M = "Show all products",
|
|
452
453
|
viewAllButtonText: D = "View all (11)",
|
|
453
|
-
viewAllButtonLink:
|
|
454
|
-
handleViewAll:
|
|
454
|
+
viewAllButtonLink: oe,
|
|
455
|
+
handleViewAll: F = () => {
|
|
455
456
|
},
|
|
456
|
-
handleShowAll:
|
|
457
|
+
handleShowAll: R = () => {
|
|
457
458
|
},
|
|
458
|
-
handleSelectProduct:
|
|
459
|
+
handleSelectProduct: U = () => {
|
|
459
460
|
},
|
|
460
|
-
getProductImageUrl:
|
|
461
|
+
getProductImageUrl: V = () => {
|
|
461
462
|
},
|
|
462
463
|
page: q,
|
|
463
|
-
handlePage:
|
|
464
|
+
handlePage: b = () => {
|
|
464
465
|
},
|
|
465
|
-
perPage:
|
|
466
|
-
handlePerPage:
|
|
466
|
+
perPage: H,
|
|
467
|
+
handlePerPage: W = () => {
|
|
467
468
|
},
|
|
468
|
-
totalPage:
|
|
469
|
-
perPageOptions:
|
|
470
|
-
handleSearch:
|
|
469
|
+
totalPage: N,
|
|
470
|
+
perPageOptions: X,
|
|
471
|
+
handleSearch: Z = () => {
|
|
471
472
|
}
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
selectedTagCode: c,
|
|
481
|
-
onSelectTag: s
|
|
482
|
-
}
|
|
483
|
-
),
|
|
484
|
-
/* @__PURE__ */ l("div", { className: "main-content__actions", children: [
|
|
485
|
-
/* @__PURE__ */ n(
|
|
486
|
-
W,
|
|
487
|
-
{
|
|
488
|
-
className: "main-content__search",
|
|
489
|
-
placeholder: p,
|
|
490
|
-
debounceTime: 200,
|
|
491
|
-
prefix: /* @__PURE__ */ n(
|
|
492
|
-
N,
|
|
493
|
-
{
|
|
494
|
-
icon: " mng-lnc-search",
|
|
495
|
-
sizeInUnits: "1.25rem",
|
|
496
|
-
className: "main-content__search-prefix"
|
|
497
|
-
}
|
|
498
|
-
),
|
|
499
|
-
color: "neutral",
|
|
500
|
-
onChange: G
|
|
501
|
-
}
|
|
502
|
-
),
|
|
503
|
-
/* @__PURE__ */ n(
|
|
504
|
-
L,
|
|
505
|
-
{
|
|
506
|
-
color: "neutral",
|
|
507
|
-
control: d == null ? void 0 : d.name,
|
|
508
|
-
zIndex: 1001,
|
|
509
|
-
className: "main-content__sort-by",
|
|
510
|
-
children: _ == null ? void 0 : _.map((i, b) => /* @__PURE__ */ n(
|
|
511
|
-
$,
|
|
512
|
-
{
|
|
513
|
-
active: (i == null ? void 0 : i.code) === (d == null ? void 0 : d.code),
|
|
514
|
-
className: "sort-by__item",
|
|
515
|
-
onClick: () => r(i),
|
|
516
|
-
children: i == null ? void 0 : i.name
|
|
517
|
-
},
|
|
518
|
-
`blog-epxlore-section-sorting-option__${b + 1}`
|
|
519
|
-
))
|
|
520
|
-
}
|
|
521
|
-
)
|
|
522
|
-
] }),
|
|
523
|
-
/* @__PURE__ */ l("div", { className: "main-content__items", children: [
|
|
524
|
-
t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
|
|
525
|
-
z,
|
|
526
|
-
{
|
|
527
|
-
timeToReadText: k,
|
|
528
|
-
items: t == null ? void 0 : t.slice(0, 5),
|
|
529
|
-
isLoading: g,
|
|
530
|
-
getImage: x,
|
|
531
|
-
onSelectCard: y,
|
|
532
|
-
onSelectOption: S,
|
|
533
|
-
onShare: T,
|
|
534
|
-
onBookmark: C
|
|
535
|
-
}
|
|
536
|
-
),
|
|
537
|
-
/* @__PURE__ */ n("div", { className: "main-content__divider" }),
|
|
538
|
-
h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ n(
|
|
473
|
+
}, ce) => {
|
|
474
|
+
const G = (r) => {
|
|
475
|
+
document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), b == null || b(r);
|
|
476
|
+
};
|
|
477
|
+
return /* @__PURE__ */ l(ie, { id: "landing__container", children: [
|
|
478
|
+
/* @__PURE__ */ l("div", { className: "landing__main-content", children: [
|
|
479
|
+
c && /* @__PURE__ */ n("div", { className: "main-content__title", children: c }),
|
|
480
|
+
u && /* @__PURE__ */ n(
|
|
539
481
|
O,
|
|
540
482
|
{
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
items: h,
|
|
546
|
-
isLoading: v,
|
|
547
|
-
getImage: U,
|
|
548
|
-
isHighlight: !0
|
|
483
|
+
tags: u,
|
|
484
|
+
allTagText: a,
|
|
485
|
+
selectedTagCode: o,
|
|
486
|
+
onSelectTag: s
|
|
549
487
|
}
|
|
550
488
|
),
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
onSelectOption: S,
|
|
561
|
-
onShare: T,
|
|
562
|
-
onBookmark: C
|
|
563
|
-
}
|
|
564
|
-
)
|
|
565
|
-
] }),
|
|
566
|
-
w && w > 1 && /* @__PURE__ */ n(
|
|
567
|
-
ne,
|
|
568
|
-
{
|
|
569
|
-
perPageOptions: Z,
|
|
570
|
-
perPage: V,
|
|
571
|
-
handlePerPage: X,
|
|
572
|
-
page: q,
|
|
573
|
-
handlePage: H,
|
|
574
|
-
totalPage: w
|
|
575
|
-
}
|
|
576
|
-
)
|
|
577
|
-
] }),
|
|
578
|
-
/* @__PURE__ */ l("div", { className: "landing__side-content", children: [
|
|
579
|
-
f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
|
|
580
|
-
m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(J, { children: [
|
|
581
|
-
/* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((i, b) => /* @__PURE__ */ l(
|
|
582
|
-
"div",
|
|
583
|
-
{
|
|
584
|
-
className: "side-content__item",
|
|
585
|
-
onClick: () => y(i),
|
|
586
|
-
children: [
|
|
587
|
-
/* @__PURE__ */ n(
|
|
588
|
-
"img",
|
|
489
|
+
/* @__PURE__ */ l("div", { className: "main-content__actions", children: [
|
|
490
|
+
/* @__PURE__ */ n(
|
|
491
|
+
Y,
|
|
492
|
+
{
|
|
493
|
+
className: "main-content__search",
|
|
494
|
+
placeholder: p,
|
|
495
|
+
debounceTime: 200,
|
|
496
|
+
prefix: /* @__PURE__ */ n(
|
|
497
|
+
k,
|
|
589
498
|
{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
className: "
|
|
499
|
+
icon: " mng-lnc-search",
|
|
500
|
+
sizeInUnits: "1.25rem",
|
|
501
|
+
className: "main-content__search-prefix"
|
|
593
502
|
}
|
|
594
503
|
),
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
504
|
+
color: "neutral",
|
|
505
|
+
onChange: Z
|
|
506
|
+
}
|
|
507
|
+
),
|
|
508
|
+
/* @__PURE__ */ n(
|
|
509
|
+
$,
|
|
510
|
+
{
|
|
511
|
+
color: "neutral",
|
|
512
|
+
control: d == null ? void 0 : d.name,
|
|
513
|
+
zIndex: 1001,
|
|
514
|
+
className: "main-content__sort-by",
|
|
515
|
+
children: h == null ? void 0 : h.map((r, v) => /* @__PURE__ */ n(
|
|
516
|
+
A,
|
|
517
|
+
{
|
|
518
|
+
active: (r == null ? void 0 : r.code) === (d == null ? void 0 : d.code),
|
|
519
|
+
className: "sort-by__item",
|
|
520
|
+
onClick: () => i(r),
|
|
521
|
+
children: r == null ? void 0 : r.name
|
|
522
|
+
},
|
|
523
|
+
`blog-epxlore-section-sorting-option__${v + 1}`
|
|
524
|
+
))
|
|
525
|
+
}
|
|
526
|
+
)
|
|
527
|
+
] }),
|
|
528
|
+
/* @__PURE__ */ l("div", { className: "main-content__items", children: [
|
|
529
|
+
t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
|
|
530
|
+
z,
|
|
531
|
+
{
|
|
532
|
+
timeToReadText: S,
|
|
533
|
+
items: t == null ? void 0 : t.slice(0, 5),
|
|
534
|
+
isLoading: g,
|
|
535
|
+
getImage: y,
|
|
536
|
+
onSelectCard: w,
|
|
537
|
+
onSelectOption: T,
|
|
538
|
+
onShare: C,
|
|
539
|
+
onBookmark: I
|
|
540
|
+
}
|
|
541
|
+
),
|
|
542
|
+
/* @__PURE__ */ n("div", { className: "main-content__divider" }),
|
|
543
|
+
_ && (_ == null ? void 0 : _.length) > 0 && /* @__PURE__ */ n(
|
|
544
|
+
P,
|
|
545
|
+
{
|
|
546
|
+
buttonText: M,
|
|
547
|
+
buttonLink: E,
|
|
548
|
+
onButtonAction: R,
|
|
549
|
+
onSelectCard: U,
|
|
550
|
+
items: _,
|
|
551
|
+
isLoading: x,
|
|
552
|
+
getImage: V,
|
|
553
|
+
isHighlight: !0
|
|
554
|
+
}
|
|
555
|
+
),
|
|
556
|
+
/* @__PURE__ */ n("div", { className: "main-content__divider" }),
|
|
557
|
+
t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
|
|
558
|
+
z,
|
|
559
|
+
{
|
|
560
|
+
timeToReadText: S,
|
|
561
|
+
items: t == null ? void 0 : t.slice(5),
|
|
562
|
+
isLoading: g,
|
|
563
|
+
getImage: y,
|
|
564
|
+
onSelectCard: w,
|
|
565
|
+
onSelectOption: T,
|
|
566
|
+
onShare: C,
|
|
567
|
+
onBookmark: I
|
|
568
|
+
}
|
|
569
|
+
)
|
|
570
|
+
] }),
|
|
571
|
+
N && N > 1 && /* @__PURE__ */ n(
|
|
572
|
+
re,
|
|
573
|
+
{
|
|
574
|
+
perPageOptions: X,
|
|
575
|
+
perPage: H,
|
|
576
|
+
handlePerPage: W,
|
|
577
|
+
page: q,
|
|
578
|
+
handlePage: G,
|
|
579
|
+
totalPage: N
|
|
600
580
|
}
|
|
601
|
-
)
|
|
602
|
-
|
|
581
|
+
)
|
|
582
|
+
] }),
|
|
583
|
+
/* @__PURE__ */ l("div", { className: "landing__side-content", children: [
|
|
584
|
+
f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
|
|
585
|
+
m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(J, { children: [
|
|
586
|
+
/* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, v) => /* @__PURE__ */ l(
|
|
587
|
+
"div",
|
|
588
|
+
{
|
|
589
|
+
className: "side-content__item",
|
|
590
|
+
onClick: () => w(r),
|
|
591
|
+
children: [
|
|
592
|
+
/* @__PURE__ */ n(
|
|
593
|
+
ee,
|
|
594
|
+
{
|
|
595
|
+
src: y(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
596
|
+
alt: `Mini blog ${v + 1}`,
|
|
597
|
+
className: "item__image"
|
|
598
|
+
}
|
|
599
|
+
),
|
|
600
|
+
/* @__PURE__ */ l("div", { className: "item__content", children: [
|
|
601
|
+
/* @__PURE__ */ n("div", { className: "item__title", children: r == null ? void 0 : r.title }),
|
|
602
|
+
/* @__PURE__ */ n("div", { className: "item__description", children: Q(r == null ? void 0 : r.publishedAt) })
|
|
603
|
+
] })
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
)) }),
|
|
607
|
+
/* @__PURE__ */ n(B, { onClick: F, className: "side-content__link", children: D })
|
|
608
|
+
] })
|
|
603
609
|
] })
|
|
604
|
-
] })
|
|
605
|
-
|
|
610
|
+
] });
|
|
611
|
+
}
|
|
606
612
|
);
|
|
607
|
-
|
|
613
|
+
ae.propTypes = {
|
|
608
614
|
mainTitle: e.string,
|
|
609
615
|
sideTitle: e.string,
|
|
610
616
|
tags: e.array,
|
|
@@ -641,5 +647,5 @@ re.propTypes = {
|
|
|
641
647
|
handleSearch: e.func
|
|
642
648
|
};
|
|
643
649
|
export {
|
|
644
|
-
|
|
650
|
+
ae as default
|
|
645
651
|
};
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),b=require("./Icon.cjs"),c=require("./IconButton.cjs"),o=require("./utils-DmMdPm9O.cjs"),y=require("./index-DiIeF_76.cjs"),j=require("./style-C_BRvopE.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),k=require("./suspense-large-PHdzP1Ln.cjs"),N=h.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -56,20 +56,6 @@
|
|
|
56
56
|
display: flex;
|
|
57
57
|
flex-wrap: wrap;
|
|
58
58
|
gap: 0.25rem;
|
|
59
|
-
|
|
60
|
-
& .wrapper__tag {
|
|
61
|
-
font-size: 0.75rem;
|
|
62
|
-
font-style: normal;
|
|
63
|
-
font-weight: 500;
|
|
64
|
-
line-height: 1rem;
|
|
65
|
-
letter-spacing: 0.5px;
|
|
66
|
-
padding: 0.125rem 0.5rem;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
align-items: center;
|
|
69
|
-
gap: 0.25rem;
|
|
70
|
-
height: 1.25rem;
|
|
71
|
-
border: 1px solid;
|
|
72
|
-
}
|
|
73
59
|
}
|
|
74
60
|
}
|
|
75
61
|
|
|
@@ -106,7 +92,7 @@
|
|
|
106
92
|
}
|
|
107
93
|
}
|
|
108
94
|
|
|
109
|
-
@media (max-width: ${
|
|
95
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
110
96
|
flex-direction: column;
|
|
111
97
|
padding: 0;
|
|
112
98
|
background: transparent;
|
|
@@ -156,7 +142,7 @@
|
|
|
156
142
|
}
|
|
157
143
|
}
|
|
158
144
|
}
|
|
159
|
-
`,
|
|
145
|
+
`,R=d.forwardRef(({title:p,imageUrl:n,options:i,publishedAt:s,timeToReadText:a="{0} min read",timeToRead:m=0,numberOfLikes:g=0,numberOfComments:u=0,isBookmarked:f=!1,onSelectCard:_=()=>{},onBookmark:e=()=>{},onShare:l=()=>{}},L)=>r.jsxs(N,{onClick:_,className:"blog-card-item",children:[r.jsx(y.ProductImageWrapper,{src:n,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:p}),r.jsxs("div",{className:"wrapper__tags-action",children:[r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,w)=>r.jsx(j.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},`blog-card-sponsored-option__${w+1}`)))}),r.jsxs("div",{className:"info__content mobile-only",children:[r.jsx(c,{icon:f?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}}),r.jsx(c,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),l()}})]})]})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(s)} • ${o.formatString(a,m)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),o.getRoundedNumber(g)]}),r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),o.getRoundedNumber(u)]})]})]}),r.jsxs("div",{className:"info__content desktop-only",children:[r.jsx(c,{icon:f?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}}),r.jsx(c,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),l()}})]})]})]})]})),q=h.styled.div`
|
|
160
146
|
display: flex;
|
|
161
147
|
flex-direction: column;
|
|
162
148
|
align-items: flex-start;
|
|
@@ -180,4 +166,4 @@
|
|
|
180
166
|
bottom: -1.25rem;
|
|
181
167
|
}
|
|
182
168
|
}
|
|
183
|
-
`,
|
|
169
|
+
`,I=d.memo(R),T=d.forwardRef(({timeToReadText:p="{0} min read",items:n,onSelectCard:i=()=>{},onShare:s=()=>{},onBookmark:a=()=>{},isLoading:m=!1,getImage:g=()=>{},isSeparated:u=!0},f)=>{const _=d.useMemo(()=>n==null?void 0:n.map((e,l)=>r.jsx(I,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:p,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:()=>i==null?void 0:i(e),onShare:()=>s==null?void 0:s(e),onBookmark:()=>a==null?void 0:a(e),imageUrl:g(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${l+1}`)),[n]);return r.jsx(q,{className:u?"separated":"",children:r.jsx(k.SuspenseBlogLarge,{isLoading:m,limit:5,keyPrefix:"blog-section",children:_})})});module.exports=T;
|