@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,15 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { S as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
height: 11.625rem;
|
|
10
|
-
border-radius: 0.75rem;
|
|
11
|
-
background: ${v("-90deg")};
|
|
12
|
-
`, k = _.div`
|
|
1
|
+
import { jsx as i, jsxs as g, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, Suspense as y } from "react";
|
|
3
|
+
import { l as W } from "./utils-DHfRApMf.js";
|
|
4
|
+
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { M as b } from "./consts-BuFChS64.js";
|
|
6
|
+
import { S as I } from "./index-XYs5Cuh5.js";
|
|
7
|
+
import { a as O, d as h, b as p } from "./style-CXMUA6cI.js";
|
|
8
|
+
const j = C.div`
|
|
13
9
|
width: 100%;
|
|
14
10
|
height: auto;
|
|
15
11
|
border-radius: 999px;
|
|
@@ -30,66 +26,56 @@ const N = _.div`
|
|
|
30
26
|
border: var(--yellow-600, #d97706);
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
@media (max-width: ${
|
|
29
|
+
@media (max-width: ${b + "px"}) {
|
|
34
30
|
& .wrapper__image {
|
|
35
31
|
height: auto;
|
|
36
32
|
}
|
|
37
33
|
}
|
|
38
|
-
`,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
background: ${v("-90deg")};
|
|
43
|
-
|
|
44
|
-
@media (max-width: ${x + "px"}) {
|
|
45
|
-
width: 4.5rem;
|
|
46
|
-
height: 4.5rem;
|
|
47
|
-
}
|
|
48
|
-
`, W = h(({}, i) => /* @__PURE__ */ t(A, {})), I = h(
|
|
49
|
-
({ isActive: i, image: o, imageComponent: r, onSelectCard: m = () => {
|
|
50
|
-
} }, l) => /* @__PURE__ */ t(
|
|
51
|
-
k,
|
|
34
|
+
`, k = v(
|
|
35
|
+
({ isActive: t, image: s, imageComponent: r, onSelectCard: n = () => {
|
|
36
|
+
} }, l) => /* @__PURE__ */ i(
|
|
37
|
+
j,
|
|
52
38
|
{
|
|
53
39
|
ref: l,
|
|
54
|
-
className:
|
|
55
|
-
onClick:
|
|
56
|
-
children:
|
|
40
|
+
className: t ? "active" : "",
|
|
41
|
+
onClick: n,
|
|
42
|
+
children: W(r) ? r : /* @__PURE__ */ i("img", { src: s, className: "wrapper__image" })
|
|
57
43
|
}
|
|
58
44
|
)
|
|
59
|
-
),
|
|
45
|
+
), A = v(
|
|
60
46
|
({
|
|
61
|
-
uuid:
|
|
62
|
-
title:
|
|
47
|
+
uuid: t,
|
|
48
|
+
title: s,
|
|
63
49
|
price: r,
|
|
64
|
-
currency:
|
|
50
|
+
currency: n,
|
|
65
51
|
isNegotiable: l,
|
|
66
|
-
isFree:
|
|
67
|
-
image:
|
|
68
|
-
sellerUuid:
|
|
69
|
-
onSelectCard:
|
|
52
|
+
isFree: f,
|
|
53
|
+
image: _,
|
|
54
|
+
sellerUuid: m,
|
|
55
|
+
onSelectCard: o = () => {
|
|
70
56
|
},
|
|
71
57
|
imageComponent: a,
|
|
72
|
-
negotiableText:
|
|
73
|
-
freeText:
|
|
74
|
-
},
|
|
75
|
-
|
|
58
|
+
negotiableText: d = "Negotiable",
|
|
59
|
+
freeText: u = "Free"
|
|
60
|
+
}, w) => /* @__PURE__ */ i(
|
|
61
|
+
I,
|
|
76
62
|
{
|
|
77
|
-
ref:
|
|
78
|
-
uuid:
|
|
79
|
-
title:
|
|
63
|
+
ref: w,
|
|
64
|
+
uuid: t,
|
|
65
|
+
title: s,
|
|
80
66
|
price: r,
|
|
81
|
-
currency:
|
|
67
|
+
currency: n,
|
|
82
68
|
isNegotiable: l,
|
|
83
|
-
isFree:
|
|
84
|
-
image:
|
|
69
|
+
isFree: f,
|
|
70
|
+
image: _,
|
|
85
71
|
imageComponent: a,
|
|
86
|
-
sellerUuid:
|
|
87
|
-
onSelectCard:
|
|
88
|
-
negotiableText:
|
|
89
|
-
freeText:
|
|
72
|
+
sellerUuid: m,
|
|
73
|
+
onSelectCard: o,
|
|
74
|
+
negotiableText: d,
|
|
75
|
+
freeText: u
|
|
90
76
|
}
|
|
91
77
|
)
|
|
92
|
-
),
|
|
78
|
+
), T = C.div`
|
|
93
79
|
display: flex;
|
|
94
80
|
flex-direction: column;
|
|
95
81
|
align-items: center;
|
|
@@ -123,7 +109,7 @@ const N = _.div`
|
|
|
123
109
|
|
|
124
110
|
& .wrapper__avatars {
|
|
125
111
|
display: grid;
|
|
126
|
-
grid-template-columns: ${(
|
|
112
|
+
grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitAvatars}, minmax(0, 1fr))`};
|
|
127
113
|
gap: 2rem;
|
|
128
114
|
justify-items: center;
|
|
129
115
|
align-items: center;
|
|
@@ -131,98 +117,177 @@ const N = _.div`
|
|
|
131
117
|
|
|
132
118
|
& .wrapper__cards {
|
|
133
119
|
display: grid;
|
|
134
|
-
grid-template-columns: ${(
|
|
120
|
+
grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCards}, minmax(0, 1fr))`};
|
|
135
121
|
gap: 1.25rem;
|
|
136
122
|
justify-items: center;
|
|
137
123
|
align-items: center;
|
|
138
124
|
width: 100%;
|
|
139
125
|
}
|
|
140
126
|
|
|
141
|
-
@media (max-width: ${
|
|
127
|
+
@media (max-width: ${b + "px"}) {
|
|
142
128
|
& .wrapper__avatars {
|
|
143
|
-
grid-template-columns: ${(
|
|
129
|
+
grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
144
130
|
gap: auto;
|
|
145
131
|
}
|
|
146
132
|
|
|
147
133
|
& .wrapper__cards {
|
|
148
|
-
grid-template-columns: ${(
|
|
134
|
+
grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
149
135
|
gap: 1rem;
|
|
150
136
|
}
|
|
151
137
|
}
|
|
152
|
-
`,
|
|
138
|
+
`, N = C(O)`
|
|
139
|
+
&.skeleton__tags {
|
|
140
|
+
max-width: 50rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (max-width: ${b + "px"}) {
|
|
144
|
+
&.skeleton__tags {
|
|
145
|
+
overflow-x: hidden;
|
|
146
|
+
|
|
147
|
+
& > div {
|
|
148
|
+
width: 3rem;
|
|
149
|
+
height: 3rem;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.skeleton__cards {
|
|
154
|
+
display: grid;
|
|
155
|
+
grid-template-columns: 1fr 1fr;
|
|
156
|
+
|
|
157
|
+
& > div {
|
|
158
|
+
height: 7rem;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
`, M = ({ keyPrefix: t }) => /* @__PURE__ */ g(N, { className: "skeleton__tags", justifyContent: "center", children: [
|
|
163
|
+
/* @__PURE__ */ i(
|
|
164
|
+
h,
|
|
165
|
+
{
|
|
166
|
+
width: "9.875rem",
|
|
167
|
+
height: "9.875rem"
|
|
168
|
+
},
|
|
169
|
+
`${t}-1`
|
|
170
|
+
),
|
|
171
|
+
/* @__PURE__ */ i(
|
|
172
|
+
h,
|
|
173
|
+
{
|
|
174
|
+
width: "9.875rem",
|
|
175
|
+
height: "9.875rem"
|
|
176
|
+
},
|
|
177
|
+
`${t}-2`
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ i(
|
|
180
|
+
h,
|
|
181
|
+
{
|
|
182
|
+
width: "9.875rem",
|
|
183
|
+
height: "9.875rem"
|
|
184
|
+
},
|
|
185
|
+
`${t}-3`
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ i(
|
|
188
|
+
h,
|
|
189
|
+
{
|
|
190
|
+
width: "9.875rem",
|
|
191
|
+
height: "9.875rem"
|
|
192
|
+
},
|
|
193
|
+
`${t}-4`
|
|
194
|
+
)
|
|
195
|
+
] }), L = ({
|
|
196
|
+
keyPrefix: t,
|
|
197
|
+
isLoading: s = !1,
|
|
198
|
+
fallbackComponent: r = /* @__PURE__ */ i(F, {}),
|
|
199
|
+
children: n
|
|
200
|
+
}) => /* @__PURE__ */ i(y, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(M, { keyPrefix: t }) : n }), S = ({ keyPrefix: t }) => /* @__PURE__ */ g(N, { className: "skeleton__cards", justifyContent: "center", children: [
|
|
201
|
+
/* @__PURE__ */ i(p, { height: "13.75rem" }, `${t}-1`),
|
|
202
|
+
/* @__PURE__ */ i(p, { height: "13.75rem" }, `${t}-2`),
|
|
203
|
+
/* @__PURE__ */ i(p, { height: "13.75rem" }, `${t}-3`),
|
|
204
|
+
/* @__PURE__ */ i(p, { height: "13.75rem" }, `${t}-3`)
|
|
205
|
+
] }), z = ({
|
|
206
|
+
keyPrefix: t,
|
|
207
|
+
isLoading: s = !1,
|
|
208
|
+
fallbackComponent: r = /* @__PURE__ */ i(F, {}),
|
|
209
|
+
children: n
|
|
210
|
+
}) => /* @__PURE__ */ i(y, { fallbackComponent: r, children: s === !0 ? /* @__PURE__ */ i(S, { keyPrefix: t }) : n }), q = v(
|
|
153
211
|
({
|
|
154
|
-
title:
|
|
155
|
-
subtitle:
|
|
212
|
+
title: t,
|
|
213
|
+
subtitle: s,
|
|
156
214
|
avatars: r = [],
|
|
157
|
-
limitAvatars:
|
|
215
|
+
limitAvatars: n = 4,
|
|
158
216
|
limit: l = 6,
|
|
159
|
-
limitAvatarsForMobile:
|
|
160
|
-
limitForMobile:
|
|
161
|
-
items:
|
|
162
|
-
onSelectAvatar:
|
|
217
|
+
limitAvatarsForMobile: f = 4,
|
|
218
|
+
limitForMobile: _ = 2,
|
|
219
|
+
items: m = [],
|
|
220
|
+
onSelectAvatar: o = () => {
|
|
163
221
|
},
|
|
164
222
|
onSelectCard: a = () => {
|
|
165
|
-
}
|
|
223
|
+
},
|
|
224
|
+
isLoadingTags: d = !1,
|
|
225
|
+
isLoadingCards: u = !1
|
|
166
226
|
}, w) => {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, f = (e) => {
|
|
227
|
+
const x = (e) => {
|
|
228
|
+
o == null || o(e);
|
|
229
|
+
}, $ = (e) => {
|
|
171
230
|
a == null || a(e);
|
|
172
231
|
};
|
|
173
|
-
return /* @__PURE__ */
|
|
174
|
-
|
|
232
|
+
return /* @__PURE__ */ g(
|
|
233
|
+
T,
|
|
175
234
|
{
|
|
176
235
|
ref: w,
|
|
177
|
-
limitAvatars:
|
|
178
|
-
limitAvatarsForMobile:
|
|
236
|
+
limitAvatars: n,
|
|
237
|
+
limitAvatarsForMobile: f,
|
|
179
238
|
limitCards: l,
|
|
180
|
-
limitCardsForMobile:
|
|
239
|
+
limitCardsForMobile: _,
|
|
181
240
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
|
|
184
|
-
|
|
241
|
+
/* @__PURE__ */ g("div", { className: "wrapper__heading", children: [
|
|
242
|
+
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
243
|
+
s && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: s })
|
|
185
244
|
] }),
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
|
|
245
|
+
/* @__PURE__ */ i(
|
|
246
|
+
L,
|
|
188
247
|
{
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
248
|
+
isLoading: d,
|
|
249
|
+
keyPrefix: "field-of-interests-with-avatars-tag",
|
|
250
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__avatars", children: r == null ? void 0 : r.map((e, c) => /* @__PURE__ */ i(
|
|
251
|
+
k,
|
|
252
|
+
{
|
|
253
|
+
image: e == null ? void 0 : e.image,
|
|
254
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
255
|
+
onSelectCard: () => x == null ? void 0 : x(e)
|
|
256
|
+
},
|
|
257
|
+
`field-of-interests-with-avatars-card-avatar__${c + 1}`
|
|
258
|
+
)) })
|
|
259
|
+
}
|
|
260
|
+
),
|
|
261
|
+
/* @__PURE__ */ i(
|
|
262
|
+
z,
|
|
201
263
|
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
264
|
+
isLoading: u,
|
|
265
|
+
keyPrefix: "field-of-interests-with-avatars-card",
|
|
266
|
+
children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: m == null ? void 0 : m.map((e, c) => /* @__PURE__ */ i(
|
|
267
|
+
A,
|
|
268
|
+
{
|
|
269
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
270
|
+
title: e == null ? void 0 : e.title,
|
|
271
|
+
price: e == null ? void 0 : e.price,
|
|
272
|
+
currency: e == null ? void 0 : e.currency,
|
|
273
|
+
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
274
|
+
isFree: e == null ? void 0 : e.isFree,
|
|
275
|
+
image: e == null ? void 0 : e.image,
|
|
276
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
277
|
+
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
278
|
+
negotiableText: e == null ? void 0 : e.negotiableText,
|
|
279
|
+
freeText: e == null ? void 0 : e.freeText,
|
|
280
|
+
onSelectCard: () => $ == null ? void 0 : $(e)
|
|
281
|
+
},
|
|
282
|
+
`field-of-interests-with-avatars-card__${c + 1}`
|
|
283
|
+
)) })
|
|
284
|
+
}
|
|
285
|
+
)
|
|
221
286
|
]
|
|
222
287
|
}
|
|
223
288
|
);
|
|
224
289
|
}
|
|
225
290
|
);
|
|
226
291
|
export {
|
|
227
|
-
|
|
292
|
+
q as default
|
|
228
293
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),l=require("./utils-Dl9xPH4c.cjs"),b=require("./Icon.cjs"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./index-BAJkosVg.cjs"),k=x.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -50,12 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
cursor: pointer;
|
|
53
|
-
|
|
54
|
-
width: 100%;
|
|
55
|
-
height: 11.625rem;
|
|
56
|
-
border-radius: 0.75rem;
|
|
57
|
-
background: ${l.linearGradientAnimation("-90deg")};
|
|
58
|
-
`,I=m.styled.div`
|
|
53
|
+
`,I=x.styled.div`
|
|
59
54
|
display: flex;
|
|
60
55
|
padding: 0 0.75rem 0 0.75rem;
|
|
61
56
|
align-items: center;
|
|
@@ -95,7 +90,7 @@
|
|
|
95
90
|
}
|
|
96
91
|
|
|
97
92
|
&.active {
|
|
98
|
-
background: ${
|
|
93
|
+
background: ${i=>(i==null?void 0:i.activeColor)||"var(--yellow-600, #d97706)"};
|
|
99
94
|
|
|
100
95
|
& .wrapper__icon {
|
|
101
96
|
color: var(--white, #fff);
|
|
@@ -109,12 +104,7 @@
|
|
|
109
104
|
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
110
105
|
min-width: fit-content;
|
|
111
106
|
}
|
|
112
|
-
`,N=
|
|
113
|
-
width: 7rem;
|
|
114
|
-
height: 3rem;
|
|
115
|
-
border-radius: 999px;
|
|
116
|
-
background: ${l.linearGradientAnimation("-90deg")};
|
|
117
|
-
`,C=c.forwardRef(({},t)=>r.jsx(N,{})),W=c.forwardRef(({name:t,isActive:n,activeColor:i,icon:a,onSelectCard:d=()=>{}},p)=>r.jsxs(I,{ref:p,className:n?"active":"",activeColor:i,onClick:d,children:[l.isDefinedNotEmptyString(a)&&r.jsx(b,{icon:a,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),R=c.forwardRef(({image:t,imageComponent:n,name:i,description:a,onSelectCard:d=()=>{}},p)=>{const{theme:f}=j.useTheme();return r.jsxs(k,{ref:p,theme:f,onClick:d,children:[l.isDefined(n)?n:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),F=c.forwardRef(({},t)=>r.jsx($,{})),T=m.styled.div`
|
|
107
|
+
`,N=h.forwardRef(({name:i,isActive:s,activeColor:t,icon:n,onSelectCard:a=()=>{}},o)=>r.jsxs(I,{ref:o,className:s?"active":"",activeColor:t,onClick:a,children:[l.isDefinedNotEmptyString(n)&&r.jsx(b,{icon:n,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),C=h.forwardRef(({image:i,imageComponent:s,name:t,description:n,onSelectCard:a=()=>{}},o)=>{const{theme:p}=j.useTheme();return r.jsxs(k,{ref:o,theme:p,onClick:a,children:[l.isDefined(s)?s: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})]})]})}),$=x.styled.div`
|
|
118
108
|
display: flex;
|
|
119
109
|
flex-direction: column;
|
|
120
110
|
align-items: center;
|
|
@@ -155,7 +145,7 @@
|
|
|
155
145
|
|
|
156
146
|
& .wrapper__cards {
|
|
157
147
|
display: grid;
|
|
158
|
-
grid-template-columns: ${
|
|
148
|
+
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
|
|
159
149
|
justify-content: center;
|
|
160
150
|
align-items: center;
|
|
161
151
|
gap: 1.5rem;
|
|
@@ -191,4 +181,4 @@
|
|
|
191
181
|
gap: 1rem;
|
|
192
182
|
}
|
|
193
183
|
}
|
|
194
|
-
`,q=
|
|
184
|
+
`,q=h.forwardRef(({title:i,subtitle:s,tags:t=[],limitTags:n=7,limitTagsForMobile:a=7,limit:o=3,limitForMobile:p=2,items:c=[],isLoadingTags:w=!1,isLoadingCards:F=!1,selectedTag:u,activeColor:v,onSelectTag:d=()=>{},onSelectCard:m=()=>{}},y)=>r.jsxs($,{ref:y,limitTags:n,limitTagsForMobile:a,limitCards:o,limitCardsForMobile:p,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx(_.SuspenseFieldOfInterestsWithTagsTag,{isLoading:w,keyPrefix:"field-of-interests-with-tags-tag",children:r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,f)=>r.jsx(N,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===u,activeColor:v,onSelectCard:()=>d==null?void 0:d(e)},`field-of-interests-with-tags-card-tag__${f+1}`))})}),r.jsx(_.SuspenseFieldOfInterestsWithTagsCard,{isLoading:w,keyPrefix:"field-of-interests-with-tags-card",children:r.jsx("div",{className:"wrapper__cards",children:c==null?void 0:c.map((e,f)=>r.jsx(C,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>m==null?void 0:m(e)},`field-of-interests-with-tags-card__${f+1}`))})})]}));module.exports=q;
|