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