@lanaco/lnc-react-ui 4.0.62 → 4.0.64
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/BlogCardsSponsoredSection.cjs +1 -0
- package/dist/BlogCardsSponsoredSection.js +1 -0
- package/dist/BlogListSection.cjs +1 -0
- package/dist/BlogListSection.js +9 -8
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +6 -6
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +45 -44
- package/package.json +1 -1
package/dist/BlogListSection.cjs
CHANGED
package/dist/BlogListSection.js
CHANGED
|
@@ -18,6 +18,7 @@ const L = y.div`
|
|
|
18
18
|
background: var(--white, #fff);
|
|
19
19
|
min-height: 10.5rem;
|
|
20
20
|
position: relative;
|
|
21
|
+
width: 100%;
|
|
21
22
|
|
|
22
23
|
&:hover {
|
|
23
24
|
cursor: pointer;
|
|
@@ -133,8 +134,8 @@ const L = y.div`
|
|
|
133
134
|
publishedAt: l,
|
|
134
135
|
timeToReadText: s = "{0} min read",
|
|
135
136
|
timeToRead: o = 0,
|
|
136
|
-
numberOfLikes:
|
|
137
|
-
numberOfComments:
|
|
137
|
+
numberOfLikes: d = 0,
|
|
138
|
+
numberOfComments: c = 0,
|
|
138
139
|
onSelectCard: p = () => {
|
|
139
140
|
},
|
|
140
141
|
onSelectOption: u = () => {
|
|
@@ -169,11 +170,11 @@ const L = y.div`
|
|
|
169
170
|
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
170
171
|
/* @__PURE__ */ i("div", { children: [
|
|
171
172
|
/* @__PURE__ */ t(h, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
|
|
172
|
-
w(
|
|
173
|
+
w(d)
|
|
173
174
|
] }),
|
|
174
175
|
/* @__PURE__ */ i("div", { children: [
|
|
175
176
|
/* @__PURE__ */ t(h, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
|
|
176
|
-
w(
|
|
177
|
+
w(c)
|
|
177
178
|
] })
|
|
178
179
|
] })
|
|
179
180
|
] }),
|
|
@@ -240,8 +241,8 @@ const L = y.div`
|
|
|
240
241
|
},
|
|
241
242
|
onBookmark: o = () => {
|
|
242
243
|
},
|
|
243
|
-
isLoading:
|
|
244
|
-
getImage:
|
|
244
|
+
isLoading: d = !1,
|
|
245
|
+
getImage: c = () => {
|
|
245
246
|
},
|
|
246
247
|
isSeparated: p = !0
|
|
247
248
|
}, u) => {
|
|
@@ -261,14 +262,14 @@ const L = y.div`
|
|
|
261
262
|
onSelectOption: (r) => l == null ? void 0 : l(r),
|
|
262
263
|
onShare: () => s == null ? void 0 : s(e == null ? void 0 : e.uuid),
|
|
263
264
|
onBookmark: () => o == null ? void 0 : o(e == null ? void 0 : e.uuid),
|
|
264
|
-
imageUrl:
|
|
265
|
+
imageUrl: c(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
265
266
|
},
|
|
266
267
|
`blog-card-item__${_ + 1}`
|
|
267
268
|
)), [n]);
|
|
268
269
|
return /* @__PURE__ */ t(U, { className: p ? "separated" : "", children: /* @__PURE__ */ t(
|
|
269
270
|
$,
|
|
270
271
|
{
|
|
271
|
-
isLoading:
|
|
272
|
+
isLoading: d,
|
|
272
273
|
limit: 5,
|
|
273
274
|
keyPrefix: "blog-section",
|
|
274
275
|
children: f
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-D6d5LpdL.cjs"),P=require("./index-CfA579i2.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-D6d5LpdL.cjs"),P=require("./index-CfA579i2.cjs"),f=require("./suspense-product-card-simple-CQxB1MF4.cjs"),h=require("./Button.cjs"),j=require("./style-OPSfrtFm.cjs"),y=u.memo(P.SimpleProductCard),M=u.forwardRef(({buttonText:o,buttonLink:t,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!1},N)=>{const m=q.useDetectMobile(),b=u.useMemo(()=>{var c;return(c=i==null?void 0:i.slice(0,4))==null?void 0:c.map((e,g)=>r.jsx(y,{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:()=>s==null?void 0:s(e==null?void 0:e.uuid),image:a(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},g))},[i]);return r.jsxs(j.Wrapper,{className:p?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(f.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:b})}),r.jsx(h,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=M;
|
|
@@ -8,17 +8,17 @@ import { W as _ } from "./style-DOKM5cZi.js";
|
|
|
8
8
|
const w = b(y), R = h(
|
|
9
9
|
({
|
|
10
10
|
buttonText: u,
|
|
11
|
-
buttonLink:
|
|
11
|
+
buttonLink: l,
|
|
12
12
|
items: r,
|
|
13
|
-
onButtonAction:
|
|
13
|
+
onButtonAction: a = () => {
|
|
14
14
|
},
|
|
15
15
|
onSelectCard: o = () => {
|
|
16
16
|
},
|
|
17
|
-
isLoading:
|
|
17
|
+
isLoading: t = !1,
|
|
18
18
|
limit: c = 4,
|
|
19
19
|
getImage: d = () => {
|
|
20
20
|
},
|
|
21
|
-
isHighlight: m = !
|
|
21
|
+
isHighlight: m = !1
|
|
22
22
|
}, U) => {
|
|
23
23
|
const p = N(), n = P(() => {
|
|
24
24
|
var s;
|
|
@@ -42,7 +42,7 @@ const w = b(y), R = h(
|
|
|
42
42
|
/* @__PURE__ */ i("div", { className: "wrapper__grid", children: /* @__PURE__ */ i(
|
|
43
43
|
M,
|
|
44
44
|
{
|
|
45
|
-
isLoading:
|
|
45
|
+
isLoading: t,
|
|
46
46
|
limit: c,
|
|
47
47
|
keyPrefix: "blog-section",
|
|
48
48
|
children: n
|
|
@@ -56,7 +56,7 @@ const w = b(y), R = h(
|
|
|
56
56
|
btnType: p ? "basic" : "outline",
|
|
57
57
|
color: "neutral",
|
|
58
58
|
className: "wrapper__action",
|
|
59
|
-
onClick: () => l
|
|
59
|
+
onClick: () => a(l)
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-D6d5LpdL.cjs"),a=require("./skeleton-CtJG0_SN.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-D6d5LpdL.cjs"),a=require("./skeleton-CtJG0_SN.cjs"),S=require("./Button.cjs"),b=require("./style-OPSfrtFm.cjs"),_=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),k=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(_,{isLoading:s,limit:i,keyPrefix:t}):o}),q=u.memo(a.ShopCard),C=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},w)=>{const m=f.useDetectMobile(),g=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,j)=>r.jsx(q,{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:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${j+1}`))},[s]);return r.jsxs(b.Wrapper,{className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(k,{isLoading:l,limit:d,keyPrefix:"blog-section",children:g})}),r.jsx(S,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=C;
|
|
@@ -1,83 +1,84 @@
|
|
|
1
|
-
import { jsx as o, Fragment as u, jsxs as
|
|
2
|
-
import { Suspense as S, memo as
|
|
3
|
-
import { u as
|
|
4
|
-
import { a as
|
|
5
|
-
import
|
|
6
|
-
import { W as
|
|
7
|
-
const
|
|
8
|
-
|
|
1
|
+
import { jsx as o, Fragment as u, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as S, memo as b, forwardRef as _, useMemo as C } from "react";
|
|
3
|
+
import { u as k } from "./useDetectMobile-BC6EGaBc.js";
|
|
4
|
+
import { a as w, S as v } from "./skeleton-iQWpOw9K.js";
|
|
5
|
+
import M from "./Button.js";
|
|
6
|
+
import { W as y } from "./style-DOKM5cZi.js";
|
|
7
|
+
const N = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (i, t) => /* @__PURE__ */ o(
|
|
8
|
+
w,
|
|
9
9
|
{
|
|
10
|
-
isLoading:
|
|
10
|
+
isLoading: a
|
|
11
11
|
},
|
|
12
|
-
`${
|
|
12
|
+
`${r}-skeleton-shop-card-${t}`
|
|
13
13
|
)) }), $ = ({
|
|
14
14
|
children: s,
|
|
15
|
-
fallbackComponent:
|
|
16
|
-
isLoading:
|
|
17
|
-
limit:
|
|
15
|
+
fallbackComponent: a = /* @__PURE__ */ o(u, {}),
|
|
16
|
+
isLoading: r = !1,
|
|
17
|
+
limit: i,
|
|
18
18
|
keyPrefix: t
|
|
19
|
-
}) => /* @__PURE__ */ o(S, { fallbackComponent:
|
|
20
|
-
|
|
19
|
+
}) => /* @__PURE__ */ o(S, { fallbackComponent: a, children: r === !0 ? /* @__PURE__ */ o(
|
|
20
|
+
N,
|
|
21
21
|
{
|
|
22
|
-
isLoading:
|
|
23
|
-
limit:
|
|
22
|
+
isLoading: r,
|
|
23
|
+
limit: i,
|
|
24
24
|
keyPrefix: t
|
|
25
25
|
}
|
|
26
|
-
) : s }), j =
|
|
26
|
+
) : s }), j = b(v), F = _(
|
|
27
27
|
({
|
|
28
28
|
buttonText: s,
|
|
29
|
-
buttonLink:
|
|
30
|
-
items:
|
|
31
|
-
onButtonAction:
|
|
29
|
+
buttonLink: a,
|
|
30
|
+
items: r,
|
|
31
|
+
onButtonAction: i = () => {
|
|
32
32
|
},
|
|
33
33
|
onSelectCard: t = () => {
|
|
34
34
|
},
|
|
35
|
-
isLoading:
|
|
36
|
-
limit:
|
|
37
|
-
getImage:
|
|
38
|
-
}
|
|
35
|
+
isLoading: l = !1,
|
|
36
|
+
limit: p = 4,
|
|
37
|
+
getImage: c = () => {
|
|
38
|
+
},
|
|
39
|
+
isHighlight: d = !1
|
|
39
40
|
}, z) => {
|
|
40
|
-
const
|
|
41
|
+
const m = k(), h = C(() => {
|
|
41
42
|
var n;
|
|
42
|
-
return (n =
|
|
43
|
+
return (n = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : n.map((e, f) => /* @__PURE__ */ o(
|
|
43
44
|
j,
|
|
44
45
|
{
|
|
45
|
-
uuid:
|
|
46
|
-
title:
|
|
47
|
-
subtitle:
|
|
48
|
-
rating:
|
|
49
|
-
reviewCount:
|
|
50
|
-
onSelectCard: () => t == null ? void 0 : t(
|
|
51
|
-
image:
|
|
46
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
47
|
+
title: e == null ? void 0 : e.name,
|
|
48
|
+
subtitle: e == null ? void 0 : e.shortDescription,
|
|
49
|
+
rating: e == null ? void 0 : e.rating,
|
|
50
|
+
reviewCount: e == null ? void 0 : e.reviewCount,
|
|
51
|
+
onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid),
|
|
52
|
+
image: c(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
|
|
52
53
|
hideProducts: !0
|
|
53
54
|
},
|
|
54
|
-
`shop-card__${
|
|
55
|
+
`shop-card__${f + 1}`
|
|
55
56
|
));
|
|
56
|
-
}, [
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
}, [r]);
|
|
58
|
+
return /* @__PURE__ */ g(y, { className: d ? "highlight" : "", children: [
|
|
58
59
|
/* @__PURE__ */ o("div", { className: "wrapper__grid", children: /* @__PURE__ */ o(
|
|
59
60
|
$,
|
|
60
61
|
{
|
|
61
|
-
isLoading:
|
|
62
|
-
limit:
|
|
62
|
+
isLoading: l,
|
|
63
|
+
limit: p,
|
|
63
64
|
keyPrefix: "blog-section",
|
|
64
|
-
children:
|
|
65
|
+
children: h
|
|
65
66
|
}
|
|
66
67
|
) }),
|
|
67
68
|
/* @__PURE__ */ o(
|
|
68
|
-
|
|
69
|
+
M,
|
|
69
70
|
{
|
|
70
71
|
text: s,
|
|
71
72
|
borderRadius: "curved",
|
|
72
|
-
btnType:
|
|
73
|
+
btnType: m ? "basic" : "outline",
|
|
73
74
|
color: "neutral",
|
|
74
75
|
className: "wrapper__action",
|
|
75
|
-
onClick: () => a
|
|
76
|
+
onClick: () => i(a)
|
|
76
77
|
}
|
|
77
78
|
)
|
|
78
79
|
] });
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
82
|
export {
|
|
82
|
-
|
|
83
|
+
F as default
|
|
83
84
|
};
|