@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,23 +1,24 @@
1
- import { jsxs as n, jsx as t, Fragment as v } from "react/jsx-runtime";
2
- import { forwardRef as w, useRef as j, Suspense as E, memo as F, useMemo as L } from "react";
3
- import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as $ } from "./consts-BuFChS64.js";
5
- import { u as U } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as k, p as _, k as T } from "./utils-BdsZgOUE.js";
7
- import { T as D } from "./style-DKAOBWn3.js";
8
- import G from "./Button.js";
9
- import H from "./Link.js";
10
- import { P as K } from "./index-CF3HhgvN.js";
11
- import { S as X } from "./index-dXWRbvgi.js";
12
- const Z = S.div`
1
+ import { jsxs as n, jsx as t, Fragment as B } from "react/jsx-runtime";
2
+ import { forwardRef as _, useRef as F, Suspense as O, memo as j, useMemo as A } from "react";
3
+ import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as k } from "./consts-BuFChS64.js";
5
+ import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { o as U, k as v } from "./utils-DHfRApMf.js";
7
+ import { T as D } from "./style-D3pIrH3v.js";
8
+ import K from "./Button.js";
9
+ import G from "./Link.js";
10
+ import { P as H } from "./index-BbltNcou.js";
11
+ import { S as P } from "./index-BMOLVn8O.js";
12
+ import { S as X, a as N, b as s } from "./style-CXMUA6cI.js";
13
+ const Z = f.div`
13
14
  display: grid;
14
- grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
15
+ grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
15
16
  gap: 1.25rem;
16
17
 
17
- @media (max-width: ${$ + "px"}) {
18
+ @media (max-width: ${k + "px"}) {
18
19
  grid-template-columns: repeat(1, 1fr);
19
20
  }
20
- `, W = S.div`
21
+ `, q = f.div`
21
22
  display: flex;
22
23
  width: 100%;
23
24
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
@@ -44,22 +45,13 @@ const Z = S.div`
44
45
  object-fit: cover;
45
46
  }
46
47
 
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: ${k("-90deg")};
54
- }
55
-
56
48
  & a {
57
49
  margin-top: auto;
58
50
  }
59
51
 
60
- @media (max-width: ${$ + "px"}) {
52
+ @media (max-width: ${k + "px"}) {
61
53
  }
62
- `, M = S.div`
54
+ `, J = f.div`
63
55
  display: flex;
64
56
  flex-direction: column;
65
57
  gap: 0.5rem;
@@ -70,171 +62,218 @@ const Z = S.div`
70
62
  font-size: 1rem;
71
63
  }
72
64
 
73
- & .skeleton-title {
74
- height: 1.5rem;
75
- width: 80%;
76
- background-color: ${k("-90deg")};
77
- }
78
-
79
- & .skeleton-action {
80
- height: 1.25rem;
81
- width: 20%;
82
- background-color: ${k("-90deg")};
83
- }
84
-
85
65
  & .text-wr {
86
66
  font-weight: 400;
87
67
  font-size: 0.875rem;
88
68
  color: var(--gray-700, #4e555f);
89
- ${_(3)}
69
+ ${U(3)}
90
70
  }
91
- `, q = w((i, c) => {
92
- const { title: l, imageUrl: s, text: r, buttonText: h, onCardClick: m, metadata: o } = i, d = j(), p = (g) => {
93
- m(g, d);
71
+ `, Q = _((r, c) => {
72
+ const { title: l, imageUrl: d, text: a, buttonText: p, onCardClick: m, metadata: o } = r, h = F(), u = (g) => {
73
+ m(g, h);
94
74
  };
95
75
  return /* @__PURE__ */ n(
96
- W,
76
+ q,
97
77
  {
98
- ref: d,
78
+ ref: h,
99
79
  name: o == null ? void 0 : o.name,
100
80
  "data-accessor": o == null ? void 0 : o.accessor,
101
81
  className: "blog-card",
102
- onClick: p,
82
+ onClick: u,
103
83
  children: [
104
- /* @__PURE__ */ n(M, { children: [
84
+ /* @__PURE__ */ n(J, { children: [
105
85
  /* @__PURE__ */ t("div", { className: "text-wr-title", children: l }),
106
- /* @__PURE__ */ t("div", { className: "text-wr", children: r }),
107
- /* @__PURE__ */ t(H, { color: "gray", onClick: p, children: h })
86
+ /* @__PURE__ */ t("div", { className: "text-wr", children: a }),
87
+ /* @__PURE__ */ t(G, { color: "gray", onClick: u, children: p })
108
88
  ] }),
109
- /* @__PURE__ */ t(K, { src: s })
89
+ /* @__PURE__ */ t(H, { src: d })
110
90
  ]
111
91
  }
112
92
  );
113
- }), J = w(({}, i) => /* @__PURE__ */ n(W, { className: "blog-card", children: [
114
- /* @__PURE__ */ n(M, { children: [
115
- /* @__PURE__ */ t("div", { className: "skeleton-title" }),
116
- /* @__PURE__ */ t("div", { className: "text-wr" }),
117
- /* @__PURE__ */ t("div", { className: "skeleton-action" })
118
- ] }),
119
- /* @__PURE__ */ t("div", { className: "skeleton-img" })
120
- ] })), Q = ({ limit: i = 3, isLoading: c = !1, keyPrefix: l }) => /* @__PURE__ */ t(v, { children: Array.from({ length: i }, (s, r) => /* @__PURE__ */ t(
121
- J,
122
- {
123
- isLoading: c
124
- },
125
- `${l}-skeleton-product-card-${r}`
126
- )) }), V = ({
127
- children: i,
128
- fallbackComponent: c = /* @__PURE__ */ t(v, {}),
129
- isLoading: l = !1,
130
- limit: s,
131
- keyPrefix: r
132
- }) => /* @__PURE__ */ t(E, { fallbackComponent: c, children: l === !0 ? /* @__PURE__ */ t(
133
- Q,
134
- {
135
- isLoading: l,
136
- limit: s,
137
- keyPrefix: r
93
+ }), V = f(X)`
94
+ @media (max-width: ${k + "px"}) {
95
+ & .skeleton__tags {
96
+ & > div {
97
+ width: 100%;
98
+ }
99
+ }
100
+
101
+ & .skeleton__cards {
102
+ flex-direction: column;
103
+
104
+ & > div {
105
+ background: linear-gradient(
106
+ to right,
107
+ transparent 0%,
108
+ #f4f6fb 40%,
109
+ #f4f6fb 100%
110
+ );
111
+
112
+ box-shadow: none;
113
+ }
114
+ }
138
115
  }
139
- ) : i }), B = F(q), se = w((i, c) => {
116
+ `, Y = ({ keyPrefix: r }) => /* @__PURE__ */ n(V, { children: [
117
+ /* @__PURE__ */ n(N, { className: "skeleton__tags", children: [
118
+ /* @__PURE__ */ t(
119
+ s,
120
+ {
121
+ height: "2.25rem",
122
+ width: "128px",
123
+ borderRadius: "1rem"
124
+ },
125
+ `${r}-1`
126
+ ),
127
+ /* @__PURE__ */ t(
128
+ s,
129
+ {
130
+ height: "2.25rem",
131
+ width: "128px",
132
+ borderRadius: "1rem"
133
+ },
134
+ `${r}-2`
135
+ ),
136
+ /* @__PURE__ */ t(
137
+ s,
138
+ {
139
+ height: "2.25rem",
140
+ width: "128px",
141
+ borderRadius: "1rem"
142
+ },
143
+ `${r}-3`
144
+ )
145
+ ] }),
146
+ /* @__PURE__ */ n(N, { className: "skeleton__cards", children: [
147
+ /* @__PURE__ */ t(
148
+ s,
149
+ {
150
+ height: "10.375rem",
151
+ borderRadius: "0.75rem"
152
+ },
153
+ `${r}-4`
154
+ ),
155
+ /* @__PURE__ */ t(
156
+ s,
157
+ {
158
+ height: "10.375rem",
159
+ borderRadius: "0.75rem"
160
+ },
161
+ `${r}-5`
162
+ ),
163
+ /* @__PURE__ */ t(
164
+ s,
165
+ {
166
+ height: "10.375rem",
167
+ borderRadius: "0.75rem"
168
+ },
169
+ `${r}-6`
170
+ )
171
+ ] })
172
+ ] }), x = ({
173
+ keyPrefix: r,
174
+ isLoading: c = !1,
175
+ fallbackComponent: l = /* @__PURE__ */ t(B, {}),
176
+ children: d
177
+ }) => /* @__PURE__ */ t(O, { fallbackComponent: l, children: c === !0 ? /* @__PURE__ */ t(Y, { keyPrefix: r }) : d }), W = j(Q), pe = _((r, c) => {
140
178
  const {
141
179
  icon: l,
142
- title: s,
143
- items: r,
144
- buttonText: h,
180
+ title: d,
181
+ items: a,
182
+ buttonText: p,
145
183
  limit: m = 3,
146
184
  options: o,
147
- selectedOption: d = [],
148
- onButtonAction: p = () => {
185
+ selectedOption: h = [],
186
+ onButtonAction: u = () => {
149
187
  },
150
188
  buttonLink: g,
151
- onSelectOption: y = () => {
189
+ onSelectOption: C = () => {
152
190
  },
153
- onSelectAll: z = () => {
191
+ onSelectAll: y = () => {
154
192
  },
155
- isLoading: P = !1,
156
- onSelectCard: u = () => {
193
+ isLoading: R = !1,
194
+ onSelectCard: b = () => {
157
195
  },
158
- productsToolbarName: R = "All",
159
- allButton: A = !1,
160
- componentName: C
161
- } = i, N = U(), I = L(() => {
162
- var a;
163
- return /* @__PURE__ */ t(v, { children: N === !0 ? r == null ? void 0 : r.map((e, f) => /* @__PURE__ */ t(
164
- B,
196
+ productsToolbarName: M = "All",
197
+ allButton: z = !1,
198
+ componentName: T
199
+ } = r, $ = E(), I = A(() => {
200
+ var i;
201
+ return /* @__PURE__ */ t(B, { children: $ === !0 ? a == null ? void 0 : a.map((e, w) => /* @__PURE__ */ t(
202
+ W,
165
203
  {
166
204
  title: e == null ? void 0 : e.title,
167
205
  imageUrl: (e == null ? void 0 : e.image) || null,
168
206
  text: e == null ? void 0 : e.text,
169
207
  buttonText: e == null ? void 0 : e.buttonText,
170
- onCardClick: (O, b) => u(e, b),
171
- metadata: { name: C, accessor: e == null ? void 0 : e.accessor }
208
+ onCardClick: (L, S) => b(e, S),
209
+ metadata: { name: T, accessor: e == null ? void 0 : e.accessor }
172
210
  },
173
- f
174
- )) : (a = r == null ? void 0 : r.slice(0, m)) == null ? void 0 : a.map((e, f) => /* @__PURE__ */ t(
175
- B,
211
+ w
212
+ )) : (i = a == null ? void 0 : a.slice(0, m)) == null ? void 0 : i.map((e, w) => /* @__PURE__ */ t(
213
+ W,
176
214
  {
177
215
  title: e == null ? void 0 : e.title,
178
216
  imageUrl: (e == null ? void 0 : e.image) || null,
179
217
  text: e == null ? void 0 : e.text,
180
218
  buttonText: e == null ? void 0 : e.buttonText,
181
- onCardClick: (O, b) => u(e, b),
182
- metadata: { name: C, accessor: e == null ? void 0 : e.accessor }
219
+ onCardClick: (L, S) => b(e, S),
220
+ metadata: { name: T, accessor: e == null ? void 0 : e.accessor }
183
221
  },
184
- f
222
+ w
185
223
  )) });
186
- }, [r, N, m, u]);
224
+ }, [a, $, m, b]);
187
225
  return /* @__PURE__ */ n(D, { ref: c, children: [
188
226
  /* @__PURE__ */ n("div", { className: "regular-title", children: [
189
227
  /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
190
- T(l) && /* @__PURE__ */ t("i", { className: l }),
191
- /* @__PURE__ */ t("span", { children: s })
228
+ v(l) && /* @__PURE__ */ t("i", { className: l }),
229
+ /* @__PURE__ */ t("span", { children: d })
192
230
  ] }),
193
- T(g) && /* @__PURE__ */ t(
194
- G,
231
+ v(p) && v(g) && !R && /* @__PURE__ */ t(
232
+ K,
195
233
  {
196
234
  type: "button",
197
235
  btnType: "tinted",
198
236
  color: "neutral",
199
- onClick: (a) => {
237
+ onClick: (i) => {
200
238
  var e;
201
- (e = a == null ? void 0 : a.target) == null || e.blur(), p(g);
239
+ (e = i == null ? void 0 : i.target) == null || e.blur(), u(g);
202
240
  },
203
241
  borderRadius: "curved",
204
- children: h
242
+ children: p
205
243
  }
206
244
  )
207
245
  ] }),
208
- (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(
209
- X,
210
- {
211
- items: o,
212
- selectedIds: d,
213
- onRemove: (a) => {
214
- y(a);
215
- },
216
- onSelect: (a) => {
217
- y(a);
218
- },
219
- onSelectAll: z,
220
- labelKey: "name",
221
- valueKey: "code",
222
- noMargin: !0,
223
- productsToolbarName: R,
224
- allButton: A
225
- }
226
- ),
227
- /* @__PURE__ */ t(Z, { limit: m, children: /* @__PURE__ */ t(
228
- V,
246
+ /* @__PURE__ */ n(
247
+ x,
229
248
  {
230
- isLoading: P,
231
- limit: m,
232
- keyPrefix: "explore-landing",
233
- children: I
249
+ isLoading: R,
250
+ keyPrefix: "blogs-with-filters-skeleton",
251
+ children: [
252
+ (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(
253
+ P,
254
+ {
255
+ items: o,
256
+ selectedIds: h,
257
+ onRemove: (i) => {
258
+ C(i);
259
+ },
260
+ onSelect: (i) => {
261
+ C(i);
262
+ },
263
+ onSelectAll: y,
264
+ labelKey: "name",
265
+ valueKey: "code",
266
+ noMargin: !0,
267
+ productsToolbarName: M,
268
+ allButton: z
269
+ }
270
+ ),
271
+ /* @__PURE__ */ t(Z, { limit: m, children: I })
272
+ ]
234
273
  }
235
- ) })
274
+ )
236
275
  ] });
237
276
  });
238
277
  export {
239
- se as default
278
+ pe as default
240
279
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),m=require("./utils-Dl9xPH4c.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./consts-goSZX3xP.cjs"),_=d.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("react"),m=require("./utils-Dl9xPH4c.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),n=require("./style-BAcV7F53.cjs"),g=d.styled.div`
2
2
  width: 7.5rem;
3
3
  height: auto;
4
4
  max-height: 7.5rem;
@@ -12,7 +12,7 @@
12
12
  height: auto;
13
13
  }
14
14
 
15
- @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
15
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
16
16
  width: 4.5rem;
17
17
  height: auto;
18
18
  max-height: 4.5rem;
@@ -22,16 +22,7 @@
22
22
  height: auto;
23
23
  }
24
24
  }
25
- `,g=d.styled.div`
26
- width: 7.5rem;
27
- height: 3.5rem;
28
- background: ${m.linearGradientAnimation("-90deg")};
29
-
30
- @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
31
- width: 4.5rem;
32
- height: 4.5rem;
33
- }
34
- `,w=o.forwardRef(({imageComponent:t,image:i,onSelectCard:a},n)=>e.jsx(_,{ref:n,children:m.isDefined(t)?t:e.jsx("img",{src:i,className:"wrapper__image",onClick:a})})),x=o.forwardRef(({},t)=>e.jsx(g,{})),f=d.styled.div`
25
+ `,w=o.forwardRef(({imageComponent:r,image:i,onSelectCard:t},s)=>e.jsx(g,{ref:s,children:m.isDefined(r)?r:e.jsx("img",{src:i,className:"wrapper__image",onClick:t})})),_=d.styled.div`
35
26
  display: flex;
36
27
  flex-direction: column;
37
28
  align-items: flex-start;
@@ -80,7 +71,7 @@
80
71
  }
81
72
  }
82
73
 
83
- @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
74
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
84
75
  & .wrapper__content {
85
76
  align-content: center;
86
77
  gap: 1rem;
@@ -91,4 +82,9 @@
91
82
  }
92
83
  }
93
84
  }
94
- `,u=o.forwardRef(({title:t,subtitle:i,items:a=[],isLoading:n=!1,onSelectCard:s=()=>{}},h)=>{var c;return e.jsxs(f,{ref:h,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),i&&e.jsx("div",{className:"wrapper__subtitle",children:i})]}),e.jsx("div",{className:"wrapper__content",children:n?(c=Array.from("12345"))==null?void 0:c.map((r,p)=>e.jsx(x,{},`brand-hit-card-skeleton__${p+1}`)):a==null?void 0:a.map((r,p)=>e.jsx(w,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,onSelectCard:()=>s==null?void 0:s(r),className:"wrapper__item"},`brand-hit-card__${p+1}`))})]})});module.exports=u;
85
+ `,x=d.styled(n.SkeletonRowWrapper)`
86
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
87
+ gap: 1rem;
88
+ flex-wrap: wrap;
89
+ }
90
+ `,u=({keyPrefix:r})=>e.jsxs(x,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-1`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-3`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-4`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-5`)]}),f=({keyPrefix:r,isLoading:i=!1,fallbackComponent:t=e.jsx(e.Fragment,{}),children:s})=>e.jsx(o.Suspense,{fallbackComponent:t,children:i===!0?e.jsx(u,{keyPrefix:r}):s}),j=o.forwardRef(({title:r,subtitle:i,items:t=[],isLoading:s=!1,onSelectCard:l=()=>{}},p)=>e.jsxs(_,{ref:p,children:[e.jsxs("div",{className:"wrapper__heading",children:[r&&e.jsx("div",{className:"wrapper__title",children:r}),i&&e.jsx("div",{className:"wrapper__subtitle",children:i})]}),e.jsx(f,{isLoading:s,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:t==null?void 0:t.map((a,c)=>e.jsx(w,{image:a==null?void 0:a.image,imageComponent:a==null?void 0:a.imageComponent,onSelectCard:()=>l==null?void 0:l(a),className:"wrapper__item"},`brand-hit-card__${c+1}`))})})]}));module.exports=j;
@@ -1,9 +1,10 @@
1
- import { jsx as r, jsxs as h } from "react/jsx-runtime";
2
- import { forwardRef as o } from "react";
3
- import { o as _, l as g } from "./utils-BdsZgOUE.js";
4
- import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { M as l } from "./consts-BuFChS64.js";
6
- const w = d.div`
1
+ import { jsx as e, jsxs as o, Fragment as g } from "react/jsx-runtime";
2
+ import { forwardRef as h, Suspense as w } from "react";
3
+ import { l as _ } from "./utils-DHfRApMf.js";
4
+ import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { M as d } from "./consts-BuFChS64.js";
6
+ import { a as f, b as m } from "./style-CXMUA6cI.js";
7
+ const u = s.div`
7
8
  width: 7.5rem;
8
9
  height: auto;
9
10
  max-height: 7.5rem;
@@ -17,7 +18,7 @@ const w = d.div`
17
18
  height: auto;
18
19
  }
19
20
 
20
- @media (max-width: ${l + "px"}) {
21
+ @media (max-width: ${d + "px"}) {
21
22
  width: 4.5rem;
22
23
  height: auto;
23
24
  max-height: 4.5rem;
@@ -27,18 +28,9 @@ const w = d.div`
27
28
  height: auto;
28
29
  }
29
30
  }
30
- `, f = d.div`
31
- width: 7.5rem;
32
- height: 3.5rem;
33
- background: ${_("-90deg")};
34
-
35
- @media (max-width: ${l + "px"}) {
36
- width: 4.5rem;
37
- height: 4.5rem;
38
- }
39
- `, x = o(
40
- ({ imageComponent: a, image: i, onSelectCard: t }, n) => /* @__PURE__ */ r(w, { ref: n, children: g(a) ? a : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image", onClick: t }) })
41
- ), u = o(({}, a) => /* @__PURE__ */ r(f, {})), v = d.div`
31
+ `, x = h(
32
+ ({ imageComponent: r, image: i, onSelectCard: a }, n) => /* @__PURE__ */ e(u, { ref: n, children: _(r) ? r : /* @__PURE__ */ e("img", { src: i, className: "wrapper__image", onClick: a }) })
33
+ ), v = s.div`
42
34
  display: flex;
43
35
  flex-direction: column;
44
36
  align-items: flex-start;
@@ -87,7 +79,7 @@ const w = d.div`
87
79
  }
88
80
  }
89
81
 
90
- @media (max-width: ${l + "px"}) {
82
+ @media (max-width: ${d + "px"}) {
91
83
  & .wrapper__content {
92
84
  align-content: center;
93
85
  gap: 1rem;
@@ -98,32 +90,88 @@ const w = d.div`
98
90
  }
99
91
  }
100
92
  }
101
- `, B = o(
102
- ({ title: a, subtitle: i, items: t = [], isLoading: n = !1, onSelectCard: p = () => {
103
- } }, c) => {
104
- var s;
105
- return /* @__PURE__ */ h(v, { ref: c, children: [
106
- /* @__PURE__ */ h("div", { className: "wrapper__heading", children: [
107
- a && /* @__PURE__ */ r("div", { className: "wrapper__title", children: a }),
108
- i && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: i })
109
- ] }),
110
- /* @__PURE__ */ r("div", { className: "wrapper__content", children: n ? (s = Array.from("12345")) == null ? void 0 : s.map((e, m) => /* @__PURE__ */ r(
111
- u,
112
- {},
113
- `brand-hit-card-skeleton__${m + 1}`
114
- )) : t == null ? void 0 : t.map((e, m) => /* @__PURE__ */ r(
115
- x,
116
- {
117
- image: e == null ? void 0 : e.image,
118
- imageComponent: e == null ? void 0 : e.imageComponent,
119
- onSelectCard: () => p == null ? void 0 : p(e),
120
- className: "wrapper__item"
121
- },
122
- `brand-hit-card__${m + 1}`
123
- )) })
124
- ] });
93
+ `, b = s(f)`
94
+ @media (max-width: ${d + "px"}) {
95
+ gap: 1rem;
96
+ flex-wrap: wrap;
125
97
  }
98
+ `, $ = ({ keyPrefix: r }) => /* @__PURE__ */ o(b, { justifyContent: "center", alignItems: "center", gap: "3rem", children: [
99
+ /* @__PURE__ */ e(
100
+ m,
101
+ {
102
+ height: "4rem",
103
+ width: "7.5rem",
104
+ borderRadius: "0.75rem"
105
+ },
106
+ `${r}-1`
107
+ ),
108
+ /* @__PURE__ */ e(
109
+ m,
110
+ {
111
+ height: "4rem",
112
+ width: "7.5rem",
113
+ borderRadius: "0.75rem"
114
+ },
115
+ `${r}-2`
116
+ ),
117
+ /* @__PURE__ */ e(
118
+ m,
119
+ {
120
+ height: "4rem",
121
+ width: "7.5rem",
122
+ borderRadius: "0.75rem"
123
+ },
124
+ `${r}-3`
125
+ ),
126
+ /* @__PURE__ */ e(
127
+ m,
128
+ {
129
+ height: "4rem",
130
+ width: "7.5rem",
131
+ borderRadius: "0.75rem"
132
+ },
133
+ `${r}-4`
134
+ ),
135
+ /* @__PURE__ */ e(
136
+ m,
137
+ {
138
+ height: "4rem",
139
+ width: "7.5rem",
140
+ borderRadius: "0.75rem"
141
+ },
142
+ `${r}-5`
143
+ )
144
+ ] }), y = ({
145
+ keyPrefix: r,
146
+ isLoading: i = !1,
147
+ fallbackComponent: a = /* @__PURE__ */ e(g, {}),
148
+ children: n
149
+ }) => /* @__PURE__ */ e(w, { fallbackComponent: a, children: i === !0 ? /* @__PURE__ */ e($, { keyPrefix: r }) : n }), I = h(
150
+ ({ title: r, subtitle: i, items: a = [], isLoading: n = !1, onSelectCard: p = () => {
151
+ } }, l) => /* @__PURE__ */ o(v, { ref: l, children: [
152
+ /* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
153
+ r && /* @__PURE__ */ e("div", { className: "wrapper__title", children: r }),
154
+ i && /* @__PURE__ */ e("div", { className: "wrapper__subtitle", children: i })
155
+ ] }),
156
+ /* @__PURE__ */ e(
157
+ y,
158
+ {
159
+ isLoading: n,
160
+ keyPrefix: "brand-hits-skeleton",
161
+ children: /* @__PURE__ */ e("div", { className: "wrapper__content", children: a == null ? void 0 : a.map((t, c) => /* @__PURE__ */ e(
162
+ x,
163
+ {
164
+ image: t == null ? void 0 : t.image,
165
+ imageComponent: t == null ? void 0 : t.imageComponent,
166
+ onSelectCard: () => p == null ? void 0 : p(t),
167
+ className: "wrapper__item"
168
+ },
169
+ `brand-hit-card__${c + 1}`
170
+ )) })
171
+ }
172
+ )
173
+ ] })
126
174
  );
127
175
  export {
128
- B as default
176
+ I as default
129
177
  };
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as u, Fragment as A } from "react/jsx-runtime";
2
2
  import { forwardRef as N, useState as O } from "react";
3
3
  import { P as t } from "./index-CblbdqjE.js";
4
4
  import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { c as P, b as S } from "./utils-BdsZgOUE.js";
5
+ import { c as P, b as S } from "./utils-DHfRApMf.js";
6
6
  import v from "./Icon.js";
7
7
  import { u as R } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  const $ = c.div`
package/dist/Button.js CHANGED
@@ -3,7 +3,7 @@ import { forwardRef as q } from "react";
3
3
  import { P as n } from "./index-CblbdqjE.js";
4
4
  import { i as T } from "./index-6RFrSPs_.js";
5
5
  import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { c as O, b as t, d as r, h as z, e as I, a as A } from "./utils-BdsZgOUE.js";
6
+ import { c as O, b as t, d as r, h as z, e as I, a as A } from "./utils-DHfRApMf.js";
7
7
  import w from "./Icon.js";
8
8
  import { u as G } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
9
  const x = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { s as i } from "./emotion-styled.browser.esm-BNN1dTl3.js";
3
3
  import { P as t } from "./index-CblbdqjE.js";
4
- import { b as o, a as b } from "./utils-BdsZgOUE.js";
4
+ import { b as o, a as b } from "./utils-DHfRApMf.js";
5
5
  import { u as l } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
6
  const s = i.div`
7
7
  display: inline-flex;
@@ -9,7 +9,7 @@ import _ from "./DropdownItem.js";
9
9
  import K from "./DropdownMenu.js";
10
10
  import X from "./IconButton.js";
11
11
  import Z from "./BannerSectionWithList.js";
12
- import { y as q } from "./utils-BdsZgOUE.js";
12
+ import { y as q } from "./utils-DHfRApMf.js";
13
13
  const J = y.div`
14
14
  display: flex;
15
15
  flex-direction: column;