@lanaco/lnc-react-ui 4.0.54 → 4.0.55

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.
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),y=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./consts-CtNoHdBj.cjs"),j=require("./Button.cjs"),M=require("./useDetectMobile-D6d5LpdL.cjs"),v=i.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),j=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./consts-CtNoHdBj.cjs"),y=require("./Button.cjs"),M=require("./useDetectMobile-D6d5LpdL.cjs"),v=i.styled.div`
2
2
  display: flex;
3
3
  border-radius: 0.75rem;
4
4
  background-color: ${e=>e.bgcolor||"transparent"};
@@ -11,11 +11,6 @@
11
11
  width: fit-content;
12
12
  }
13
13
 
14
- ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
15
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
16
-
17
- `}
18
-
19
14
  & img {
20
15
  object-fit: cover;
21
16
  max-width: ${e=>e.imgW||"22.5rem"};
@@ -34,6 +29,7 @@
34
29
  flex-direction: column;
35
30
  min-height: unset;
36
31
  max-height: unset;
32
+ border: none;
37
33
 
38
34
  & button {
39
35
  width: fit-content;
@@ -46,7 +42,7 @@
46
42
  min-height: ${e=>e.imgHMob||"12.1rem"};
47
43
  }
48
44
  }
49
- `,B=i.styled.div`
45
+ `,H=i.styled.div`
50
46
  padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
51
47
  display: flex;
52
48
  gap: 2rem;
@@ -59,7 +55,7 @@
59
55
  padding: 0;
60
56
  flex-direction: column;
61
57
  }
62
- `,H=i.styled.div`
58
+ `,B=i.styled.div`
63
59
  display: flex;
64
60
  flex-direction: column;
65
61
  gap: 0.25rem;
@@ -78,4 +74,4 @@
78
74
  @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
79
75
  flex-direction: column;
80
76
  }
81
- `,_=y.forwardRef((e,d)=>{const{title:l,subtitle:m,buttonText:h,buttonLink:c,onButtonAction:g=()=>{},imageUrl:o,imagePosition:n="right",hideImageForMobile:a=!1,sectionHeight:x="12.65625rem",imageWidth:u,imageHeightMobile:p,smallPadding:b=!1,isHorizontalContent:f=!1,backgroundColor:w,hasBorder:$=!1}=e,s=M.useDetectMobile();return t.jsxs(v,{ref:d,bgcolor:w,height:x,imgW:u,imgHMob:p,hasBorder:$,children:[n!=="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o}),t.jsxs(B,{isHorizontalContent:f,smallPadding:b,children:[t.jsxs(H,{children:[t.jsx("div",{className:"header-title",children:l}),t.jsx("div",{className:"header-subitle",children:m})]}),t.jsx(j,{size:"medium",color:"neutral",type:"button",onClick:()=>g(c),children:h})]}),n==="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o})]})});module.exports=_;
77
+ `,_=j.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:h,buttonLink:c,onButtonAction:g=()=>{},imageUrl:o,imagePosition:n="right",hideImageForMobile:s=!1,sectionHeight:u="12.65625rem",imageWidth:x,imageHeightMobile:b,smallPadding:p=!1,isHorizontalContent:f=!1,backgroundColor:w,hasBorder:$=!1}=e,a=M.useDetectMobile();return t.jsxs(v,{ref:m,bgcolor:w,height:u,imgW:x,imgHMob:b,hasBorder:$,children:[n!=="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o}),t.jsxs(H,{isHorizontalContent:f,smallPadding:p,children:[t.jsxs(B,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx(y,{size:"medium",color:"neutral",type:"button",onClick:()=>g(c),children:h})]}),n==="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o})]})});module.exports=_;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as y } from "react";
2
+ import { forwardRef as H } from "react";
3
3
  import { s as r } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as o } from "./consts-C1uHV4xc.js";
5
- import H from "./Button.js";
6
- import { u as M } from "./useDetectMobile-BC6EGaBc.js";
7
- const B = r.div`
5
+ import M from "./Button.js";
6
+ import { u as y } from "./useDetectMobile-BC6EGaBc.js";
7
+ const C = r.div`
8
8
  display: flex;
9
9
  border-radius: 0.75rem;
10
10
  background-color: ${(e) => e.bgcolor || "transparent"};
@@ -17,11 +17,6 @@ const B = r.div`
17
17
  width: fit-content;
18
18
  }
19
19
 
20
- ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
21
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
22
-
23
- `}
24
-
25
20
  & img {
26
21
  object-fit: cover;
27
22
  max-width: ${(e) => e.imgW || "22.5rem"};
@@ -40,6 +35,7 @@ const B = r.div`
40
35
  flex-direction: column;
41
36
  min-height: unset;
42
37
  max-height: unset;
38
+ border: none;
43
39
 
44
40
  & button {
45
41
  width: fit-content;
@@ -52,7 +48,7 @@ const B = r.div`
52
48
  min-height: ${(e) => e.imgHMob || "12.1rem"};
53
49
  }
54
50
  }
55
- `, C = r.div`
51
+ `, z = r.div`
56
52
  padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
57
53
  display: flex;
58
54
  gap: 2rem;
@@ -65,7 +61,7 @@ const B = r.div`
65
61
  padding: 0;
66
62
  flex-direction: column;
67
63
  }
68
- `, z = r.div`
64
+ `, B = r.div`
69
65
  display: flex;
70
66
  flex-direction: column;
71
67
  gap: 0.25rem;
@@ -84,54 +80,54 @@ const B = r.div`
84
80
  @media (max-width: ${o + "px"}) {
85
81
  flex-direction: column;
86
82
  }
87
- `, E = y((e, l) => {
83
+ `, E = H((e, l) => {
88
84
  const {
89
85
  title: h,
90
- subtitle: g,
91
- buttonText: s,
86
+ subtitle: s,
87
+ buttonText: g,
92
88
  buttonLink: c,
93
- onButtonAction: x = () => {
89
+ onButtonAction: u = () => {
94
90
  },
95
91
  imageUrl: n,
96
92
  imagePosition: a = "right",
97
93
  hideImageForMobile: m = !1,
98
- sectionHeight: p = "12.65625rem",
99
- imageWidth: u,
100
- imageHeightMobile: b,
101
- smallPadding: f = !1,
94
+ sectionHeight: x = "12.65625rem",
95
+ imageWidth: p,
96
+ imageHeightMobile: f,
97
+ smallPadding: b = !1,
102
98
  isHorizontalContent: $ = !1,
103
99
  backgroundColor: w,
104
100
  hasBorder: v = !1
105
- } = e, d = M();
101
+ } = e, d = y();
106
102
  return /* @__PURE__ */ t(
107
- B,
103
+ C,
108
104
  {
109
105
  ref: l,
110
106
  bgcolor: w,
111
- height: p,
112
- imgW: u,
113
- imgHMob: b,
107
+ height: x,
108
+ imgW: p,
109
+ imgHMob: f,
114
110
  hasBorder: v,
115
111
  children: [
116
112
  a !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n }),
117
113
  /* @__PURE__ */ t(
118
- C,
114
+ z,
119
115
  {
120
116
  isHorizontalContent: $,
121
- smallPadding: f,
117
+ smallPadding: b,
122
118
  children: [
123
- /* @__PURE__ */ t(z, { children: [
119
+ /* @__PURE__ */ t(B, { children: [
124
120
  /* @__PURE__ */ i("div", { className: "header-title", children: h }),
125
- /* @__PURE__ */ i("div", { className: "header-subitle", children: g })
121
+ /* @__PURE__ */ i("div", { className: "header-subitle", children: s })
126
122
  ] }),
127
123
  /* @__PURE__ */ i(
128
- H,
124
+ M,
129
125
  {
130
126
  size: "medium",
131
127
  color: "neutral",
132
128
  type: "button",
133
- onClick: () => x(c),
134
- children: s
129
+ onClick: () => u(c),
130
+ children: g
135
131
  }
136
132
  )
137
133
  ]
@@ -61,7 +61,7 @@
61
61
  font-weight: 600;
62
62
  font-size: 0.875rem;
63
63
  position: absolute;
64
- left: -5.5rem;
64
+ left: -4.5rem;
65
65
  top: 1rem;
66
66
 
67
67
  -moz-transform: rotate(315deg);
@@ -69,7 +69,7 @@ const T = d.div`
69
69
  font-weight: 600;
70
70
  font-size: 0.875rem;
71
71
  position: absolute;
72
- left: -5.5rem;
72
+ left: -4.5rem;
73
73
  top: 1rem;
74
74
 
75
75
  -moz-transform: rotate(315deg);
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),m=require("react"),x=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-NZLCh-J5.cjs"),h=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=require("./consts-CtNoHdBj.cjs"),f=d.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),g=require("react"),h=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-NZLCh-J5.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),p=require("./consts-CtNoHdBj.cjs"),u=c.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -114,7 +114,7 @@
114
114
  }
115
115
  }
116
116
  }
117
- `,u=m.forwardRef(({title:t,image:e,description:a,actionText:o,onSelectCard:l=()=>{},className:n,position:s,tag:c},v)=>{const p=h.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(f,{theme:p,className:n,onClick:l,position:s,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[c&&r.jsx("div",{className:"text__tag",children:c}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(a)&&r.jsx("div",{className:"text__description",children:a}),i.isDefinedNotEmptyString(o)&&r.jsx(x,{text:o,onClick:l,className:"text__action"})]})]})})}),_=d.styled.div`
117
+ `,_=g.forwardRef(({title:t,image:e,description:n,buttonText:a,onSelectCard:l=()=>{},className:o,position:s,selectAction:d,tag:m},y)=>{const x=f.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(u,{theme:x,className:o,onClick:l,position:s,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[m&&r.jsx("div",{className:"text__tag",children:m}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(a)&&r.jsx(h,{text:a,onClick:()=>l(d),className:"text__action"})]})]})})}),w=c.styled.div`
118
118
  display: flex;
119
119
  flex-direction: column;
120
120
  gap: 1.5rem;
@@ -138,7 +138,7 @@
138
138
  }
139
139
  }
140
140
 
141
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
141
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
142
142
  gap: 1.25rem;
143
143
 
144
144
  & .regular-title {
@@ -149,16 +149,17 @@
149
149
  }
150
150
  }
151
151
  }
152
- `,w=d.styled.div`
152
+ `,b=c.styled.div`
153
153
  display: grid;
154
- grid-template-columns: repeat(12, 1fr);
154
+ grid-template-columns: ${t=>"repeat(12, minmax(0, 1fr))"};
155
+
155
156
  grid-template-rows: 15rem 15rem;
156
157
  grid-column-gap: 1.25rem;
157
158
  grid-row-gap: 1.25rem;
158
159
  height: 30rem;
159
160
  max-height: 30rem;
160
161
 
161
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
162
+ @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
162
163
  display: flex;
163
164
  flex-direction: column;
164
165
  gap: 1rem;
@@ -167,4 +168,4 @@
167
168
  max-height: 100%;
168
169
  padding: 0 1rem;
169
170
  }
170
- `,b=m.forwardRef(({title:t,items:e,limit:a=3,onSelectCard:o=()=>{}},l)=>r.jsxs(_,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(w,{limit:a,children:e&&(e==null?void 0:e.map((n,s)=>r.jsx(u,{...n,onSelectCard:()=>o(n==null?void 0:n.uuid)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=b;
171
+ `,v=g.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(w,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(b,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(_,{...o,onSelectCard:d=>a(d,o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=v;
@@ -1,11 +1,11 @@
1
- import { jsx as t, Fragment as u, jsxs as m } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import _ from "./Button.js";
4
- import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { m as n, t as g, k as p } from "./utils-DtRLzzTZ.js";
6
- import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { M as h } from "./consts-C1uHV4xc.js";
8
- const b = s.div`
1
+ import { jsx as t, Fragment as _, jsxs as s } from "react/jsx-runtime";
2
+ import { forwardRef as h } from "react";
3
+ import w from "./Button.js";
4
+ import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { m as n, t as p, k as f } from "./utils-DtRLzzTZ.js";
6
+ import { u as b } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { M as x } from "./consts-C1uHV4xc.js";
8
+ const v = c.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
@@ -70,7 +70,7 @@ const b = s.div`
70
70
  font-style: normal;
71
71
  font-weight: 500;
72
72
  line-height: 1.5rem;
73
- ${g(2)}
73
+ ${p(2)}
74
74
  }
75
75
 
76
76
  & .text__tag {
@@ -92,7 +92,7 @@ const b = s.div`
92
92
  font-style: normal;
93
93
  font-weight: 400;
94
94
  line-height: 1.25rem;
95
- ${g(2)}
95
+ ${p(2)}
96
96
  }
97
97
 
98
98
  & .text__action {
@@ -133,37 +133,38 @@ const b = s.div`
133
133
  }
134
134
  }
135
135
  }
136
- `, v = f(
136
+ `, y = h(
137
137
  ({
138
138
  title: r,
139
139
  image: e,
140
- description: a,
141
- actionText: o,
140
+ description: i,
141
+ buttonText: a,
142
142
  onSelectCard: l = () => {
143
143
  },
144
- className: i,
145
- position: d,
146
- tag: c
147
- }, $) => {
148
- const x = w();
149
- return /* @__PURE__ */ t(u, { children: /* @__PURE__ */ m(
150
- b,
144
+ className: o,
145
+ position: m,
146
+ selectAction: d,
147
+ tag: g
148
+ }, N) => {
149
+ const u = b();
150
+ return /* @__PURE__ */ t(_, { children: /* @__PURE__ */ s(
151
+ v,
151
152
  {
152
- theme: x,
153
- className: i,
153
+ theme: u,
154
+ className: o,
154
155
  onClick: l,
155
- position: d,
156
+ position: m,
156
157
  children: [
157
158
  /* @__PURE__ */ t("img", { src: e, className: "wrapper__image" }),
158
- /* @__PURE__ */ m("div", { className: "wrapper__text", children: [
159
- c && /* @__PURE__ */ t("div", { className: "text__tag", children: c }),
159
+ /* @__PURE__ */ s("div", { className: "wrapper__text", children: [
160
+ g && /* @__PURE__ */ t("div", { className: "text__tag", children: g }),
160
161
  /* @__PURE__ */ t("div", { className: "text__title", children: r }),
161
- p(a) && /* @__PURE__ */ t("div", { className: "text__description", children: a }),
162
- p(o) && /* @__PURE__ */ t(
163
- _,
162
+ f(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
163
+ f(a) && /* @__PURE__ */ t(
164
+ w,
164
165
  {
165
- text: o,
166
- onClick: l,
166
+ text: a,
167
+ onClick: () => l(d),
167
168
  className: "text__action"
168
169
  }
169
170
  )
@@ -172,7 +173,7 @@ const b = s.div`
172
173
  }
173
174
  ) });
174
175
  }
175
- ), y = s.div`
176
+ ), k = c.div`
176
177
  display: flex;
177
178
  flex-direction: column;
178
179
  gap: 1.5rem;
@@ -196,7 +197,7 @@ const b = s.div`
196
197
  }
197
198
  }
198
199
 
199
- @media (max-width: ${h + "px"}) {
200
+ @media (max-width: ${x + "px"}) {
200
201
  gap: 1.25rem;
201
202
 
202
203
  & .regular-title {
@@ -207,16 +208,17 @@ const b = s.div`
207
208
  }
208
209
  }
209
210
  }
210
- `, k = s.div`
211
+ `, $ = c.div`
211
212
  display: grid;
212
- grid-template-columns: repeat(12, 1fr);
213
+ grid-template-columns: ${(r) => "repeat(12, minmax(0, 1fr))"};
214
+
213
215
  grid-template-rows: 15rem 15rem;
214
216
  grid-column-gap: 1.25rem;
215
217
  grid-row-gap: 1.25rem;
216
218
  height: 30rem;
217
219
  max-height: 30rem;
218
220
 
219
- @media (max-width: ${h + "px"}) {
221
+ @media (max-width: ${x + "px"}) {
220
222
  display: flex;
221
223
  flex-direction: column;
222
224
  gap: 1rem;
@@ -225,20 +227,20 @@ const b = s.div`
225
227
  max-height: 100%;
226
228
  padding: 0 1rem;
227
229
  }
228
- `, M = f(
229
- ({ title: r, items: e, limit: a = 3, onSelectCard: o = () => {
230
- } }, l) => /* @__PURE__ */ m(y, { children: [
230
+ `, I = h(
231
+ ({ title: r, items: e, limit: i = 3, onSelectCard: a = () => {
232
+ } }, l) => /* @__PURE__ */ s(k, { children: [
231
233
  /* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
232
- /* @__PURE__ */ t(k, { limit: a, children: e && (e == null ? void 0 : e.map((i, d) => /* @__PURE__ */ t(
233
- v,
234
+ /* @__PURE__ */ t($, { limit: i, children: e && (e == null ? void 0 : e.map((o, m) => /* @__PURE__ */ t(
235
+ y,
234
236
  {
235
- ...i,
236
- onSelectCard: () => o(i == null ? void 0 : i.uuid)
237
+ ...o,
238
+ onSelectCard: (d) => a(d, o)
237
239
  },
238
- `landing-page-masonry-general-card__${d + 1}`
240
+ `landing-page-masonry-general-card__${m + 1}`
239
241
  ))) })
240
242
  ] })
241
243
  );
242
244
  export {
243
- M as default
245
+ I as default
244
246
  };
@@ -1,21 +1,21 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),u=require("./consts-CtNoHdBj.cjs"),p=require("./style-C571ywKV.cjs"),d=require("./utils-NZLCh-J5.cjs"),f=require("./Button.cjs"),m=require("./ThemeProvider.cjs"),j=x.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-CtNoHdBj.cjs"),p=require("./style-C571ywKV.cjs"),x=require("./utils-NZLCh-J5.cjs"),f=require("./Button.cjs"),m=require("./ThemeProvider.cjs"),v=u.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${t=>`repeat(${t.limit}, 1fr)`};
3
+ grid-template-columns: ${n=>`repeat(${n.limit}, 1fr)`};
4
4
  gap: 1.25rem;
5
5
  justify-items: center;
6
6
 
7
- @media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
7
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  gap: 1rem;
11
11
  }
12
- `,g=x.styled.div`
12
+ `,h=u.styled.div`
13
13
  width: 100%;
14
14
  overflow: hidden;
15
15
  position: relative;
16
16
 
17
17
  border-radius: 0.75rem;
18
- background: ${t=>t==null?void 0:t.overlay};
18
+ background: ${n=>n==null?void 0:n.overlay};
19
19
  cursor: pointer;
20
20
 
21
21
  & .content-wrapper {
@@ -50,7 +50,7 @@
50
50
 
51
51
  & .content-text-title {
52
52
  font-weight: 600;
53
- ${d.truncateTextInRows(2)}
53
+ ${x.truncateTextInRows(2)}
54
54
  }
55
55
  }
56
56
 
@@ -62,7 +62,7 @@
62
62
  }
63
63
 
64
64
  & .img-skeleton {
65
- background-color: ${d.linearGradientAnimation("-90deg")};
65
+ background-color: ${x.linearGradientAnimation("-90deg")};
66
66
  min-height: 28.75rem;
67
67
  }
68
68
 
@@ -72,7 +72,7 @@
72
72
  }
73
73
  }
74
74
 
75
- @media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
75
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
76
76
  & img,
77
77
  .img.skeleton {
78
78
  aspect-ratio: unset;
@@ -80,4 +80,4 @@
80
80
  max-height: 28.75rem;
81
81
  }
82
82
  }
83
- `,v=c.forwardRef(({},t)=>e.jsx(g,{ref:t,children:e.jsx("div",{className:"img-skeleton"})})),y=({limit:t=2,isLoading:n=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:t},(a,s)=>e.jsx(v,{isLoading:n},`${o}-skeleton-product-card-${s}`))}),w=({children:t,fallbackComponent:n=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:a,keyPrefix:s})=>e.jsx(c.Suspense,{fallbackComponent:n,children:o===!0?e.jsx(y,{isLoading:o,limit:a,keyPrefix:s}):t}),k=c.forwardRef(({title:t,image:n,overlay:o,description:a,actionText:s,handleClick:i=()=>{}},l)=>{const{theme:r}=m.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(g,{ref:l,theme:r,overlay:o,onClick:i,children:[e.jsx("img",{src:n}),e.jsxs("div",{className:"content-wrapper",children:[e.jsxs("div",{className:"content-text",children:[e.jsx("div",{children:t}),e.jsx("div",{className:"content-text-title",children:a})]}),e.jsx(f,{text:s,onClick:i,className:"text__action",size:"medium",color:"gray"})]})]})})}),_=c.memo(k),b=c.forwardRef(({title:t,items:n,limit:o=2,onSelectCard:a=()=>{},isLoading:s=!1},i)=>{const l=c.useMemo(()=>e.jsx(e.Fragment,{children:n&&(n==null?void 0:n.map((r,h)=>e.jsx(_,{title:r==null?void 0:r.title,image:r==null?void 0:r.image,description:r==null?void 0:r.description,actionText:r==null?void 0:r.actionText,overlay:r==null?void 0:r.overlay,handleClick:()=>a(r==null?void 0:r.uuid)},`landing-page-overlay-general-card__${h+1}`)))}),[n,a]);return e.jsxs(p.RegulatTitleSectionWrapper,{ref:i,children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:t})})}),e.jsx(j,{limit:o,children:e.jsx(w,{isLoading:s,limit:o,keyPrefix:"explore-landing",children:l})})]})});module.exports=b;
83
+ `,j=i.forwardRef(({},n)=>e.jsx(h,{ref:n,children:e.jsx("div",{className:"img-skeleton"})})),y=({limit:n=2,isLoading:t=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:n},(s,a)=>e.jsx(j,{isLoading:t},`${o}-skeleton-product-card-${a}`))}),w=({children:n,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:s,keyPrefix:a})=>e.jsx(i.Suspense,{fallbackComponent:t,children:o===!0?e.jsx(y,{isLoading:o,limit:s,keyPrefix:a}):n}),k=i.forwardRef(({title:n,image:t,backgroundColor:o,description:s,buttonText:a,handleClick:l=()=>{},onButtonAction:c=()=>{}},r)=>{const{theme:d}=m.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(h,{ref:r,theme:d,overlay:o,onClick:l,children:[e.jsx("img",{src:t}),e.jsxs("div",{className:"content-wrapper",children:[e.jsxs("div",{className:"content-text",children:[e.jsx("div",{children:n}),e.jsx("div",{className:"content-text-title",children:s})]}),x.isDefinedNotEmptyString(a)&&e.jsx(f,{text:a,onClick:c,className:"text__action",size:"medium",color:"gray"})]})]})})}),_=i.memo(k),$=i.forwardRef(({title:n,items:t,limit:o=2,onSelectCard:s=()=>{},isLoading:a=!1},l)=>{const c=i.useMemo(()=>e.jsx(e.Fragment,{children:t&&(t==null?void 0:t.map((r,d)=>e.jsx(_,{title:r==null?void 0:r.title,image:r==null?void 0:r.image,description:r==null?void 0:r.description,actionText:r==null?void 0:r.actionText,overlay:r==null?void 0:r.overlay,handleClick:()=>s(r==null?void 0:r.uuid)},`landing-page-overlay-general-card__${d+1}`)))}),[t,s]);return e.jsxs(p.RegulatTitleSectionWrapper,{ref:l,children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:n})})}),e.jsx(v,{limit:o,children:e.jsx(w,{isLoading:a,limit:o,keyPrefix:"explore-landing",children:c})})]})});module.exports=$;
@@ -1,23 +1,23 @@
1
- import { jsx as r, Fragment as d, jsxs as c } from "react/jsx-runtime";
2
- import { forwardRef as p, Suspense as f, memo as x, useMemo as v } from "react";
3
- import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as h } from "./consts-C1uHV4xc.js";
1
+ import { jsx as r, Fragment as c, jsxs as i } from "react/jsx-runtime";
2
+ import { forwardRef as g, Suspense as u, memo as v, useMemo as x } from "react";
3
+ import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as m } from "./consts-C1uHV4xc.js";
5
5
  import { R as y } from "./style-CsMpu4iC.js";
6
- import { t as w, m as k } from "./utils-DtRLzzTZ.js";
7
- import $ from "./Button.js";
8
- import { useTheme as b } from "./ThemeProvider.js";
9
- const N = g.div`
6
+ import { t as w, m as k, k as $ } from "./utils-DtRLzzTZ.js";
7
+ import b from "./Button.js";
8
+ import { useTheme as N } from "./ThemeProvider.js";
9
+ const C = h.div`
10
10
  display: grid;
11
11
  grid-template-columns: ${(t) => `repeat(${t.limit}, 1fr)`};
12
12
  gap: 1.25rem;
13
13
  justify-items: center;
14
14
 
15
- @media (max-width: ${h + "px"}) {
15
+ @media (max-width: ${m + "px"}) {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  gap: 1rem;
19
19
  }
20
- `, m = g.div`
20
+ `, f = h.div`
21
21
  width: 100%;
22
22
  overflow: hidden;
23
23
  position: relative;
@@ -80,7 +80,7 @@ const N = g.div`
80
80
  }
81
81
  }
82
82
 
83
- @media (max-width: ${h + "px"}) {
83
+ @media (max-width: ${m + "px"}) {
84
84
  & img,
85
85
  .img.skeleton {
86
86
  aspect-ratio: unset;
@@ -88,48 +88,57 @@ const N = g.div`
88
88
  max-height: 28.75rem;
89
89
  }
90
90
  }
91
- `, P = p(({}, t) => /* @__PURE__ */ r(m, { ref: t, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), _ = ({ limit: t = 2, isLoading: n = !1, keyPrefix: o }) => /* @__PURE__ */ r(d, { children: Array.from({ length: t }, (a, l) => /* @__PURE__ */ r(
91
+ `, P = g(({}, t) => /* @__PURE__ */ r(f, { ref: t, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), S = ({ limit: t = 2, isLoading: n = !1, keyPrefix: o }) => /* @__PURE__ */ r(c, { children: Array.from({ length: t }, (l, a) => /* @__PURE__ */ r(
92
92
  P,
93
93
  {
94
94
  isLoading: n
95
95
  },
96
- `${o}-skeleton-product-card-${l}`
97
- )) }), C = ({
96
+ `${o}-skeleton-product-card-${a}`
97
+ )) }), _ = ({
98
98
  children: t,
99
- fallbackComponent: n = /* @__PURE__ */ r(d, {}),
99
+ fallbackComponent: n = /* @__PURE__ */ r(c, {}),
100
100
  isLoading: o = !1,
101
- limit: a,
102
- keyPrefix: l
103
- }) => /* @__PURE__ */ r(f, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
104
- _,
101
+ limit: l,
102
+ keyPrefix: a
103
+ }) => /* @__PURE__ */ r(u, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
104
+ S,
105
105
  {
106
106
  isLoading: o,
107
- limit: a,
108
- keyPrefix: l
107
+ limit: l,
108
+ keyPrefix: a
109
109
  }
110
- ) : t }), S = p(
111
- ({ title: t, image: n, overlay: o, description: a, actionText: l, handleClick: i = () => {
112
- } }, s) => {
113
- const { theme: e } = b();
114
- return /* @__PURE__ */ r(d, { children: /* @__PURE__ */ c(
115
- m,
110
+ ) : t }), j = g(
111
+ ({
112
+ title: t,
113
+ image: n,
114
+ backgroundColor: o,
115
+ description: l,
116
+ buttonText: a,
117
+ handleClick: d = () => {
118
+ },
119
+ onButtonAction: s = () => {
120
+ }
121
+ }, e) => {
122
+ const { theme: p } = N();
123
+ return /* @__PURE__ */ r(c, { children: /* @__PURE__ */ i(
124
+ f,
116
125
  {
117
- ref: s,
118
- theme: e,
126
+ ref: e,
127
+ theme: p,
119
128
  overlay: o,
120
- onClick: i,
129
+ onClick: d,
121
130
  children: [
122
131
  /* @__PURE__ */ r("img", { src: n }),
123
- /* @__PURE__ */ c("div", { className: "content-wrapper", children: [
124
- /* @__PURE__ */ c("div", { className: "content-text", children: [
132
+ /* @__PURE__ */ i("div", { className: "content-wrapper", children: [
133
+ /* @__PURE__ */ i("div", { className: "content-text", children: [
125
134
  /* @__PURE__ */ r("div", { children: t }),
126
- /* @__PURE__ */ r("div", { className: "content-text-title", children: a })
135
+ /* @__PURE__ */ r("div", { className: "content-text-title", children: l })
127
136
  ] }),
128
- /* @__PURE__ */ r(
129
- $,
137
+ $(a) && /* @__PURE__ */ r(
138
+ b,
130
139
  {
131
- text: l,
132
- onClick: i,
140
+ text: a,
141
+ onClick: s,
133
142
  className: "text__action",
134
143
  size: "medium",
135
144
  color: "gray"
@@ -140,27 +149,27 @@ const N = g.div`
140
149
  }
141
150
  ) });
142
151
  }
143
- ), j = x(S), A = p(
144
- ({ title: t, items: n, limit: o = 2, onSelectCard: a = () => {
145
- }, isLoading: l = !1 }, i) => {
146
- const s = v(() => /* @__PURE__ */ r(d, { children: n && (n == null ? void 0 : n.map((e, u) => /* @__PURE__ */ r(
147
- j,
152
+ ), G = v(j), A = g(
153
+ ({ title: t, items: n, limit: o = 2, onSelectCard: l = () => {
154
+ }, isLoading: a = !1 }, d) => {
155
+ const s = x(() => /* @__PURE__ */ r(c, { children: n && (n == null ? void 0 : n.map((e, p) => /* @__PURE__ */ r(
156
+ G,
148
157
  {
149
158
  title: e == null ? void 0 : e.title,
150
159
  image: e == null ? void 0 : e.image,
151
160
  description: e == null ? void 0 : e.description,
152
161
  actionText: e == null ? void 0 : e.actionText,
153
162
  overlay: e == null ? void 0 : e.overlay,
154
- handleClick: () => a(e == null ? void 0 : e.uuid)
163
+ handleClick: () => l(e == null ? void 0 : e.uuid)
155
164
  },
156
- `landing-page-overlay-general-card__${u + 1}`
157
- ))) }), [n, a]);
158
- return /* @__PURE__ */ c(y, { ref: i, children: [
165
+ `landing-page-overlay-general-card__${p + 1}`
166
+ ))) }), [n, l]);
167
+ return /* @__PURE__ */ i(y, { ref: d, children: [
159
168
  /* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: t }) }) }),
160
- /* @__PURE__ */ r(N, { limit: o, children: /* @__PURE__ */ r(
161
- C,
169
+ /* @__PURE__ */ r(C, { limit: o, children: /* @__PURE__ */ r(
170
+ _,
162
171
  {
163
- isLoading: l,
172
+ isLoading: a,
164
173
  limit: o,
165
174
  keyPrefix: "explore-landing",
166
175
  children: s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.54",
3
+ "version": "4.0.55",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [