@lanaco/lnc-react-ui 4.0.169 → 4.0.171
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.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
package/dist/BlogListSection.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { P as
|
|
7
|
-
import { B as
|
|
8
|
-
import { s as
|
|
9
|
-
import { M as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as i, jsx as e, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, useRef as T, cloneElement as O, Suspense as W, memo as E, useMemo as M } from "react";
|
|
3
|
+
import G from "./Icon.js";
|
|
4
|
+
import R from "./IconButton.js";
|
|
5
|
+
import { o as P, q as U, s as q, v as I, l as A } from "./utils-DHfRApMf.js";
|
|
6
|
+
import { P as D } from "./index-BbltNcou.js";
|
|
7
|
+
import { B as F } from "./style-D3pIrH3v.js";
|
|
8
|
+
import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
+
import { M as L } from "./consts-BuFChS64.js";
|
|
10
|
+
import { S as s, a as l, c as p, b as t } from "./style-CXMUA6cI.js";
|
|
11
|
+
const X = B.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
padding: 1rem;
|
|
14
14
|
align-items: center;
|
|
@@ -60,7 +60,7 @@ const D = I.div`
|
|
|
60
60
|
font-weight: 600;
|
|
61
61
|
line-height: 1.5rem;
|
|
62
62
|
letter-spacing: 0.1px;
|
|
63
|
-
${
|
|
63
|
+
${P(3)}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
& .wrapper__tags {
|
|
@@ -103,7 +103,7 @@ const D = I.div`
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
@media (max-width: ${
|
|
106
|
+
@media (max-width: ${L + "px"}) {
|
|
107
107
|
flex-direction: column;
|
|
108
108
|
padding: 0;
|
|
109
109
|
background: transparent;
|
|
@@ -154,101 +154,101 @@ const D = I.div`
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`, Z = j(
|
|
158
158
|
({
|
|
159
|
-
blogUuid:
|
|
160
|
-
title:
|
|
161
|
-
imageUrl:
|
|
162
|
-
options:
|
|
163
|
-
publishedAt:
|
|
164
|
-
timeToReadText:
|
|
165
|
-
timeToRead:
|
|
166
|
-
numberOfLikes:
|
|
167
|
-
numberOfComments:
|
|
168
|
-
isBookmarked:
|
|
169
|
-
onSelectCard:
|
|
159
|
+
blogUuid: o,
|
|
160
|
+
title: d,
|
|
161
|
+
imageUrl: c,
|
|
162
|
+
options: a,
|
|
163
|
+
publishedAt: h,
|
|
164
|
+
timeToReadText: _ = "{0} min read",
|
|
165
|
+
timeToRead: b = 0,
|
|
166
|
+
numberOfLikes: y = 0,
|
|
167
|
+
numberOfComments: v = 0,
|
|
168
|
+
isBookmarked: g = !1,
|
|
169
|
+
onSelectCard: k = () => {
|
|
170
170
|
},
|
|
171
|
-
onBookmark:
|
|
171
|
+
onBookmark: N = () => {
|
|
172
172
|
},
|
|
173
|
-
onShare:
|
|
173
|
+
onShare: r = () => {
|
|
174
174
|
},
|
|
175
|
-
bookmarkComponent:
|
|
176
|
-
metadata:
|
|
177
|
-
},
|
|
178
|
-
const
|
|
179
|
-
key: `bookmark_blog__${
|
|
180
|
-
isBookmarked:
|
|
181
|
-
blogUuid:
|
|
182
|
-
onBookmark: (
|
|
183
|
-
ref:
|
|
175
|
+
bookmarkComponent: f = /* @__PURE__ */ e(w, {}),
|
|
176
|
+
metadata: m
|
|
177
|
+
}, S) => {
|
|
178
|
+
const u = () => A(f) ? O(f, {
|
|
179
|
+
key: `bookmark_blog__${o}__${g}`,
|
|
180
|
+
isBookmarked: g,
|
|
181
|
+
blogUuid: o,
|
|
182
|
+
onBookmark: ($, z) => N($, z),
|
|
183
|
+
ref: S,
|
|
184
184
|
componentName: "ExploreBlogSectionCard"
|
|
185
|
-
}) : /* @__PURE__ */
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
|
|
185
|
+
}) : /* @__PURE__ */ e(w, {}), C = T();
|
|
186
|
+
return /* @__PURE__ */ i(
|
|
187
|
+
X,
|
|
188
188
|
{
|
|
189
|
-
ref:
|
|
190
|
-
name:
|
|
191
|
-
"data-accessor":
|
|
192
|
-
onClick: (
|
|
189
|
+
ref: C,
|
|
190
|
+
name: m == null ? void 0 : m.name,
|
|
191
|
+
"data-accessor": m == null ? void 0 : m.accessor,
|
|
192
|
+
onClick: (n) => k(n, C),
|
|
193
193
|
className: "blog-card-item",
|
|
194
194
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
|
|
195
|
+
/* @__PURE__ */ e(D, { src: c, className: "wrapper__image" }),
|
|
196
|
+
/* @__PURE__ */ i("div", { className: "wrapper__content", children: [
|
|
197
|
+
/* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
|
|
198
|
+
/* @__PURE__ */ e("div", { className: "wrapper__title", children: d }),
|
|
199
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags-action", children: [
|
|
200
|
+
/* @__PURE__ */ e("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((n, $) => /* @__PURE__ */ e(
|
|
201
|
+
F,
|
|
202
202
|
{
|
|
203
|
-
color:
|
|
204
|
-
children:
|
|
203
|
+
color: n == null ? void 0 : n.color,
|
|
204
|
+
children: n == null ? void 0 : n.name
|
|
205
205
|
},
|
|
206
|
-
`blog-card-sponsored-option__${
|
|
206
|
+
`blog-card-sponsored-option__${$ + 1}`
|
|
207
207
|
))) }),
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
|
|
208
|
+
/* @__PURE__ */ i("div", { className: "info__content mobile-only", children: [
|
|
209
|
+
/* @__PURE__ */ e(u, {}),
|
|
210
|
+
/* @__PURE__ */ e(
|
|
211
|
+
R,
|
|
212
212
|
{
|
|
213
213
|
icon: " mng-lnc-share",
|
|
214
214
|
borderRadius: "curved",
|
|
215
215
|
btnType: "basic",
|
|
216
216
|
color: "neutral",
|
|
217
|
-
onClick: (
|
|
218
|
-
|
|
217
|
+
onClick: (n) => {
|
|
218
|
+
n == null || n.stopPropagation(), r();
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
)
|
|
222
222
|
] })
|
|
223
223
|
] })
|
|
224
224
|
] }),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
|
|
229
|
-
)} • ${
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
|
|
225
|
+
/* @__PURE__ */ i("div", { className: "wrapper__info", children: [
|
|
226
|
+
/* @__PURE__ */ i("div", { className: "info__content", children: [
|
|
227
|
+
/* @__PURE__ */ e("div", { className: "info__text", children: `${U(
|
|
228
|
+
h
|
|
229
|
+
)} • ${q(_, b)}` }),
|
|
230
|
+
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
231
|
+
/* @__PURE__ */ i("div", { children: [
|
|
232
|
+
/* @__PURE__ */ e(G, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
233
|
+
I(y)
|
|
234
234
|
] }),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
|
|
235
|
+
/* @__PURE__ */ i("div", { children: [
|
|
236
|
+
/* @__PURE__ */ e(G, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
237
|
+
I(v)
|
|
238
238
|
] })
|
|
239
239
|
] })
|
|
240
240
|
] }),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
|
|
241
|
+
/* @__PURE__ */ i("div", { className: "info__content desktop-only", children: [
|
|
242
|
+
/* @__PURE__ */ e(u, {}),
|
|
243
|
+
/* @__PURE__ */ e(
|
|
244
|
+
R,
|
|
245
245
|
{
|
|
246
246
|
icon: " mng-lnc-share",
|
|
247
247
|
borderRadius: "curved",
|
|
248
248
|
btnType: "basic",
|
|
249
249
|
color: "neutral",
|
|
250
|
-
onClick: (
|
|
251
|
-
|
|
250
|
+
onClick: (n) => {
|
|
251
|
+
n == null || n.stopPropagation(), r();
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
)
|
|
@@ -259,7 +259,7 @@ const D = I.div`
|
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
),
|
|
262
|
+
), H = B.div`
|
|
263
263
|
display: flex;
|
|
264
264
|
flex-direction: column;
|
|
265
265
|
align-items: flex-start;
|
|
@@ -283,60 +283,124 @@ const D = I.div`
|
|
|
283
283
|
bottom: -1.25rem;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
`,
|
|
286
|
+
`, J = B(s)`
|
|
287
|
+
@media (max-width: ${L + "px"}) {
|
|
288
|
+
& > div {
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
`, K = ({ keyPrefix: o }) => /* @__PURE__ */ i(J, { children: [
|
|
293
|
+
/* @__PURE__ */ i(l, { children: [
|
|
294
|
+
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
295
|
+
/* @__PURE__ */ i(s, { noGradient: !0, children: [
|
|
296
|
+
/* @__PURE__ */ e(t, { height: "1.5rem" }),
|
|
297
|
+
/* @__PURE__ */ i(l, { noGradient: !0, children: [
|
|
298
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
299
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
300
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
301
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
|
|
302
|
+
] })
|
|
303
|
+
] })
|
|
304
|
+
] }, `${o}-1`),
|
|
305
|
+
/* @__PURE__ */ i(l, { children: [
|
|
306
|
+
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
307
|
+
/* @__PURE__ */ i(s, { noGradient: !0, children: [
|
|
308
|
+
/* @__PURE__ */ e(t, { height: "1.5rem" }),
|
|
309
|
+
/* @__PURE__ */ i(l, { noGradient: !0, children: [
|
|
310
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
311
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
312
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
313
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
|
|
314
|
+
] })
|
|
315
|
+
] })
|
|
316
|
+
] }, `${o}-2`),
|
|
317
|
+
/* @__PURE__ */ i(l, { children: [
|
|
318
|
+
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
319
|
+
/* @__PURE__ */ i(s, { noGradient: !0, children: [
|
|
320
|
+
/* @__PURE__ */ e(t, { height: "1.5rem" }),
|
|
321
|
+
/* @__PURE__ */ i(l, { noGradient: !0, children: [
|
|
322
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
323
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
324
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
325
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
|
|
326
|
+
] })
|
|
327
|
+
] })
|
|
328
|
+
] }, `${o}-3`),
|
|
329
|
+
/* @__PURE__ */ i(l, { children: [
|
|
330
|
+
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
331
|
+
/* @__PURE__ */ i(s, { noGradient: !0, children: [
|
|
332
|
+
/* @__PURE__ */ e(t, { height: "1.5rem" }),
|
|
333
|
+
/* @__PURE__ */ i(l, { noGradient: !0, children: [
|
|
334
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
335
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
336
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
337
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
|
|
338
|
+
] })
|
|
339
|
+
] })
|
|
340
|
+
] }, `${o}-4`),
|
|
341
|
+
/* @__PURE__ */ i(l, { children: [
|
|
342
|
+
/* @__PURE__ */ e(p, { height: "9.5rem", width: "17.75rem" }),
|
|
343
|
+
/* @__PURE__ */ i(s, { noGradient: !0, children: [
|
|
344
|
+
/* @__PURE__ */ e(t, { height: "1.5rem" }),
|
|
345
|
+
/* @__PURE__ */ i(l, { noGradient: !0, children: [
|
|
346
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
347
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
348
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" }),
|
|
349
|
+
/* @__PURE__ */ e(t, { width: "5rem", height: "1.25rem" })
|
|
350
|
+
] })
|
|
351
|
+
] })
|
|
352
|
+
] }, `${o}-5`)
|
|
353
|
+
] }), Q = ({
|
|
354
|
+
keyPrefix: o,
|
|
355
|
+
isLoading: d = !1,
|
|
356
|
+
fallbackComponent: c = /* @__PURE__ */ e(w, {}),
|
|
357
|
+
children: a
|
|
358
|
+
}) => /* @__PURE__ */ e(W, { fallbackComponent: c, children: d === !0 ? /* @__PURE__ */ e(K, { keyPrefix: o }) : a }), V = E(Z), me = j(
|
|
287
359
|
({
|
|
288
|
-
timeToReadText:
|
|
289
|
-
items:
|
|
290
|
-
|
|
360
|
+
timeToReadText: o = "{0} min read",
|
|
361
|
+
items: d,
|
|
362
|
+
isLoading: c = !1,
|
|
363
|
+
onSelectCard: a = () => {
|
|
291
364
|
},
|
|
292
|
-
onShare:
|
|
365
|
+
onShare: h = () => {
|
|
293
366
|
},
|
|
294
|
-
onBookmark:
|
|
367
|
+
onBookmark: _ = () => {
|
|
295
368
|
},
|
|
296
|
-
|
|
297
|
-
getImage: g = () => {
|
|
369
|
+
getImage: b = () => {
|
|
298
370
|
},
|
|
299
|
-
isSeparated:
|
|
300
|
-
bookmarkComponent:
|
|
301
|
-
componentName:
|
|
302
|
-
},
|
|
303
|
-
const
|
|
304
|
-
var
|
|
305
|
-
return /* @__PURE__ */
|
|
306
|
-
|
|
371
|
+
isSeparated: y = !0,
|
|
372
|
+
bookmarkComponent: v = /* @__PURE__ */ e(w, {}),
|
|
373
|
+
componentName: g
|
|
374
|
+
}, k) => {
|
|
375
|
+
const N = M(() => d == null ? void 0 : d.map((r, f) => {
|
|
376
|
+
var m;
|
|
377
|
+
return /* @__PURE__ */ e(
|
|
378
|
+
V,
|
|
307
379
|
{
|
|
308
|
-
blogUuid:
|
|
309
|
-
title:
|
|
310
|
-
titleSlug:
|
|
311
|
-
options:
|
|
312
|
-
publishedAt:
|
|
313
|
-
timeToReadText:
|
|
314
|
-
timeToRead:
|
|
315
|
-
numberOfLikes:
|
|
316
|
-
numberOfComments:
|
|
317
|
-
isSponsored:
|
|
318
|
-
isBookmarked:
|
|
319
|
-
onSelectCard: (
|
|
320
|
-
onShare: () =>
|
|
321
|
-
onBookmark:
|
|
322
|
-
imageUrl:
|
|
323
|
-
bookmarkComponent:
|
|
324
|
-
metadata: { name:
|
|
380
|
+
blogUuid: r == null ? void 0 : r.uuid,
|
|
381
|
+
title: r == null ? void 0 : r.title,
|
|
382
|
+
titleSlug: r == null ? void 0 : r.titleSlug,
|
|
383
|
+
options: r == null ? void 0 : r.options,
|
|
384
|
+
publishedAt: r == null ? void 0 : r.publishedAt,
|
|
385
|
+
timeToReadText: o,
|
|
386
|
+
timeToRead: r == null ? void 0 : r.timeToRead,
|
|
387
|
+
numberOfLikes: r == null ? void 0 : r.numberOfLikes,
|
|
388
|
+
numberOfComments: r == null ? void 0 : r.numberOfComments,
|
|
389
|
+
isSponsored: r == null ? void 0 : r.isSponsored,
|
|
390
|
+
isBookmarked: r == null ? void 0 : r.isBookmarked,
|
|
391
|
+
onSelectCard: (S, u) => a == null ? void 0 : a(r, u),
|
|
392
|
+
onShare: () => h == null ? void 0 : h(r),
|
|
393
|
+
onBookmark: _,
|
|
394
|
+
imageUrl: b(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
395
|
+
bookmarkComponent: v,
|
|
396
|
+
metadata: { name: g, accessor: r == null ? void 0 : r.accessor }
|
|
325
397
|
},
|
|
326
|
-
`blog-card-item__${
|
|
398
|
+
`blog-card-item__${f + 1}__${(m = r == null ? void 0 : r.isBookmarked) == null ? void 0 : m.toString()}`
|
|
327
399
|
);
|
|
328
|
-
}), [
|
|
329
|
-
return /* @__PURE__ */
|
|
330
|
-
A,
|
|
331
|
-
{
|
|
332
|
-
isLoading: f,
|
|
333
|
-
limit: 5,
|
|
334
|
-
keyPrefix: "blog-section",
|
|
335
|
-
children: w
|
|
336
|
-
}
|
|
337
|
-
) });
|
|
400
|
+
}), [d]);
|
|
401
|
+
return /* @__PURE__ */ e(Q, { isLoading: c, keyPrefix: "blog-list-skeleton", children: /* @__PURE__ */ e(H, { ref: k, className: y ? "separated" : "", children: N }) });
|
|
338
402
|
}
|
|
339
403
|
);
|
|
340
404
|
export {
|
|
341
|
-
|
|
405
|
+
me as default
|
|
342
406
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),c=require("react"),h=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-CfT9e5O9.cjs"),M=require("./Button.cjs"),N=require("./style-BTTXJFJN.cjs"),f=c.memo(j.SimpleProductCard),y=c.forwardRef(({buttonText:t,buttonLink:u,items:r,onButtonAction:a=()=>{},onSelectCard:s=()=>{},isLoading:P=!1,limit:R=4,getImage:l=()=>{},isHighlight:n=!1,componentName:d},m)=>{const p=h.useDetectMobile(),g=c.useMemo(()=>{var o;return(o=r==null?void 0:r.slice(0,4))==null?void 0:o.map((e,b)=>i.jsx(f,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(_,q)=>s==null?void 0:s(e==null?void 0:e.uuid,q),image:l(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor}},b))},[r]);return i.jsxs(N.Wrapper,{ref:m,className:`blog-product-cards-section ${n?"highlight":""}`,children:[i.jsx("div",{className:"wrapper__grid",children:g}),i.jsx(M,{text:t,borderRadius:"curved",btnType:p?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>a(u)})]})});module.exports=y;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { u as
|
|
4
|
-
import { S as _ } from "./index-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const k = N(_), T = y(
|
|
1
|
+
import { jsx as o, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { memo as h, forwardRef as N, useMemo as M } from "react";
|
|
3
|
+
import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { S as _ } from "./index-XYs5Cuh5.js";
|
|
5
|
+
import w from "./Button.js";
|
|
6
|
+
import { W as y } from "./style-tw6KjI2J.js";
|
|
7
|
+
const U = h(_), D = N(
|
|
9
8
|
({
|
|
10
9
|
buttonText: a,
|
|
11
10
|
buttonLink: c,
|
|
@@ -14,17 +13,17 @@ const k = N(_), T = y(
|
|
|
14
13
|
},
|
|
15
14
|
onSelectCard: i = () => {
|
|
16
15
|
},
|
|
17
|
-
isLoading:
|
|
18
|
-
limit:
|
|
19
|
-
getImage:
|
|
16
|
+
isLoading: j = !1,
|
|
17
|
+
limit: v = 4,
|
|
18
|
+
getImage: u = () => {
|
|
20
19
|
},
|
|
21
|
-
isHighlight:
|
|
22
|
-
componentName:
|
|
23
|
-
},
|
|
24
|
-
const
|
|
20
|
+
isHighlight: l = !1,
|
|
21
|
+
componentName: d
|
|
22
|
+
}, m) => {
|
|
23
|
+
const p = P(), n = M(() => {
|
|
25
24
|
var s;
|
|
26
|
-
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e,
|
|
27
|
-
|
|
25
|
+
return (s = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : s.map((e, f) => /* @__PURE__ */ o(
|
|
26
|
+
U,
|
|
28
27
|
{
|
|
29
28
|
title: e == null ? void 0 : e.name,
|
|
30
29
|
price: e == null ? void 0 : e.price,
|
|
@@ -33,34 +32,26 @@ const k = N(_), T = y(
|
|
|
33
32
|
currency: e == null ? void 0 : e.currency,
|
|
34
33
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
35
34
|
uuid: e == null ? void 0 : e.uuid,
|
|
36
|
-
onSelectCard: (
|
|
37
|
-
image:
|
|
38
|
-
metadata: { name:
|
|
35
|
+
onSelectCard: (z, g) => i == null ? void 0 : i(e == null ? void 0 : e.uuid, g),
|
|
36
|
+
image: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
37
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
|
|
39
38
|
},
|
|
40
|
-
|
|
39
|
+
f
|
|
41
40
|
));
|
|
42
41
|
}, [r]);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
42
|
+
return /* @__PURE__ */ b(
|
|
43
|
+
y,
|
|
45
44
|
{
|
|
46
|
-
ref:
|
|
47
|
-
className: `blog-product-cards-section ${
|
|
45
|
+
ref: m,
|
|
46
|
+
className: `blog-product-cards-section ${l ? "highlight" : ""}`,
|
|
48
47
|
children: [
|
|
49
|
-
/* @__PURE__ */ o("div", { className: "wrapper__grid", children:
|
|
50
|
-
w,
|
|
51
|
-
{
|
|
52
|
-
isLoading: u,
|
|
53
|
-
limit: l,
|
|
54
|
-
keyPrefix: "blog-section",
|
|
55
|
-
children: g
|
|
56
|
-
}
|
|
57
|
-
) }),
|
|
48
|
+
/* @__PURE__ */ o("div", { className: "wrapper__grid", children: n }),
|
|
58
49
|
/* @__PURE__ */ o(
|
|
59
|
-
|
|
50
|
+
w,
|
|
60
51
|
{
|
|
61
52
|
text: a,
|
|
62
53
|
borderRadius: "curved",
|
|
63
|
-
btnType:
|
|
54
|
+
btnType: p ? "basic" : "outline",
|
|
64
55
|
color: "neutral",
|
|
65
56
|
className: "wrapper__action",
|
|
66
57
|
onClick: () => t(c)
|
|
@@ -72,5 +63,5 @@ const k = N(_), T = y(
|
|
|
72
63
|
}
|
|
73
64
|
);
|
|
74
65
|
export {
|
|
75
|
-
|
|
66
|
+
D as default
|
|
76
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./index-C5r__0lD.cjs"),f=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),w=o.memo(_.ShopCard),M=o.forwardRef(({buttonText:u,buttonLink:a,items:r,onButtonAction:c=()=>{},onSelectCard:s=()=>{},isLoading:v=!1,limit:R=4,getImage:n=()=>{},isHighlight:l=!1,componentName:d},p)=>{const h=q.useDetectMobile(),m=o.useMemo(()=>{var t;return(t=r==null?void 0:r.slice(0,4))==null?void 0:t.map((e,g)=>i.jsx(w,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:(C,b)=>s==null?void 0:s(e==null?void 0:e.uuid,b),image:n(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0,metadata:{name:d,accessor:e==null?void 0:e.accessor}},`shop-card__${g+1}`))},[r]);return i.jsxs(j.Wrapper,{ref:p,className:l?"highlight":"",children:[i.jsx("div",{className:"wrapper__grid",children:m}),i.jsx(f,{text:u,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>c(a)})]})});module.exports=M;
|
|
@@ -1,86 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { W as
|
|
7
|
-
const
|
|
8
|
-
y,
|
|
9
|
-
{
|
|
10
|
-
isLoading: t
|
|
11
|
-
},
|
|
12
|
-
`${r}-skeleton-shop-card-${s}`
|
|
13
|
-
)) }), B = ({
|
|
14
|
-
children: a,
|
|
15
|
-
fallbackComponent: t = /* @__PURE__ */ o(u, {}),
|
|
16
|
-
isLoading: r = !1,
|
|
17
|
-
limit: i,
|
|
18
|
-
keyPrefix: s
|
|
19
|
-
}) => /* @__PURE__ */ o(C, { fallbackComponent: t, children: r === !0 ? /* @__PURE__ */ o(
|
|
20
|
-
z,
|
|
21
|
-
{
|
|
22
|
-
isLoading: r,
|
|
23
|
-
limit: i,
|
|
24
|
-
keyPrefix: s
|
|
25
|
-
}
|
|
26
|
-
) : a }), D = k(N), q = w(
|
|
1
|
+
import { jsx as i, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { memo as b, forwardRef as _, useMemo as w } from "react";
|
|
3
|
+
import { u as v } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { S as M } from "./index-BPntOicE.js";
|
|
5
|
+
import C from "./Button.js";
|
|
6
|
+
import { W as N } from "./style-tw6KjI2J.js";
|
|
7
|
+
const S = b(M), L = _(
|
|
27
8
|
({
|
|
28
|
-
buttonText:
|
|
29
|
-
buttonLink:
|
|
30
|
-
items:
|
|
31
|
-
onButtonAction:
|
|
9
|
+
buttonText: t,
|
|
10
|
+
buttonLink: s,
|
|
11
|
+
items: o,
|
|
12
|
+
onButtonAction: u = () => {
|
|
32
13
|
},
|
|
33
|
-
onSelectCard:
|
|
14
|
+
onSelectCard: e = () => {
|
|
34
15
|
},
|
|
35
|
-
isLoading:
|
|
36
|
-
limit:
|
|
37
|
-
getImage:
|
|
16
|
+
isLoading: j = !1,
|
|
17
|
+
limit: z = 4,
|
|
18
|
+
getImage: m = () => {
|
|
38
19
|
},
|
|
39
|
-
isHighlight:
|
|
40
|
-
componentName:
|
|
41
|
-
},
|
|
42
|
-
const
|
|
43
|
-
var
|
|
44
|
-
return (
|
|
45
|
-
|
|
20
|
+
isHighlight: p = !1,
|
|
21
|
+
componentName: c
|
|
22
|
+
}, n) => {
|
|
23
|
+
const d = v(), l = w(() => {
|
|
24
|
+
var a;
|
|
25
|
+
return (a = o == null ? void 0 : o.slice(0, 4)) == null ? void 0 : a.map((r, f) => /* @__PURE__ */ i(
|
|
26
|
+
S,
|
|
46
27
|
{
|
|
47
|
-
uuid:
|
|
48
|
-
title:
|
|
49
|
-
subtitle:
|
|
50
|
-
rating:
|
|
51
|
-
reviewCount:
|
|
52
|
-
onSelectCard: (
|
|
53
|
-
image:
|
|
28
|
+
uuid: r == null ? void 0 : r.uuid,
|
|
29
|
+
title: r == null ? void 0 : r.name,
|
|
30
|
+
subtitle: r == null ? void 0 : r.shortDescription,
|
|
31
|
+
rating: r == null ? void 0 : r.rating,
|
|
32
|
+
reviewCount: r == null ? void 0 : r.reviewCount,
|
|
33
|
+
onSelectCard: (B, h) => e == null ? void 0 : e(r == null ? void 0 : r.uuid, h),
|
|
34
|
+
image: m(r == null ? void 0 : r.profileImage, r == null ? void 0 : r.uuid) || null,
|
|
54
35
|
hideProducts: !0,
|
|
55
|
-
metadata: { name:
|
|
36
|
+
metadata: { name: c, accessor: r == null ? void 0 : r.accessor }
|
|
56
37
|
},
|
|
57
|
-
`shop-card__${
|
|
38
|
+
`shop-card__${f + 1}`
|
|
58
39
|
));
|
|
59
|
-
}, [
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
isLoading: l,
|
|
65
|
-
limit: c,
|
|
66
|
-
keyPrefix: "blog-section",
|
|
67
|
-
children: g
|
|
68
|
-
}
|
|
69
|
-
) }),
|
|
70
|
-
/* @__PURE__ */ o(
|
|
71
|
-
$,
|
|
40
|
+
}, [o]);
|
|
41
|
+
return /* @__PURE__ */ g(N, { ref: n, className: p ? "highlight" : "", children: [
|
|
42
|
+
/* @__PURE__ */ i("div", { className: "wrapper__grid", children: l }),
|
|
43
|
+
/* @__PURE__ */ i(
|
|
44
|
+
C,
|
|
72
45
|
{
|
|
73
|
-
text:
|
|
46
|
+
text: t,
|
|
74
47
|
borderRadius: "curved",
|
|
75
|
-
btnType:
|
|
48
|
+
btnType: d ? "basic" : "outline",
|
|
76
49
|
color: "neutral",
|
|
77
50
|
className: "wrapper__action",
|
|
78
|
-
onClick: () =>
|
|
51
|
+
onClick: () => u(s)
|
|
79
52
|
}
|
|
80
53
|
)
|
|
81
54
|
] });
|
|
82
55
|
}
|
|
83
56
|
);
|
|
84
57
|
export {
|
|
85
|
-
|
|
58
|
+
L as default
|
|
86
59
|
};
|