@lanaco/lnc-react-ui 4.0.170 → 4.0.171
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/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-BU6DPCvJ.js +0 -652
- package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
|
|
1
|
+
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { o as _, k as b, l as k } from "./utils-DHfRApMf.js";
|
|
4
|
+
import N from "./Icon.js";
|
|
5
|
+
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
+
import { M as x } from "./consts-BuFChS64.js";
|
|
7
|
+
import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { S as I, a as $ } from "./index-DxwIu0Wn.js";
|
|
9
|
+
const W = g.div`
|
|
9
10
|
display: flex;
|
|
10
11
|
flex-direction: column;
|
|
11
12
|
align-items: flex-start;
|
|
@@ -43,7 +44,7 @@ const W = c.div`
|
|
|
43
44
|
font-style: normal;
|
|
44
45
|
font-weight: 500;
|
|
45
46
|
line-height: 1.5rem;
|
|
46
|
-
${
|
|
47
|
+
${_(2)}
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
& .wrapper__description {
|
|
@@ -53,16 +54,11 @@ const W = c.div`
|
|
|
53
54
|
font-weight: 400;
|
|
54
55
|
line-height: 1rem;
|
|
55
56
|
letter-spacing: 0.025rem;
|
|
56
|
-
${
|
|
57
|
+
${_(2)}
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
cursor: pointer;
|
|
60
|
-
`, j =
|
|
61
|
-
width: 100%;
|
|
62
|
-
height: 11.625rem;
|
|
63
|
-
border-radius: 0.75rem;
|
|
64
|
-
background: ${u("-90deg")};
|
|
65
|
-
`, F = c.div`
|
|
61
|
+
`, j = g.div`
|
|
66
62
|
display: flex;
|
|
67
63
|
padding: 0 0.75rem 0 0.75rem;
|
|
68
64
|
align-items: center;
|
|
@@ -113,42 +109,37 @@ const W = c.div`
|
|
|
113
109
|
}
|
|
114
110
|
}
|
|
115
111
|
|
|
116
|
-
@media (max-width: ${
|
|
112
|
+
@media (max-width: ${x + "px"}) {
|
|
117
113
|
min-width: fit-content;
|
|
118
114
|
}
|
|
119
|
-
`,
|
|
120
|
-
width: 7rem;
|
|
121
|
-
height: 3rem;
|
|
122
|
-
border-radius: 999px;
|
|
123
|
-
background: ${u("-90deg")};
|
|
124
|
-
`, z = d(({}, r) => /* @__PURE__ */ i(T, {})), O = d(
|
|
115
|
+
`, F = h(
|
|
125
116
|
({ name: r, isActive: a, activeColor: t, icon: n, onSelectCard: s = () => {
|
|
126
|
-
} },
|
|
127
|
-
|
|
117
|
+
} }, o) => /* @__PURE__ */ l(
|
|
118
|
+
j,
|
|
128
119
|
{
|
|
129
|
-
ref:
|
|
120
|
+
ref: o,
|
|
130
121
|
className: a ? "active" : "",
|
|
131
122
|
activeColor: t,
|
|
132
123
|
onClick: s,
|
|
133
124
|
children: [
|
|
134
|
-
|
|
125
|
+
b(n) && /* @__PURE__ */ i(N, { icon: n, className: "wrapper__icon" }),
|
|
135
126
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
136
127
|
]
|
|
137
128
|
}
|
|
138
129
|
)
|
|
139
|
-
),
|
|
130
|
+
), z = h(
|
|
140
131
|
({ image: r, imageComponent: a, name: t, description: n, onSelectCard: s = () => {
|
|
141
|
-
} },
|
|
142
|
-
const { theme:
|
|
143
|
-
return /* @__PURE__ */
|
|
144
|
-
|
|
145
|
-
/* @__PURE__ */
|
|
132
|
+
} }, o) => {
|
|
133
|
+
const { theme: p } = C();
|
|
134
|
+
return /* @__PURE__ */ l(W, { ref: o, theme: p, onClick: s, children: [
|
|
135
|
+
k(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
136
|
+
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
146
137
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
147
138
|
n && /* @__PURE__ */ i("div", { className: "wrapper__description", children: n })
|
|
148
139
|
] })
|
|
149
140
|
] });
|
|
150
141
|
}
|
|
151
|
-
),
|
|
142
|
+
), O = g.div`
|
|
152
143
|
display: flex;
|
|
153
144
|
flex-direction: column;
|
|
154
145
|
align-items: center;
|
|
@@ -196,7 +187,7 @@ const W = c.div`
|
|
|
196
187
|
width: 100%;
|
|
197
188
|
}
|
|
198
189
|
|
|
199
|
-
@media (max-width: ${
|
|
190
|
+
@media (max-width: ${x + "px"}) {
|
|
200
191
|
gap: 1rem;
|
|
201
192
|
|
|
202
193
|
& .wrapper__tags {
|
|
@@ -225,72 +216,77 @@ const W = c.div`
|
|
|
225
216
|
gap: 1rem;
|
|
226
217
|
}
|
|
227
218
|
}
|
|
228
|
-
`,
|
|
219
|
+
`, G = h(
|
|
229
220
|
({
|
|
230
221
|
title: r,
|
|
231
222
|
subtitle: a,
|
|
232
223
|
tags: t = [],
|
|
233
224
|
limitTags: n = 7,
|
|
234
225
|
limitTagsForMobile: s = 7,
|
|
235
|
-
limit:
|
|
236
|
-
limitForMobile:
|
|
237
|
-
items:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
226
|
+
limit: o = 3,
|
|
227
|
+
limitForMobile: p = 2,
|
|
228
|
+
items: m = [],
|
|
229
|
+
isLoadingTags: w = !1,
|
|
230
|
+
isLoadingCards: T = !1,
|
|
231
|
+
selectedTag: v,
|
|
232
|
+
activeColor: u,
|
|
233
|
+
onSelectTag: d = () => {
|
|
241
234
|
},
|
|
242
|
-
onSelectCard:
|
|
235
|
+
onSelectCard: c = () => {
|
|
243
236
|
}
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
237
|
+
}, y) => /* @__PURE__ */ l(
|
|
238
|
+
O,
|
|
239
|
+
{
|
|
240
|
+
ref: y,
|
|
241
|
+
limitTags: n,
|
|
242
|
+
limitTagsForMobile: s,
|
|
243
|
+
limitCards: o,
|
|
244
|
+
limitCardsForMobile: p,
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
247
|
+
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
248
|
+
a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ i(
|
|
251
|
+
I,
|
|
252
|
+
{
|
|
253
|
+
isLoading: w,
|
|
254
|
+
keyPrefix: "field-of-interests-with-tags-tag",
|
|
255
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t == null ? void 0 : t.map((e, f) => /* @__PURE__ */ i(
|
|
256
|
+
F,
|
|
257
|
+
{
|
|
258
|
+
icon: e == null ? void 0 : e.icon,
|
|
259
|
+
name: e == null ? void 0 : e.title,
|
|
260
|
+
isActive: (e == null ? void 0 : e.code) === v,
|
|
261
|
+
activeColor: u,
|
|
262
|
+
onSelectCard: () => d == null ? void 0 : d(e)
|
|
263
|
+
},
|
|
264
|
+
`field-of-interests-with-tags-card-tag__${f + 1}`
|
|
265
|
+
)) })
|
|
266
|
+
}
|
|
267
|
+
),
|
|
268
|
+
/* @__PURE__ */ i(
|
|
269
|
+
$,
|
|
270
|
+
{
|
|
271
|
+
isLoading: w,
|
|
272
|
+
keyPrefix: "field-of-interests-with-tags-card",
|
|
273
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: m == null ? void 0 : m.map((e, f) => /* @__PURE__ */ i(
|
|
274
|
+
z,
|
|
275
|
+
{
|
|
276
|
+
image: e == null ? void 0 : e.image,
|
|
277
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
278
|
+
name: e == null ? void 0 : e.title,
|
|
279
|
+
description: e == null ? void 0 : e.description,
|
|
280
|
+
onSelectCard: () => c == null ? void 0 : c(e)
|
|
281
|
+
},
|
|
282
|
+
`field-of-interests-with-tags-card__${f + 1}`
|
|
283
|
+
)) })
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
)
|
|
293
289
|
);
|
|
294
290
|
export {
|
|
295
|
-
|
|
291
|
+
G as default
|
|
296
292
|
};
|
package/dist/FileInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as R, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as S, useState as y } from "react";
|
|
3
3
|
import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { P as t } from "./index-CblbdqjE.js";
|
|
5
|
-
import { d as x, b as a, e as V, c as $, h as I } from "./utils-
|
|
5
|
+
import { d as x, b as a, e as V, c as $, h as I } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { u as B } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const D = b.label`
|
|
8
8
|
display: inline-flex;
|
package/dist/FlexGridItem.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as y } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as N, useState as S, useEffect as b } from "react";
|
|
3
3
|
import { P as i } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { u as M } from "./utils-
|
|
5
|
+
import { u as M } from "./utils-DHfRApMf.js";
|
|
6
6
|
const W = I.div`
|
|
7
7
|
${(t) => t.width > 0 ? "" : "flex: 1;"}
|
|
8
8
|
min-width: ${(t) => 100 / t.columns}%;
|
package/dist/FormField.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { P as l } from "./index-CblbdqjE.js";
|
|
3
3
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { c as i, b as n } from "./utils-
|
|
4
|
+
import { c as i, b as n } from "./utils-DHfRApMf.js";
|
|
5
5
|
import { u as g } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const f = m.label`
|
|
7
7
|
display: block;
|
package/dist/FormView.js
CHANGED
|
@@ -17,7 +17,7 @@ import X from "./TimeInput.js";
|
|
|
17
17
|
import Z from "./ColorInput.js";
|
|
18
18
|
import z from "./FileInput.js";
|
|
19
19
|
import ee from "./RangeSlider.js";
|
|
20
|
-
import { g as re, a as te, b as oe } from "./utils-
|
|
20
|
+
import { g as re, a as te, b as oe } from "./utils-DHfRApMf.js";
|
|
21
21
|
import ae from "./FormField.js";
|
|
22
22
|
import { u as ne } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
23
23
|
const ie = y.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),y=require("./Icon.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),w=require("./utils-Dl9xPH4c.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=require("./index-BAJkosVg.cjs"),j=g.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
font-style: normal;
|
|
36
36
|
font-weight: 500;
|
|
37
37
|
line-height: 1.5rem;
|
|
38
|
-
${
|
|
38
|
+
${w.truncateTextInRows(2)}
|
|
39
39
|
transition: var(--transition, all 0.2s ease);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
cursor: pointer;
|
|
43
43
|
|
|
44
|
-
@media (max-width: ${
|
|
44
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
45
45
|
background: transparent;
|
|
46
46
|
border: none;
|
|
47
47
|
box-shadow: none;
|
|
@@ -63,18 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`,k=
|
|
67
|
-
width: 100%;
|
|
68
|
-
height: 11.625rem;
|
|
69
|
-
border-radius: 0.75rem;
|
|
70
|
-
background: ${p.linearGradientAnimation("-90deg")};
|
|
71
|
-
|
|
72
|
-
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
73
|
-
width: 5rem;
|
|
74
|
-
height: 5rem;
|
|
75
|
-
border-radius: 999px;
|
|
76
|
-
}
|
|
77
|
-
`,$=d.styled.div`
|
|
66
|
+
`,k=g.styled.div`
|
|
78
67
|
display: flex;
|
|
79
68
|
padding: 0 0.75rem 0 0.75rem;
|
|
80
69
|
align-items: center;
|
|
@@ -115,17 +104,12 @@
|
|
|
115
104
|
letter-spacing: -0.09px;
|
|
116
105
|
}
|
|
117
106
|
|
|
118
|
-
@media (max-width: ${
|
|
107
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
119
108
|
& .wrapper__text {
|
|
120
109
|
white-space: nowrap;
|
|
121
110
|
}
|
|
122
111
|
}
|
|
123
|
-
`,N=
|
|
124
|
-
width: 7rem;
|
|
125
|
-
height: 3rem;
|
|
126
|
-
border-radius: 999px;
|
|
127
|
-
background: ${p.linearGradientAnimation("-90deg")};
|
|
128
|
-
`,C=o.forwardRef(({},a)=>r.jsx(N,{})),E=o.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},l)=>r.jsxs($,{ref:l,onClick:t,children:[p.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=o.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:l=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:l,children:[p.isDefined(i)?i:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),W=o.forwardRef(({},a)=>r.jsx(k,{})),G=d.styled.div`
|
|
112
|
+
`,I=m.forwardRef(({title:t,icon:a,onSelectCard:i=()=>{}},n)=>r.jsxs(k,{ref:n,onClick:i,children:[w.isDefinedNotEmptyString(a)&&r.jsx(y,{icon:a,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),N=m.forwardRef(({imageUrl:t,imageComponent:a,title:i,onSelectCard:n=()=>{}},s)=>{const{theme:l}=v.useTheme();return r.jsxs(j,{ref:s,theme:l,onClick:n,children:[w.isDefined(a)?a:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:i})})]})}),$=g.styled.div`
|
|
129
113
|
display: flex;
|
|
130
114
|
flex-direction: column;
|
|
131
115
|
align-items: center;
|
|
@@ -167,13 +151,13 @@
|
|
|
167
151
|
|
|
168
152
|
& .wrapper__cards {
|
|
169
153
|
display: grid;
|
|
170
|
-
grid-template-columns: ${
|
|
154
|
+
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCards}, minmax(0, 1fr))`};
|
|
171
155
|
justify-content: center;
|
|
172
156
|
align-items: center;
|
|
173
157
|
gap: 1.5rem;
|
|
174
158
|
}
|
|
175
159
|
|
|
176
|
-
@media (max-width: ${
|
|
160
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
177
161
|
& .wrapper__tags {
|
|
178
162
|
display: flex;
|
|
179
163
|
flex-wrap: nowrap;
|
|
@@ -197,8 +181,8 @@
|
|
|
197
181
|
}
|
|
198
182
|
|
|
199
183
|
& .wrapper__cards {
|
|
200
|
-
grid-template-columns: ${
|
|
184
|
+
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
201
185
|
gap: 1rem;
|
|
202
186
|
}
|
|
203
187
|
}
|
|
204
|
-
`,
|
|
188
|
+
`,C=m.forwardRef(({title:t,subtitle:a,options:i=[],limitTags:n=7,limitTagsForMobile:s=2,limit:l=3,limitForMobile:h=3,items:o=[],onSelectTag:p=()=>{},onSelectCard:d=()=>{},isLoadingTags:_=!1,isLoadingCards:u=!1},b)=>r.jsxs($,{ref:b,limitTags:n,limitTagsForMobile:s,limitCards:l,limitCardsForMobile:h,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__subtitle",children:a})]}),r.jsx(f.SuspenseFieldOfInterestsWithTagsCard,{isLoading:u,keyPrefix:"general-with-tags-cards-card",children:r.jsx("div",{className:"wrapper__cards",children:o==null?void 0:o.map((e,c)=>r.jsx(N,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>{d==null||d(e)}},`general-with-tags-card__${c+1}`))})}),r.jsx(f.SuspenseFieldOfInterestsWithTagsTag,{isLoading:_,keyPrefix:"general-with-tags-cards-tag",children:r.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((e,c)=>r.jsx(I,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>p==null?void 0:p(e)},`general-with-tags-card-tag__${c+1}`))})})]}));module.exports=C;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import b from "./Icon.js";
|
|
4
|
+
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { M as h } from "./consts-BuFChS64.js";
|
|
6
|
+
import { o as v, k as y, l as k } from "./utils-DHfRApMf.js";
|
|
7
|
+
import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { a as $, S as C } from "./index-DxwIu0Wn.js";
|
|
9
|
+
const W = f.div`
|
|
9
10
|
display: flex;
|
|
10
11
|
flex-direction: column;
|
|
11
12
|
align-items: flex-start;
|
|
@@ -42,13 +43,13 @@ const W = p.div`
|
|
|
42
43
|
font-style: normal;
|
|
43
44
|
font-weight: 500;
|
|
44
45
|
line-height: 1.5rem;
|
|
45
|
-
${
|
|
46
|
+
${v(2)}
|
|
46
47
|
transition: var(--transition, all 0.2s ease);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
+
cursor: pointer;
|
|
50
51
|
|
|
51
|
-
@media (max-width: ${
|
|
52
|
+
@media (max-width: ${h + "px"}) {
|
|
52
53
|
background: transparent;
|
|
53
54
|
border: none;
|
|
54
55
|
box-shadow: none;
|
|
@@ -70,18 +71,7 @@ const W = p.div`
|
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
`, j =
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: 11.625rem;
|
|
76
|
-
border-radius: 0.75rem;
|
|
77
|
-
background: ${x("-90deg")};
|
|
78
|
-
|
|
79
|
-
@media (max-width: ${d + "px"}) {
|
|
80
|
-
width: 5rem;
|
|
81
|
-
height: 5rem;
|
|
82
|
-
border-radius: 999px;
|
|
83
|
-
}
|
|
84
|
-
`, G = p.div`
|
|
74
|
+
`, j = f.div`
|
|
85
75
|
display: flex;
|
|
86
76
|
padding: 0 0.75rem 0 0.75rem;
|
|
87
77
|
align-items: center;
|
|
@@ -122,33 +112,28 @@ const W = p.div`
|
|
|
122
112
|
letter-spacing: -0.09px;
|
|
123
113
|
}
|
|
124
114
|
|
|
125
|
-
@media (max-width: ${
|
|
115
|
+
@media (max-width: ${h + "px"}) {
|
|
126
116
|
& .wrapper__text {
|
|
127
117
|
white-space: nowrap;
|
|
128
118
|
}
|
|
129
119
|
}
|
|
130
|
-
`,
|
|
131
|
-
width: 7rem;
|
|
132
|
-
height: 3rem;
|
|
133
|
-
border-radius: 999px;
|
|
134
|
-
background: ${x("-90deg")};
|
|
135
|
-
`, z = s(({}, r) => /* @__PURE__ */ a(T, {})), I = s(
|
|
120
|
+
`, I = g(
|
|
136
121
|
({ title: r, icon: i, onSelectCard: t = () => {
|
|
137
|
-
} },
|
|
138
|
-
|
|
122
|
+
} }, n) => /* @__PURE__ */ s(j, { ref: n, onClick: t, children: [
|
|
123
|
+
y(i) && /* @__PURE__ */ a(b, { icon: i, className: "wrapper__icon" }),
|
|
139
124
|
/* @__PURE__ */ a("div", { className: "wrapper__text", children: r })
|
|
140
125
|
] })
|
|
141
|
-
),
|
|
126
|
+
), z = g(
|
|
142
127
|
// eslint-disable-next-line react/prop-types
|
|
143
|
-
({ imageUrl: r, imageComponent: i, title: t, onSelectCard:
|
|
144
|
-
} },
|
|
145
|
-
const { theme:
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
|
|
128
|
+
({ imageUrl: r, imageComponent: i, title: t, onSelectCard: n = () => {
|
|
129
|
+
} }, l) => {
|
|
130
|
+
const { theme: o } = N();
|
|
131
|
+
return /* @__PURE__ */ s(W, { ref: l, theme: o, onClick: n, children: [
|
|
132
|
+
k(i) ? i : /* @__PURE__ */ a("img", { src: r, className: "wrapper__image" }),
|
|
148
133
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: /* @__PURE__ */ a("div", { className: "wrapper__title", children: t }) })
|
|
149
134
|
] });
|
|
150
135
|
}
|
|
151
|
-
),
|
|
136
|
+
), T = f.div`
|
|
152
137
|
display: flex;
|
|
153
138
|
flex-direction: column;
|
|
154
139
|
align-items: center;
|
|
@@ -196,7 +181,7 @@ const W = p.div`
|
|
|
196
181
|
gap: 1.5rem;
|
|
197
182
|
}
|
|
198
183
|
|
|
199
|
-
@media (max-width: ${
|
|
184
|
+
@media (max-width: ${h + "px"}) {
|
|
200
185
|
& .wrapper__tags {
|
|
201
186
|
display: flex;
|
|
202
187
|
flex-wrap: nowrap;
|
|
@@ -224,71 +209,74 @@ const W = p.div`
|
|
|
224
209
|
gap: 1rem;
|
|
225
210
|
}
|
|
226
211
|
}
|
|
227
|
-
`,
|
|
212
|
+
`, R = g(
|
|
228
213
|
({
|
|
229
214
|
title: r,
|
|
230
215
|
subtitle: i,
|
|
231
216
|
options: t = [],
|
|
232
|
-
limitTags:
|
|
233
|
-
limitTagsForMobile:
|
|
234
|
-
limit:
|
|
235
|
-
limitForMobile:
|
|
236
|
-
items:
|
|
237
|
-
onSelectTag:
|
|
217
|
+
limitTags: n = 7,
|
|
218
|
+
limitTagsForMobile: l = 2,
|
|
219
|
+
limit: o = 3,
|
|
220
|
+
limitForMobile: w = 3,
|
|
221
|
+
items: p = [],
|
|
222
|
+
onSelectTag: m = () => {
|
|
238
223
|
},
|
|
239
|
-
onSelectCard:
|
|
224
|
+
onSelectCard: d = () => {
|
|
240
225
|
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
226
|
+
isLoadingTags: _ = !1,
|
|
227
|
+
isLoadingCards: x = !1
|
|
228
|
+
}, u) => /* @__PURE__ */ s(
|
|
229
|
+
T,
|
|
230
|
+
{
|
|
231
|
+
ref: u,
|
|
232
|
+
limitTags: n,
|
|
233
|
+
limitTagsForMobile: l,
|
|
234
|
+
limitCards: o,
|
|
235
|
+
limitCardsForMobile: w,
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
238
|
+
r && /* @__PURE__ */ a("div", { className: "wrapper__title", children: r }),
|
|
239
|
+
i && /* @__PURE__ */ a("div", { className: "wrapper__subtitle", children: i })
|
|
240
|
+
] }),
|
|
241
|
+
/* @__PURE__ */ a(
|
|
242
|
+
$,
|
|
243
|
+
{
|
|
244
|
+
isLoading: x,
|
|
245
|
+
keyPrefix: "general-with-tags-cards-card",
|
|
246
|
+
children: /* @__PURE__ */ a("div", { className: "wrapper__cards", children: p == null ? void 0 : p.map((e, c) => /* @__PURE__ */ a(
|
|
247
|
+
z,
|
|
248
|
+
{
|
|
249
|
+
imageUrl: e == null ? void 0 : e.imageUrl,
|
|
250
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
251
|
+
title: e == null ? void 0 : e.title,
|
|
252
|
+
onSelectCard: () => {
|
|
253
|
+
d == null || d(e);
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
`general-with-tags-card__${c + 1}`
|
|
257
|
+
)) })
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
/* @__PURE__ */ a(
|
|
261
|
+
C,
|
|
262
|
+
{
|
|
263
|
+
isLoading: _,
|
|
264
|
+
keyPrefix: "general-with-tags-cards-tag",
|
|
265
|
+
children: /* @__PURE__ */ a("div", { className: "wrapper__tags", children: t == null ? void 0 : t.map((e, c) => /* @__PURE__ */ a(
|
|
266
|
+
I,
|
|
267
|
+
{
|
|
268
|
+
icon: e == null ? void 0 : e.icon,
|
|
269
|
+
title: e == null ? void 0 : e.title,
|
|
270
|
+
onSelectCard: () => m == null ? void 0 : m(e)
|
|
271
|
+
},
|
|
272
|
+
`general-with-tags-card-tag__${c + 1}`
|
|
273
|
+
)) })
|
|
274
|
+
}
|
|
275
|
+
)
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
)
|
|
291
279
|
);
|
|
292
280
|
export {
|
|
293
|
-
|
|
281
|
+
R as default
|
|
294
282
|
};
|