@lanaco/lnc-react-ui 4.0.112 → 4.0.114
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/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.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 +1 -1
- package/dist/BannerSectionCarousel.js +3 -3
- package/dist/BannerSectionWithListImage.cjs +2 -2
- package/dist/BannerSectionWithListImage.js +9 -9
- package/dist/BlogCardsSponsoredSection.cjs +25 -14
- package/dist/BlogCardsSponsoredSection.js +59 -47
- package/dist/BlogListSection.cjs +37 -9
- package/dist/BlogListSection.js +127 -70
- package/dist/BlogsSectionDetailed.cjs +11 -6
- package/dist/BlogsSectionDetailed.js +7 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +3 -2
- package/dist/BlogsSectionSimpleCentered.js +1 -0
- package/dist/BlogsSectionWithFilters.cjs +2 -2
- package/dist/BlogsSectionWithFilters.js +15 -15
- package/dist/BrandHitsSection.cjs +11 -11
- package/dist/BrandHitsSection.js +40 -38
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +2 -2
- 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 +2 -2
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/ContactSection.cjs +303 -0
- package/dist/ContactSection.js +1614 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +1 -1
- package/dist/{CustomStyles-DtKDPOdk.cjs → CustomStyles-D3JePSNK.cjs} +1 -1
- package/dist/{CustomStyles-Dd8IsVV6.js → CustomStyles-DpKzWczC.js} +2 -2
- package/dist/DailyMotion-CUHIuSln.js +136 -0
- package/dist/DailyMotion-D46sLmkS.cjs +1 -0
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +496 -552
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +2 -2
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +6 -6
- 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 +2 -2
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +4 -4
- 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/Facebook-R53Rry9l.cjs +1 -0
- package/dist/Facebook-aEQQxj-r.js +121 -0
- package/dist/FaqSection.cjs +219 -0
- package/dist/FaqSection.js +481 -0
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +9 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +24 -23
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FilePlayer-9FdL9kM0.js +202 -0
- package/dist/FilePlayer-D9up8eWZ.cjs +1 -0
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.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/GiftCardsSection.cjs +2 -2
- package/dist/GiftCardsSection.js +9 -9
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +1 -1
- package/dist/HelpBannerSection.cjs +62 -0
- package/dist/HelpBannerSection.js +81 -0
- 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/Kaltura-C170sgeD.cjs +1 -0
- package/dist/Kaltura-Dziqci9-.js +121 -0
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +5 -5
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/{KanbanCard-CXRQQu4S.cjs → KanbanCard-CP60mpJO.cjs} +1 -1
- package/dist/{KanbanCard-CIscpYlR.js → KanbanCard-Crf-cTxA.js} +2 -2
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -2
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +1 -1
- package/dist/KanbanHeader.cjs +1 -1
- package/dist/KanbanHeader.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +2 -2
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Mixcloud-Cfn28kqf.js +113 -0
- package/dist/Mixcloud-Towpm_ct.cjs +1 -0
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +2 -2
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/Mux-D0MPDKkM.js +165 -0
- package/dist/Mux-yqNOmuss.cjs +1 -0
- 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/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +2 -2
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +2 -2
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +2 -2
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +2 -2
- package/dist/Preview-B8HyPnfR.cjs +1 -0
- package/dist/Preview-CO6WSP5f.js +127 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.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 +1 -1
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +3 -3
- package/dist/SearchSection-BUD-hnQA.cjs +161 -0
- package/dist/SearchSection-xe0nvARV.js +1214 -0
- package/dist/SearchSection.cjs +1 -0
- package/dist/SearchSection.js +9 -0
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +3 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +4 -4
- package/dist/SoundCloud-D85Da68L.js +123 -0
- package/dist/SoundCloud-YZlcPffr.cjs +1 -0
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/StatsSection.cjs +117 -0
- package/dist/StatsSection.js +154 -0
- package/dist/Streamable-CJQf8evZ.cjs +1 -0
- package/dist/Streamable-Zj4FOeBP.js +115 -0
- 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 +3 -3
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +2 -2
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +2 -2
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +2 -2
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +2 -2
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/Twitch-Ba2O5gTX.cjs +1 -0
- package/dist/Twitch-DC97YrR8.js +117 -0
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +5 -5
- package/dist/Vidyard-BdNB5Wka.cjs +1 -0
- package/dist/Vidyard-D9vYqvNv.js +113 -0
- package/dist/Vimeo-23LnW4uS.js +146 -0
- package/dist/Vimeo-DatJiKS5.cjs +1 -0
- package/dist/Wistia-D--UDN6c.cjs +1 -0
- package/dist/Wistia-d2TQ3m-s.js +124 -0
- package/dist/YouTube-BEkcZxN7.cjs +1 -0
- package/dist/YouTube-x5-hc3s6.js +176 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
- package/dist/{emotion-react.browser.esm-1R69UXoj.cjs → emotion-react.browser.esm-Cvnp-zmB.cjs} +1 -1
- package/dist/{emotion-react.browser.esm-C6iWxXPG.js → emotion-react.browser.esm-DUVZ5oEL.js} +1 -1
- package/dist/{floating-ui.react.esm-h3qa3pb9.js → floating-ui.react.esm-CfpRzwmn.js} +1 -1
- package/dist/{floating-ui.react.esm-Bb1ww976.cjs → floating-ui.react.esm-CiYofNnh.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-Dr-ytKVG.cjs → hoist-non-react-statics.cjs-DGqlkKoS.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-CAHiRNzQ.js → hoist-non-react-statics.cjs-NQME298B.js} +1 -1
- package/dist/{index-EeoArxOx.cjs → index-41nUb2kP.cjs} +1 -1
- package/dist/{index-BlxaTV-D.js → index-6RFrSPs_.js} +1 -1
- package/dist/{index-64mXPFBC.js → index-B1vKwsDE.js} +1 -1
- package/dist/{index-Bq3leL2e.js → index-BXrmgzsU.js} +1 -1
- package/dist/{index-gY9e_8LL.cjs → index-BZnmT78f.cjs} +1 -1
- package/dist/{index-CQLF61YV.js → index-BgRyIsRu.js} +1 -1
- package/dist/{index-BPVoEhTF.cjs → index-BpbMKBf_.cjs} +1 -1
- package/dist/index-CDGmG-qk.cjs +1 -0
- package/dist/{index-S5Cd7WrG.js → index-CblbdqjE.js} +1 -1
- package/dist/{index-DaiUAQVF.cjs → index-Cp66dWMi.cjs} +1 -1
- package/dist/{index-DAOBjHnD.cjs → index-DA7SIHV1.cjs} +1 -1
- package/dist/{index-C1DkD2ug.cjs → index-DCFJmN23.cjs} +1 -1
- package/dist/{index-CkWvbrVT.js → index-Dt62UGku.js} +1 -1
- package/dist/index-wlx30R-h.js +62 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +60 -50
- package/dist/{react-toastify.esm--2awuizG.js → react-toastify.esm-BLQznunb.js} +1 -1
- package/dist/{react-toastify.esm-Dq1k28O7.cjs → react-toastify.esm-BoMuFZcq.cjs} +1 -1
- package/dist/{styled-components.browser.esm-CMTEDJ_5.cjs → styled-components.browser.esm-CvykQBGY.cjs} +1 -1
- package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +1 -1
- package/package.json +8 -2
- package/vite.config.js +14 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as v, memo as
|
|
3
|
-
import { p as
|
|
2
|
+
import { forwardRef as v, memo as j, useMemo as I } from "react";
|
|
3
|
+
import { p as y, s as S, v as C, w as b, k as R } from "./utils-BbgAIA9N.js";
|
|
4
4
|
import w from "./Icon.js";
|
|
5
|
-
import
|
|
6
|
-
import { P
|
|
7
|
-
import { s as
|
|
8
|
-
import {
|
|
9
|
-
import U from "./
|
|
10
|
-
import
|
|
11
|
-
const T =
|
|
5
|
+
import L from "./Chip.js";
|
|
6
|
+
import { P } from "./index-YGcWbzeb.js";
|
|
7
|
+
import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
+
import { M as z } from "./consts-BuFChS64.js";
|
|
9
|
+
import { S as U } from "./suspense-large-BM9s_kZP.js";
|
|
10
|
+
import M from "./Button.js";
|
|
11
|
+
const T = N.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
padding: 1rem;
|
|
14
14
|
align-items: center;
|
|
15
15
|
gap: 1.25rem;
|
|
16
16
|
border-radius: 1.25rem;
|
|
17
17
|
align-items: stretch;
|
|
18
|
-
border: ${(
|
|
18
|
+
border: ${(s) => s != null && s.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
|
+
${y(3)}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
& .wrapper__tags {
|
|
@@ -112,41 +112,53 @@ const T = y.div`
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
@media (max-width:
|
|
115
|
+
@media (max-width: ${z + "px"}) {
|
|
116
116
|
flex-direction: column;
|
|
117
|
+
padding: 0;
|
|
118
|
+
|
|
119
|
+
& .wrapper__image {
|
|
120
|
+
border-bottom-left-radius: 0;
|
|
121
|
+
border-bottom-right-radius: 0;
|
|
122
|
+
}
|
|
117
123
|
|
|
118
124
|
& .wrapper__content {
|
|
119
125
|
gap: 1rem;
|
|
126
|
+
padding: 0 1rem 1rem 1rem;
|
|
127
|
+
|
|
128
|
+
& .wrapper__subcontent {
|
|
129
|
+
order: 1;
|
|
130
|
+
}
|
|
120
131
|
|
|
121
132
|
& .wrapper__info {
|
|
122
133
|
gap: 0.5rem;
|
|
123
|
-
|
|
134
|
+
justify-content: space-between;
|
|
135
|
+
order: 0;
|
|
124
136
|
}
|
|
125
137
|
}
|
|
126
138
|
}
|
|
127
139
|
`, E = v(
|
|
128
140
|
({
|
|
129
|
-
title:
|
|
141
|
+
title: s,
|
|
130
142
|
imageUrl: d,
|
|
131
|
-
options:
|
|
143
|
+
options: l,
|
|
132
144
|
publishedAt: c,
|
|
133
145
|
timeToReadText: g = "{0} min read",
|
|
134
146
|
timeToRead: f = 0,
|
|
135
147
|
numberOfLikes: n = 0,
|
|
136
148
|
numberOfComments: m = 0,
|
|
137
|
-
isSponsored:
|
|
138
|
-
onSelectCard:
|
|
149
|
+
isSponsored: o = !1,
|
|
150
|
+
onSelectCard: p = () => {
|
|
139
151
|
},
|
|
140
152
|
onSelectOption: _ = () => {
|
|
141
153
|
}
|
|
142
|
-
}, u) => /* @__PURE__ */ a(T, { isSponsored:
|
|
143
|
-
|
|
144
|
-
/* @__PURE__ */ r(
|
|
154
|
+
}, u) => /* @__PURE__ */ a(T, { isSponsored: o, onClick: p, children: [
|
|
155
|
+
o && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(w, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
156
|
+
/* @__PURE__ */ r(P, { src: d, className: "wrapper__image" }),
|
|
145
157
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
146
158
|
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
147
|
-
/* @__PURE__ */ r("div", { className: "wrapper__title", children:
|
|
148
|
-
/* @__PURE__ */ r("div", { className: "wrapper__tags", children:
|
|
149
|
-
|
|
159
|
+
/* @__PURE__ */ r("div", { className: "wrapper__title", children: s }),
|
|
160
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: l && (l == null ? void 0 : l.map((i, h) => /* @__PURE__ */ r(
|
|
161
|
+
L,
|
|
150
162
|
{
|
|
151
163
|
label: i == null ? void 0 : i.name,
|
|
152
164
|
color: i == null ? void 0 : i.color,
|
|
@@ -161,7 +173,7 @@ const T = y.div`
|
|
|
161
173
|
/* @__PURE__ */ a("div", { className: "wrapper__info", children: [
|
|
162
174
|
/* @__PURE__ */ r("div", { className: "info__text", children: `${S(
|
|
163
175
|
c
|
|
164
|
-
)} • ${
|
|
176
|
+
)} • ${C(g, f)}` }),
|
|
165
177
|
/* @__PURE__ */ a("div", { className: "info__text", children: [
|
|
166
178
|
/* @__PURE__ */ a("div", { children: [
|
|
167
179
|
/* @__PURE__ */ r(w, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
|
|
@@ -175,7 +187,7 @@ const T = y.div`
|
|
|
175
187
|
] })
|
|
176
188
|
] })
|
|
177
189
|
] })
|
|
178
|
-
), W =
|
|
190
|
+
), W = N.div`
|
|
179
191
|
display: flex;
|
|
180
192
|
flex-direction: column;
|
|
181
193
|
align-items: flex-start;
|
|
@@ -193,7 +205,8 @@ const T = y.div`
|
|
|
193
205
|
|
|
194
206
|
& .title__text {
|
|
195
207
|
color: var(--gray-950, #14161a);
|
|
196
|
-
|
|
208
|
+
${y(2)}
|
|
209
|
+
|
|
197
210
|
font-size: 1.5rem;
|
|
198
211
|
font-style: normal;
|
|
199
212
|
font-weight: 600;
|
|
@@ -244,12 +257,10 @@ const T = y.div`
|
|
|
244
257
|
width: 100%;
|
|
245
258
|
}
|
|
246
259
|
|
|
247
|
-
@media (max-width: ${
|
|
248
|
-
& .
|
|
249
|
-
& .
|
|
250
|
-
|
|
251
|
-
display: none;
|
|
252
|
-
}
|
|
260
|
+
@media (max-width: ${z + "px"}) {
|
|
261
|
+
& .wrapper__title {
|
|
262
|
+
& .title__text {
|
|
263
|
+
font-size: 1.375rem;
|
|
253
264
|
}
|
|
254
265
|
}
|
|
255
266
|
|
|
@@ -258,28 +269,28 @@ const T = y.div`
|
|
|
258
269
|
gap: 1rem;
|
|
259
270
|
}
|
|
260
271
|
}
|
|
261
|
-
`, B =
|
|
272
|
+
`, B = j(E), Q = v(
|
|
262
273
|
({
|
|
263
|
-
title:
|
|
274
|
+
title: s,
|
|
264
275
|
subtitle: d,
|
|
265
|
-
icon:
|
|
276
|
+
icon: l,
|
|
266
277
|
buttonText: c,
|
|
267
278
|
buttonLink: g,
|
|
268
279
|
timeToReadText: f = "{0} min read",
|
|
269
280
|
items: n,
|
|
270
281
|
onButtonAction: m = () => {
|
|
271
282
|
},
|
|
272
|
-
onSelectCard:
|
|
283
|
+
onSelectCard: o = () => {
|
|
273
284
|
},
|
|
274
|
-
onSelectOption:
|
|
285
|
+
onSelectOption: p = () => {
|
|
275
286
|
},
|
|
276
287
|
isLoading: _ = !1,
|
|
277
288
|
getImage: u = () => {
|
|
278
289
|
}
|
|
279
290
|
}, i) => {
|
|
280
|
-
const h =
|
|
291
|
+
const h = I(() => {
|
|
281
292
|
var t;
|
|
282
|
-
return (t = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : t.map((e,
|
|
293
|
+
return (t = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : t.map((e, k) => /* @__PURE__ */ r(
|
|
283
294
|
B,
|
|
284
295
|
{
|
|
285
296
|
title: e == null ? void 0 : e.title,
|
|
@@ -291,27 +302,28 @@ const T = y.div`
|
|
|
291
302
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
292
303
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
293
304
|
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
294
|
-
onSelectCard: () =>
|
|
295
|
-
onSelectOption: (
|
|
305
|
+
onSelectCard: () => o == null ? void 0 : o(e),
|
|
306
|
+
onSelectOption: ($) => p == null ? void 0 : p($),
|
|
296
307
|
imageUrl: u(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
297
308
|
},
|
|
298
|
-
`blog-card-sponsored__${
|
|
309
|
+
`blog-card-sponsored__${k + 1}`
|
|
299
310
|
));
|
|
300
311
|
}, [n]);
|
|
301
312
|
return /* @__PURE__ */ a(W, { children: [
|
|
302
313
|
/* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
|
|
303
314
|
/* @__PURE__ */ a("div", { className: "wrapper__title", children: [
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
/* @__PURE__ */ r("span", { children:
|
|
315
|
+
s && /* @__PURE__ */ a("div", { className: "title__text", children: [
|
|
316
|
+
R(l) && /* @__PURE__ */ r("i", { className: l }),
|
|
317
|
+
/* @__PURE__ */ r("span", { children: s })
|
|
307
318
|
] }),
|
|
308
319
|
m && /* @__PURE__ */ r(
|
|
309
|
-
|
|
320
|
+
M,
|
|
310
321
|
{
|
|
311
322
|
text: c,
|
|
312
323
|
borderRadius: "curved",
|
|
313
324
|
btnType: "tinted",
|
|
314
325
|
className: "title__action",
|
|
326
|
+
color: "neutral",
|
|
315
327
|
onClick: (t) => {
|
|
316
328
|
var e;
|
|
317
329
|
(e = t == null ? void 0 : t.target) == null || e.blur(), m == null || m(g);
|
|
@@ -322,7 +334,7 @@ const T = y.div`
|
|
|
322
334
|
d && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: d })
|
|
323
335
|
] }),
|
|
324
336
|
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: /* @__PURE__ */ r(
|
|
325
|
-
|
|
337
|
+
U,
|
|
326
338
|
{
|
|
327
339
|
isLoading: _,
|
|
328
340
|
limit: 4,
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),y=require("./Icon.cjs"),m=require("./IconButton.cjs"),k=require("./Chip.cjs"),o=require("./utils-CZynEOC_.cjs"),N=require("./index-BvSNRLNa.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),q=require("./suspense-large-CtcwWswP.cjs"),I=j.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
position: relative;
|
|
12
12
|
width: 100%;
|
|
13
13
|
|
|
14
|
+
& .mobile-only {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
&:hover {
|
|
15
19
|
cursor: pointer;
|
|
16
20
|
}
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
& .info__content {
|
|
76
80
|
display: flex;
|
|
77
81
|
align-items: center;
|
|
82
|
+
justify-content: space-between;
|
|
78
83
|
|
|
79
84
|
&:first-of-type {
|
|
80
85
|
flex-grow: 1;
|
|
@@ -95,29 +100,52 @@
|
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
|
|
98
|
-
@media (max-width:
|
|
103
|
+
@media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
|
|
99
104
|
flex-direction: column;
|
|
105
|
+
padding: 0;
|
|
106
|
+
background: transparent;
|
|
107
|
+
border: none;
|
|
108
|
+
|
|
109
|
+
& .desktop-only {
|
|
110
|
+
display: none !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
& .mobile-only {
|
|
114
|
+
display: block;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
& .wrapper__subcontent {
|
|
118
|
+
order: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
& .wrapper__tags-action {
|
|
122
|
+
display: flex;
|
|
123
|
+
width: 100%;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: space-between;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
& .wrapper__tags {
|
|
129
|
+
flex: 1;
|
|
130
|
+
}
|
|
100
131
|
|
|
101
132
|
& .wrapper__content {
|
|
102
133
|
gap: 1rem;
|
|
103
134
|
|
|
104
135
|
& .wrapper__info {
|
|
105
136
|
gap: 0.5rem;
|
|
106
|
-
|
|
137
|
+
justify-content: space-between;
|
|
107
138
|
width: 100%;
|
|
139
|
+
order: 0;
|
|
108
140
|
|
|
109
141
|
& .info__content {
|
|
110
142
|
align-items: flex-start;
|
|
111
143
|
width: 100%;
|
|
112
|
-
|
|
113
|
-
&:first-of-type {
|
|
114
|
-
flex-direction: column;
|
|
115
|
-
}
|
|
116
144
|
}
|
|
117
145
|
}
|
|
118
146
|
}
|
|
119
147
|
}
|
|
120
|
-
`,
|
|
148
|
+
`,C=p.forwardRef(({title:g,imageUrl:i,options:s,publishedAt:n,timeToReadText:a="{0} min read",timeToRead:l=0,numberOfLikes:u=0,numberOfComments:f=0,isBookmarked:c=!1,onSelectCard:h=()=>{},onSelectOption:_=()=>{},onBookmark:e=()=>{},onShare:d=()=>{}},w)=>t.jsxs(I,{onClick:h,children:[t.jsx(N.ProductImageWrapper,{src:i,className:"wrapper__image"}),t.jsxs("div",{className:"wrapper__content",children:[t.jsxs("div",{className:"wrapper__subcontent",children:[t.jsx("div",{className:"wrapper__title",children:g}),t.jsxs("div",{className:"wrapper__tags-action",children:[t.jsx("div",{className:"wrapper__tags",children:s&&(s==null?void 0:s.map((r,v)=>t.jsx(k,{label:r==null?void 0:r.name,color:r==null?void 0:r.color,className:"wrapper__tag",onClick:b=>{b==null||b.stopPropagation(),_(r==null?void 0:r.code)}},`blog-card-sponsored-option__${v+1}`)))}),t.jsxs("div",{className:"info__content mobile-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]}),t.jsxs("div",{className:"wrapper__info",children:[t.jsxs("div",{className:"info__content",children:[t.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(n)} • ${o.formatString(a,l)}`}),t.jsxs("div",{className:"info__text",children:[t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),o.getRoundedNumber(u)]}),t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),o.getRoundedNumber(f)]})]})]}),t.jsxs("div",{className:"info__content desktop-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]})]})),P=j.styled.div`
|
|
121
149
|
display: flex;
|
|
122
150
|
flex-direction: column;
|
|
123
151
|
align-items: flex-start;
|
|
@@ -139,4 +167,4 @@
|
|
|
139
167
|
bottom: -0.75rem;
|
|
140
168
|
}
|
|
141
169
|
}
|
|
142
|
-
`,
|
|
170
|
+
`,z=p.memo(C),L=p.forwardRef(({timeToReadText:g="{0} min read",items:i,onSelectCard:s=()=>{},onSelectOption:n=()=>{},onShare:a=()=>{},onBookmark:l=()=>{},isLoading:u=!1,getImage:f=()=>{},isSeparated:c=!0},h)=>{const _=p.useMemo(()=>i==null?void 0:i.map((e,d)=>t.jsx(z,{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:g,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:()=>s==null?void 0:s(e),onSelectOption:w=>n==null?void 0:n(w),onShare:()=>a==null?void 0:a(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:f(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${d+1}`)),[i]);return t.jsx(P,{className:c?"separated":"",children:t.jsx(q.SuspenseBlogLarge,{isLoading:u,limit:5,keyPrefix:"blog-section",children:_})})});module.exports=L;
|
package/dist/BlogListSection.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { p as
|
|
7
|
-
import { P as
|
|
8
|
-
import { s as
|
|
9
|
-
import {
|
|
10
|
-
|
|
2
|
+
import { forwardRef as v, memo as j, useMemo as I } from "react";
|
|
3
|
+
import w from "./Icon.js";
|
|
4
|
+
import d from "./IconButton.js";
|
|
5
|
+
import P from "./Chip.js";
|
|
6
|
+
import { p as R, s as C, v as z, w as y } from "./utils-BbgAIA9N.js";
|
|
7
|
+
import { P as T } from "./index-YGcWbzeb.js";
|
|
8
|
+
import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
+
import { M as $ } from "./consts-BuFChS64.js";
|
|
10
|
+
import { S as L } from "./suspense-large-BM9s_kZP.js";
|
|
11
|
+
const B = k.div`
|
|
11
12
|
display: flex;
|
|
12
13
|
padding: 1rem;
|
|
13
14
|
align-items: center;
|
|
@@ -20,6 +21,10 @@ const L = N.div`
|
|
|
20
21
|
position: relative;
|
|
21
22
|
width: 100%;
|
|
22
23
|
|
|
24
|
+
& .mobile-only {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
&:hover {
|
|
24
29
|
cursor: pointer;
|
|
25
30
|
}
|
|
@@ -52,7 +57,7 @@ const L = N.div`
|
|
|
52
57
|
font-weight: 600;
|
|
53
58
|
line-height: 1.5rem;
|
|
54
59
|
letter-spacing: 0.1px;
|
|
55
|
-
${
|
|
60
|
+
${R(3)}
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
& .wrapper__tags {
|
|
@@ -84,6 +89,7 @@ const L = N.div`
|
|
|
84
89
|
& .info__content {
|
|
85
90
|
display: flex;
|
|
86
91
|
align-items: center;
|
|
92
|
+
justify-content: space-between;
|
|
87
93
|
|
|
88
94
|
&:first-of-type {
|
|
89
95
|
flex-grow: 1;
|
|
@@ -104,86 +110,137 @@ const L = N.div`
|
|
|
104
110
|
}
|
|
105
111
|
}
|
|
106
112
|
|
|
107
|
-
@media (max-width:
|
|
113
|
+
@media (max-width: ${$ + "px"}) {
|
|
108
114
|
flex-direction: column;
|
|
115
|
+
padding: 0;
|
|
116
|
+
background: transparent;
|
|
117
|
+
border: none;
|
|
118
|
+
|
|
119
|
+
& .desktop-only {
|
|
120
|
+
display: none !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& .mobile-only {
|
|
124
|
+
display: block;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
& .wrapper__subcontent {
|
|
128
|
+
order: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& .wrapper__tags-action {
|
|
132
|
+
display: flex;
|
|
133
|
+
width: 100%;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
& .wrapper__tags {
|
|
139
|
+
flex: 1;
|
|
140
|
+
}
|
|
109
141
|
|
|
110
142
|
& .wrapper__content {
|
|
111
143
|
gap: 1rem;
|
|
112
144
|
|
|
113
145
|
& .wrapper__info {
|
|
114
146
|
gap: 0.5rem;
|
|
115
|
-
|
|
147
|
+
justify-content: space-between;
|
|
116
148
|
width: 100%;
|
|
149
|
+
order: 0;
|
|
117
150
|
|
|
118
151
|
& .info__content {
|
|
119
152
|
align-items: flex-start;
|
|
120
153
|
width: 100%;
|
|
121
|
-
|
|
122
|
-
&:first-of-type {
|
|
123
|
-
flex-direction: column;
|
|
124
|
-
}
|
|
125
154
|
}
|
|
126
155
|
}
|
|
127
156
|
}
|
|
128
157
|
}
|
|
129
|
-
`,
|
|
158
|
+
`, M = v(
|
|
130
159
|
({
|
|
131
|
-
title:
|
|
160
|
+
title: p,
|
|
132
161
|
imageUrl: n,
|
|
133
162
|
options: a,
|
|
134
163
|
publishedAt: l,
|
|
135
|
-
timeToReadText:
|
|
136
|
-
timeToRead:
|
|
137
|
-
numberOfLikes:
|
|
138
|
-
numberOfComments:
|
|
139
|
-
isBookmarked:
|
|
140
|
-
onSelectCard:
|
|
164
|
+
timeToReadText: o = "{0} min read",
|
|
165
|
+
timeToRead: s = 0,
|
|
166
|
+
numberOfLikes: g = 0,
|
|
167
|
+
numberOfComments: f = 0,
|
|
168
|
+
isBookmarked: c = !1,
|
|
169
|
+
onSelectCard: b = () => {
|
|
141
170
|
},
|
|
142
|
-
onSelectOption:
|
|
171
|
+
onSelectOption: _ = () => {
|
|
143
172
|
},
|
|
144
173
|
onBookmark: e = () => {
|
|
145
174
|
},
|
|
146
|
-
onShare:
|
|
175
|
+
onShare: m = () => {
|
|
147
176
|
}
|
|
148
|
-
}, h) => /* @__PURE__ */ i(
|
|
149
|
-
/* @__PURE__ */ t(
|
|
177
|
+
}, h) => /* @__PURE__ */ i(B, { onClick: b, children: [
|
|
178
|
+
/* @__PURE__ */ t(T, { src: n, className: "wrapper__image" }),
|
|
150
179
|
/* @__PURE__ */ i("div", { className: "wrapper__content", children: [
|
|
151
180
|
/* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
|
|
152
|
-
/* @__PURE__ */ t("div", { className: "wrapper__title", children:
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
181
|
+
/* @__PURE__ */ t("div", { className: "wrapper__title", children: p }),
|
|
182
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags-action", children: [
|
|
183
|
+
/* @__PURE__ */ t("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((r, N) => /* @__PURE__ */ t(
|
|
184
|
+
P,
|
|
185
|
+
{
|
|
186
|
+
label: r == null ? void 0 : r.name,
|
|
187
|
+
color: r == null ? void 0 : r.color,
|
|
188
|
+
className: "wrapper__tag",
|
|
189
|
+
onClick: (u) => {
|
|
190
|
+
u == null || u.stopPropagation(), _(r == null ? void 0 : r.code);
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
`blog-card-sponsored-option__${N + 1}`
|
|
194
|
+
))) }),
|
|
195
|
+
/* @__PURE__ */ i("div", { className: "info__content mobile-only", children: [
|
|
196
|
+
/* @__PURE__ */ t(
|
|
197
|
+
d,
|
|
198
|
+
{
|
|
199
|
+
icon: c ? " mng-lnc-bookmark--filled" : " mng-lnc-bookmark",
|
|
200
|
+
borderRadius: "curved",
|
|
201
|
+
btnType: "basic",
|
|
202
|
+
color: "neutral",
|
|
203
|
+
onClick: (r) => {
|
|
204
|
+
r == null || r.stopPropagation(), e();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
/* @__PURE__ */ t(
|
|
209
|
+
d,
|
|
210
|
+
{
|
|
211
|
+
icon: " mng-lnc-share",
|
|
212
|
+
borderRadius: "curved",
|
|
213
|
+
btnType: "basic",
|
|
214
|
+
color: "neutral",
|
|
215
|
+
onClick: (r) => {
|
|
216
|
+
r == null || r.stopPropagation(), m();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
] })
|
|
221
|
+
] })
|
|
165
222
|
] }),
|
|
166
223
|
/* @__PURE__ */ i("div", { className: "wrapper__info", children: [
|
|
167
224
|
/* @__PURE__ */ i("div", { className: "info__content", children: [
|
|
168
225
|
/* @__PURE__ */ t("div", { className: "info__text", children: `${C(
|
|
169
226
|
l
|
|
170
|
-
)} • ${
|
|
227
|
+
)} • ${z(o, s)}` }),
|
|
171
228
|
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
172
229
|
/* @__PURE__ */ i("div", { children: [
|
|
173
|
-
/* @__PURE__ */ t(
|
|
174
|
-
|
|
230
|
+
/* @__PURE__ */ t(w, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
|
|
231
|
+
y(g)
|
|
175
232
|
] }),
|
|
176
233
|
/* @__PURE__ */ i("div", { children: [
|
|
177
|
-
/* @__PURE__ */ t(
|
|
178
|
-
|
|
234
|
+
/* @__PURE__ */ t(w, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
|
|
235
|
+
y(f)
|
|
179
236
|
] })
|
|
180
237
|
] })
|
|
181
238
|
] }),
|
|
182
|
-
/* @__PURE__ */ i("div", { className: "info__content", children: [
|
|
239
|
+
/* @__PURE__ */ i("div", { className: "info__content desktop-only", children: [
|
|
183
240
|
/* @__PURE__ */ t(
|
|
184
|
-
|
|
241
|
+
d,
|
|
185
242
|
{
|
|
186
|
-
icon:
|
|
243
|
+
icon: c ? " mng-lnc-bookmark--filled" : " mng-lnc-bookmark",
|
|
187
244
|
borderRadius: "curved",
|
|
188
245
|
btnType: "basic",
|
|
189
246
|
color: "neutral",
|
|
@@ -193,14 +250,14 @@ const L = N.div`
|
|
|
193
250
|
}
|
|
194
251
|
),
|
|
195
252
|
/* @__PURE__ */ t(
|
|
196
|
-
|
|
253
|
+
d,
|
|
197
254
|
{
|
|
198
255
|
icon: " mng-lnc-share",
|
|
199
256
|
borderRadius: "curved",
|
|
200
257
|
btnType: "basic",
|
|
201
258
|
color: "neutral",
|
|
202
259
|
onClick: (r) => {
|
|
203
|
-
r == null || r.stopPropagation(),
|
|
260
|
+
r == null || r.stopPropagation(), m();
|
|
204
261
|
}
|
|
205
262
|
}
|
|
206
263
|
)
|
|
@@ -208,7 +265,7 @@ const L = N.div`
|
|
|
208
265
|
] })
|
|
209
266
|
] })
|
|
210
267
|
] })
|
|
211
|
-
), U =
|
|
268
|
+
), U = k.div`
|
|
212
269
|
display: flex;
|
|
213
270
|
flex-direction: column;
|
|
214
271
|
align-items: flex-start;
|
|
@@ -230,31 +287,31 @@ const L = N.div`
|
|
|
230
287
|
bottom: -0.75rem;
|
|
231
288
|
}
|
|
232
289
|
}
|
|
233
|
-
`, W =
|
|
290
|
+
`, W = j(M), J = v(
|
|
234
291
|
({
|
|
235
|
-
timeToReadText:
|
|
292
|
+
timeToReadText: p = "{0} min read",
|
|
236
293
|
items: n,
|
|
237
294
|
onSelectCard: a = () => {
|
|
238
295
|
},
|
|
239
296
|
onSelectOption: l = () => {
|
|
240
297
|
},
|
|
241
|
-
onShare:
|
|
298
|
+
onShare: o = () => {
|
|
242
299
|
},
|
|
243
|
-
onBookmark:
|
|
300
|
+
onBookmark: s = () => {
|
|
244
301
|
},
|
|
245
|
-
isLoading:
|
|
246
|
-
getImage:
|
|
302
|
+
isLoading: g = !1,
|
|
303
|
+
getImage: f = () => {
|
|
247
304
|
},
|
|
248
|
-
isSeparated:
|
|
249
|
-
},
|
|
250
|
-
const
|
|
305
|
+
isSeparated: c = !0
|
|
306
|
+
}, b) => {
|
|
307
|
+
const _ = I(() => n == null ? void 0 : n.map((e, m) => /* @__PURE__ */ t(
|
|
251
308
|
W,
|
|
252
309
|
{
|
|
253
310
|
title: e == null ? void 0 : e.title,
|
|
254
311
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
255
312
|
options: e == null ? void 0 : e.options,
|
|
256
313
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
257
|
-
timeToReadText:
|
|
314
|
+
timeToReadText: p,
|
|
258
315
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
259
316
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
260
317
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
@@ -262,19 +319,19 @@ const L = N.div`
|
|
|
262
319
|
isBookmarked: e == null ? void 0 : e.isBookmarked,
|
|
263
320
|
onSelectCard: () => a == null ? void 0 : a(e),
|
|
264
321
|
onSelectOption: (h) => l == null ? void 0 : l(h),
|
|
265
|
-
onShare: () =>
|
|
266
|
-
onBookmark: () =>
|
|
267
|
-
imageUrl:
|
|
322
|
+
onShare: () => o == null ? void 0 : o(e),
|
|
323
|
+
onBookmark: () => s == null ? void 0 : s(e),
|
|
324
|
+
imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
268
325
|
},
|
|
269
|
-
`blog-card-item__${
|
|
326
|
+
`blog-card-item__${m + 1}`
|
|
270
327
|
)), [n]);
|
|
271
|
-
return /* @__PURE__ */ t(U, { className:
|
|
272
|
-
|
|
328
|
+
return /* @__PURE__ */ t(U, { className: c ? "separated" : "", children: /* @__PURE__ */ t(
|
|
329
|
+
L,
|
|
273
330
|
{
|
|
274
|
-
isLoading:
|
|
331
|
+
isLoading: g,
|
|
275
332
|
limit: 5,
|
|
276
333
|
keyPrefix: "blog-section",
|
|
277
|
-
children:
|
|
334
|
+
children: _
|
|
278
335
|
}
|
|
279
336
|
) });
|
|
280
337
|
}
|