@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
@@ -3,14 +3,14 @@ import { memo as B, forwardRef as q, useMemo as E } from "react";
3
3
  import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as O } from "./consts-BuFChS64.js";
5
5
  import R from "./Button.js";
6
- import { k as h } from "./utils-BdsZgOUE.js";
6
+ import { k as m } from "./utils-DHfRApMf.js";
7
7
  import { u as W } from "./useDetectMobile-Bkvj0VMa.js";
8
- import { T as $ } from "./style-DKAOBWn3.js";
9
- import { D as j, S as z } from "./suspense-product-card-detailed-BU6DPCvJ.js";
10
- import { S as A } from "./index-dXWRbvgi.js";
8
+ import { T as $ } from "./style-D3pIrH3v.js";
9
+ import { D as j, S as z } from "./index-BhBRZf4M.js";
10
+ import { S as A } from "./index-BMOLVn8O.js";
11
11
  const K = I.div`
12
12
  display: grid;
13
- grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
13
+ grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
14
14
  gap: 1.25rem;
15
15
 
16
16
  & .button-link {
@@ -36,34 +36,34 @@ const K = I.div`
36
36
  /* Safari and Chrome */
37
37
  }
38
38
  }
39
- `, N = B(j), ee = q((n, w) => {
39
+ `, P = B(j), ee = q((a, v) => {
40
40
  const {
41
- icon: m,
42
- title: P,
43
- buttonLink: d,
41
+ icon: d,
42
+ title: T,
43
+ buttonLink: c,
44
44
  items: r,
45
- buttonText: v,
46
- limit: t = 4,
47
- onSelectCard: c = () => {
45
+ buttonText: u,
46
+ limit: n = 4,
47
+ onSelectCard: p = () => {
48
48
  },
49
- onButtonAction: T = () => {
49
+ onButtonAction: U = () => {
50
50
  },
51
- isLoading: U = !1,
52
- getImage: u = () => {
51
+ isLoading: g = !1,
52
+ getImage: b = () => {
53
53
  },
54
- negotiableText: p,
55
- freeText: g,
56
- options: a,
57
- onSelectOption: b = () => {
54
+ negotiableText: k,
55
+ freeText: f,
56
+ options: i,
57
+ onSelectOption: y = () => {
58
58
  },
59
59
  productsToolbarName: L = "All",
60
- sponsoredText: k,
61
- onBookmark: f = () => {
60
+ sponsoredText: S,
61
+ onBookmark: C = () => {
62
62
  },
63
- bookmarkComponent: y,
64
- componentName: S
65
- } = n, C = W(), M = E(() => /* @__PURE__ */ o(F, { children: C === !0 ? r == null ? void 0 : r.map((e, i) => /* @__PURE__ */ o(
66
- N,
63
+ bookmarkComponent: h,
64
+ componentName: N
65
+ } = a, w = W(), M = E(() => /* @__PURE__ */ o(F, { children: w === !0 ? r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ o(
66
+ P,
67
67
  {
68
68
  name: e == null ? void 0 : e.name,
69
69
  price: e == null ? void 0 : e.price,
@@ -74,32 +74,32 @@ const K = I.div`
74
74
  uuid: e == null ? void 0 : e.uuid,
75
75
  sponsored: e == null ? void 0 : e.sponsored,
76
76
  imageComponent: e == null ? void 0 : e.imageComponent,
77
- onSelectCard: (D, l) => c({
77
+ onSelectCard: (D, l) => p({
78
78
  uuid: e == null ? void 0 : e.uuid,
79
79
  nameSlug: e == null ? void 0 : e.nameSlug,
80
80
  cardRef: l
81
81
  }),
82
82
  sellerName: e == null ? void 0 : e.sellerName,
83
- imageUrl: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
83
+ imageUrl: b(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
84
84
  isFree: e == null ? void 0 : e.isFree,
85
85
  isNegotiable: e == null ? void 0 : e.isNegotiable,
86
- negotiableText: p,
87
- freeText: g,
86
+ negotiableText: k,
87
+ freeText: f,
88
88
  tags: e == null ? void 0 : e.tags,
89
89
  categoryCode: e == null ? void 0 : e.categoryCode,
90
90
  condition: e == null ? void 0 : e.condition,
91
91
  quantity: e == null ? void 0 : e.quantity,
92
92
  trade: e == null ? void 0 : e.trade,
93
- sponsoredText: k,
94
- onBookmark: f,
95
- bookmarkComponent: y,
93
+ sponsoredText: S,
94
+ onBookmark: C,
95
+ bookmarkComponent: h,
96
96
  bookmarked: e == null ? void 0 : e.bookmarked,
97
97
  bookmarkLists: e == null ? void 0 : e.bookmarkLists,
98
- metadata: { accessor: e == null ? void 0 : e.accessor, name: S }
98
+ metadata: { accessor: e == null ? void 0 : e.accessor, name: N }
99
99
  },
100
- i
101
- )) : r == null ? void 0 : r.slice(0, t).map((e, i) => /* @__PURE__ */ o(
102
- N,
100
+ t
101
+ )) : r == null ? void 0 : r.slice(0, n).map((e, t) => /* @__PURE__ */ o(
102
+ P,
103
103
  {
104
104
  name: e == null ? void 0 : e.name,
105
105
  price: e == null ? void 0 : e.price,
@@ -111,62 +111,62 @@ const K = I.div`
111
111
  location: e == null ? void 0 : e.location,
112
112
  sponsored: e == null ? void 0 : e.sponsored,
113
113
  imageComponent: e == null ? void 0 : e.imageComponent,
114
- onSelectCard: (D, l) => c({
114
+ onSelectCard: (D, l) => p({
115
115
  uuid: e == null ? void 0 : e.uuid,
116
116
  nameSlug: e == null ? void 0 : e.nameSlug,
117
117
  cardRef: l
118
118
  }),
119
- imageUrl: u(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
119
+ imageUrl: b(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
120
120
  isFree: e == null ? void 0 : e.isFree,
121
121
  isNegotiable: e == null ? void 0 : e.isNegotiable,
122
- negotiableText: p,
123
- freeText: g,
122
+ negotiableText: k,
123
+ freeText: f,
124
124
  tags: e == null ? void 0 : e.tags,
125
125
  categoryCode: e == null ? void 0 : e.categoryCode,
126
126
  condition: e == null ? void 0 : e.condition,
127
127
  quantity: e == null ? void 0 : e.quantity,
128
128
  trade: e == null ? void 0 : e.trade,
129
- sponsoredText: k,
130
- onBookmark: f,
131
- bookmarkComponent: y,
129
+ sponsoredText: S,
130
+ onBookmark: C,
131
+ bookmarkComponent: h,
132
132
  bookmarked: e == null ? void 0 : e.bookmarked,
133
133
  bookmarkLists: e == null ? void 0 : e.bookmarkLists,
134
- metadata: { accessor: e == null ? void 0 : e.accessor, name: S },
134
+ metadata: { accessor: e == null ? void 0 : e.accessor, name: N },
135
135
  sellerName: e == null ? void 0 : e.sellerName
136
136
  },
137
- i
138
- )) }), [r, C, t]);
139
- return /* @__PURE__ */ s($, { ref: w, children: [
137
+ t
138
+ )) }), [r, w, n]);
139
+ return /* @__PURE__ */ s($, { ref: v, children: [
140
140
  /* @__PURE__ */ s("div", { className: "regular-title", children: [
141
141
  /* @__PURE__ */ s("div", { className: "regular-title-text", children: [
142
- h(m) && /* @__PURE__ */ o("i", { className: m }),
143
- /* @__PURE__ */ o("span", { children: P })
142
+ m(d) && /* @__PURE__ */ o("i", { className: d }),
143
+ /* @__PURE__ */ o("span", { children: T })
144
144
  ] }),
145
- h(d) && /* @__PURE__ */ o(
145
+ m(c) && m(u) && !g && /* @__PURE__ */ o(
146
146
  R,
147
147
  {
148
148
  type: "button",
149
149
  btnType: "tinted",
150
150
  color: "neutral",
151
151
  onClick: (e) => {
152
- var i;
153
- (i = e == null ? void 0 : e.target) == null || i.blur(), T(d);
152
+ var t;
153
+ (t = e == null ? void 0 : e.target) == null || t.blur(), U(c);
154
154
  },
155
155
  borderRadius: "curved",
156
156
  className: "button-link",
157
- children: v
157
+ children: u
158
158
  }
159
159
  )
160
160
  ] }),
161
- (a == null ? void 0 : a.length) > 0 && /* @__PURE__ */ o(
161
+ (i == null ? void 0 : i.length) > 0 && /* @__PURE__ */ o(
162
162
  A,
163
163
  {
164
- items: a,
164
+ items: i,
165
165
  onRemove: (e) => {
166
- b(e);
166
+ y(e);
167
167
  },
168
168
  onSelect: (e) => {
169
- b(e);
169
+ y(e);
170
170
  },
171
171
  labelKey: "name",
172
172
  valueKey: "code",
@@ -174,15 +174,14 @@ const K = I.div`
174
174
  productsToolbarName: L
175
175
  }
176
176
  ),
177
- /* @__PURE__ */ o(K, { limit: t, children: /* @__PURE__ */ o(
177
+ /* @__PURE__ */ o(
178
178
  z,
179
179
  {
180
- isLoading: U,
181
- limit: t,
182
- keyPrefix: "explore-landing",
183
- children: M
180
+ isLoading: g,
181
+ keyPrefix: "detailed-products-skeleton",
182
+ children: /* @__PURE__ */ o(K, { limit: n, children: M })
184
183
  }
185
- ) })
184
+ )
186
185
  ] });
187
186
  });
188
187
  export {
@@ -4,7 +4,7 @@ import { P as e } from "./index-CblbdqjE.js";
4
4
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import W from "./FlexGrid.js";
6
6
  import A from "./FlexGridItem.js";
7
- import { c as Y, b as B, g as U, a as q } from "./utils-BdsZgOUE.js";
7
+ import { c as Y, b as B, g as U, a as q } from "./utils-DHfRApMf.js";
8
8
  import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
9
  import H from "./Button.js";
10
10
  import c from "./IconButton.js";
@@ -2,7 +2,7 @@ import { jsxs as f, jsx as r, Fragment as V } from "react/jsx-runtime";
2
2
  import { forwardRef as F, useState as w, useEffect as x, useRef as T, useCallback as j } from "react";
3
3
  import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { P as i } from "./index-CblbdqjE.js";
5
- import { b as u, a as R, c as E, d as O } from "./utils-BdsZgOUE.js";
5
+ import { b as u, a as R, c as E, d as O } from "./utils-DHfRApMf.js";
6
6
  import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const L = ({ theme: e, size: k }) => {
8
8
  var s = O(e, k);
@@ -5,7 +5,7 @@ import { s as Ia } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import Na from "./Icon.js";
6
6
  import { b as R } from "./tslib.es6-DQ-SzcmG.js";
7
7
  import Ei from "./Button.js";
8
- import { b as Ua } from "./utils-BdsZgOUE.js";
8
+ import { b as Ua } from "./utils-DHfRApMf.js";
9
9
  import { u as Fi } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
10
  const Ai = /* @__PURE__ */ new Map([
11
11
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
@@ -4,7 +4,7 @@ import { P as e } from "./index-CblbdqjE.js";
4
4
  import { s as V } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import E from "./DragAndDropFile.js";
6
6
  import W from "./UploadedFile.js";
7
- import { b as q, a as H } from "./utils-BdsZgOUE.js";
7
+ import { b as q, a as H } from "./utils-DHfRApMf.js";
8
8
  import J from "./FlexGrid.js";
9
9
  import h from "./FlexGridItem.js";
10
10
  import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
package/dist/Drawer.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as I } from "react/jsx-runtime";
2
2
  import b, { useRef as T, useEffect as j, useMemo as B, forwardRef as M, useState as q, useImperativeHandle as F } from "react";
3
3
  import { P as r } from "./index-CblbdqjE.js";
4
4
  import { C as H } from "./emotion-react.browser.esm-DUVZ5oEL.js";
5
- import { b as Z, c as V } from "./utils-BdsZgOUE.js";
5
+ import { b as Z, c as V } from "./utils-DHfRApMf.js";
6
6
  import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  function $() {
8
8
  return $ = Object.assign || function(n) {
package/dist/Dropdown.js CHANGED
@@ -2,8 +2,8 @@ import { jsx as g } from "react/jsx-runtime";
2
2
  import { P as e } from "./index-CblbdqjE.js";
3
3
  import * as O from "react";
4
4
  import { forwardRef as t, useCallback as y } from "react";
5
- import { u as S, S as M, a as h } from "./CustomStyles-SyQRnjuy.js";
6
- import { c as H } from "./CustomStyles-SyQRnjuy.js";
5
+ import { u as S, S as M, a as h } from "./CustomStyles-ArAVZsIj.js";
6
+ import { c as H } from "./CustomStyles-ArAVZsIj.js";
7
7
  import { _ as C, u as x } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  import "./index-B1vKwsDE.js";
9
9
  import { d as I } from "./index-Dt62UGku.js";
@@ -3,7 +3,7 @@ import { forwardRef as J, useRef as Q, useState as W, useEffect as X } from "rea
3
3
  import { P as l } from "./index-CblbdqjE.js";
4
4
  import { s as Z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import M from "./Icon.js";
6
- import { b as t, c as I, h as N } from "./utils-BdsZgOUE.js";
6
+ import { b as t, c as I, h as N } from "./utils-DHfRApMf.js";
7
7
  import { u as ee } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  const ne = Z.div`
9
9
  box-sizing: border-box;
@@ -3,7 +3,7 @@ import { P as e } from "./index-CblbdqjE.js";
3
3
  import * as Oe from "react";
4
4
  import { useRef as G, useState as a, useEffect as W, useCallback as j, forwardRef as J } from "react";
5
5
  import { _ as me, u as be } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
- import { _ as Se, b as s, h as ge, d as C, u as he, S as ve, a as ye } from "./CustomStyles-SyQRnjuy.js";
6
+ import { _ as Se, b as s, h as ge, d as C, u as he, S as ve, a as ye } from "./CustomStyles-ArAVZsIj.js";
7
7
  import { _ as _e } from "./defineProperty-DF3p0mVo.js";
8
8
  import "./index-B1vKwsDE.js";
9
9
  import { d as Ie } from "./index-Dt62UGku.js";
@@ -3,7 +3,7 @@ import { forwardRef as K, useRef as l, useState as L, Children as U, isValidElem
3
3
  import { P as o } from "./index-CblbdqjE.js";
4
4
  import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import $ from "./Button.js";
6
- import { b as q } from "./utils-BdsZgOUE.js";
6
+ import { b as q } from "./utils-DHfRApMf.js";
7
7
  import { useTheme as A } from "./ThemeProvider.js";
8
8
  import G from "./Popover.js";
9
9
  import H from "./PopoverTrigger.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, Fragment as $, jsxs as U } from "react/jsx-runtime";
2
2
  import { useState as X, useRef as A, useEffect as F, createElement as Z, forwardRef as ee, useImperativeHandle as re } from "react";
3
3
  import { P as r } from "./index-CblbdqjE.js";
4
- import { c as z, r as G, i as V } from "./utils-BdsZgOUE.js";
4
+ import { c as z, r as G, i as V } from "./utils-DHfRApMf.js";
5
5
  import te from "./Table.js";
6
6
  import { s as Y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
7
  import N from "./TextInput.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as d } from "react";
3
- import { k as t } from "./utils-BdsZgOUE.js";
3
+ import { k as t } from "./utils-DHfRApMf.js";
4
4
  import m from "./Button.js";
5
5
  import { q as f } from "./styled-components.browser.esm-D-n22PJk.js";
6
6
  import { M as g } from "./consts-BuFChS64.js";
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("react"),s=require("./utils-Dl9xPH4c.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),R=require("./Icon.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),z=_.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),p=require("react"),w=require("./utils-Dl9xPH4c.cjs"),F=require("./Icon.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),P=f.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -37,7 +37,7 @@
37
37
  font-style: normal;
38
38
  font-weight: 500;
39
39
  line-height: 1.5rem;
40
- ${s.truncateTextInRows(2)}
40
+ ${w.truncateTextInRows(2)}
41
41
  }
42
42
 
43
43
  & .wrapper__description {
@@ -47,11 +47,11 @@
47
47
  font-weight: 400;
48
48
  line-height: 1rem;
49
49
  letter-spacing: 0.025rem;
50
- ${s.truncateTextInRows(2)}
50
+ ${w.truncateTextInRows(2)}
51
51
  }
52
52
  }
53
53
 
54
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
54
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
55
55
  & .wrapper__content {
56
56
  & .wrapper__title {
57
57
  font-size: 0.875rem;
@@ -63,12 +63,7 @@
63
63
  }
64
64
  }
65
65
  }
66
- `,S=_.styled.div`
67
- width: 100%;
68
- height: 11.625rem;
69
- border-radius: 0.75rem;
70
- background: ${s.linearGradientAnimation("-90deg")};
71
- `,C=_.styled.div`
66
+ `,q=f.styled.div`
72
67
  display: flex;
73
68
  flex-direction: column;
74
69
  align-items: center;
@@ -109,7 +104,7 @@
109
104
  font-weight: 400;
110
105
  line-height: 1.5rem;
111
106
  max-width: 8rem;
112
- ${s.truncateTextInRows(2)}
107
+ ${w.truncateTextInRows(2)}
113
108
  }
114
109
 
115
110
  &.active {
@@ -119,7 +114,7 @@
119
114
  }
120
115
  }
121
116
 
122
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
117
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
123
118
  max-width: unset;
124
119
  min-width: unset;
125
120
  flex-direction: row;
@@ -159,17 +154,7 @@
159
154
  max-width: unset;
160
155
  }
161
156
  }
162
- `,L=_.styled.div`
163
- width: 7.5rem;
164
- width: 7.5rem;
165
- border-radius: 999px;
166
- background: ${s.linearGradientAnimation("-90deg")};
167
-
168
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
169
- width: 7.5rem;
170
- height: 2.5rem;
171
- }
172
- `,O=l.forwardRef(({},t)=>r.jsx(L,{})),F=l.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:n=()=>{}},d)=>r.jsxs(C,{ref:d,className:o?"active":"",onClick:n,children:[r.jsx(R,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),A=l.forwardRef(({image:t,imageComponent:o,title:i,description:n,className:d,onSelectCard:g=()=>{}},u)=>{const{theme:y}=q.useTheme();return r.jsxs(z,{ref:u,theme:y,className:d,onClick:g,children:[s.isDefined(o)?o:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),T=l.forwardRef(({},t)=>r.jsxs(S,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),W=_.styled.div`
157
+ `,O=p.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:a=()=>{}},h)=>e.jsxs(q,{ref:h,className:o?"active":"",onClick:a,children:[e.jsx(F,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),z=p.forwardRef(({image:t,imageComponent:o,title:i,description:a,className:h,onSelectCard:u=()=>{}},y)=>{const{theme:j}=N.useTheme();return e.jsxs(P,{ref:y,theme:j,className:h,onClick:u,children:[w.isDefined(o)?o:e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[i&&e.jsx("div",{className:"wrapper__title",children:i}),a&&e.jsx("div",{className:"wrapper__description",children:a})]})]})}),R=f.styled.div`
173
158
  display: flex;
174
159
  flex-direction: column;
175
160
  align-items: center;
@@ -224,7 +209,7 @@
224
209
  }
225
210
  }
226
211
 
227
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
212
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
228
213
  gap: 1rem;
229
214
 
230
215
  & .wrapper__tags {
@@ -251,4 +236,14 @@
251
236
  grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
252
237
  }
253
238
  }
254
- `,B=l.forwardRef(({title:t,subtitle:o,tags:i=[],items:n=[],limitTags:d=5,limitTagsForMobile:g=5,limit:u=3,limitForMobile:y=2,selectedTag:I,onSelectTag:v=()=>{},onSelectCard:b=()=>{},className:p},E)=>{var k,$;return l.useLayoutEffect(()=>{if(!s.isDefinedNotEmptyString(p))return;const e=()=>{const c=document.querySelector(`.${p} .wrapper__cards`),m=c.querySelectorAll(".wrapper__card");m.forEach(f=>{const N=f.getBoundingClientRect().height,M=Math.ceil((N+10)/20);f.style.gridRowEnd=`span ${M}`});const j=m==null?void 0:m[m.length-1];if(j){const f=j.offsetTop+j.offsetHeight;c.style.height=`${f}px`}},h=document.querySelector(`.${p} .wrapper__cards`).querySelectorAll(".wrapper__image");let w=0;return h.length===0?e():(h.forEach(c=>{c.complete?w++:c.addEventListener("load",()=>{w++,w===h.length&&e()})}),w===h.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[p,n]),r.jsxs(W,{ref:E,limitTags:d,limitTagsForMobile:g,limitCards:u,limitCardsForMobile:y,className:p,numberOfTags:i==null?void 0:i.length,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__tags__external",children:r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(F,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===I,onSelectCard:()=>v==null?void 0:v(e)},`field-of-interests-masonry-tag__${a+1}`)):(k=Array.from("12345"))==null?void 0:k.map((e,a)=>r.jsx(O,{},`field-of-interests-masonry-tag-skeleton__${a+1}`))})}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,a)=>r.jsx(A,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>b==null?void 0:b(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,a)=>r.jsx(T,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=B;
239
+ `,I=f.styled(n.SkeletonRowWrapper)`
240
+ &.skeleton__tags {
241
+ max-width: 50rem;
242
+ }
243
+
244
+ @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
245
+ &.skeleton__tags {
246
+ overflow-x: hidden;
247
+ }
248
+ }
249
+ `,W=({keyPrefix:t})=>e.jsxs(I,{className:"skeleton__tags",children:[e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-1`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-2`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-3`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-4`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-5`)]}),T=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(W,{keyPrefix:t}):a}),B=({keyPrefix:t})=>e.jsxs(I,{className:"skeleton__cards",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-1`),e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`)]}),G=({keyPrefix:t,isLoading:o=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:i,children:o===!0?e.jsx(B,{keyPrefix:t}):a}),X=p.forwardRef(({title:t,subtitle:o,tags:i=[],items:a=[],limitTags:h=5,limitTagsForMobile:u=5,limit:y=3,limitForMobile:j=2,selectedTag:$,onSelectTag:v=()=>{},onSelectCard:k=()=>{},className:m,isLoadingTags:C=!1,isLoadingCards:S=!1},L)=>(p.useLayoutEffect(()=>{if(!w.isDefinedNotEmptyString(m))return;const r=()=>{const c=document==null?void 0:document.querySelector(`.${m} .wrapper__cards`),l=c==null?void 0:c.querySelectorAll(".wrapper__card");l==null||l.forEach(x=>{const E=x.getBoundingClientRect().height,M=Math.ceil((E+10)/20);x.style.gridRowEnd=`span ${M}`});const b=l==null?void 0:l[(l==null?void 0:l.length)-1];if(b){const x=b.offsetTop+b.offsetHeight;c.style.height=`${x}px`}},d=document==null?void 0:document.querySelector(`.${m} .wrapper__cards`),s=d==null?void 0:d.querySelectorAll(".wrapper__image");let _=0;return(s==null?void 0:s.length)===0?r():(s==null||s.forEach(c=>{c.complete?_++:c.addEventListener("load",()=>{_++,_===(s==null?void 0:s.length)&&r()})}),_===(s==null?void 0:s.length)&&r()),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[m,a,S]),e.jsxs(R,{ref:L,limitTags:h,limitTagsForMobile:u,limitCards:y,limitCardsForMobile:j,className:m,numberOfTags:i==null?void 0:i.length,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),o&&e.jsx("div",{className:"wrapper__subtitle",children:o})]}),e.jsx(T,{isLoading:C,keyPrefix:"field-of-interests-masonry-tag",children:e.jsx("div",{className:"wrapper__tags__external",children:e.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((r,d)=>e.jsx(O,{icon:r==null?void 0:r.icon,text:r==null?void 0:r.title,isActive:(r==null?void 0:r.code)===$,onSelectCard:()=>v==null?void 0:v(r)},`field-of-interests-masonry-tag__${d+1}`))})})}),e.jsx(G,{isLoading:S,keyPrefix:"field-of-interests-masonry-card",children:e.jsx("div",{className:"wrapper__cards",children:a==null?void 0:a.map((r,d)=>e.jsx(z,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,title:r==null?void 0:r.title,description:r==null?void 0:r.description,onSelectCard:()=>k==null?void 0:k(r),className:"wrapper__card"},`field-of-interests-with-tags-card__${d+1}`))})})]})));module.exports=X;