@lanaco/lnc-react-ui 4.0.148 → 4.0.150
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/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +120 -116
- package/dist/BlogListSection.cjs +5 -5
- package/dist/BlogListSection.js +129 -133
- package/dist/DetailedProductsInfinitiveSection.cjs +66 -0
- package/dist/DetailedProductsInfinitiveSection.js +203 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +87 -85
- package/package.json +2 -1
- package/vite.config.js +4 -0
package/dist/BlogListSection.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { p as
|
|
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 r, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, cloneElement as j, memo as C, useMemo as R } from "react";
|
|
3
|
+
import y from "./Icon.js";
|
|
4
|
+
import v from "./IconButton.js";
|
|
5
|
+
import { p as z, s as L, v as P, w as k, l as T } from "./utils-BdsZgOUE.js";
|
|
6
|
+
import { P as O } from "./index-CF3HhgvN.js";
|
|
7
|
+
import { B as S } from "./style-DFPWLJBr.js";
|
|
8
|
+
import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
+
import { M as E } from "./consts-BuFChS64.js";
|
|
10
|
+
import { S as M } from "./suspense-large-DPZHjpEr.js";
|
|
11
|
+
const U = B.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
padding: 1rem;
|
|
14
14
|
align-items: center;
|
|
@@ -60,7 +60,7 @@ const z = w.div`
|
|
|
60
60
|
font-weight: 600;
|
|
61
61
|
line-height: 1.5rem;
|
|
62
62
|
letter-spacing: 0.1px;
|
|
63
|
-
${
|
|
63
|
+
${z(3)}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
& .wrapper__tags {
|
|
@@ -103,7 +103,7 @@ const z = w.div`
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
@media (max-width: ${
|
|
106
|
+
@media (max-width: ${E + "px"}) {
|
|
107
107
|
flex-direction: column;
|
|
108
108
|
padding: 0;
|
|
109
109
|
background: transparent;
|
|
@@ -154,111 +154,101 @@ const z = w.div`
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`, W = N(
|
|
158
158
|
({
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
blogUuid: s,
|
|
160
|
+
title: n,
|
|
161
|
+
imageUrl: o,
|
|
161
162
|
options: a,
|
|
162
|
-
publishedAt:
|
|
163
|
-
timeToReadText:
|
|
164
|
-
timeToRead:
|
|
165
|
-
numberOfLikes:
|
|
166
|
-
numberOfComments:
|
|
167
|
-
isBookmarked:
|
|
168
|
-
onSelectCard:
|
|
163
|
+
publishedAt: d,
|
|
164
|
+
timeToReadText: c = "{0} min read",
|
|
165
|
+
timeToRead: p = 0,
|
|
166
|
+
numberOfLikes: f = 0,
|
|
167
|
+
numberOfComments: g = 0,
|
|
168
|
+
isBookmarked: _ = !1,
|
|
169
|
+
onSelectCard: u = () => {
|
|
169
170
|
},
|
|
170
171
|
onBookmark: e = () => {
|
|
171
172
|
},
|
|
172
|
-
onShare:
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
|
|
173
|
+
onShare: m = () => {
|
|
174
|
+
},
|
|
175
|
+
bookmarkComponent: l = /* @__PURE__ */ r(w, {})
|
|
176
|
+
}, $) => {
|
|
177
|
+
const b = () => T(l) ? j(l, {
|
|
178
|
+
key: `bookmark_blog__${s}__${_}`,
|
|
179
|
+
isBookmarked: _,
|
|
180
|
+
blogUuid: s,
|
|
181
|
+
onBookmark: (h, I) => e(h, I),
|
|
182
|
+
ref: $,
|
|
183
|
+
componentName: "ExploreBlogSectionCard"
|
|
184
|
+
}) : /* @__PURE__ */ r(w, {});
|
|
185
|
+
return /* @__PURE__ */ i(U, { onClick: u, className: "blog-card-item", children: [
|
|
186
|
+
/* @__PURE__ */ r(O, { src: o, className: "wrapper__image" }),
|
|
187
|
+
/* @__PURE__ */ i("div", { className: "wrapper__content", children: [
|
|
188
|
+
/* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
|
|
189
|
+
/* @__PURE__ */ r("div", { className: "wrapper__title", children: n }),
|
|
190
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags-action", children: [
|
|
191
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((t, h) => /* @__PURE__ */ r(
|
|
192
|
+
S,
|
|
191
193
|
{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
color: t == null ? void 0 : t.color,
|
|
195
|
+
children: t == null ? void 0 : t.name
|
|
196
|
+
},
|
|
197
|
+
`blog-card-sponsored-option__${h + 1}`
|
|
198
|
+
))) }),
|
|
199
|
+
/* @__PURE__ */ i("div", { className: "info__content mobile-only", children: [
|
|
200
|
+
/* @__PURE__ */ r(b, {}),
|
|
201
|
+
/* @__PURE__ */ r(
|
|
202
|
+
v,
|
|
203
|
+
{
|
|
204
|
+
icon: " mng-lnc-share",
|
|
205
|
+
borderRadius: "curved",
|
|
206
|
+
btnType: "basic",
|
|
207
|
+
color: "neutral",
|
|
208
|
+
onClick: (t) => {
|
|
209
|
+
t == null || t.stopPropagation(), m();
|
|
210
|
+
}
|
|
198
211
|
}
|
|
199
|
-
|
|
200
|
-
)
|
|
201
|
-
|
|
202
|
-
|
|
212
|
+
)
|
|
213
|
+
] })
|
|
214
|
+
] })
|
|
215
|
+
] }),
|
|
216
|
+
/* @__PURE__ */ i("div", { className: "wrapper__info", children: [
|
|
217
|
+
/* @__PURE__ */ i("div", { className: "info__content", children: [
|
|
218
|
+
/* @__PURE__ */ r("div", { className: "info__text", children: `${L(
|
|
219
|
+
d
|
|
220
|
+
)} • ${P(c, p)}` }),
|
|
221
|
+
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
222
|
+
/* @__PURE__ */ i("div", { children: [
|
|
223
|
+
/* @__PURE__ */ r(y, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
224
|
+
k(f)
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ i("div", { children: [
|
|
227
|
+
/* @__PURE__ */ r(y, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
228
|
+
k(g)
|
|
229
|
+
] })
|
|
230
|
+
] })
|
|
231
|
+
] }),
|
|
232
|
+
/* @__PURE__ */ i("div", { className: "info__content desktop-only", children: [
|
|
233
|
+
/* @__PURE__ */ r(b, {}),
|
|
234
|
+
/* @__PURE__ */ r(
|
|
235
|
+
v,
|
|
203
236
|
{
|
|
204
237
|
icon: " mng-lnc-share",
|
|
205
238
|
borderRadius: "curved",
|
|
206
239
|
btnType: "basic",
|
|
207
240
|
color: "neutral",
|
|
208
|
-
onClick: (
|
|
209
|
-
|
|
241
|
+
onClick: (t) => {
|
|
242
|
+
t == null || t.stopPropagation(), m();
|
|
210
243
|
}
|
|
211
244
|
}
|
|
212
245
|
)
|
|
213
246
|
] })
|
|
214
247
|
] })
|
|
215
|
-
] }),
|
|
216
|
-
/* @__PURE__ */ i("div", { className: "wrapper__info", children: [
|
|
217
|
-
/* @__PURE__ */ i("div", { className: "info__content", children: [
|
|
218
|
-
/* @__PURE__ */ t("div", { className: "info__text", children: `${I(
|
|
219
|
-
o
|
|
220
|
-
)} • ${R(l, m)}` }),
|
|
221
|
-
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
222
|
-
/* @__PURE__ */ i("div", { children: [
|
|
223
|
-
/* @__PURE__ */ t(u, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
224
|
-
b(p)
|
|
225
|
-
] }),
|
|
226
|
-
/* @__PURE__ */ i("div", { children: [
|
|
227
|
-
/* @__PURE__ */ t(u, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
228
|
-
b(f)
|
|
229
|
-
] })
|
|
230
|
-
] })
|
|
231
|
-
] }),
|
|
232
|
-
/* @__PURE__ */ i("div", { className: "info__content desktop-only", children: [
|
|
233
|
-
/* @__PURE__ */ t(
|
|
234
|
-
c,
|
|
235
|
-
{
|
|
236
|
-
icon: g ? " mng-lnc-bookmark--filled" : " mng-lnc-bookmark",
|
|
237
|
-
borderRadius: "curved",
|
|
238
|
-
btnType: "basic",
|
|
239
|
-
color: "neutral",
|
|
240
|
-
onClick: (r) => {
|
|
241
|
-
r == null || r.stopPropagation(), e();
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
),
|
|
245
|
-
/* @__PURE__ */ t(
|
|
246
|
-
c,
|
|
247
|
-
{
|
|
248
|
-
icon: " mng-lnc-share",
|
|
249
|
-
borderRadius: "curved",
|
|
250
|
-
btnType: "basic",
|
|
251
|
-
color: "neutral",
|
|
252
|
-
onClick: (r) => {
|
|
253
|
-
r == null || r.stopPropagation(), s();
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
] })
|
|
258
248
|
] })
|
|
259
|
-
] })
|
|
260
|
-
|
|
261
|
-
),
|
|
249
|
+
] });
|
|
250
|
+
}
|
|
251
|
+
), A = B.div`
|
|
262
252
|
display: flex;
|
|
263
253
|
flex-direction: column;
|
|
264
254
|
align-items: flex-start;
|
|
@@ -282,52 +272,58 @@ const z = w.div`
|
|
|
282
272
|
bottom: -1.25rem;
|
|
283
273
|
}
|
|
284
274
|
}
|
|
285
|
-
`,
|
|
275
|
+
`, D = C(W), Y = N(
|
|
286
276
|
({
|
|
287
|
-
timeToReadText:
|
|
277
|
+
timeToReadText: s = "{0} min read",
|
|
288
278
|
items: n,
|
|
289
|
-
onSelectCard:
|
|
279
|
+
onSelectCard: o = () => {
|
|
290
280
|
},
|
|
291
|
-
onShare:
|
|
281
|
+
onShare: a = () => {
|
|
292
282
|
},
|
|
293
|
-
onBookmark:
|
|
283
|
+
onBookmark: d = () => {
|
|
294
284
|
},
|
|
295
|
-
isLoading:
|
|
285
|
+
isLoading: c = !1,
|
|
296
286
|
getImage: p = () => {
|
|
297
287
|
},
|
|
298
|
-
isSeparated: f = !0
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
288
|
+
isSeparated: f = !0,
|
|
289
|
+
bookmarkComponent: g = /* @__PURE__ */ r(w, {})
|
|
290
|
+
}, _) => {
|
|
291
|
+
const u = R(() => n == null ? void 0 : n.map((e, m) => {
|
|
292
|
+
var l;
|
|
293
|
+
return /* @__PURE__ */ r(
|
|
294
|
+
D,
|
|
295
|
+
{
|
|
296
|
+
blogUuid: e == null ? void 0 : e.uuid,
|
|
297
|
+
title: e == null ? void 0 : e.title,
|
|
298
|
+
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
299
|
+
options: e == null ? void 0 : e.options,
|
|
300
|
+
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
301
|
+
timeToReadText: s,
|
|
302
|
+
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
303
|
+
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
304
|
+
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
305
|
+
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
306
|
+
isBookmarked: e == null ? void 0 : e.isBookmarked,
|
|
307
|
+
onSelectCard: () => o == null ? void 0 : o(e),
|
|
308
|
+
onShare: () => a == null ? void 0 : a(e),
|
|
309
|
+
onBookmark: d,
|
|
310
|
+
imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
311
|
+
bookmarkComponent: g
|
|
312
|
+
},
|
|
313
|
+
`blog-card-item__${m + 1}__${(l = e == null ? void 0 : e.isBookmarked) == null ? void 0 : l.toString()}`
|
|
314
|
+
);
|
|
315
|
+
}), [n]);
|
|
316
|
+
return /* @__PURE__ */ r(A, { className: f ? "separated" : "", children: /* @__PURE__ */ r(
|
|
317
|
+
M,
|
|
322
318
|
{
|
|
323
|
-
isLoading:
|
|
319
|
+
isLoading: c,
|
|
324
320
|
limit: 5,
|
|
325
321
|
keyPrefix: "blog-section",
|
|
326
|
-
children:
|
|
322
|
+
children: u
|
|
327
323
|
}
|
|
328
324
|
) });
|
|
329
325
|
}
|
|
330
326
|
);
|
|
331
327
|
export {
|
|
332
|
-
|
|
328
|
+
Y as default
|
|
333
329
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),P=require("./consts-goSZX3xP.cjs"),N=require("./IconButton.cjs"),D=require("./Button.cjs"),f=require("./utils-Dl9xPH4c.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),w=require("./suspense-product-card-detailed-FuxsUusc.cjs"),M=j.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1.5rem;
|
|
5
|
+
|
|
6
|
+
& .section__heading {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
& .section__title {
|
|
12
|
+
color: var(--gray-950, #14161a);
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
font-size: 1.5rem;
|
|
15
|
+
line-height: 2rem;
|
|
16
|
+
letter-spacing: -0.0294rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
& .section__items {
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
22
|
+
gap: 2rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& .section__show-more {
|
|
26
|
+
color: var(--neutral-600, #0f2a46);
|
|
27
|
+
font-size: 0.875rem;
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
line-height: 1.25rem;
|
|
31
|
+
letter-spacing: -0.0056rem;
|
|
32
|
+
width: 100%;
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
align-self: center;
|
|
35
|
+
|
|
36
|
+
&:focus {
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& .section__view-all {
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (max-width: ${P.MOBILE_SIZE_PX+"px"}) {
|
|
46
|
+
& .section__items {
|
|
47
|
+
display: flex;
|
|
48
|
+
gap: 1rem;
|
|
49
|
+
overflow-x: auto;
|
|
50
|
+
|
|
51
|
+
-webkit-overflow-scrolling: touch;
|
|
52
|
+
::-webkit-scrollbar {
|
|
53
|
+
-webkit-appearance: none;
|
|
54
|
+
}
|
|
55
|
+
-ms-overflow-style: none;
|
|
56
|
+
/* Internet Explorer 10+ */
|
|
57
|
+
scrollbar-width: none;
|
|
58
|
+
/* Firefox */
|
|
59
|
+
|
|
60
|
+
&::-webkit-scrollbar {
|
|
61
|
+
display: none;
|
|
62
|
+
/* Safari and Chrome */
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`,k=a.memo(w.DetailedProductCard),U=a.forwardRef((s,B)=>{const{title:l,items:o,limit:n=4,isLoading:_=!1,onSelectCard:c=()=>{},onLoadMore:h=()=>{},onButtonAction:C=()=>{},getImage:d=()=>{},viewAllbuttonLink:u,viewAllButonText:v="View all",negotiableText:m,freeText:g,loadMoreButtonIcon:S="angle-down",sponsoredText:p,onBookmark:b=()=>{},bookmarkComponent:y}=s,r=L.useDetectMobile(),q=a.useMemo(()=>i.jsx(i.Fragment,{children:r===!0?o==null?void 0:o.map((e,t)=>i.jsx(k,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>c({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug}),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:p,onBookmark:b,bookmarkComponent:y,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists},t)):o==null?void 0:o.slice(0,n).map((e,t)=>i.jsx(k,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>c({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug}),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:p,onBookmark:b,bookmarkComponent:y,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists},t))}),[o,r,n]);return i.jsxs(M,{limit:n,children:[i.jsxs("div",{className:"section__heading",children:[f.isDefinedNotEmptyString(l)&&i.jsx("div",{className:"section__title",children:l}),r&&f.isDefinedNotEmptyString(u)&&i.jsx(D,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var t;(t=e==null?void 0:e.target)==null||t.blur(),C(u)},borderRadius:"curved",className:"section__view-all",children:v})]}),i.jsx(w.SuspenseDetailedProductCard,{isLoading:_,limit:n,keyPrefix:"explore-landing",children:i.jsx("div",{className:"section__items",children:q})}),!r&&i.jsx(N,{icon:S,borderRadius:"curved",btnType:"basic",color:"neutral",className:"section__show-more",onClick:h})]})});module.exports=U;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as o, Fragment as P, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, forwardRef as L, useMemo as M } from "react";
|
|
3
|
+
import { s as U } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as B } from "./consts-BuFChS64.js";
|
|
5
|
+
import D from "./IconButton.js";
|
|
6
|
+
import F from "./Button.js";
|
|
7
|
+
import { k } from "./utils-BdsZgOUE.js";
|
|
8
|
+
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
9
|
+
import { D as T, S as q } from "./suspense-product-card-detailed-C-ZCjG5p.js";
|
|
10
|
+
const z = U.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 1.5rem;
|
|
14
|
+
|
|
15
|
+
& .section__heading {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
& .section__title {
|
|
21
|
+
color: var(--gray-950, #14161a);
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
font-size: 1.5rem;
|
|
24
|
+
line-height: 2rem;
|
|
25
|
+
letter-spacing: -0.0294rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& .section__items {
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
31
|
+
gap: 2rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
& .section__show-more {
|
|
35
|
+
color: var(--neutral-600, #0f2a46);
|
|
36
|
+
font-size: 0.875rem;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
line-height: 1.25rem;
|
|
40
|
+
letter-spacing: -0.0056rem;
|
|
41
|
+
width: 100%;
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
align-self: center;
|
|
44
|
+
|
|
45
|
+
&:focus {
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
& .section__view-all {
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (max-width: ${B + "px"}) {
|
|
55
|
+
& .section__items {
|
|
56
|
+
display: flex;
|
|
57
|
+
gap: 1rem;
|
|
58
|
+
overflow-x: auto;
|
|
59
|
+
|
|
60
|
+
-webkit-overflow-scrolling: touch;
|
|
61
|
+
::-webkit-scrollbar {
|
|
62
|
+
-webkit-appearance: none;
|
|
63
|
+
}
|
|
64
|
+
-ms-overflow-style: none;
|
|
65
|
+
/* Internet Explorer 10+ */
|
|
66
|
+
scrollbar-width: none;
|
|
67
|
+
/* Firefox */
|
|
68
|
+
|
|
69
|
+
&::-webkit-scrollbar {
|
|
70
|
+
display: none;
|
|
71
|
+
/* Safari and Chrome */
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`, y = N(T), H = L((a, E) => {
|
|
76
|
+
const {
|
|
77
|
+
title: l,
|
|
78
|
+
items: i,
|
|
79
|
+
limit: r = 4,
|
|
80
|
+
isLoading: w = !1,
|
|
81
|
+
onSelectCard: s = () => {
|
|
82
|
+
},
|
|
83
|
+
onLoadMore: h = () => {
|
|
84
|
+
},
|
|
85
|
+
onButtonAction: _ = () => {
|
|
86
|
+
},
|
|
87
|
+
getImage: d = () => {
|
|
88
|
+
},
|
|
89
|
+
viewAllbuttonLink: c,
|
|
90
|
+
viewAllButonText: C = "View all",
|
|
91
|
+
negotiableText: m,
|
|
92
|
+
freeText: u,
|
|
93
|
+
loadMoreButtonIcon: v = "angle-down",
|
|
94
|
+
sponsoredText: g,
|
|
95
|
+
onBookmark: p = () => {
|
|
96
|
+
},
|
|
97
|
+
bookmarkComponent: f
|
|
98
|
+
} = a, n = I(), S = M(() => /* @__PURE__ */ o(P, { children: n === !0 ? i == null ? void 0 : i.map((e, t) => /* @__PURE__ */ o(
|
|
99
|
+
y,
|
|
100
|
+
{
|
|
101
|
+
name: e == null ? void 0 : e.name,
|
|
102
|
+
price: e == null ? void 0 : e.price,
|
|
103
|
+
sellingPrice: e == null ? void 0 : e.sellingPrice,
|
|
104
|
+
currency: e == null ? void 0 : e.currency,
|
|
105
|
+
image: e == null ? void 0 : e.image,
|
|
106
|
+
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
107
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
108
|
+
sponsored: e == null ? void 0 : e.sponsored,
|
|
109
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
110
|
+
onSelectCard: () => s({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug }),
|
|
111
|
+
imageUrl: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
112
|
+
isFree: e == null ? void 0 : e.isFree,
|
|
113
|
+
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
114
|
+
negotiableText: m,
|
|
115
|
+
freeText: u,
|
|
116
|
+
tags: e == null ? void 0 : e.tags,
|
|
117
|
+
categoryCode: e == null ? void 0 : e.categoryCode,
|
|
118
|
+
condition: e == null ? void 0 : e.condition,
|
|
119
|
+
quantity: e == null ? void 0 : e.quantity,
|
|
120
|
+
trade: e == null ? void 0 : e.trade,
|
|
121
|
+
sponsoredText: g,
|
|
122
|
+
onBookmark: p,
|
|
123
|
+
bookmarkComponent: f,
|
|
124
|
+
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
125
|
+
bookmarkLists: e == null ? void 0 : e.bookmarkLists
|
|
126
|
+
},
|
|
127
|
+
t
|
|
128
|
+
)) : i == null ? void 0 : i.slice(0, r).map((e, t) => /* @__PURE__ */ o(
|
|
129
|
+
y,
|
|
130
|
+
{
|
|
131
|
+
name: e == null ? void 0 : e.name,
|
|
132
|
+
price: e == null ? void 0 : e.price,
|
|
133
|
+
sellingPrice: e == null ? void 0 : e.sellingPrice,
|
|
134
|
+
currency: e == null ? void 0 : e.currency,
|
|
135
|
+
image: e == null ? void 0 : e.image,
|
|
136
|
+
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
137
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
138
|
+
location: e == null ? void 0 : e.location,
|
|
139
|
+
sponsored: e == null ? void 0 : e.sponsored,
|
|
140
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
141
|
+
onSelectCard: () => s({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug }),
|
|
142
|
+
imageUrl: d(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
143
|
+
isFree: e == null ? void 0 : e.isFree,
|
|
144
|
+
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
145
|
+
negotiableText: m,
|
|
146
|
+
freeText: u,
|
|
147
|
+
tags: e == null ? void 0 : e.tags,
|
|
148
|
+
categoryCode: e == null ? void 0 : e.categoryCode,
|
|
149
|
+
condition: e == null ? void 0 : e.condition,
|
|
150
|
+
quantity: e == null ? void 0 : e.quantity,
|
|
151
|
+
trade: e == null ? void 0 : e.trade,
|
|
152
|
+
sponsoredText: g,
|
|
153
|
+
onBookmark: p,
|
|
154
|
+
bookmarkComponent: f,
|
|
155
|
+
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
156
|
+
bookmarkLists: e == null ? void 0 : e.bookmarkLists
|
|
157
|
+
},
|
|
158
|
+
t
|
|
159
|
+
)) }), [i, n, r]);
|
|
160
|
+
return /* @__PURE__ */ b(z, { limit: r, children: [
|
|
161
|
+
/* @__PURE__ */ b("div", { className: "section__heading", children: [
|
|
162
|
+
k(l) && /* @__PURE__ */ o("div", { className: "section__title", children: l }),
|
|
163
|
+
n && k(c) && /* @__PURE__ */ o(
|
|
164
|
+
F,
|
|
165
|
+
{
|
|
166
|
+
type: "button",
|
|
167
|
+
btnType: "tinted",
|
|
168
|
+
color: "neutral",
|
|
169
|
+
onClick: (e) => {
|
|
170
|
+
var t;
|
|
171
|
+
(t = e == null ? void 0 : e.target) == null || t.blur(), _(c);
|
|
172
|
+
},
|
|
173
|
+
borderRadius: "curved",
|
|
174
|
+
className: "section__view-all",
|
|
175
|
+
children: C
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
] }),
|
|
179
|
+
/* @__PURE__ */ o(
|
|
180
|
+
q,
|
|
181
|
+
{
|
|
182
|
+
isLoading: w,
|
|
183
|
+
limit: r,
|
|
184
|
+
keyPrefix: "explore-landing",
|
|
185
|
+
children: /* @__PURE__ */ o("div", { className: "section__items", children: S })
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
!n && /* @__PURE__ */ o(
|
|
189
|
+
D,
|
|
190
|
+
{
|
|
191
|
+
icon: v,
|
|
192
|
+
borderRadius: "curved",
|
|
193
|
+
btnType: "basic",
|
|
194
|
+
color: "neutral",
|
|
195
|
+
className: "section__show-more",
|
|
196
|
+
onClick: h
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
] });
|
|
200
|
+
});
|
|
201
|
+
export {
|
|
202
|
+
H as default
|
|
203
|
+
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CheckBoxInput.cjs"),t=require("./ColorInput.cjs"),e=require("./DateInput.cjs"),n=require("./DecimalInput.cjs"),i=require("./DecimalInputV2.cjs"),c=require("./FileInput.cjs"),a=require("./NumberInput.cjs"),s=require("./PasswordInput.cjs"),u=require("./RadioInput.cjs"),d=require("./RangeSlider.cjs"),q=require("./TextAreaInput.cjs"),l=require("./TextInput.cjs"),S=require("./TimeInput.cjs"),p=require("./Badge.cjs"),g=require("./Chip.cjs"),C=require("./DataView.cjs"),m=require("./DetailsView.cjs"),B=require("./EditableTable.cjs"),I=require("./FormView.cjs"),D=require("./Kanban.cjs"),b=require("./KanbanCard-BDvoqTDS.cjs"),T=require("./KanbanHeader.cjs"),F=require("./KanbanFooter.cjs"),P=require("./KanbanView.cjs"),w=require("./KanbanActionsToolbar.cjs"),h=require("./Table.cjs"),f=require("./TableView.cjs"),M=require("./ActionsToolbar.cjs"),A=require("./Alert.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CheckBoxInput.cjs"),t=require("./ColorInput.cjs"),e=require("./DateInput.cjs"),n=require("./DecimalInput.cjs"),i=require("./DecimalInputV2.cjs"),c=require("./FileInput.cjs"),a=require("./NumberInput.cjs"),s=require("./PasswordInput.cjs"),u=require("./RadioInput.cjs"),d=require("./RangeSlider.cjs"),q=require("./TextAreaInput.cjs"),l=require("./TextInput.cjs"),S=require("./TimeInput.cjs"),p=require("./Badge.cjs"),g=require("./Chip.cjs"),C=require("./DataView.cjs"),m=require("./DetailsView.cjs"),B=require("./EditableTable.cjs"),I=require("./FormView.cjs"),D=require("./Kanban.cjs"),b=require("./KanbanCard-BDvoqTDS.cjs"),T=require("./KanbanHeader.cjs"),F=require("./KanbanFooter.cjs"),P=require("./KanbanView.cjs"),w=require("./KanbanActionsToolbar.cjs"),h=require("./Table.cjs"),f=require("./TableView.cjs"),M=require("./ActionsToolbar.cjs"),A=require("./Alert.cjs"),v=require("./Notification.cjs"),G=require("./NotificationContainer.cjs"),x=require("./NotificationMessage.cjs"),L=require("./ProgressBar.cjs"),y=require("./Spinner.cjs"),K=require("./Avatar.cjs"),N=require("./Button.cjs"),V=require("./Icon.cjs"),W=require("./IconButton.cjs"),k=require("./Link.cjs"),H=require("./Surface.cjs"),R=require("./UploadedFile.cjs"),O=require("./DoubleRangeSlider.cjs"),E=require("./DragAndDropFile.cjs"),Q=require("./DragDropFiles.cjs"),U=require("./Dropdown.cjs"),z=require("./DropdownLookup.cjs"),j=require("./MultiSelectDropdown.cjs"),J=require("./MultiSelectDropdownLookup.cjs"),X=require("./RadioGroup.cjs"),Y=require("./SearchBar.cjs"),Z=require("./Toggle.cjs"),_=require("./ButtonGroup.cjs"),$=require("./Content.cjs"),ee=require("./FlexBox.cjs"),re=require("./FlexGrid.cjs"),oe=require("./FlexGridItem.cjs"),te=require("./Footer.cjs"),ne=require("./FormField.cjs"),ie=require("./Grid.cjs"),ce=require("./GridItem.cjs"),ae=require("./Header.cjs"),se=require("./PageLayout.cjs"),ue=require("./Sidebar.cjs"),de=require("./Tabs.cjs"),qe=require("./TabItem.cjs"),le=require("./Accordion.cjs"),Se=require("./AccordionSummary.cjs"),pe=require("./AccordionDetails.cjs"),ge=require("./Breadcrumbs.cjs"),Ce=require("./ConfirmationForm.cjs"),me=require("./Drawer.cjs"),Be=require("./DropdownMenu.cjs"),Ie=require("./DropdownItem.cjs"),De=require("./NestedDropdownItem.cjs"),be=require("./Separator.cjs"),Te=require("./Modal.cjs"),Fe=require("./Pagination.cjs"),Pe=require("./Popover.cjs"),we=require("./PopoverClose.cjs"),he=require("./PopoverHeading.cjs"),fe=require("./PopoverContent.cjs"),Me=require("./PopoverTrigger.cjs"),Ae=require("./PopoverDescription.cjs"),ve=require("./SwipeableDrawer.cjs"),Ge=require("./TreeMenu.cjs"),xe=require("./MenuItem.cjs"),Le=require("./NestedMenuItem.cjs"),ye=require("./TreeMenuSeparator.cjs"),Ke=require("./MasonryGeneralCardsSection.cjs"),Ne=require("./DetailedProductsSection.cjs"),Ve=require("./DetailedProductsInfinitiveSection.cjs"),We=require("./ProductsWithBannerSection.cjs"),ke=require("./SimpleProductsSection.cjs"),He=require("./UrgentSaleProductsSection.cjs"),Re=require("./BannerSectionCarousel.cjs"),Oe=require("./BannerSectionGrid.cjs"),Ee=require("./BannerSectionSimple.cjs"),Qe=require("./BannerSectionWithList.cjs"),Ue=require("./BannerSectionWithListImage.cjs"),ze=require("./GiftCardsSection.cjs"),je=require("./BrandHitsSection.cjs"),Je=require("./FieldOfInterestsMasonrySection.cjs"),Xe=require("./FieldOfInterestsWithAvatarsCardsSection.cjs"),Ye=require("./FieldOfInterestsWithTagsCardsSection.cjs"),Ze=require("./BannerSectionBasic.cjs"),_e=require("./GeneralWithTagsCardsSection.cjs"),$e=require("./ShopCardsSection.cjs"),er=require("./QuizSection.cjs"),rr=require("./SalesCampaignsSection.cjs"),or=require("./CalorieCalculatorSection.cjs"),tr=require("./BlogCategoryCardsSection.cjs"),nr=require("./BlogProductCardsSection.cjs"),ir=require("./BlogShopCardsSection.cjs"),cr=require("./BlogCardsSponsoredSection.cjs"),ar=require("./BlogListSection.cjs"),sr=require("./AdBannerSection.cjs"),ur=require("./QuattroCardsSection.cjs"),dr=require("./FeedbackSection.cjs"),qr=require("./HelpBannerSection.cjs"),lr=require("./ContactSection.cjs"),Sr=require("./FaqSection.cjs"),pr=require("./SearchSection-BGK1Fxaj.cjs"),gr=require("./StatsSection.cjs"),Cr=require("./ToggleSection.cjs"),mr=require("./BlogExploreSection.cjs"),r=require("./ThemeProvider.cjs"),Br=require("./CustomStyles-Ajyqx0cb.cjs");exports.CheckBoxInput=o;exports.ColorInput=t;exports.DateInput=e.default;exports.registerLocale=e.registerLocale;exports.DecimalInput=n;exports.DecimalInputV2=i;exports.FileInput=c;exports.NumberInput=a;exports.PasswordInput=s;exports.RadioInput=u;exports.RangeSlider=d;exports.TextAreaInput=q;exports.TextInput=l;exports.TimeInput=S;exports.Badge=p;exports.Chip=g;exports.DataView=C;exports.DetailsView=m;exports.EditableTable=B;exports.FormView=I;exports.Kanban=D;exports.KanbanCard=b.KanbanCard;exports.KanbanHeader=T;exports.KanbanFooter=F;exports.KanbanView=P;exports.KanbanActionsToolbar=w;exports.Table=h.default;exports.TableView=f;exports.ActionsToolbar=M;exports.Alert=A;exports.Notification=v;exports.NotificationContainer=G;exports.NotificationMessage=x;exports.ProgressBar=L;exports.Spinner=y;exports.Avatar=K;exports.Button=N;exports.Icon=V;exports.IconButton=W;exports.Link=k;exports.Surface=H;exports.UploadedFile=R;exports.DoubleRangeSlider=O;exports.DragAndDropFile=E;exports.DragDropFiles=Q;exports.Dropdown=U.default;exports.DropdownLookup=z;exports.MultiSelectDropdown=j;exports.MultiSelectDropdownLookup=J;exports.RadioGroup=X;exports.SearchBar=Y;exports.Toggle=Z;exports.ButtonGroup=_;exports.Content=$;exports.FlexBox=ee;exports.FlexGrid=re;exports.FlexGridItem=oe;exports.Footer=te;exports.FormField=ne;exports.Grid=ie;exports.GridItem=ce;exports.Header=ae;exports.PageLayout=se;exports.Sidebar=ue;exports.Tabs=de;exports.TabItem=qe;exports.Accordion=le;exports.AccordionSummary=Se;exports.AccordionDetails=pe.default;exports.Breadcrumbs=ge;exports.ConfirmationForm=Ce;exports.Drawer=me;exports.DropdownMenu=Be;exports.DropdownItem=Ie;exports.NestedDropdownItem=De;exports.Separator=be;exports.Modal=Te;exports.Pagination=Fe;exports.Popover=Pe;exports.PopoverClose=we;exports.PopoverHeading=he;exports.PopoverContent=fe;exports.PopoverTrigger=Me;exports.PopoverDescription=Ae;exports.SwipeableDrawer=ve;exports.TreeMenu=Ge;exports.MenuItem=xe;exports.NestedMenuItem=Le;exports.TreeMenuSeparator=ye;exports.MasonryGeneralCardsSection=Ke;exports.DetailedProductsSection=Ne;exports.DetailedProductsInfinitiveSection=Ve;exports.ProductsWithBannerSection=We;exports.SimpleProductsSection=ke;exports.UrgentSaleProductsSection=He;exports.BannerSectionCarousel=Re;exports.BannerSectionGrid=Oe;exports.BannerSectionSimple=Ee;exports.BannerSectionWithList=Qe;exports.BannerSectionWithListImage=Ue;exports.GiftCardsSection=ze;exports.BrandHitsSection=je;exports.FieldOfInterestsMasonrySection=Je;exports.FieldOfInterestsWithAvatarsCardsSection=Xe;exports.FieldOfInterestsWithTagsCardsSection=Ye;exports.BannerSectionBasic=Ze;exports.GeneralWithTagsCardsSection=_e;exports.ShopCardsSection=$e;exports.QuizSection=er;exports.SalesCampaignsSection=rr;exports.CalorieCalculatorSection=or;exports.BlogCategoryCardsSection=tr;exports.BlogProductCardsSection=nr;exports.BlogShopCardsSection=ir;exports.BlogCardsSponsoredSection=cr;exports.BlogListSection=ar;exports.AdBannerSection=sr;exports.QuattroCardsSection=ur;exports.FeedbackSection=dr;exports.HelpBannerSection=qr;exports.ContactSection=lr;exports.FaqSection=Sr;exports.SearchSection=pr.SearchSection;exports.StatsSection=gr;exports.ToggleSection=Cr;exports.BlogExploreSection=mr;exports.ThemeProvider=r.default;exports.useTheme=r.useTheme;exports.components=Br.components;
|