@lanaco/lnc-react-ui 4.0.54 → 4.0.56

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
  ]
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-CtNoHdBj.cjs"),m=require("./utils-NZLCh-J5.cjs"),v=require("./Icon.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),k=l.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-CtNoHdBj.cjs"),m=require("./utils-NZLCh-J5.cjs"),j=require("./Icon.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),$=o.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -74,7 +74,7 @@
74
74
  }
75
75
  }
76
76
  }
77
- `,$=l.styled.div`
77
+ `,I=o.styled.div`
78
78
  width: 100%;
79
79
  height: 11.625rem;
80
80
  border-radius: 0.75rem;
@@ -85,7 +85,7 @@
85
85
  height: 5rem;
86
86
  border-radius: 999px;
87
87
  }
88
- `,I=l.styled.div`
88
+ `,N=o.styled.div`
89
89
  display: flex;
90
90
  padding: 0 0.5rem 0 0;
91
91
  align-items: center;
@@ -125,12 +125,12 @@
125
125
  white-space: nowrap;
126
126
  }
127
127
  }
128
- `,C=l.styled.div`
128
+ `,C=o.styled.div`
129
129
  width: 7rem;
130
130
  height: 3rem;
131
131
  border-radius: 999px;
132
132
  background: ${m.linearGradientAnimation("-90deg")};
133
- `,E=s.forwardRef(({},i)=>r.jsx(C,{})),N=s.forwardRef(({text:i,icon:a,onSelectCard:t=()=>{}},p)=>r.jsxs(I,{onClick:t,children:[r.jsx(v,{icon:` ${a}`,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),W=s.forwardRef(({image:i,imageComponent:a,title:t,onSelectCard:p=()=>{}},f)=>{const{theme:c}=j.useTheme();return r.jsxs(k,{theme:c,onClick:p,children:[m.isDefined(a)?a:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),G=s.forwardRef(({},i)=>r.jsx($,{})),R=l.styled.div`
133
+ `,E=l.forwardRef(({},t)=>r.jsx(C,{})),W=l.forwardRef(({text:t,icon:i,onSelectCard:a=()=>{}},p)=>r.jsxs(N,{onClick:a,children:[r.jsx(j,{icon:` ${i}`,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),G=l.forwardRef(({image:t,imageComponent:i,title:a,onSelectCard:p=()=>{}},w)=>{const{theme:c}=k.useTheme();return r.jsxs($,{theme:c,onClick:p,children:[m.isDefined(i)?i:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:a})})]})}),R=l.forwardRef(({},t)=>r.jsx(I,{})),q=o.styled.div`
134
134
  display: flex;
135
135
  flex-direction: column;
136
136
  align-items: center;
@@ -172,7 +172,7 @@
172
172
 
173
173
  & .wrapper__cards {
174
174
  display: grid;
175
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
175
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCards}, minmax(0, 1fr))`};
176
176
  justify-content: center;
177
177
  align-items: center;
178
178
  gap: 1.5rem;
@@ -203,8 +203,8 @@
203
203
  }
204
204
 
205
205
  & .wrapper__cards {
206
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
206
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
207
207
  gap: 1rem;
208
208
  }
209
209
  }
210
- `,q=s.forwardRef(({title:i,subtitle:a,tags:t=[],limitTags:p=7,limitTagsForMobile:f=2,limit:c=3,limitForMobile:b=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{}},y)=>{var g,u;const x=e=>{h==null||h(e==null?void 0:e.uuid)},w=e=>{_==null||_(e==null?void 0:e.uuid)};return r.jsxs(R,{ref:y,limitTags:p,limitTagsForMobile:f,limitCards:c,limitCardsForMobile:b,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__subtitle",children:a})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,o)=>r.jsx(W,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>w==null?void 0:w(e==null?void 0:e.uuid)},`general-with-tags-card__${o+1}`)):(g=Array.from("123"))==null?void 0:g.map((e,o)=>r.jsx(G,{},`general-with-tags-card-skeleton__${o+1}`))}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,o)=>r.jsx(N,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>x==null?void 0:x(e)},`general-with-tags-card-tag__${o+1}`)):(u=Array.from("123"))==null?void 0:u.map((e,o)=>r.jsx(E,{},`general-with-tags-card-tag-skeleton__${o+1}`))})]})});module.exports=q;
210
+ `,z=l.forwardRef(({title:t,subtitle:i,options:a=[],limitTags:p=7,limitTagsForMobile:w=2,limit:c=3,limitForMobile:b=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:y},v)=>{var f,u;const x=e=>{h==null||h(e==null?void 0:e.uuid)},g=e=>{_==null||_(e==null?void 0:e.uuid)};return r.jsxs(q,{ref:v,limitTags:p,limitTagsForMobile:w,limitCards:c,limitCardsForMobile:b,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(G,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>g==null?void 0:g(e==null?void 0:e.uuid)},`general-with-tags-card__${s+1}`)):(f=Array.from("123"))==null?void 0:f.map((e,s)=>r.jsx(R,{},`general-with-tags-card-skeleton__${s+1}`))}),(a==null?void 0:a.length)>0&&r.jsx("div",{className:"wrapper__tags",children:a==null?void 0:a.map((e,s)=>r.jsx(W,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>x==null?void 0:x(e)},`general-with-tags-card-tag__${s+1}`))}),y===!0&&!((a==null?void 0:a.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(u=Array.from("123"))==null?void 0:u.map((e,s)=>r.jsx(E,{},`general-with-tags-card-tag-skeleton__${s+1}`))})]})});module.exports=z;
@@ -1,11 +1,11 @@
1
- import { jsx as i, jsxs as m } from "react/jsx-runtime";
2
- import { forwardRef as l } from "react";
3
- import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
1
+ import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
+ import { forwardRef as o } from "react";
3
+ import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as d } from "./consts-C1uHV4xc.js";
5
- import { t as k, m as b, l as $ } from "./utils-DtRLzzTZ.js";
5
+ import { t as $, m as b, l as N } from "./utils-DtRLzzTZ.js";
6
6
  import C from "./Icon.js";
7
- import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const W = p.div`
7
+ import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ const j = s.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
@@ -44,7 +44,7 @@ const W = p.div`
44
44
  font-style: normal;
45
45
  font-weight: 500;
46
46
  line-height: 1.5rem;
47
- ${k(2)}
47
+ ${$(2)}
48
48
  transition: var(--transition, all 0.2s ease);
49
49
  }
50
50
  }
@@ -81,7 +81,7 @@ const W = p.div`
81
81
  }
82
82
  }
83
83
  }
84
- `, j = p.div`
84
+ `, G = s.div`
85
85
  width: 100%;
86
86
  height: 11.625rem;
87
87
  border-radius: 0.75rem;
@@ -92,7 +92,7 @@ const W = p.div`
92
92
  height: 5rem;
93
93
  border-radius: 999px;
94
94
  }
95
- `, G = p.div`
95
+ `, z = s.div`
96
96
  display: flex;
97
97
  padding: 0 0.5rem 0 0;
98
98
  align-items: center;
@@ -132,27 +132,27 @@ const W = p.div`
132
132
  white-space: nowrap;
133
133
  }
134
134
  }
135
- `, z = p.div`
135
+ `, T = s.div`
136
136
  width: 7rem;
137
137
  height: 3rem;
138
138
  border-radius: 999px;
139
139
  background: ${b("-90deg")};
140
- `, T = l(({}, r) => /* @__PURE__ */ i(z, {})), I = l(
141
- ({ text: r, icon: a, onSelectCard: t = () => {
142
- } }, s) => /* @__PURE__ */ m(G, { onClick: t, children: [
143
- /* @__PURE__ */ i(C, { icon: ` ${a}`, className: "wrapper__icon" }),
144
- /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
140
+ `, I = o(({}, r) => /* @__PURE__ */ a(T, {})), M = o(
141
+ ({ text: r, icon: i, onSelectCard: t = () => {
142
+ } }, p) => /* @__PURE__ */ m(z, { onClick: t, children: [
143
+ /* @__PURE__ */ a(C, { icon: ` ${i}`, className: "wrapper__icon" }),
144
+ /* @__PURE__ */ a("div", { className: "wrapper__text", children: r })
145
145
  ] })
146
- ), M = l(
147
- ({ image: r, imageComponent: a, title: t, onSelectCard: s = () => {
148
- } }, g) => {
149
- const { theme: c } = N();
150
- return /* @__PURE__ */ m(W, { theme: c, onClick: s, children: [
151
- $(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
152
- /* @__PURE__ */ i("div", { className: "wrapper__content", children: /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }) })
146
+ ), A = o(
147
+ ({ image: r, imageComponent: i, title: t, onSelectCard: p = () => {
148
+ } }, f) => {
149
+ const { theme: c } = W();
150
+ return /* @__PURE__ */ m(j, { theme: c, onClick: p, children: [
151
+ N(i) ? i : /* @__PURE__ */ a("img", { src: r, className: "wrapper__image" }),
152
+ /* @__PURE__ */ a("div", { className: "wrapper__content", children: /* @__PURE__ */ a("div", { className: "wrapper__title", children: t }) })
153
153
  ] });
154
154
  }
155
- ), A = l(({}, r) => /* @__PURE__ */ i(j, {})), E = p.div`
155
+ ), E = o(({}, r) => /* @__PURE__ */ a(G, {})), F = s.div`
156
156
  display: flex;
157
157
  flex-direction: column;
158
158
  align-items: center;
@@ -229,66 +229,68 @@ const W = p.div`
229
229
  gap: 1rem;
230
230
  }
231
231
  }
232
- `, X = l(
232
+ `, Z = o(
233
233
  ({
234
234
  title: r,
235
- subtitle: a,
236
- tags: t = [],
237
- limitTags: s = 7,
238
- limitTagsForMobile: g = 2,
235
+ subtitle: i,
236
+ options: t = [],
237
+ limitTags: p = 7,
238
+ limitTagsForMobile: f = 2,
239
239
  limit: c = 3,
240
240
  limitForMobile: v = 3,
241
241
  items: n = [],
242
242
  onSelectTag: h = () => {
243
243
  },
244
- onSelectCard: w = () => {
245
- }
246
- }, y) => {
244
+ onSelectCard: g = () => {
245
+ },
246
+ isLoading: y
247
+ }, k) => {
247
248
  var x, u;
248
- const f = (e) => {
249
+ const w = (e) => {
249
250
  h == null || h(e == null ? void 0 : e.uuid);
250
251
  }, _ = (e) => {
251
- w == null || w(e == null ? void 0 : e.uuid);
252
+ g == null || g(e == null ? void 0 : e.uuid);
252
253
  };
253
254
  return /* @__PURE__ */ m(
254
- E,
255
+ F,
255
256
  {
256
- ref: y,
257
- limitTags: s,
258
- limitTagsForMobile: g,
257
+ ref: k,
258
+ limitTags: p,
259
+ limitTagsForMobile: f,
259
260
  limitCards: c,
260
261
  limitCardsForMobile: v,
261
262
  children: [
262
263
  /* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
263
- r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
264
- a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
264
+ r && /* @__PURE__ */ a("div", { className: "wrapper__title", children: r }),
265
+ i && /* @__PURE__ */ a("div", { className: "wrapper__subtitle", children: i })
265
266
  ] }),
266
- /* @__PURE__ */ i("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, o) => /* @__PURE__ */ i(
267
- M,
267
+ /* @__PURE__ */ a("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, l) => /* @__PURE__ */ a(
268
+ A,
268
269
  {
269
270
  image: e == null ? void 0 : e.image,
270
271
  imageComponent: e == null ? void 0 : e.imageComponent,
271
272
  title: e == null ? void 0 : e.title,
272
273
  onSelectCard: () => _ == null ? void 0 : _(e == null ? void 0 : e.uuid)
273
274
  },
274
- `general-with-tags-card__${o + 1}`
275
- )) : (x = Array.from("123")) == null ? void 0 : x.map((e, o) => /* @__PURE__ */ i(
276
- A,
275
+ `general-with-tags-card__${l + 1}`
276
+ )) : (x = Array.from("123")) == null ? void 0 : x.map((e, l) => /* @__PURE__ */ a(
277
+ E,
277
278
  {},
278
- `general-with-tags-card-skeleton__${o + 1}`
279
+ `general-with-tags-card-skeleton__${l + 1}`
279
280
  )) }),
280
- /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, o) => /* @__PURE__ */ i(
281
- I,
281
+ (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ a(
282
+ M,
282
283
  {
283
284
  icon: e == null ? void 0 : e.icon,
284
285
  text: e == null ? void 0 : e.text,
285
- onSelectCard: () => f == null ? void 0 : f(e)
286
+ onSelectCard: () => w == null ? void 0 : w(e)
286
287
  },
287
- `general-with-tags-card-tag__${o + 1}`
288
- )) : (u = Array.from("123")) == null ? void 0 : u.map((e, o) => /* @__PURE__ */ i(
289
- T,
288
+ `general-with-tags-card-tag__${l + 1}`
289
+ )) }),
290
+ y === !0 && !((t == null ? void 0 : t.length) > 0) && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: (u = Array.from("123")) == null ? void 0 : u.map((e, l) => /* @__PURE__ */ a(
291
+ I,
290
292
  {},
291
- `general-with-tags-card-tag-skeleton__${o + 1}`
293
+ `general-with-tags-card-tag-skeleton__${l + 1}`
292
294
  )) })
293
295
  ]
294
296
  }
@@ -296,5 +298,5 @@ const W = p.div`
296
298
  }
297
299
  );
298
300
  export {
299
- X as default
301
+ Z as default
300
302
  };
@@ -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"),f=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-NZLCh-J5.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),p=require("./consts-CtNoHdBj.cjs"),_=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
+ `,w=g.forwardRef(({title:t,image:e,description:n,buttonText:a,onSelectCard:l=()=>{},className:o,position:s,selectAction:d,tag:m},x)=>{const h=u.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(_,{ref:x,theme:h,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(f,{text:a,onClick:()=>l(d),className:"text__action"})]})]})})}),b=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
+ `,v=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
+ `,y=g.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(b,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(v,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(w,{...o,onSelectCard:d=>a(d,o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=y;
@@ -1,11 +1,11 @@
1
- import { jsx as t, Fragment as u, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as t, Fragment as w, jsxs as s } from "react/jsx-runtime";
2
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`
3
+ import b 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 h } from "./utils-DtRLzzTZ.js";
6
+ import { u as v } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { M as x } from "./consts-C1uHV4xc.js";
8
+ const y = 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,39 @@ const b = s.div`
133
133
  }
134
134
  }
135
135
  }
136
- `, v = f(
136
+ `, k = f(
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
+ }, u) => {
149
+ const _ = v();
150
+ return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ s(
151
+ y,
151
152
  {
152
- theme: x,
153
- className: i,
153
+ ref: u,
154
+ theme: _,
155
+ className: o,
154
156
  onClick: l,
155
- position: d,
157
+ position: m,
156
158
  children: [
157
159
  /* @__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 }),
160
+ /* @__PURE__ */ s("div", { className: "wrapper__text", children: [
161
+ g && /* @__PURE__ */ t("div", { className: "text__tag", children: g }),
160
162
  /* @__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
- _,
163
+ h(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
164
+ h(a) && /* @__PURE__ */ t(
165
+ b,
164
166
  {
165
- text: o,
166
- onClick: l,
167
+ text: a,
168
+ onClick: () => l(d),
167
169
  className: "text__action"
168
170
  }
169
171
  )
@@ -172,7 +174,7 @@ const b = s.div`
172
174
  }
173
175
  ) });
174
176
  }
175
- ), y = s.div`
177
+ ), $ = c.div`
176
178
  display: flex;
177
179
  flex-direction: column;
178
180
  gap: 1.5rem;
@@ -196,7 +198,7 @@ const b = s.div`
196
198
  }
197
199
  }
198
200
 
199
- @media (max-width: ${h + "px"}) {
201
+ @media (max-width: ${x + "px"}) {
200
202
  gap: 1.25rem;
201
203
 
202
204
  & .regular-title {
@@ -207,16 +209,17 @@ const b = s.div`
207
209
  }
208
210
  }
209
211
  }
210
- `, k = s.div`
212
+ `, N = c.div`
211
213
  display: grid;
212
- grid-template-columns: repeat(12, 1fr);
214
+ grid-template-columns: ${(r) => "repeat(12, minmax(0, 1fr))"};
215
+
213
216
  grid-template-rows: 15rem 15rem;
214
217
  grid-column-gap: 1.25rem;
215
218
  grid-row-gap: 1.25rem;
216
219
  height: 30rem;
217
220
  max-height: 30rem;
218
221
 
219
- @media (max-width: ${h + "px"}) {
222
+ @media (max-width: ${x + "px"}) {
220
223
  display: flex;
221
224
  flex-direction: column;
222
225
  gap: 1rem;
@@ -225,20 +228,20 @@ const b = s.div`
225
228
  max-height: 100%;
226
229
  padding: 0 1rem;
227
230
  }
228
- `, M = f(
229
- ({ title: r, items: e, limit: a = 3, onSelectCard: o = () => {
230
- } }, l) => /* @__PURE__ */ m(y, { children: [
231
+ `, I = f(
232
+ ({ title: r, items: e, limit: i = 3, onSelectCard: a = () => {
233
+ } }, l) => /* @__PURE__ */ s($, { children: [
231
234
  /* @__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,
235
+ /* @__PURE__ */ t(N, { limit: i, children: e && (e == null ? void 0 : e.map((o, m) => /* @__PURE__ */ t(
236
+ k,
234
237
  {
235
- ...i,
236
- onSelectCard: () => o(i == null ? void 0 : i.uuid)
238
+ ...o,
239
+ onSelectCard: (d) => a(d, o)
237
240
  },
238
- `landing-page-masonry-general-card__${d + 1}`
241
+ `landing-page-masonry-general-card__${m + 1}`
239
242
  ))) })
240
243
  ] })
241
244
  );
242
245
  export {
243
- M as default
246
+ I as default
244
247
  };
@@ -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"),l=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-CtNoHdBj.cjs"),f=require("./style-C571ywKV.cjs"),u=require("./utils-NZLCh-J5.cjs"),j=require("./Button.cjs"),v=require("./ThemeProvider.cjs"),y=x.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=x.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
+ ${u.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: ${u.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
+ `,m=l.forwardRef(({},n)=>e.jsx(h,{ref:n,children:e.jsx("div",{className:"img-skeleton"})})),w=({limit:n=2,isLoading:t=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:n},(a,s)=>e.jsx(m,{isLoading:t},`${o}-skeleton-product-card-${s}`))}),k=({children:n,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:a,keyPrefix:s})=>e.jsx(l.Suspense,{fallbackComponent:t,children:o===!0?e.jsx(w,{isLoading:o,limit:a,keyPrefix:s}):n}),b=l.forwardRef(({title:n,image:t,backgroundColor:o,description:a,buttonText:s,handleClick:c=()=>{},onButtonAction:i=()=>{}},d)=>{const{theme:r}=v.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(h,{ref:d,theme:r,overlay:o,onClick:c,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:a})]}),u.isDefinedNotEmptyString(s)&&e.jsx(j,{text:s,onClick:i,className:"text__action",size:"medium",color:"gray"})]})]})})}),_=l.memo(b),$=l.forwardRef(({title:n,items:t,limit:o=2,onSelectCard:a=()=>{},isLoading:s=!1,onButtonAction:c=()=>{}},i)=>{const d=l.useMemo(()=>e.jsx(e.Fragment,{children:t&&(t==null?void 0:t.map((r,p)=>e.jsx(_,{title:r==null?void 0:r.title,image:r==null?void 0:r.imageUrl,description:r==null?void 0:r.description,buttonText:r==null?void 0:r.buttonText,backgroundColor:r==null?void 0:r.backgroundColor,handleClick:()=>a(r==null?void 0:r.selectAction,r),onButtonAction:()=>c(r==null?void 0:r.buttonLink,r)},`landing-page-overlay-general-card__${p+1}`)))}),[t,a]);return e.jsxs(f.RegulatTitleSectionWrapper,{ref:i,children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:n})})}),e.jsx(y,{limit:o,children:e.jsx(k,{isLoading:s,limit:o,keyPrefix:"explore-landing",children:d})})]})});module.exports=$;
@@ -1,29 +1,29 @@
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";
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`
1
+ import { jsx as r, Fragment as i, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as g, Suspense as x, memo as v, useMemo as y } from "react";
3
+ import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as u } from "./consts-C1uHV4xc.js";
5
+ import { R as k } from "./style-CsMpu4iC.js";
6
+ import { t as w, m as b, k as $ } from "./utils-DtRLzzTZ.js";
7
+ import C from "./Button.js";
8
+ import { useTheme as N } from "./ThemeProvider.js";
9
+ const P = h.div`
10
10
  display: grid;
11
- grid-template-columns: ${(t) => `repeat(${t.limit}, 1fr)`};
11
+ grid-template-columns: ${(n) => `repeat(${n.limit}, 1fr)`};
12
12
  gap: 1.25rem;
13
13
  justify-items: center;
14
14
 
15
- @media (max-width: ${h + "px"}) {
15
+ @media (max-width: ${u + "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;
24
24
 
25
25
  border-radius: 0.75rem;
26
- background: ${(t) => t == null ? void 0 : t.overlay};
26
+ background: ${(n) => n == null ? void 0 : n.overlay};
27
27
  cursor: pointer;
28
28
 
29
29
  & .content-wrapper {
@@ -70,7 +70,7 @@ const N = g.div`
70
70
  }
71
71
 
72
72
  & .img-skeleton {
73
- background-color: ${k("-90deg")};
73
+ background-color: ${b("-90deg")};
74
74
  min-height: 28.75rem;
75
75
  }
76
76
 
@@ -80,7 +80,7 @@ const N = g.div`
80
80
  }
81
81
  }
82
82
 
83
- @media (max-width: ${h + "px"}) {
83
+ @media (max-width: ${u + "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(
92
- P,
91
+ `, S = g(({}, n) => /* @__PURE__ */ r(f, { ref: n, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), _ = ({ limit: n = 2, isLoading: o = !1, keyPrefix: t }) => /* @__PURE__ */ r(i, { children: Array.from({ length: n }, (l, a) => /* @__PURE__ */ r(
92
+ S,
93
93
  {
94
- isLoading: n
94
+ isLoading: o
95
95
  },
96
- `${o}-skeleton-product-card-${l}`
97
- )) }), C = ({
98
- children: t,
99
- fallbackComponent: n = /* @__PURE__ */ r(d, {}),
100
- isLoading: o = !1,
101
- limit: a,
102
- keyPrefix: l
103
- }) => /* @__PURE__ */ r(f, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
96
+ `${t}-skeleton-product-card-${a}`
97
+ )) }), j = ({
98
+ children: n,
99
+ fallbackComponent: o = /* @__PURE__ */ r(i, {}),
100
+ isLoading: t = !1,
101
+ limit: l,
102
+ keyPrefix: a
103
+ }) => /* @__PURE__ */ r(x, { fallbackComponent: o, children: t === !0 ? /* @__PURE__ */ r(
104
104
  _,
105
105
  {
106
- isLoading: o,
107
- limit: a,
108
- keyPrefix: l
106
+ isLoading: t,
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
+ ) : n }), G = g(
111
+ ({
112
+ title: n,
113
+ image: o,
114
+ backgroundColor: t,
115
+ description: l,
116
+ buttonText: a,
117
+ handleClick: d = () => {
118
+ },
119
+ onButtonAction: s = () => {
120
+ }
121
+ }, p) => {
122
+ const { theme: e } = N();
123
+ return /* @__PURE__ */ r(i, { children: /* @__PURE__ */ c(
124
+ f,
116
125
  {
117
- ref: s,
126
+ ref: p,
118
127
  theme: e,
119
- overlay: o,
120
- onClick: i,
128
+ overlay: t,
129
+ onClick: d,
121
130
  children: [
122
- /* @__PURE__ */ r("img", { src: n }),
131
+ /* @__PURE__ */ r("img", { src: o }),
123
132
  /* @__PURE__ */ c("div", { className: "content-wrapper", children: [
124
133
  /* @__PURE__ */ c("div", { className: "content-text", children: [
125
- /* @__PURE__ */ r("div", { children: t }),
126
- /* @__PURE__ */ r("div", { className: "content-text-title", children: a })
134
+ /* @__PURE__ */ r("div", { children: n }),
135
+ /* @__PURE__ */ r("div", { className: "content-text-title", children: l })
127
136
  ] }),
128
- /* @__PURE__ */ r(
129
- $,
137
+ $(a) && /* @__PURE__ */ r(
138
+ C,
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,35 +149,37 @@ 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
+ ), O = v(G), L = g(
153
+ ({ title: n, items: o, limit: t = 2, onSelectCard: l = () => {
154
+ }, isLoading: a = !1, onButtonAction: d = () => {
155
+ } }, s) => {
156
+ const p = y(() => /* @__PURE__ */ r(i, { children: o && (o == null ? void 0 : o.map((e, m) => /* @__PURE__ */ r(
157
+ O,
148
158
  {
149
159
  title: e == null ? void 0 : e.title,
150
- image: e == null ? void 0 : e.image,
160
+ image: e == null ? void 0 : e.imageUrl,
151
161
  description: e == null ? void 0 : e.description,
152
- actionText: e == null ? void 0 : e.actionText,
153
- overlay: e == null ? void 0 : e.overlay,
154
- handleClick: () => a(e == null ? void 0 : e.uuid)
162
+ buttonText: e == null ? void 0 : e.buttonText,
163
+ backgroundColor: e == null ? void 0 : e.backgroundColor,
164
+ handleClick: () => l(e == null ? void 0 : e.selectAction, e),
165
+ onButtonAction: () => d(e == null ? void 0 : e.buttonLink, e)
155
166
  },
156
- `landing-page-overlay-general-card__${u + 1}`
157
- ))) }), [n, a]);
158
- return /* @__PURE__ */ c(y, { ref: i, children: [
159
- /* @__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,
167
+ `landing-page-overlay-general-card__${m + 1}`
168
+ ))) }), [o, l]);
169
+ return /* @__PURE__ */ c(k, { ref: s, children: [
170
+ /* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: n }) }) }),
171
+ /* @__PURE__ */ r(P, { limit: t, children: /* @__PURE__ */ r(
172
+ j,
162
173
  {
163
- isLoading: l,
164
- limit: o,
174
+ isLoading: a,
175
+ limit: t,
165
176
  keyPrefix: "explore-landing",
166
- children: s
177
+ children: p
167
178
  }
168
179
  ) })
169
180
  ] });
170
181
  }
171
182
  );
172
183
  export {
173
- A as default
184
+ L as default
174
185
  };
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.56",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [