@lanaco/lnc-react-ui 4.0.169 → 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-CxiFuUOT.js +0 -653
  171. package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
@@ -1,21 +1,22 @@
1
- import { jsxs as g, jsx as t, Fragment as h } from "react/jsx-runtime";
2
- import { forwardRef as u, useRef as v, Suspense as S } from "react";
3
- import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as b } from "./consts-BuFChS64.js";
5
- import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as C, p as T } from "./utils-BdsZgOUE.js";
7
- import N from "./Button.js";
8
- import { P as B } from "./index-CF3HhgvN.js";
9
- const P = f.div`
1
+ import { jsxs as f, jsx as t, Fragment as w } from "react/jsx-runtime";
2
+ import { forwardRef as C, useRef as S, Suspense as v } from "react";
3
+ import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { M as u } from "./consts-BuFChS64.js";
5
+ import { u as y } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { o as k } from "./utils-DHfRApMf.js";
7
+ import $ from "./Button.js";
8
+ import { P as R } from "./index-BbltNcou.js";
9
+ import { a as T, b as h } from "./style-CXMUA6cI.js";
10
+ const B = d.div`
10
11
  display: grid;
11
- grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
12
+ grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
12
13
  gap: 1.25rem;
13
14
  margin: auto;
14
15
  width: fit-content;
15
- @media (max-width: ${b + "px"}) {
16
+ @media (max-width: ${u + "px"}) {
16
17
  grid-template-columns: repeat(1, 1fr);
17
18
  }
18
- `, k = f.div`
19
+ `, I = d.div`
19
20
  display: flex;
20
21
  flex-direction: column;
21
22
  width: 100%;
@@ -51,19 +52,10 @@ const P = f.div`
51
52
  object-fit: cover;
52
53
  }
53
54
 
54
- & .skeleton-img {
55
- max-width: 6rem;
56
- min-width: 6rem;
57
- min-height: 6rem;
58
- max-height: 6rem;
59
- border-radius: 0.75rem;
60
- background-color: ${C("-90deg")};
61
- }
62
-
63
- @media (max-width: ${b + "px"}) {
55
+ @media (max-width: ${u + "px"}) {
64
56
  max-width: unset;
65
57
  }
66
- `, y = f.div`
58
+ `, W = d.div`
67
59
  text-align: center;
68
60
  display: flex;
69
61
  flex-direction: column;
@@ -78,122 +70,137 @@ const P = f.div`
78
70
  line-height: 1.75rem;
79
71
  }
80
72
 
81
- & .skeleton-title {
82
- height: 1.75rem;
83
- width: 80%;
84
- background-color: ${C("-90deg")};
85
- }
86
-
87
73
  & .text-wr {
88
74
  font-size: 0.875rem;
89
75
  font-style: normal;
90
76
  font-weight: 400;
91
77
  line-height: 1.25rem;
92
78
  letter-spacing: 0.0156rem;
93
- ${T(3)}
79
+ ${k(3)}
94
80
  }
95
- `, w = u((i, l) => {
96
- const { title: r, image: o, text: n, buttonText: d, onCardClick: c, metadata: a } = i, e = v(), m = (s) => {
97
- c(s, e);
81
+ `, b = C((r, m) => {
82
+ const { title: i, image: o, text: l, buttonText: c, onCardClick: s, metadata: n } = r, e = S(), a = (p) => {
83
+ s(p, e);
98
84
  };
99
- return /* @__PURE__ */ g(
100
- k,
85
+ return /* @__PURE__ */ f(
86
+ I,
101
87
  {
102
88
  ref: e,
103
- name: a == null ? void 0 : a.name,
104
- "data-accessor": a == null ? void 0 : a.accessor,
89
+ name: n == null ? void 0 : n.name,
90
+ "data-accessor": n == null ? void 0 : n.accessor,
105
91
  className: "blog-card",
106
- onClick: m,
92
+ onClick: a,
107
93
  children: [
108
- /* @__PURE__ */ t(B, { src: o }),
109
- /* @__PURE__ */ g(y, { children: [
110
- /* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
111
- /* @__PURE__ */ t("div", { className: "text-wr", children: n })
94
+ /* @__PURE__ */ t(R, { src: o }),
95
+ /* @__PURE__ */ f(W, { children: [
96
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: i }),
97
+ /* @__PURE__ */ t("div", { className: "text-wr", children: l })
112
98
  ] }),
113
99
  /* @__PURE__ */ t(
114
- N,
100
+ $,
115
101
  {
116
102
  borderRadius: "curved",
117
103
  color: "gray",
118
104
  type: "button",
119
105
  btnType: "outline",
120
- onClick: m,
106
+ onClick: a,
121
107
  size: "medium",
122
- children: d
108
+ children: c
123
109
  }
124
110
  )
125
111
  ]
126
112
  }
127
113
  );
128
- }), R = u((i, l) => {
129
- const { onCardClick: r } = i;
130
- return (
131
- // <SimpleBlogCardSkeleton />
132
- /* @__PURE__ */ g(k, { className: "product-card", onClick: r, children: [
133
- /* @__PURE__ */ t("div", { className: "skeleton-img" }),
134
- /* @__PURE__ */ t(y, { children: /* @__PURE__ */ t("div", { className: "skeleton-title" }) })
135
- ] })
136
- );
137
- }), z = ({ limit: i = 3, isLoading: l = !1, keyPrefix: r }) => /* @__PURE__ */ t(h, { children: Array.from({ length: i }, (o, n) => /* @__PURE__ */ t(
138
- R,
139
- {
140
- isLoading: l
141
- },
142
- `${r}-skeleton-product-card-${n}`
143
- )) }), I = ({
144
- children: i,
145
- fallbackComponent: l = /* @__PURE__ */ t(h, {}),
146
- isLoading: r = !1,
147
- limit: o,
148
- keyPrefix: n
149
- }) => /* @__PURE__ */ t(S, { fallbackComponent: l, children: r === !0 ? /* @__PURE__ */ t(
150
- z,
151
- {
152
- isLoading: r,
153
- limit: o,
154
- keyPrefix: n
114
+ }), j = d(T)`
115
+ @media (max-width: ${u + "px"}) {
116
+ flex-direction: column;
117
+
118
+ & > div {
119
+ width: 100%;
120
+
121
+ background: linear-gradient(
122
+ to right,
123
+ transparent 0%,
124
+ #f4f6fb 40%,
125
+ #f4f6fb 100%
126
+ );
127
+
128
+ box-shadow: none;
129
+ }
155
130
  }
156
- ) : i }), F = u((i, l) => {
131
+ `, z = ({ keyPrefix: r }) => /* @__PURE__ */ f(j, { justifyContent: "center", alignItems: "center", children: [
132
+ /* @__PURE__ */ t(
133
+ h,
134
+ {
135
+ height: "24.75rem",
136
+ width: "18.5rem",
137
+ borderRadius: "0.75rem"
138
+ },
139
+ `${r}-1`
140
+ ),
141
+ /* @__PURE__ */ t(
142
+ h,
143
+ {
144
+ height: "24.75rem",
145
+ width: "18.5rem",
146
+ borderRadius: "0.75rem"
147
+ },
148
+ `${r}-2`
149
+ ),
150
+ /* @__PURE__ */ t(
151
+ h,
152
+ {
153
+ height: "24.75rem",
154
+ width: "18.5rem",
155
+ borderRadius: "0.75rem"
156
+ },
157
+ `${r}-3`
158
+ )
159
+ ] }), M = ({
160
+ keyPrefix: r,
161
+ isLoading: m = !1,
162
+ fallbackComponent: i = /* @__PURE__ */ t(w, {}),
163
+ children: o
164
+ }) => /* @__PURE__ */ t(v, { fallbackComponent: i, children: m === !0 ? /* @__PURE__ */ t(z, { keyPrefix: r }) : o }), X = C((r, m) => {
157
165
  const {
158
- items: r,
166
+ items: i,
159
167
  limit: o = 3,
160
- onSelectCard: n = () => {
168
+ onSelectCard: l = () => {
161
169
  },
162
- isLoading: d = !1,
163
- componentName: c
164
- } = i, a = $();
165
- return /* @__PURE__ */ t(P, { ref: l, limit: o, children: /* @__PURE__ */ t(
166
- I,
170
+ isLoading: c = !1,
171
+ componentName: s
172
+ } = r, n = y();
173
+ return /* @__PURE__ */ t(
174
+ M,
167
175
  {
168
- isLoading: d,
169
- limit: o,
170
- keyPrefix: "explore-landing",
171
- children: /* @__PURE__ */ t(h, { children: a === !0 ? r == null ? void 0 : r.map((e, m) => /* @__PURE__ */ t(
172
- w,
176
+ isLoading: c,
177
+ keyPrefix: "blogs-simple-centered-skeleton",
178
+ children: /* @__PURE__ */ t(B, { ref: m, limit: o, children: /* @__PURE__ */ t(w, { children: n === !0 ? i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ t(
179
+ b,
173
180
  {
174
181
  title: e == null ? void 0 : e.title,
175
182
  image: (e == null ? void 0 : e.image) || null,
176
183
  text: e == null ? void 0 : e.text,
177
184
  buttonText: e == null ? void 0 : e.buttonText,
178
- onCardClick: (s, p) => n(e, p),
179
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor }
185
+ onCardClick: (p, g) => l(e, g),
186
+ metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
180
187
  },
181
- m
182
- )) : r == null ? void 0 : r.slice(0, o).map((e, m) => /* @__PURE__ */ t(
183
- w,
188
+ a
189
+ )) : i == null ? void 0 : i.slice(0, o).map((e, a) => /* @__PURE__ */ t(
190
+ b,
184
191
  {
185
192
  title: e == null ? void 0 : e.title,
186
193
  image: (e == null ? void 0 : e.image) || null,
187
194
  text: e == null ? void 0 : e.text,
188
195
  buttonText: e == null ? void 0 : e.buttonText,
189
- onCardClick: (s, p) => n(e, p),
190
- metadata: { name: c, accessor: e == null ? void 0 : e.accessor }
196
+ onCardClick: (p, g) => l(e, g),
197
+ metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
191
198
  },
192
- m
193
- )) })
199
+ a
200
+ )) }) })
194
201
  }
195
- ) });
202
+ );
196
203
  });
197
204
  export {
198
- F as default
205
+ X as default
199
206
  };
@@ -1,12 +1,12 @@
1
- "use strict";const t=require("react/jsx-runtime"),l=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),W=require("./useDetectMobile-zkbzoOGV.cjs"),m=require("./utils-Dl9xPH4c.cjs"),A=require("./style-Db3VFbfP.cjs"),I=require("./Button.cjs"),_=require("./Link.cjs"),z=require("./index-BueKsXT8.cjs"),E=require("./index-BvQx3xAm.cjs"),P=x.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),b=require("./utils-Dl9xPH4c.cjs"),W=require("./style-Db3VFbfP.cjs"),T=require("./Button.cjs"),E=require("./Link.cjs"),I=require("./index-BueKsXT8.cjs"),M=require("./index-BvQx3xAm.cjs"),n=require("./style-BAcV7F53.cjs"),P=j.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,C=x.styled.div`
9
+ `,O=j.styled.div`
10
10
  display: flex;
11
11
  width: 100%;
12
12
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
@@ -33,22 +33,13 @@
33
33
  object-fit: cover;
34
34
  }
35
35
 
36
- & .skeleton-img {
37
- max-width: 3.3125rem;
38
- min-width: 3.3125rem;
39
- min-height: 3.3125rem;
40
- max-height: 3.3125rem;
41
- border-radius: 0.75rem;
42
- background-color: ${m.linearGradientAnimation("-90deg")};
43
- }
44
-
45
36
  & a {
46
37
  margin-top: auto;
47
38
  }
48
39
 
49
- @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
40
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
50
41
  }
51
- `,N=x.styled.div`
42
+ `,z=j.styled.div`
52
43
  display: flex;
53
44
  flex-direction: column;
54
45
  gap: 0.5rem;
@@ -59,22 +50,33 @@
59
50
  font-size: 1rem;
60
51
  }
61
52
 
62
- & .skeleton-title {
63
- height: 1.5rem;
64
- width: 80%;
65
- background-color: ${m.linearGradientAnimation("-90deg")};
66
- }
67
-
68
- & .skeleton-action {
69
- height: 1.25rem;
70
- width: 20%;
71
- background-color: ${m.linearGradientAnimation("-90deg")};
72
- }
73
-
74
53
  & .text-wr {
75
54
  font-weight: 400;
76
55
  font-size: 0.875rem;
77
56
  color: var(--gray-700, #4e555f);
78
- ${m.truncateTextInRows(3)}
57
+ ${b.truncateTextInRows(3)}
58
+ }
59
+ `,D=a.forwardRef((r,m)=>{const{title:l,imageUrl:c,text:s,buttonText:u,onCardClick:d,metadata:i}=r,h=a.useRef(),p=g=>{d(g,h)};return t.jsxs(O,{ref:h,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:p,children:[t.jsxs(z,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:s}),t.jsx(E,{color:"gray",onClick:p,children:u})]}),t.jsx(I.ProductImageWrapper,{src:c})]})}),F=j.styled(n.SkeletonColumnWrapper)`
60
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
61
+ & .skeleton__tags {
62
+ & > div {
63
+ width: 100%;
64
+ }
65
+ }
66
+
67
+ & .skeleton__cards {
68
+ flex-direction: column;
69
+
70
+ & > div {
71
+ background: linear-gradient(
72
+ to right,
73
+ transparent 0%,
74
+ #f4f6fb 40%,
75
+ #f4f6fb 100%
76
+ );
77
+
78
+ box-shadow: none;
79
+ }
80
+ }
79
81
  }
80
- `,F=l.forwardRef((n,a)=>{const{title:s,imageUrl:c,text:r,buttonText:p,onCardClick:d,metadata:i}=n,u=l.useRef(),g=h=>{d(h,u)};return t.jsxs(C,{ref:u,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:g,children:[t.jsxs(N,{children:[t.jsx("div",{className:"text-wr-title",children:s}),t.jsx("div",{className:"text-wr",children:r}),t.jsx(_,{color:"gray",onClick:g,children:p})]}),t.jsx(z.ProductImageWrapper,{src:c})]})}),O=l.forwardRef(({},n)=>t.jsxs(C,{className:"blog-card",children:[t.jsxs(N,{children:[t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"text-wr"}),t.jsx("div",{className:"skeleton-action"})]}),t.jsx("div",{className:"skeleton-img"})]})),D=({limit:n=3,isLoading:a=!1,keyPrefix:s})=>t.jsx(t.Fragment,{children:Array.from({length:n},(c,r)=>t.jsx(O,{isLoading:a},`${s}-skeleton-product-card-${r}`))}),G=({children:n,fallbackComponent:a=t.jsx(t.Fragment,{}),isLoading:s=!1,limit:c,keyPrefix:r})=>t.jsx(l.Suspense,{fallbackComponent:a,children:s===!0?t.jsx(D,{isLoading:s,limit:c,keyPrefix:r}):n}),y=l.memo(F),L=l.forwardRef((n,a)=>{const{icon:s,title:c,items:r,buttonText:p,limit:d=3,options:i,selectedOption:u=[],onButtonAction:g=()=>{},buttonLink:h,onSelectOption:w=()=>{},onSelectAll:q=()=>{},isLoading:B=!1,onSelectCard:b=()=>{},productsToolbarName:T="All",allButton:$=!1,componentName:k}=n,v=W.useDetectMobile(),R=l.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:v===!0?r==null?void 0:r.map((e,f)=>t.jsx(y,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(M,j)=>b(e,j),metadata:{name:k,accessor:e==null?void 0:e.accessor}},f)):(o=r==null?void 0:r.slice(0,d))==null?void 0:o.map((e,f)=>t.jsx(y,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(M,j)=>b(e,j),metadata:{name:k,accessor:e==null?void 0:e.accessor}},f))})},[r,v,d,b]);return t.jsxs(A.TitleWithOptionsSectionWrapper,{ref:a,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[m.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:c})]}),m.isDefinedNotEmptyString(h)&&t.jsx(I,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),g(h)},borderRadius:"curved",children:p})]}),(i==null?void 0:i.length)>0&&t.jsx(E.SelectBar,{items:i,selectedIds:u,onRemove:o=>{w(o)},onSelect:o=>{w(o)},onSelectAll:q,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:T,allButton:$}),t.jsx(P,{limit:d,children:t.jsx(G,{isLoading:B,limit:d,keyPrefix:"explore-landing",children:R})})]})});module.exports=L;
82
+ `,A=({keyPrefix:r})=>t.jsxs(F,{children:[t.jsxs(n.SkeletonRowWrapper,{className:"skeleton__tags",children:[t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-1`),t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-2`),t.jsx(n.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-3`)]}),t.jsxs(n.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-4`),t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-5`),t.jsx(n.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-6`)]})]}),U=({keyPrefix:r,isLoading:m=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:m===!0?t.jsx(A,{keyPrefix:r}):c}),C=a.memo(D),X=a.forwardRef((r,m)=>{const{icon:l,title:c,items:s,buttonText:u,limit:d=3,options:i,selectedOption:h=[],onButtonAction:p=()=>{},buttonLink:g,onSelectOption:k=()=>{},onSelectAll:_=()=>{},isLoading:v=!1,onSelectCard:f=()=>{},productsToolbarName:$="All",allButton:N=!1,componentName:y}=r,R=L.useDetectMobile(),q=a.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:R===!0?s==null?void 0:s.map((e,S)=>t.jsx(C,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(B,w)=>f(e,w),metadata:{name:y,accessor:e==null?void 0:e.accessor}},S)):(o=s==null?void 0:s.slice(0,d))==null?void 0:o.map((e,S)=>t.jsx(C,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(B,w)=>f(e,w),metadata:{name:y,accessor:e==null?void 0:e.accessor}},S))})},[s,R,d,f]);return t.jsxs(W.TitleWithOptionsSectionWrapper,{ref:m,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[b.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),b.isDefinedNotEmptyString(u)&&b.isDefinedNotEmptyString(g)&&!v&&t.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),p(g)},borderRadius:"curved",children:u})]}),t.jsxs(U,{isLoading:v,keyPrefix:"blogs-with-filters-skeleton",children:[(i==null?void 0:i.length)>0&&t.jsx(M.SelectBar,{items:i,selectedIds:h,onRemove:o=>{k(o)},onSelect:o=>{k(o)},onSelectAll:_,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:$,allButton:N}),t.jsx(P,{limit:d,children:q})]})]})});module.exports=X;