@lanaco/lnc-react-ui 4.0.26 → 4.0.28

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.
package/dist/index8.cjs CHANGED
@@ -1,82 +1,194 @@
1
- "use strict";const i=require("react/jsx-runtime"),o=require("react"),t=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./consts-dNz9tpt4.cjs"),b=require("./Button.cjs"),w=t.newStyled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),x=require("./consts-dNz9tpt4.cjs"),o=require("./utils-CE6bljYe.cjs"),$=require("./Icon.cjs"),N=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),k=require("./useEffectOnce-DFrzfNzT.cjs"),I=p.newStyled.div`
2
2
  display: flex;
3
+ width: 100%;
4
+ height: fit-content;
5
+ flex-direction: column;
6
+ align-items: flex-start;
7
+ flex-shrink: 0;
8
+ align-self: stretch;
3
9
  border-radius: 0.75rem;
4
- background-color: ${e=>e.bgcolor||"transparent"};
5
- overflow: hidden;
10
+ border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
11
+ background: var(--Lanaco-Gray-white, #fff);
6
12
 
7
- & button {
8
- width: fit-content;
9
- }
13
+ /* drop-shadow-sm */
14
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
10
15
 
11
- & img {
12
- object-fit: cover;
13
- max-width: ${e=>e.imgW||"33.39346rem"};
14
- min-width: ${e=>e.imgW||"33.39346rem"};
15
- max-height: ${e=>e.imgH||"22.5rem"};
16
- min-height: ${e=>e.imgH||"22.5rem"};
16
+ & .wrapper__image {
17
+ width: 100%;
18
+ height: auto;
19
+ border-radius: 0.75rem 0.75rem 0 0;
17
20
  }
18
21
 
19
- ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
20
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
22
+ & .wrapper__content {
23
+ display: flex;
24
+ padding: 0.75rem;
25
+ flex-direction: column;
26
+ align-items: flex-start;
27
+ gap: 0.25rem;
28
+ align-self: stretch;
21
29
 
22
- `}
30
+ & .wrapper__title {
31
+ color: var(--gray-950);
32
+ font-size: 1rem;
33
+ font-style: normal;
34
+ font-weight: 500;
35
+ line-height: 1.5rem;
36
+ ${o.truncateTextInRows(2)}
37
+ }
23
38
 
24
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
25
- flex-direction: column;
26
- & img {
27
- max-width: 100%;
28
- min-width: 100%;
29
- max-height: ${e=>e.imgHMob||"12.1rem"};
30
- min-height: ${e=>e.imgHMob||"12.1rem"};
39
+ & .wrapper__description {
40
+ color: var(--gray-600);
41
+ font-size: 0.75rem;
42
+ font-style: normal;
43
+ font-weight: 400;
44
+ line-height: 1rem;
45
+ letter-spacing: 0.025rem;
46
+ ${o.truncateTextInRows(2)}
31
47
  }
32
48
  }
33
- `,y=t.newStyled.div`
34
- padding: 2rem;
49
+ `,E=p.newStyled.div`
50
+ width: 100%;
51
+ height: 11.625rem;
52
+ border-radius: 0.75rem;
53
+ background: ${o.linearGradientAnimation("-90deg")};
54
+ `,R=p.newStyled.div`
35
55
  display: flex;
36
- gap: 1.25rem;
37
- justify-content: space-between;
38
- flex: 1;
39
56
  flex-direction: column;
57
+ align-items: center;
58
+ gap: 0.75rem;
40
59
 
41
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
42
- padding: 1.25rem;
43
- }
44
- `,j=t.newStyled.div`
45
- display: flex;
46
- flex-direction: column;
47
- gap: 0.25rem;
60
+ & .wrapper__icon {
61
+ display: flex;
62
+ width: 2.75rem;
63
+ height: 2.75rem;
64
+ padding: 0.5rem;
65
+ align-items: center;
66
+ font-size: 1.75rem;
67
+ color: var(--gray-950, #14161a);
68
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
69
+ border-radius: 999px;
48
70
 
49
- & .header-title {
50
- font-size: 1.5rem;
51
- font-weight: 600;
71
+ & i {
72
+ width: auto;
73
+ }
52
74
  }
53
75
 
54
- & .header-subtitle {
55
- color: var(--gray-600, #676e79);
76
+ & .wrapper__text {
77
+ color: var(--gray-950, #14161a);
78
+ text-align: center;
56
79
  font-size: 1rem;
57
- font-weight: 500;
80
+ font-style: normal;
81
+ font-weight: 400;
82
+ line-height: 1.5rem;
58
83
  }
59
84
 
60
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
61
- flex-direction: column;
85
+ &.active {
86
+ background: var(--gray-950, #14161a);
87
+
88
+ & .wrapper__icon {
89
+ color: var(--white, #fff);
90
+ }
62
91
  }
63
- `,v=t.newStyled.div`
92
+
93
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
94
+ flex-direction: row;
95
+ align-items: center;
96
+ gap: 0.25rem;
97
+ border-radius: 999px;
98
+ width: 100%;
99
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
100
+ padding: 0 0.75rem;
101
+
102
+ & .wrapper__icon {
103
+ display: flex;
104
+ width: 1.25rem;
105
+ width: 1.25rem;
106
+ padding: 0;
107
+ align-items: center;
108
+ font-size: 1.25rem;
109
+ color: var(--gray-950, #14161a);
110
+ background: transparent;
111
+ border-radius: 0;
112
+ }
113
+
114
+ & .wrapper__text {
115
+ font-size: 0.875rem;
116
+ line-height: 1.25rem;
117
+ white-space: nowrap;
118
+ }
119
+ }
120
+ `,q=p.newStyled.div`
121
+ width: 7.5rem;
122
+ width: 7.5rem;
123
+ border-radius: 999px;
124
+ background: ${o.linearGradientAnimation("-90deg")};
125
+
126
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
127
+ width: 7.5rem;
128
+ height: 2.5rem;
129
+ }
130
+ `,z=l.forwardRef(({},i)=>r.jsx(q,{})),M=l.forwardRef(({text:i,isActive:a,icon:t,onSelectCard:n=()=>{}},m)=>r.jsxs(R,{className:a?"active":"",onClick:n,children:[r.jsx($,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:a,title:t,description:n,className:m,onSelectCard:d=()=>{}},g)=>{const{theme:c}=N.useTheme();return r.jsxs(I,{theme:c,className:m,onClick:d,children:[o.isDefined(a)?a:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),S=l.forwardRef(({},i)=>r.jsxs(E,{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"})]})]})),C=p.newStyled.div`
64
131
  display: flex;
65
132
  flex-direction: column;
66
- gap: 0.75rem;
67
- font-size: 0.875rem;
68
- font-weight: 500;
133
+ align-items: center;
134
+ gap: 1.5rem;
69
135
 
70
- & .list-item {
136
+ & .wrapper__heading {
71
137
  display: flex;
138
+ flex-direction: column;
139
+ gap: 1rem;
140
+ text-align: center;
141
+
142
+ & .wrapper__title {
143
+ color: var(--gray-950, #14161a);
144
+ text-align: center;
145
+ font-size: 1.5rem;
146
+ font-style: normal;
147
+ font-weight: 600;
148
+ line-height: 2rem;
149
+ letter-spacing: -0.47px;
150
+ }
151
+
152
+ & .wrapper__subtitle {
153
+ color: var(---gray-600, #676e79);
154
+ font-size: 0.875rem;
155
+ font-style: normal;
156
+ font-weight: 400;
157
+ line-height: 1.25rem;
158
+ letter-spacing: 0.25px;
159
+ }
160
+ }
161
+
162
+ & .wrapper__tags {
163
+ display: grid;
164
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitTags}, minmax(0, 1fr))`};
165
+ justify-content: center;
72
166
  align-items: center;
167
+ gap: 0.75rem;
168
+ }
73
169
 
74
- & .mng {
75
- font-size: 1.25rem;
76
- color: var(--info-600);
170
+ & .wrapper__cards {
171
+ display: grid;
172
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
173
+ grid-auto-rows: 0.625rem;
174
+ gap: 0.625rem;
175
+ width: 100%;
176
+
177
+ & .wrapper__card {
178
+ overflow: hidden;
77
179
  }
78
180
  }
79
181
 
80
- @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
182
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
183
+ & .wrapper__tags {
184
+ display: flex;
185
+ overflow-x: scroll;
186
+ justify-content: flex-start;
187
+ width: 100%;
188
+ }
189
+
190
+ & .wrapper__cards {
191
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
192
+ }
81
193
  }
82
- `,$=o.forwardRef((e,S)=>{const{title:a,subtitle:m,buttonText:s,list:n,image:d,imageHeight:l,imageWidth:c,imageHeightMob:x,hasBorder:g=!0,backgroundColor:h="transparent",onBannerClick:p}=e;return i.jsxs(w,{imgH:l,imgW:c,imgHMob:x,hasBorder:g,bgColor:h,children:[i.jsxs(y,{children:[i.jsxs(j,{children:[i.jsx("div",{className:"header-title",children:a}),i.jsx("div",{className:"header-subitle",children:m})]}),i.jsx(v,{children:n==null?void 0:n.map((u,f)=>i.jsx(o.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:u})]})},f))}),i.jsx(b,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:p,children:s})]}),i.jsx("img",{src:d})]})});module.exports=$;
194
+ `,F=l.forwardRef(({title:i,subtitle:a,tags:t=[],cards:n=[],limitTags:m=5,limitTagsForMobile:d=5,limitCards:g=3,limitCardsForMobile:c=2,onSelectTag:_=()=>{},onSelectCard:f=()=>{}},L)=>{var u,y;const w=e=>{_==null||_(e==null?void 0:e.uuid)},h=e=>{f==null||f(e==null?void 0:e.uuid)};return k.useEffectOnce(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(v=>{const j=v.getBoundingClientRect().height,b=Math.ceil((j+10)/20);v.style.gridRowEnd=`span ${b}`})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),r.jsxs(C,{limitTags:m,limitTagsForMobile:d,limitCards:g,limitCardsForMobile:c,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__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,s)=>r.jsx(M,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-masonry-tag__${s+1}`)):(u=Array.from("12345"))==null?void 0:u.map((e,s)=>r.jsx(z,{},`field-of-interests-masonry-tag-skeleton__${s+1}`))}),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(O,{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:()=>h==null?void 0:h(e==null?void 0:e.uuid),className:"wrapper__card"},`field-of-interests-with-tags-card__${s+1}`)):(y=Array.from("12345"))==null?void 0:y.map((e,s)=>r.jsx(S,{},`field-of-interests-with-tags-card-skeleton__${s+1}`))})]})});module.exports=F;
package/dist/index8.js CHANGED
@@ -1,138 +1,312 @@
1
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as u, Fragment as w } from "react";
3
- import { n as t } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
- import { M as n } from "./consts-DNVz1x1I.js";
5
- import v from "./Button.js";
6
- const y = t.div`
1
+ import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import { n as p } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as g } from "./consts-DNVz1x1I.js";
5
+ import { t as b, m as $, l as z } from "./utils-DtEdJZWa.js";
6
+ import I from "./Icon.js";
7
+ import { u as M } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
+ import { u as E } from "./useEffectOnce-guOKBPuL.js";
9
+ const O = p.div`
7
10
  display: flex;
11
+ width: 100%;
12
+ height: fit-content;
13
+ flex-direction: column;
14
+ align-items: flex-start;
15
+ flex-shrink: 0;
16
+ align-self: stretch;
8
17
  border-radius: 0.75rem;
9
- background-color: ${(e) => e.bgcolor || "transparent"};
10
- overflow: hidden;
18
+ border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
19
+ background: var(--Lanaco-Gray-white, #fff);
11
20
 
12
- & button {
13
- width: fit-content;
14
- }
21
+ /* drop-shadow-sm */
22
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
15
23
 
16
- & img {
17
- object-fit: cover;
18
- max-width: ${(e) => e.imgW || "33.39346rem"};
19
- min-width: ${(e) => e.imgW || "33.39346rem"};
20
- max-height: ${(e) => e.imgH || "22.5rem"};
21
- min-height: ${(e) => e.imgH || "22.5rem"};
24
+ & .wrapper__image {
25
+ width: 100%;
26
+ height: auto;
27
+ border-radius: 0.75rem 0.75rem 0 0;
22
28
  }
23
29
 
24
- ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
25
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
30
+ & .wrapper__content {
31
+ display: flex;
32
+ padding: 0.75rem;
33
+ flex-direction: column;
34
+ align-items: flex-start;
35
+ gap: 0.25rem;
36
+ align-self: stretch;
26
37
 
27
- `}
38
+ & .wrapper__title {
39
+ color: var(--gray-950);
40
+ font-size: 1rem;
41
+ font-style: normal;
42
+ font-weight: 500;
43
+ line-height: 1.5rem;
44
+ ${b(2)}
45
+ }
28
46
 
29
- @media (max-width: ${n + "px"}) {
30
- flex-direction: column;
31
- & img {
32
- max-width: 100%;
33
- min-width: 100%;
34
- max-height: ${(e) => e.imgHMob || "12.1rem"};
35
- min-height: ${(e) => e.imgHMob || "12.1rem"};
47
+ & .wrapper__description {
48
+ color: var(--gray-600);
49
+ font-size: 0.75rem;
50
+ font-style: normal;
51
+ font-weight: 400;
52
+ line-height: 1rem;
53
+ letter-spacing: 0.025rem;
54
+ ${b(2)}
36
55
  }
37
56
  }
38
- `, $ = t.div`
39
- padding: 2rem;
57
+ `, C = p.div`
58
+ width: 100%;
59
+ height: 11.625rem;
60
+ border-radius: 0.75rem;
61
+ background: ${$("-90deg")};
62
+ `, F = p.div`
40
63
  display: flex;
41
- gap: 1.25rem;
42
- justify-content: space-between;
43
- flex: 1;
44
64
  flex-direction: column;
65
+ align-items: center;
66
+ gap: 0.75rem;
45
67
 
46
- @media (max-width: ${n + "px"}) {
47
- padding: 1.25rem;
48
- }
49
- `, H = t.div`
50
- display: flex;
51
- flex-direction: column;
52
- gap: 0.25rem;
68
+ & .wrapper__icon {
69
+ display: flex;
70
+ width: 2.75rem;
71
+ height: 2.75rem;
72
+ padding: 0.5rem;
73
+ align-items: center;
74
+ font-size: 1.75rem;
75
+ color: var(--gray-950, #14161a);
76
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
77
+ border-radius: 999px;
53
78
 
54
- & .header-title {
55
- font-size: 1.5rem;
56
- font-weight: 600;
79
+ & i {
80
+ width: auto;
81
+ }
57
82
  }
58
83
 
59
- & .header-subtitle {
60
- color: var(--gray-600, #676e79);
84
+ & .wrapper__text {
85
+ color: var(--gray-950, #14161a);
86
+ text-align: center;
61
87
  font-size: 1rem;
62
- font-weight: 500;
88
+ font-style: normal;
89
+ font-weight: 400;
90
+ line-height: 1.5rem;
63
91
  }
64
92
 
65
- @media (max-width: ${n + "px"}) {
66
- flex-direction: column;
93
+ &.active {
94
+ background: var(--gray-950, #14161a);
95
+
96
+ & .wrapper__icon {
97
+ color: var(--white, #fff);
98
+ }
67
99
  }
68
- `, W = t.div`
100
+
101
+ @media (max-width: ${g + "px"}) {
102
+ flex-direction: row;
103
+ align-items: center;
104
+ gap: 0.25rem;
105
+ border-radius: 999px;
106
+ width: 100%;
107
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
108
+ padding: 0 0.75rem;
109
+
110
+ & .wrapper__icon {
111
+ display: flex;
112
+ width: 1.25rem;
113
+ width: 1.25rem;
114
+ padding: 0;
115
+ align-items: center;
116
+ font-size: 1.25rem;
117
+ color: var(--gray-950, #14161a);
118
+ background: transparent;
119
+ border-radius: 0;
120
+ }
121
+
122
+ & .wrapper__text {
123
+ font-size: 0.875rem;
124
+ line-height: 1.25rem;
125
+ white-space: nowrap;
126
+ }
127
+ }
128
+ `, W = p.div`
129
+ width: 7.5rem;
130
+ width: 7.5rem;
131
+ border-radius: 999px;
132
+ background: ${$("-90deg")};
133
+
134
+ @media (max-width: ${g + "px"}) {
135
+ width: 7.5rem;
136
+ height: 2.5rem;
137
+ }
138
+ `, j = l(({}, r) => /* @__PURE__ */ i(W, {})), A = l(
139
+ ({ text: r, isActive: o, icon: t, onSelectCard: n = () => {
140
+ } }, m) => /* @__PURE__ */ s(F, { className: o ? "active" : "", onClick: n, children: [
141
+ /* @__PURE__ */ i(I, { icon: t, className: "wrapper__icon" }),
142
+ /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
143
+ ] })
144
+ ), L = l(
145
+ ({
146
+ image: r,
147
+ imageComponent: o,
148
+ title: t,
149
+ description: n,
150
+ className: m,
151
+ onSelectCard: d = () => {
152
+ }
153
+ }, u) => {
154
+ const { theme: c } = M();
155
+ return /* @__PURE__ */ s(O, { theme: c, className: m, onClick: d, children: [
156
+ z(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
157
+ /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
158
+ t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
159
+ n && /* @__PURE__ */ i("div", { className: "wrapper__description", children: n })
160
+ ] })
161
+ ] });
162
+ }
163
+ ), R = l(({}, r) => /* @__PURE__ */ s(C, { children: [
164
+ /* @__PURE__ */ i("div", { className: "wrapper__image" }),
165
+ /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
166
+ /* @__PURE__ */ i("div", { className: "wrapper__title" }),
167
+ /* @__PURE__ */ i("div", { className: "wrapper__description" })
168
+ ] })
169
+ ] })), T = p.div`
69
170
  display: flex;
70
171
  flex-direction: column;
71
- gap: 0.75rem;
72
- font-size: 0.875rem;
73
- font-weight: 500;
172
+ align-items: center;
173
+ gap: 1.5rem;
74
174
 
75
- & .list-item {
175
+ & .wrapper__heading {
76
176
  display: flex;
177
+ flex-direction: column;
178
+ gap: 1rem;
179
+ text-align: center;
180
+
181
+ & .wrapper__title {
182
+ color: var(--gray-950, #14161a);
183
+ text-align: center;
184
+ font-size: 1.5rem;
185
+ font-style: normal;
186
+ font-weight: 600;
187
+ line-height: 2rem;
188
+ letter-spacing: -0.47px;
189
+ }
190
+
191
+ & .wrapper__subtitle {
192
+ color: var(---gray-600, #676e79);
193
+ font-size: 0.875rem;
194
+ font-style: normal;
195
+ font-weight: 400;
196
+ line-height: 1.25rem;
197
+ letter-spacing: 0.25px;
198
+ }
199
+ }
200
+
201
+ & .wrapper__tags {
202
+ display: grid;
203
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitTags}, minmax(0, 1fr))`};
204
+ justify-content: center;
77
205
  align-items: center;
206
+ gap: 0.75rem;
207
+ }
78
208
 
79
- & .mng {
80
- font-size: 1.25rem;
81
- color: var(--info-600);
209
+ & .wrapper__cards {
210
+ display: grid;
211
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(0, 1fr))`};
212
+ grid-auto-rows: 0.625rem;
213
+ gap: 0.625rem;
214
+ width: 100%;
215
+
216
+ & .wrapper__card {
217
+ overflow: hidden;
82
218
  }
83
219
  }
84
220
 
85
- @media (max-width: ${n + "px"}) {
221
+ @media (max-width: ${g + "px"}) {
222
+ & .wrapper__tags {
223
+ display: flex;
224
+ overflow-x: scroll;
225
+ justify-content: flex-start;
226
+ width: 100%;
227
+ }
228
+
229
+ & .wrapper__cards {
230
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
231
+ }
86
232
  }
87
- `, N = u((e, k) => {
88
- const {
89
- title: o,
90
- subtitle: a,
91
- buttonText: d,
92
- list: m,
93
- image: l,
94
- imageHeight: c,
95
- imageWidth: s,
96
- imageHeightMob: g,
97
- hasBorder: h = !0,
98
- backgroundColor: p = "transparent",
99
- onBannerClick: x
100
- } = e;
101
- return /* @__PURE__ */ r(
102
- y,
103
- {
104
- imgH: c,
105
- imgW: s,
106
- imgHMob: g,
107
- hasBorder: h,
108
- bgColor: p,
109
- children: [
110
- /* @__PURE__ */ r($, { children: [
111
- /* @__PURE__ */ r(H, { children: [
112
- /* @__PURE__ */ i("div", { className: "header-title", children: o }),
113
- /* @__PURE__ */ i("div", { className: "header-subitle", children: a })
233
+ `, K = l(
234
+ ({
235
+ title: r,
236
+ subtitle: o,
237
+ tags: t = [],
238
+ cards: n = [],
239
+ limitTags: m = 5,
240
+ limitTagsForMobile: d = 5,
241
+ limitCards: u = 3,
242
+ limitCardsForMobile: c = 2,
243
+ onSelectTag: f = () => {
244
+ },
245
+ onSelectCard: _ = () => {
246
+ }
247
+ }, q) => {
248
+ var x, y;
249
+ const h = (e) => {
250
+ f == null || f(e == null ? void 0 : e.uuid);
251
+ }, w = (e) => {
252
+ _ == null || _(e == null ? void 0 : e.uuid);
253
+ };
254
+ return E(() => {
255
+ const e = () => {
256
+ document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((v) => {
257
+ const N = v.getBoundingClientRect().height, k = Math.ceil((N + 10) / 20);
258
+ v.style.gridRowEnd = `span ${k}`;
259
+ });
260
+ };
261
+ return e(), window.addEventListener("resize", e), () => {
262
+ window.removeEventListener("resize", e);
263
+ };
264
+ }), /* @__PURE__ */ s(
265
+ T,
266
+ {
267
+ limitTags: m,
268
+ limitTagsForMobile: d,
269
+ limitCards: u,
270
+ limitCardsForMobile: c,
271
+ children: [
272
+ /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
273
+ r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
274
+ o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
114
275
  ] }),
115
- /* @__PURE__ */ i(W, { children: m == null ? void 0 : m.map((f, b) => /* @__PURE__ */ i(w, { children: /* @__PURE__ */ r("div", { className: "list-item", children: [
116
- /* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
117
- /* @__PURE__ */ i("span", { children: f })
118
- ] }) }, b)) }),
119
- /* @__PURE__ */ i(
120
- v,
276
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ i(
277
+ A,
121
278
  {
122
- size: "medium",
123
- color: "gray",
124
- type: "button",
125
- btnType: "outline",
126
- onClick: x,
127
- children: d
128
- }
129
- )
130
- ] }),
131
- /* @__PURE__ */ i("img", { src: l })
132
- ]
133
- }
134
- );
135
- });
279
+ icon: e == null ? void 0 : e.icon,
280
+ text: e == null ? void 0 : e.text,
281
+ onSelectCard: () => h == null ? void 0 : h(e)
282
+ },
283
+ `field-of-interests-masonry-tag__${a + 1}`
284
+ )) : (x = Array.from("12345")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
285
+ j,
286
+ {},
287
+ `field-of-interests-masonry-tag-skeleton__${a + 1}`
288
+ )) }),
289
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, a) => /* @__PURE__ */ i(
290
+ L,
291
+ {
292
+ image: e == null ? void 0 : e.image,
293
+ imageComponent: e == null ? void 0 : e.imageComponent,
294
+ title: e == null ? void 0 : e.title,
295
+ description: e == null ? void 0 : e.description,
296
+ onSelectCard: () => w == null ? void 0 : w(e == null ? void 0 : e.uuid),
297
+ className: "wrapper__card"
298
+ },
299
+ `field-of-interests-with-tags-card__${a + 1}`
300
+ )) : (y = Array.from("12345")) == null ? void 0 : y.map((e, a) => /* @__PURE__ */ i(
301
+ R,
302
+ {},
303
+ `field-of-interests-with-tags-card-skeleton__${a + 1}`
304
+ )) })
305
+ ]
306
+ }
307
+ );
308
+ }
309
+ );
136
310
  export {
137
- N as default
311
+ K as default
138
312
  };