@lanaco/lnc-react-ui 4.0.204 → 4.0.206

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 e=require("react/jsx-runtime"),p=require("react"),x=require("./utils-RnrgDDZP.cjs"),N=require("./Icon.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),q=j.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),w=require("react"),x=require("./utils-RnrgDDZP.cjs"),M=require("./Icon.cjs"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),N=v.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -53,7 +53,7 @@
53
53
  }
54
54
  }
55
55
 
56
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
56
+ @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
57
57
  & .wrapper__content {
58
58
  & .wrapper__title {
59
59
  font-size: 0.875rem;
@@ -65,7 +65,7 @@
65
65
  }
66
66
  }
67
67
  }
68
- `,O=j.styled.div`
68
+ `,z=v.styled.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  align-items: center;
@@ -116,7 +116,7 @@
116
116
  }
117
117
  }
118
118
 
119
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
119
+ @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
120
120
  max-width: unset;
121
121
  min-width: unset;
122
122
  flex-direction: row;
@@ -156,7 +156,7 @@
156
156
  max-width: unset;
157
157
  }
158
158
  }
159
- `,z=p.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:a=()=>{}},h)=>e.jsxs(O,{ref:h,className:o?"active":"",onClick:a,children:[e.jsx(N,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),R=p.forwardRef(({image:t,imageComponent:o,title:i,description:a,className:h,onSelectCard:k=()=>{},link:f,LinkComponent:g},b)=>{const m=g||"a",{theme:w}=P.useTheme();return e.jsxs(q,{ref:b,theme:w,className:h,onClick:k,as:m,...g?{to:`/${f}`}:{href:`/${f}`},children:[x.isDefined(o)?o:e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[i&&e.jsx("div",{className:"wrapper__title",children:i}),a&&e.jsx("div",{className:"wrapper__description",children:a})]})]})}),W=j.styled.div`
159
+ `,P=w.forwardRef(({text:t,isActive:s=!1,icon:i,onSelectCard:o=()=>{}},c)=>e.jsxs(z,{ref:c,className:s?"active":"",onClick:o,children:[e.jsx(M,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),R=w.forwardRef(({image:t,imageComponent:s,title:i,description:o,className:c,onSelectCard:k=()=>{},link:g,LinkComponent:f},b)=>{const m=f||"a",{theme:h}=q.useTheme();return e.jsxs(N,{ref:b,theme:h,className:c,onClick:k,as:m,...f?{to:`/${g}`}:{href:`/${g}`},children:[x.isDefined(s)?s:e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[i&&e.jsx("div",{className:"wrapper__title",children:i}),o&&e.jsx("div",{className:"wrapper__description",children:o})]})]})}),O=v.styled.div`
160
160
  display: flex;
161
161
  flex-direction: column;
162
162
  align-items: center;
@@ -194,6 +194,7 @@
194
194
 
195
195
  & .wrapper__tags {
196
196
  display: flex;
197
+ flex-wrap: wrap;
197
198
  justify-content: center;
198
199
  gap: 0.75rem;
199
200
  }
@@ -211,41 +212,21 @@
211
212
  }
212
213
  }
213
214
 
214
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
215
+ @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
215
216
  gap: 1rem;
216
217
 
217
- & .wrapper__tags {
218
- overflow-x: scroll;
219
- justify-content: flex-start;
220
- width: 100%;
221
-
222
- -webkit-overflow-scrolling: touch;
223
- ::-webkit-scrollbar {
224
- -webkit-appearance: none;
225
- }
226
- -ms-overflow-style: none;
227
- /* Internet Explorer 10+ */
228
- scrollbar-width: none;
229
- /* Firefox */
230
-
231
- &::-webkit-scrollbar {
232
- display: none;
233
- /* Safari and Chrome */
234
- }
235
- }
236
-
237
218
  & .wrapper__cards {
238
219
  grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
239
220
  }
240
221
  }
241
- `,I=j.styled(n.SkeletonRowWrapper)`
222
+ `,F=v.styled(n.SkeletonRowWrapper)`
242
223
  &.skeleton__tags {
243
224
  max-width: 50rem;
244
225
  }
245
226
 
246
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
227
+ @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
247
228
  &.skeleton__tags {
248
229
  overflow-x: hidden;
249
230
  }
250
231
  }
251
- `,T=({keyPrefix:t})=>e.jsxs(I,{className:"skeleton__tags",children:[e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-1`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-2`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-3`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-4`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-5`)]}),B=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(T,{keyPrefix:t}):a}),G=({keyPrefix:t})=>e.jsxs(I,{className:"skeleton__cards",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-1`),e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`)]}),X=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(G,{keyPrefix:t}):a}),Z=p.forwardRef(({title:t,subtitle:o,tags:i=[],items:a=[],limitTags:h=5,limitTagsForMobile:k=5,limit:f=3,limitForMobile:g=2,selectedTag:b,onSelectTag:m=()=>{},onSelectCard:w=()=>{},className:_,isLoadingTags:C=!1,isLoadingCards:$=!1,LinkComponent:E},L)=>(p.useLayoutEffect(()=>{if(!x.isDefinedNotEmptyString(_))return;const r=()=>{const c=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),l=c==null?void 0:c.querySelectorAll(".wrapper__card");l==null||l.forEach(y=>{const M=y.getBoundingClientRect().height,F=Math.ceil((M+10)/20);y.style.gridRowEnd=`span ${F}`});const S=l==null?void 0:l[(l==null?void 0:l.length)-1];if(S){const y=S.offsetTop+S.offsetHeight;c.style.height=`${y}px`}},d=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),s=d==null?void 0:d.querySelectorAll(".wrapper__image");let u=0;return(s==null?void 0:s.length)===0?r():(s==null||s.forEach(c=>{c.complete?u++:c.addEventListener("load",()=>{u++,u===(s==null?void 0:s.length)&&r()})}),u===(s==null?void 0:s.length)&&r()),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[_,a,$]),e.jsxs(W,{ref:L,limitTags:h,limitTagsForMobile:k,limitCards:f,limitCardsForMobile:g,className:_,numberOfTags:i==null?void 0:i.length,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),o&&e.jsx("div",{className:"wrapper__subtitle",children:o})]}),e.jsx(B,{isLoading:C,keyPrefix:"field-of-interests-masonry-tag",children:e.jsx("div",{className:"wrapper__tags__external",children:e.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((r,d)=>e.jsx(z,{icon:r==null?void 0:r.icon,text:r==null?void 0:r.title,isActive:(r==null?void 0:r.code)===b,onSelectCard:()=>m==null?void 0:m(r)},`field-of-interests-masonry-tag__${d+1}`))})})}),e.jsx(X,{isLoading:$,keyPrefix:"field-of-interests-masonry-card",children:e.jsx("div",{className:"wrapper__cards",children:a==null?void 0:a.map((r,d)=>e.jsx(R,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,title:r==null?void 0:r.title,description:r==null?void 0:r.description,onSelectCard:()=>w==null?void 0:w(r),className:"wrapper__card",link:r==null?void 0:r.link,LinkComponent:E},`field-of-interests-with-tags-card__${d+1}`))})})]})));module.exports=Z;
232
+ `,W=({keyPrefix:t})=>e.jsxs(F,{className:"skeleton__tags",children:[e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-1`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-2`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-3`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-4`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-5`)]}),T=({keyPrefix:t,isLoading:s=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:o})=>e.jsx(w.Suspense,{fallbackComponent:i,children:s===!0?e.jsx(W,{keyPrefix:t}):o}),B=w.forwardRef(({title:t,subtitle:s,tags:i=[],items:o=[],limitTags:c=5,limitTagsForMobile:k=5,limit:g=3,limitForMobile:f=2,selectedTag:b,onSelectTag:m=()=>{},onSelectCard:h=()=>{},className:_,isLoadingTags:$=!1,LinkComponent:I},C)=>(w.useLayoutEffect(()=>{if(!x.isDefinedNotEmptyString(_))return;const r=()=>{const d=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),l=d==null?void 0:d.querySelectorAll(".wrapper__card");l==null||l.forEach(y=>{const E=y.getBoundingClientRect().height,L=Math.ceil((E+10)/20);y.style.gridRowEnd=`span ${L}`});const S=l==null?void 0:l[(l==null?void 0:l.length)-1];if(S){const y=S.offsetTop+S.offsetHeight;d.style.height=`${y}px`}},p=document==null?void 0:document.querySelector(`.${_} .wrapper__cards`),a=p==null?void 0:p.querySelectorAll(".wrapper__image");let u=0;return(a==null?void 0:a.length)===0?r():(a==null||a.forEach(d=>{d.complete?u++:d.addEventListener("load",()=>{u++,u===(a==null?void 0:a.length)&&r()})}),u===(a==null?void 0:a.length)&&r()),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[_,o]),e.jsxs(O,{ref:C,limitTags:c,limitTagsForMobile:k,limitCards:g,limitCardsForMobile:f,className:_,numberOfTags:i==null?void 0:i.length,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),s&&e.jsx("div",{className:"wrapper__subtitle",children:s})]}),e.jsx(T,{isLoading:$,keyPrefix:"field-of-interests-masonry-tag",children:e.jsx("div",{className:"wrapper__tags__external",children:e.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((r,p)=>e.jsx(P,{icon:r==null?void 0:r.icon,text:r==null?void 0:r.title,isActive:(r==null?void 0:r.code)===b,onSelectCard:()=>m==null?void 0:m(r)},`field-of-interests-masonry-tag__${p+1}`))})})}),e.jsx("div",{className:"wrapper__cards",children:o==null?void 0:o.map((r,p)=>e.jsx(R,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,title:r==null?void 0:r.title,description:r==null?void 0:r.description,onSelectCard:()=>h==null?void 0:h(r),className:"wrapper__card",link:r==null?void 0:r.link,LinkComponent:I},`field-of-interests-with-tags-card__${p+1}`))})]})));module.exports=B;
@@ -1,12 +1,12 @@
1
- import { jsxs as o, jsx as r, Fragment as z } from "react/jsx-runtime";
2
- import { forwardRef as S, Suspense as E, useLayoutEffect as j } from "react";
3
- import { m as N, l as q, k as T } from "./utils-DtEfC-TX.js";
4
- import A from "./Icon.js";
1
+ import { jsxs as o, jsx as r, Fragment as O } from "react/jsx-runtime";
2
+ import { forwardRef as M, Suspense as G, useLayoutEffect as R } from "react";
3
+ import { m as z, l as W, k as q } from "./utils-DtEfC-TX.js";
4
+ import T from "./Icon.js";
5
5
  import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
6
  import { M as $ } from "./consts-BuFChS64.js";
7
- import { u as B } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- import { S as D, b as _, d as g, a as p } from "./style-BwQ4djFC.js";
9
- const H = b.a`
7
+ import { u as j } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import { S as A, b as f, d as _, a as g } from "./style-BwQ4djFC.js";
9
+ const B = b.a`
10
10
  text-decoration: none;
11
11
  color: var(--gray-950);
12
12
  display: flex;
@@ -47,7 +47,7 @@ const H = b.a`
47
47
  font-style: normal;
48
48
  font-weight: 500;
49
49
  line-height: 1.5rem;
50
- ${N(2)}
50
+ ${z(2)}
51
51
  }
52
52
 
53
53
  & .wrapper__description {
@@ -57,7 +57,7 @@ const H = b.a`
57
57
  font-weight: 400;
58
58
  line-height: 1rem;
59
59
  letter-spacing: 0.025rem;
60
- ${N(2)}
60
+ ${z(2)}
61
61
  }
62
62
  }
63
63
 
@@ -73,7 +73,7 @@ const H = b.a`
73
73
  }
74
74
  }
75
75
  }
76
- `, X = b.div`
76
+ `, D = b.div`
77
77
  display: flex;
78
78
  flex-direction: column;
79
79
  align-items: center;
@@ -114,7 +114,7 @@ const H = b.a`
114
114
  font-weight: 400;
115
115
  line-height: 1.5rem;
116
116
  max-width: 8rem;
117
- ${N(2)}
117
+ ${z(2)}
118
118
  }
119
119
 
120
120
  &.active {
@@ -164,53 +164,53 @@ const H = b.a`
164
164
  max-width: unset;
165
165
  }
166
166
  }
167
- `, Z = S(
168
- ({ text: t, isActive: l = !1, icon: i, onSelectCard: n = () => {
169
- } }, h) => /* @__PURE__ */ o(
170
- X,
167
+ `, H = M(
168
+ ({ text: t, isActive: l = !1, icon: i, onSelectCard: a = () => {
169
+ } }, d) => /* @__PURE__ */ o(
170
+ D,
171
171
  {
172
- ref: h,
172
+ ref: d,
173
173
  className: l ? "active" : "",
174
- onClick: n,
174
+ onClick: a,
175
175
  children: [
176
- /* @__PURE__ */ r(A, { icon: i, className: "wrapper__icon" }),
176
+ /* @__PURE__ */ r(T, { icon: i, className: "wrapper__icon" }),
177
177
  /* @__PURE__ */ r("div", { className: "wrapper__text", children: t })
178
178
  ]
179
179
  }
180
180
  )
181
- ), J = S(
181
+ ), X = M(
182
182
  ({
183
183
  image: t,
184
184
  imageComponent: l,
185
185
  title: i,
186
- description: n,
187
- className: h,
186
+ description: a,
187
+ className: d,
188
188
  onSelectCard: k = () => {
189
189
  },
190
190
  link: u,
191
191
  LinkComponent: x
192
192
  }, I) => {
193
- const c = x || "a", { theme: f } = B();
193
+ const h = x || "a", { theme: c } = j();
194
194
  return /* @__PURE__ */ o(
195
- H,
195
+ B,
196
196
  {
197
197
  ref: I,
198
- theme: f,
199
- className: h,
198
+ theme: c,
199
+ className: d,
200
200
  onClick: k,
201
- as: c,
201
+ as: h,
202
202
  ...x ? { to: `/${u}` } : { href: `/${u}` },
203
203
  children: [
204
- q(l) ? l : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
204
+ W(l) ? l : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
205
205
  /* @__PURE__ */ o("div", { className: "wrapper__content", children: [
206
206
  i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
207
- n && /* @__PURE__ */ r("div", { className: "wrapper__description", children: n })
207
+ a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
208
208
  ] })
209
209
  ]
210
210
  }
211
211
  );
212
212
  }
213
- ), K = b.div`
213
+ ), Z = b.div`
214
214
  display: flex;
215
215
  flex-direction: column;
216
216
  align-items: center;
@@ -248,6 +248,7 @@ const H = b.a`
248
248
 
249
249
  & .wrapper__tags {
250
250
  display: flex;
251
+ flex-wrap: wrap;
251
252
  justify-content: center;
252
253
  gap: 0.75rem;
253
254
  }
@@ -268,31 +269,11 @@ const H = b.a`
268
269
  @media (max-width: ${$ + "px"}) {
269
270
  gap: 1rem;
270
271
 
271
- & .wrapper__tags {
272
- overflow-x: scroll;
273
- justify-content: flex-start;
274
- width: 100%;
275
-
276
- -webkit-overflow-scrolling: touch;
277
- ::-webkit-scrollbar {
278
- -webkit-appearance: none;
279
- }
280
- -ms-overflow-style: none;
281
- /* Internet Explorer 10+ */
282
- scrollbar-width: none;
283
- /* Firefox */
284
-
285
- &::-webkit-scrollbar {
286
- display: none;
287
- /* Safari and Chrome */
288
- }
289
- }
290
-
291
272
  & .wrapper__cards {
292
273
  grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
293
274
  }
294
275
  }
295
- `, F = b(D)`
276
+ `, J = b(A)`
296
277
  &.skeleton__tags {
297
278
  max-width: 50rem;
298
279
  }
@@ -302,132 +283,123 @@ const H = b.a`
302
283
  overflow-x: hidden;
303
284
  }
304
285
  }
305
- `, Q = ({ keyPrefix: t }) => /* @__PURE__ */ o(F, { className: "skeleton__tags", children: [
286
+ `, K = ({ keyPrefix: t }) => /* @__PURE__ */ o(J, { className: "skeleton__tags", children: [
306
287
  /* @__PURE__ */ o(
307
- _,
288
+ f,
308
289
  {
309
290
  alignItems: "center",
310
291
  gap: "0.5rem",
311
292
  children: [
312
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
313
- /* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
293
+ /* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
294
+ /* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
314
295
  ]
315
296
  },
316
297
  `${t}-1`
317
298
  ),
318
299
  /* @__PURE__ */ o(
319
- _,
300
+ f,
320
301
  {
321
302
  alignItems: "center",
322
303
  gap: "0.5rem",
323
304
  noGradient: !0,
324
305
  children: [
325
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
326
- /* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
306
+ /* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
307
+ /* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
327
308
  ]
328
309
  },
329
310
  `${t}-2`
330
311
  ),
331
312
  /* @__PURE__ */ o(
332
- _,
313
+ f,
333
314
  {
334
315
  alignItems: "center",
335
316
  gap: "0.5rem",
336
317
  noGradient: !0,
337
318
  children: [
338
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
339
- /* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
319
+ /* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
320
+ /* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
340
321
  ]
341
322
  },
342
323
  `${t}-3`
343
324
  ),
344
325
  /* @__PURE__ */ o(
345
- _,
326
+ f,
346
327
  {
347
328
  alignItems: "center",
348
329
  gap: "0.5rem",
349
330
  noGradient: !0,
350
331
  children: [
351
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
352
- /* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
332
+ /* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
333
+ /* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
353
334
  ]
354
335
  },
355
336
  `${t}-4`
356
337
  ),
357
338
  /* @__PURE__ */ o(
358
- _,
339
+ f,
359
340
  {
360
341
  alignItems: "center",
361
342
  gap: "0.5rem",
362
343
  noGradient: !0,
363
344
  children: [
364
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
365
- /* @__PURE__ */ r(p, { height: "1.5rem", width: "8rem" })
345
+ /* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
346
+ /* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
366
347
  ]
367
348
  },
368
349
  `${t}-5`
369
350
  )
370
- ] }), U = ({
351
+ ] }), P = ({
371
352
  keyPrefix: t,
372
353
  isLoading: l = !1,
373
- fallbackComponent: i = /* @__PURE__ */ r(z, {}),
374
- children: n
375
- }) => /* @__PURE__ */ r(E, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(Q, { keyPrefix: t }) : n }), V = ({ keyPrefix: t }) => /* @__PURE__ */ o(F, { className: "skeleton__cards", children: [
376
- /* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-1`),
377
- /* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-2`),
378
- /* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-3`)
379
- ] }), Y = ({
380
- keyPrefix: t,
381
- isLoading: l = !1,
382
- fallbackComponent: i = /* @__PURE__ */ r(z, {}),
383
- children: n
384
- }) => /* @__PURE__ */ r(E, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(V, { keyPrefix: t }) : n }), le = S(
354
+ fallbackComponent: i = /* @__PURE__ */ r(O, {}),
355
+ children: a
356
+ }) => /* @__PURE__ */ r(G, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(K, { keyPrefix: t }) : a }), ne = M(
385
357
  ({
386
358
  title: t,
387
359
  subtitle: l,
388
360
  tags: i = [],
389
- items: n = [],
390
- limitTags: h = 5,
361
+ items: a = [],
362
+ limitTags: d = 5,
391
363
  limitTagsForMobile: k = 5,
392
364
  limit: u = 3,
393
365
  limitForMobile: x = 2,
394
366
  selectedTag: I,
395
- onSelectTag: c = () => {
367
+ onSelectTag: h = () => {
396
368
  },
397
- onSelectCard: f = () => {
369
+ onSelectCard: c = () => {
398
370
  },
399
371
  className: w,
400
- isLoadingTags: O = !1,
401
- isLoadingCards: C = !1,
402
- LinkComponent: L
403
- }, G) => (j(() => {
404
- if (!T(w))
372
+ isLoadingTags: C = !1,
373
+ // isLoadingCards = false,
374
+ LinkComponent: E
375
+ }, S) => (R(() => {
376
+ if (!q(w))
405
377
  return;
406
378
  const e = () => {
407
379
  const m = document == null ? void 0 : document.querySelector(`.${w} .wrapper__cards`), s = m == null ? void 0 : m.querySelectorAll(".wrapper__card");
408
- s == null || s.forEach((v) => {
409
- const R = v.getBoundingClientRect().height, W = Math.ceil((R + 10) / 20);
410
- v.style.gridRowEnd = `span ${W}`;
380
+ s == null || s.forEach((y) => {
381
+ const F = y.getBoundingClientRect().height, L = Math.ceil((F + 10) / 20);
382
+ y.style.gridRowEnd = `span ${L}`;
411
383
  });
412
- const M = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
413
- if (M) {
414
- const v = M.offsetTop + M.offsetHeight;
415
- m.style.height = `${v}px`;
384
+ const N = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
385
+ if (N) {
386
+ const y = N.offsetTop + N.offsetHeight;
387
+ m.style.height = `${y}px`;
416
388
  }
417
- }, d = document == null ? void 0 : document.querySelector(`.${w} .wrapper__cards`), a = d == null ? void 0 : d.querySelectorAll(".wrapper__image");
418
- let y = 0;
419
- return (a == null ? void 0 : a.length) === 0 ? e() : (a == null || a.forEach((m) => {
420
- m.complete ? y++ : m.addEventListener("load", () => {
421
- y++, y === (a == null ? void 0 : a.length) && e();
389
+ }, p = document == null ? void 0 : document.querySelector(`.${w} .wrapper__cards`), n = p == null ? void 0 : p.querySelectorAll(".wrapper__image");
390
+ let v = 0;
391
+ return (n == null ? void 0 : n.length) === 0 ? e() : (n == null || n.forEach((m) => {
392
+ m.complete ? v++ : m.addEventListener("load", () => {
393
+ v++, v === (n == null ? void 0 : n.length) && e();
422
394
  });
423
- }), y === (a == null ? void 0 : a.length) && e()), window.addEventListener("resize", e), () => {
395
+ }), v === (n == null ? void 0 : n.length) && e()), window.addEventListener("resize", e), () => {
424
396
  window.removeEventListener("resize", e);
425
397
  };
426
- }, [w, n, C]), /* @__PURE__ */ o(
427
- K,
398
+ }, [w, a]), /* @__PURE__ */ o(
399
+ Z,
428
400
  {
429
- ref: G,
430
- limitTags: h,
401
+ ref: S,
402
+ limitTags: d,
431
403
  limitTagsForMobile: k,
432
404
  limitCards: u,
433
405
  limitCardsForMobile: x,
@@ -439,47 +411,40 @@ const H = b.a`
439
411
  l && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: l })
440
412
  ] }),
441
413
  /* @__PURE__ */ r(
442
- U,
414
+ P,
443
415
  {
444
- isLoading: O,
416
+ isLoading: C,
445
417
  keyPrefix: "field-of-interests-masonry-tag",
446
- children: /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e, d) => /* @__PURE__ */ r(
447
- Z,
418
+ children: /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e, p) => /* @__PURE__ */ r(
419
+ H,
448
420
  {
449
421
  icon: e == null ? void 0 : e.icon,
450
422
  text: e == null ? void 0 : e.title,
451
423
  isActive: (e == null ? void 0 : e.code) === I,
452
- onSelectCard: () => c == null ? void 0 : c(e)
424
+ onSelectCard: () => h == null ? void 0 : h(e)
453
425
  },
454
- `field-of-interests-masonry-tag__${d + 1}`
426
+ `field-of-interests-masonry-tag__${p + 1}`
455
427
  )) }) })
456
428
  }
457
429
  ),
458
- /* @__PURE__ */ r(
459
- Y,
430
+ /* @__PURE__ */ r("div", { className: "wrapper__cards", children: a == null ? void 0 : a.map((e, p) => /* @__PURE__ */ r(
431
+ X,
460
432
  {
461
- isLoading: C,
462
- keyPrefix: "field-of-interests-masonry-card",
463
- children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: n == null ? void 0 : n.map((e, d) => /* @__PURE__ */ r(
464
- J,
465
- {
466
- image: e == null ? void 0 : e.image,
467
- imageComponent: e == null ? void 0 : e.imageComponent,
468
- title: e == null ? void 0 : e.title,
469
- description: e == null ? void 0 : e.description,
470
- onSelectCard: () => f == null ? void 0 : f(e),
471
- className: "wrapper__card",
472
- link: e == null ? void 0 : e.link,
473
- LinkComponent: L
474
- },
475
- `field-of-interests-with-tags-card__${d + 1}`
476
- )) })
477
- }
478
- )
433
+ image: e == null ? void 0 : e.image,
434
+ imageComponent: e == null ? void 0 : e.imageComponent,
435
+ title: e == null ? void 0 : e.title,
436
+ description: e == null ? void 0 : e.description,
437
+ onSelectCard: () => c == null ? void 0 : c(e),
438
+ className: "wrapper__card",
439
+ link: e == null ? void 0 : e.link,
440
+ LinkComponent: E
441
+ },
442
+ `field-of-interests-with-tags-card__${p + 1}`
443
+ )) })
479
444
  ]
480
445
  }
481
446
  ))
482
447
  );
483
448
  export {
484
- le as default
449
+ ne as default
485
450
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.204",
3
+ "version": "4.0.206",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [