@lanaco/lnc-react-ui 4.0.206 → 4.0.208

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 (321) hide show
  1. package/BREAKPOINTS.md +148 -0
  2. package/dist/Accordion.cjs +1 -1
  3. package/dist/Accordion.js +6 -6
  4. package/dist/AccordionSummary.cjs +1 -1
  5. package/dist/AccordionSummary.js +8 -8
  6. package/dist/ActionsToolbar.cjs +15 -4
  7. package/dist/ActionsToolbar.js +58 -46
  8. package/dist/AdBannerSection.cjs +4 -4
  9. package/dist/AdBannerSection.js +5 -5
  10. package/dist/Alert.cjs +1 -1
  11. package/dist/Alert.js +1 -1
  12. package/dist/Avatar.cjs +1 -1
  13. package/dist/Avatar.js +12 -12
  14. package/dist/Badge.cjs +1 -1
  15. package/dist/Badge.js +5 -5
  16. package/dist/BannerNextSection.cjs +2 -2
  17. package/dist/BannerNextSection.js +13 -13
  18. package/dist/BannerSectionBasic.cjs +4 -4
  19. package/dist/BannerSectionBasic.js +22 -22
  20. package/dist/BannerSectionCarousel.cjs +28 -6
  21. package/dist/BannerSectionCarousel.js +72 -50
  22. package/dist/BannerSectionGrid.cjs +3 -3
  23. package/dist/BannerSectionGrid.js +13 -13
  24. package/dist/BannerSectionSimple.cjs +15 -15
  25. package/dist/BannerSectionSimple.js +40 -40
  26. package/dist/BannerSectionWithList.cjs +7 -7
  27. package/dist/BannerSectionWithList.js +20 -20
  28. package/dist/BannerSectionWithListImage.cjs +6 -9
  29. package/dist/BannerSectionWithListImage.js +17 -20
  30. package/dist/BlogCardsSponsoredSection.cjs +7 -5
  31. package/dist/BlogCardsSponsoredSection.js +32 -30
  32. package/dist/BlogCategoryCardsSection.cjs +1 -1
  33. package/dist/BlogCategoryCardsSection.js +2 -2
  34. package/dist/BlogExploreSection.cjs +4 -4
  35. package/dist/BlogExploreSection.js +60 -60
  36. package/dist/BlogImagePathSection.cjs +3 -14
  37. package/dist/BlogImagePathSection.js +27 -39
  38. package/dist/BlogListSection.cjs +6 -6
  39. package/dist/BlogListSection.js +32 -32
  40. package/dist/BlogProductCardsSection.cjs +1 -1
  41. package/dist/BlogProductCardsSection.js +3 -3
  42. package/dist/BlogShopCardsSection.cjs +1 -1
  43. package/dist/BlogShopCardsSection.js +3 -3
  44. package/dist/BlogSingleSection.cjs +3 -3
  45. package/dist/BlogSingleSection.js +12 -12
  46. package/dist/BlogsSectionDetailed.cjs +14 -6
  47. package/dist/BlogsSectionDetailed.js +53 -45
  48. package/dist/BlogsSectionLarge.cjs +13 -5
  49. package/dist/BlogsSectionLarge.js +48 -40
  50. package/dist/BlogsSectionSimple.cjs +14 -9
  51. package/dist/BlogsSectionSimple.js +43 -38
  52. package/dist/BlogsSectionSimpleCentered.cjs +17 -8
  53. package/dist/BlogsSectionSimpleCentered.js +68 -59
  54. package/dist/BlogsSectionWithFilters.cjs +16 -11
  55. package/dist/BlogsSectionWithFilters.js +43 -38
  56. package/dist/BrandHitsSection.cjs +7 -7
  57. package/dist/BrandHitsSection.js +13 -13
  58. package/dist/Breadcrumbs.cjs +1 -1
  59. package/dist/Breadcrumbs.js +16 -16
  60. package/dist/Button.cjs +1 -1
  61. package/dist/Button.js +1 -1
  62. package/dist/ButtonGroup.cjs +1 -1
  63. package/dist/ButtonGroup.js +1 -1
  64. package/dist/CalorieCalculatorSection.cjs +15 -15
  65. package/dist/CalorieCalculatorSection.js +84 -84
  66. package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
  67. package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
  68. package/dist/CheckBoxInput.cjs +1 -1
  69. package/dist/CheckBoxInput.js +1 -1
  70. package/dist/Chip.cjs +1 -1
  71. package/dist/Chip.js +1 -1
  72. package/dist/ColorInput.cjs +1 -1
  73. package/dist/ColorInput.js +14 -14
  74. package/dist/ConfirmationForm.cjs +1 -1
  75. package/dist/ConfirmationForm.js +5 -5
  76. package/dist/ContactSection.cjs +4 -4
  77. package/dist/ContactSection.js +72 -72
  78. package/dist/CustomLoanMapSection.cjs +3 -3
  79. package/dist/CustomLoanMapSection.js +67 -67
  80. package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
  81. package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
  82. package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
  83. package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
  84. package/dist/DateInput.cjs +6 -6
  85. package/dist/DateInput.js +646 -645
  86. package/dist/DecimalInput.cjs +1 -1
  87. package/dist/DecimalInput.js +1 -1
  88. package/dist/DecimalInputV2.cjs +1 -1
  89. package/dist/DecimalInputV2.js +1 -1
  90. package/dist/DetailedProductsInfinitiveSection.cjs +10 -4
  91. package/dist/DetailedProductsInfinitiveSection.js +71 -65
  92. package/dist/DetailedProductsSection.cjs +7 -3
  93. package/dist/DetailedProductsSection.js +55 -51
  94. package/dist/DetailsView.cjs +1 -1
  95. package/dist/DetailsView.js +1 -1
  96. package/dist/DoubleRangeSlider.cjs +1 -1
  97. package/dist/DoubleRangeSlider.js +1 -1
  98. package/dist/DragAndDropFile.cjs +1 -1
  99. package/dist/DragAndDropFile.js +1 -1
  100. package/dist/DragDropFiles.cjs +1 -1
  101. package/dist/DragDropFiles.js +13 -13
  102. package/dist/Drawer.cjs +1 -1
  103. package/dist/Drawer.js +1 -1
  104. package/dist/Dropdown.cjs +1 -1
  105. package/dist/Dropdown.js +2 -2
  106. package/dist/DropdownItem.cjs +1 -1
  107. package/dist/DropdownItem.js +1 -1
  108. package/dist/DropdownLookup.cjs +1 -1
  109. package/dist/DropdownLookup.js +1 -1
  110. package/dist/DropdownMenu.cjs +1 -1
  111. package/dist/DropdownMenu.js +7 -7
  112. package/dist/EditableTable.cjs +1 -1
  113. package/dist/EditableTable.js +8 -8
  114. package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
  115. package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
  116. package/dist/FaqSection.cjs +3 -3
  117. package/dist/FaqSection.js +52 -52
  118. package/dist/FeedbackSection.cjs +3 -3
  119. package/dist/FeedbackSection.js +15 -15
  120. package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
  121. package/dist/FieldOfInterestsMasonrySection.js +73 -67
  122. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
  123. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
  124. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
  125. package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
  126. package/dist/FileInput.cjs +1 -1
  127. package/dist/FileInput.js +1 -1
  128. package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
  129. package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.js} +1 -1
  130. package/dist/FlexGridItem.cjs +1 -1
  131. package/dist/FlexGridItem.js +1 -1
  132. package/dist/FormField.cjs +1 -1
  133. package/dist/FormField.js +1 -1
  134. package/dist/FormView.cjs +1 -1
  135. package/dist/FormView.js +1 -1
  136. package/dist/GeneralWithTagsCardsSection.cjs +14 -8
  137. package/dist/GeneralWithTagsCardsSection.js +31 -25
  138. package/dist/GiftCardsSection.cjs +15 -7
  139. package/dist/GiftCardsSection.js +44 -36
  140. package/dist/HelpBannerSection.cjs +3 -3
  141. package/dist/HelpBannerSection.js +4 -4
  142. package/dist/Icon.cjs +1 -1
  143. package/dist/Icon.js +4 -4
  144. package/dist/IconButton.cjs +1 -1
  145. package/dist/IconButton.js +1 -1
  146. package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
  147. package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.js} +1 -1
  148. package/dist/Kanban.cjs +1 -1
  149. package/dist/Kanban.js +1 -1
  150. package/dist/KanbanActionsToolbar.cjs +1 -1
  151. package/dist/KanbanActionsToolbar.js +5 -5
  152. package/dist/KanbanView.cjs +1 -1
  153. package/dist/KanbanView.js +9 -9
  154. package/dist/Link.cjs +1 -1
  155. package/dist/Link.js +1 -1
  156. package/dist/LoanCalculatorSection.cjs +3 -3
  157. package/dist/LoanCalculatorSection.js +17 -17
  158. package/dist/LocationFinderSection.cjs +1 -1
  159. package/dist/LocationFinderSection.js +1 -1
  160. package/dist/LocationSearchSection.cjs +13 -6
  161. package/dist/LocationSearchSection.js +34 -27
  162. package/dist/MasonryGeneralCardsSection.cjs +7 -7
  163. package/dist/MasonryGeneralCardsSection.js +24 -24
  164. package/dist/MenuItem.cjs +1 -1
  165. package/dist/MenuItem.js +14 -14
  166. package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
  167. package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +1 -1
  168. package/dist/Modal.cjs +1 -1
  169. package/dist/Modal.js +1 -1
  170. package/dist/MultiSelectDropdown.cjs +1 -1
  171. package/dist/MultiSelectDropdown.js +1 -1
  172. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  173. package/dist/MultiSelectDropdownLookup.js +1 -1
  174. package/dist/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
  175. package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
  176. package/dist/NestedDropdownItem.cjs +1 -1
  177. package/dist/NestedDropdownItem.js +9 -9
  178. package/dist/NestedMenuItem.cjs +1 -1
  179. package/dist/NestedMenuItem.js +7 -7
  180. package/dist/NotificationContainer.cjs +1 -1
  181. package/dist/NotificationContainer.js +1 -1
  182. package/dist/NotificationMessage.cjs +1 -1
  183. package/dist/NotificationMessage.js +5 -5
  184. package/dist/NumberInput.cjs +1 -1
  185. package/dist/NumberInput.js +8 -8
  186. package/dist/OverlayGeneralCardsSection.cjs +19 -31
  187. package/dist/OverlayGeneralCardsSection.js +51 -63
  188. package/dist/PartnerBannerSection.cjs +2 -2
  189. package/dist/PartnerBannerSection.js +2 -2
  190. package/dist/PartnerBrandsSection.cjs +2 -2
  191. package/dist/PartnerBrandsSection.js +24 -17
  192. package/dist/PartnerCardsSection.cjs +3 -3
  193. package/dist/PartnerCardsSection.js +18 -18
  194. package/dist/PartnerStatsSection.cjs +2 -2
  195. package/dist/PartnerStatsSection.js +3 -3
  196. package/dist/PasswordInput.cjs +1 -1
  197. package/dist/PasswordInput.js +19 -19
  198. package/dist/PopoverContent.cjs +1 -1
  199. package/dist/PopoverContent.js +1 -1
  200. package/dist/ProductsWithBannerSection.cjs +20 -10
  201. package/dist/ProductsWithBannerSection.js +79 -69
  202. package/dist/ProgressBar.cjs +1 -1
  203. package/dist/ProgressBar.js +5 -5
  204. package/dist/QuattroCardsSection.cjs +8 -6
  205. package/dist/QuattroCardsSection.js +19 -17
  206. package/dist/QuizSection.cjs +9 -9
  207. package/dist/QuizSection.js +56 -56
  208. package/dist/RadioInput.cjs +1 -1
  209. package/dist/RadioInput.js +1 -1
  210. package/dist/RangeSlider.cjs +1 -1
  211. package/dist/RangeSlider.js +1 -1
  212. package/dist/ReviewsSection.cjs +24 -16
  213. package/dist/ReviewsSection.js +56 -48
  214. package/dist/SalesCampaignsSection.cjs +25 -21
  215. package/dist/SalesCampaignsSection.js +248 -241
  216. package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
  217. package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
  218. package/dist/SearchSection.cjs +1 -1
  219. package/dist/SearchSection.js +1 -1
  220. package/dist/Separator.cjs +1 -1
  221. package/dist/Separator.js +3 -3
  222. package/dist/SeparatorSection.cjs +3 -3
  223. package/dist/SeparatorSection.js +4 -4
  224. package/dist/ShopCardsSection.cjs +11 -5
  225. package/dist/ShopCardsSection.js +40 -34
  226. package/dist/Sidebar.cjs +1 -1
  227. package/dist/Sidebar.js +1 -1
  228. package/dist/SimpleCategoriesSection.cjs +9 -5
  229. package/dist/SimpleCategoriesSection.js +61 -57
  230. package/dist/SimpleProductsSection.cjs +44 -11
  231. package/dist/SimpleProductsSection.js +100 -67
  232. package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
  233. package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
  234. package/dist/Spinner.cjs +1 -1
  235. package/dist/Spinner.js +1 -1
  236. package/dist/StatsSection.cjs +3 -3
  237. package/dist/StatsSection.js +11 -11
  238. package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
  239. package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +1 -1
  240. package/dist/Surface.cjs +1 -1
  241. package/dist/Surface.js +1 -1
  242. package/dist/SwipeableDrawer.cjs +1 -1
  243. package/dist/SwipeableDrawer.js +1 -1
  244. package/dist/TabItem.cjs +1 -1
  245. package/dist/TabItem.js +1 -1
  246. package/dist/Table.cjs +54 -49
  247. package/dist/Table.js +417 -401
  248. package/dist/TableView.cjs +10 -2
  249. package/dist/TableView.js +84 -75
  250. package/dist/TextAreaInput.cjs +1 -1
  251. package/dist/TextAreaInput.js +1 -1
  252. package/dist/TextInput.cjs +1 -1
  253. package/dist/TextInput.js +1 -1
  254. package/dist/ThemeProvider.cjs +4 -4
  255. package/dist/ThemeProvider.js +11 -10
  256. package/dist/TimeInput.cjs +1 -1
  257. package/dist/TimeInput.js +1 -1
  258. package/dist/Toggle.cjs +1 -1
  259. package/dist/Toggle.js +1 -1
  260. package/dist/ToggleSection.cjs +7 -7
  261. package/dist/ToggleSection.js +38 -38
  262. package/dist/TreeMenuSeparator.cjs +1 -1
  263. package/dist/TreeMenuSeparator.js +3 -3
  264. package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
  265. package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
  266. package/dist/UploadedFile.cjs +1 -1
  267. package/dist/UploadedFile.js +7 -7
  268. package/dist/UrgentSaleProductsSection.cjs +10 -4
  269. package/dist/UrgentSaleProductsSection.js +67 -61
  270. package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
  271. package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
  272. package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
  273. package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
  274. package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
  275. package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
  276. package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
  277. package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
  278. package/dist/breakpoints-CcVm-gVm.cjs +1 -0
  279. package/dist/breakpoints-ff0SIcV3.js +91 -0
  280. package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
  281. package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
  282. package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
  283. package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
  284. package/dist/index-B_ilx3wM.cjs +16 -0
  285. package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
  286. package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
  287. package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
  288. package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
  289. package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
  290. package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
  291. package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
  292. package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
  293. package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
  294. package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
  295. package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
  296. package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
  297. package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
  298. package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
  299. package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
  300. package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
  301. package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
  302. package/dist/index.cjs +1 -1
  303. package/dist/index.js +213 -194
  304. package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
  305. package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
  306. package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
  307. package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
  308. package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
  309. package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
  310. package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
  311. package/dist/theme-Q3WOGKWQ.cjs +1 -0
  312. package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
  313. package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
  314. package/dist/utils-B2fsQ6PS.js +334 -0
  315. package/dist/utils-CITgSxXe.cjs +51 -0
  316. package/package.json +1 -1
  317. package/dist/consts-BuFChS64.js +0 -7
  318. package/dist/consts-goSZX3xP.cjs +0 -1
  319. package/dist/index-D-3I_Ppj.cjs +0 -16
  320. package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
  321. package/dist/utils-RnrgDDZP.cjs +0 -51
@@ -1,13 +1,22 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),C=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./utils-RnrgDDZP.cjs"),y=require("./Button.cjs"),S=require("./index-uwl7BjRF.cjs"),p=require("./style-BAcV7F53.cjs"),v=g.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),h=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./breakpoints-CcVm-gVm.cjs"),C=require("./useDetectMobile-DYV6V1yw.cjs"),k=require("./utils-CITgSxXe.cjs"),S=require("./Button.cjs"),y=require("./index-DsINTjQk.cjs"),g=require("./style-BAcV7F53.cjs"),$=f.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
  margin: auto;
6
6
  width: fit-content;
7
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
7
+
8
+ @media ${l.down("M")} {
9
+ grid-template-columns: repeat(2, 1fr);
10
+ }
11
+
12
+ @media ${l.down("S")} {
13
+ grid-template-columns: repeat(2, 1fr);
14
+ }
15
+
16
+ @media ${l.down("XS")} {
8
17
  grid-template-columns: repeat(1, 1fr);
9
18
  }
10
- `,R=g.styled.a`
19
+ `,v=f.styled.a`
11
20
  text-decoration: none;
12
21
  color: var(--gray-950);
13
22
  display: flex;
@@ -45,10 +54,10 @@
45
54
  object-fit: cover;
46
55
  }
47
56
 
48
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
57
+ @media ${l.down("S")} {
49
58
  max-width: unset;
50
59
  }
51
- `,$=g.styled.div`
60
+ `,R=f.styled.div`
52
61
  text-align: center;
53
62
  display: flex;
54
63
  flex-direction: column;
@@ -71,8 +80,8 @@
71
80
  letter-spacing: 0.0156rem;
72
81
  ${k.truncateTextInRows(3)}
73
82
  }
74
- `,w=u.forwardRef((r,l)=>{const{title:n,image:o,text:c,buttonText:f,onCardClick:d,metadata:i,link:m,LinkComponent:e}=r,a=e||"a",h=u.useRef(),s=j=>{d(j,h)};return t.jsxs(R,{ref:h,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:s,as:a,...e?{to:`/${m}`}:{href:`/${m}`},children:[t.jsx(S.ProductImageWrapper,{src:o}),t.jsxs($,{children:[t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:c})]}),t.jsx(y,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:s,size:"medium",children:f})]})}),q=g.styled(p.SkeletonRowWrapper)`
75
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
83
+ `,b=h.forwardRef((r,c)=>{const{title:n,image:o,text:d,buttonText:w,onCardClick:m,metadata:i,link:p,LinkComponent:e}=r,a=e||"a",u=h.useRef(),s=j=>{m(j,u)};return t.jsxs(v,{ref:u,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:s,as:a,...e?{to:`/${p}`}:{href:`/${p}`},children:[t.jsx(y.ProductImageWrapper,{src:o}),t.jsxs(R,{children:[t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:d})]}),t.jsx(S,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:s,size:"medium",children:w})]})}),q=f.styled(g.SkeletonRowWrapper)`
84
+ @media ${l.down("S")} {
76
85
  flex-direction: column;
77
86
 
78
87
  & > div {
@@ -88,4 +97,4 @@
88
97
  box-shadow: none;
89
98
  }
90
99
  }
91
- `,I=({keyPrefix:r})=>t.jsxs(q,{justifyContent:"center",alignItems:"center",children:[t.jsx(p.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(p.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(p.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),L=({keyPrefix:r,isLoading:l=!1,fallbackComponent:n=t.jsx(t.Fragment,{}),children:o})=>t.jsx(u.Suspense,{fallbackComponent:n,children:l===!0?t.jsx(I,{keyPrefix:r}):o}),B=u.forwardRef((r,l)=>{const{items:n,limit:o=3,onSelectCard:c=()=>{},isLoading:f=!1,componentName:d,LinkComponent:i}=r,m=C.useDetectMobile();return t.jsx(L,{isLoading:f,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx(v,{ref:l,limit:o,children:t.jsx(t.Fragment,{children:m===!0?n==null?void 0:n.map((e,a)=>t.jsx(w,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(h,s)=>c(e,s),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},a)):n==null?void 0:n.slice(0,o).map((e,a)=>t.jsx(w,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(h,s)=>c(e,s),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},a))})})})});module.exports=B;
100
+ `,T=({keyPrefix:r})=>t.jsxs(q,{justifyContent:"center",alignItems:"center",children:[t.jsx(g.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(g.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(g.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),L=({keyPrefix:r,isLoading:c=!1,fallbackComponent:n=t.jsx(t.Fragment,{}),children:o})=>t.jsx(h.Suspense,{fallbackComponent:n,children:c===!0?t.jsx(T,{keyPrefix:r}):o}),B=h.forwardRef((r,c)=>{const{items:n,limit:o=3,onSelectCard:d=()=>{},isLoading:w=!1,componentName:m,LinkComponent:i}=r,p=C.useDetectMobile();return t.jsx(L,{isLoading:w,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx($,{ref:c,limit:o,children:t.jsx(t.Fragment,{children:p===!0?n==null?void 0:n.map((e,a)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,s)=>d(e,s),metadata:{name:m,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},a)):n==null?void 0:n.slice(0,o).map((e,a)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,s)=>d(e,s),metadata:{name:m,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},a))})})})});module.exports=B;
@@ -1,22 +1,31 @@
1
- import { jsxs as u, jsx as t, Fragment as C } from "react/jsx-runtime";
2
- import { forwardRef as k, useRef as y, Suspense as v } from "react";
3
- import { s as g } 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 { m as R } from "./utils-DtEfC-TX.js";
1
+ import { jsxs as b, jsx as t, Fragment as C } from "react/jsx-runtime";
2
+ import { forwardRef as S, useRef as y, Suspense as $ } from "react";
3
+ import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { d as l } from "./breakpoints-ff0SIcV3.js";
5
+ import { u as v } from "./useDetectMobile-CcVo3PNi.js";
6
+ import { n as R } from "./utils-B2fsQ6PS.js";
7
7
  import T from "./Button.js";
8
- import { P as B } from "./index-B22BZVBG.js";
9
- import { S as I, a as f } from "./style-BwQ4djFC.js";
10
- const L = g.div`
8
+ import { P as B } from "./index-BvMY2TbK.js";
9
+ import { S as W, a as u } from "./style-BwQ4djFC.js";
10
+ const j = h.div`
11
11
  display: grid;
12
12
  grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
13
13
  gap: 1.25rem;
14
14
  margin: auto;
15
15
  width: fit-content;
16
- @media (max-width: ${b + "px"}) {
16
+
17
+ @media ${l("M")} {
18
+ grid-template-columns: repeat(2, 1fr);
19
+ }
20
+
21
+ @media ${l("S")} {
22
+ grid-template-columns: repeat(2, 1fr);
23
+ }
24
+
25
+ @media ${l("XS")} {
17
26
  grid-template-columns: repeat(1, 1fr);
18
27
  }
19
- `, W = g.a`
28
+ `, z = h.a`
20
29
  text-decoration: none;
21
30
  color: var(--gray-950);
22
31
  display: flex;
@@ -54,10 +63,10 @@ const L = g.div`
54
63
  object-fit: cover;
55
64
  }
56
65
 
57
- @media (max-width: ${b + "px"}) {
66
+ @media ${l("S")} {
58
67
  max-width: unset;
59
68
  }
60
- `, j = g.div`
69
+ `, L = h.div`
61
70
  text-align: center;
62
71
  display: flex;
63
72
  flex-direction: column;
@@ -80,34 +89,34 @@ const L = g.div`
80
89
  letter-spacing: 0.0156rem;
81
90
  ${R(3)}
82
91
  }
83
- `, w = k((r, l) => {
92
+ `, w = S((r, s) => {
84
93
  const {
85
- title: i,
94
+ title: n,
86
95
  image: o,
87
- text: s,
88
- buttonText: h,
89
- onCardClick: d,
90
- metadata: n,
91
- link: c,
96
+ text: d,
97
+ buttonText: f,
98
+ onCardClick: c,
99
+ metadata: i,
100
+ link: p,
92
101
  LinkComponent: e
93
- } = r, m = e || "a", p = y(), a = (S) => {
94
- d(S, p);
102
+ } = r, m = e || "a", g = y(), a = (k) => {
103
+ c(k, g);
95
104
  };
96
- return /* @__PURE__ */ u(
97
- W,
105
+ return /* @__PURE__ */ b(
106
+ z,
98
107
  {
99
- ref: p,
100
- name: n == null ? void 0 : n.name,
101
- "data-accessor": n == null ? void 0 : n.accessor,
108
+ ref: g,
109
+ name: i == null ? void 0 : i.name,
110
+ "data-accessor": i == null ? void 0 : i.accessor,
102
111
  className: "blog-card",
103
112
  onClick: a,
104
113
  as: m,
105
- ...e ? { to: `/${c}` } : { href: `/${c}` },
114
+ ...e ? { to: `/${p}` } : { href: `/${p}` },
106
115
  children: [
107
116
  /* @__PURE__ */ t(B, { src: o }),
108
- /* @__PURE__ */ u(j, { children: [
109
- /* @__PURE__ */ t("div", { className: "text-wr-title", children: i }),
110
- /* @__PURE__ */ t("div", { className: "text-wr", children: s })
117
+ /* @__PURE__ */ b(L, { children: [
118
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: n }),
119
+ /* @__PURE__ */ t("div", { className: "text-wr", children: d })
111
120
  ] }),
112
121
  /* @__PURE__ */ t(
113
122
  T,
@@ -118,14 +127,14 @@ const L = g.div`
118
127
  btnType: "outline",
119
128
  onClick: a,
120
129
  size: "medium",
121
- children: h
130
+ children: f
122
131
  }
123
132
  )
124
133
  ]
125
134
  }
126
135
  );
127
- }), z = g(I)`
128
- @media (max-width: ${b + "px"}) {
136
+ }), N = h(W)`
137
+ @media ${l("S")} {
129
138
  flex-direction: column;
130
139
 
131
140
  & > div {
@@ -141,9 +150,9 @@ const L = g.div`
141
150
  box-shadow: none;
142
151
  }
143
152
  }
144
- `, M = ({ keyPrefix: r }) => /* @__PURE__ */ u(z, { justifyContent: "center", alignItems: "center", children: [
153
+ `, I = ({ keyPrefix: r }) => /* @__PURE__ */ b(N, { justifyContent: "center", alignItems: "center", children: [
145
154
  /* @__PURE__ */ t(
146
- f,
155
+ u,
147
156
  {
148
157
  height: "24.75rem",
149
158
  width: "18.5rem",
@@ -152,7 +161,7 @@ const L = g.div`
152
161
  `${r}-1`
153
162
  ),
154
163
  /* @__PURE__ */ t(
155
- f,
164
+ u,
156
165
  {
157
166
  height: "24.75rem",
158
167
  width: "18.5rem",
@@ -161,7 +170,7 @@ const L = g.div`
161
170
  `${r}-2`
162
171
  ),
163
172
  /* @__PURE__ */ t(
164
- f,
173
+ u,
165
174
  {
166
175
  height: "24.75rem",
167
176
  width: "18.5rem",
@@ -169,50 +178,50 @@ const L = g.div`
169
178
  },
170
179
  `${r}-3`
171
180
  )
172
- ] }), N = ({
181
+ ] }), M = ({
173
182
  keyPrefix: r,
174
- isLoading: l = !1,
175
- fallbackComponent: i = /* @__PURE__ */ t(C, {}),
183
+ isLoading: s = !1,
184
+ fallbackComponent: n = /* @__PURE__ */ t(C, {}),
176
185
  children: o
177
- }) => /* @__PURE__ */ t(v, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ t(M, { keyPrefix: r }) : o }), q = k((r, l) => {
186
+ }) => /* @__PURE__ */ t($, { fallbackComponent: n, children: s === !0 ? /* @__PURE__ */ t(I, { keyPrefix: r }) : o }), J = S((r, s) => {
178
187
  const {
179
- items: i,
188
+ items: n,
180
189
  limit: o = 3,
181
- onSelectCard: s = () => {
190
+ onSelectCard: d = () => {
182
191
  },
183
- isLoading: h = !1,
184
- componentName: d,
185
- LinkComponent: n
186
- } = r, c = $();
192
+ isLoading: f = !1,
193
+ componentName: c,
194
+ LinkComponent: i
195
+ } = r, p = v();
187
196
  return /* @__PURE__ */ t(
188
- N,
197
+ M,
189
198
  {
190
- isLoading: h,
199
+ isLoading: f,
191
200
  keyPrefix: "blogs-simple-centered-skeleton",
192
- children: /* @__PURE__ */ t(L, { ref: l, limit: o, children: /* @__PURE__ */ t(C, { children: c === !0 ? i == null ? void 0 : i.map((e, m) => /* @__PURE__ */ t(
201
+ children: /* @__PURE__ */ t(j, { ref: s, limit: o, children: /* @__PURE__ */ t(C, { children: p === !0 ? n == null ? void 0 : n.map((e, m) => /* @__PURE__ */ t(
193
202
  w,
194
203
  {
195
204
  title: e == null ? void 0 : e.title,
196
205
  image: (e == null ? void 0 : e.image) || null,
197
206
  text: e == null ? void 0 : e.text,
198
207
  buttonText: e == null ? void 0 : e.buttonText,
199
- onCardClick: (p, a) => s(e, a),
200
- metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
208
+ onCardClick: (g, a) => d(e, a),
209
+ metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
201
210
  link: e == null ? void 0 : e.link,
202
- LinkComponent: n
211
+ LinkComponent: i
203
212
  },
204
213
  m
205
- )) : i == null ? void 0 : i.slice(0, o).map((e, m) => /* @__PURE__ */ t(
214
+ )) : n == null ? void 0 : n.slice(0, o).map((e, m) => /* @__PURE__ */ t(
206
215
  w,
207
216
  {
208
217
  title: e == null ? void 0 : e.title,
209
218
  image: (e == null ? void 0 : e.image) || null,
210
219
  text: e == null ? void 0 : e.text,
211
220
  buttonText: e == null ? void 0 : e.buttonText,
212
- onCardClick: (p, a) => s(e, a),
213
- metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
221
+ onCardClick: (g, a) => d(e, a),
222
+ metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
214
223
  link: e == null ? void 0 : e.link,
215
- LinkComponent: n
224
+ LinkComponent: i
216
225
  },
217
226
  m
218
227
  )) }) })
@@ -220,5 +229,5 @@ const L = g.div`
220
229
  );
221
230
  });
222
231
  export {
223
- q as default
232
+ J as default
224
233
  };
@@ -1,12 +1,20 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),W=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./utils-RnrgDDZP.cjs"),T=require("./style-B4kAj6YU.cjs"),E=require("./Button.cjs"),I=require("./Link.cjs"),M=require("./index-uwl7BjRF.cjs"),P=require("./index-CRk3vcd4.cjs"),s=require("./style-BAcV7F53.cjs"),O=S.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./breakpoints-CcVm-gVm.cjs"),_=require("./useDetectMobile-DYV6V1yw.cjs"),S=require("./utils-CITgSxXe.cjs"),B=require("./style-DC05rdyx.cjs"),M=require("./Button.cjs"),z=require("./Link.cjs"),D=require("./index-DsINTjQk.cjs"),F=require("./index-vQOR22Py.cjs"),s=require("./style-BAcV7F53.cjs"),P=w.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
6
+ @media ${k.down("M")} {
7
+ grid-template-columns: repeat(2, 1fr);
8
+ }
9
+
10
+ @media ${k.down("S")} {
11
+ grid-template-columns: repeat(2, 1fr);
12
+ }
13
+
14
+ @media ${k.down("XS")} {
7
15
  grid-template-columns: repeat(1, 1fr);
8
16
  }
9
- `,z=S.styled.a`
17
+ `,A=w.styled.a`
10
18
  text-decoration: none;
11
19
  color: var(--gray-950);
12
20
  display: flex;
@@ -38,10 +46,7 @@
38
46
  & a {
39
47
  margin-top: auto;
40
48
  }
41
-
42
- @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
43
- }
44
- `,D=S.styled.div`
49
+ `,E=w.styled.div`
45
50
  display: flex;
46
51
  flex-direction: column;
47
52
  gap: 0.5rem;
@@ -56,10 +61,10 @@
56
61
  font-weight: 400;
57
62
  font-size: 0.875rem;
58
63
  color: var(--gray-700, #4e555f);
59
- ${k.truncateTextInRows(3)}
64
+ ${S.truncateTextInRows(3)}
60
65
  }
61
- `,F=a.forwardRef((r,h)=>{const{title:l,imageUrl:c,text:i,buttonText:p,onCardClick:d,metadata:o,link:m,LinkComponent:g}=r,b=g||"a",u=a.useRef(),j=f=>{d(f,u)};return t.jsxs(z,{ref:u,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,className:"blog-card",onClick:j,to:`/${m}`,as:b,...g?{to:`/${m}`}:{href:`/${m}`},children:[t.jsxs(D,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:i}),t.jsx(I,{color:"gray",onClick:j,children:p})]}),t.jsx(M.ProductImageWrapper,{src:c})]})}),A=S.styled(s.SkeletonColumnWrapper)`
62
- @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
66
+ `,I=a.forwardRef((r,h)=>{const{title:l,imageUrl:c,text:i,buttonText:p,onCardClick:d,metadata:o,link:m,LinkComponent:g}=r,b=g||"a",u=a.useRef(),f=j=>{d(j,u)};return t.jsxs(A,{ref:u,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,className:"blog-card",onClick:f,to:`/${m}`,as:b,...g?{to:`/${m}`}:{href:`/${m}`},children:[t.jsxs(E,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:i}),t.jsx(z,{color:"gray",onClick:f,children:p})]}),t.jsx(D.ProductImageWrapper,{src:c})]})}),O=w.styled(s.SkeletonColumnWrapper)`
67
+ @media ${k.down("S")} {
63
68
  & .skeleton__tags {
64
69
  & > div {
65
70
  width: 100%;
@@ -81,4 +86,4 @@
81
86
  }
82
87
  }
83
88
  }
84
- `,U=({keyPrefix:r})=>t.jsxs(A,{children:[t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__tags",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-3`)]}),t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-4`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-5`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-6`)]})]}),X=({keyPrefix:r,isLoading:h=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:h===!0?t.jsx(U,{keyPrefix:r}):c}),_=a.memo(F),Z=a.forwardRef((r,h)=>{const{icon:l,title:c,items:i,buttonText:p,limit:d=3,options:o,selectedOption:m=[],onButtonAction:g=()=>{},buttonLink:b,onSelectOption:u=()=>{},onSelectAll:j=()=>{},isLoading:f=!1,onSelectCard:y=()=>{},productsToolbarName:L="All",allButton:N=!1,componentName:x,LinkComponent:R}=r,$=W.useDetectMobile(),q=a.useMemo(()=>{var n;return t.jsx(t.Fragment,{children:$===!0?i==null?void 0:i.map((e,w)=>t.jsx(_,{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,v)=>y(e,v),metadata:{name:x,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},w)):(n=i==null?void 0:i.slice(0,d))==null?void 0:n.map((e,w)=>t.jsx(_,{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,v)=>y(e,v),metadata:{name:x,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},w))})},[i,$,d]);return t.jsxs(T.TitleWithOptionsSectionWrapper,{ref:h,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[k.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),k.isDefinedNotEmptyString(p)&&k.isDefinedNotEmptyString(b)&&!f&&t.jsx(E,{type:"button",btnType:"tinted",color:"neutral",onClick:n=>{var e;(e=n==null?void 0:n.target)==null||e.blur(),g(b)},borderRadius:"curved",children:p})]}),t.jsxs(X,{isLoading:f,keyPrefix:"blogs-with-filters-skeleton",children:[(o==null?void 0:o.length)>0&&t.jsx(P.SelectBar,{items:o,selectedIds:m,onRemove:n=>{u(n)},onSelect:n=>{u(n)},onSelectAll:j,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:L,allButton:N}),t.jsx(O,{limit:d,children:q})]})]})});module.exports=Z;
89
+ `,U=({keyPrefix:r})=>t.jsxs(O,{children:[t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__tags",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"2.25rem",width:"128px",borderRadius:"1rem"},`${r}-3`)]}),t.jsxs(s.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-4`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-5`),t.jsx(s.SkeletonLinePlaceholder,{height:"10.375rem",borderRadius:"0.75rem"},`${r}-6`)]})]}),K=({keyPrefix:r,isLoading:h=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:h===!0?t.jsx(U,{keyPrefix:r}):c}),q=a.memo(I),G=a.forwardRef((r,h)=>{const{icon:l,title:c,items:i,buttonText:p,limit:d=3,options:o,selectedOption:m=[],onButtonAction:g=()=>{},buttonLink:b,onSelectOption:u=()=>{},onSelectAll:f=()=>{},isLoading:j=!1,onSelectCard:y=()=>{},productsToolbarName:W="All",allButton:x=!1,componentName:$,LinkComponent:R}=r,N=_.useDetectMobile(),L=a.useMemo(()=>{var n;return t.jsx(t.Fragment,{children:N===!0?i==null?void 0:i.map((e,v)=>t.jsx(q,{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:(T,C)=>y(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},v)):(n=i==null?void 0:i.slice(0,d))==null?void 0:n.map((e,v)=>t.jsx(q,{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:(T,C)=>y(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:R},v))})},[i,N,d]);return t.jsxs(B.TitleWithOptionsSectionWrapper,{ref:h,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[S.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),S.isDefinedNotEmptyString(p)&&S.isDefinedNotEmptyString(b)&&!j&&t.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:n=>{var e;(e=n==null?void 0:n.target)==null||e.blur(),g(b)},borderRadius:"curved",children:p})]}),t.jsxs(K,{isLoading:j,keyPrefix:"blogs-with-filters-skeleton",children:[(o==null?void 0:o.length)>0&&t.jsx(F.SelectBar,{items:o,selectedIds:m,onRemove:n=>{u(n)},onSelect:n=>{u(n)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:W,allButton:x}),t.jsx(P,{limit:d,children:L})]})]})});module.exports=G;
@@ -1,24 +1,32 @@
1
1
  import { jsxs as a, jsx as t, Fragment as _ } from "react/jsx-runtime";
2
- import { forwardRef as L, useRef as O, Suspense as j, memo as A, useMemo as E } from "react";
3
- import { s as w } 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 { m as D, k as C } from "./utils-DtEfC-TX.js";
7
- import { T as K } from "./style-neMbLWE6.js";
2
+ import { forwardRef as L, useRef as A, Suspense as I, memo as O, useMemo as U } from "react";
3
+ import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { d as w } from "./breakpoints-ff0SIcV3.js";
5
+ import { u as D } from "./useDetectMobile-CcVo3PNi.js";
6
+ import { n as K, l as $ } from "./utils-B2fsQ6PS.js";
7
+ import { T as E } from "./style-BUyFad_y.js";
8
8
  import G from "./Button.js";
9
9
  import H from "./Link.js";
10
- import { P } from "./index-B22BZVBG.js";
11
- import { S as X } from "./index-CwMCk9wV.js";
12
- import { b as Z, S as y, a as s } from "./style-BwQ4djFC.js";
13
- const q = w.div`
10
+ import { P as X } from "./index-BvMY2TbK.js";
11
+ import { S as q } from "./index-BzSWu-7v.js";
12
+ import { b as J, S as y, a as s } from "./style-BwQ4djFC.js";
13
+ const P = S.div`
14
14
  display: grid;
15
15
  grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
16
16
  gap: 1.25rem;
17
17
 
18
- @media (max-width: ${$ + "px"}) {
18
+ @media ${w("M")} {
19
+ grid-template-columns: repeat(2, 1fr);
20
+ }
21
+
22
+ @media ${w("S")} {
23
+ grid-template-columns: repeat(2, 1fr);
24
+ }
25
+
26
+ @media ${w("XS")} {
19
27
  grid-template-columns: repeat(1, 1fr);
20
28
  }
21
- `, J = w.a`
29
+ `, Q = S.a`
22
30
  text-decoration: none;
23
31
  color: var(--gray-950);
24
32
  display: flex;
@@ -50,10 +58,7 @@ const q = w.div`
50
58
  & a {
51
59
  margin-top: auto;
52
60
  }
53
-
54
- @media (max-width: ${$ + "px"}) {
55
- }
56
- `, Q = w.div`
61
+ `, V = S.div`
57
62
  display: flex;
58
63
  flex-direction: column;
59
64
  gap: 0.5rem;
@@ -68,9 +73,9 @@ const q = w.div`
68
73
  font-weight: 400;
69
74
  font-size: 0.875rem;
70
75
  color: var(--gray-700, #4e555f);
71
- ${D(3)}
76
+ ${K(3)}
72
77
  }
73
- `, V = L((r, h) => {
78
+ `, Y = L((r, h) => {
74
79
  const {
75
80
  title: l,
76
81
  imageUrl: m,
@@ -80,11 +85,11 @@ const q = w.div`
80
85
  metadata: o,
81
86
  link: d,
82
87
  LinkComponent: g
83
- } = r, f = g || "a", p = O(), b = (k) => {
88
+ } = r, f = g || "a", p = A(), b = (k) => {
84
89
  c(k, p);
85
90
  };
86
91
  return /* @__PURE__ */ a(
87
- J,
92
+ Q,
88
93
  {
89
94
  ref: p,
90
95
  name: o == null ? void 0 : o.name,
@@ -95,17 +100,17 @@ const q = w.div`
95
100
  as: f,
96
101
  ...g ? { to: `/${d}` } : { href: `/${d}` },
97
102
  children: [
98
- /* @__PURE__ */ a(Q, { children: [
103
+ /* @__PURE__ */ a(V, { children: [
99
104
  /* @__PURE__ */ t("div", { className: "text-wr-title", children: l }),
100
105
  /* @__PURE__ */ t("div", { className: "text-wr", children: n }),
101
106
  /* @__PURE__ */ t(H, { color: "gray", onClick: b, children: u })
102
107
  ] }),
103
- /* @__PURE__ */ t(P, { src: m })
108
+ /* @__PURE__ */ t(X, { src: m })
104
109
  ]
105
110
  }
106
111
  );
107
- }), Y = w(Z)`
108
- @media (max-width: ${$ + "px"}) {
112
+ }), Z = S(J)`
113
+ @media ${w("S")} {
109
114
  & .skeleton__tags {
110
115
  & > div {
111
116
  width: 100%;
@@ -127,7 +132,7 @@ const q = w.div`
127
132
  }
128
133
  }
129
134
  }
130
- `, x = ({ keyPrefix: r }) => /* @__PURE__ */ a(Y, { children: [
135
+ `, x = ({ keyPrefix: r }) => /* @__PURE__ */ a(Z, { children: [
131
136
  /* @__PURE__ */ a(y, { className: "skeleton__tags", children: [
132
137
  /* @__PURE__ */ t(
133
138
  s,
@@ -188,7 +193,7 @@ const q = w.div`
188
193
  isLoading: h = !1,
189
194
  fallbackComponent: l = /* @__PURE__ */ t(_, {}),
190
195
  children: m
191
- }) => /* @__PURE__ */ t(j, { fallbackComponent: l, children: h === !0 ? /* @__PURE__ */ t(x, { keyPrefix: r }) : m }), B = A(V), he = L((r, h) => {
196
+ }) => /* @__PURE__ */ t(I, { fallbackComponent: l, children: h === !0 ? /* @__PURE__ */ t(x, { keyPrefix: r }) : m }), B = O(Y), he = L((r, h) => {
192
197
  const {
193
198
  icon: l,
194
199
  title: m,
@@ -211,43 +216,43 @@ const q = w.div`
211
216
  allButton: z = !1,
212
217
  componentName: T,
213
218
  LinkComponent: N
214
- } = r, W = U(), I = E(() => {
219
+ } = r, W = D(), F = U(() => {
215
220
  var i;
216
- return /* @__PURE__ */ t(_, { children: W === !0 ? n == null ? void 0 : n.map((e, S) => /* @__PURE__ */ t(
221
+ return /* @__PURE__ */ t(_, { children: W === !0 ? n == null ? void 0 : n.map((e, v) => /* @__PURE__ */ t(
217
222
  B,
218
223
  {
219
224
  title: e == null ? void 0 : e.title,
220
225
  imageUrl: (e == null ? void 0 : e.image) || null,
221
226
  text: e == null ? void 0 : e.text,
222
227
  buttonText: e == null ? void 0 : e.buttonText,
223
- onCardClick: (F, v) => R(e, v),
228
+ onCardClick: (j, C) => R(e, C),
224
229
  metadata: { name: T, accessor: e == null ? void 0 : e.accessor },
225
230
  link: e == null ? void 0 : e.link,
226
231
  LinkComponent: N
227
232
  },
228
- S
229
- )) : (i = n == null ? void 0 : n.slice(0, c)) == null ? void 0 : i.map((e, S) => /* @__PURE__ */ t(
233
+ v
234
+ )) : (i = n == null ? void 0 : n.slice(0, c)) == null ? void 0 : i.map((e, v) => /* @__PURE__ */ t(
230
235
  B,
231
236
  {
232
237
  title: e == null ? void 0 : e.title,
233
238
  imageUrl: (e == null ? void 0 : e.image) || null,
234
239
  text: e == null ? void 0 : e.text,
235
240
  buttonText: e == null ? void 0 : e.buttonText,
236
- onCardClick: (F, v) => R(e, v),
241
+ onCardClick: (j, C) => R(e, C),
237
242
  metadata: { name: T, accessor: e == null ? void 0 : e.accessor },
238
243
  link: e == null ? void 0 : e.link,
239
244
  LinkComponent: N
240
245
  },
241
- S
246
+ v
242
247
  )) });
243
248
  }, [n, W, c]);
244
- return /* @__PURE__ */ a(K, { ref: h, children: [
249
+ return /* @__PURE__ */ a(E, { ref: h, children: [
245
250
  /* @__PURE__ */ a("div", { className: "regular-title", children: [
246
251
  /* @__PURE__ */ a("div", { className: "regular-title-text", children: [
247
- C(l) && /* @__PURE__ */ t("i", { className: l }),
252
+ $(l) && /* @__PURE__ */ t("i", { className: l }),
248
253
  /* @__PURE__ */ t("span", { children: m })
249
254
  ] }),
250
- C(u) && C(f) && !k && /* @__PURE__ */ t(
255
+ $(u) && $(f) && !k && /* @__PURE__ */ t(
251
256
  G,
252
257
  {
253
258
  type: "button",
@@ -269,7 +274,7 @@ const q = w.div`
269
274
  keyPrefix: "blogs-with-filters-skeleton",
270
275
  children: [
271
276
  (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(
272
- X,
277
+ q,
273
278
  {
274
279
  items: o,
275
280
  selectedIds: d,
@@ -287,7 +292,7 @@ const q = w.div`
287
292
  allButton: z
288
293
  }
289
294
  ),
290
- /* @__PURE__ */ t(q, { limit: c, children: I })
295
+ /* @__PURE__ */ t(P, { limit: c, children: F })
291
296
  ]
292
297
  }
293
298
  )
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),p=require("react"),_=require("./utils-RnrgDDZP.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),o=require("./style-BAcV7F53.cjs"),x=m.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),p=require("react"),_=require("./utils-CITgSxXe.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./breakpoints-CcVm-gVm.cjs"),o=require("./style-BAcV7F53.cjs"),x=m.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  width: 7.5rem;
@@ -14,7 +14,7 @@
14
14
  height: auto;
15
15
  }
16
16
 
17
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
17
+ @media ${g.down("S")} {
18
18
  width: 4.5rem;
19
19
  height: auto;
20
20
  max-height: 4.5rem;
@@ -24,7 +24,7 @@
24
24
  height: auto;
25
25
  }
26
26
  }
27
- `,u=p.forwardRef(({imageComponent:r,image:n,onSelectCard:a,urlPrefix:i,urlSufix:s,code:l,LinkComponent:d},c)=>{const h=d||"a";return e.jsx(x,{ref:c,onClick:a,as:h,...d?{to:`${i}${l}${s}`}:{href:`${i}${l}${s}`},children:_.isDefined(r)?r:e.jsx("img",{src:n,className:"wrapper__image"})})}),j=m.styled.div`
27
+ `,u=p.forwardRef(({imageComponent:r,image:n,onSelectCard:a,urlPrefix:s,urlSufix:i,code:l,LinkComponent:d},c)=>{const h=d||"a";return e.jsx(x,{ref:c,onClick:a,as:h,...d?{to:`${s}${l}${i}`}:{href:`${s}${l}${i}`},children:_.isDefined(r)?r:e.jsx("img",{src:n,className:"wrapper__image"})})}),j=m.styled.div`
28
28
  display: flex;
29
29
  flex-direction: column;
30
30
  align-items: flex-start;
@@ -73,20 +73,20 @@
73
73
  }
74
74
  }
75
75
 
76
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
76
+ @media ${g.down("S")} {
77
77
  & .wrapper__content {
78
78
  align-content: center;
79
79
  gap: 1rem;
80
80
  flex-wrap: wrap;
81
81
 
82
82
  & .wrapper__item {
83
- max-width: 4 0.5rem;
83
+ max-width: 4.5rem;
84
84
  }
85
85
  }
86
86
  }
87
87
  `,f=m.styled(o.SkeletonRowWrapper)`
88
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
88
+ @media ${g.down("S")} {
89
89
  gap: 1rem;
90
90
  flex-wrap: wrap;
91
91
  }
92
- `,$=({keyPrefix:r})=>e.jsxs(f,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-1`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-2`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-3`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-4`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-5`)]}),y=({keyPrefix:r,isLoading:n=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:i})=>e.jsx(p.Suspense,{fallbackComponent:a,children:n===!0?e.jsx($,{keyPrefix:r}):i}),v=p.forwardRef(({title:r,subtitle:n,items:a=[],isLoading:i=!1,onSelectCard:s=()=>{},urlPrefix:l,urlSufix:d,LinkComponent:c},h)=>e.jsxs(j,{ref:h,children:[e.jsxs("div",{className:"wrapper__heading",children:[r&&e.jsx("div",{className:"wrapper__title",children:r}),n&&e.jsx("div",{className:"wrapper__subtitle",children:n})]}),e.jsx(y,{isLoading:i,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:a==null?void 0:a.map((t,w)=>e.jsx(u,{image:t==null?void 0:t.image,imageComponent:t==null?void 0:t.imageComponent,onSelectCard:()=>s==null?void 0:s(t),className:"wrapper__item",urlPrefix:l,urlSufix:d,code:t==null?void 0:t.card,LinkComponent:c},`brand-hit-card__${w+1}`))})})]}));module.exports=v;
92
+ `,$=({keyPrefix:r})=>e.jsxs(f,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-1`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-2`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-3`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-4`),e.jsx(o.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-5`)]}),y=({keyPrefix:r,isLoading:n=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:s})=>e.jsx(p.Suspense,{fallbackComponent:a,children:n===!0?e.jsx($,{keyPrefix:r}):s}),b=p.forwardRef(({title:r,subtitle:n,items:a=[],isLoading:s=!1,onSelectCard:i=()=>{},urlPrefix:l,urlSufix:d,LinkComponent:c},h)=>e.jsxs(j,{ref:h,children:[e.jsxs("div",{className:"wrapper__heading",children:[r&&e.jsx("div",{className:"wrapper__title",children:r}),n&&e.jsx("div",{className:"wrapper__subtitle",children:n})]}),e.jsx(y,{isLoading:s,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:a==null?void 0:a.map((t,w)=>e.jsx(u,{image:t==null?void 0:t.image,imageComponent:t==null?void 0:t.imageComponent,onSelectCard:()=>i==null?void 0:i(t),className:"wrapper__item",urlPrefix:l,urlSufix:d,code:t==null?void 0:t.card,LinkComponent:c},`brand-hit-card__${w+1}`))})})]}));module.exports=b;