@lanaco/lnc-react-ui 4.0.226 → 4.0.227
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/BannerSectionCarousel.cjs +3 -3
- package/dist/BannerSectionCarousel.js +18 -11
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +19 -35
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +40 -58
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +2 -2
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +76 -146
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +1 -1
- package/dist/ReviewsSection.cjs +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +14 -14
- package/dist/SalesCampaignsSection.js +299 -330
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +54 -100
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +64 -67
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/index-BXT1eY2D.js +753 -0
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/index-D3QZziO_.cjs +368 -0
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/style-CQdEALKR.cjs +59 -0
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as s, jsx as t, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, Suspense as G } from "react";
|
|
3
3
|
import { u as N } from "./useDetectMobile-B0Jog4jQ.js";
|
|
4
4
|
import { R as A } from "./style-D54KOzZj.js";
|
|
5
|
-
import { p as
|
|
6
|
-
import
|
|
5
|
+
import { p as R, G as T, l as h } from "./utils-MoGhNMmj.js";
|
|
6
|
+
import j from "./Button.js";
|
|
7
7
|
import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
8
|
-
import { d as
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
8
|
+
import { d as u } from "./breakpoints-BubDitvo.js";
|
|
9
|
+
import { S as z, e as L, a as C } from "./style-BFPpppS9.js";
|
|
10
|
+
const W = f.div`
|
|
11
11
|
display: grid;
|
|
12
|
-
grid-template-columns: ${(
|
|
12
|
+
grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
|
|
13
13
|
gap: 1.25rem;
|
|
14
14
|
|
|
15
|
-
@media ${
|
|
15
|
+
@media ${u("M")} {
|
|
16
16
|
grid-template-columns: repeat(2, 1fr);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@media ${
|
|
19
|
+
@media ${u("S")} {
|
|
20
20
|
grid-template-columns: repeat(2, 1fr);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@media ${
|
|
23
|
+
@media ${u("XS")} {
|
|
24
24
|
grid-template-columns: repeat(1, 1fr);
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
26
|
+
`, I = f.a`
|
|
27
27
|
text-decoration: none;
|
|
28
28
|
color: var(--gray-950);
|
|
29
29
|
display: flex;
|
|
@@ -83,163 +83,93 @@ const z = f.div`
|
|
|
83
83
|
-webkit-transform: rotate(315deg);
|
|
84
84
|
transform: rotate(315deg);
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`, v = w((r, o) => {
|
|
87
87
|
const {
|
|
88
|
-
image:
|
|
89
|
-
text:
|
|
90
|
-
price:
|
|
91
|
-
currency:
|
|
92
|
-
onSelectGiftCard:
|
|
88
|
+
image: n,
|
|
89
|
+
text: l,
|
|
90
|
+
price: a,
|
|
91
|
+
currency: i,
|
|
92
|
+
onSelectGiftCard: p = () => {
|
|
93
93
|
},
|
|
94
|
-
selectAction:
|
|
95
|
-
LinkComponent:
|
|
96
|
-
} =
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
-
|
|
94
|
+
selectAction: m,
|
|
95
|
+
LinkComponent: d
|
|
96
|
+
} = r;
|
|
97
|
+
return /* @__PURE__ */ s(
|
|
98
|
+
I,
|
|
99
99
|
{
|
|
100
|
-
ref:
|
|
100
|
+
ref: o,
|
|
101
101
|
className: "simple-gift-card",
|
|
102
|
-
onClick: () =>
|
|
103
|
-
as:
|
|
104
|
-
...
|
|
105
|
-
to: `${
|
|
102
|
+
onClick: () => p(a),
|
|
103
|
+
as: d || "a",
|
|
104
|
+
...d ? {
|
|
105
|
+
to: `${m}`
|
|
106
106
|
} : {
|
|
107
|
-
href: `${
|
|
107
|
+
href: `${m}`
|
|
108
108
|
},
|
|
109
109
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ s(M, { children: [
|
|
111
|
+
/* @__PURE__ */ t("div", { className: "price-tag", children: a && i && `${R(a)} ${T(i)}` }),
|
|
112
|
+
/* @__PURE__ */ t("img", { src: n })
|
|
113
113
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ t("div", { className: "text-wrap", children: l })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
|
-
}),
|
|
119
|
-
@media ${
|
|
118
|
+
}), B = f(z)`
|
|
119
|
+
@media ${u("S")} {
|
|
120
120
|
flex-direction: column;
|
|
121
121
|
|
|
122
122
|
& > div {
|
|
123
123
|
flex-direction: column;
|
|
124
|
-
|
|
125
|
-
& > div {
|
|
126
|
-
${T}
|
|
127
|
-
}
|
|
128
124
|
}
|
|
129
125
|
}
|
|
130
|
-
`,
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
)
|
|
141
|
-
] }, `${t}-1`),
|
|
142
|
-
/* @__PURE__ */ i(
|
|
143
|
-
h,
|
|
144
|
-
{
|
|
145
|
-
alignItems: "center",
|
|
146
|
-
noGradient: !0,
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
149
|
-
/* @__PURE__ */ r(
|
|
150
|
-
o,
|
|
151
|
-
{
|
|
152
|
-
height: "1.25rem",
|
|
153
|
-
borderRadius: "0.75rem",
|
|
154
|
-
width: "5rem"
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
`${t}-2`
|
|
160
|
-
),
|
|
161
|
-
/* @__PURE__ */ i(
|
|
162
|
-
h,
|
|
163
|
-
{
|
|
164
|
-
alignItems: "center",
|
|
165
|
-
noGradient: !0,
|
|
166
|
-
children: [
|
|
167
|
-
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
168
|
-
/* @__PURE__ */ r(
|
|
169
|
-
o,
|
|
170
|
-
{
|
|
171
|
-
height: "1.25rem",
|
|
172
|
-
borderRadius: "0.75rem",
|
|
173
|
-
width: "5rem"
|
|
174
|
-
}
|
|
175
|
-
)
|
|
176
|
-
]
|
|
177
|
-
},
|
|
178
|
-
`${t}-3`
|
|
179
|
-
),
|
|
180
|
-
/* @__PURE__ */ i(
|
|
181
|
-
h,
|
|
182
|
-
{
|
|
183
|
-
alignItems: "center",
|
|
184
|
-
noGradient: !0,
|
|
185
|
-
children: [
|
|
186
|
-
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
187
|
-
/* @__PURE__ */ r(
|
|
188
|
-
o,
|
|
189
|
-
{
|
|
190
|
-
height: "1.25rem",
|
|
191
|
-
borderRadius: "0.75rem",
|
|
192
|
-
width: "5rem"
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
]
|
|
196
|
-
},
|
|
197
|
-
`${t}-4`
|
|
198
|
-
)
|
|
199
|
-
] }), U = ({
|
|
200
|
-
keyPrefix: t,
|
|
201
|
-
isLoading: c = !1,
|
|
202
|
-
fallbackComponent: a = /* @__PURE__ */ r(k, {}),
|
|
203
|
-
children: m
|
|
204
|
-
}) => /* @__PURE__ */ r(R, { fallbackComponent: a, children: c === !0 ? /* @__PURE__ */ r(E, { keyPrefix: t }) : m }), V = S((t, c) => {
|
|
126
|
+
`, D = ({ keyPrefix: r }) => /* @__PURE__ */ t(B, { children: [1, 2, 3, 4].map((o) => /* @__PURE__ */ s(L, { alignItems: "center", children: [
|
|
127
|
+
/* @__PURE__ */ t(C, { width: "100%", height: "11rem", borderRadius: "0.75rem" }),
|
|
128
|
+
/* @__PURE__ */ t(C, { height: "1.25rem", borderRadius: "0.75rem", width: "5rem" })
|
|
129
|
+
] }, `${r}-${o}`)) }), E = ({
|
|
130
|
+
keyPrefix: r,
|
|
131
|
+
isLoading: o = !1,
|
|
132
|
+
fallbackComponent: n = /* @__PURE__ */ t($, {}),
|
|
133
|
+
children: l
|
|
134
|
+
}) => /* @__PURE__ */ t(G, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ t(D, { keyPrefix: r }) : l }), Q = w((r, o) => {
|
|
205
135
|
const {
|
|
206
|
-
icon:
|
|
207
|
-
title:
|
|
208
|
-
buttonLink:
|
|
209
|
-
items:
|
|
210
|
-
isLoading:
|
|
211
|
-
buttonText:
|
|
212
|
-
limit:
|
|
213
|
-
onSelectCard:
|
|
136
|
+
icon: n,
|
|
137
|
+
title: l,
|
|
138
|
+
buttonLink: a,
|
|
139
|
+
items: i,
|
|
140
|
+
isLoading: p = !1,
|
|
141
|
+
buttonText: m,
|
|
142
|
+
limit: d = 4,
|
|
143
|
+
onSelectCard: g = () => {
|
|
214
144
|
},
|
|
215
|
-
onButtonAction:
|
|
145
|
+
onButtonAction: S = () => {
|
|
216
146
|
},
|
|
217
|
-
LinkComponent:
|
|
218
|
-
} =
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
|
|
223
|
-
/* @__PURE__ */
|
|
147
|
+
LinkComponent: b
|
|
148
|
+
} = r, y = N();
|
|
149
|
+
return /* @__PURE__ */ s(A, { ref: o, children: [
|
|
150
|
+
/* @__PURE__ */ s("div", { className: "regular-title", children: [
|
|
151
|
+
/* @__PURE__ */ s("div", { className: "regular-title-text", children: [
|
|
152
|
+
h(n) && /* @__PURE__ */ t("i", { className: n }),
|
|
153
|
+
/* @__PURE__ */ t("span", { children: l })
|
|
224
154
|
] }),
|
|
225
|
-
|
|
226
|
-
|
|
155
|
+
h(m) && h(a) && !p && /* @__PURE__ */ t(
|
|
156
|
+
j,
|
|
227
157
|
{
|
|
228
158
|
type: "button",
|
|
229
159
|
btnType: "tinted",
|
|
230
160
|
color: "neutral",
|
|
231
161
|
onClick: (e) => {
|
|
232
|
-
var
|
|
233
|
-
(
|
|
162
|
+
var c;
|
|
163
|
+
(c = e == null ? void 0 : e.target) == null || c.blur(), S(a);
|
|
234
164
|
},
|
|
235
165
|
borderRadius: "curved",
|
|
236
166
|
className: "button-link",
|
|
237
|
-
children:
|
|
167
|
+
children: m
|
|
238
168
|
}
|
|
239
169
|
)
|
|
240
170
|
] }),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
|
|
171
|
+
/* @__PURE__ */ t(E, { isLoading: p, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ t(W, { limit: d, children: y === !0 ? i == null ? void 0 : i.map((e, c) => /* @__PURE__ */ t(
|
|
172
|
+
v,
|
|
243
173
|
{
|
|
244
174
|
text: e == null ? void 0 : e.text,
|
|
245
175
|
price: e == null ? void 0 : e.priceTo,
|
|
@@ -247,12 +177,12 @@ const z = f.div`
|
|
|
247
177
|
image: e == null ? void 0 : e.imageUrl,
|
|
248
178
|
uuid: e == null ? void 0 : e.uuid,
|
|
249
179
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
250
|
-
onSelectGiftCard: (
|
|
251
|
-
LinkComponent:
|
|
180
|
+
onSelectGiftCard: (k) => g(e),
|
|
181
|
+
LinkComponent: b
|
|
252
182
|
},
|
|
253
|
-
|
|
254
|
-
)) :
|
|
255
|
-
|
|
183
|
+
c
|
|
184
|
+
)) : i == null ? void 0 : i.slice(0, d).map((e, c) => /* @__PURE__ */ t(
|
|
185
|
+
v,
|
|
256
186
|
{
|
|
257
187
|
text: e == null ? void 0 : e.text,
|
|
258
188
|
price: e == null ? void 0 : e.priceTo,
|
|
@@ -260,13 +190,13 @@ const z = f.div`
|
|
|
260
190
|
image: e == null ? void 0 : e.imageUrl,
|
|
261
191
|
uuid: e == null ? void 0 : e.uuid,
|
|
262
192
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
263
|
-
onSelectGiftCard: (
|
|
264
|
-
LinkComponent:
|
|
193
|
+
onSelectGiftCard: (k) => g(e),
|
|
194
|
+
LinkComponent: b
|
|
265
195
|
},
|
|
266
|
-
|
|
196
|
+
c
|
|
267
197
|
)) }) })
|
|
268
198
|
] });
|
|
269
199
|
});
|
|
270
200
|
export {
|
|
271
|
-
|
|
201
|
+
Q as default
|
|
272
202
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),j=require("./Button.cjs"),l=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),i=require("./utils-CITgSxXe.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),y=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-CQdEALKR.cjs"),v=l.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
width: 24.5rem;
|
|
59
59
|
height: 30rem;
|
|
60
60
|
border-radius: 0.75rem;
|
|
61
|
-
background-color: ${
|
|
61
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
& .wrapper__text {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
font-style: normal;
|
|
79
79
|
font-weight: 500;
|
|
80
80
|
line-height: 1.5rem;
|
|
81
|
-
${
|
|
81
|
+
${i.truncateTextInRows(2)}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
& .text__tag {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
font-style: normal;
|
|
101
101
|
font-weight: 400;
|
|
102
102
|
line-height: 1.25rem;
|
|
103
|
-
${
|
|
103
|
+
${i.truncateTextInRows(2)}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
& .text__action {
|
|
@@ -117,19 +117,19 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
& .text__title--skeleton {
|
|
120
|
-
background-color: ${
|
|
120
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
121
121
|
height: 1rem;
|
|
122
122
|
width: 9rem;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
& .text__description--skeleton {
|
|
126
|
-
background-color: ${
|
|
126
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
127
127
|
height: 1rem;
|
|
128
128
|
width: 12rem;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
& .text__action--skeleton {
|
|
132
|
-
background-color: ${
|
|
132
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
133
133
|
height: 2rem;
|
|
134
134
|
width: 9rem;
|
|
135
135
|
}
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
max-height: 14.5rem;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
`,k=
|
|
145
|
+
`,k=x.forwardRef(({title:r,imageUrl:t,description:o,buttonText:a,onSelectCard:c=()=>{},className:m,position:g,tag:s,backgroundColor:h,borderColor:u,buttonLink:p,LinkComponent:f},w)=>{const _=f||"a",b=y.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(v,{ref:w,theme:b,className:m,position:g,backgroundColor:h,onClick:c,as:_,borderColor:u,...f?{to:`/${p}`}:{href:`/${p}`},children:[e.jsx("img",{src:t,className:"wrapper__image",loading:"lazy"}),e.jsxs("div",{className:"wrapper__text",children:[s&&e.jsx("div",{className:"text__tag",children:s}),e.jsx("div",{className:"text__title",children:r}),i.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"text__description",children:o}),i.isDefinedNotEmptyString(a)&&e.jsx(j,{text:a,className:"text__action",color:"gray"})]})]})})}),S=l.styled.div`
|
|
146
146
|
display: flex;
|
|
147
147
|
flex-direction: column;
|
|
148
148
|
gap: 1.5rem;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
height: 100%;
|
|
194
194
|
max-height: 100%;
|
|
195
195
|
}
|
|
196
|
-
`,C=l.styled(n.
|
|
196
|
+
`,C=l.styled(n.SkeletonAnimationContainer)`
|
|
197
197
|
@media ${d.down("S")} {
|
|
198
198
|
flex-direction: column;
|
|
199
199
|
|
|
@@ -207,4 +207,4 @@
|
|
|
207
207
|
flex-direction: column;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
210
|
+
`,R=({keyPrefix:r})=>e.jsxs(C,{children:[e.jsx(n.SkeletonColumnContainer,{children:e.jsx(n.SkeletonRect,{height:"31.25rem",className:"skeleton__big",width:"100%"},`${r}-1`)}),e.jsxs(n.SkeletonColumnContainer,{children:[e.jsxs(n.SkeletonContainer,{children:[e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-2`),e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-3`)]}),e.jsxs(n.SkeletonContainer,{children:[e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-4`),e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-5`)]})]})]}),N=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=e.jsx(e.Fragment,{}),children:a})=>e.jsx(x.Suspense,{fallbackComponent:o,children:t===!0?e.jsx(R,{keyPrefix:r}):a}),G=x.forwardRef(({title:r,items:t,isLoading:o=!1,limit:a=3,onSelectCard:c=()=>{},LinkComponent:m},g)=>e.jsxs(S,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx(N,{isLoading:o,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx($,{limit:a,children:t&&(t==null?void 0:t.map((s,h)=>e.jsx(k,{...s,onSelectCard:()=>c(s),LinkComponent:m},`landing-page-masonry-general-card__${h+1}`)))})})]}));module.exports=G;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r, Fragment as v, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as $, Suspense as N } from "react";
|
|
3
|
-
import
|
|
3
|
+
import z from "./Button.js";
|
|
4
4
|
import { s as d } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
5
|
-
import { w as s, n as
|
|
5
|
+
import { w as s, n as x, l as w } from "./utils-MoGhNMmj.js";
|
|
6
6
|
import { d as m } from "./breakpoints-BubDitvo.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { S as
|
|
9
|
-
const
|
|
7
|
+
import { u as G } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { S as j, e as _, a as l, c as b } from "./style-BFPpppS9.js";
|
|
9
|
+
const M = d.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
@@ -98,7 +98,7 @@ const j = d.a`
|
|
|
98
98
|
font-style: normal;
|
|
99
99
|
font-weight: 500;
|
|
100
100
|
line-height: 1.5rem;
|
|
101
|
-
${
|
|
101
|
+
${x(2)}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
& .text__tag {
|
|
@@ -120,7 +120,7 @@ const j = d.a`
|
|
|
120
120
|
font-style: normal;
|
|
121
121
|
font-weight: 400;
|
|
122
122
|
line-height: 1.25rem;
|
|
123
|
-
${
|
|
123
|
+
${x(2)}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
& .text__action {
|
|
@@ -162,12 +162,12 @@ const j = d.a`
|
|
|
162
162
|
max-height: 14.5rem;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`, R = $(
|
|
166
166
|
({
|
|
167
167
|
title: e,
|
|
168
168
|
imageUrl: t,
|
|
169
|
-
description:
|
|
170
|
-
buttonText:
|
|
169
|
+
description: i,
|
|
170
|
+
buttonText: o,
|
|
171
171
|
onSelectCard: c = () => {
|
|
172
172
|
},
|
|
173
173
|
className: g,
|
|
@@ -175,12 +175,12 @@ const j = d.a`
|
|
|
175
175
|
tag: n,
|
|
176
176
|
backgroundColor: p,
|
|
177
177
|
borderColor: y,
|
|
178
|
-
buttonLink:
|
|
179
|
-
LinkComponent:
|
|
178
|
+
buttonLink: f,
|
|
179
|
+
LinkComponent: u
|
|
180
180
|
}, k) => {
|
|
181
|
-
const S =
|
|
181
|
+
const S = u || "a", C = G();
|
|
182
182
|
return /* @__PURE__ */ r(v, { children: /* @__PURE__ */ a(
|
|
183
|
-
|
|
183
|
+
M,
|
|
184
184
|
{
|
|
185
185
|
ref: k,
|
|
186
186
|
theme: C,
|
|
@@ -190,21 +190,21 @@ const j = d.a`
|
|
|
190
190
|
onClick: c,
|
|
191
191
|
as: S,
|
|
192
192
|
borderColor: y,
|
|
193
|
-
...
|
|
194
|
-
to: `/${
|
|
193
|
+
...u ? {
|
|
194
|
+
to: `/${f}`
|
|
195
195
|
} : {
|
|
196
|
-
href: `/${
|
|
196
|
+
href: `/${f}`
|
|
197
197
|
},
|
|
198
198
|
children: [
|
|
199
199
|
/* @__PURE__ */ r("img", { src: t, className: "wrapper__image", loading: "lazy" }),
|
|
200
200
|
/* @__PURE__ */ a("div", { className: "wrapper__text", children: [
|
|
201
201
|
n && /* @__PURE__ */ r("div", { className: "text__tag", children: n }),
|
|
202
202
|
/* @__PURE__ */ r("div", { className: "text__title", children: e }),
|
|
203
|
-
w(
|
|
204
|
-
w(
|
|
205
|
-
|
|
203
|
+
w(i) && /* @__PURE__ */ r("div", { className: "text__description", children: i }),
|
|
204
|
+
w(o) && /* @__PURE__ */ r(
|
|
205
|
+
z,
|
|
206
206
|
{
|
|
207
|
-
text:
|
|
207
|
+
text: o,
|
|
208
208
|
className: "text__action",
|
|
209
209
|
color: "gray"
|
|
210
210
|
}
|
|
@@ -214,7 +214,7 @@ const j = d.a`
|
|
|
214
214
|
}
|
|
215
215
|
) });
|
|
216
216
|
}
|
|
217
|
-
),
|
|
217
|
+
), E = d.div`
|
|
218
218
|
display: flex;
|
|
219
219
|
flex-direction: column;
|
|
220
220
|
gap: 1.5rem;
|
|
@@ -247,7 +247,7 @@ const j = d.a`
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
`,
|
|
250
|
+
`, W = d.div`
|
|
251
251
|
display: grid;
|
|
252
252
|
grid-template-columns: ${() => "repeat(12, minmax(0, 1fr))"};
|
|
253
253
|
|
|
@@ -265,7 +265,7 @@ const j = d.a`
|
|
|
265
265
|
height: 100%;
|
|
266
266
|
max-height: 100%;
|
|
267
267
|
}
|
|
268
|
-
`,
|
|
268
|
+
`, A = d(j)`
|
|
269
269
|
@media ${m("S")} {
|
|
270
270
|
flex-direction: column;
|
|
271
271
|
|
|
@@ -279,48 +279,49 @@ const j = d.a`
|
|
|
279
279
|
flex-direction: column;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
`, T = ({ keyPrefix: e }) => /* @__PURE__ */ a(
|
|
283
|
-
/* @__PURE__ */ r(
|
|
282
|
+
`, T = ({ keyPrefix: e }) => /* @__PURE__ */ a(A, { children: [
|
|
283
|
+
/* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(
|
|
284
284
|
l,
|
|
285
285
|
{
|
|
286
286
|
height: "31.25rem",
|
|
287
|
-
className: "skeleton__big"
|
|
287
|
+
className: "skeleton__big",
|
|
288
|
+
width: "100%"
|
|
288
289
|
},
|
|
289
290
|
`${e}-1`
|
|
290
291
|
) }),
|
|
291
|
-
/* @__PURE__ */ a(
|
|
292
|
-
/* @__PURE__ */ a(
|
|
293
|
-
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-2`),
|
|
294
|
-
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-3`)
|
|
292
|
+
/* @__PURE__ */ a(_, { children: [
|
|
293
|
+
/* @__PURE__ */ a(b, { children: [
|
|
294
|
+
/* @__PURE__ */ r(l, { width: "100%", height: "15rem" }, `${e}-2`),
|
|
295
|
+
/* @__PURE__ */ r(l, { width: "100%", height: "15rem" }, `${e}-3`)
|
|
295
296
|
] }),
|
|
296
|
-
/* @__PURE__ */ a(
|
|
297
|
-
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-4`),
|
|
298
|
-
/* @__PURE__ */ r(l, { height: "15rem" }, `${e}-5`)
|
|
297
|
+
/* @__PURE__ */ a(b, { children: [
|
|
298
|
+
/* @__PURE__ */ r(l, { width: "100%", height: "15rem" }, `${e}-4`),
|
|
299
|
+
/* @__PURE__ */ r(l, { width: "100%", height: "15rem" }, `${e}-5`)
|
|
299
300
|
] })
|
|
300
301
|
] })
|
|
301
302
|
] }), X = ({
|
|
302
303
|
keyPrefix: e,
|
|
303
304
|
isLoading: t = !1,
|
|
304
|
-
fallbackComponent:
|
|
305
|
-
children:
|
|
306
|
-
}) => /* @__PURE__ */ r(N, { fallbackComponent:
|
|
305
|
+
fallbackComponent: i = /* @__PURE__ */ r(v, {}),
|
|
306
|
+
children: o
|
|
307
|
+
}) => /* @__PURE__ */ r(N, { fallbackComponent: i, children: t === !0 ? /* @__PURE__ */ r(T, { keyPrefix: e }) : o }), O = $(
|
|
307
308
|
({
|
|
308
309
|
title: e,
|
|
309
310
|
items: t,
|
|
310
|
-
isLoading:
|
|
311
|
-
limit:
|
|
311
|
+
isLoading: i = !1,
|
|
312
|
+
limit: o = 3,
|
|
312
313
|
onSelectCard: c = () => {
|
|
313
314
|
},
|
|
314
315
|
LinkComponent: g
|
|
315
|
-
}, h) => /* @__PURE__ */ a(
|
|
316
|
+
}, h) => /* @__PURE__ */ a(E, { ref: h, children: [
|
|
316
317
|
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: e }) }) }),
|
|
317
318
|
/* @__PURE__ */ r(
|
|
318
319
|
X,
|
|
319
320
|
{
|
|
320
|
-
isLoading:
|
|
321
|
+
isLoading: i,
|
|
321
322
|
keyPrefix: "masonry-general-cards-skeleton",
|
|
322
|
-
children: /* @__PURE__ */ r(
|
|
323
|
-
|
|
323
|
+
children: /* @__PURE__ */ r(W, { limit: o, children: t && (t == null ? void 0 : t.map((n, p) => /* @__PURE__ */ r(
|
|
324
|
+
R,
|
|
324
325
|
{
|
|
325
326
|
...n,
|
|
326
327
|
onSelectCard: () => c(n),
|
|
@@ -333,5 +334,5 @@ const j = d.a`
|
|
|
333
334
|
] })
|
|
334
335
|
);
|
|
335
336
|
export {
|
|
336
|
-
|
|
337
|
+
O as default
|
|
337
338
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),h=require("react"),x=require("./Button.cjs"),u=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),a=require("./breakpoints-CcVm-gVm.cjs"),m=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),h=require("react"),x=require("./Button.cjs"),u=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),a=require("./breakpoints-CcVm-gVm.cjs"),m=require("./index-BUdvfHpp.cjs"),p=u.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -3,7 +3,7 @@ import { forwardRef as m } from "react";
|
|
|
3
3
|
import u from "./Button.js";
|
|
4
4
|
import { s as _ } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
5
5
|
import { d as i } from "./breakpoints-BubDitvo.js";
|
|
6
|
-
import { S as p } from "./index-
|
|
6
|
+
import { S as p } from "./index-VTkAaA-n.js";
|
|
7
7
|
const x = _.a`
|
|
8
8
|
text-decoration: none;
|
|
9
9
|
color: var(--gray-950);
|