@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,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as l, jsx as n, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as l, jsx as n, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, Fragment as B } from "react";
|
|
3
3
|
import { P as e } from "./index-CblbdqjE.js";
|
|
4
|
-
import { p as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { F as
|
|
11
|
-
import
|
|
12
|
-
import { s as
|
|
13
|
-
import { P as
|
|
14
|
-
import
|
|
15
|
-
import { M as
|
|
16
|
-
const
|
|
4
|
+
import { p as O, s as P } from "./utils-BdsZgOUE.js";
|
|
5
|
+
import ee from "./TextInput.js";
|
|
6
|
+
import k from "./Icon.js";
|
|
7
|
+
import ne from "./Link.js";
|
|
8
|
+
import F from "./DropdownMenu.js";
|
|
9
|
+
import E from "./DropdownItem.js";
|
|
10
|
+
import { F as te } from "./tag-cRMfP-SZ.js";
|
|
11
|
+
import re from "./BlogProductCardsSection.js";
|
|
12
|
+
import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
13
|
+
import { P as ie } from "./index-CF3HhgvN.js";
|
|
14
|
+
import A from "./BlogListSection.js";
|
|
15
|
+
import { M as ae } from "./consts-BuFChS64.js";
|
|
16
|
+
const ce = M.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
@@ -94,7 +94,7 @@ const ae = E.div`
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`, oe = j(
|
|
98
98
|
({
|
|
99
99
|
perPageOptions: o = [
|
|
100
100
|
{ code: 10, name: "Show 10 items" },
|
|
@@ -138,9 +138,9 @@ const ae = E.div`
|
|
|
138
138
|
`pagination-page__${v}`
|
|
139
139
|
));
|
|
140
140
|
};
|
|
141
|
-
return /* @__PURE__ */ l(
|
|
141
|
+
return /* @__PURE__ */ l(ce, { className: "pagination", children: [
|
|
142
142
|
/* @__PURE__ */ n(
|
|
143
|
-
|
|
143
|
+
F,
|
|
144
144
|
{
|
|
145
145
|
color: "neutral",
|
|
146
146
|
control: ((_ = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.code) === f)) == null ? void 0 : _.name) || ((d = o[0]) == null ? void 0 : d.name),
|
|
@@ -148,7 +148,7 @@ const ae = E.div`
|
|
|
148
148
|
zIndex: 1001,
|
|
149
149
|
className: "pagination__per-page",
|
|
150
150
|
children: o == null ? void 0 : o.map((i, a) => /* @__PURE__ */ n(
|
|
151
|
-
|
|
151
|
+
E,
|
|
152
152
|
{
|
|
153
153
|
active: (i == null ? void 0 : i.code) === (f == null ? void 0 : f.code),
|
|
154
154
|
className: "sort-by__item",
|
|
@@ -165,7 +165,7 @@ const ae = E.div`
|
|
|
165
165
|
{
|
|
166
166
|
className: `pagination__page ${c === 1 ? "disabled" : ""}`,
|
|
167
167
|
onClick: h,
|
|
168
|
-
children: /* @__PURE__ */ n(
|
|
168
|
+
children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--left" })
|
|
169
169
|
}
|
|
170
170
|
),
|
|
171
171
|
x(),
|
|
@@ -174,13 +174,13 @@ const ae = E.div`
|
|
|
174
174
|
{
|
|
175
175
|
className: `pagination__page ${c === t ? "disabled" : ""}`,
|
|
176
176
|
onClick: p,
|
|
177
|
-
children: /* @__PURE__ */ n(
|
|
177
|
+
children: /* @__PURE__ */ n(k, { icon: " mng-lnc-chevron--right" })
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
180
|
] })
|
|
181
181
|
] });
|
|
182
182
|
}
|
|
183
|
-
),
|
|
183
|
+
), le = M.div`
|
|
184
184
|
display: flex;
|
|
185
185
|
align-items: flex-start;
|
|
186
186
|
gap: 2rem;
|
|
@@ -356,7 +356,7 @@ const ae = E.div`
|
|
|
356
356
|
font-style: normal;
|
|
357
357
|
font-weight: 500;
|
|
358
358
|
line-height: 1.25rem;
|
|
359
|
-
${
|
|
359
|
+
${O(2)}
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
& .item__description {
|
|
@@ -371,7 +371,7 @@ const ae = E.div`
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
@media (max-width: ${
|
|
374
|
+
@media (max-width: ${ae + "px"}) {
|
|
375
375
|
flex-direction: column;
|
|
376
376
|
|
|
377
377
|
& .landing__main-content {
|
|
@@ -418,7 +418,7 @@ const ae = E.div`
|
|
|
418
418
|
display: none;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
`,
|
|
421
|
+
`, se = j(
|
|
422
422
|
({
|
|
423
423
|
mainTitle: o,
|
|
424
424
|
sideTitle: f,
|
|
@@ -437,50 +437,51 @@ const ae = E.div`
|
|
|
437
437
|
},
|
|
438
438
|
allTagText: a = "All",
|
|
439
439
|
searchPlaceholderText: v = "Search blogs",
|
|
440
|
-
timeToReadText:
|
|
440
|
+
timeToReadText: T = "{0} min read",
|
|
441
441
|
getBlogImageUrl: y = () => {
|
|
442
442
|
},
|
|
443
443
|
handleSelectBlog: w = () => {
|
|
444
444
|
},
|
|
445
|
-
handleSelectBlogTag:
|
|
445
|
+
handleSelectBlogTag: C = () => {
|
|
446
446
|
},
|
|
447
|
-
handleShareBlog:
|
|
447
|
+
handleShareBlog: I = () => {
|
|
448
448
|
},
|
|
449
449
|
// handleBookmarkBlog = () => {},
|
|
450
|
-
showAllButtonLink:
|
|
451
|
-
showAllButtonText:
|
|
452
|
-
viewAllButtonText:
|
|
453
|
-
viewAllButtonLink:
|
|
454
|
-
handleViewAll:
|
|
450
|
+
showAllButtonLink: D,
|
|
451
|
+
showAllButtonText: R = "Show all products",
|
|
452
|
+
viewAllButtonText: U = "View all (11)",
|
|
453
|
+
viewAllButtonLink: de,
|
|
454
|
+
handleViewAll: V = () => {
|
|
455
455
|
},
|
|
456
|
-
handleShowAll:
|
|
456
|
+
handleShowAll: q = () => {
|
|
457
457
|
},
|
|
458
|
-
handleSelectProduct:
|
|
458
|
+
handleSelectProduct: H = () => {
|
|
459
459
|
},
|
|
460
|
-
getProductImageUrl:
|
|
460
|
+
getProductImageUrl: W = () => {
|
|
461
461
|
},
|
|
462
|
-
page:
|
|
462
|
+
page: X,
|
|
463
463
|
handlePage: b = () => {
|
|
464
464
|
},
|
|
465
|
-
perPage:
|
|
466
|
-
handlePerPage:
|
|
465
|
+
perPage: Z,
|
|
466
|
+
handlePerPage: G = () => {
|
|
467
467
|
},
|
|
468
468
|
totalPage: N,
|
|
469
|
-
perPageOptions:
|
|
470
|
-
handleSearch:
|
|
469
|
+
perPageOptions: J,
|
|
470
|
+
handleSearch: K = () => {
|
|
471
471
|
},
|
|
472
|
-
onBookmark:
|
|
472
|
+
onBookmark: $ = () => {
|
|
473
473
|
},
|
|
474
|
-
bookmarkComponent:
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
bookmarkComponent: z = /* @__PURE__ */ n(L, { children: " " }),
|
|
475
|
+
componentName: S
|
|
476
|
+
}, Q) => {
|
|
477
|
+
const Y = (r) => {
|
|
477
478
|
document.getElementById("landing__container").scrollIntoView({ behavior: "smooth", block: "start" }), b == null || b(r);
|
|
478
479
|
};
|
|
479
|
-
return /* @__PURE__ */ l(
|
|
480
|
+
return /* @__PURE__ */ l(le, { ref: Q, id: "landing__container", children: [
|
|
480
481
|
/* @__PURE__ */ l("div", { className: "landing__main-content", children: [
|
|
481
482
|
o && /* @__PURE__ */ n("div", { className: "main-content__title", children: o }),
|
|
482
483
|
g && /* @__PURE__ */ n(
|
|
483
|
-
|
|
484
|
+
te,
|
|
484
485
|
{
|
|
485
486
|
tags: g,
|
|
486
487
|
allTagText: a,
|
|
@@ -490,13 +491,13 @@ const ae = E.div`
|
|
|
490
491
|
),
|
|
491
492
|
/* @__PURE__ */ l("div", { className: "main-content__actions", children: [
|
|
492
493
|
/* @__PURE__ */ n(
|
|
493
|
-
|
|
494
|
+
ee,
|
|
494
495
|
{
|
|
495
496
|
className: "main-content__search",
|
|
496
497
|
placeholder: v,
|
|
497
498
|
debounceTime: 200,
|
|
498
499
|
prefix: /* @__PURE__ */ n(
|
|
499
|
-
|
|
500
|
+
k,
|
|
500
501
|
{
|
|
501
502
|
icon: " mng-lnc-search",
|
|
502
503
|
sizeInUnits: "1.25rem",
|
|
@@ -504,18 +505,18 @@ const ae = E.div`
|
|
|
504
505
|
}
|
|
505
506
|
),
|
|
506
507
|
color: "neutral",
|
|
507
|
-
onChange:
|
|
508
|
+
onChange: K
|
|
508
509
|
}
|
|
509
510
|
),
|
|
510
511
|
/* @__PURE__ */ n(
|
|
511
|
-
|
|
512
|
+
F,
|
|
512
513
|
{
|
|
513
514
|
color: "neutral",
|
|
514
515
|
control: d == null ? void 0 : d.name,
|
|
515
516
|
zIndex: 1001,
|
|
516
517
|
className: "main-content__sort-by",
|
|
517
518
|
children: _ == null ? void 0 : _.map((r, u) => /* @__PURE__ */ n(
|
|
518
|
-
|
|
519
|
+
E,
|
|
519
520
|
{
|
|
520
521
|
active: (r == null ? void 0 : r.code) === (d == null ? void 0 : d.code),
|
|
521
522
|
className: "sort-by__item",
|
|
@@ -529,72 +530,75 @@ const ae = E.div`
|
|
|
529
530
|
] }),
|
|
530
531
|
/* @__PURE__ */ l("div", { className: "main-content__items", children: [
|
|
531
532
|
t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
|
|
532
|
-
|
|
533
|
+
A,
|
|
533
534
|
{
|
|
534
|
-
timeToReadText:
|
|
535
|
+
timeToReadText: T,
|
|
535
536
|
items: t == null ? void 0 : t.slice(0, 5),
|
|
536
537
|
isLoading: p,
|
|
537
538
|
getImage: y,
|
|
538
539
|
onSelectCard: w,
|
|
539
|
-
onSelectOption:
|
|
540
|
-
onShare:
|
|
541
|
-
onBookmark:
|
|
542
|
-
bookmarkComponent:
|
|
540
|
+
onSelectOption: C,
|
|
541
|
+
onShare: I,
|
|
542
|
+
onBookmark: $,
|
|
543
|
+
bookmarkComponent: z,
|
|
544
|
+
componentName: S
|
|
543
545
|
}
|
|
544
546
|
),
|
|
545
547
|
/* @__PURE__ */ n("div", { className: "main-content__divider" }),
|
|
546
548
|
h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ n(
|
|
547
|
-
|
|
549
|
+
re,
|
|
548
550
|
{
|
|
549
|
-
buttonText:
|
|
550
|
-
buttonLink:
|
|
551
|
-
onButtonAction:
|
|
552
|
-
onSelectCard:
|
|
551
|
+
buttonText: R,
|
|
552
|
+
buttonLink: D,
|
|
553
|
+
onButtonAction: q,
|
|
554
|
+
onSelectCard: H,
|
|
553
555
|
items: h,
|
|
554
556
|
isLoading: x,
|
|
555
|
-
getImage:
|
|
556
|
-
isHighlight: !0
|
|
557
|
+
getImage: W,
|
|
558
|
+
isHighlight: !0,
|
|
559
|
+
componentName: S
|
|
557
560
|
}
|
|
558
561
|
),
|
|
559
562
|
/* @__PURE__ */ n("div", { className: "main-content__divider" }),
|
|
560
563
|
t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
|
|
561
|
-
|
|
564
|
+
A,
|
|
562
565
|
{
|
|
563
|
-
timeToReadText:
|
|
566
|
+
timeToReadText: T,
|
|
564
567
|
items: t == null ? void 0 : t.slice(5),
|
|
565
568
|
isLoading: p,
|
|
566
569
|
getImage: y,
|
|
567
570
|
onSelectCard: w,
|
|
568
|
-
onSelectOption:
|
|
569
|
-
onShare:
|
|
570
|
-
onBookmark:
|
|
571
|
-
bookmarkComponent:
|
|
571
|
+
onSelectOption: C,
|
|
572
|
+
onShare: I,
|
|
573
|
+
onBookmark: $,
|
|
574
|
+
bookmarkComponent: z,
|
|
575
|
+
componentName: S
|
|
572
576
|
}
|
|
573
577
|
)
|
|
574
578
|
] }),
|
|
575
579
|
N && N > 1 && /* @__PURE__ */ n(
|
|
576
|
-
|
|
580
|
+
oe,
|
|
577
581
|
{
|
|
578
|
-
perPageOptions:
|
|
579
|
-
perPage:
|
|
580
|
-
handlePerPage:
|
|
581
|
-
page:
|
|
582
|
-
handlePage:
|
|
582
|
+
perPageOptions: J,
|
|
583
|
+
perPage: Z,
|
|
584
|
+
handlePerPage: G,
|
|
585
|
+
page: X,
|
|
586
|
+
handlePage: Y,
|
|
583
587
|
totalPage: N
|
|
584
588
|
}
|
|
585
589
|
)
|
|
586
590
|
] }),
|
|
587
591
|
/* @__PURE__ */ l("div", { className: "landing__side-content", children: [
|
|
588
592
|
f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
|
|
589
|
-
m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(
|
|
590
|
-
/* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, u) => /* @__PURE__ */ n(
|
|
593
|
+
m && (m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ l(L, { children: [
|
|
594
|
+
/* @__PURE__ */ n("div", { className: "side-content__items", children: m == null ? void 0 : m.map((r, u) => /* @__PURE__ */ n(B, { children: /* @__PURE__ */ l(
|
|
591
595
|
"div",
|
|
592
596
|
{
|
|
593
597
|
className: "side-content__item",
|
|
594
598
|
onClick: () => w(r),
|
|
595
599
|
children: [
|
|
596
600
|
/* @__PURE__ */ n(
|
|
597
|
-
|
|
601
|
+
ie,
|
|
598
602
|
{
|
|
599
603
|
src: y(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
600
604
|
alt: `Mini blog ${u + 1}`,
|
|
@@ -603,18 +607,18 @@ const ae = E.div`
|
|
|
603
607
|
),
|
|
604
608
|
/* @__PURE__ */ l("div", { className: "item__content", children: [
|
|
605
609
|
/* @__PURE__ */ n("div", { className: "item__title", children: r == null ? void 0 : r.title }),
|
|
606
|
-
/* @__PURE__ */ n("div", { className: "item__description", children:
|
|
610
|
+
/* @__PURE__ */ n("div", { className: "item__description", children: P(r == null ? void 0 : r.publishedAt) })
|
|
607
611
|
] })
|
|
608
612
|
]
|
|
609
613
|
}
|
|
610
614
|
) }, `mini_blg_${u}`)) }),
|
|
611
|
-
/* @__PURE__ */ n(
|
|
615
|
+
/* @__PURE__ */ n(ne, { onClick: V, className: "side-content__link", children: U })
|
|
612
616
|
] })
|
|
613
617
|
] })
|
|
614
618
|
] });
|
|
615
619
|
}
|
|
616
620
|
);
|
|
617
|
-
|
|
621
|
+
se.propTypes = {
|
|
618
622
|
mainTitle: e.string,
|
|
619
623
|
sideTitle: e.string,
|
|
620
624
|
tags: e.array,
|
|
@@ -651,5 +655,5 @@ le.propTypes = {
|
|
|
651
655
|
handleSearch: e.func
|
|
652
656
|
};
|
|
653
657
|
export {
|
|
654
|
-
|
|
658
|
+
se as default
|
|
655
659
|
};
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("react"),k=require("./Icon.cjs"),N=require("./IconButton.cjs"),o=require("./utils-Dl9xPH4c.cjs"),q=require("./index-BueKsXT8.cjs"),I=require("./style-Db3VFbfP.cjs"),B=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./consts-goSZX3xP.cjs"),C=require("./suspense-large-CFmcSzX-.cjs"),L=B.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
font-weight: 600;
|
|
51
51
|
line-height: 1.5rem;
|
|
52
52
|
letter-spacing: 0.1px;
|
|
53
|
-
${
|
|
53
|
+
${o.truncateTextInRows(3)}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
& .wrapper__tags {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
@media (max-width: ${
|
|
96
|
+
@media (max-width: ${$.MOBILE_SIZE_PX+"px"}) {
|
|
97
97
|
flex-direction: column;
|
|
98
98
|
padding: 0;
|
|
99
99
|
background: transparent;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
147
|
+
`,z=a.forwardRef(({blogUuid:c,title:s,imageUrl:l,options:i,publishedAt:g,timeToReadText:f="{0} min read",timeToRead:u=0,numberOfLikes:_=0,numberOfComments:h=0,isBookmarked:d=!1,onSelectCard:w=()=>{},onBookmark:b=()=>{},onShare:e=()=>{},bookmarkComponent:p=r.jsx(r.Fragment,{}),metadata:t},j)=>{const m=()=>o.isDefined(p)?a.cloneElement(p,{key:`bookmark_blog__${c}__${d}`,isBookmarked:d,blogUuid:c,onBookmark:(y,R)=>b(y,R),ref:j,componentName:"ExploreBlogSectionCard"}):r.jsx(r.Fragment,{}),v=a.useRef();return r.jsxs(L,{ref:v,name:t==null?void 0:t.name,"data-accessor":t==null?void 0:t.accessor,onClick:n=>w(n,v),className:"blog-card-item",children:[r.jsx(q.ProductImageWrapper,{src:l,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:s}),r.jsxs("div",{className:"wrapper__tags-action",children:[r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((n,y)=>r.jsx(I.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},`blog-card-sponsored-option__${y+1}`)))}),r.jsxs("div",{className:"info__content mobile-only",children:[r.jsx(m,{}),r.jsx(N,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:n=>{n==null||n.stopPropagation(),e()}})]})]})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(g)} • ${o.formatString(f,u)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(k,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),o.getRoundedNumber(_)]}),r.jsxs("div",{children:[r.jsx(k,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),o.getRoundedNumber(h)]})]})]}),r.jsxs("div",{className:"info__content desktop-only",children:[r.jsx(m,{}),r.jsx(N,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:n=>{n==null||n.stopPropagation(),e()}})]})]})]})]})}),T=B.styled.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
align-items: flex-start;
|
|
@@ -168,4 +168,4 @@
|
|
|
168
168
|
bottom: -1.25rem;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
`,
|
|
171
|
+
`,O=a.memo(z),P=a.forwardRef(({timeToReadText:c="{0} min read",items:s,onSelectCard:l=()=>{},onShare:i=()=>{},onBookmark:g=()=>{},isLoading:f=!1,getImage:u=()=>{},isSeparated:_=!0,bookmarkComponent:h=r.jsx(r.Fragment,{}),componentName:d},w)=>{const b=a.useMemo(()=>s==null?void 0:s.map((e,p)=>{var t;return r.jsx(O,{blogUuid:e==null?void 0:e.uuid,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:c,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:(j,m)=>l==null?void 0:l(e,m),onShare:()=>i==null?void 0:i(e),onBookmark:g,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,bookmarkComponent:h,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`blog-card-item__${p+1}__${(t=e==null?void 0:e.isBookmarked)==null?void 0:t.toString()}`)}),[s]);return r.jsx(T,{ref:w,className:_?"separated":"",children:r.jsx(C.SuspenseBlogLarge,{isLoading:f,limit:5,keyPrefix:"blog-section",children:b})})});module.exports=P;
|