@lanaco/lnc-react-ui 4.0.222 → 4.0.223
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
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),h=require("react"),x=require("./Button.cjs"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./breakpoints-CcVm-gVm.cjs"),m=require("./index-B_ilx3wM.cjs"),p=u.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`,y=
|
|
85
|
+
`,y=h.forwardRef(({title:r,description:o,buttonText:i,imageUrl:l,backgroundColor:c="none",handleSelectCard:d=()=>{},handleButtonAction:g=()=>{},selectAction:s,LinkComponent:e},f)=>{const _=e||"a";return n.jsxs(p,{ref:f,backgroundImage:l,backgroundColor:c,onClick:d,as:_,...e?{to:`/${s}`}:{href:`/${s}`},children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),o&&n.jsx("div",{className:"section__description",children:o})]}),n.jsx(x,{text:i,onClick:t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),g()},borderRadius:"regular",color:"gray",className:"section__action"})]})}),v=u.styled.div`
|
|
86
86
|
display: flex;
|
|
87
87
|
flex-direction: column;
|
|
88
88
|
align-items: flex-start;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
|
|
100
100
|
& .section__items {
|
|
101
101
|
display: grid;
|
|
102
|
-
grid-template-columns: repeat(
|
|
102
|
+
grid-template-columns: repeat(${r=>r==null?void 0:r.numOfColumns}, 1fr);
|
|
103
103
|
gap: 1rem;
|
|
104
104
|
width: 100%;
|
|
105
105
|
}
|
|
@@ -122,4 +122,4 @@
|
|
|
122
122
|
grid-template-columns: 1fr;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
`,b=
|
|
125
|
+
`,b=h.forwardRef(({title:r,items:o,isLoading:i=!1,numOfColumns:l=4,onSelectCard:c=()=>{},onButtonAction:d=()=>{},LinkComponent:g},s)=>n.jsxs(v,{ref:s,numOfColumns:l,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(m.SuspenseBlogsSectionDetailed,{isLoading:i,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:o==null?void 0:o.map((e,f)=>n.jsx(y,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>c(e),handleButtonAction:()=>d(e),selectAction:e==null?void 0:e.selectAction,LinkComponent:g},`overlay-general-card__${f+1}`))})})]}));module.exports=b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
3
|
import u from "./Button.js";
|
|
4
|
-
import { s as
|
|
4
|
+
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { d as i } from "./breakpoints-ff0SIcV3.js";
|
|
6
6
|
import { S as p } from "./index-hC-E71GE.js";
|
|
7
|
-
const x =
|
|
7
|
+
const x = _.a`
|
|
8
8
|
text-decoration: none;
|
|
9
9
|
color: var(--gray-950);
|
|
10
10
|
display: flex;
|
|
@@ -88,7 +88,7 @@ const x = m.a`
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`, v =
|
|
91
|
+
`, v = m(
|
|
92
92
|
({
|
|
93
93
|
title: r,
|
|
94
94
|
description: n,
|
|
@@ -99,23 +99,23 @@ const x = m.a`
|
|
|
99
99
|
},
|
|
100
100
|
handleButtonAction: f = () => {
|
|
101
101
|
},
|
|
102
|
-
selectAction:
|
|
103
|
-
LinkComponent:
|
|
104
|
-
},
|
|
102
|
+
selectAction: a,
|
|
103
|
+
LinkComponent: e
|
|
104
|
+
}, g) => /* @__PURE__ */ h(
|
|
105
105
|
x,
|
|
106
106
|
{
|
|
107
|
-
ref:
|
|
107
|
+
ref: g,
|
|
108
108
|
backgroundImage: l,
|
|
109
109
|
backgroundColor: c,
|
|
110
110
|
onClick: d,
|
|
111
|
-
as:
|
|
112
|
-
...
|
|
113
|
-
to: `/${
|
|
111
|
+
as: e || "a",
|
|
112
|
+
...e ? {
|
|
113
|
+
to: `/${a}`
|
|
114
114
|
} : {
|
|
115
|
-
href: `/${
|
|
115
|
+
href: `/${a}`
|
|
116
116
|
},
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ h("div", { className: "section__text", children: [
|
|
119
119
|
r && /* @__PURE__ */ o("div", { className: "section__title", children: r }),
|
|
120
120
|
n && /* @__PURE__ */ o("div", { className: "section__description", children: n })
|
|
121
121
|
] }),
|
|
@@ -134,7 +134,7 @@ const x = m.a`
|
|
|
134
134
|
]
|
|
135
135
|
}
|
|
136
136
|
)
|
|
137
|
-
), y =
|
|
137
|
+
), y = _.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
flex-direction: column;
|
|
140
140
|
align-items: flex-start;
|
|
@@ -151,7 +151,7 @@ const x = m.a`
|
|
|
151
151
|
|
|
152
152
|
& .section__items {
|
|
153
153
|
display: grid;
|
|
154
|
-
grid-template-columns: repeat(
|
|
154
|
+
grid-template-columns: repeat(${(r) => r == null ? void 0 : r.numOfColumns}, 1fr);
|
|
155
155
|
gap: 1rem;
|
|
156
156
|
width: 100%;
|
|
157
157
|
}
|
|
@@ -174,24 +174,25 @@ const x = m.a`
|
|
|
174
174
|
grid-template-columns: 1fr;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
`, N =
|
|
177
|
+
`, N = m(
|
|
178
178
|
({
|
|
179
179
|
title: r,
|
|
180
180
|
items: n,
|
|
181
181
|
isLoading: s = !1,
|
|
182
|
-
|
|
182
|
+
numOfColumns: l = 4,
|
|
183
|
+
onSelectCard: c = () => {
|
|
183
184
|
},
|
|
184
|
-
onButtonAction:
|
|
185
|
+
onButtonAction: d = () => {
|
|
185
186
|
},
|
|
186
|
-
LinkComponent:
|
|
187
|
-
},
|
|
187
|
+
LinkComponent: f
|
|
188
|
+
}, a) => /* @__PURE__ */ h(y, { ref: a, numOfColumns: l, children: [
|
|
188
189
|
/* @__PURE__ */ o("div", { className: "section__title", children: r }),
|
|
189
190
|
/* @__PURE__ */ o(
|
|
190
191
|
p,
|
|
191
192
|
{
|
|
192
193
|
isLoading: s,
|
|
193
194
|
keyPrefix: "overlay-general-cards-skeleton",
|
|
194
|
-
children: /* @__PURE__ */ o("div", { className: "section__items", children: n == null ? void 0 : n.map((e,
|
|
195
|
+
children: /* @__PURE__ */ o("div", { className: "section__items", children: n == null ? void 0 : n.map((e, g) => /* @__PURE__ */ o(
|
|
195
196
|
v,
|
|
196
197
|
{
|
|
197
198
|
title: e == null ? void 0 : e.title,
|
|
@@ -199,12 +200,12 @@ const x = m.a`
|
|
|
199
200
|
imageUrl: e == null ? void 0 : e.imageUrl,
|
|
200
201
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
201
202
|
backgroundColor: e == null ? void 0 : e.backgroundColor,
|
|
202
|
-
handleSelectCard: () =>
|
|
203
|
-
handleButtonAction: () =>
|
|
203
|
+
handleSelectCard: () => c(e),
|
|
204
|
+
handleButtonAction: () => d(e),
|
|
204
205
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
205
|
-
LinkComponent:
|
|
206
|
+
LinkComponent: f
|
|
206
207
|
},
|
|
207
|
-
`overlay-general-card__${
|
|
208
|
+
`overlay-general-card__${g + 1}`
|
|
208
209
|
)) })
|
|
209
210
|
}
|
|
210
211
|
)
|