@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.
@@ -9,6 +9,7 @@
9
9
  background: var(--white, #fff);
10
10
  min-height: 10.5rem;
11
11
  position: relative;
12
+ width: 100%;
12
13
 
13
14
  &:hover {
14
15
  cursor: pointer;
@@ -19,6 +19,7 @@ const T = y.div`
19
19
  background: var(--white, #fff);
20
20
  min-height: 10.5rem;
21
21
  position: relative;
22
+ width: 100%;
22
23
 
23
24
  &:hover {
24
25
  cursor: pointer;
@@ -9,6 +9,7 @@
9
9
  background: var(--white, #fff);
10
10
  min-height: 10.5rem;
11
11
  position: relative;
12
+ width: 100%;
12
13
 
13
14
  &:hover {
14
15
  cursor: pointer;
@@ -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: c = 0,
137
- numberOfComments: d = 0,
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(c)
173
+ w(d)
173
174
  ] }),
174
175
  /* @__PURE__ */ i("div", { children: [
175
176
  /* @__PURE__ */ t(h, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
176
- w(d)
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: c = !1,
244
- getImage: d = () => {
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: d(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
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: c,
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"),h=require("./suspense-product-card-simple-CQxB1MF4.cjs"),j=require("./Button.cjs"),f=require("./style-OPSfrtFm.cjs"),y=u.memo(P.SimpleProductCard),M=u.forwardRef(({buttonText:t,buttonLink:o,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!0},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(f.Wrapper,{className:p?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(h.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:b})}),r.jsx(j,{text:t,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(o)})]})});module.exports=M;
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: t,
11
+ buttonLink: l,
12
12
  items: r,
13
- onButtonAction: l = () => {
13
+ onButtonAction: a = () => {
14
14
  },
15
15
  onSelectCard: o = () => {
16
16
  },
17
- isLoading: a = !1,
17
+ isLoading: t = !1,
18
18
  limit: c = 4,
19
19
  getImage: d = () => {
20
20
  },
21
- isHighlight: m = !0
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: a,
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(t)
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"),g=require("./Button.cjs"),S=require("./style-OPSfrtFm.cjs"),b=({limit:t=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:t},(i,o)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${o}`))}),_=({children:t,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:o})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(b,{isLoading:s,limit:i,keyPrefix:o}):t}),k=u.memo(a.ShopCard),q=u.forwardRef(({buttonText:t,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:o=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{}},C)=>{const h=f.useDetectMobile(),j=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,m)=>r.jsx(k,{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:()=>o==null?void 0:o(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__${m+1}`))},[s]);return r.jsxs(S.Wrapper,{children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(_,{isLoading:l,limit:d,keyPrefix:"blog-section",children:j})}),r.jsx(g,{text:t,borderRadius:"curved",btnType:h?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=q;
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 f } from "react/jsx-runtime";
2
- import { Suspense as S, memo as g, forwardRef as b, useMemo as _ } from "react";
3
- import { u as C } from "./useDetectMobile-BC6EGaBc.js";
4
- import { a as k, S as w } from "./skeleton-iQWpOw9K.js";
5
- import v from "./Button.js";
6
- import { W as M } from "./style-DOKM5cZi.js";
7
- const y = ({ limit: s = 4, isLoading: i = !1, keyPrefix: e }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (a, t) => /* @__PURE__ */ o(
8
- k,
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: i
10
+ isLoading: a
11
11
  },
12
- `${e}-skeleton-shop-card-${t}`
12
+ `${r}-skeleton-shop-card-${t}`
13
13
  )) }), $ = ({
14
14
  children: s,
15
- fallbackComponent: i = /* @__PURE__ */ o(u, {}),
16
- isLoading: e = !1,
17
- limit: a,
15
+ fallbackComponent: a = /* @__PURE__ */ o(u, {}),
16
+ isLoading: r = !1,
17
+ limit: i,
18
18
  keyPrefix: t
19
- }) => /* @__PURE__ */ o(S, { fallbackComponent: i, children: e === !0 ? /* @__PURE__ */ o(
20
- y,
19
+ }) => /* @__PURE__ */ o(S, { fallbackComponent: a, children: r === !0 ? /* @__PURE__ */ o(
20
+ N,
21
21
  {
22
- isLoading: e,
23
- limit: a,
22
+ isLoading: r,
23
+ limit: i,
24
24
  keyPrefix: t
25
25
  }
26
- ) : s }), j = g(w), A = b(
26
+ ) : s }), j = b(v), F = _(
27
27
  ({
28
28
  buttonText: s,
29
- buttonLink: i,
30
- items: e,
31
- onButtonAction: a = () => {
29
+ buttonLink: a,
30
+ items: r,
31
+ onButtonAction: i = () => {
32
32
  },
33
33
  onSelectCard: t = () => {
34
34
  },
35
- isLoading: p = !1,
36
- limit: l = 4,
37
- getImage: d = () => {
38
- }
35
+ isLoading: l = !1,
36
+ limit: p = 4,
37
+ getImage: c = () => {
38
+ },
39
+ isHighlight: d = !1
39
40
  }, z) => {
40
- const c = C(), m = _(() => {
41
+ const m = k(), h = C(() => {
41
42
  var n;
42
- return (n = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : n.map((r, h) => /* @__PURE__ */ o(
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: r == null ? void 0 : r.uuid,
46
- title: r == null ? void 0 : r.name,
47
- subtitle: r == null ? void 0 : r.shortDescription,
48
- rating: r == null ? void 0 : r.rating,
49
- reviewCount: r == null ? void 0 : r.reviewCount,
50
- onSelectCard: () => t == null ? void 0 : t(r == null ? void 0 : r.uuid),
51
- image: d(r == null ? void 0 : r.profileImage, r == null ? void 0 : r.uuid) || null,
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__${h + 1}`
55
+ `shop-card__${f + 1}`
55
56
  ));
56
- }, [e]);
57
- return /* @__PURE__ */ f(M, { children: [
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: p,
62
- limit: l,
62
+ isLoading: l,
63
+ limit: p,
63
64
  keyPrefix: "blog-section",
64
- children: m
65
+ children: h
65
66
  }
66
67
  ) }),
67
68
  /* @__PURE__ */ o(
68
- v,
69
+ M,
69
70
  {
70
71
  text: s,
71
72
  borderRadius: "curved",
72
- btnType: c ? "basic" : "outline",
73
+ btnType: m ? "basic" : "outline",
73
74
  color: "neutral",
74
75
  className: "wrapper__action",
75
- onClick: () => a(i)
76
+ onClick: () => i(a)
76
77
  }
77
78
  )
78
79
  ] });
79
80
  }
80
81
  );
81
82
  export {
82
- A as default
83
+ F as default
83
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.62",
3
+ "version": "4.0.64",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [