@lanaco/lnc-react-ui 4.0.32 → 4.0.33

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 (186) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerSectionWithList.cjs +1 -1
  14. package/dist/BannerSectionWithList.js +1 -1
  15. package/dist/BlogsSectionDetailed.cjs +111 -0
  16. package/dist/BlogsSectionDetailed.js +224 -0
  17. package/dist/BlogsSectionLarge.cjs +101 -0
  18. package/dist/BlogsSectionLarge.js +177 -0
  19. package/dist/BlogsSectionSimple.cjs +71 -0
  20. package/dist/BlogsSectionSimple.js +158 -0
  21. package/dist/BlogsSectionSimpleCentered.cjs +78 -0
  22. package/dist/BlogsSectionSimpleCentered.js +149 -0
  23. package/dist/BlogsSectionWithFilters.cjs +173 -0
  24. package/dist/BlogsSectionWithFilters.js +559 -0
  25. package/dist/BrandHitsSection.cjs +11 -7
  26. package/dist/BrandHitsSection.js +9 -5
  27. package/dist/Breadcrumbs.cjs +1 -1
  28. package/dist/Breadcrumbs.js +1 -1
  29. package/dist/Button.cjs +1 -1
  30. package/dist/Button.js +1 -1
  31. package/dist/ButtonGroup.cjs +1 -1
  32. package/dist/ButtonGroup.js +1 -1
  33. package/dist/CheckBoxInput.cjs +1 -1
  34. package/dist/CheckBoxInput.js +1 -1
  35. package/dist/Chip.cjs +1 -1
  36. package/dist/Chip.js +1 -1
  37. package/dist/ColorInput.cjs +1 -1
  38. package/dist/ColorInput.js +1 -1
  39. package/dist/ConfirmationForm.cjs +1 -1
  40. package/dist/ConfirmationForm.js +1 -1
  41. package/dist/CustomLoanMapSection.cjs +240 -0
  42. package/dist/CustomLoanMapSection.js +410 -0
  43. package/dist/{CustomStyles-DuADCM-0.js → CustomStyles-C45a_Y92.js} +1 -1
  44. package/dist/{CustomStyles-CBON9fD-.cjs → CustomStyles-jdvxQvK1.cjs} +1 -1
  45. package/dist/DateInput.cjs +1 -1
  46. package/dist/DateInput.js +1 -1
  47. package/dist/DecimalInput.cjs +1 -1
  48. package/dist/DecimalInput.js +1 -1
  49. package/dist/DecimalInputV2.cjs +1 -1
  50. package/dist/DecimalInputV2.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +3 -3
  53. package/dist/DetailsView.cjs +1 -1
  54. package/dist/DetailsView.js +1 -1
  55. package/dist/DoubleRangeSlider.cjs +1 -1
  56. package/dist/DoubleRangeSlider.js +1 -1
  57. package/dist/DragAndDropFile.cjs +1 -1
  58. package/dist/DragAndDropFile.js +1 -1
  59. package/dist/DragDropFiles.cjs +1 -1
  60. package/dist/DragDropFiles.js +1 -1
  61. package/dist/Drawer.cjs +1 -1
  62. package/dist/Drawer.js +1 -1
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +2 -2
  65. package/dist/DropdownItem.cjs +1 -1
  66. package/dist/DropdownItem.js +1 -1
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +1 -1
  69. package/dist/DropdownMenu.cjs +1 -1
  70. package/dist/DropdownMenu.js +1 -1
  71. package/dist/EditableTable.cjs +1 -1
  72. package/dist/EditableTable.js +1 -1
  73. package/dist/FieldOfInterestsMasonrySection.cjs +7 -7
  74. package/dist/FieldOfInterestsMasonrySection.js +23 -23
  75. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +11 -7
  76. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +62 -58
  77. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +37 -17
  78. package/dist/FieldOfInterestsWithTagsCardsSection.js +68 -48
  79. package/dist/FileInput.cjs +1 -1
  80. package/dist/FileInput.js +1 -1
  81. package/dist/FlexGridItem.cjs +1 -1
  82. package/dist/FlexGridItem.js +1 -1
  83. package/dist/FormField.cjs +1 -1
  84. package/dist/FormField.js +1 -1
  85. package/dist/FormView.cjs +1 -1
  86. package/dist/FormView.js +1 -1
  87. package/dist/GeneralWithTagsCardsSection.cjs +198 -0
  88. package/dist/GeneralWithTagsCardsSection.js +287 -0
  89. package/dist/GiftCardsSection.cjs +11 -7
  90. package/dist/GiftCardsSection.js +34 -30
  91. package/dist/Icon.cjs +1 -1
  92. package/dist/Icon.js +1 -1
  93. package/dist/IconButton.cjs +1 -1
  94. package/dist/IconButton.js +1 -1
  95. package/dist/Kanban.cjs +1 -1
  96. package/dist/Kanban.js +1 -1
  97. package/dist/KanbanActionsToolbar.cjs +1 -1
  98. package/dist/KanbanActionsToolbar.js +1 -1
  99. package/dist/KanbanView.cjs +1 -1
  100. package/dist/KanbanView.js +1 -1
  101. package/dist/Link.cjs +1 -1
  102. package/dist/Link.js +1 -1
  103. package/dist/MasonryGeneralCardsSection.cjs +6 -6
  104. package/dist/MasonryGeneralCardsSection.js +38 -36
  105. package/dist/MenuItem.cjs +1 -1
  106. package/dist/MenuItem.js +1 -1
  107. package/dist/Modal.cjs +1 -1
  108. package/dist/Modal.js +1 -1
  109. package/dist/MultiSelectDropdown.cjs +1 -1
  110. package/dist/MultiSelectDropdown.js +1 -1
  111. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  112. package/dist/MultiSelectDropdownLookup.js +1 -1
  113. package/dist/NestedDropdownItem.cjs +1 -1
  114. package/dist/NestedDropdownItem.js +1 -1
  115. package/dist/NestedMenuItem.cjs +1 -1
  116. package/dist/NestedMenuItem.js +1 -1
  117. package/dist/NotificationContainer.cjs +1 -1
  118. package/dist/NotificationContainer.js +1 -1
  119. package/dist/NotificationMessage.cjs +1 -1
  120. package/dist/NotificationMessage.js +1 -1
  121. package/dist/NumberInput.cjs +1 -1
  122. package/dist/NumberInput.js +1 -1
  123. package/dist/OverlayGeneralCardsSection.cjs +127 -0
  124. package/dist/OverlayGeneralCardsSection.js +183 -0
  125. package/dist/PasswordInput.cjs +1 -1
  126. package/dist/PasswordInput.js +1 -1
  127. package/dist/PopoverContent.cjs +1 -1
  128. package/dist/PopoverContent.js +1 -1
  129. package/dist/ProductsWithBannerSection.cjs +1 -1
  130. package/dist/ProductsWithBannerSection.js +2 -2
  131. package/dist/ProgressBar.cjs +1 -1
  132. package/dist/ProgressBar.js +1 -1
  133. package/dist/RadioInput.cjs +1 -1
  134. package/dist/RadioInput.js +1 -1
  135. package/dist/RangeSlider.cjs +1 -1
  136. package/dist/RangeSlider.js +1 -1
  137. package/dist/Separator.cjs +1 -1
  138. package/dist/Separator.js +1 -1
  139. package/dist/ShopCardsSection.cjs +8 -8
  140. package/dist/ShopCardsSection.js +49 -49
  141. package/dist/Sidebar.cjs +1 -1
  142. package/dist/Sidebar.js +1 -1
  143. package/dist/SimpleCategoriesSection.cjs +81 -0
  144. package/dist/SimpleCategoriesSection.js +153 -0
  145. package/dist/SimpleProductsSection.cjs +1 -1
  146. package/dist/SimpleProductsSection.js +1 -1
  147. package/dist/Spinner.cjs +1 -1
  148. package/dist/Spinner.js +1 -1
  149. package/dist/Surface.cjs +1 -1
  150. package/dist/Surface.js +1 -1
  151. package/dist/SwipeableDrawer.cjs +1 -1
  152. package/dist/SwipeableDrawer.js +1 -1
  153. package/dist/TabItem.cjs +1 -1
  154. package/dist/TabItem.js +1 -1
  155. package/dist/Table.cjs +1 -1
  156. package/dist/Table.js +1 -1
  157. package/dist/TableView.cjs +1 -1
  158. package/dist/TableView.js +1 -1
  159. package/dist/TextAreaInput.cjs +1 -1
  160. package/dist/TextAreaInput.js +1 -1
  161. package/dist/TextInput.cjs +1 -1
  162. package/dist/TextInput.js +1 -1
  163. package/dist/ThemeProvider.cjs +1 -1
  164. package/dist/ThemeProvider.js +1 -1
  165. package/dist/TimeInput.cjs +1 -1
  166. package/dist/TimeInput.js +1 -1
  167. package/dist/Toggle.cjs +1 -1
  168. package/dist/Toggle.js +1 -1
  169. package/dist/TreeMenuSeparator.cjs +1 -1
  170. package/dist/TreeMenuSeparator.js +1 -1
  171. package/dist/UploadedFile.cjs +1 -1
  172. package/dist/UploadedFile.js +1 -1
  173. package/dist/UrgentSaleProductsSection.cjs +1 -1
  174. package/dist/UrgentSaleProductsSection.js +1 -1
  175. package/dist/{index-jVpIwR2G.js → index-BfOdDcQF.js} +1 -1
  176. package/dist/{index-BlV3tdJ8.cjs → index-CC_hdGKn.cjs} +1 -1
  177. package/dist/{index-DGl-lSfF.js → index-DZxSlQJQ.js} +1 -1
  178. package/dist/{index-LdP7U1Yl.cjs → index-Dld_cRbm.cjs} +1 -1
  179. package/dist/index.cjs +1 -1
  180. package/dist/index.js +25 -23
  181. package/dist/{style-C3OB0uad.cjs → style-CeMnBJ6v.cjs} +4 -4
  182. package/dist/{style-Ch-xOasu.js → style-D6sNCRwG.js} +6 -7
  183. package/dist/{utils-CE6bljYe.cjs → utils-UJt-R-G3.cjs} +7 -7
  184. package/dist/{utils-DtEdJZWa.js → utils-xpQsPsCa.js} +33 -33
  185. package/package.json +13 -3
  186. package/vite.config.js +36 -0
@@ -0,0 +1,559 @@
1
+ import { jsxs as c, jsx as t, Fragment as _ } from "react/jsx-runtime";
2
+ import ee, { forwardRef as C, useState as $, useMemo as re, useEffect as j, useRef as x, useImperativeHandle as te } from "react";
3
+ import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as R } from "./consts-DNVz1x1I.js";
5
+ import { u as P } from "./useDetectMobile-BookNOsk.js";
6
+ import { m as z, t as le, l as oe, k as G } from "./utils-xpQsPsCa.js";
7
+ import { T as ie } from "./style-D6sNCRwG.js";
8
+ import H from "./Button.js";
9
+ import ne from "./Link.js";
10
+ import { P as o } from "./index-S5Cd7WrG.js";
11
+ import ae from "./FlexBox.js";
12
+ import L from "./IconButton.js";
13
+ import { useTheme as se } from "./ThemeProvider.js";
14
+ import { u as ce } from "./useUpdateEffect-CuYWz7EA.js";
15
+ import de from "./Icon.js";
16
+ const me = I.div`
17
+ display: grid;
18
+ grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
19
+ gap: 1.25rem;
20
+
21
+ @media (max-width: ${R + "px"}) {
22
+ grid-template-columns: repeat(1, 1fr);
23
+ }
24
+ `, U = I.div`
25
+ display: flex;
26
+ width: 100%;
27
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
28
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
29
+ background-color: var(--white);
30
+ border-radius: 0.75rem;
31
+ border: 1px solid var(--gray-95008);
32
+ overflow: hidden;
33
+ gap: 0.75rem;
34
+ padding: 1rem;
35
+ min-height: 10.375rem;
36
+ max-height: 10.375rem;
37
+
38
+ & img {
39
+ max-width: 3.3125rem;
40
+ min-width: 3.3125rem;
41
+ min-height: 3.3125rem;
42
+ max-height: 3.3125rem;
43
+ border-radius: 0.75rem;
44
+ object-fit: cover;
45
+ }
46
+
47
+ & .skeleton-img {
48
+ max-width: 3.3125rem;
49
+ min-width: 3.3125rem;
50
+ min-height: 3.3125rem;
51
+ max-height: 3.3125rem;
52
+ border-radius: 0.75rem;
53
+ background-color: ${z("-90deg")};
54
+ }
55
+
56
+ & a {
57
+ margin-top: auto;
58
+ }
59
+
60
+ @media (max-width: ${R + "px"}) {
61
+ }
62
+ `, X = I.div`
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 0.5rem;
66
+ color: var(--gray-950, #14161a);
67
+
68
+ & .text-wr-title {
69
+ font-weight: 600;
70
+ font-size: 1rem;
71
+ }
72
+
73
+ & .skeleton-title {
74
+ height: 1.5rem;
75
+ width: 80%;
76
+ background-color: ${z("-90deg")};
77
+ }
78
+
79
+ & .skeleton-action {
80
+ height: 1.25rem;
81
+ width: 20%;
82
+ background-color: ${z("-90deg")};
83
+ }
84
+
85
+ & .text-wr {
86
+ font-weight: 400;
87
+ font-size: 0.875rem;
88
+ color: var(--gray-700, #4e555f);
89
+ ${le(3)}
90
+ }
91
+ `;
92
+ C(({}, r) => /* @__PURE__ */ c(U, { className: "blog-card", children: [
93
+ /* @__PURE__ */ c(X, { children: [
94
+ /* @__PURE__ */ t("div", { className: "skeleton-title" }),
95
+ /* @__PURE__ */ t("div", { className: "text-wr" }),
96
+ /* @__PURE__ */ t("div", { className: "skeleton-action" })
97
+ ] }),
98
+ /* @__PURE__ */ t("div", { className: "skeleton-img" })
99
+ ] }));
100
+ const F = C((r, b) => {
101
+ const { title: a, image: n, text: i, buttonText: u, onCardClick: s } = r;
102
+ return (
103
+ // <SimpleBlogCardHorizontalSkeleton />
104
+ /* @__PURE__ */ c(U, { className: "blog-card", onClick: s, children: [
105
+ /* @__PURE__ */ c(X, { children: [
106
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: a }),
107
+ /* @__PURE__ */ t("div", { className: "text-wr", children: i }),
108
+ /* @__PURE__ */ t(ne, { color: "gray", onClick: s, children: u })
109
+ ] }),
110
+ /* @__PURE__ */ t("img", { src: n })
111
+ ] })
112
+ );
113
+ }), ue = I.div`
114
+ position: relative;
115
+ padding: ${(r) => r.padding};
116
+
117
+ & button {
118
+ white-space: nowrap;
119
+ }
120
+
121
+ & .badge-button {
122
+ ${(r) => r.showTimesBtn === !0 && "padding-left: 0.5rem; padding-right: 0.5rem;"}
123
+ }
124
+
125
+ & .gradient {
126
+ position: absolute;
127
+ top: 50%;
128
+ transform: translate(0, -50%);
129
+ z-index: 4;
130
+ transition: ${"0.3s"};
131
+ right: ${(r) => r.noArrows !== !0 ? "6rem" : "0"};
132
+ width: 2rem;
133
+ background: #fff;
134
+ height: 100%;
135
+ -webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
136
+ mask-image: linear-gradient(to left, black 10%, transparent 50%);
137
+ }
138
+
139
+ & .scrollable-container {
140
+ max-width: -webkit-fill-available;
141
+ max-width: -moz-available; /* WebKit-based browsers will ignore this. */
142
+ max-width: fill-available;
143
+
144
+ ${(r) => r.rightAlignArrows === !0 && r.noArrows !== !0 && "margin-right: 6rem"};
145
+ scroll-behavior: smooth;
146
+ overflow: hidden;
147
+ -webkit-overflow-scrolling: touch;
148
+ ::-webkit-scrollbar {
149
+ -webkit-appearance: none;
150
+ }
151
+ -ms-overflow-style: none;
152
+ /* Internet Explorer 10+ */
153
+ scrollbar-width: none;
154
+ /* Firefox */
155
+
156
+ &::-webkit-scrollbar {
157
+ display: none;
158
+ /* Safari and Chrome */
159
+ }
160
+
161
+ @media (max-width: ${R + "px"}) {
162
+ margin-right: 0;
163
+ }
164
+ }
165
+ & .scroll-arrow-right,
166
+ & .scroll-arrow-left {
167
+ position: absolute;
168
+ top: 50%;
169
+ transform: translate(0, -50%);
170
+ display: flex;
171
+ justify-content: center;
172
+ align-items: center;
173
+ cursor: pointer;
174
+
175
+ visibility: ${(r) => r.arrowsVisibleOnHover === !1 && r.hasOverflow ? "visible" : "hidden"};
176
+ z-index: 4;
177
+ transition: ${"0.3s"};
178
+ }
179
+ & .scroll-arrow-right {
180
+ ${(r) => r.rightAlignArrows === !0 ? "right: 0" : "right: 0.7rem"};
181
+ }
182
+ & .scroll-arrow-left {
183
+ ${(r) => r.rightAlignArrows === !0 ? "right: 2.625rem" : "left: 0.7rem"};
184
+ }
185
+ & .scrollable-container:hover > .scroll-arrow-left,
186
+ & .scrollable-container:hover > .scroll-arrow-right {
187
+ visibility: ${(r) => r.hasOverflow ? "visible" : "hidden"};
188
+ }
189
+
190
+ @media (max-width: ${R + "px"}) {
191
+ & .scrollable-container {
192
+ overflow: auto;
193
+ }
194
+ & .scroll-arrow-left,
195
+ & .scroll-arrow-right {
196
+ display: none;
197
+ }
198
+
199
+ & .gradient {
200
+ right: 0;
201
+ }
202
+
203
+ & .scrollable-container button:nth-of-type(3) {
204
+ ${(r) => r.noMargin !== !0 && "margin-left: 1rem"};
205
+ }
206
+ }
207
+ `, ge = (r) => {
208
+ const [b, a] = $(!1), n = re(
209
+ () => new IntersectionObserver(
210
+ ([i]) => a(i.isIntersecting)
211
+ ),
212
+ []
213
+ );
214
+ return j(() => (n.observe(r.current), () => {
215
+ n.disconnect();
216
+ }), [r, n]), b;
217
+ }, he = I.div`
218
+ min-height: 1px;
219
+ ${(r) => r.isHorizontal === !0 ? "min-width: 1px; width: 1px;" : "width: 100%;"}
220
+ `, K = C((r, b) => {
221
+ const {
222
+ onIsVisible: a = () => {
223
+ },
224
+ onIsNotVisible: n,
225
+ isHorizontal: i = !1,
226
+ className: u = ""
227
+ } = r, s = x(null), d = ge(s);
228
+ return ce(() => {
229
+ d ? a() : n == null || n();
230
+ }, [d]), /* @__PURE__ */ t(
231
+ he,
232
+ {
233
+ ref: s,
234
+ className: `scroller-element ${u}`,
235
+ isHorizontal: i
236
+ }
237
+ );
238
+ });
239
+ K.propTypes = {
240
+ onIsVisible: o.func,
241
+ /**
242
+ * For horizontal scroll InfiniteScrollEndElement has to have some widh otherwise it won't ever be visible and trigger onIsVisible callback
243
+ */
244
+ isHorizontal: o.bool
245
+ };
246
+ const Z = ee.forwardRef(
247
+ ({
248
+ columnGap: r = "2rem",
249
+ rowGap: b = "1.25rem",
250
+ scrollBySize: a = 300,
251
+ wrapForMobile: n = !1,
252
+ wrap: i = !1,
253
+ children: u,
254
+ methodsRef: s,
255
+ arrowsVisibleOnHover: d = !0,
256
+ rightAlignArrows: S = !1,
257
+ padding: p = "0",
258
+ showTimesBtn: w,
259
+ noArrows: e,
260
+ noGradient: h = !1,
261
+ hideDisabledArrows: v = !1,
262
+ noMargin: k = !1,
263
+ ...A
264
+ }, B) => {
265
+ const W = P(), { theme: l } = se(), [g, N] = $(!1), [y, T] = $(!1), [J, O] = $(!0), m = x(), E = () => {
266
+ var f;
267
+ (f = m.current) == null || f.scrollBy(a, 0);
268
+ }, V = () => {
269
+ var f;
270
+ (f = m.current) == null || f.scrollBy(-a, 0);
271
+ }, [M, Q] = $(!1);
272
+ j(() => {
273
+ var f, D;
274
+ Q(
275
+ ((f = m == null ? void 0 : m.current) == null ? void 0 : f.scrollWidth) > ((D = m == null ? void 0 : m.current) == null ? void 0 : D.clientWidth)
276
+ );
277
+ }, [u]), te(s, () => ({
278
+ scrollToEnd() {
279
+ Y();
280
+ },
281
+ scrollLeft() {
282
+ V();
283
+ },
284
+ scrollRight() {
285
+ E();
286
+ }
287
+ }));
288
+ const Y = () => {
289
+ m.current.scrollLeft = m.current.scrollWidth;
290
+ };
291
+ return /* @__PURE__ */ t(
292
+ ue,
293
+ {
294
+ ref: B,
295
+ arrowsVisibleOnHover: d,
296
+ hasOverflow: M,
297
+ noArrows: e,
298
+ padding: p,
299
+ rightAlignArrows: S,
300
+ showTimesBtn: w,
301
+ theme: l,
302
+ noMargin: k,
303
+ ...A,
304
+ children: /* @__PURE__ */ c(
305
+ ae,
306
+ {
307
+ ref: m,
308
+ className: "scrollable-container",
309
+ columnGap: r,
310
+ rowGap: b,
311
+ wrap: i || n && W ? "Wrap" : "NoWrap",
312
+ children: [
313
+ e !== !0 && /* @__PURE__ */ c(_, { children: [
314
+ !(v === !0 && y === !0) && /* @__PURE__ */ t(
315
+ L,
316
+ {
317
+ borderRadius: "curved",
318
+ btnType: "tinted",
319
+ className: "scroll-arrow-left",
320
+ color: "neutral",
321
+ disabled: y,
322
+ icon: "angle-left",
323
+ onClick: V
324
+ }
325
+ ),
326
+ !(v === !0 && g === !0) && /* @__PURE__ */ t(
327
+ L,
328
+ {
329
+ borderRadius: "curved",
330
+ btnType: "tinted",
331
+ className: "scroll-arrow-right",
332
+ color: "neutral",
333
+ disabled: g,
334
+ icon: "angle-right",
335
+ onClick: E
336
+ }
337
+ )
338
+ ] }),
339
+ /* @__PURE__ */ t(
340
+ K,
341
+ {
342
+ isHorizontal: !0,
343
+ onIsNotVisible: () => {
344
+ y === !0 && T(!1);
345
+ },
346
+ onIsVisible: () => {
347
+ y === !1 && T(!0);
348
+ }
349
+ }
350
+ ),
351
+ u,
352
+ /* @__PURE__ */ t(
353
+ K,
354
+ {
355
+ className: "right-scroller",
356
+ isHorizontal: !0,
357
+ onIsNotVisible: () => {
358
+ g === !0 && N(!1), O(!0);
359
+ },
360
+ onIsVisible: () => {
361
+ g === !1 && N(!0), O(!1);
362
+ }
363
+ }
364
+ ),
365
+ J && M && h !== !0 && /* @__PURE__ */ t("div", { className: "gradient" })
366
+ ]
367
+ }
368
+ )
369
+ }
370
+ );
371
+ }
372
+ );
373
+ Z.propTypes = {
374
+ title: o.string,
375
+ rowGap: o.string,
376
+ columnGap: o.string,
377
+ scrollBySize: o.number,
378
+ wrapForMobile: o.bool,
379
+ wrap: o.bool,
380
+ methodsRef: o.any,
381
+ arrowsVisibleOnHover: o.bool,
382
+ rightAlignArrows: o.bool,
383
+ padding: o.string
384
+ };
385
+ const q = C((r, b) => {
386
+ const {
387
+ allButton: a = !0,
388
+ items: n = [],
389
+ selectedIds: i = [],
390
+ onSelect: u = () => {
391
+ },
392
+ onRemove: s = () => {
393
+ },
394
+ onSelectAll: d = () => {
395
+ },
396
+ className: S,
397
+ showTimesBtn: p = !1,
398
+ labelKey: w = "label",
399
+ valueKey: e = "value",
400
+ codeKey: h = "code",
401
+ uniqueKey: v,
402
+ typeKey: k,
403
+ productsToolbarName: A = "All",
404
+ ...B
405
+ } = r, W = (l, g, N, y, T) => {
406
+ i != null && i.includes(l) ? s(l, g, N, y, T) : u(l, g, N, y, T);
407
+ };
408
+ return /* @__PURE__ */ c(
409
+ Z,
410
+ {
411
+ arrowsVisibleOnHover: !1,
412
+ className: S,
413
+ columnGap: "0.75rem",
414
+ padding: "0.25rem 0",
415
+ rightAlignArrows: !0,
416
+ showTimesBtn: p,
417
+ ...B,
418
+ children: [
419
+ a && /* @__PURE__ */ t(
420
+ H,
421
+ {
422
+ borderRadius: "curved",
423
+ btnType: i.length === 0 ? "filled" : "tinted",
424
+ className: "badge-button",
425
+ color: "neutral",
426
+ onClick: d,
427
+ children: A
428
+ }
429
+ ),
430
+ n.map((l, g) => /* @__PURE__ */ c(
431
+ H,
432
+ {
433
+ borderRadius: "curved",
434
+ btnType: i.includes(l.uuid) ? "filled" : "tinted",
435
+ className: "badge-button",
436
+ color: "neutral",
437
+ onClick: () => W(
438
+ l[e],
439
+ l[w],
440
+ l[h],
441
+ v ? l[v] : null,
442
+ k ? l[k] : null
443
+ ),
444
+ children: [
445
+ oe(l == null ? void 0 : l.icon) && /* @__PURE__ */ c(_, { children: [
446
+ /* @__PURE__ */ t("i", { className: l == null ? void 0 : l.icon }),
447
+ " "
448
+ ] }),
449
+ l[w],
450
+ p === !0 && /* @__PURE__ */ t(
451
+ de,
452
+ {
453
+ className: "times-btn",
454
+ icon: "times",
455
+ sizeInUnits: "0.75rem",
456
+ onClick: () => s(
457
+ l[e],
458
+ l[w],
459
+ l[h],
460
+ v ? l[v] : null,
461
+ k ? l[k] : null
462
+ )
463
+ }
464
+ )
465
+ ]
466
+ },
467
+ g
468
+ ))
469
+ ]
470
+ }
471
+ );
472
+ });
473
+ q.propTypes = {
474
+ allButton: o.bool,
475
+ items: o.array,
476
+ selectedIds: o.array,
477
+ onSelect: o.func,
478
+ onRemove: o.func,
479
+ onSelectAll: o.func,
480
+ className: o.string,
481
+ showTimesBtn: o.bool,
482
+ valuKey: o.string,
483
+ labelKey: o.string,
484
+ codeKey: o.string
485
+ };
486
+ const Be = C((r, b) => {
487
+ const {
488
+ icon: a,
489
+ title: n,
490
+ items: i,
491
+ buttonText: u,
492
+ limit: s = 3,
493
+ options: d,
494
+ onActionClick: S = () => {
495
+ },
496
+ onSelectOption: p = () => {
497
+ }
498
+ } = r, w = P();
499
+ return /* @__PURE__ */ c(ie, { children: [
500
+ /* @__PURE__ */ c("div", { className: "regular-title", children: [
501
+ /* @__PURE__ */ c("div", { className: "regular-title-text", children: [
502
+ G(a) && /* @__PURE__ */ t("i", { className: a }),
503
+ /* @__PURE__ */ t("span", { children: n })
504
+ ] }),
505
+ G(onSectionClick) && /* @__PURE__ */ t(
506
+ H,
507
+ {
508
+ type: "button",
509
+ btnType: "tinted",
510
+ color: "gray",
511
+ onClick: S,
512
+ borderRadius: "curved",
513
+ children: u
514
+ }
515
+ )
516
+ ] }),
517
+ (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ t(
518
+ q,
519
+ {
520
+ items: d,
521
+ onRemove: (e) => {
522
+ p(e);
523
+ },
524
+ onSelect: (e) => {
525
+ p(e);
526
+ },
527
+ labelKey: "name",
528
+ valueKey: "code",
529
+ noMargin: !0
530
+ }
531
+ ),
532
+ /* @__PURE__ */ t(me, { limit: s, children: w === !0 ? i == null ? void 0 : i.map((e, h) => /* @__PURE__ */ t(
533
+ F,
534
+ {
535
+ title: e == null ? void 0 : e.title,
536
+ image: e == null ? void 0 : e.image,
537
+ text: e == null ? void 0 : e.text,
538
+ titleSlug: e == null ? void 0 : e.titleSlug,
539
+ buttonText: e == null ? void 0 : e.buttonText,
540
+ onCardClick: () => onSelectCard(e == null ? void 0 : e.uuid)
541
+ },
542
+ h
543
+ )) : i == null ? void 0 : i.slice(0, s).map((e, h) => /* @__PURE__ */ t(
544
+ F,
545
+ {
546
+ title: e == null ? void 0 : e.title,
547
+ image: e == null ? void 0 : e.image,
548
+ text: e == null ? void 0 : e.text,
549
+ titleSlug: e == null ? void 0 : e.titleSlug,
550
+ buttonText: e == null ? void 0 : e.buttonText,
551
+ onCardClick: () => onSelectCard(e == null ? void 0 : e.uuid)
552
+ },
553
+ h
554
+ )) })
555
+ ] });
556
+ });
557
+ export {
558
+ Be as default
559
+ };
@@ -1,14 +1,18 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("react"),c=require("./utils-CE6bljYe.cjs"),d=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),l=require("./consts-dNz9tpt4.cjs"),h=d.newStyled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("react"),c=require("./utils-UJt-R-G3.cjs"),o=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),d=require("./consts-dNz9tpt4.cjs"),h=o.newStyled.div`
2
2
  width: 7.5rem;
3
3
  height: auto;
4
4
  max-height: 7.5rem;
5
5
 
6
+ &:hover {
7
+ cursor: pointer;
8
+ }
9
+
6
10
  & .wrapper__image {
7
11
  width: 7.5rem;
8
12
  height: auto;
9
13
  }
10
14
 
11
- @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
15
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
12
16
  width: 4.5rem;
13
17
  height: auto;
14
18
  max-height: 4.5rem;
@@ -18,16 +22,16 @@
18
22
  height: auto;
19
23
  }
20
24
  }
21
- `,_=d.newStyled.div`
25
+ `,_=o.newStyled.div`
22
26
  width: 7.5rem;
23
27
  height: 7.5rem;
24
28
  background: ${c.linearGradientAnimation("-90deg")};
25
29
 
26
- @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
30
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
27
31
  width: 4.5rem;
28
32
  height: 4.5rem;
29
33
  }
30
- `,g=s.forwardRef(({imageComponent:t,image:n,onSelectCard:a},i)=>r.jsx(h,{children:c.isDefined(t)?t:r.jsx("img",{src:n,className:"wrapper__image",onSelectCard:a})})),w=s.forwardRef(({},t)=>r.jsx(_,{})),m=d.newStyled.div`
34
+ `,g=s.forwardRef(({imageComponent:t,image:n,onSelectCard:a},i)=>r.jsx(h,{children:c.isDefined(t)?t:r.jsx("img",{src:n,className:"wrapper__image",onSelectCard:a})})),w=s.forwardRef(({},t)=>r.jsx(_,{})),m=o.newStyled.div`
31
35
  display: flex;
32
36
  flex-direction: column;
33
37
  align-items: flex-start;
@@ -71,7 +75,7 @@
71
75
  }
72
76
  }
73
77
 
74
- @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
78
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
75
79
  & .wrapper__content {
76
80
  align-content: center;
77
81
  gap: 1rem;
@@ -82,4 +86,4 @@
82
86
  }
83
87
  }
84
88
  }
85
- `,x=s.forwardRef(({title:t,subtitle:n,items:a=[],onSelectCard:i=()=>{}},f)=>{var o;return r.jsx(m,{children:r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n}),r.jsx("div",{className:"wrapper__content",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,p)=>r.jsx(g,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid),className:"wrapper__item"},`brand-hit-card__${p+1}`)):(o=Array.from("12345"))==null?void 0:o.map((e,p)=>r.jsx(w,{},`brand-hit-card-skeleton__${p+1}`))})]})})});module.exports=x;
89
+ `,x=s.forwardRef(({title:t,subtitle:n,items:a=[],onSelectCard:i=()=>{}},f)=>{var l;return r.jsx(m,{children:r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n}),r.jsx("div",{className:"wrapper__content",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,p)=>r.jsx(g,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid),className:"wrapper__item"},`brand-hit-card__${p+1}`)):(l=Array.from("12345"))==null?void 0:l.map((e,p)=>r.jsx(w,{},`brand-hit-card-skeleton__${p+1}`))})]})})});module.exports=x;
@@ -1,13 +1,17 @@
1
1
  import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
- import { m as c, l as g } from "./utils-DtEdJZWa.js";
3
+ import { m as c, l as g } from "./utils-xpQsPsCa.js";
4
4
  import { n as d } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
5
  import { M as l } from "./consts-DNVz1x1I.js";
6
- const _ = d.div`
6
+ const s = d.div`
7
7
  width: 7.5rem;
8
8
  height: auto;
9
9
  max-height: 7.5rem;
10
10
 
11
+ &:hover {
12
+ cursor: pointer;
13
+ }
14
+
11
15
  & .wrapper__image {
12
16
  width: 7.5rem;
13
17
  height: auto;
@@ -23,7 +27,7 @@ const _ = d.div`
23
27
  height: auto;
24
28
  }
25
29
  }
26
- `, s = d.div`
30
+ `, _ = d.div`
27
31
  width: 7.5rem;
28
32
  height: 7.5rem;
29
33
  background: ${c("-90deg")};
@@ -33,7 +37,7 @@ const _ = d.div`
33
37
  height: 4.5rem;
34
38
  }
35
39
  `, w = o(
36
- ({ imageComponent: t, image: n, onSelectCard: e }, i) => /* @__PURE__ */ a(_, { children: g(t) ? t : /* @__PURE__ */ a(
40
+ ({ imageComponent: t, image: n, onSelectCard: e }, i) => /* @__PURE__ */ a(s, { children: g(t) ? t : /* @__PURE__ */ a(
37
41
  "img",
38
42
  {
39
43
  src: n,
@@ -41,7 +45,7 @@ const _ = d.div`
41
45
  onSelectCard: e
42
46
  }
43
47
  ) })
44
- ), f = o(({}, t) => /* @__PURE__ */ a(s, {})), x = d.div`
48
+ ), f = o(({}, t) => /* @__PURE__ */ a(_, {})), x = d.div`
45
49
  display: flex;
46
50
  flex-direction: column;
47
51
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- "use strict";const s=require("react/jsx-runtime"),i=require("react"),t=require("./index-BPVoEhTF.cjs"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),g=require("./utils-CE6bljYe.cjs"),R=require("./Icon.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),z=c.newStyled.div`
1
+ "use strict";const s=require("react/jsx-runtime"),i=require("react"),t=require("./index-BPVoEhTF.cjs"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),g=require("./utils-UJt-R-G3.cjs"),R=require("./Icon.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),z=c.newStyled.div`
2
2
  display: inline-flex;
3
3
  flex-wrap: wrap;
4
4
  ${o=>g.getComponentTypographyCss(o.theme,"Breadcrumbs",o.size,"enabled")};
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as u, Fragment as z } from "react/jsx-runtime";
2
2
  import { forwardRef as A, useState as N } from "react";
3
3
  import { P as t } from "./index-S5Cd7WrG.js";
4
4
  import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import { g as O, a as P } from "./utils-DtEdJZWa.js";
5
+ import { g as O, a as P } from "./utils-xpQsPsCa.js";
6
6
  import v from "./Icon.js";
7
7
  import { u as R } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
8
  const $ = c.div`
package/dist/Button.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),q=require("react"),o=require("./index-BPVoEhTF.cjs"),C=require("./index-DAOBjHnD.cjs"),r=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-CE6bljYe.cjs"),V=require("./Icon.cjs"),W=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B={small:{regular:"1rem",icon:"0.75rem",justIcon:"0.5rem"},medium:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"},large:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"}},f=e=>`
1
+ "use strict";const n=require("react/jsx-runtime"),q=require("react"),o=require("./index-BPVoEhTF.cjs"),C=require("./index-DAOBjHnD.cjs"),r=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-UJt-R-G3.cjs"),V=require("./Icon.cjs"),W=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B={small:{regular:"1rem",icon:"0.75rem",justIcon:"0.5rem"},medium:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"},large:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"}},f=e=>`
2
2
  outline: none;
3
3
  display: inline-flex;
4
4
  flex-direction: row;
package/dist/Button.js CHANGED
@@ -3,7 +3,7 @@ import { forwardRef as E } from "react";
3
3
  import { P as o } from "./index-S5Cd7WrG.js";
4
4
  import { i as y } from "./index-CvebWhtp.js";
5
5
  import { n as r } from "./emotion-styled.browser.esm-BiK8DcgW.js";
6
- import { g as x, a as t, d as c, h as T, e as z, b as q } from "./utils-DtEdJZWa.js";
6
+ import { g as x, a as t, d as c, h as T, e as z, b as q } from "./utils-xpQsPsCa.js";
7
7
  import j from "./Icon.js";
8
8
  import { u as A } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
9
9
  const k = {