@lanaco/lnc-react-ui 4.0.61 → 4.0.63
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 +1 -1
- package/dist/BannerSectionCarousel.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +199 -0
- package/dist/BlogCardsSponsoredSection.js +334 -0
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +142 -0
- package/dist/BlogListSection.js +282 -0
- 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 +6 -5
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +2 -2
- package/dist/BlogsSectionLarge.cjs +4 -4
- package/dist/BlogsSectionLarge.js +40 -58
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +2 -2
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +3 -3
- 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 +2 -2
- package/dist/{CustomStyles-8wE3hn1Q.cjs → CustomStyles-ChA_393q.cjs} +1 -1
- package/dist/{CustomStyles-D8sjeJmu.js → CustomStyles-ZBxlReAi.js} +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 +1 -1
- package/dist/DetailedProductsSection.js +3 -3
- 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 +1 -1
- package/dist/FieldOfInterestsMasonrySection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -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 +1 -1
- package/dist/GeneralWithTagsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- 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 +1 -1
- package/dist/Kanban.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/SimpleCategoriesSection.js +2 -2
- 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 +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-Ch2hdKsi.js → index-5F6QsgOG.js} +1 -1
- package/dist/{index-CLNtYToJ.js → index-BLxkXrqU.js} +1 -1
- package/dist/{index-7JKuAPYS.cjs → index-BuKj-ITH.cjs} +1 -1
- package/dist/{index-DjzWqEsz.cjs → index-CAqPGuiA.cjs} +1 -1
- package/dist/{index-DmP0RzLr.js → index-CcLiL4eM.js} +1 -1
- package/dist/{index-D0NN682o.cjs → index-CfA579i2.cjs} +1 -1
- package/dist/{index-CC30-IXH.js → index-DXmajb7F.js} +1 -1
- package/dist/index-Q6GmUkJx.cjs +1 -0
- package/dist/index-bTSzxSNK.js +48 -0
- package/dist/{index-CFVE57cd.js → index-m9SN4CZC.js} +2 -2
- package/dist/{index-B_2gdl_u.cjs → index-opywxmcY.cjs} +1 -1
- package/dist/{index-o0E0w1Mi.cjs → index-ryadTWiS.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +33 -29
- package/dist/{skeleton-BePxSNQP.cjs → skeleton-CfSTJ_9L.js} +21 -8
- package/dist/{skeleton-BTGcDgNY.cjs → skeleton-CtJG0_SN.cjs} +1 -1
- package/dist/skeleton-D0bLAwfj.cjs +93 -0
- package/dist/{skeleton-CwE74giy.js → skeleton-iQWpOw9K.js} +2 -2
- package/dist/{suspense-categories-card-simple-BEaaS-oz.js → suspense-categories-card-simple-Tiure3NX.js} +1 -1
- package/dist/{suspense-categories-card-simple-HXlnt5ki.cjs → suspense-categories-card-simple-o7JK0fA4.cjs} +1 -1
- package/dist/suspense-large-CQpNiB26.js +26 -0
- package/dist/suspense-large-v60EOiID.cjs +1 -0
- package/dist/{suspense-product-card-detailed-BJKydAoX.cjs → suspense-product-card-detailed-D490oqXC.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-DoWnjOPj.js → suspense-product-card-detailed-DDXuOKib.js} +2 -2
- package/dist/{suspense-product-card-simple-QlbK_FyB.cjs → suspense-product-card-simple-CQxB1MF4.cjs} +1 -1
- package/dist/{suspense-product-card-simple--_T6ibCi.js → suspense-product-card-simple-fSvde3aM.js} +1 -1
- package/dist/{utils-NZLCh-J5.cjs → utils-BXPz9bck.cjs} +2 -2
- package/dist/{utils-DtRLzzTZ.js → utils-DCs-SbIv.js} +18 -12
- package/package.json +4 -2
- package/vite.config.js +8 -0
- package/dist/skeleton-BSYKhOiK.js +0 -146
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, memo as z, useMemo as S } from "react";
|
|
3
|
+
import { t as j, p as I, q as $, s as b, k as C } from "./utils-DCs-SbIv.js";
|
|
4
|
+
import u from "./Icon.js";
|
|
5
|
+
import R from "./Chip.js";
|
|
6
|
+
import { P as L } from "./index-BLxkXrqU.js";
|
|
7
|
+
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
+
import { S as P } from "./suspense-large-CQpNiB26.js";
|
|
9
|
+
import U from "./Button.js";
|
|
10
|
+
import { M } from "./consts-C1uHV4xc.js";
|
|
11
|
+
const T = y.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: 1rem;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 1.25rem;
|
|
16
|
+
border-radius: 1.25rem;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
border: ${(t) => t != null && t.isSponsored ? "2px solid var(--yellow-500, #f59e0b)" : "1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
|
|
19
|
+
background: var(--white, #fff);
|
|
20
|
+
min-height: 10.5rem;
|
|
21
|
+
position: relative;
|
|
22
|
+
width: 100%;
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& .wrapper__sponsored {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: -0.5rem;
|
|
31
|
+
right: -0.5rem;
|
|
32
|
+
background: var(--yellow-500, #f59e0b);
|
|
33
|
+
height: 2rem;
|
|
34
|
+
width: 2rem;
|
|
35
|
+
border-radius: 999px;
|
|
36
|
+
|
|
37
|
+
& span {
|
|
38
|
+
margin-top: 2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& i {
|
|
42
|
+
color: var(--white, #fff);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& .wrapper__image {
|
|
47
|
+
width: 100%;
|
|
48
|
+
object-fit: cover;
|
|
49
|
+
height: auto;
|
|
50
|
+
max-height: 9rem;
|
|
51
|
+
border-radius: 0.75rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& .wrapper__content {
|
|
55
|
+
display: flex;
|
|
56
|
+
width: 100%;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
align-items: flex-start;
|
|
60
|
+
|
|
61
|
+
& .wrapper__subcontent {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
align-items: flex-start;
|
|
65
|
+
gap: 0.5rem;
|
|
66
|
+
|
|
67
|
+
& .wrapper__title {
|
|
68
|
+
color: var(--gray-950, #14161a);
|
|
69
|
+
font-size: 1rem;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
line-height: 1.5rem;
|
|
73
|
+
letter-spacing: 0.1px;
|
|
74
|
+
${j(3)}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
& .wrapper__tags {
|
|
78
|
+
display: flex;
|
|
79
|
+
gap: 0.25rem;
|
|
80
|
+
|
|
81
|
+
& .wrapper__tag {
|
|
82
|
+
font-size: 0.75rem;
|
|
83
|
+
font-style: normal;
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
line-height: 1rem;
|
|
86
|
+
letter-spacing: 0.5px;
|
|
87
|
+
padding: 0.125rem 0.5rem;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: 0.25rem;
|
|
91
|
+
height: 1.25rem;
|
|
92
|
+
border: 1px solid;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& .wrapper__info {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
width: 100%;
|
|
101
|
+
|
|
102
|
+
& .info__text {
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: 0.5rem;
|
|
105
|
+
color: var(--gray-600, #676e79);
|
|
106
|
+
font-size: 0.75rem;
|
|
107
|
+
font-style: normal;
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
line-height: 1rem;
|
|
110
|
+
letter-spacing: 0.4px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@media (max-width: 400px) {
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
|
|
118
|
+
& .wrapper__content {
|
|
119
|
+
gap: 1rem;
|
|
120
|
+
|
|
121
|
+
& .wrapper__info {
|
|
122
|
+
gap: 0.5rem;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
`, E = v(
|
|
128
|
+
({
|
|
129
|
+
title: t,
|
|
130
|
+
imageUrl: d,
|
|
131
|
+
options: l,
|
|
132
|
+
publishedAt: c,
|
|
133
|
+
timeToReadText: g = "{0} min read",
|
|
134
|
+
timeToRead: f = 0,
|
|
135
|
+
numberOfLikes: s = 0,
|
|
136
|
+
numberOfComments: n = 0,
|
|
137
|
+
isSponsored: m = !1,
|
|
138
|
+
onSelectCard: o = () => {
|
|
139
|
+
},
|
|
140
|
+
onSelectOption: _ = () => {
|
|
141
|
+
}
|
|
142
|
+
}, w) => /* @__PURE__ */ a(T, { isSponsored: m, onClick: o, children: [
|
|
143
|
+
m && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(u, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
144
|
+
/* @__PURE__ */ r(L, { src: d, className: "wrapper__image" }),
|
|
145
|
+
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
146
|
+
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
147
|
+
/* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
|
|
148
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: l && (l == null ? void 0 : l.map((i, h) => /* @__PURE__ */ r(
|
|
149
|
+
R,
|
|
150
|
+
{
|
|
151
|
+
label: i == null ? void 0 : i.name,
|
|
152
|
+
color: i == null ? void 0 : i.color,
|
|
153
|
+
className: "wrapper__tag",
|
|
154
|
+
onClick: (p) => {
|
|
155
|
+
p == null || p.stopPropagation(), _(i == null ? void 0 : i.code);
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
`blog-card-sponsored-option__${h + 1}`
|
|
159
|
+
))) })
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ a("div", { className: "wrapper__info", children: [
|
|
162
|
+
/* @__PURE__ */ r("div", { className: "info__text", children: `${I(
|
|
163
|
+
c
|
|
164
|
+
)} • ${$(g, f)}` }),
|
|
165
|
+
/* @__PURE__ */ a("div", { className: "info__text", children: [
|
|
166
|
+
/* @__PURE__ */ a("div", { children: [
|
|
167
|
+
/* @__PURE__ */ r(u, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
|
|
168
|
+
b(s)
|
|
169
|
+
] }),
|
|
170
|
+
/* @__PURE__ */ a("div", { children: [
|
|
171
|
+
/* @__PURE__ */ r(u, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
|
|
172
|
+
b(n)
|
|
173
|
+
] })
|
|
174
|
+
] })
|
|
175
|
+
] })
|
|
176
|
+
] })
|
|
177
|
+
] })
|
|
178
|
+
), W = y.div`
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
align-items: flex-start;
|
|
182
|
+
gap: 1.5rem;
|
|
183
|
+
|
|
184
|
+
& .wrapper__heading {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
gap: 1rem;
|
|
188
|
+
width: 100%;
|
|
189
|
+
|
|
190
|
+
& .wrapper__title {
|
|
191
|
+
display: flex;
|
|
192
|
+
justify-content: space-between;
|
|
193
|
+
|
|
194
|
+
& .title__text {
|
|
195
|
+
color: var(--gray-950, #14161a);
|
|
196
|
+
text-align: center;
|
|
197
|
+
font-size: 1.5rem;
|
|
198
|
+
font-style: normal;
|
|
199
|
+
font-weight: 600;
|
|
200
|
+
line-height: 2rem;
|
|
201
|
+
letter-spacing: -0.47px;
|
|
202
|
+
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
gap: 0.5rem;
|
|
206
|
+
|
|
207
|
+
& i {
|
|
208
|
+
font-size: 1.5rem;
|
|
209
|
+
color: var(--primary-500, #f59e0b);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
& .title__action {
|
|
214
|
+
color: var(--gray-950, #14161a);
|
|
215
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
|
|
216
|
+
|
|
217
|
+
&:hover {
|
|
218
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:focus {
|
|
222
|
+
outline: none;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
& .wrapper__subtitle {
|
|
228
|
+
color: var(---gray-600, #676e79);
|
|
229
|
+
font-size: 0.875rem;
|
|
230
|
+
font-style: normal;
|
|
231
|
+
font-weight: 400;
|
|
232
|
+
line-height: 1.25rem;
|
|
233
|
+
letter-spacing: 0.25px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
& .wrapper__cards {
|
|
238
|
+
display: grid;
|
|
239
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
240
|
+
gap: 1.25rem;
|
|
241
|
+
justify-items: center;
|
|
242
|
+
align-items: center;
|
|
243
|
+
width: 100%;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@media (max-width: ${M + "px"}) {
|
|
247
|
+
& .wrapper__heading {
|
|
248
|
+
& .wrapper__title {
|
|
249
|
+
& .title__action {
|
|
250
|
+
display: none;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
& .wrapper__cards {
|
|
256
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
257
|
+
gap: 1rem;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
`, B = z(E), Q = v(
|
|
261
|
+
({
|
|
262
|
+
title: t,
|
|
263
|
+
subtitle: d,
|
|
264
|
+
icon: l,
|
|
265
|
+
buttonText: c,
|
|
266
|
+
buttonLink: g,
|
|
267
|
+
timeToReadText: f = "{0} min read",
|
|
268
|
+
items: s,
|
|
269
|
+
onButtonAction: n = () => {
|
|
270
|
+
},
|
|
271
|
+
onSelectCard: m = () => {
|
|
272
|
+
},
|
|
273
|
+
onSelectOption: o = () => {
|
|
274
|
+
},
|
|
275
|
+
isLoading: _ = !1,
|
|
276
|
+
getImage: w = () => {
|
|
277
|
+
}
|
|
278
|
+
}, i) => {
|
|
279
|
+
const h = S(() => {
|
|
280
|
+
var p;
|
|
281
|
+
return (p = s == null ? void 0 : s.slice(0, 4)) == null ? void 0 : p.map((e, N) => /* @__PURE__ */ r(
|
|
282
|
+
B,
|
|
283
|
+
{
|
|
284
|
+
title: e == null ? void 0 : e.title,
|
|
285
|
+
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
286
|
+
options: e == null ? void 0 : e.options,
|
|
287
|
+
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
288
|
+
timeToReadText: f,
|
|
289
|
+
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
290
|
+
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
291
|
+
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
292
|
+
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
293
|
+
onSelectCard: () => m == null ? void 0 : m(e == null ? void 0 : e.uuid, e == null ? void 0 : e.titleSlug),
|
|
294
|
+
onSelectOption: (k) => o == null ? void 0 : o(k),
|
|
295
|
+
imageUrl: w(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
296
|
+
},
|
|
297
|
+
`blog-card-sponsored__${N + 1}`
|
|
298
|
+
));
|
|
299
|
+
}, [s]);
|
|
300
|
+
return /* @__PURE__ */ a(W, { children: [
|
|
301
|
+
/* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
|
|
302
|
+
/* @__PURE__ */ a("div", { className: "wrapper__title", children: [
|
|
303
|
+
t && /* @__PURE__ */ a("div", { className: "title__text", children: [
|
|
304
|
+
C(l) && /* @__PURE__ */ r("i", { className: l }),
|
|
305
|
+
/* @__PURE__ */ r("span", { children: t })
|
|
306
|
+
] }),
|
|
307
|
+
n && /* @__PURE__ */ r(
|
|
308
|
+
U,
|
|
309
|
+
{
|
|
310
|
+
text: c,
|
|
311
|
+
borderRadius: "curved",
|
|
312
|
+
btnType: "tinted",
|
|
313
|
+
className: "title__action",
|
|
314
|
+
onClick: () => n == null ? void 0 : n(g)
|
|
315
|
+
}
|
|
316
|
+
)
|
|
317
|
+
] }),
|
|
318
|
+
d && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: d })
|
|
319
|
+
] }),
|
|
320
|
+
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: /* @__PURE__ */ r(
|
|
321
|
+
P,
|
|
322
|
+
{
|
|
323
|
+
isLoading: _,
|
|
324
|
+
limit: 4,
|
|
325
|
+
keyPrefix: "blog-section",
|
|
326
|
+
children: h
|
|
327
|
+
}
|
|
328
|
+
) })
|
|
329
|
+
] });
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
export {
|
|
333
|
+
Q as default
|
|
334
|
+
};
|
|
@@ -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-o7JK0fA4.cjs"),l=require("./style-OPSfrtFm.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-Tiure3NX.js";
|
|
4
4
|
import { W as c } from "./style-DOKM5cZi.js";
|
|
5
5
|
const C = l(u), M = f(
|
|
6
6
|
({
|
|
@@ -0,0 +1,142 @@
|
|
|
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-BXPz9bck.cjs"),N=require("./index-CAqPGuiA.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-v60EOiID.cjs"),q=y.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 1rem;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 1.25rem;
|
|
6
|
+
border-radius: 1.25rem;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
9
|
+
background: var(--white, #fff);
|
|
10
|
+
min-height: 10.5rem;
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& .wrapper__image {
|
|
19
|
+
width: 100%;
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
height: auto;
|
|
22
|
+
max-height: 9rem;
|
|
23
|
+
border-radius: 0.75rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& .wrapper__content {
|
|
27
|
+
display: flex;
|
|
28
|
+
width: 100%;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
|
|
33
|
+
& .wrapper__subcontent {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: flex-start;
|
|
37
|
+
gap: 0.5rem;
|
|
38
|
+
|
|
39
|
+
& .wrapper__title {
|
|
40
|
+
color: var(--gray-950, #14161a);
|
|
41
|
+
font-size: 1rem;
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
line-height: 1.5rem;
|
|
45
|
+
letter-spacing: 0.1px;
|
|
46
|
+
${c.truncateTextInRows(3)}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
& .wrapper__tags {
|
|
50
|
+
display: flex;
|
|
51
|
+
gap: 0.25rem;
|
|
52
|
+
|
|
53
|
+
& .wrapper__tag {
|
|
54
|
+
font-size: 0.75rem;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
line-height: 1rem;
|
|
58
|
+
letter-spacing: 0.5px;
|
|
59
|
+
padding: 0.125rem 0.5rem;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 0.25rem;
|
|
63
|
+
height: 1.25rem;
|
|
64
|
+
border: 1px solid;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .wrapper__info {
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
align-items: center;
|
|
73
|
+
width: 100%;
|
|
74
|
+
|
|
75
|
+
& .info__content {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
|
|
79
|
+
&:first-of-type {
|
|
80
|
+
flex-grow: 1;
|
|
81
|
+
gap: 1rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
& .info__text {
|
|
85
|
+
display: flex;
|
|
86
|
+
gap: 0.5rem;
|
|
87
|
+
color: var(--gray-600, #676e79);
|
|
88
|
+
font-size: 0.75rem;
|
|
89
|
+
font-style: normal;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
line-height: 1rem;
|
|
92
|
+
letter-spacing: 0.4px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (max-width: 400px) {
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
|
|
101
|
+
& .wrapper__content {
|
|
102
|
+
gap: 1rem;
|
|
103
|
+
|
|
104
|
+
& .wrapper__info {
|
|
105
|
+
gap: 0.5rem;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
width: 100%;
|
|
108
|
+
|
|
109
|
+
& .info__content {
|
|
110
|
+
align-items: flex-start;
|
|
111
|
+
width: 100%;
|
|
112
|
+
|
|
113
|
+
&:first-of-type {
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
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:u=()=>{},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:f=>{f==null||f.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(),u()}}),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
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
align-items: flex-start;
|
|
124
|
+
gap: 1.5rem;
|
|
125
|
+
|
|
126
|
+
&.separated {
|
|
127
|
+
& > div {
|
|
128
|
+
position: relative;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& > div:not(:last-of-type)::after {
|
|
132
|
+
content: "";
|
|
133
|
+
display: block;
|
|
134
|
+
height: 1px;
|
|
135
|
+
width: 100%;
|
|
136
|
+
background: var(--gray-200, #dddfe4);
|
|
137
|
+
position: absolute;
|
|
138
|
+
left: 0;
|
|
139
|
+
bottom: -0.75rem;
|
|
140
|
+
}
|
|
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 u=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==null?void 0:e.uuid,e==null?void 0:e.titleSlug),onSelectOption:t=>a==null?void 0:a(t),onShare:()=>n==null?void 0:n(e==null?void 0:e.uuid),onBookmark:()=>l==null?void 0:l(e==null?void 0:e.uuid),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:u})})});module.exports=C;
|