@lanaco/lnc-react-ui 4.0.125 → 4.0.127

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 (242) 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/BannerSectionCarousel.cjs +1 -1
  14. package/dist/BannerSectionCarousel.js +2 -0
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +3 -3
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogExploreSection.cjs +319 -0
  22. package/dist/BlogExploreSection.js +642 -0
  23. package/dist/BlogListSection.cjs +10 -7
  24. package/dist/BlogListSection.js +32 -29
  25. package/dist/BlogProductCardsSection.cjs +1 -1
  26. package/dist/BlogProductCardsSection.js +32 -26
  27. package/dist/BlogShopCardsSection.cjs +1 -1
  28. package/dist/BlogShopCardsSection.js +1 -1
  29. package/dist/BlogSingleSection.cjs +1 -1
  30. package/dist/BlogSingleSection.js +2 -2
  31. package/dist/BlogsSectionDetailed.cjs +1 -1
  32. package/dist/BlogsSectionDetailed.js +3 -3
  33. package/dist/BlogsSectionLarge.cjs +1 -1
  34. package/dist/BlogsSectionLarge.js +2 -2
  35. package/dist/BlogsSectionSimple.cjs +1 -1
  36. package/dist/BlogsSectionSimple.js +3 -3
  37. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  38. package/dist/BlogsSectionSimpleCentered.js +2 -2
  39. package/dist/BlogsSectionWithFilters.cjs +1 -1
  40. package/dist/BlogsSectionWithFilters.js +4 -4
  41. package/dist/BrandHitsSection.cjs +1 -1
  42. package/dist/BrandHitsSection.js +1 -1
  43. package/dist/Breadcrumbs.cjs +1 -1
  44. package/dist/Breadcrumbs.js +1 -1
  45. package/dist/Button.cjs +1 -1
  46. package/dist/Button.js +1 -1
  47. package/dist/ButtonGroup.cjs +1 -1
  48. package/dist/ButtonGroup.js +1 -1
  49. package/dist/CalorieCalculatorSection.cjs +1 -1
  50. package/dist/CalorieCalculatorSection.js +1 -1
  51. package/dist/CheckBoxInput.cjs +1 -1
  52. package/dist/CheckBoxInput.js +1 -1
  53. package/dist/Chip.cjs +1 -1
  54. package/dist/Chip.js +1 -1
  55. package/dist/ColorInput.cjs +1 -1
  56. package/dist/ColorInput.js +1 -1
  57. package/dist/ConfirmationForm.cjs +1 -1
  58. package/dist/ConfirmationForm.js +1 -1
  59. package/dist/CustomLoanMapSection.cjs +1 -1
  60. package/dist/CustomLoanMapSection.js +1 -1
  61. package/dist/{CustomStyles-DpKzWczC.js → CustomStyles-Dd6IDcq_.js} +1 -1
  62. package/dist/{CustomStyles-D3JePSNK.cjs → CustomStyles-K9rgl5Vl.cjs} +1 -1
  63. package/dist/DateInput.cjs +1 -1
  64. package/dist/DateInput.js +1 -1
  65. package/dist/DecimalInput.cjs +1 -1
  66. package/dist/DecimalInput.js +1 -1
  67. package/dist/DecimalInputV2.cjs +1 -1
  68. package/dist/DecimalInputV2.js +1 -1
  69. package/dist/DetailedProductsSection.cjs +1 -1
  70. package/dist/DetailedProductsSection.js +4 -4
  71. package/dist/DetailsView.cjs +1 -1
  72. package/dist/DetailsView.js +1 -1
  73. package/dist/DoubleRangeSlider.cjs +1 -1
  74. package/dist/DoubleRangeSlider.js +1 -1
  75. package/dist/DragAndDropFile.cjs +1 -1
  76. package/dist/DragAndDropFile.js +1 -1
  77. package/dist/DragDropFiles.cjs +1 -1
  78. package/dist/DragDropFiles.js +1 -1
  79. package/dist/Drawer.cjs +1 -1
  80. package/dist/Drawer.js +1 -1
  81. package/dist/Dropdown.cjs +1 -1
  82. package/dist/Dropdown.js +2 -2
  83. package/dist/DropdownItem.cjs +1 -1
  84. package/dist/DropdownItem.js +1 -1
  85. package/dist/DropdownLookup.cjs +1 -1
  86. package/dist/DropdownLookup.js +1 -1
  87. package/dist/DropdownMenu.cjs +1 -1
  88. package/dist/DropdownMenu.js +1 -1
  89. package/dist/EditableTable.cjs +1 -1
  90. package/dist/EditableTable.js +1 -1
  91. package/dist/FaqSection.cjs +3 -175
  92. package/dist/FaqSection.js +121 -314
  93. package/dist/FeedbackSection.cjs +1 -1
  94. package/dist/FeedbackSection.js +1 -1
  95. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  96. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  97. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  98. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  99. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  100. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  101. package/dist/FileInput.cjs +1 -1
  102. package/dist/FileInput.js +1 -1
  103. package/dist/FlexGridItem.cjs +1 -1
  104. package/dist/FlexGridItem.js +1 -1
  105. package/dist/FormField.cjs +1 -1
  106. package/dist/FormField.js +1 -1
  107. package/dist/FormView.cjs +1 -1
  108. package/dist/FormView.js +1 -1
  109. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  110. package/dist/GeneralWithTagsCardsSection.js +1 -1
  111. package/dist/GiftCardsSection.cjs +1 -1
  112. package/dist/GiftCardsSection.js +2 -2
  113. package/dist/Icon.cjs +1 -1
  114. package/dist/Icon.js +1 -1
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +1 -1
  117. package/dist/Kanban.cjs +1 -1
  118. package/dist/Kanban.js +1 -1
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +1 -1
  121. package/dist/KanbanView.cjs +1 -1
  122. package/dist/KanbanView.js +1 -1
  123. package/dist/Link.cjs +1 -1
  124. package/dist/Link.js +1 -1
  125. package/dist/LoanCalculatorSection.cjs +1 -1
  126. package/dist/LoanCalculatorSection.js +1 -1
  127. package/dist/LocationFinderSection.cjs +1 -1
  128. package/dist/LocationFinderSection.js +1 -1
  129. package/dist/LocationSearchSection.cjs +1 -1
  130. package/dist/LocationSearchSection.js +1 -1
  131. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  132. package/dist/MasonryGeneralCardsSection.js +1 -1
  133. package/dist/MenuItem.cjs +1 -1
  134. package/dist/MenuItem.js +1 -1
  135. package/dist/Modal.cjs +1 -1
  136. package/dist/Modal.js +1 -1
  137. package/dist/MultiSelectDropdown.cjs +1 -1
  138. package/dist/MultiSelectDropdown.js +1 -1
  139. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  140. package/dist/MultiSelectDropdownLookup.js +1 -1
  141. package/dist/NestedDropdownItem.cjs +1 -1
  142. package/dist/NestedDropdownItem.js +1 -1
  143. package/dist/NestedMenuItem.cjs +1 -1
  144. package/dist/NestedMenuItem.js +1 -1
  145. package/dist/NotificationContainer.cjs +1 -1
  146. package/dist/NotificationContainer.js +1 -1
  147. package/dist/NotificationMessage.cjs +1 -1
  148. package/dist/NotificationMessage.js +1 -1
  149. package/dist/NumberInput.cjs +1 -1
  150. package/dist/NumberInput.js +1 -1
  151. package/dist/PasswordInput.cjs +1 -1
  152. package/dist/PasswordInput.js +1 -1
  153. package/dist/PopoverContent.cjs +1 -1
  154. package/dist/PopoverContent.js +1 -1
  155. package/dist/ProductsWithBannerSection.cjs +1 -1
  156. package/dist/ProductsWithBannerSection.js +3 -3
  157. package/dist/ProgressBar.cjs +1 -1
  158. package/dist/ProgressBar.js +1 -1
  159. package/dist/QuattroCardsSection.cjs +1 -1
  160. package/dist/QuattroCardsSection.js +1 -1
  161. package/dist/QuizSection.cjs +1 -1
  162. package/dist/QuizSection.js +1 -1
  163. package/dist/RadioInput.cjs +1 -1
  164. package/dist/RadioInput.js +1 -1
  165. package/dist/RangeSlider.cjs +1 -1
  166. package/dist/RangeSlider.js +1 -1
  167. package/dist/ReviewsSection.cjs +1 -1
  168. package/dist/ReviewsSection.js +2 -2
  169. package/dist/SalesCampaignsSection.cjs +39 -22
  170. package/dist/SalesCampaignsSection.js +307 -248
  171. package/dist/Separator.cjs +1 -1
  172. package/dist/Separator.js +1 -1
  173. package/dist/ShopCardsSection.cjs +1 -1
  174. package/dist/ShopCardsSection.js +2 -2
  175. package/dist/Sidebar.cjs +1 -1
  176. package/dist/Sidebar.js +1 -1
  177. package/dist/SimpleCategoriesSection.cjs +1 -1
  178. package/dist/SimpleCategoriesSection.js +3 -3
  179. package/dist/SimpleProductsSection.cjs +1 -1
  180. package/dist/SimpleProductsSection.js +2 -2
  181. package/dist/Spinner.cjs +1 -1
  182. package/dist/Spinner.js +1 -1
  183. package/dist/StatsSection.cjs +1 -1
  184. package/dist/StatsSection.js +1 -1
  185. package/dist/Surface.cjs +1 -1
  186. package/dist/Surface.js +1 -1
  187. package/dist/SwipeableDrawer.cjs +1 -1
  188. package/dist/SwipeableDrawer.js +1 -1
  189. package/dist/TabItem.cjs +1 -1
  190. package/dist/TabItem.js +1 -1
  191. package/dist/Table.cjs +1 -1
  192. package/dist/Table.js +1 -1
  193. package/dist/TableView.cjs +1 -1
  194. package/dist/TableView.js +1 -1
  195. package/dist/TextAreaInput.cjs +1 -1
  196. package/dist/TextAreaInput.js +1 -1
  197. package/dist/TextInput.cjs +1 -1
  198. package/dist/TextInput.js +1 -1
  199. package/dist/ThemeProvider.cjs +1 -1
  200. package/dist/ThemeProvider.js +1 -1
  201. package/dist/TimeInput.cjs +1 -1
  202. package/dist/TimeInput.js +1 -1
  203. package/dist/Toggle.cjs +1 -1
  204. package/dist/Toggle.js +1 -1
  205. package/dist/TreeMenuSeparator.cjs +1 -1
  206. package/dist/TreeMenuSeparator.js +1 -1
  207. package/dist/UploadedFile.cjs +1 -1
  208. package/dist/UploadedFile.js +1 -1
  209. package/dist/UrgentSaleProductsSection.cjs +1 -1
  210. package/dist/UrgentSaleProductsSection.js +1 -1
  211. package/dist/{index-YGcWbzeb.js → index-3TFXgZHA.js} +1 -1
  212. package/dist/{index-BgRyIsRu.js → index-BRciSeV3.js} +1 -1
  213. package/dist/{index-B2pFbNKc.js → index-CU0KClNt.js} +2 -2
  214. package/dist/{index-Cg4t3q_p.cjs → index-CUu7XMJo.cjs} +1 -1
  215. package/dist/{index-DCFJmN23.cjs → index-D0xZLbyl.cjs} +1 -1
  216. package/dist/{index-C9GK00PM.cjs → index-DgGmKhrL.cjs} +1 -1
  217. package/dist/{index-BvSNRLNa.cjs → index-DiIeF_76.cjs} +1 -1
  218. package/dist/{index-BBMleFo5.js → index-DtyNsg2r.js} +1 -1
  219. package/dist/{index-CTJpJFtr.js → index-EE-IJbC3.js} +2 -2
  220. package/dist/{index-B_HNDmXL.cjs → index-zhTWvtwE.cjs} +1 -1
  221. package/dist/index.cjs +1 -1
  222. package/dist/index.js +37 -35
  223. package/dist/{skeleton-CoErfoMc.cjs → skeleton-BP2LF7xv.cjs} +1 -1
  224. package/dist/{skeleton-BXY2S7mC.cjs → skeleton-Bl1q9Yqe.cjs} +1 -1
  225. package/dist/{skeleton-DWZNwK33.js → skeleton-PMiYQLOs.js} +1 -1
  226. package/dist/{skeleton-C_gJZRTs.js → skeleton-fVxknFUi.js} +2 -2
  227. package/dist/{style-JqDQj4jh.cjs → style-C_BRvopE.cjs} +1 -1
  228. package/dist/{style-08foMKSd.js → style-XXDQBreL.js} +1 -1
  229. package/dist/{suspense-categories-card-simple-BbtBbuWb.js → suspense-categories-card-simple-Bln7_MpK.js} +1 -1
  230. package/dist/{suspense-categories-card-simple-CK7XDK4k.cjs → suspense-categories-card-simple-CWahURI0.cjs} +1 -1
  231. package/dist/{suspense-large-BM9s_kZP.js → suspense-large-DrD8xVZi.js} +1 -1
  232. package/dist/{suspense-large-CtcwWswP.cjs → suspense-large-PHdzP1Ln.cjs} +1 -1
  233. package/dist/{suspense-product-card-detailed-LcBMp1iw.cjs → suspense-product-card-detailed-ByW7-U8H.cjs} +1 -1
  234. package/dist/{suspense-product-card-detailed-PArA5O4M.js → suspense-product-card-detailed-Crkoym56.js} +2 -2
  235. package/dist/{suspense-product-card-simple-Z-FddSb-.js → suspense-product-card-simple-BT5gv-kY.js} +1 -1
  236. package/dist/{suspense-product-card-simple-CJwnghtt.cjs → suspense-product-card-simple-f0s0POCq.cjs} +1 -1
  237. package/dist/tag-Bov1gw34.cjs +173 -0
  238. package/dist/tag-CtleOqEC.js +204 -0
  239. package/dist/{utils-BbgAIA9N.js → utils-BPdU4_1q.js} +7 -7
  240. package/dist/{utils-CZynEOC_.cjs → utils-DmMdPm9O.cjs} +2 -2
  241. package/package.json +3 -2
  242. package/vite.config.js +4 -0
@@ -0,0 +1,642 @@
1
+ import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as I } from "react";
3
+ import { P as e } from "./index-CblbdqjE.js";
4
+ import { s as J } from "./utils-BPdU4_1q.js";
5
+ import K from "./TextInput.js";
6
+ import N from "./Icon.js";
7
+ import Q from "./Link.js";
8
+ import L from "./DropdownMenu.js";
9
+ import $ from "./DropdownItem.js";
10
+ import { F as W } from "./tag-CtleOqEC.js";
11
+ import Y from "./BlogProductCardsSection.js";
12
+ import { s as A } from "./emotion-styled.browser.esm-BNN1dTl3.js";
13
+ import z from "./BlogListSection.js";
14
+ import { M as B } from "./consts-BuFChS64.js";
15
+ const O = A.div`
16
+ display: flex;
17
+ justify-content: space-between;
18
+ align-items: center;
19
+ align-self: stretch;
20
+ width: 100%;
21
+
22
+ & .pagination__per-page {
23
+ & button {
24
+ border-radius: 8px;
25
+ border: 1px solid var(--neutral-95012, rgba(20, 22, 26, 0.12));
26
+ background: transparent;
27
+ color: var(---gray-950, #14161a);
28
+ font-size: 0.875rem;
29
+ font-style: normal;
30
+ font-weight: 500;
31
+ line-height: 1.25rem;
32
+ }
33
+ }
34
+
35
+ & .pagination__pages {
36
+ display: flex;
37
+ align-items: center;
38
+ border-radius: 0.375rem;
39
+
40
+ & .pagination__page {
41
+ display: flex;
42
+ width: 2.5rem;
43
+ height: 2.25rem;
44
+ padding: 0.5rem 1rem;
45
+ flex-direction: column;
46
+ justify-content: center;
47
+ align-items: center;
48
+ border-top: 1px solid var(--neutral-95012, rgba(20, 22, 26, 0.12));
49
+ border-right: 1px solid var(--neutral-95012, rgba(20, 22, 26, 0.12));
50
+ border-bottom: 1px solid var(--neutral-95012, rgba(20, 22, 26, 0.12));
51
+ color: var(--gray-600, #676e79);
52
+ font-size: 0.875rem;
53
+ font-style: normal;
54
+ font-weight: 500;
55
+ line-height: 1.25rem;
56
+
57
+ &:hover {
58
+ cursor: pointer;
59
+ background: var(--gray-200, #e4e9f0);
60
+ }
61
+
62
+ &.active {
63
+ border: 1px solid var(--teal-500, #009ea8);
64
+ background: var(--teal-50, #f4fdff);
65
+ color: var(--teal-500, #009ea8);
66
+ }
67
+
68
+ &.disabled {
69
+ cursor: unset;
70
+ border: 1px solid var(--neutral-95012, rgba(20, 22, 26, 0.12));
71
+ opacity: 0.4;
72
+
73
+ &:hover {
74
+ background: transparent;
75
+ }
76
+ }
77
+
78
+ &.ellipsis {
79
+ cursor: unset;
80
+
81
+ &:hover {
82
+ background: transparent;
83
+ }
84
+ }
85
+
86
+ &:first-of-type {
87
+ border-radius: 0.5rem 0 0 0.5rem;
88
+ border-left: 1px solid var(--neutral-95012, rgba(20, 22, 26, 0.12));
89
+ }
90
+
91
+ &:last-of-type {
92
+ border-radius: 0 0.5rem 0.5rem 0;
93
+ }
94
+ }
95
+ }
96
+ `, P = I(
97
+ ({
98
+ perPageOptions: o = [
99
+ { code: 10, name: "Show 10 items" },
100
+ { code: 25, name: "Show 25 items" },
101
+ { code: 50, name: "Show 50 items" }
102
+ ],
103
+ perPage: f,
104
+ handlePerPage: u = () => {
105
+ },
106
+ page: c = 1,
107
+ handlePage: l = () => {
108
+ },
109
+ totalPage: t
110
+ }, m) => {
111
+ var _, s;
112
+ const h = () => {
113
+ c > 1 && (l == null || l(c - 1));
114
+ }, g = () => {
115
+ c < t && (l == null || l(c + 1));
116
+ }, v = () => {
117
+ const r = [];
118
+ if (t <= 7)
119
+ for (let a = 1; a <= t; a++)
120
+ r.push(a);
121
+ else
122
+ c <= 3 ? r.push(1, 2, 3, "...", t) : c >= t - 2 ? r.push(1, "...", t - 2, t - 1, t) : r.push(1, 2, 3, "...", t);
123
+ return r == null ? void 0 : r.map((a, p) => a === "..." ? /* @__PURE__ */ n(
124
+ "div",
125
+ {
126
+ className: "pagination__page ellipsis",
127
+ children: a
128
+ },
129
+ `pagination-ellipsis__${p}`
130
+ ) : /* @__PURE__ */ n(
131
+ "div",
132
+ {
133
+ onClick: () => l(a),
134
+ className: `pagination__page ${c === a ? "active" : ""}`,
135
+ children: a
136
+ },
137
+ `pagination-page__${p}`
138
+ ));
139
+ };
140
+ return /* @__PURE__ */ d(O, { className: "pagination", children: [
141
+ /* @__PURE__ */ n(
142
+ L,
143
+ {
144
+ color: "neutral",
145
+ control: ((_ = o == null ? void 0 : o.find((r) => (r == null ? void 0 : r.code) === f)) == null ? void 0 : _.name) || ((s = o[0]) == null ? void 0 : s.name),
146
+ placement: "bottom",
147
+ zIndex: 1001,
148
+ className: "pagination__per-page",
149
+ children: o == null ? void 0 : o.map((r, a) => /* @__PURE__ */ n(
150
+ $,
151
+ {
152
+ active: (r == null ? void 0 : r.code) === (f == null ? void 0 : f.code),
153
+ className: "sort-by__item",
154
+ onClick: () => u(r),
155
+ children: r == null ? void 0 : r.name
156
+ },
157
+ `blog-epxlore-section-per-page-option__${a + 1}`
158
+ ))
159
+ }
160
+ ),
161
+ /* @__PURE__ */ d("div", { className: "pagination__pages", children: [
162
+ /* @__PURE__ */ n(
163
+ "div",
164
+ {
165
+ className: `pagination__page ${c === 1 ? "disabled" : ""}`,
166
+ onClick: h,
167
+ children: /* @__PURE__ */ n(N, { icon: " mng-lnc-chevron--left" })
168
+ }
169
+ ),
170
+ v(),
171
+ /* @__PURE__ */ n(
172
+ "div",
173
+ {
174
+ className: `pagination__page ${c === t ? "disabled" : ""}`,
175
+ onClick: g,
176
+ children: /* @__PURE__ */ n(N, { icon: " mng-lnc-chevron--right" })
177
+ }
178
+ )
179
+ ] })
180
+ ] });
181
+ }
182
+ ), ee = A.div`
183
+ display: flex;
184
+ align-items: flex-start;
185
+ gap: 2rem;
186
+ align-self: stretch;
187
+
188
+ & button {
189
+ &:focus {
190
+ outline: none;
191
+ }
192
+ }
193
+
194
+ & .landing__main-content {
195
+ display: flex;
196
+ flex-direction: column;
197
+ align-items: flex-start;
198
+ gap: 1.5rem;
199
+
200
+ border-right: 1px solid var(--gray-200, #dddfe4);
201
+ padding-right: 2rem;
202
+
203
+ & .section__tags {
204
+ flex-wrap: wrap;
205
+ }
206
+
207
+ & .pagination {
208
+ padding: 1.25rem 0;
209
+ }
210
+
211
+ & .main-content__title {
212
+ color: var(--gray-950, #14161a);
213
+ font-size: 1.5rem;
214
+ font-style: normal;
215
+ font-weight: 600;
216
+ line-height: 2rem;
217
+ }
218
+
219
+ & .tags__item {
220
+ &:not(.active) {
221
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
222
+ }
223
+ }
224
+
225
+ & .main-content__items {
226
+ display: flex;
227
+ flex-direction: column;
228
+ gap: 1.25rem;
229
+
230
+ & .main-content__divider {
231
+ content: "";
232
+ display: block;
233
+ height: 1px;
234
+ width: 100%;
235
+ background: var(--gray-200, #dddfe4);
236
+ }
237
+
238
+ & .blog-card-item {
239
+ background: transparent;
240
+ border: none;
241
+ padding: 0;
242
+ }
243
+ }
244
+
245
+ & .main-content__actions {
246
+ display: flex;
247
+ justify-content: space-between;
248
+ align-items: center;
249
+ align-self: stretch;
250
+ width: 100%;
251
+
252
+ & .main-content__search {
253
+ border-radius: 999px;
254
+ height: 2.5rem;
255
+ min-height: 2.5rem;
256
+ max-width: 23.75rem;
257
+ width: 100%;
258
+
259
+ border: 1px solid var(--gray-200, #e4e9f0);
260
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
261
+ outline: none;
262
+
263
+ & input::placeholder {
264
+ color: var(--gray-500, #7a8594);
265
+ font-size: 0.875rem;
266
+ font-style: normal;
267
+ font-weight: 400;
268
+ line-height: 1.25rem;
269
+ letter-spacing: 0.0156rem;
270
+ }
271
+
272
+ & .main-content__search-prefix {
273
+ color: var(--gray-500, #7a8594);
274
+ }
275
+ }
276
+
277
+ & .main-content__sort-by {
278
+ & button {
279
+ border-radius: 999px;
280
+ color: var(--gray-950, #14161a);
281
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
282
+ font-size: 0.875rem;
283
+ font-style: normal;
284
+ font-weight: 500;
285
+ line-height: 1.25rem;
286
+ letter-spacing: -0.0056rem;
287
+ }
288
+ }
289
+ }
290
+ }
291
+
292
+ & .landing__side-content {
293
+ display: flex;
294
+ flex-direction: column;
295
+ align-items: flex-start;
296
+ gap: 1.5rem;
297
+ align-self: stretch;
298
+
299
+ & .side-content__title {
300
+ color: var(--gray-950, #14161a);
301
+ font-size: 1rem;
302
+ font-style: normal;
303
+ font-weight: 600;
304
+ line-height: 1.5rem;
305
+ }
306
+
307
+ & .side-content__link {
308
+ color: var(--gray-950, #14161a);
309
+ font-size: 0.75rem;
310
+ font-style: normal;
311
+ font-weight: 500;
312
+ line-height: 1rem;
313
+
314
+ &:hover {
315
+ cursor: pointer;
316
+ text-decoration: underline;
317
+ }
318
+ }
319
+
320
+ & .side-content__items {
321
+ display: flex;
322
+ flex-direction: column;
323
+ align-items: flex-start;
324
+ gap: 1.25rem;
325
+ align-self: stretch;
326
+
327
+ & .side-content__item {
328
+ display: flex;
329
+ align-items: flex-start;
330
+ gap: 1rem;
331
+ align-self: stretch;
332
+
333
+ &:hover {
334
+ cursor: pointer;
335
+ }
336
+
337
+ & .item__image {
338
+ width: 100%;
339
+ max-width: 6rem;
340
+ height: 100%;
341
+ max-height: 3.75rem;
342
+ object-fit: cover;
343
+ border-radius: 0.375rem;
344
+ }
345
+
346
+ & .item__content {
347
+ display: flex;
348
+ flex-direction: column;
349
+ align-items: flex-start;
350
+ gap: 0.25rem;
351
+
352
+ & .item__title {
353
+ color: var(--gray-950, #14161a);
354
+ font-size: 0.875rem;
355
+ font-style: normal;
356
+ font-weight: 500;
357
+ line-height: 1.25rem;
358
+ }
359
+
360
+ & .item__description {
361
+ color: var(--gray-600, #676e79);
362
+ font-size: 0.75rem;
363
+ font-style: normal;
364
+ font-weight: 400;
365
+ line-height: 1rem;
366
+ }
367
+ }
368
+ }
369
+ }
370
+ }
371
+
372
+ @media (max-width: ${B + "px"}) {
373
+ flex-direction: column;
374
+
375
+ & .landing__main-content {
376
+ width: 100%;
377
+ padding-right: 0;
378
+ border-right: none;
379
+
380
+ & .section__tags {
381
+ flex-wrap: nowrap;
382
+ }
383
+
384
+ & .main-content__actions {
385
+ gap: 0.5rem;
386
+ }
387
+
388
+ & .main-content__items {
389
+ & .main-content__divider {
390
+ display: none;
391
+ }
392
+
393
+ & .separated {
394
+ gap: 1.25rem;
395
+
396
+ & > div:not(:last-of-type)::after {
397
+ display: none;
398
+ }
399
+ }
400
+
401
+ & .blog-product-cards-section {
402
+ border-radius: 0;
403
+ }
404
+ }
405
+
406
+ & .pagination {
407
+ justify-content: center;
408
+
409
+ & .pagination__per-page {
410
+ display: none;
411
+ }
412
+ }
413
+ }
414
+
415
+ & .landing__side-content {
416
+ display: none;
417
+ }
418
+ }
419
+ `, ne = I(
420
+ ({
421
+ mainTitle: o,
422
+ sideTitle: f,
423
+ tags: u,
424
+ selectedTag: c,
425
+ handleSelectTag: l = () => {
426
+ },
427
+ blogs: t,
428
+ miniBlogs: m,
429
+ products: h,
430
+ blogsLoading: g = !1,
431
+ productsLoading: v = !1,
432
+ sortingOptions: _,
433
+ sortBy: s,
434
+ handleSortBy: r = () => {
435
+ },
436
+ allTagText: a = "All",
437
+ searchPlaceholderText: p = "Search blogs",
438
+ timeToReadText: k = "{0} min read",
439
+ getBlogImageUrl: x = () => {
440
+ },
441
+ handleSelectBlog: y = () => {
442
+ },
443
+ handleSelectBlogTag: S = () => {
444
+ },
445
+ handleShareBlog: C = () => {
446
+ },
447
+ handleBookmarkBlog: T = () => {
448
+ },
449
+ showAllButtonLink: j,
450
+ showAllButtonText: M = "Show all products",
451
+ viewAllButtonText: D = "View all (11)",
452
+ viewAllButtonLink: te,
453
+ handleViewAll: E = () => {
454
+ },
455
+ handleShowAll: F = () => {
456
+ },
457
+ handleSelectProduct: U = () => {
458
+ },
459
+ getProductImageUrl: q = () => {
460
+ },
461
+ page: H,
462
+ handlePage: R = () => {
463
+ },
464
+ perPage: V,
465
+ handlePerPage: X = () => {
466
+ },
467
+ totalPage: w,
468
+ perPageOptions: Z,
469
+ handleSearch: G = () => {
470
+ }
471
+ }, re) => /* @__PURE__ */ d(ee, { children: [
472
+ /* @__PURE__ */ d("div", { className: "landing__main-content", children: [
473
+ o && /* @__PURE__ */ n("div", { className: "main-content__title", children: o }),
474
+ u && /* @__PURE__ */ n(
475
+ W,
476
+ {
477
+ tags: u,
478
+ allTagText: a,
479
+ selectedTag: c,
480
+ onSelectTag: l
481
+ }
482
+ ),
483
+ /* @__PURE__ */ d("div", { className: "main-content__actions", children: [
484
+ /* @__PURE__ */ n(
485
+ K,
486
+ {
487
+ className: "main-content__search",
488
+ placeholder: p,
489
+ debounceTime: 200,
490
+ prefix: /* @__PURE__ */ n(
491
+ N,
492
+ {
493
+ icon: " mng-lnc-search",
494
+ sizeInUnits: "1.25rem",
495
+ className: "main-content__search-prefix"
496
+ }
497
+ ),
498
+ color: "neutral",
499
+ onChange: G
500
+ }
501
+ ),
502
+ /* @__PURE__ */ n(
503
+ L,
504
+ {
505
+ color: "neutral",
506
+ control: s == null ? void 0 : s.name,
507
+ zIndex: 1001,
508
+ className: "main-content__sort-by",
509
+ children: _ == null ? void 0 : _.map((i, b) => /* @__PURE__ */ n(
510
+ $,
511
+ {
512
+ active: (i == null ? void 0 : i.code) === (s == null ? void 0 : s.code),
513
+ className: "sort-by__item",
514
+ onClick: () => r(i),
515
+ children: i == null ? void 0 : i.name
516
+ },
517
+ `blog-epxlore-section-sorting-option__${b + 1}`
518
+ ))
519
+ }
520
+ )
521
+ ] }),
522
+ /* @__PURE__ */ d("div", { className: "main-content__items", children: [
523
+ t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
524
+ z,
525
+ {
526
+ timeToReadText: k,
527
+ items: t == null ? void 0 : t.slice(0, 5),
528
+ isLoading: g,
529
+ getImage: x,
530
+ onSelectCard: y,
531
+ onSelectOption: S,
532
+ onShare: C,
533
+ onBookmark: T
534
+ }
535
+ ),
536
+ /* @__PURE__ */ n("div", { className: "main-content__divider" }),
537
+ h && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ n(
538
+ Y,
539
+ {
540
+ buttonText: M,
541
+ buttonLink: j,
542
+ onButtonAction: F,
543
+ onSelectCard: U,
544
+ items: h,
545
+ isLoading: v,
546
+ getImage: q,
547
+ isHighlight: !0
548
+ }
549
+ ),
550
+ /* @__PURE__ */ n("div", { className: "main-content__divider" }),
551
+ t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n(
552
+ z,
553
+ {
554
+ timeToReadText: k,
555
+ items: t == null ? void 0 : t.slice(5),
556
+ isLoading: g,
557
+ getImage: x,
558
+ onSelectCard: y,
559
+ onSelectOption: S,
560
+ onShare: C,
561
+ onBookmark: T
562
+ }
563
+ )
564
+ ] }),
565
+ w && w > 1 && /* @__PURE__ */ n(
566
+ P,
567
+ {
568
+ perPageOptions: Z,
569
+ perPage: V,
570
+ handlePerPage: X,
571
+ page: H,
572
+ handlePage: R,
573
+ totalPage: w
574
+ }
575
+ )
576
+ ] }),
577
+ /* @__PURE__ */ d("div", { className: "landing__side-content", children: [
578
+ f && /* @__PURE__ */ n("div", { className: "side-content__title", children: f }),
579
+ /* @__PURE__ */ n("div", { className: "side-content__items", children: m && (m == null ? void 0 : m.length) > 0 && (m == null ? void 0 : m.map((i, b) => /* @__PURE__ */ d(
580
+ "div",
581
+ {
582
+ className: "side-content__item",
583
+ onClick: () => y(i),
584
+ children: [
585
+ /* @__PURE__ */ n(
586
+ "img",
587
+ {
588
+ src: x(i == null ? void 0 : i.imageUrl, i == null ? void 0 : i.uuid) || null,
589
+ alt: `Mini blog ${b + 1}`,
590
+ className: "item__image"
591
+ }
592
+ ),
593
+ /* @__PURE__ */ d("div", { className: "item__content", children: [
594
+ /* @__PURE__ */ n("div", { className: "item__title", children: i == null ? void 0 : i.title }),
595
+ /* @__PURE__ */ n("div", { className: "item__description", children: J(i == null ? void 0 : i.publishedAt) })
596
+ ] })
597
+ ]
598
+ }
599
+ ))) }),
600
+ /* @__PURE__ */ n(Q, { onClick: E, className: "side-content__link", children: D })
601
+ ] })
602
+ ] })
603
+ );
604
+ ne.propTypes = {
605
+ mainTitle: e.string,
606
+ sideTitle: e.string,
607
+ tags: e.array,
608
+ selectedTag: e.any,
609
+ handleSelectTag: e.func,
610
+ blogs: e.array,
611
+ miniBlogs: e.array,
612
+ products: e.array,
613
+ blogsLoading: e.bool,
614
+ productsLoading: e.bool,
615
+ sortingOptions: e.array,
616
+ sortBy: e.any,
617
+ handleSortBy: e.func,
618
+ allTagText: e.string,
619
+ searchPlaceholderText: e.string,
620
+ timeToReadText: e.string,
621
+ getBlogImageUrl: e.func,
622
+ handleSelectBlog: e.func,
623
+ handleSelectBlogTag: e.func,
624
+ handleShareBlog: e.func,
625
+ handleBookmarkBlog: e.func,
626
+ showAllButtonLink: e.string,
627
+ showAllButtonText: e.string,
628
+ viewAllButtonText: e.string,
629
+ handleShowAll: e.func,
630
+ handleSelectProduct: e.func,
631
+ getProductImageUrl: e.func,
632
+ page: e.number,
633
+ handlePage: e.func,
634
+ perPage: e.any,
635
+ handlePerPage: e.func,
636
+ totalPage: e.number,
637
+ perPageOptions: e.array,
638
+ handleSearch: e.func
639
+ };
640
+ export {
641
+ ne as default
642
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),p=require("react"),y=require("./Icon.cjs"),m=require("./IconButton.cjs"),k=require("./Chip.cjs"),o=require("./utils-CZynEOC_.cjs"),N=require("./index-BvSNRLNa.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),q=require("./suspense-large-CtcwWswP.cjs"),I=j.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),p=require("react"),y=require("./Icon.cjs"),m=require("./IconButton.cjs"),k=require("./Chip.cjs"),o=require("./utils-DmMdPm9O.cjs"),N=require("./index-DiIeF_76.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),q=require("./suspense-large-PHdzP1Ln.cjs"),I=j.styled.div`
2
2
  display: flex;
3
3
  padding: 1rem;
4
4
  align-items: center;
@@ -7,7 +7,7 @@
7
7
  align-items: stretch;
8
8
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
9
9
  background: var(--white, #fff);
10
- min-height: 10.5rem;
10
+ min-height: 9.5rem;
11
11
  position: relative;
12
12
  width: 100%;
13
13
 
@@ -23,7 +23,7 @@
23
23
  width: 100%;
24
24
  object-fit: cover;
25
25
  height: auto;
26
- max-height: 9rem;
26
+ max-height: 9.5rem;
27
27
  max-width: 17.75rem;
28
28
  border-radius: 0.75rem;
29
29
  }
@@ -148,18 +148,21 @@
148
148
 
149
149
  & .info__content {
150
150
  align-items: flex-start;
151
+ justify-content: space-between;
151
152
  width: 100%;
152
153
  }
153
154
  }
154
155
  }
155
156
  }
156
- `,C=p.forwardRef(({title:g,imageUrl:s,options:i,publishedAt:n,timeToReadText:a="{0} min read",timeToRead:l=0,numberOfLikes:f=0,numberOfComments:u=0,isBookmarked:c=!1,onSelectCard:h=()=>{},onSelectOption:_=()=>{},onBookmark:e=()=>{},onShare:d=()=>{}},w)=>t.jsxs(I,{onClick:h,children:[t.jsx(N.ProductImageWrapper,{src:s,className:"wrapper__image"}),t.jsxs("div",{className:"wrapper__content",children:[t.jsxs("div",{className:"wrapper__subcontent",children:[t.jsx("div",{className:"wrapper__title",children:g}),t.jsxs("div",{className:"wrapper__tags-action",children:[t.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((r,v)=>t.jsx(k,{label:r==null?void 0:r.name,color:r==null?void 0:r.color,className:"wrapper__tag",onClick:b=>{b==null||b.stopPropagation(),_(r==null?void 0:r.code)}},`blog-card-sponsored-option__${v+1}`)))}),t.jsxs("div",{className:"info__content mobile-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]}),t.jsxs("div",{className:"wrapper__info",children:[t.jsxs("div",{className:"info__content",children:[t.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(n)} • ${o.formatString(a,l)}`}),t.jsxs("div",{className:"info__text",children:[t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),o.getRoundedNumber(f)]}),t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),o.getRoundedNumber(u)]})]})]}),t.jsxs("div",{className:"info__content desktop-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]})]})),P=j.styled.div`
157
+ `,C=p.forwardRef(({title:g,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:f=0,numberOfComments:u=0,isBookmarked:c=!1,onSelectCard:h=()=>{},onSelectOption:_=()=>{},onBookmark:e=()=>{},onShare:d=()=>{}},w)=>t.jsxs(I,{onClick:h,className:"blog-card-item",children:[t.jsx(N.ProductImageWrapper,{src:s,className:"wrapper__image"}),t.jsxs("div",{className:"wrapper__content",children:[t.jsxs("div",{className:"wrapper__subcontent",children:[t.jsx("div",{className:"wrapper__title",children:g}),t.jsxs("div",{className:"wrapper__tags-action",children:[t.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((r,v)=>t.jsx(k,{label:r==null?void 0:r.name,color:r==null?void 0:r.color,className:"wrapper__tag",onClick:b=>{b==null||b.stopPropagation(),_(r==null?void 0:r.code)}},`blog-card-sponsored-option__${v+1}`)))}),t.jsxs("div",{className:"info__content mobile-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]}),t.jsxs("div",{className:"wrapper__info",children:[t.jsxs("div",{className:"info__content",children:[t.jsx("div",{className:"info__text",children:`${o.formatLocaleDateString(a)} • ${o.formatString(n,l)}`}),t.jsxs("div",{className:"info__text",children:[t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),o.getRoundedNumber(f)]}),t.jsxs("div",{children:[t.jsx(y,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),o.getRoundedNumber(u)]})]})]}),t.jsxs("div",{className:"info__content desktop-only",children:[t.jsx(m,{icon:c?" mng-lnc-bookmark--filled":" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),e()}}),t.jsx(m,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:r=>{r==null||r.stopPropagation(),d()}})]})]})]})]})),P=j.styled.div`
157
158
  display: flex;
158
159
  flex-direction: column;
159
160
  align-items: flex-start;
160
- gap: 1.5rem;
161
+ gap: 1.25rem;
161
162
 
162
163
  &.separated {
164
+ gap: 2.5rem;
165
+
163
166
  & > div {
164
167
  position: relative;
165
168
  }
@@ -172,7 +175,7 @@
172
175
  background: var(--gray-200, #dddfe4);
173
176
  position: absolute;
174
177
  left: 0;
175
- bottom: -0.75rem;
178
+ bottom: -1.25rem;
176
179
  }
177
180
  }
178
- `,z=p.memo(C),L=p.forwardRef(({timeToReadText:g="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:n=()=>{},onShare:a=()=>{},onBookmark:l=()=>{},isLoading:f=!1,getImage:u=()=>{},isSeparated:c=!0},h)=>{const _=p.useMemo(()=>s==null?void 0:s.map((e,d)=>t.jsx(z,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:g,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:()=>i==null?void 0:i(e),onSelectOption:w=>n==null?void 0:n(w),onShare:()=>a==null?void 0:a(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${d+1}`)),[s]);return t.jsx(P,{className:c?"separated":"",children:t.jsx(q.SuspenseBlogLarge,{isLoading:f,limit:5,keyPrefix:"blog-section",children:_})})});module.exports=L;
181
+ `,z=p.memo(C),L=p.forwardRef(({timeToReadText:g="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:f=!1,getImage:u=()=>{},isSeparated:c=!0},h)=>{const _=p.useMemo(()=>s==null?void 0:s.map((e,d)=>t.jsx(z,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:g,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,isBookmarked:e==null?void 0:e.isBookmarked,onSelectCard:()=>i==null?void 0:i(e),onSelectOption:w=>a==null?void 0:a(w),onShare:()=>n==null?void 0:n(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${d+1}`)),[s]);return t.jsx(P,{className:c?"separated":"",children:t.jsx(q.SuspenseBlogLarge,{isLoading:f,limit:5,keyPrefix:"blog-section",children:_})})});module.exports=L;