@lanaco/lnc-react-ui 4.0.206 → 4.0.207

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 +27 -6
  21. package/dist/BannerSectionCarousel.js +71 -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 +13 -9
  163. package/dist/MasonryGeneralCardsSection.js +34 -30
  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
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "./TextInput.js";
4
4
  import "./Icon.js";
5
- import { S as a } from "./SearchSection-DAaMecR4.js";
5
+ import { S as a } from "./SearchSection-BEYnWPSr.js";
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),c=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./utils-RnrgDDZP.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=i.styled.div`
1
+ "use strict";const n=require("react/jsx-runtime"),c=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./utils-CITgSxXe.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=i.styled.div`
2
2
  height: 1px;
3
3
  background-color: ${e=>m.getColorRgbaValue(e.theme,"MenuItem","default","enabled","separator")};
4
4
  margin-left: -0.25rem;
package/dist/Separator.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as l } from "react";
3
3
  import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { b as p } from "./utils-DtEfC-TX.js";
4
+ import { c as p } from "./utils-B2fsQ6PS.js";
5
5
  import { u as i } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
- const d = n.div`
6
+ const c = n.div`
7
7
  height: 1px;
8
8
  background-color: ${(r) => p(
9
9
  r.theme,
@@ -17,7 +17,7 @@ const d = n.div`
17
17
  `, b = l((r, e) => {
18
18
  const { className: t = "", style: o = {}, ...a } = r, m = i();
19
19
  return /* @__PURE__ */ s(
20
- d,
20
+ c,
21
21
  {
22
22
  ref: e,
23
23
  theme: m,
@@ -1,9 +1,9 @@
1
- "use strict";const r=require("react/jsx-runtime"),t=require("react"),s=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),a=s.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./breakpoints-CcVm-gVm.cjs"),a=o.styled.div`
2
2
  width: 100%;
3
3
  height: 0.125rem;
4
4
  background-color: var(--gray-95008, rgba(20, 22, 26, 0.08));
5
5
 
6
- @media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
6
+ @media ${s.down("S")} {
7
7
  height: 0.5rem;
8
8
  }
9
- `,c=t.forwardRef(({},e)=>r.jsx(a,{ref:e,className:"separator-section-lnc"}));module.exports=c;
9
+ `,i=t.forwardRef(({},e)=>r.jsx(a,{ref:e,className:"separator-section-lnc"}));module.exports=i;
@@ -1,16 +1,16 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as a } from "react";
3
3
  import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as e } from "./consts-BuFChS64.js";
4
+ import { d as e } from "./breakpoints-ff0SIcV3.js";
5
5
  const m = t.div`
6
6
  width: 100%;
7
7
  height: 0.125rem;
8
8
  background-color: var(--gray-95008, rgba(20, 22, 26, 0.08));
9
9
 
10
- @media (max-width: ${e + "px"}) {
10
+ @media ${e("S")} {
11
11
  height: 0.5rem;
12
12
  }
13
- `, d = a(({}, r) => /* @__PURE__ */ o(m, { ref: r, className: "separator-section-lnc" }));
13
+ `, c = a(({}, r) => /* @__PURE__ */ o(m, { ref: r, className: "separator-section-lnc" }));
14
14
  export {
15
- d as default
15
+ c as default
16
16
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),h=require("react"),u=require("./Button.cjs"),$=require("./index-D_5jNP-o.cjs"),R=require("./utils-RnrgDDZP.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),s=require("./style-BAcV7F53.cjs"),N=g.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./Button.cjs"),$=require("./index-CUaeb_TU.cjs"),R=require("./utils-CITgSxXe.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),s=require("./style-BAcV7F53.cjs"),N=f.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -67,6 +67,12 @@
67
67
  width: 100%;
68
68
  }
69
69
 
70
+ @media ${p.down("M")} {
71
+ & .wrapper__cards {
72
+ grid-template-columns: repeat(2, minmax(0, 1fr));
73
+ }
74
+ }
75
+
70
76
  & .wrapper__view-all {
71
77
  align-self: center;
72
78
  color: var(--neutral-600, #0f2a46);
@@ -83,7 +89,7 @@
83
89
  display: none;
84
90
  }
85
91
 
86
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
92
+ @media ${p.down("S")} {
87
93
  gap: 1.25rem;
88
94
 
89
95
  & .wrapper__view-all {
@@ -128,8 +134,8 @@
128
134
  }`}
129
135
  }
130
136
  }
131
- `,q=g.styled(s.SkeletonRowWrapper)`
132
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
137
+ `,q=f.styled(s.SkeletonRowWrapper)`
138
+ @media ${p.down("S")} {
133
139
  & > div {
134
140
  background: linear-gradient(
135
141
  to right,
@@ -141,4 +147,4 @@
141
147
  box-shadow: none;
142
148
  }
143
149
  }
144
- `,E=({keyPrefix:r})=>t.jsxs(q,{children:[t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-3`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-4`)]}),I=({keyPrefix:r,isLoading:l=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:n})=>t.jsx(h.Suspense,{fallbackComponent:i,children:l===!0?t.jsx(E,{keyPrefix:r}):n}),P=h.forwardRef(({title:r,subtitle:l,items:i,isLoading:n=!1,limit:_=4,limitForMobile:f=2,buttonText:p="Show More",onSelectCard:w=()=>{},onButtonAction:o=()=>{},icon:m,getImage:c=()=>{},getProductImage:d=()=>{},hideProducts:b=!1,showRating:y=!0,gridView:a=!1,componentName:v,LinkComponent:j},S)=>t.jsxs(N,{ref:S,limitCards:_,limitCardsForMobile:f,gridView:a,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[r&&t.jsxs("div",{className:"title__text",children:[R.isDefinedNotEmptyString(m)&&t.jsx("i",{className:m}),t.jsx("span",{children:r})]}),o&&!n&&t.jsx(u,{text:p,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${a?"grid":""}`,onClick:o})]}),l&&t.jsx("div",{className:"wrapper__subtitle",children:l})]}),t.jsx(I,{isLoading:n,keyPrefix:"shop-cards-skeleton",children:t.jsx("div",{className:"wrapper__cards",children:i==null?void 0:i.map((e,C)=>t.jsx($.ShopCard,{showRating:y,uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(M,k)=>w(e==null?void 0:e.uuid,k),image:c(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:d,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:b,metadata:{name:v,accessor:e==null?void 0:e.accessor},LinkComponent:j},`shop-card__${C+1}`))})}),a&&o&&!n&&t.jsx(u,{text:p,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:o})]}));module.exports=P;
150
+ `,z=({keyPrefix:r})=>t.jsxs(q,{children:[t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-3`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-4`)]}),M=({keyPrefix:r,isLoading:l=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:n})=>t.jsx(g.Suspense,{fallbackComponent:i,children:l===!0?t.jsx(z,{keyPrefix:r}):n}),P=g.forwardRef(({title:r,subtitle:l,items:i,isLoading:n=!1,limit:w=4,limitForMobile:_=2,buttonText:m="Show More",onSelectCard:x=()=>{},onButtonAction:o=()=>{},icon:u,getImage:c=()=>{},getProductImage:d=()=>{},hideProducts:b=!1,showRating:y=!0,gridView:a=!1,componentName:v,LinkComponent:j},S)=>t.jsxs(N,{ref:S,limitCards:w,limitCardsForMobile:_,gridView:a,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[r&&t.jsxs("div",{className:"title__text",children:[R.isDefinedNotEmptyString(u)&&t.jsx("i",{className:u}),t.jsx("span",{children:r})]}),o&&!n&&t.jsx(h,{text:m,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${a?"grid":""}`,onClick:o})]}),l&&t.jsx("div",{className:"wrapper__subtitle",children:l})]}),t.jsx(M,{isLoading:n,keyPrefix:"shop-cards-skeleton",children:t.jsx("div",{className:"wrapper__cards",children:i==null?void 0:i.map((e,k)=>t.jsx($.ShopCard,{showRating:y,uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(F,C)=>x(e==null?void 0:e.uuid,C),image:c(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:d,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:b,metadata:{name:v,accessor:e==null?void 0:e.accessor},LinkComponent:j},`shop-card__${k+1}`))})}),a&&o&&!n&&t.jsx(h,{text:m,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:o})]}));module.exports=P;
@@ -1,12 +1,12 @@
1
1
  import { jsxs as l, jsx as r, Fragment as N } from "react/jsx-runtime";
2
- import { Suspense as R, forwardRef as M } from "react";
3
- import h from "./Button.js";
4
- import { S as j } from "./index-D-86mDtn.js";
5
- import { k as z } from "./utils-DtEfC-TX.js";
6
- import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
- import { M as g } from "./consts-BuFChS64.js";
8
- import { S as E, a as s } from "./style-BwQ4djFC.js";
9
- const I = u.div`
2
+ import { Suspense as R, forwardRef as j } from "react";
3
+ import u from "./Button.js";
4
+ import { S as z } from "./index-yARaIaLj.js";
5
+ import { l as M } from "./utils-B2fsQ6PS.js";
6
+ import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
+ import { d as m } from "./breakpoints-ff0SIcV3.js";
8
+ import { S as F, a as s } from "./style-BwQ4djFC.js";
9
+ const D = g.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  align-items: flex-start;
@@ -75,6 +75,12 @@ const I = u.div`
75
75
  width: 100%;
76
76
  }
77
77
 
78
+ @media ${m("M")} {
79
+ & .wrapper__cards {
80
+ grid-template-columns: repeat(2, minmax(0, 1fr));
81
+ }
82
+ }
83
+
78
84
  & .wrapper__view-all {
79
85
  align-self: center;
80
86
  color: var(--neutral-600, #0f2a46);
@@ -91,7 +97,7 @@ const I = u.div`
91
97
  display: none;
92
98
  }
93
99
 
94
- @media (max-width: ${g + "px"}) {
100
+ @media ${m("S")} {
95
101
  gap: 1.25rem;
96
102
 
97
103
  & .wrapper__view-all {
@@ -136,8 +142,8 @@ const I = u.div`
136
142
  }`}
137
143
  }
138
144
  }
139
- `, F = u(E)`
140
- @media (max-width: ${g + "px"}) {
145
+ `, E = g(F)`
146
+ @media ${m("S")} {
141
147
  & > div {
142
148
  background: linear-gradient(
143
149
  to right,
@@ -149,7 +155,7 @@ const I = u.div`
149
155
  box-shadow: none;
150
156
  }
151
157
  }
152
- `, D = ({ keyPrefix: t }) => /* @__PURE__ */ l(F, { children: [
158
+ `, I = ({ keyPrefix: t }) => /* @__PURE__ */ l(E, { children: [
153
159
  /* @__PURE__ */ r(
154
160
  s,
155
161
  {
@@ -182,12 +188,12 @@ const I = u.div`
182
188
  },
183
189
  `${t}-4`
184
190
  )
185
- ] }), P = ({
191
+ ] }), W = ({
186
192
  keyPrefix: t,
187
193
  isLoading: o = !1,
188
194
  fallbackComponent: i = /* @__PURE__ */ r(N, {}),
189
195
  children: n
190
- }) => /* @__PURE__ */ r(R, { fallbackComponent: i, children: o === !0 ? /* @__PURE__ */ r(D, { keyPrefix: t }) : n }), J = M(
196
+ }) => /* @__PURE__ */ r(R, { fallbackComponent: i, children: o === !0 ? /* @__PURE__ */ r(I, { keyPrefix: t }) : n }), Q = j(
191
197
  ({
192
198
  title: t,
193
199
  subtitle: o,
@@ -195,23 +201,23 @@ const I = u.div`
195
201
  isLoading: n = !1,
196
202
  limit: w = 4,
197
203
  limitForMobile: _ = 2,
198
- buttonText: m = "Show More",
204
+ buttonText: f = "Show More",
199
205
  onSelectCard: d = () => {
200
206
  },
201
207
  onButtonAction: a = () => {
202
208
  },
203
- icon: f,
209
+ icon: h,
204
210
  getImage: b = () => {
205
211
  },
206
- getProductImage: v = () => {
212
+ getProductImage: c = () => {
207
213
  },
208
- hideProducts: x = !1,
209
- showRating: c = !0,
214
+ hideProducts: v = !1,
215
+ showRating: y = !0,
210
216
  gridView: p = !1,
211
- componentName: y,
217
+ componentName: x,
212
218
  LinkComponent: S
213
219
  }, C) => /* @__PURE__ */ l(
214
- I,
220
+ D,
215
221
  {
216
222
  ref: C,
217
223
  limitCards: w,
@@ -221,13 +227,13 @@ const I = u.div`
221
227
  /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
222
228
  /* @__PURE__ */ l("div", { className: "wrapper__title", children: [
223
229
  t && /* @__PURE__ */ l("div", { className: "title__text", children: [
224
- z(f) && /* @__PURE__ */ r("i", { className: f }),
230
+ M(h) && /* @__PURE__ */ r("i", { className: h }),
225
231
  /* @__PURE__ */ r("span", { children: t })
226
232
  ] }),
227
233
  a && !n && /* @__PURE__ */ r(
228
- h,
234
+ u,
229
235
  {
230
- text: m,
236
+ text: f,
231
237
  color: "neutral",
232
238
  borderRadius: "curved",
233
239
  btnType: "tinted",
@@ -239,14 +245,14 @@ const I = u.div`
239
245
  o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
240
246
  ] }),
241
247
  /* @__PURE__ */ r(
242
- P,
248
+ W,
243
249
  {
244
250
  isLoading: n,
245
251
  keyPrefix: "shop-cards-skeleton",
246
252
  children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: i == null ? void 0 : i.map((e, k) => /* @__PURE__ */ r(
247
- j,
253
+ z,
248
254
  {
249
- showRating: c,
255
+ showRating: y,
250
256
  uuid: e == null ? void 0 : e.uuid,
251
257
  title: e == null ? void 0 : e.name,
252
258
  subtitle: e == null ? void 0 : e.shortDescription,
@@ -254,12 +260,12 @@ const I = u.div`
254
260
  reviewCount: e == null ? void 0 : e.reviewCount,
255
261
  products: e == null ? void 0 : e.products,
256
262
  imageComponent: e == null ? void 0 : e.imageComponent,
257
- onSelectCard: (W, $) => d(e == null ? void 0 : e.uuid, $),
263
+ onSelectCard: (P, $) => d(e == null ? void 0 : e.uuid, $),
258
264
  image: b(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
259
- getProductImage: v,
265
+ getProductImage: c,
260
266
  canAcceptPayments: e == null ? void 0 : e.canAcceptPayments,
261
- hideProducts: x,
262
- metadata: { name: y, accessor: e == null ? void 0 : e.accessor },
267
+ hideProducts: v,
268
+ metadata: { name: x, accessor: e == null ? void 0 : e.accessor },
263
269
  LinkComponent: S
264
270
  },
265
271
  `shop-card__${k + 1}`
@@ -267,9 +273,9 @@ const I = u.div`
267
273
  }
268
274
  ),
269
275
  p && a && !n && /* @__PURE__ */ r(
270
- h,
276
+ u,
271
277
  {
272
- text: m,
278
+ text: f,
273
279
  borderRadius: "curved",
274
280
  btnType: "basic",
275
281
  color: "neutral",
@@ -282,5 +288,5 @@ const I = u.div`
282
288
  )
283
289
  );
284
290
  export {
285
- J as default
291
+ Q as default
286
292
  };
package/dist/Sidebar.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),o=require("react"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./Icon.cjs"),S=require("./utils-RnrgDDZP.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),y=a.styled.aside`
1
+ "use strict";const t=require("react/jsx-runtime"),o=require("react"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./Icon.cjs"),S=require("./utils-CITgSxXe.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),y=a.styled.aside`
2
2
  direction: ${e=>e.placement=="right"?"rtl":"ltr"};
3
3
  position: relative;
4
4
  && {
package/dist/Sidebar.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as b, useState as g, useEffect as S } from "react";
3
3
  import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import x from "./Icon.js";
5
- import { u as C } from "./utils-DtEfC-TX.js";
5
+ import { u as C } from "./utils-B2fsQ6PS.js";
6
6
  import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const v = o.aside`
8
8
  direction: ${(e) => e.placement == "right" ? "rtl" : "ltr"};
@@ -1,9 +1,13 @@
1
- "use strict";const t=require("react/jsx-runtime"),a=require("react"),k=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),_=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-RnrgDDZP.cjs"),y=require("./style-B4kAj6YU.cjs"),N=require("./Button.cjs"),v=require("./CategorySimpleCard-COGlTj06.cjs"),o=require("./style-BAcV7F53.cjs"),E=k.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),a=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),y=require("./useDetectMobile-DYV6V1yw.cjs"),u=require("./utils-CITgSxXe.cjs"),N=require("./style-DC05rdyx.cjs"),v=require("./Button.cjs"),R=require("./CategorySimpleCard-CIBvknos.cjs"),o=require("./style-BAcV7F53.cjs"),_=b.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${()=>"repeat(6, minmax(0, 1fr))"};
4
4
  gap: 2rem;
5
5
 
6
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
6
+ @media ${m.down("M")} {
7
+ grid-template-columns: repeat(3, minmax(0, 1fr));
8
+ }
9
+
10
+ @media ${m.down("S")} {
7
11
  display: flex;
8
12
  gap: 1rem;
9
13
  overflow-x: auto;
@@ -22,10 +26,10 @@
22
26
  /* Safari and Chrome */
23
27
  }
24
28
  }
25
- `,R=k.styled(o.SkeletonColumnWrapper)`
26
- @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
29
+ `,f=b.styled(o.SkeletonColumnWrapper)`
30
+ @media ${m.down("S")} {
27
31
  & .skeleton__cards {
28
32
  overflow-x: hidden;
29
33
  }
30
34
  }
31
- `,M=({keyPrefix:r})=>t.jsxs(R,{children:[t.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-1`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-2`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-3`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-4`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-5`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-6`)]}),t.jsx(o.SkeletonRowWrapper,{children:t.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-7`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-8`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-9`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-10`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-11`),t.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${r}-12`)]})})]}),I=({keyPrefix:r,isLoading:c=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:d})=>t.jsx(a.Suspense,{fallbackComponent:i,children:c===!0?t.jsx(M,{keyPrefix:r}):d}),q=a.memo(v.CategorySimpleCard),W=a.forwardRef((r,c)=>{const{icon:i,title:d="Shop by category",items:l,buttonText:m="Shop now",buttonLink:h,limit:S=12,onButtonAction:w=()=>{},onSelectCard:n=()=>{},isLoading:p=!1,getImage:g=()=>{},LinkComponent:j}=r,$=_.useDetectMobile(),C=a.useMemo(()=>t.jsx(t.Fragment,{children:$===!0?l==null?void 0:l.map((e,s)=>t.jsx(q,{uuid:e==null?void 0:e.uuid,image:g(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>n==null?void 0:n(e==null?void 0:e.uuid),LinkComponent:j,...e},s)):l==null?void 0:l.slice(0,S).map((e,s)=>t.jsx(q,{uuid:e==null?void 0:e.uuid,image:g(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>n==null?void 0:n(e==null?void 0:e.uuid),LinkComponent:j,...e},s))}),[l]);return t.jsxs(y.RegulatTitleSectionWrapper,{ref:c,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(i)&&t.jsx("i",{className:i}),t.jsx("span",{children:d})]}),u.isDefinedNotEmptyString(m)&&u.isDefinedNotEmptyString(h)&&!p&&t.jsx(N,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var s;(s=e==null?void 0:e.target)==null||s.blur(),w(h)},borderRadius:"curved",className:"button-link",children:m})]}),t.jsx(I,{isLoading:p,keyPrefix:"simple-categories-skeleton",children:t.jsx(E,{limit:S,children:C})})]})});module.exports=W;
35
+ `,M=({keyPrefix:t})=>r.jsxs(f,{children:[r.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-1`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-2`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-3`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-4`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-5`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-6`)]}),r.jsx(o.SkeletonRowWrapper,{children:r.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-7`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-8`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-9`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-10`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-11`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-12`)]})})]}),W=({keyPrefix:t,isLoading:c=!1,fallbackComponent:i=r.jsx(r.Fragment,{}),children:d})=>r.jsx(a.Suspense,{fallbackComponent:i,children:c===!0?r.jsx(M,{keyPrefix:t}):d}),k=a.memo(R.CategorySimpleCard),D=a.forwardRef((t,c)=>{const{icon:i,title:d="Shop by category",items:n,buttonText:h="Shop now",buttonLink:S,limit:p=12,onButtonAction:w=()=>{},onSelectCard:l=()=>{},isLoading:g=!1,getImage:j=()=>{},LinkComponent:q}=t,$=y.useDetectMobile(),C=a.useMemo(()=>r.jsx(r.Fragment,{children:$===!0?n==null?void 0:n.map((e,s)=>r.jsx(k,{uuid:e==null?void 0:e.uuid,image:j(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>l==null?void 0:l(e==null?void 0:e.uuid),LinkComponent:q,...e},s)):n==null?void 0:n.slice(0,p).map((e,s)=>r.jsx(k,{uuid:e==null?void 0:e.uuid,image:j(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>l==null?void 0:l(e==null?void 0:e.uuid),LinkComponent:q,...e},s))}),[n]);return r.jsxs(N.RegulatTitleSectionWrapper,{ref:c,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:d})]}),u.isDefinedNotEmptyString(h)&&u.isDefinedNotEmptyString(S)&&!g&&r.jsx(v,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var s;(s=e==null?void 0:e.target)==null||s.blur(),w(S)},borderRadius:"curved",className:"button-link",children:h})]}),r.jsx(W,{isLoading:g,keyPrefix:"simple-categories-skeleton",children:r.jsx(_,{limit:p,children:C})})]})});module.exports=D;
@@ -1,19 +1,23 @@
1
- import { jsxs as l, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { Suspense as M, memo as R, forwardRef as E, useMemo as I } from "react";
3
- import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { M as k } from "./consts-BuFChS64.js";
5
- import { u as L } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { k as c } from "./utils-DtEfC-TX.js";
7
- import { R as W } from "./style-neMbLWE6.js";
8
- import B from "./Button.js";
9
- import { C as T } from "./CategorySimpleCard-Em84kZzQ.js";
10
- import { b as j, S as p, c as o } from "./style-BwQ4djFC.js";
11
- const y = C.div`
1
+ import { jsxs as l, jsx as r, Fragment as C } from "react/jsx-runtime";
2
+ import { Suspense as M, memo as R, forwardRef as W, useMemo as L } from "react";
3
+ import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { d as u } from "./breakpoints-ff0SIcV3.js";
5
+ import { u as T } from "./useDetectMobile-CcVo3PNi.js";
6
+ import { l as c } from "./utils-B2fsQ6PS.js";
7
+ import { R as j } from "./style-BUyFad_y.js";
8
+ import y from "./Button.js";
9
+ import { C as z } from "./CategorySimpleCard-CkSwvJRw.js";
10
+ import { b as B, S as p, c as o } from "./style-BwQ4djFC.js";
11
+ const D = v.div`
12
12
  display: grid;
13
13
  grid-template-columns: ${() => "repeat(6, minmax(0, 1fr))"};
14
14
  gap: 2rem;
15
15
 
16
- @media (max-width: ${k + "px"}) {
16
+ @media ${u("M")} {
17
+ grid-template-columns: repeat(3, minmax(0, 1fr));
18
+ }
19
+
20
+ @media ${u("S")} {
17
21
  display: flex;
18
22
  gap: 1rem;
19
23
  overflow-x: auto;
@@ -32,90 +36,90 @@ const y = C.div`
32
36
  /* Safari and Chrome */
33
37
  }
34
38
  }
35
- `, z = C(j)`
36
- @media (max-width: ${k + "px"}) {
39
+ `, E = v(B)`
40
+ @media ${u("S")} {
37
41
  & .skeleton__cards {
38
42
  overflow-x: hidden;
39
43
  }
40
44
  }
41
- `, D = ({ keyPrefix: r }) => /* @__PURE__ */ l(z, { children: [
45
+ `, F = ({ keyPrefix: t }) => /* @__PURE__ */ l(E, { children: [
42
46
  /* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
43
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-1`),
44
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-2`),
45
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-3`),
46
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-4`),
47
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-5`),
48
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-6`)
47
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-1`),
48
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-2`),
49
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-3`),
50
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-4`),
51
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-5`),
52
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-6`)
49
53
  ] }),
50
- /* @__PURE__ */ t(p, { children: /* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
51
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-7`),
52
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-8`),
53
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-9`),
54
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-10`),
55
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-11`),
56
- /* @__PURE__ */ t(o, { height: "8.25rem" }, `${r}-12`)
54
+ /* @__PURE__ */ r(p, { children: /* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
55
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-7`),
56
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-8`),
57
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-9`),
58
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-10`),
59
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-11`),
60
+ /* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-12`)
57
61
  ] }) })
58
- ] }), F = ({
59
- keyPrefix: r,
62
+ ] }), I = ({
63
+ keyPrefix: t,
60
64
  isLoading: s = !1,
61
- fallbackComponent: m = /* @__PURE__ */ t(w, {}),
65
+ fallbackComponent: m = /* @__PURE__ */ r(C, {}),
62
66
  children: d
63
- }) => /* @__PURE__ */ t(M, { fallbackComponent: m, children: s === !0 ? /* @__PURE__ */ t(D, { keyPrefix: r }) : d }), f = R(T), U = E((r, s) => {
67
+ }) => /* @__PURE__ */ r(M, { fallbackComponent: m, children: s === !0 ? /* @__PURE__ */ r(F, { keyPrefix: t }) : d }), w = R(z), X = W((t, s) => {
64
68
  const {
65
69
  icon: m,
66
70
  title: d = "Shop by category",
67
71
  items: i,
68
72
  buttonText: h = "Shop now",
69
- buttonLink: u,
70
- limit: g = 12,
71
- onButtonAction: v = () => {
73
+ buttonLink: g,
74
+ limit: S = 12,
75
+ onButtonAction: k = () => {
72
76
  },
73
77
  onSelectCard: n = () => {
74
78
  },
75
- isLoading: S = !1,
76
- getImage: b = () => {
79
+ isLoading: b = !1,
80
+ getImage: $ = () => {
77
81
  },
78
- LinkComponent: $
79
- } = r, _ = L(), N = I(() => /* @__PURE__ */ t(w, { children: _ === !0 ? i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ t(
80
- f,
82
+ LinkComponent: f
83
+ } = t, N = T(), _ = L(() => /* @__PURE__ */ r(C, { children: N === !0 ? i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ r(
84
+ w,
81
85
  {
82
86
  uuid: e == null ? void 0 : e.uuid,
83
- image: b(e == null ? void 0 : e.image) || null,
87
+ image: $(e == null ? void 0 : e.image) || null,
84
88
  name: e == null ? void 0 : e.name,
85
89
  code: e == null ? void 0 : e.code,
86
90
  onSelectCard: () => n == null ? void 0 : n(e == null ? void 0 : e.uuid),
87
- LinkComponent: $,
91
+ LinkComponent: f,
88
92
  ...e
89
93
  },
90
94
  a
91
- )) : i == null ? void 0 : i.slice(0, g).map((e, a) => /* @__PURE__ */ t(
92
- f,
95
+ )) : i == null ? void 0 : i.slice(0, S).map((e, a) => /* @__PURE__ */ r(
96
+ w,
93
97
  {
94
98
  uuid: e == null ? void 0 : e.uuid,
95
- image: b(e == null ? void 0 : e.image) || null,
99
+ image: $(e == null ? void 0 : e.image) || null,
96
100
  name: e == null ? void 0 : e.name,
97
101
  code: e == null ? void 0 : e.code,
98
102
  onSelectCard: () => n == null ? void 0 : n(e == null ? void 0 : e.uuid),
99
- LinkComponent: $,
103
+ LinkComponent: f,
100
104
  ...e
101
105
  },
102
106
  a
103
107
  )) }), [i]);
104
- return /* @__PURE__ */ l(W, { ref: s, children: [
108
+ return /* @__PURE__ */ l(j, { ref: s, children: [
105
109
  /* @__PURE__ */ l("div", { className: "regular-title", children: [
106
110
  /* @__PURE__ */ l("div", { className: "regular-title-text", children: [
107
- c(m) && /* @__PURE__ */ t("i", { className: m }),
108
- /* @__PURE__ */ t("span", { children: d })
111
+ c(m) && /* @__PURE__ */ r("i", { className: m }),
112
+ /* @__PURE__ */ r("span", { children: d })
109
113
  ] }),
110
- c(h) && c(u) && !S && /* @__PURE__ */ t(
111
- B,
114
+ c(h) && c(g) && !b && /* @__PURE__ */ r(
115
+ y,
112
116
  {
113
117
  type: "button",
114
118
  btnType: "tinted",
115
119
  color: "neutral",
116
120
  onClick: (e) => {
117
121
  var a;
118
- (a = e == null ? void 0 : e.target) == null || a.blur(), v(u);
122
+ (a = e == null ? void 0 : e.target) == null || a.blur(), k(g);
119
123
  },
120
124
  borderRadius: "curved",
121
125
  className: "button-link",
@@ -123,16 +127,16 @@ const y = C.div`
123
127
  }
124
128
  )
125
129
  ] }),
126
- /* @__PURE__ */ t(
127
- F,
130
+ /* @__PURE__ */ r(
131
+ I,
128
132
  {
129
- isLoading: S,
133
+ isLoading: b,
130
134
  keyPrefix: "simple-categories-skeleton",
131
- children: /* @__PURE__ */ t(y, { limit: g, children: N })
135
+ children: /* @__PURE__ */ r(D, { limit: S, children: _ })
132
136
  }
133
137
  )
134
138
  ] });
135
139
  });
136
140
  export {
137
- U as default
141
+ X as default
138
142
  };