@lanaco/lnc-react-ui 4.0.87 → 4.0.89
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +5 -2
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +38 -35
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +3 -3
- package/dist/BlogListSection.js +16 -16
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +29 -26
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +32 -29
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +109 -101
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-DSaRbYZg.js → CustomStyles-CQawr7oF.js} +1 -1
- package/dist/{CustomStyles-DzChCA5c.cjs → CustomStyles-Uqkz9jDo.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +28 -25
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +27 -16
- package/dist/FieldOfInterestsMasonrySection.js +72 -62
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -1
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +5 -5
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +54 -51
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +2 -2
- package/dist/Kanban.js +84 -82
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- 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/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +23 -23
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +18 -15
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +34 -31
- package/dist/{index-DG7qQq8L.cjs → index-66FyQgVV.cjs} +1 -1
- package/dist/{index-Yh18uk_f.js → index-B68jh2kW.js} +2 -2
- package/dist/{index-BVaZWq6y.cjs → index-BRgZcjpI.cjs} +1 -1
- package/dist/{index-BBPnKoi6.js → index-BT4FT6f0.js} +2 -2
- package/dist/{index-Db8wvLXS.js → index-Chju-CHz.js} +1 -1
- package/dist/{index-Ca38iPjf.js → index-Cpd68IKh.js} +1 -1
- package/dist/{index-B9HSHvhH.cjs → index-D8lR_JKg.cjs} +1 -1
- package/dist/{index-iSD5jNBk.js → index-DHQc2df3.js} +98 -46
- package/dist/{index-Ccw8sLnK.cjs → index-DMysapsB.cjs} +1 -1
- package/dist/{index-Cx4KvZ9L.cjs → index-DZDz9qZP.cjs} +47 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-DALCB1S7.js → skeleton-BbYMdJpz.js} +1 -1
- package/dist/{skeleton-BBSBZ4JV.cjs → skeleton-BcaMeKFQ.cjs} +1 -1
- package/dist/{skeleton-C_Jypl8r.cjs → skeleton-DwZzdFei.cjs} +5 -5
- package/dist/{skeleton-wfDIalr3.js → skeleton-oa1ux_Zp.js} +6 -6
- package/dist/{style-xvwWn3Zv.cjs → style-B8wrlDzY.cjs} +13 -7
- package/dist/{style-sLF37aOA.js → style-R2KgPcrd.js} +17 -10
- package/dist/{suspense-categories-card-simple-5JZtz7wj.cjs → suspense-categories-card-simple-B2swGa6t.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BTFqzXyn.js → suspense-categories-card-simple-Dkm0oojD.js} +1 -1
- package/dist/{suspense-large-DFlSJhGG.js → suspense-large-B2lY_x-y.js} +1 -1
- package/dist/{suspense-large-BtfvnzWh.cjs → suspense-large-DMhn-lIG.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-CwdbxJrY.js → suspense-product-card-detailed-5A3zYKqj.js} +2 -2
- package/dist/{suspense-product-card-detailed-DBNlkFiP.cjs → suspense-product-card-detailed-CuExvgd_.cjs} +1 -1
- package/dist/{suspense-product-card-simple--ExcEpD-.js → suspense-product-card-simple-C4qtjWg_.js} +1 -1
- package/dist/{suspense-product-card-simple-0x5sc47a.cjs → suspense-product-card-simple-zYdZVLRz.cjs} +1 -1
- package/dist/{utils-DhRHf5Ed.cjs → utils-BWzf4vLl.cjs} +1 -1
- package/dist/{utils-BE-UlkKf.js → utils-BhG1dImS.js} +4 -4
- package/package.json +1 -1
- package/dist/useEffectOnce-DFrzfNzT.cjs +0 -1
- package/dist/useEffectOnce-guOKBPuL.js +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import { l as
|
|
7
|
-
const y =
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, Fragment as h } from "react";
|
|
3
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
5
|
+
import x from "./Button.js";
|
|
6
|
+
import { l as n } from "./utils-BhG1dImS.js";
|
|
7
|
+
const y = c.div`
|
|
8
8
|
padding-bottom: 1.38rem;
|
|
9
9
|
text-align: center;
|
|
10
10
|
display: flex;
|
|
@@ -17,10 +17,10 @@ const y = l.div`
|
|
|
17
17
|
width: fit-content;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@media (max-width: ${
|
|
20
|
+
@media (max-width: ${m + "px"}) {
|
|
21
21
|
padding-bottom: 0;
|
|
22
22
|
}
|
|
23
|
-
`, b =
|
|
23
|
+
`, b = c.div`
|
|
24
24
|
text-align: center;
|
|
25
25
|
display: flex;
|
|
26
26
|
justify-content: center;
|
|
@@ -38,9 +38,9 @@ const y = l.div`
|
|
|
38
38
|
font-weight: 500;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@media (max-width: ${
|
|
41
|
+
@media (max-width: ${m + "px"}) {
|
|
42
42
|
}
|
|
43
|
-
`, v =
|
|
43
|
+
`, v = c.div`
|
|
44
44
|
text-align: center;
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
@@ -60,7 +60,7 @@ const y = l.div`
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@media (max-width: ${
|
|
63
|
+
@media (max-width: ${m + "px"}) {
|
|
64
64
|
& .list-item {
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
text-align: center;
|
|
@@ -68,33 +68,36 @@ const y = l.div`
|
|
|
68
68
|
gap: 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`, N =
|
|
71
|
+
`, N = g((s, d) => {
|
|
72
72
|
const {
|
|
73
|
-
title:
|
|
74
|
-
subtitle:
|
|
75
|
-
buttonText:
|
|
76
|
-
list:
|
|
77
|
-
buttonLink:
|
|
78
|
-
onButtonAction:
|
|
73
|
+
title: r,
|
|
74
|
+
subtitle: o,
|
|
75
|
+
buttonText: f,
|
|
76
|
+
list: l,
|
|
77
|
+
buttonLink: p,
|
|
78
|
+
onButtonAction: u = () => {
|
|
79
79
|
}
|
|
80
|
-
} =
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
} = s;
|
|
81
|
+
return /* @__PURE__ */ a(y, { ref: d, children: [
|
|
82
|
+
(n(r) || n(o)) && /* @__PURE__ */ a(b, { children: [
|
|
83
|
+
n(r) && /* @__PURE__ */ e("div", { className: "header-title", children: r }),
|
|
84
|
+
n(o) && /* @__PURE__ */ e("div", { className: "header-subitle", children: o })
|
|
85
85
|
] }),
|
|
86
|
-
/* @__PURE__ */ e(v, { children:
|
|
86
|
+
/* @__PURE__ */ e(v, { children: l == null ? void 0 : l.map((t, i) => /* @__PURE__ */ e(h, { children: /* @__PURE__ */ a("div", { className: "list-item", children: [
|
|
87
87
|
/* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
88
|
-
/* @__PURE__ */ e("span", { children:
|
|
89
|
-
] }) },
|
|
88
|
+
/* @__PURE__ */ e("span", { children: t })
|
|
89
|
+
] }) }, i)) }),
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
|
-
|
|
91
|
+
x,
|
|
92
92
|
{
|
|
93
93
|
size: "medium",
|
|
94
94
|
color: "neutral",
|
|
95
95
|
type: "button",
|
|
96
|
-
onClick: () =>
|
|
97
|
-
|
|
96
|
+
onClick: (t) => {
|
|
97
|
+
var i;
|
|
98
|
+
(i = t == null ? void 0 : t.target) == null || i.blur(), u(p);
|
|
99
|
+
},
|
|
100
|
+
children: f
|
|
98
101
|
}
|
|
99
102
|
)
|
|
100
103
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),y=require("./Button.cjs"),j=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>(e==null?void 0:e.bgColor)||"transparent"};
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
`}
|
|
23
23
|
|
|
24
|
-
@media (max-width: ${
|
|
24
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
& img {
|
|
27
27
|
max-width: 100%;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
min-height: ${e=>e.imgHMob||"12.1rem"};
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,v=
|
|
33
|
+
`,v=n.styled.div`
|
|
34
34
|
padding: 2rem;
|
|
35
35
|
display: flex;
|
|
36
36
|
gap: 1.25rem;
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
flex: 1;
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
|
|
41
|
-
@media (max-width: ${
|
|
41
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
42
42
|
padding: 1.25rem;
|
|
43
43
|
}
|
|
44
|
-
`,$=
|
|
44
|
+
`,$=n.styled.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
gap: 0.25rem;
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
font-weight: 500;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
@media (max-width: ${
|
|
60
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
}
|
|
63
|
-
`,_=
|
|
63
|
+
`,_=n.styled.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
gap: 0.75rem;
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
@media (max-width: ${
|
|
80
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
81
81
|
}
|
|
82
|
-
`,B=
|
|
82
|
+
`,B=a.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:c,list:s,imageUrl:x,imageHeight:g,imageWidth:h,imageHeightMobile:p,hasBorder:u=!0,backgroundColor:b="transparent",onButtonAction:f=()=>{},buttonLink:w}=e;return i.jsxs(j,{ref:m,imgH:g,imgW:h,imgHMob:p,hasBorder:u,bgColor:b,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:d}),i.jsx("div",{className:"header-subitle",children:l})]}),i.jsx(_,{children:s==null?void 0:s.map((t,r)=>i.jsx(a.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:t})]})},r))}),i.jsx(y,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:t=>{var r;(r=t==null?void 0:t.target)==null||r.blur(),f(w)},children:c})]}),i.jsx("img",{src:x})]})});module.exports=B;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, Fragment as y } from "react";
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
3
|
+
import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
5
5
|
import $ from "./Button.js";
|
|
6
|
-
const H =
|
|
6
|
+
const H = n.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
border-radius: 0.75rem;
|
|
9
9
|
background-color: ${(e) => (e == null ? void 0 : e.bgColor) || "transparent"};
|
|
@@ -26,7 +26,7 @@ const H = r.div`
|
|
|
26
26
|
|
|
27
27
|
`}
|
|
28
28
|
|
|
29
|
-
@media (max-width: ${
|
|
29
|
+
@media (max-width: ${m + "px"}) {
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
& img {
|
|
32
32
|
max-width: 100%;
|
|
@@ -35,7 +35,7 @@ const H = r.div`
|
|
|
35
35
|
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`, W =
|
|
38
|
+
`, W = n.div`
|
|
39
39
|
padding: 2rem;
|
|
40
40
|
display: flex;
|
|
41
41
|
gap: 1.25rem;
|
|
@@ -43,10 +43,10 @@ const H = r.div`
|
|
|
43
43
|
flex: 1;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
|
|
46
|
-
@media (max-width: ${
|
|
46
|
+
@media (max-width: ${m + "px"}) {
|
|
47
47
|
padding: 1.25rem;
|
|
48
48
|
}
|
|
49
|
-
`, k =
|
|
49
|
+
`, k = n.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
gap: 0.25rem;
|
|
@@ -62,10 +62,10 @@ const H = r.div`
|
|
|
62
62
|
font-weight: 500;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
@media (max-width: ${
|
|
65
|
+
@media (max-width: ${m + "px"}) {
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
}
|
|
68
|
-
`, B =
|
|
68
|
+
`, B = n.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
gap: 0.75rem;
|
|
@@ -82,43 +82,43 @@ const H = r.div`
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
@media (max-width: ${
|
|
85
|
+
@media (max-width: ${m + "px"}) {
|
|
86
86
|
}
|
|
87
|
-
`, N = v((e,
|
|
87
|
+
`, N = v((e, d) => {
|
|
88
88
|
const {
|
|
89
|
-
title:
|
|
90
|
-
subtitle:
|
|
91
|
-
buttonText:
|
|
92
|
-
list:
|
|
93
|
-
imageUrl:
|
|
94
|
-
imageHeight:
|
|
95
|
-
imageWidth:
|
|
96
|
-
imageHeightMobile:
|
|
97
|
-
hasBorder:
|
|
98
|
-
backgroundColor:
|
|
99
|
-
onButtonAction:
|
|
89
|
+
title: l,
|
|
90
|
+
subtitle: s,
|
|
91
|
+
buttonText: c,
|
|
92
|
+
list: a,
|
|
93
|
+
imageUrl: g,
|
|
94
|
+
imageHeight: h,
|
|
95
|
+
imageWidth: x,
|
|
96
|
+
imageHeightMobile: p,
|
|
97
|
+
hasBorder: f = !0,
|
|
98
|
+
backgroundColor: b = "transparent",
|
|
99
|
+
onButtonAction: u = () => {
|
|
100
100
|
},
|
|
101
|
-
buttonLink:
|
|
101
|
+
buttonLink: w
|
|
102
102
|
} = e;
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ o(
|
|
104
104
|
H,
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
107
|
-
imgH:
|
|
108
|
-
imgW:
|
|
109
|
-
imgHMob:
|
|
110
|
-
hasBorder:
|
|
111
|
-
bgColor:
|
|
106
|
+
ref: d,
|
|
107
|
+
imgH: h,
|
|
108
|
+
imgW: x,
|
|
109
|
+
imgHMob: p,
|
|
110
|
+
hasBorder: f,
|
|
111
|
+
bgColor: b,
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */ i("div", { className: "header-title", children:
|
|
116
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children:
|
|
113
|
+
/* @__PURE__ */ o(W, { children: [
|
|
114
|
+
/* @__PURE__ */ o(k, { children: [
|
|
115
|
+
/* @__PURE__ */ i("div", { className: "header-title", children: l }),
|
|
116
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: s })
|
|
117
117
|
] }),
|
|
118
|
-
/* @__PURE__ */ i(B, { children:
|
|
118
|
+
/* @__PURE__ */ i(B, { children: a == null ? void 0 : a.map((t, r) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ o("div", { className: "list-item", children: [
|
|
119
119
|
/* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
120
|
-
/* @__PURE__ */ i("span", { children:
|
|
121
|
-
] }) },
|
|
120
|
+
/* @__PURE__ */ i("span", { children: t })
|
|
121
|
+
] }) }, r)) }),
|
|
122
122
|
/* @__PURE__ */ i(
|
|
123
123
|
$,
|
|
124
124
|
{
|
|
@@ -126,12 +126,15 @@ const H = r.div`
|
|
|
126
126
|
color: "gray",
|
|
127
127
|
type: "button",
|
|
128
128
|
btnType: "outline",
|
|
129
|
-
onClick: () =>
|
|
130
|
-
|
|
129
|
+
onClick: (t) => {
|
|
130
|
+
var r;
|
|
131
|
+
(r = t == null ? void 0 : t.target) == null || r.blur(), u(w);
|
|
132
|
+
},
|
|
133
|
+
children: c
|
|
131
134
|
}
|
|
132
135
|
)
|
|
133
136
|
] }),
|
|
134
|
-
/* @__PURE__ */ i("img", { src:
|
|
137
|
+
/* @__PURE__ */ i("img", { src: g })
|
|
135
138
|
]
|
|
136
139
|
}
|
|
137
140
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),p=require("react"),c=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("react"),c=require("./utils-BWzf4vLl.cjs"),w=require("./Icon.cjs"),x=require("./Chip.cjs"),N=require("./index-BRgZcjpI.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),z=require("./suspense-large-DMhn-lIG.cjs"),k=require("./Button.cjs"),q=require("./consts-goSZX3xP.cjs"),R=y.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,
|
|
117
|
+
`,I=p.forwardRef(({title:i,imageUrl:o,options:t,publishedAt:g,timeToReadText:_="{0} min read",timeToRead:f=0,numberOfLikes:n=0,numberOfComments:l=0,isSponsored:d=!1,onSelectCard:m=()=>{},onSelectOption:u=()=>{}},b)=>r.jsxs(R,{isSponsored:d,onClick:m,children:[d&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(N.ProductImageWrapper,{src:o,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:i}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.map((a,h)=>r.jsx(x,{label:a==null?void 0:a.name,color:a==null?void 0:a.color,className:"wrapper__tag",onClick:s=>{s==null||s.stopPropagation(),u(a==null?void 0:a.code)}},`blog-card-sponsored-option__${h+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(g)} • ${c.formatString(_,f)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(n)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(l)]})]})]})]})]})),S=y.styled.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: column;
|
|
120
120
|
align-items: flex-start;
|
|
@@ -196,4 +196,4 @@
|
|
|
196
196
|
gap: 1rem;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,$=p.memo(
|
|
199
|
+
`,$=p.memo(I),C=p.forwardRef(({title:i,subtitle:o,icon:t,buttonText:g,buttonLink:_,timeToReadText:f="{0} min read",items:n,onButtonAction:l=()=>{},onSelectCard:d=()=>{},onSelectOption:m=()=>{},isLoading:u=!1,getImage:b=()=>{}},a)=>{const h=p.useMemo(()=>{var s;return(s=n==null?void 0:n.slice(0,4))==null?void 0:s.map((e,v)=>r.jsx($,{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:f,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,onSelectCard:()=>d==null?void 0:d(e),onSelectOption:j=>m==null?void 0:m(j),imageUrl:b(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${v+1}`))},[n]);return r.jsxs(S,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[i&&r.jsxs("div",{className:"title__text",children:[c.isDefinedNotEmptyString(t)&&r.jsx("i",{className:t}),r.jsx("span",{children:i})]}),l&&r.jsx(k,{text:g,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:s=>{var e;(e=s==null?void 0:s.target)==null||e.blur(),l==null||l(_)}})]}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(z.SuspenseBlogLarge,{isLoading:u,limit:4,keyPrefix:"blog-section",children:h})})]})});module.exports=C;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as v, memo as z, useMemo as
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as v, memo as z, useMemo as j } from "react";
|
|
3
|
+
import { n as I, p as S, q as $, s as b, k as C } from "./utils-BhG1dImS.js";
|
|
4
4
|
import u from "./Icon.js";
|
|
5
5
|
import R from "./Chip.js";
|
|
6
|
-
import { P as L } from "./index-
|
|
6
|
+
import { P as L } from "./index-Cpd68IKh.js";
|
|
7
7
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
-
import { S as P } from "./suspense-large-
|
|
8
|
+
import { S as P } from "./suspense-large-B2lY_x-y.js";
|
|
9
9
|
import U from "./Button.js";
|
|
10
10
|
import { M } from "./consts-BuFChS64.js";
|
|
11
11
|
const T = y.div`
|
|
@@ -15,7 +15,7 @@ const T = y.div`
|
|
|
15
15
|
gap: 1.25rem;
|
|
16
16
|
border-radius: 1.25rem;
|
|
17
17
|
align-items: stretch;
|
|
18
|
-
border: ${(
|
|
18
|
+
border: ${(l) => l != null && l.isSponsored ? "2px solid var(--yellow-500, #f59e0b)" : "1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
|
|
19
19
|
background: var(--white, #fff);
|
|
20
20
|
min-height: 10.5rem;
|
|
21
21
|
position: relative;
|
|
@@ -71,7 +71,7 @@ const T = y.div`
|
|
|
71
71
|
font-weight: 600;
|
|
72
72
|
line-height: 1.5rem;
|
|
73
73
|
letter-spacing: 0.1px;
|
|
74
|
-
${
|
|
74
|
+
${I(3)}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
& .wrapper__tags {
|
|
@@ -126,50 +126,50 @@ const T = y.div`
|
|
|
126
126
|
}
|
|
127
127
|
`, E = v(
|
|
128
128
|
({
|
|
129
|
-
title:
|
|
129
|
+
title: l,
|
|
130
130
|
imageUrl: d,
|
|
131
|
-
options:
|
|
131
|
+
options: s,
|
|
132
132
|
publishedAt: c,
|
|
133
133
|
timeToReadText: g = "{0} min read",
|
|
134
134
|
timeToRead: f = 0,
|
|
135
|
-
numberOfLikes:
|
|
136
|
-
numberOfComments:
|
|
137
|
-
isSponsored:
|
|
135
|
+
numberOfLikes: n = 0,
|
|
136
|
+
numberOfComments: m = 0,
|
|
137
|
+
isSponsored: p = !1,
|
|
138
138
|
onSelectCard: o = () => {
|
|
139
139
|
},
|
|
140
140
|
onSelectOption: _ = () => {
|
|
141
141
|
}
|
|
142
|
-
}, w) => /* @__PURE__ */ a(T, { isSponsored:
|
|
143
|
-
|
|
142
|
+
}, w) => /* @__PURE__ */ a(T, { isSponsored: p, onClick: o, children: [
|
|
143
|
+
p && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(u, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
144
144
|
/* @__PURE__ */ r(L, { src: d, className: "wrapper__image" }),
|
|
145
145
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
147
|
-
/* @__PURE__ */ r("div", { className: "wrapper__title", children:
|
|
148
|
-
/* @__PURE__ */ r("div", { className: "wrapper__tags", children:
|
|
147
|
+
/* @__PURE__ */ r("div", { className: "wrapper__title", children: l }),
|
|
148
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: s && (s == null ? void 0 : s.map((i, h) => /* @__PURE__ */ r(
|
|
149
149
|
R,
|
|
150
150
|
{
|
|
151
151
|
label: i == null ? void 0 : i.name,
|
|
152
152
|
color: i == null ? void 0 : i.color,
|
|
153
153
|
className: "wrapper__tag",
|
|
154
|
-
onClick: (
|
|
155
|
-
|
|
154
|
+
onClick: (t) => {
|
|
155
|
+
t == null || t.stopPropagation(), _(i == null ? void 0 : i.code);
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
`blog-card-sponsored-option__${h + 1}`
|
|
159
159
|
))) })
|
|
160
160
|
] }),
|
|
161
161
|
/* @__PURE__ */ a("div", { className: "wrapper__info", children: [
|
|
162
|
-
/* @__PURE__ */ r("div", { className: "info__text", children: `${
|
|
162
|
+
/* @__PURE__ */ r("div", { className: "info__text", children: `${S(
|
|
163
163
|
c
|
|
164
164
|
)} • ${$(g, f)}` }),
|
|
165
165
|
/* @__PURE__ */ a("div", { className: "info__text", children: [
|
|
166
166
|
/* @__PURE__ */ a("div", { children: [
|
|
167
167
|
/* @__PURE__ */ r(u, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
|
|
168
|
-
b(
|
|
168
|
+
b(n)
|
|
169
169
|
] }),
|
|
170
170
|
/* @__PURE__ */ a("div", { children: [
|
|
171
171
|
/* @__PURE__ */ r(u, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
|
|
172
|
-
b(
|
|
172
|
+
b(m)
|
|
173
173
|
] })
|
|
174
174
|
] })
|
|
175
175
|
] })
|
|
@@ -259,16 +259,16 @@ const T = y.div`
|
|
|
259
259
|
}
|
|
260
260
|
`, B = z(E), Q = v(
|
|
261
261
|
({
|
|
262
|
-
title:
|
|
262
|
+
title: l,
|
|
263
263
|
subtitle: d,
|
|
264
|
-
icon:
|
|
264
|
+
icon: s,
|
|
265
265
|
buttonText: c,
|
|
266
266
|
buttonLink: g,
|
|
267
267
|
timeToReadText: f = "{0} min read",
|
|
268
|
-
items:
|
|
269
|
-
onButtonAction:
|
|
268
|
+
items: n,
|
|
269
|
+
onButtonAction: m = () => {
|
|
270
270
|
},
|
|
271
|
-
onSelectCard:
|
|
271
|
+
onSelectCard: p = () => {
|
|
272
272
|
},
|
|
273
273
|
onSelectOption: o = () => {
|
|
274
274
|
},
|
|
@@ -276,9 +276,9 @@ const T = y.div`
|
|
|
276
276
|
getImage: w = () => {
|
|
277
277
|
}
|
|
278
278
|
}, i) => {
|
|
279
|
-
const h =
|
|
280
|
-
var
|
|
281
|
-
return (
|
|
279
|
+
const h = j(() => {
|
|
280
|
+
var t;
|
|
281
|
+
return (t = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : t.map((e, N) => /* @__PURE__ */ r(
|
|
282
282
|
B,
|
|
283
283
|
{
|
|
284
284
|
title: e == null ? void 0 : e.title,
|
|
@@ -290,28 +290,31 @@ const T = y.div`
|
|
|
290
290
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
291
291
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
292
292
|
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
293
|
-
onSelectCard: () =>
|
|
293
|
+
onSelectCard: () => p == null ? void 0 : p(e),
|
|
294
294
|
onSelectOption: (k) => o == null ? void 0 : o(k),
|
|
295
295
|
imageUrl: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
296
296
|
},
|
|
297
297
|
`blog-card-sponsored__${N + 1}`
|
|
298
298
|
));
|
|
299
|
-
}, [
|
|
299
|
+
}, [n]);
|
|
300
300
|
return /* @__PURE__ */ a(W, { children: [
|
|
301
301
|
/* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
|
|
302
302
|
/* @__PURE__ */ a("div", { className: "wrapper__title", children: [
|
|
303
|
-
|
|
304
|
-
C(
|
|
305
|
-
/* @__PURE__ */ r("span", { children:
|
|
303
|
+
l && /* @__PURE__ */ a("div", { className: "title__text", children: [
|
|
304
|
+
C(s) && /* @__PURE__ */ r("i", { className: s }),
|
|
305
|
+
/* @__PURE__ */ r("span", { children: l })
|
|
306
306
|
] }),
|
|
307
|
-
|
|
307
|
+
m && /* @__PURE__ */ r(
|
|
308
308
|
U,
|
|
309
309
|
{
|
|
310
310
|
text: c,
|
|
311
311
|
borderRadius: "curved",
|
|
312
312
|
btnType: "tinted",
|
|
313
313
|
className: "title__action",
|
|
314
|
-
onClick: () =>
|
|
314
|
+
onClick: (t) => {
|
|
315
|
+
var e;
|
|
316
|
+
(e = t == null ? void 0 : t.target) == null || e.blur(), m == null || m(g);
|
|
317
|
+
}
|
|
315
318
|
}
|
|
316
319
|
)
|
|
317
320
|
] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),a=require("react"),u=require("./suspense-categories-card-simple-B2swGa6t.cjs"),l=require("./style-BTTXJFJN.cjs"),m=a.memo(u.CategorySimpleCard),p=a.forwardRef(({items:r,onSelectCard:i=()=>{},isLoading:n=!1,limit:t=4,isHighlight:c=!1},C)=>{const d=a.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,g)=>s.jsx(m,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},g))},[r]);return s.jsx(l.Wrapper,{className:c?"highlight":"",children:s.jsx("div",{className:"wrapper__grid",children:s.jsx(u.SuspenseSimpleCategoryCard,{isLoading:n,limit:t,keyPrefix:"blog-section",children:d})})})});module.exports=p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { memo as l, forwardRef as f, useMemo as t } from "react";
|
|
3
|
-
import { C as u, S as n } from "./suspense-categories-card-simple-
|
|
3
|
+
import { C as u, S as n } from "./suspense-categories-card-simple-Dkm0oojD.js";
|
|
4
4
|
import { W as c } from "./style-tw6KjI2J.js";
|
|
5
5
|
const C = l(u), M = f(
|
|
6
6
|
({
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-BWzf4vLl.cjs"),N=require("./index-BRgZcjpI.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-DMhn-lIG.cjs"),q=y.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`,I=o.forwardRef(({title:d,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:m=0,numberOfComments:p=0,onSelectCard:g=()=>{},onSelectOption:_=()=>{},onBookmark:
|
|
120
|
+
`,I=o.forwardRef(({title:d,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:m=0,numberOfComments:p=0,onSelectCard:g=()=>{},onSelectOption:_=()=>{},onBookmark:f=()=>{},onShare:e=()=>{}},h)=>r.jsxs(q,{onClick:g,children:[r.jsx(N.ProductImageWrapper,{src:s,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:d}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,j)=>r.jsx(v,{label:t==null?void 0:t.name,color:t==null?void 0:t.color,className:"wrapper__tag",onClick:u=>{u==null||u.stopPropagation(),_(t==null?void 0:t.code)}},`blog-card-sponsored-option__${j+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(a)} • ${c.formatString(n,l)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(m)]}),r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(p)]})]})]}),r.jsxs("div",{className:"info__content",children:[r.jsx(w,{icon:" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),f()}}),r.jsx(w,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}})]})]})]})]})),z=y.styled.div`
|
|
121
121
|
display: flex;
|
|
122
122
|
flex-direction: column;
|
|
123
123
|
align-items: flex-start;
|
|
@@ -139,4 +139,4 @@
|
|
|
139
139
|
bottom: -0.75rem;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
`,k=o.memo(I),C=o.forwardRef(({timeToReadText:d="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:m=!1,getImage:p=()=>{},isSeparated:g=!0},_)=>{const
|
|
142
|
+
`,k=o.memo(I),C=o.forwardRef(({timeToReadText:d="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:m=!1,getImage:p=()=>{},isSeparated:g=!0},_)=>{const f=o.useMemo(()=>s==null?void 0:s.map((e,h)=>r.jsx(k,{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:d,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,onSelectCard:()=>i==null?void 0:i(e),onSelectOption:t=>a==null?void 0:a(t),onShare:()=>n==null?void 0:n(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${h+1}`)),[s]);return r.jsx(z,{className:g?"separated":"",children:r.jsx(R.SuspenseBlogLarge,{isLoading:m,limit:5,keyPrefix:"blog-section",children:f})})});module.exports=C;
|