@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/index6.js CHANGED
@@ -1,144 +1,222 @@
1
- import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as $ } from "react";
3
- import { n as r } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
- import { M as o } from "./consts-DNVz1x1I.js";
5
- import v from "./Button.js";
6
- import { u as y } from "./useDetectMobile-BookNOsk.js";
7
- const M = r.div`
1
+ import { jsx as t, Fragment as u, jsxs as m } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import _ from "./Button.js";
4
+ import { n as d } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
+ import { m as o, t as c, k as g } from "./utils-DtEdJZWa.js";
6
+ import { u as w } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ import { M as f } from "./consts-DNVz1x1I.js";
8
+ const b = d.div`
8
9
  display: flex;
10
+ flex-direction: column;
11
+ align-items: flex-start;
9
12
  border-radius: 0.75rem;
10
- background-color: ${(e) => e.bgcolor || "transparent"};
11
- overflow: hidden;
12
- max-height: ${(e) => e.height || "22.5rem"};
13
- min-height: ${(e) => e.height || "22.5rem"};
14
- background-color: ${(e) => e.bgcolor || "transparent"};
15
-
16
- & button {
17
- width: fit-content;
18
- }
13
+ position: relative;
14
+ box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
19
15
 
20
- ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
21
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
16
+ grid-column: ${(r) => {
17
+ var e;
18
+ return ((e = r.position) == null ? void 0 : e.columnStart) || "1";
19
+ }} /
20
+ ${(r) => {
21
+ var e;
22
+ return ((e = r.position) == null ? void 0 : e.columnEnd) || "6";
23
+ }};
24
+ grid-row: ${(r) => {
25
+ var e;
26
+ return ((e = r.position) == null ? void 0 : e.rowStart) || "1";
27
+ }} /
28
+ ${(r) => {
29
+ var e;
30
+ return ((e = r.position) == null ? void 0 : e.rowEnd) || "1";
31
+ }};
22
32
 
23
- `}
24
-
25
- & img {
33
+ & .wrapper__image {
34
+ height: 100%;
35
+ width: 100%;
26
36
  object-fit: cover;
27
- max-width: ${(e) => e.imgW || "22.5rem"};
28
- min-width: ${(e) => e.imgW || "22.5rem"};
29
- max-height: ${(e) => e.height || "22.5rem"};
30
- min-height: ${(e) => e.height || "22.5rem"};
37
+ border-radius: 0.75rem;
31
38
  }
32
39
 
33
- ${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
34
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
35
-
36
- `}
40
+ & .wrapper__image--skeleton {
41
+ width: 24.5rem;
42
+ height: 30rem;
43
+ border-radius: 0.75rem;
44
+ background-color: ${o("-90deg")};
45
+ }
37
46
 
38
- @media (max-width: ${o + "px"}) {
39
- gap: 1.5rem;
47
+ & .wrapper__text {
48
+ display: flex;
40
49
  flex-direction: column;
41
- min-height: unset;
42
- max-height: unset;
50
+ align-items: flex-start;
51
+ padding: 1rem;
52
+ position: absolute;
53
+ bottom: 0;
54
+ left: 0;
55
+ gap: 0.75rem;
43
56
 
44
- & button {
45
- width: fit-content;
57
+ & .text__title {
58
+ color: var(--white, #ffffff);
59
+ font-size: 1rem;
60
+ font-style: normal;
61
+ font-weight: 500;
62
+ line-height: 1.5rem;
63
+ ${c(2)}
46
64
  }
47
65
 
48
- & img {
49
- max-width: 100%;
50
- min-width: 100%;
51
- max-height: ${(e) => e.imgHMob || "12.1rem"};
52
- min-height: ${(e) => e.imgHMob || "12.1rem"};
66
+ & .text__tag {
67
+ background-color: var(--warning-600, #d97706);
68
+ color: var(--white, #ffffff);
69
+ font-size: 0.875rem;
70
+ font-style: normal;
71
+ font-weight: 500;
72
+ line-height: 1.25rem;
73
+ padding: 0.25rem 0.5rem;
74
+
75
+ border-radius: 0.375rem;
76
+ background: var(--warning-600, #d97706);
53
77
  }
54
- }
55
- `, C = r.div`
56
- padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
57
- display: flex;
58
- gap: 2rem;
59
- flex-direction: ${(e) => e.isHorizontalContent === !0 ? "row" : "column"};
60
- flex: 1;
61
78
 
62
- ${(e) => e.isHorizontalContent === !0 && "justify-content: space-between;"}
79
+ & .text__description {
80
+ color: var(--white);
81
+ font-size: 0.875rem;
82
+ font-style: normal;
83
+ font-weight: 400;
84
+ line-height: 1.25rem;
85
+ ${c(2)}
86
+ }
63
87
 
64
- @media (max-width: ${o + "px"}) {
65
- padding: 0;
66
- flex-direction: column;
88
+ & .text__action {
89
+ background: var(--white);
90
+ color: var(--black);
91
+
92
+ &:hover {
93
+ background: var(--primary-500, #f59e0b);
94
+ color: var(--white);
95
+ }
96
+ }
97
+
98
+ & .text__title--skeleton {
99
+ background-color: ${o("-90deg")};
100
+ height: 1rem;
101
+ width: 9rem;
102
+ }
103
+
104
+ & .text__description--skeleton {
105
+ background-color: ${o("-90deg")};
106
+ height: 1rem;
107
+ width: 12rem;
108
+ }
109
+
110
+ & .text__action--skeleton {
111
+ background-color: ${o("-90deg")};
112
+ height: 2rem;
113
+ width: 9rem;
114
+ }
115
+ }
116
+ `, v = p(
117
+ ({
118
+ title: r,
119
+ image: e,
120
+ description: i,
121
+ actionText: n,
122
+ onSelectCard: a = () => {
123
+ },
124
+ className: l,
125
+ position: h,
126
+ tag: s
127
+ }, $) => {
128
+ const x = w();
129
+ return /* @__PURE__ */ t(u, { children: /* @__PURE__ */ m(
130
+ b,
131
+ {
132
+ theme: x,
133
+ className: l,
134
+ onClick: a,
135
+ position: h,
136
+ children: [
137
+ /* @__PURE__ */ t("img", { src: e, className: "wrapper__image" }),
138
+ /* @__PURE__ */ m("div", { className: "wrapper__text", children: [
139
+ s && /* @__PURE__ */ t("div", { className: "text__tag", children: s }),
140
+ /* @__PURE__ */ t("div", { className: "text__title", children: r }),
141
+ g(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
142
+ g(n) && /* @__PURE__ */ t(
143
+ _,
144
+ {
145
+ text: n,
146
+ onClick: a,
147
+ className: "text__action"
148
+ }
149
+ )
150
+ ] })
151
+ ]
152
+ }
153
+ ) });
67
154
  }
68
- `, H = r.div`
155
+ ), y = d.div`
69
156
  display: flex;
70
157
  flex-direction: column;
71
- gap: 0.25rem;
158
+ gap: 1.5rem;
72
159
 
73
- & .header-title {
74
- font-size: 1.75rem;
160
+ & .regular-title {
161
+ display: flex;
162
+ gap: 0.5rem;
163
+ align-items: center;
164
+ justify-content: space-between;
165
+ font-size: 1.5rem;
75
166
  font-weight: 600;
167
+ & .regular-title-text {
168
+ display: flex;
169
+ gap: 0.5rem;
170
+ align-items: center;
171
+ }
172
+
173
+ & i {
174
+ font-size: 1.5rem;
175
+ color: var(--primary-500, #f59e0b);
176
+ }
76
177
  }
77
178
 
78
- & .header-subtitle {
79
- color: var(--gray-950, #14161a);
80
- font-size: 1rem;
81
- font-weight: 500;
179
+ @media (max-width: ${f + "px"}) {
180
+ gap: 1.25rem;
181
+
182
+ & .regular-title {
183
+ font-size: 1.375rem;
184
+
185
+ &.center {
186
+ justify-content: center;
187
+ }
188
+ }
82
189
  }
190
+ `, k = d.div`
191
+ display: grid;
192
+ grid-template-columns: repeat(12, 1fr);
193
+ grid-template-rows: 15rem 15rem;
194
+ grid-column-gap: 1.25rem;
195
+ grid-row-gap: 1.25rem;
196
+ height: 30rem;
197
+ max-height: 30rem;
83
198
 
84
- @media (max-width: ${o + "px"}) {
199
+ @media (max-width: ${f + "px"}) {
200
+ display: flex;
85
201
  flex-direction: column;
202
+ gap: 1rem;
203
+ width: 100%;
204
+ height: 100%;
205
+ max-height: 100%;
206
+ padding: 0 1rem;
86
207
  }
87
- `, I = $((e, B) => {
88
- const {
89
- title: l,
90
- subtitle: h,
91
- buttonText: g,
92
- image: a,
93
- imagePosition: n = "right",
94
- noImageForMobile: m = !1,
95
- height: s,
96
- imageWidth: c,
97
- imageHeightMob: x,
98
- smallPadding: p = !1,
99
- isHorizontalContent: u = !1,
100
- backgroundColor: b,
101
- hasBorder: f = !1,
102
- onBannerClick: w
103
- } = e, d = y();
104
- return /* @__PURE__ */ t(
105
- M,
106
- {
107
- bgcolor: b,
108
- height: s,
109
- imgW: c,
110
- imgHMob: x,
111
- hasBorder: f,
112
- children: [
113
- n !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a }),
114
- /* @__PURE__ */ t(
115
- C,
116
- {
117
- isHorizontalContent: u,
118
- smallPadding: p,
119
- children: [
120
- /* @__PURE__ */ t(H, { children: [
121
- /* @__PURE__ */ i("div", { className: "header-title", children: l }),
122
- /* @__PURE__ */ i("div", { className: "header-subitle", children: h })
123
- ] }),
124
- /* @__PURE__ */ i(
125
- v,
126
- {
127
- size: "medium",
128
- color: "neutral",
129
- type: "button",
130
- onClick: w,
131
- children: g
132
- }
133
- )
134
- ]
135
- }
136
- ),
137
- n === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a })
138
- ]
139
- }
140
- );
141
- });
208
+ `, C = p(
209
+ ({ title: r, items: e, limit: i = 3 }, n) => /* @__PURE__ */ m(y, { children: [
210
+ /* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
211
+ /* @__PURE__ */ t(k, { limit: i, children: e && (e == null ? void 0 : e.map((a, l) => /* @__PURE__ */ t(
212
+ v,
213
+ {
214
+ ...a
215
+ },
216
+ `landing-page-masonry-general-card__${l + 1}`
217
+ ))) })
218
+ ] })
219
+ );
142
220
  export {
143
- I as default
221
+ C as default
144
222
  };
package/dist/index7.cjs CHANGED
@@ -1,65 +1,85 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./consts-dNz9tpt4.cjs"),u=require("./Button.cjs"),t=require("./utils-CE6bljYe.cjs"),h=s.newStyled.div`
2
- padding-bottom: 1.38rem;
3
- text-align: center;
4
- display: flex;
5
- justify-content: center;
6
- flex-direction: column;
7
- gap: 2rem;
8
- align-items: center;
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),c=require("./utils-CE6bljYe.cjs"),d=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),l=require("./consts-dNz9tpt4.cjs"),h=d.newStyled.div`
2
+ width: 7.5rem;
3
+ height: auto;
4
+ max-height: 7.5rem;
9
5
 
10
- & button {
11
- width: fit-content;
6
+ & .wrapper__image {
7
+ width: 7.5rem;
8
+ height: auto;
12
9
  }
13
10
 
14
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
15
- padding-bottom: 0;
11
+ @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
12
+ width: 4.5rem;
13
+ height: auto;
14
+ max-height: 4.5rem;
15
+
16
+ & .wrapper__image {
17
+ width: 4.5rem;
18
+ height: auto;
19
+ }
16
20
  }
17
- `,g=s.newStyled.div`
18
- text-align: center;
21
+ `,_=d.newStyled.div`
22
+ width: 7.5rem;
23
+ height: 7.5rem;
24
+ background: ${c.linearGradientAnimation("-90deg")};
25
+
26
+ @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
27
+ width: 4.5rem;
28
+ height: 4.5rem;
29
+ }
30
+ `,g=s.forwardRef(({imageComponent:t,image:n,onSelectCard:a},i)=>r.jsx(h,{children:c.isDefined(t)?t:r.jsx("img",{src:n,className:"wrapper__image",onSelectCard:a})})),w=s.forwardRef(({},t)=>r.jsx(_,{})),m=d.newStyled.div`
19
31
  display: flex;
20
- justify-content: center;
21
32
  flex-direction: column;
22
- gap: 0.25rem;
33
+ align-items: flex-start;
34
+ gap: 2rem;
23
35
 
24
- & .header-title {
25
- font-size: 1.5rem;
26
- font-weight: 600;
27
- }
36
+ & .wrapper__heading {
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: 1rem;
40
+ text-align: center;
28
41
 
29
- & .header-subtitle {
30
- color: var(--gray-600, #676e79);
31
- font-size: 1rem;
32
- font-weight: 500;
33
- }
42
+ & .wrapper__title {
43
+ color: var(--gray-950, #14161a);
44
+ text-align: center;
45
+ font-size: 1.5rem;
46
+ font-style: normal;
47
+ font-weight: 600;
48
+ line-height: 2rem;
49
+ letter-spacing: -0.47px;
50
+ }
34
51
 
35
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
52
+ & .wrapper__subtitle {
53
+ color: var(---gray-600, #676e79);
54
+ font-size: 0.875rem;
55
+ font-style: normal;
56
+ font-weight: 400;
57
+ line-height: 1.25rem;
58
+ letter-spacing: 0.25px;
59
+ }
36
60
  }
37
- `,p=s.newStyled.div`
38
- text-align: center;
39
- display: flex;
40
- flex-direction: column;
41
- justify-content: center;
42
- gap: 0.75rem;
43
- font-size: 0.875rem;
44
- font-weight: 500;
45
- align-items: center;
46
61
 
47
- & .list-item {
62
+ & .wrapper__content {
48
63
  display: flex;
64
+ justify-content: center;
49
65
  align-items: center;
66
+ gap: 3rem;
67
+ align-self: stretch;
50
68
 
51
- & .mng {
52
- font-size: 1.25rem;
53
- color: var(--success-600);
69
+ & .wrapper__item {
70
+ max-width: 7.5rem;
54
71
  }
55
72
  }
56
73
 
57
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
58
- & .list-item {
59
- flex-direction: column;
60
- text-align: center;
61
- justify-content: center;
62
- gap: 0;
74
+ @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
75
+ & .wrapper__content {
76
+ align-content: center;
77
+ gap: 1rem;
78
+ flex-wrap: wrap;
79
+
80
+ & .wrapper__item {
81
+ max-width: 4 0.5rem;
82
+ }
63
83
  }
64
84
  }
65
- `,j=o.forwardRef((a,y)=>{const{title:i,subtitle:n,buttonText:d,list:r,fallback:m=()=>{},onBannerClick:l}=a;return e.jsxs(h,{children:[(t.isDefined(i)||t.isDefined(n))&&e.jsxs(g,{children:[t.isDefined(i)&&e.jsx("div",{className:"header-title",children:i}),t.isDefined(n)&&e.jsx("div",{className:"header-subitle",children:n})]}),e.jsx(p,{children:r==null?void 0:r.map((x,f)=>e.jsx(o.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:x})]})},f))}),e.jsx(u,{size:"medium",color:"neutral",type:"button",onClick:()=>t.isDefined(l)?l():m(),children:d})]})});module.exports=j;
85
+ `,x=s.forwardRef(({title:t,subtitle:n,items:a=[],onSelectCard:i=()=>{}},f)=>{var o;return r.jsx(m,{children:r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n}),r.jsx("div",{className:"wrapper__content",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,p)=>r.jsx(g,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid),className:"wrapper__item"},`brand-hit-card__${p+1}`)):(o=Array.from("12345"))==null?void 0:o.map((e,p)=>r.jsx(w,{},`brand-hit-card-skeleton__${p+1}`))})]})})});module.exports=x;
package/dist/index7.js CHANGED
@@ -1,104 +1,125 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as h, Fragment as x } from "react";
3
- import { n as o } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
- import { M as a } from "./consts-DNVz1x1I.js";
5
- import g from "./Button.js";
6
- import { l as t } from "./utils-DtEdJZWa.js";
7
- const u = o.div`
8
- padding-bottom: 1.38rem;
9
- text-align: center;
10
- display: flex;
11
- justify-content: center;
12
- flex-direction: column;
13
- gap: 2rem;
14
- align-items: center;
1
+ import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
+ import { forwardRef as o } from "react";
3
+ import { m as c, l as g } from "./utils-DtEdJZWa.js";
4
+ import { n as d } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
+ import { M as l } from "./consts-DNVz1x1I.js";
6
+ const _ = d.div`
7
+ width: 7.5rem;
8
+ height: auto;
9
+ max-height: 7.5rem;
15
10
 
16
- & button {
17
- width: fit-content;
11
+ & .wrapper__image {
12
+ width: 7.5rem;
13
+ height: auto;
18
14
  }
19
15
 
20
- @media (max-width: ${a + "px"}) {
21
- padding-bottom: 0;
16
+ @media (max-width: ${l + "px"}) {
17
+ width: 4.5rem;
18
+ height: auto;
19
+ max-height: 4.5rem;
20
+
21
+ & .wrapper__image {
22
+ width: 4.5rem;
23
+ height: auto;
24
+ }
22
25
  }
23
- `, y = o.div`
24
- text-align: center;
26
+ `, s = d.div`
27
+ width: 7.5rem;
28
+ height: 7.5rem;
29
+ background: ${c("-90deg")};
30
+
31
+ @media (max-width: ${l + "px"}) {
32
+ width: 4.5rem;
33
+ height: 4.5rem;
34
+ }
35
+ `, w = o(
36
+ ({ imageComponent: t, image: n, onSelectCard: e }, i) => /* @__PURE__ */ a(_, { children: g(t) ? t : /* @__PURE__ */ a(
37
+ "img",
38
+ {
39
+ src: n,
40
+ className: "wrapper__image",
41
+ onSelectCard: e
42
+ }
43
+ ) })
44
+ ), f = o(({}, t) => /* @__PURE__ */ a(s, {})), x = d.div`
25
45
  display: flex;
26
- justify-content: center;
27
46
  flex-direction: column;
28
- gap: 0.25rem;
47
+ align-items: flex-start;
48
+ gap: 2rem;
29
49
 
30
- & .header-title {
31
- font-size: 1.5rem;
32
- font-weight: 600;
33
- }
50
+ & .wrapper__heading {
51
+ display: flex;
52
+ flex-direction: column;
53
+ gap: 1rem;
54
+ text-align: center;
34
55
 
35
- & .header-subtitle {
36
- color: var(--gray-600, #676e79);
37
- font-size: 1rem;
38
- font-weight: 500;
39
- }
56
+ & .wrapper__title {
57
+ color: var(--gray-950, #14161a);
58
+ text-align: center;
59
+ font-size: 1.5rem;
60
+ font-style: normal;
61
+ font-weight: 600;
62
+ line-height: 2rem;
63
+ letter-spacing: -0.47px;
64
+ }
40
65
 
41
- @media (max-width: ${a + "px"}) {
66
+ & .wrapper__subtitle {
67
+ color: var(---gray-600, #676e79);
68
+ font-size: 0.875rem;
69
+ font-style: normal;
70
+ font-weight: 400;
71
+ line-height: 1.25rem;
72
+ letter-spacing: 0.25px;
73
+ }
42
74
  }
43
- `, b = o.div`
44
- text-align: center;
45
- display: flex;
46
- flex-direction: column;
47
- justify-content: center;
48
- gap: 0.75rem;
49
- font-size: 0.875rem;
50
- font-weight: 500;
51
- align-items: center;
52
75
 
53
- & .list-item {
76
+ & .wrapper__content {
54
77
  display: flex;
78
+ justify-content: center;
55
79
  align-items: center;
80
+ gap: 3rem;
81
+ align-self: stretch;
56
82
 
57
- & .mng {
58
- font-size: 1.25rem;
59
- color: var(--success-600);
83
+ & .wrapper__item {
84
+ max-width: 7.5rem;
60
85
  }
61
86
  }
62
87
 
63
- @media (max-width: ${a + "px"}) {
64
- & .list-item {
65
- flex-direction: column;
66
- text-align: center;
67
- justify-content: center;
68
- gap: 0;
88
+ @media (max-width: ${l + "px"}) {
89
+ & .wrapper__content {
90
+ align-content: center;
91
+ gap: 1rem;
92
+ flex-wrap: wrap;
93
+
94
+ & .wrapper__item {
95
+ max-width: 4 0.5rem;
96
+ }
69
97
  }
70
98
  }
71
- `, N = h((m, w) => {
72
- const {
73
- title: i,
74
- subtitle: n,
75
- buttonText: s,
76
- list: r,
77
- fallback: d = () => {
78
- },
79
- onBannerClick: c
80
- } = m;
81
- return /* @__PURE__ */ l(u, { children: [
82
- (t(i) || t(n)) && /* @__PURE__ */ l(y, { children: [
83
- t(i) && /* @__PURE__ */ e("div", { className: "header-title", children: i }),
84
- t(n) && /* @__PURE__ */ e("div", { className: "header-subitle", children: n })
85
- ] }),
86
- /* @__PURE__ */ e(b, { children: r == null ? void 0 : r.map((f, p) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ l("div", { className: "list-item", children: [
87
- /* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
88
- /* @__PURE__ */ e("span", { children: f })
89
- ] }) }, p)) }),
90
- /* @__PURE__ */ e(
91
- g,
92
- {
93
- size: "medium",
94
- color: "neutral",
95
- type: "button",
96
- onClick: () => t(c) ? c() : d(),
97
- children: s
98
- }
99
- )
100
- ] });
101
- });
99
+ `, k = o(
100
+ ({ title: t, subtitle: n, items: e = [], onSelectCard: i = () => {
101
+ } }, u) => {
102
+ var h;
103
+ return /* @__PURE__ */ a(x, { children: /* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
104
+ t && /* @__PURE__ */ a("div", { className: "wrapper__title", children: t }),
105
+ n && /* @__PURE__ */ a("div", { className: "wrapper__subtitle", children: n }),
106
+ /* @__PURE__ */ a("div", { className: "wrapper__content", children: e && (e == null ? void 0 : e.length) > 0 ? e == null ? void 0 : e.map((r, p) => /* @__PURE__ */ a(
107
+ w,
108
+ {
109
+ image: r == null ? void 0 : r.image,
110
+ imageComponent: r == null ? void 0 : r.imageComponent,
111
+ onSelectCard: () => i == null ? void 0 : i(r == null ? void 0 : r.uuid),
112
+ className: "wrapper__item"
113
+ },
114
+ `brand-hit-card__${p + 1}`
115
+ )) : (h = Array.from("12345")) == null ? void 0 : h.map((r, p) => /* @__PURE__ */ a(
116
+ f,
117
+ {},
118
+ `brand-hit-card-skeleton__${p + 1}`
119
+ )) })
120
+ ] }) });
121
+ }
122
+ );
102
123
  export {
103
- N as default
124
+ k as default
104
125
  };