@lanaco/lnc-react-ui 4.0.205 → 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"),c=require("react"),x=require("./utils-RnrgDDZP.cjs"),P=require("./Icon.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),F=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=c.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:a=()=>{}},h)=>e.jsxs(O,{ref:h,className:o?"active":"",onClick:a,children:[e.jsx(P,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),R=c.forwardRef(({image:t,imageComponent:o,title:i,description:a,className:h,onSelectCard:k=()=>{},link:g,LinkComponent:f},S)=>{const m=f||"a",{theme:_}=q.useTheme();return e.jsxs(F,{ref:S,theme:_,className:h,onClick:k,as:m,...f?{to:`/${g}`}:{href:`/${g}`},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;
@@ -212,21 +212,21 @@
212
212
  }
213
213
  }
214
214
 
215
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
215
+ @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
216
216
  gap: 1rem;
217
217
 
218
218
  & .wrapper__cards {
219
219
  grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
220
220
  }
221
221
  }
222
- `,I=j.styled(n.SkeletonRowWrapper)`
222
+ `,F=v.styled(n.SkeletonRowWrapper)`
223
223
  &.skeleton__tags {
224
224
  max-width: 50rem;
225
225
  }
226
226
 
227
- @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
227
+ @media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
228
228
  &.skeleton__tags {
229
229
  overflow-x: hidden;
230
230
  }
231
231
  }
232
- `,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(c.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(c.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(G,{keyPrefix:t}):a}),Z=c.forwardRef(({title:t,subtitle:o,tags:i=[],items:a=[],limitTags:h=5,limitTagsForMobile:k=5,limit:g=3,limitForMobile:f=2,selectedTag:S,onSelectTag:m=()=>{},onSelectCard:_=()=>{},className:w,isLoadingTags:C=!1,isLoadingCards:b=!1,LinkComponent:L},E)=>(c.useLayoutEffect(()=>{if(!x.isDefinedNotEmptyString(w))return;const r=()=>{const p=document==null?void 0:document.querySelector(`.${w} .wrapper__cards`),l=p==null?void 0:p.querySelectorAll(".wrapper__card");l==null||l.forEach(y=>{const M=y.getBoundingClientRect().height,N=Math.ceil((M+10)/20);y.style.gridRowEnd=`span ${N}`});const $=l==null?void 0:l[(l==null?void 0:l.length)-1];if($){const y=$.offsetTop+$.offsetHeight;p.style.height=`${y}px`}},d=document==null?void 0:document.querySelector(`.${w} .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(p=>{p.complete?u++:p.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)}},[w,a,b]),e.jsxs(W,{ref:E,limitTags:h,limitTagsForMobile:k,limitCards:g,limitCardsForMobile:f,className:w,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)===S,onSelectCard:()=>m==null?void 0:m(r)},`field-of-interests-masonry-tag__${d+1}`))})})}),e.jsx(X,{isLoading:b,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:()=>_==null?void 0:_(r),className:"wrapper__card",link:r==null?void 0:r.link,LinkComponent:L},`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 C } from "react/jsx-runtime";
2
- import { forwardRef as S, Suspense as E, useLayoutEffect as q } from "react";
3
- import { m as N, l as T, k as j } from "./utils-DtEfC-TX.js";
4
- import A from "./Icon.js";
5
- import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { M as b } 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 = $.a`
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
+ import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import { M as $ } from "./consts-BuFChS64.js";
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 = $.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,11 +57,11 @@ const H = $.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
 
64
- @media (max-width: ${b + "px"}) {
64
+ @media (max-width: ${$ + "px"}) {
65
65
  & .wrapper__content {
66
66
  & .wrapper__title {
67
67
  font-size: 0.875rem;
@@ -73,7 +73,7 @@ const H = $.a`
73
73
  }
74
74
  }
75
75
  }
76
- `, X = $.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 = $.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 {
@@ -124,7 +124,7 @@ const H = $.a`
124
124
  }
125
125
  }
126
126
 
127
- @media (max-width: ${b + "px"}) {
127
+ @media (max-width: ${$ + "px"}) {
128
128
  max-width: unset;
129
129
  min-width: unset;
130
130
  flex-direction: row;
@@ -164,53 +164,53 @@ const H = $.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
- T(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 = $.div`
213
+ ), Z = b.div`
214
214
  display: flex;
215
215
  flex-direction: column;
216
216
  align-items: center;
@@ -266,149 +266,140 @@ const H = $.a`
266
266
  }
267
267
  }
268
268
 
269
- @media (max-width: ${b + "px"}) {
269
+ @media (max-width: ${$ + "px"}) {
270
270
  gap: 1rem;
271
271
 
272
272
  & .wrapper__cards {
273
273
  grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
274
274
  }
275
275
  }
276
- `, F = $(D)`
276
+ `, J = b(A)`
277
277
  &.skeleton__tags {
278
278
  max-width: 50rem;
279
279
  }
280
280
 
281
- @media (max-width: ${b + "px"}) {
281
+ @media (max-width: ${$ + "px"}) {
282
282
  &.skeleton__tags {
283
283
  overflow-x: hidden;
284
284
  }
285
285
  }
286
- `, Q = ({ keyPrefix: t }) => /* @__PURE__ */ o(F, { className: "skeleton__tags", children: [
286
+ `, K = ({ keyPrefix: t }) => /* @__PURE__ */ o(J, { className: "skeleton__tags", children: [
287
287
  /* @__PURE__ */ o(
288
- _,
288
+ f,
289
289
  {
290
290
  alignItems: "center",
291
291
  gap: "0.5rem",
292
292
  children: [
293
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
294
- /* @__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" })
295
295
  ]
296
296
  },
297
297
  `${t}-1`
298
298
  ),
299
299
  /* @__PURE__ */ o(
300
- _,
300
+ f,
301
301
  {
302
302
  alignItems: "center",
303
303
  gap: "0.5rem",
304
304
  noGradient: !0,
305
305
  children: [
306
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
307
- /* @__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" })
308
308
  ]
309
309
  },
310
310
  `${t}-2`
311
311
  ),
312
312
  /* @__PURE__ */ o(
313
- _,
313
+ f,
314
314
  {
315
315
  alignItems: "center",
316
316
  gap: "0.5rem",
317
317
  noGradient: !0,
318
318
  children: [
319
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
320
- /* @__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" })
321
321
  ]
322
322
  },
323
323
  `${t}-3`
324
324
  ),
325
325
  /* @__PURE__ */ o(
326
- _,
326
+ f,
327
327
  {
328
328
  alignItems: "center",
329
329
  gap: "0.5rem",
330
330
  noGradient: !0,
331
331
  children: [
332
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
333
- /* @__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" })
334
334
  ]
335
335
  },
336
336
  `${t}-4`
337
337
  ),
338
338
  /* @__PURE__ */ o(
339
- _,
339
+ f,
340
340
  {
341
341
  alignItems: "center",
342
342
  gap: "0.5rem",
343
343
  noGradient: !0,
344
344
  children: [
345
- /* @__PURE__ */ r(g, { width: "2.75rem", height: "2.75rem" }),
346
- /* @__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" })
347
347
  ]
348
348
  },
349
349
  `${t}-5`
350
350
  )
351
- ] }), U = ({
351
+ ] }), P = ({
352
352
  keyPrefix: t,
353
353
  isLoading: l = !1,
354
- fallbackComponent: i = /* @__PURE__ */ r(C, {}),
355
- children: n
356
- }) => /* @__PURE__ */ r(E, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(Q, { keyPrefix: t }) : n }), V = ({ keyPrefix: t }) => /* @__PURE__ */ o(F, { className: "skeleton__cards", children: [
357
- /* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-1`),
358
- /* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-2`),
359
- /* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-3`)
360
- ] }), Y = ({
361
- keyPrefix: t,
362
- isLoading: l = !1,
363
- fallbackComponent: i = /* @__PURE__ */ r(C, {}),
364
- children: n
365
- }) => /* @__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(
366
357
  ({
367
358
  title: t,
368
359
  subtitle: l,
369
360
  tags: i = [],
370
- items: n = [],
371
- limitTags: h = 5,
361
+ items: a = [],
362
+ limitTags: d = 5,
372
363
  limitTagsForMobile: k = 5,
373
364
  limit: u = 3,
374
365
  limitForMobile: x = 2,
375
366
  selectedTag: I,
376
- onSelectTag: c = () => {
367
+ onSelectTag: h = () => {
377
368
  },
378
- onSelectCard: f = () => {
369
+ onSelectCard: c = () => {
379
370
  },
380
371
  className: w,
381
- isLoadingTags: O = !1,
382
- isLoadingCards: z = !1,
383
- LinkComponent: L
384
- }, G) => (q(() => {
385
- if (!j(w))
372
+ isLoadingTags: C = !1,
373
+ // isLoadingCards = false,
374
+ LinkComponent: E
375
+ }, S) => (R(() => {
376
+ if (!q(w))
386
377
  return;
387
378
  const e = () => {
388
379
  const m = document == null ? void 0 : document.querySelector(`.${w} .wrapper__cards`), s = m == null ? void 0 : m.querySelectorAll(".wrapper__card");
389
- s == null || s.forEach((v) => {
390
- const R = v.getBoundingClientRect().height, W = Math.ceil((R + 10) / 20);
391
- 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}`;
392
383
  });
393
- const M = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
394
- if (M) {
395
- const v = M.offsetTop + M.offsetHeight;
396
- 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`;
397
388
  }
398
- }, d = document == null ? void 0 : document.querySelector(`.${w} .wrapper__cards`), a = d == null ? void 0 : d.querySelectorAll(".wrapper__image");
399
- let y = 0;
400
- return (a == null ? void 0 : a.length) === 0 ? e() : (a == null || a.forEach((m) => {
401
- m.complete ? y++ : m.addEventListener("load", () => {
402
- 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();
403
394
  });
404
- }), 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), () => {
405
396
  window.removeEventListener("resize", e);
406
397
  };
407
- }, [w, n, z]), /* @__PURE__ */ o(
408
- K,
398
+ }, [w, a]), /* @__PURE__ */ o(
399
+ Z,
409
400
  {
410
- ref: G,
411
- limitTags: h,
401
+ ref: S,
402
+ limitTags: d,
412
403
  limitTagsForMobile: k,
413
404
  limitCards: u,
414
405
  limitCardsForMobile: x,
@@ -420,47 +411,40 @@ const H = $.a`
420
411
  l && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: l })
421
412
  ] }),
422
413
  /* @__PURE__ */ r(
423
- U,
414
+ P,
424
415
  {
425
- isLoading: O,
416
+ isLoading: C,
426
417
  keyPrefix: "field-of-interests-masonry-tag",
427
- 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(
428
- 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,
429
420
  {
430
421
  icon: e == null ? void 0 : e.icon,
431
422
  text: e == null ? void 0 : e.title,
432
423
  isActive: (e == null ? void 0 : e.code) === I,
433
- onSelectCard: () => c == null ? void 0 : c(e)
424
+ onSelectCard: () => h == null ? void 0 : h(e)
434
425
  },
435
- `field-of-interests-masonry-tag__${d + 1}`
426
+ `field-of-interests-masonry-tag__${p + 1}`
436
427
  )) }) })
437
428
  }
438
429
  ),
439
- /* @__PURE__ */ r(
440
- Y,
430
+ /* @__PURE__ */ r("div", { className: "wrapper__cards", children: a == null ? void 0 : a.map((e, p) => /* @__PURE__ */ r(
431
+ X,
441
432
  {
442
- isLoading: z,
443
- keyPrefix: "field-of-interests-masonry-card",
444
- children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: n == null ? void 0 : n.map((e, d) => /* @__PURE__ */ r(
445
- J,
446
- {
447
- image: e == null ? void 0 : e.image,
448
- imageComponent: e == null ? void 0 : e.imageComponent,
449
- title: e == null ? void 0 : e.title,
450
- description: e == null ? void 0 : e.description,
451
- onSelectCard: () => f == null ? void 0 : f(e),
452
- className: "wrapper__card",
453
- link: e == null ? void 0 : e.link,
454
- LinkComponent: L
455
- },
456
- `field-of-interests-with-tags-card__${d + 1}`
457
- )) })
458
- }
459
- )
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
+ )) })
460
444
  ]
461
445
  }
462
446
  ))
463
447
  );
464
448
  export {
465
- le as default
449
+ ne as default
466
450
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.205",
3
+ "version": "4.0.206",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [