@lanaco/lnc-react-ui 4.0.90 → 4.0.92

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 r=require("react/jsx-runtime"),o=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),p=require("./utils-BWzf4vLl.cjs"),q=require("./Icon.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),R=c.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),l=require("./utils-BWzf4vLl.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),M=require("./Icon.cjs"),R=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),z=m.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -37,7 +37,7 @@
37
37
  font-style: normal;
38
38
  font-weight: 500;
39
39
  line-height: 1.5rem;
40
- ${p.truncateTextInRows(2)}
40
+ ${l.truncateTextInRows(2)}
41
41
  }
42
42
 
43
43
  & .wrapper__description {
@@ -47,15 +47,15 @@
47
47
  font-weight: 400;
48
48
  line-height: 1rem;
49
49
  letter-spacing: 0.025rem;
50
- ${p.truncateTextInRows(2)}
50
+ ${l.truncateTextInRows(2)}
51
51
  }
52
52
  }
53
- `,z=c.styled.div`
53
+ `,C=m.styled.div`
54
54
  width: 100%;
55
55
  height: 11.625rem;
56
56
  border-radius: 0.75rem;
57
- background: ${p.linearGradientAnimation("-90deg")};
58
- `,C=c.styled.div`
57
+ background: ${l.linearGradientAnimation("-90deg")};
58
+ `,L=m.styled.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
@@ -101,7 +101,7 @@
101
101
  }
102
102
  }
103
103
 
104
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
104
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
105
105
  flex-direction: row;
106
106
  align-items: center;
107
107
  gap: 0.25rem;
@@ -128,17 +128,17 @@
128
128
  white-space: nowrap;
129
129
  }
130
130
  }
131
- `,L=c.styled.div`
131
+ `,S=m.styled.div`
132
132
  width: 7.5rem;
133
133
  width: 7.5rem;
134
134
  border-radius: 999px;
135
- background: ${p.linearGradientAnimation("-90deg")};
135
+ background: ${l.linearGradientAnimation("-90deg")};
136
136
 
137
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
137
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
138
138
  width: 7.5rem;
139
139
  height: 2.5rem;
140
140
  }
141
- `,F=o.forwardRef(({},t)=>r.jsx(L,{})),O=o.forwardRef(({text:t,isActive:s=!1,icon:i,onSelectCard:a=()=>{}},m)=>r.jsxs(C,{className:s?"active":"",onClick:a,children:[r.jsx(q,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),S=o.forwardRef(({image:t,imageComponent:s,title:i,description:a,className:m,onSelectCard:w=()=>{}},b)=>{const{theme:g}=M.useTheme();return r.jsxs(R,{theme:g,className:m,onClick:w,children:[p.isDefined(s)?s:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),A=o.forwardRef(({},t)=>r.jsxs(z,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),T=c.styled.div`
141
+ `,F=o.forwardRef(({},t)=>r.jsx(S,{})),O=o.forwardRef(({text:t,isActive:s=!1,icon:n,onSelectCard:i=()=>{}},f)=>r.jsxs(L,{className:s?"active":"",onClick:i,children:[r.jsx(M,{icon:n,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),A=o.forwardRef(({image:t,imageComponent:s,title:n,description:i,className:f,onSelectCard:g=()=>{}},j)=>{const{theme:x}=R.useTheme();return r.jsxs(z,{theme:x,className:f,onClick:g,children:[l.isDefined(s)?s:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[n&&r.jsx("div",{className:"wrapper__title",children:n}),i&&r.jsx("div",{className:"wrapper__description",children:i})]})]})}),T=o.forwardRef(({},t)=>r.jsxs(C,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),W=m.styled.div`
142
142
  display: flex;
143
143
  flex-direction: column;
144
144
  align-items: center;
@@ -191,7 +191,7 @@
191
191
  }
192
192
  }
193
193
 
194
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
194
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
195
195
  & .wrapper__tags {
196
196
  display: flex;
197
197
  overflow-x: scroll;
@@ -203,4 +203,4 @@
203
203
  grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
204
204
  }
205
205
  }
206
- `,W=o.forwardRef(({title:t,subtitle:s,tags:i=[],items:a=[],limitTags:m=5,limitTagsForMobile:w=5,limit:b=3,limitForMobile:g=2,selectedTag:k,onSelectTag:x=()=>{},onSelectCard:u=()=>{}},N)=>{var j,$;return o.useLayoutEffect(()=>{const e=()=>{const l=document.querySelector(".wrapper__cards"),d=l.querySelectorAll(".wrapper__card");d.forEach(h=>{const I=h.getBoundingClientRect().height,E=Math.ceil((I+10)/20);h.style.gridRowEnd=`span ${E}`});const y=d==null?void 0:d[d.length-1];if(y){const h=y.offsetTop+y.offsetHeight;l.style.height=`${h}px`}},f=document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");let _=0;return f.length===0?e():(f.forEach(l=>{l.complete?_++:l.addEventListener("load",()=>{_++,_===f.length&&e()})}),_===f.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),r.jsxs(T,{ref:N,limitTags:m,limitTagsForMobile:w,limitCards:b,limitCardsForMobile:g,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,n)=>r.jsx(O,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===k,onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-masonry-tag__${n+1}`)):(j=Array.from("12345"))==null?void 0:j.map((e,n)=>r.jsx(F,{},`field-of-interests-masonry-tag-skeleton__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,n)=>r.jsx(S,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>u==null?void 0:u(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${n+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,n)=>r.jsx(A,{},`field-of-interests-with-tags-card-skeleton__${n+1}`))})]})});module.exports=W;
206
+ `,B=o.forwardRef(({title:t,subtitle:s,tags:n=[],items:i=[],limitTags:f=5,limitTagsForMobile:g=5,limit:j=3,limitForMobile:x=2,selectedTag:E,onSelectTag:u=()=>{},onSelectCard:y=()=>{},className:d},I)=>{var $,k;return o.useLayoutEffect(()=>{if(!l.isDefinedNotEmptyString(d))return;const e=()=>{const p=document.querySelector(`.${d} .wrapper__cards`),c=p.querySelectorAll(".wrapper__card");c.forEach(w=>{const N=w.getBoundingClientRect().height,q=Math.ceil((N+10)/20);w.style.gridRowEnd=`span ${q}`});const v=c==null?void 0:c[c.length-1];if(v){const w=v.offsetTop+v.offsetHeight;p.style.height=`${w}px`}},_=document.querySelector(`.${d} .wrapper__cards`).querySelectorAll(".wrapper__image");let h=0;return _.length===0?e():(_.forEach(p=>{p.complete?h++:p.addEventListener("load",()=>{h++,h===_.length&&e()})}),h===_.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d,i]),r.jsxs(W,{ref:I,limitTags:f,limitTagsForMobile:g,limitCards:j,limitCardsForMobile:x,className:d,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,a)=>r.jsx(O,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===E,onSelectCard:()=>u==null?void 0:u(e)},`field-of-interests-masonry-tag__${a+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,a)=>r.jsx(F,{},`field-of-interests-masonry-tag-skeleton__${a+1}`))}),r.jsx("div",{className:"wrapper__cards",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(A,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>y==null?void 0:y(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):(k=Array.from("12345"))==null?void 0:k.map((e,a)=>r.jsx(T,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=B;
@@ -1,11 +1,11 @@
1
- import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
- import { forwardRef as d, useLayoutEffect as F } from "react";
3
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as y } from "./consts-BuFChS64.js";
5
- import { p as N, o as z, l as L } from "./utils-BXCGNjIy.js";
6
- import A from "./Icon.js";
7
- import { u as O } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const W = m.div`
1
+ import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
+ import { forwardRef as m, useLayoutEffect as L } from "react";
3
+ import { p as z, o as E, l as A, k as O } from "./utils-BXCGNjIy.js";
4
+ import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { M as b } from "./consts-BuFChS64.js";
6
+ import S from "./Icon.js";
7
+ import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ const T = c.div`
9
9
  display: flex;
10
10
  width: 100%;
11
11
  height: fit-content;
@@ -44,7 +44,7 @@ const W = m.div`
44
44
  font-style: normal;
45
45
  font-weight: 500;
46
46
  line-height: 1.5rem;
47
- ${N(2)}
47
+ ${z(2)}
48
48
  }
49
49
 
50
50
  & .wrapper__description {
@@ -54,15 +54,15 @@ const W = m.div`
54
54
  font-weight: 400;
55
55
  line-height: 1rem;
56
56
  letter-spacing: 0.025rem;
57
- ${N(2)}
57
+ ${z(2)}
58
58
  }
59
59
  }
60
- `, S = m.div`
60
+ `, j = c.div`
61
61
  width: 100%;
62
62
  height: 11.625rem;
63
63
  border-radius: 0.75rem;
64
- background: ${z("-90deg")};
65
- `, T = m.div`
64
+ background: ${E("-90deg")};
65
+ `, q = c.div`
66
66
  display: flex;
67
67
  flex-direction: column;
68
68
  align-items: center;
@@ -108,7 +108,7 @@ const W = m.div`
108
108
  }
109
109
  }
110
110
 
111
- @media (max-width: ${y + "px"}) {
111
+ @media (max-width: ${b + "px"}) {
112
112
  flex-direction: row;
113
113
  align-items: center;
114
114
  gap: 0.25rem;
@@ -135,48 +135,48 @@ const W = m.div`
135
135
  white-space: nowrap;
136
136
  }
137
137
  }
138
- `, j = m.div`
138
+ `, R = c.div`
139
139
  width: 7.5rem;
140
140
  width: 7.5rem;
141
141
  border-radius: 999px;
142
- background: ${z("-90deg")};
142
+ background: ${E("-90deg")};
143
143
 
144
- @media (max-width: ${y + "px"}) {
144
+ @media (max-width: ${b + "px"}) {
145
145
  width: 7.5rem;
146
146
  height: 2.5rem;
147
147
  }
148
- `, q = d(({}, r) => /* @__PURE__ */ i(j, {})), R = d(
149
- ({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
150
- } }, c) => /* @__PURE__ */ s(T, { className: o ? "active" : "", onClick: a, children: [
151
- /* @__PURE__ */ i(A, { icon: t, className: "wrapper__icon" }),
148
+ `, B = m(({}, r) => /* @__PURE__ */ i(R, {})), D = m(
149
+ ({ text: r, isActive: o = !1, icon: a, onSelectCard: t = () => {
150
+ } }, f) => /* @__PURE__ */ l(q, { className: o ? "active" : "", onClick: t, children: [
151
+ /* @__PURE__ */ i(S, { icon: a, className: "wrapper__icon" }),
152
152
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
153
153
  ] })
154
- ), B = d(
154
+ ), G = m(
155
155
  ({
156
156
  image: r,
157
157
  imageComponent: o,
158
- title: t,
159
- description: a,
160
- className: c,
161
- onSelectCard: g = () => {
158
+ title: a,
159
+ description: t,
160
+ className: f,
161
+ onSelectCard: w = () => {
162
162
  }
163
- }, b) => {
164
- const { theme: w } = O();
165
- return /* @__PURE__ */ s(W, { theme: w, className: c, onClick: g, children: [
166
- L(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
167
- /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
168
- t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
169
- a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
163
+ }, $) => {
164
+ const { theme: u } = W();
165
+ return /* @__PURE__ */ l(T, { theme: u, className: f, onClick: w, children: [
166
+ A(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
167
+ /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
168
+ a && /* @__PURE__ */ i("div", { className: "wrapper__title", children: a }),
169
+ t && /* @__PURE__ */ i("div", { className: "wrapper__description", children: t })
170
170
  ] })
171
171
  ] });
172
172
  }
173
- ), G = d(({}, r) => /* @__PURE__ */ s(S, { children: [
173
+ ), H = m(({}, r) => /* @__PURE__ */ l(j, { children: [
174
174
  /* @__PURE__ */ i("div", { className: "wrapper__image" }),
175
- /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
175
+ /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
176
176
  /* @__PURE__ */ i("div", { className: "wrapper__title" }),
177
177
  /* @__PURE__ */ i("div", { className: "wrapper__description" })
178
178
  ] })
179
- ] })), H = m.div`
179
+ ] })), P = c.div`
180
180
  display: flex;
181
181
  flex-direction: column;
182
182
  align-items: center;
@@ -229,7 +229,7 @@ const W = m.div`
229
229
  }
230
230
  }
231
231
 
232
- @media (max-width: ${y + "px"}) {
232
+ @media (max-width: ${b + "px"}) {
233
233
  & .wrapper__tags {
234
234
  display: flex;
235
235
  overflow-x: scroll;
@@ -241,84 +241,88 @@ const W = m.div`
241
241
  grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
242
242
  }
243
243
  }
244
- `, U = d(
244
+ `, Y = m(
245
245
  ({
246
246
  title: r,
247
247
  subtitle: o,
248
- tags: t = [],
249
- items: a = [],
250
- limitTags: c = 5,
251
- limitTagsForMobile: g = 5,
252
- limit: b = 3,
253
- limitForMobile: w = 2,
248
+ tags: a = [],
249
+ items: t = [],
250
+ limitTags: f = 5,
251
+ limitTagsForMobile: w = 5,
252
+ limit: $ = 3,
253
+ limitForMobile: u = 2,
254
254
  selectedTag: I,
255
- onSelectTag: u = () => {
255
+ onSelectTag: x = () => {
256
256
  },
257
- onSelectCard: x = () => {
258
- }
257
+ onSelectCard: v = () => {
258
+ },
259
+ className: s
259
260
  }, M) => {
260
- var $, k;
261
- return F(() => {
261
+ var k, N;
262
+ return L(() => {
263
+ if (!O(s))
264
+ return;
262
265
  const e = () => {
263
- const l = document.querySelector(".wrapper__cards"), p = l.querySelectorAll(".wrapper__card");
264
- p.forEach((_) => {
265
- const C = _.getBoundingClientRect().height, E = Math.ceil((C + 10) / 20);
266
- _.style.gridRowEnd = `span ${E}`;
266
+ const p = document.querySelector(`.${s} .wrapper__cards`), d = p.querySelectorAll(".wrapper__card");
267
+ d.forEach((g) => {
268
+ const C = g.getBoundingClientRect().height, F = Math.ceil((C + 10) / 20);
269
+ g.style.gridRowEnd = `span ${F}`;
267
270
  });
268
- const v = p == null ? void 0 : p[p.length - 1];
269
- if (v) {
270
- const _ = v.offsetTop + v.offsetHeight;
271
- l.style.height = `${_}px`;
271
+ const y = d == null ? void 0 : d[d.length - 1];
272
+ if (y) {
273
+ const g = y.offsetTop + y.offsetHeight;
274
+ p.style.height = `${g}px`;
272
275
  }
273
- }, f = document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");
274
- let h = 0;
275
- return f.length === 0 ? e() : (f.forEach((l) => {
276
- l.complete ? h++ : l.addEventListener("load", () => {
277
- h++, h === f.length && e();
276
+ }, h = document.querySelector(`.${s} .wrapper__cards`).querySelectorAll(".wrapper__image");
277
+ let _ = 0;
278
+ return h.length === 0 ? e() : (h.forEach((p) => {
279
+ p.complete ? _++ : p.addEventListener("load", () => {
280
+ _++, _ === h.length && e();
278
281
  });
279
- }), h === f.length && e()), window.addEventListener("resize", e), () => {
282
+ }), _ === h.length && e()), window.addEventListener("resize", e), () => {
280
283
  window.removeEventListener("resize", e);
281
284
  };
282
- }, []), /* @__PURE__ */ s(
283
- H,
285
+ }, [s, t]), /* @__PURE__ */ l(
286
+ P,
284
287
  {
285
288
  ref: M,
286
- limitTags: c,
287
- limitTagsForMobile: g,
288
- limitCards: b,
289
- limitCardsForMobile: w,
289
+ limitTags: f,
290
+ limitTagsForMobile: w,
291
+ limitCards: $,
292
+ limitCardsForMobile: u,
293
+ className: s,
290
294
  children: [
291
- /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
295
+ /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
292
296
  r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
293
297
  o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
294
298
  ] }),
295
- /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ i(
296
- R,
299
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ i(
300
+ D,
297
301
  {
298
302
  icon: e == null ? void 0 : e.icon,
299
303
  text: e == null ? void 0 : e.title,
300
304
  isActive: (e == null ? void 0 : e.code) === I,
301
- onSelectCard: () => u == null ? void 0 : u(e)
305
+ onSelectCard: () => x == null ? void 0 : x(e)
302
306
  },
303
307
  `field-of-interests-masonry-tag__${n + 1}`
304
- )) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ i(
305
- q,
308
+ )) : (k = Array.from("12345")) == null ? void 0 : k.map((e, n) => /* @__PURE__ */ i(
309
+ B,
306
310
  {},
307
311
  `field-of-interests-masonry-tag-skeleton__${n + 1}`
308
312
  )) }),
309
- /* @__PURE__ */ i("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ i(
310
- B,
313
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ i(
314
+ G,
311
315
  {
312
316
  image: e == null ? void 0 : e.image,
313
317
  imageComponent: e == null ? void 0 : e.imageComponent,
314
318
  title: e == null ? void 0 : e.title,
315
319
  description: e == null ? void 0 : e.description,
316
- onSelectCard: () => x == null ? void 0 : x(e),
320
+ onSelectCard: () => v == null ? void 0 : v(e),
317
321
  className: "wrapper__card"
318
322
  },
319
323
  `field-of-interests-with-tags-card__${n + 1}`
320
- )) : (k = Array.from("12345")) == null ? void 0 : k.map((e, n) => /* @__PURE__ */ i(
321
- G,
324
+ )) : (N = Array.from("12345")) == null ? void 0 : N.map((e, n) => /* @__PURE__ */ i(
325
+ H,
322
326
  {},
323
327
  `field-of-interests-with-tags-card-skeleton__${n + 1}`
324
328
  )) })
@@ -328,5 +332,5 @@ const W = m.div`
328
332
  }
329
333
  );
330
334
  export {
331
- U as default
335
+ Y as default
332
336
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),s=require("./utils-BWzf4vLl.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=require("./styled-components.browser.esm-CMTEDJ_5.cjs"),_=c.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),n=require("react"),s=require("./utils-BWzf4vLl.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./consts-goSZX3xP.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-CMTEDJ_5.cjs"),u=m.styled.div`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -41,7 +41,7 @@
41
41
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
42
42
  border-radius: 0.75rem;
43
43
  z-index: 2;
44
- `,u=c.styled.div`
44
+ `,f=m.styled.div`
45
45
  cursor: pointer;
46
46
  position: relative;
47
47
  border-radius: 0.75rem;
@@ -108,7 +108,7 @@
108
108
  @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
109
109
  width: 100%;
110
110
  }
111
- `,f=a.forwardRef(({title:i,description:r,imageUrl:l,onSelectCard:o=()=>{}},n)=>{const{theme:e}=p.useTheme();return t.jsxs(u,{theme:e,onClick:o,children:[t.jsx("img",{loading:"lazy",src:l}),t.jsx(_,{theme:e,className:"quattro-card__gradient",children:t.jsxs("div",{className:"quattro-card__text",children:[t.jsx("div",{className:"quattro-card__title",children:i}),t.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),h=g.qe.div`
111
+ `,h=n.forwardRef(({title:o,description:r,imageUrl:i,onSelectCard:l=()=>{}},c)=>{const{theme:a}=g.useTheme();return e.jsxs(f,{theme:a,onClick:l,children:[e.jsx("img",{loading:"lazy",src:i}),e.jsx(u,{theme:a,className:"quattro-card__gradient",children:e.jsxs("div",{className:"quattro-card__text",children:[e.jsx("div",{className:"quattro-card__title",children:o}),e.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),b=_.qe.div`
112
112
  display: flex;
113
113
  flex-direction: column;
114
114
  align-items: flex-start;
@@ -160,4 +160,4 @@
160
160
  gap: 1rem;
161
161
  }
162
162
  }
163
- `,b=a.memo(f),w=a.forwardRef(({title:i,items:r},l)=>{const o=a.useMemo(()=>{var n;return(n=r==null?void 0:r.slice(0,4))==null?void 0:n.map((e,m)=>t.jsx(b,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,onSelectCard:()=>onSelectCard==null?void 0:onSelectCard(e)},`quattro-card__${m+1}`))},[r]);return t.jsxs(h,{children:[t.jsx("div",{className:"wrapper__heading",children:t.jsx("div",{className:"wrapper__title",children:s.isDefinedNotEmptyString(i)&&t.jsx("div",{className:"title__text",children:t.jsx("span",{children:i})})})}),t.jsx("div",{className:"wrapper__cards",children:o})]})});module.exports=w;
163
+ `,w=n.memo(h),x=n.forwardRef(({title:o,items:r,onSelectCard:i=()=>{}},l)=>{const c=n.useMemo(()=>{var a;return(a=r==null?void 0:r.slice(0,4))==null?void 0:a.map((t,p)=>e.jsx(w,{title:t==null?void 0:t.title,description:t==null?void 0:t.description,imageUrl:t==null?void 0:t.imageUrl,onSelectCard:()=>i==null?void 0:i(t)},`quattro-card__${p+1}`))},[r]);return e.jsxs(b,{children:[e.jsx("div",{className:"wrapper__heading",children:e.jsx("div",{className:"wrapper__title",children:s.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"title__text",children:e.jsx("span",{children:o})})})}),e.jsx("div",{className:"wrapper__cards",children:c})]})});module.exports=x;
@@ -1,11 +1,11 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as s, memo as p, useMemo as g } from "react";
3
- import { t as f, p as h, k as u } from "./utils-BXCGNjIy.js";
4
- import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as c, memo as g, useMemo as f } from "react";
3
+ import { t as h, p as u, k as _ } from "./utils-BXCGNjIy.js";
4
+ import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { M as d } from "./consts-BuFChS64.js";
6
- import { u as _ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { q as b } from "./styled-components.browser.esm-C9FYANiy.js";
8
- const w = c.div`
6
+ import { u as b } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ import { q as w } from "./styled-components.browser.esm-C9FYANiy.js";
8
+ const y = m.div`
9
9
  position: absolute;
10
10
  top: 0;
11
11
  left: 0;
@@ -48,7 +48,7 @@ const w = c.div`
48
48
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
49
49
  border-radius: 0.75rem;
50
50
  z-index: 2;
51
- `, y = c.div`
51
+ `, v = m.div`
52
52
  cursor: pointer;
53
53
  position: relative;
54
54
  border-radius: 0.75rem;
@@ -86,7 +86,7 @@ const w = c.div`
86
86
  font-style: normal;
87
87
  font-weight: 600;
88
88
  line-height: 1.75rem;
89
- ${f()}
89
+ ${h()}
90
90
  }
91
91
 
92
92
  & .quattro-card__description {
@@ -94,7 +94,7 @@ const w = c.div`
94
94
  font-style: normal;
95
95
  font-weight: 500;
96
96
  line-height: 1.25rem;
97
- ${h(2)}
97
+ ${u(2)}
98
98
  }
99
99
 
100
100
  @media (max-width: ${d + "px"}) {
@@ -115,19 +115,19 @@ const w = c.div`
115
115
  @media (max-width: ${d + "px"}) {
116
116
  width: 100%;
117
117
  }
118
- `, v = s(
119
- ({ title: a, description: r, imageUrl: l, onSelectCard: i = () => {
120
- } }, o) => {
121
- const { theme: t } = _();
122
- return /* @__PURE__ */ n(y, { theme: t, onClick: i, children: [
123
- /* @__PURE__ */ e("img", { loading: "lazy", src: l }),
124
- /* @__PURE__ */ e(w, { theme: t, className: "quattro-card__gradient", children: /* @__PURE__ */ n("div", { className: "quattro-card__text", children: [
125
- /* @__PURE__ */ e("div", { className: "quattro-card__title", children: a }),
126
- /* @__PURE__ */ e("div", { className: "quattro-card__description", children: r })
118
+ `, x = c(
119
+ ({ title: o, description: e, imageUrl: a, onSelectCard: s = () => {
120
+ } }, l) => {
121
+ const { theme: i } = b();
122
+ return /* @__PURE__ */ n(v, { theme: i, onClick: s, children: [
123
+ /* @__PURE__ */ r("img", { loading: "lazy", src: a }),
124
+ /* @__PURE__ */ r(y, { theme: i, className: "quattro-card__gradient", children: /* @__PURE__ */ n("div", { className: "quattro-card__text", children: [
125
+ /* @__PURE__ */ r("div", { className: "quattro-card__title", children: o }),
126
+ /* @__PURE__ */ r("div", { className: "quattro-card__description", children: e })
127
127
  ] }) })
128
128
  ] });
129
129
  }
130
- ), x = b.div`
130
+ ), q = w.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  align-items: flex-start;
@@ -179,25 +179,28 @@ const w = c.div`
179
179
  gap: 1rem;
180
180
  }
181
181
  }
182
- `, q = p(v), S = s(({ title: a, items: r }, l) => {
183
- const i = g(() => {
184
- var o;
185
- return (o = r == null ? void 0 : r.slice(0, 4)) == null ? void 0 : o.map((t, m) => /* @__PURE__ */ e(
186
- q,
187
- {
188
- title: t == null ? void 0 : t.title,
189
- description: t == null ? void 0 : t.description,
190
- imageUrl: t == null ? void 0 : t.imageUrl,
191
- onSelectCard: () => onSelectCard == null ? void 0 : onSelectCard(t)
192
- },
193
- `quattro-card__${m + 1}`
194
- ));
195
- }, [r]);
196
- return /* @__PURE__ */ n(x, { children: [
197
- /* @__PURE__ */ e("div", { className: "wrapper__heading", children: /* @__PURE__ */ e("div", { className: "wrapper__title", children: u(a) && /* @__PURE__ */ e("div", { className: "title__text", children: /* @__PURE__ */ e("span", { children: a }) }) }) }),
198
- /* @__PURE__ */ e("div", { className: "wrapper__cards", children: i })
199
- ] });
200
- });
182
+ `, k = g(x), I = c(
183
+ ({ title: o, items: e, onSelectCard: a = () => {
184
+ } }, s) => {
185
+ const l = f(() => {
186
+ var i;
187
+ return (i = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : i.map((t, p) => /* @__PURE__ */ r(
188
+ k,
189
+ {
190
+ title: t == null ? void 0 : t.title,
191
+ description: t == null ? void 0 : t.description,
192
+ imageUrl: t == null ? void 0 : t.imageUrl,
193
+ onSelectCard: () => a == null ? void 0 : a(t)
194
+ },
195
+ `quattro-card__${p + 1}`
196
+ ));
197
+ }, [e]);
198
+ return /* @__PURE__ */ n(q, { children: [
199
+ /* @__PURE__ */ r("div", { className: "wrapper__heading", children: /* @__PURE__ */ r("div", { className: "wrapper__title", children: _(o) && /* @__PURE__ */ r("div", { className: "title__text", children: /* @__PURE__ */ r("span", { children: o }) }) }) }),
200
+ /* @__PURE__ */ r("div", { className: "wrapper__cards", children: l })
201
+ ] });
202
+ }
203
+ );
201
204
  export {
202
- S as default
205
+ I as default
203
206
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.90",
3
+ "version": "4.0.92",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [