@lanaco/lnc-react-ui 4.0.226 → 4.0.228

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 (267) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerNextSection.cjs +1 -1
  14. package/dist/BannerNextSection.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +3 -3
  16. package/dist/BannerSectionCarousel.js +19 -12
  17. package/dist/BannerSectionSimple.cjs +1 -1
  18. package/dist/BannerSectionSimple.js +1 -1
  19. package/dist/BannerSectionWithList.cjs +1 -1
  20. package/dist/BannerSectionWithList.js +1 -1
  21. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  22. package/dist/BlogCardsSponsoredSection.js +4 -4
  23. package/dist/BlogCategoryCardsSection.cjs +1 -1
  24. package/dist/BlogCategoryCardsSection.js +1 -1
  25. package/dist/BlogExploreSection.cjs +1 -1
  26. package/dist/BlogExploreSection.js +2 -2
  27. package/dist/BlogListSection.cjs +7 -7
  28. package/dist/BlogListSection.js +157 -207
  29. package/dist/BlogProductCardsSection.cjs +1 -1
  30. package/dist/BlogProductCardsSection.js +1 -1
  31. package/dist/BlogShopCardsSection.cjs +1 -1
  32. package/dist/BlogShopCardsSection.js +1 -1
  33. package/dist/BlogSingleSection.cjs +2 -11
  34. package/dist/BlogSingleSection.js +20 -36
  35. package/dist/BlogsSectionDetailed.cjs +1 -1
  36. package/dist/BlogsSectionDetailed.js +4 -4
  37. package/dist/BlogsSectionLarge.cjs +8 -16
  38. package/dist/BlogsSectionLarge.js +41 -59
  39. package/dist/BlogsSectionSimple.cjs +1 -1
  40. package/dist/BlogsSectionSimple.js +4 -4
  41. package/dist/BlogsSectionSimpleCentered.cjs +12 -25
  42. package/dist/BlogsSectionSimpleCentered.js +64 -98
  43. package/dist/BlogsSectionWithFilters.cjs +10 -21
  44. package/dist/BlogsSectionWithFilters.js +106 -154
  45. package/dist/BrandHitsSection.cjs +7 -7
  46. package/dist/BrandHitsSection.js +41 -87
  47. package/dist/Breadcrumbs.cjs +1 -1
  48. package/dist/Breadcrumbs.js +1 -1
  49. package/dist/Button.cjs +1 -1
  50. package/dist/Button.js +1 -1
  51. package/dist/ButtonGroup.cjs +1 -1
  52. package/dist/ButtonGroup.js +1 -1
  53. package/dist/CalorieCalculatorSection.cjs +1 -1
  54. package/dist/CalorieCalculatorSection.js +1 -1
  55. package/dist/{CategorySimpleCard-TJRJ_2Sb.js → CategorySimpleCard-BE6F0PFT.js} +1 -1
  56. package/dist/{CategorySimpleCard-lIdzBNDa.cjs → CategorySimpleCard-Dr1FxIY9.cjs} +1 -1
  57. package/dist/CheckBoxInput.cjs +1 -1
  58. package/dist/CheckBoxInput.js +1 -1
  59. package/dist/Chip.cjs +1 -1
  60. package/dist/Chip.js +1 -1
  61. package/dist/ColorInput.cjs +1 -1
  62. package/dist/ColorInput.js +1 -1
  63. package/dist/ConfirmationForm.cjs +1 -1
  64. package/dist/ConfirmationForm.js +1 -1
  65. package/dist/CustomLoanMapSection.cjs +1 -1
  66. package/dist/CustomLoanMapSection.js +1 -1
  67. package/dist/{CustomStyles-B6uutenq.js → CustomStyles-YyM49BGx.js} +1 -1
  68. package/dist/{CustomStyles-dJQPJ4s4.cjs → CustomStyles-lzAjVMnI.cjs} +1 -1
  69. package/dist/DateInput.cjs +1 -1
  70. package/dist/DateInput.js +1 -1
  71. package/dist/DecimalInput.cjs +1 -1
  72. package/dist/DecimalInput.js +1 -1
  73. package/dist/DecimalInputV2.cjs +1 -1
  74. package/dist/DecimalInputV2.js +1 -1
  75. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  76. package/dist/DetailedProductsInfinitiveSection.js +4 -4
  77. package/dist/DetailedProductsSection.cjs +1 -1
  78. package/dist/DetailedProductsSection.js +5 -5
  79. package/dist/DetailsView.cjs +1 -1
  80. package/dist/DetailsView.js +1 -1
  81. package/dist/DoubleRangeSlider.cjs +1 -1
  82. package/dist/DoubleRangeSlider.js +1 -1
  83. package/dist/DragAndDropFile.cjs +1 -1
  84. package/dist/DragAndDropFile.js +1 -1
  85. package/dist/DragDropFiles.cjs +1 -1
  86. package/dist/DragDropFiles.js +1 -1
  87. package/dist/Drawer.cjs +1 -1
  88. package/dist/Drawer.js +1 -1
  89. package/dist/Dropdown.cjs +1 -1
  90. package/dist/Dropdown.js +2 -2
  91. package/dist/DropdownItem.cjs +1 -1
  92. package/dist/DropdownItem.js +1 -1
  93. package/dist/DropdownLookup.cjs +1 -1
  94. package/dist/DropdownLookup.js +1 -1
  95. package/dist/DropdownMenu.cjs +1 -1
  96. package/dist/DropdownMenu.js +1 -1
  97. package/dist/EditableTable.cjs +1 -1
  98. package/dist/EditableTable.js +1 -1
  99. package/dist/FeedbackSection.cjs +1 -1
  100. package/dist/FeedbackSection.js +1 -1
  101. package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
  102. package/dist/FieldOfInterestsMasonrySection.js +105 -159
  103. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  104. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
  105. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  106. package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
  107. package/dist/FileInput.cjs +1 -1
  108. package/dist/FileInput.js +1 -1
  109. package/dist/FlexGridItem.cjs +1 -1
  110. package/dist/FlexGridItem.js +1 -1
  111. package/dist/FormField.cjs +1 -1
  112. package/dist/FormField.js +1 -1
  113. package/dist/FormView.cjs +1 -1
  114. package/dist/FormView.js +1 -1
  115. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  116. package/dist/GeneralWithTagsCardsSection.js +2 -2
  117. package/dist/GiftCardsSection.cjs +10 -14
  118. package/dist/GiftCardsSection.js +77 -147
  119. package/dist/Icon.cjs +1 -1
  120. package/dist/Icon.js +1 -1
  121. package/dist/IconButton.cjs +1 -1
  122. package/dist/IconButton.js +1 -1
  123. package/dist/Kanban.cjs +1 -1
  124. package/dist/Kanban.js +1 -1
  125. package/dist/KanbanActionsToolbar.cjs +1 -1
  126. package/dist/KanbanActionsToolbar.js +1 -1
  127. package/dist/KanbanView.cjs +1 -1
  128. package/dist/KanbanView.js +1 -1
  129. package/dist/Link.cjs +1 -1
  130. package/dist/Link.js +1 -1
  131. package/dist/LoanCalculatorSection.cjs +1 -1
  132. package/dist/LoanCalculatorSection.js +1 -1
  133. package/dist/LocationFinderSection.cjs +1 -1
  134. package/dist/LocationFinderSection.js +1 -1
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +10 -10
  138. package/dist/MasonryGeneralCardsSection.js +45 -44
  139. package/dist/MenuItem.cjs +1 -1
  140. package/dist/MenuItem.js +1 -1
  141. package/dist/Modal.cjs +1 -1
  142. package/dist/Modal.js +1 -1
  143. package/dist/MultiSelectDropdown.cjs +1 -1
  144. package/dist/MultiSelectDropdown.js +1 -1
  145. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  146. package/dist/MultiSelectDropdownLookup.js +1 -1
  147. package/dist/NestedDropdownItem.cjs +1 -1
  148. package/dist/NestedDropdownItem.js +1 -1
  149. package/dist/NestedMenuItem.cjs +1 -1
  150. package/dist/NestedMenuItem.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +1 -1
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +1 -1
  155. package/dist/NumberInput.cjs +1 -1
  156. package/dist/NumberInput.js +1 -1
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +1 -1
  159. package/dist/PartnerBrandsSection.cjs +1 -1
  160. package/dist/PartnerBrandsSection.js +1 -1
  161. package/dist/PartnerCardsSection.cjs +1 -1
  162. package/dist/PartnerCardsSection.js +1 -1
  163. package/dist/PartnerStatsSection.cjs +1 -1
  164. package/dist/PartnerStatsSection.js +1 -1
  165. package/dist/PasswordInput.cjs +1 -1
  166. package/dist/PasswordInput.js +1 -1
  167. package/dist/PopoverContent.cjs +1 -1
  168. package/dist/PopoverContent.js +1 -1
  169. package/dist/ProductsWithBannerSection.cjs +13 -13
  170. package/dist/ProductsWithBannerSection.js +87 -168
  171. package/dist/ProgressBar.cjs +1 -1
  172. package/dist/ProgressBar.js +1 -1
  173. package/dist/QuattroCardsSection.cjs +1 -1
  174. package/dist/QuattroCardsSection.js +2 -2
  175. package/dist/QuizSection.cjs +1 -1
  176. package/dist/QuizSection.js +1 -1
  177. package/dist/RadioInput.cjs +1 -1
  178. package/dist/RadioInput.js +1 -1
  179. package/dist/RangeSlider.cjs +1 -1
  180. package/dist/RangeSlider.js +1 -1
  181. package/dist/ReviewsSection.cjs +18 -22
  182. package/dist/ReviewsSection.js +101 -163
  183. package/dist/SalesCampaignsSection.cjs +25 -25
  184. package/dist/SalesCampaignsSection.js +267 -306
  185. package/dist/Separator.cjs +1 -1
  186. package/dist/Separator.js +1 -1
  187. package/dist/ShopCardsSection.cjs +6 -19
  188. package/dist/ShopCardsSection.js +56 -102
  189. package/dist/Sidebar.cjs +1 -1
  190. package/dist/Sidebar.js +1 -1
  191. package/dist/SimpleCategoriesSection.cjs +3 -3
  192. package/dist/SimpleCategoriesSection.js +65 -68
  193. package/dist/SimpleProductsSection.cjs +7 -7
  194. package/dist/SimpleProductsSection.js +65 -138
  195. package/dist/Spinner.cjs +1 -1
  196. package/dist/Spinner.js +1 -1
  197. package/dist/StatsSection.cjs +1 -1
  198. package/dist/StatsSection.js +1 -1
  199. package/dist/Surface.cjs +1 -1
  200. package/dist/Surface.js +1 -1
  201. package/dist/SwipeableDrawer.cjs +1 -1
  202. package/dist/SwipeableDrawer.js +1 -1
  203. package/dist/TabItem.cjs +1 -1
  204. package/dist/TabItem.js +1 -1
  205. package/dist/Table.cjs +1 -1
  206. package/dist/Table.js +1 -1
  207. package/dist/TableView.cjs +1 -1
  208. package/dist/TableView.js +1 -1
  209. package/dist/TextAreaInput.cjs +1 -1
  210. package/dist/TextAreaInput.js +1 -1
  211. package/dist/TextInput.cjs +1 -1
  212. package/dist/TextInput.js +1 -1
  213. package/dist/ThemeProvider.cjs +1 -1
  214. package/dist/ThemeProvider.js +1 -1
  215. package/dist/TimeInput.cjs +1 -1
  216. package/dist/TimeInput.js +1 -1
  217. package/dist/Toggle.cjs +1 -1
  218. package/dist/Toggle.js +1 -1
  219. package/dist/TreeMenuSeparator.cjs +1 -1
  220. package/dist/TreeMenuSeparator.js +1 -1
  221. package/dist/UploadedFile.cjs +1 -1
  222. package/dist/UploadedFile.js +1 -1
  223. package/dist/UrgentSaleProductsSection.cjs +1 -1
  224. package/dist/UrgentSaleProductsSection.js +1 -1
  225. package/dist/index-B7fBsitY.js +45 -0
  226. package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
  227. package/dist/index-BMAvJQBG.cjs +9 -0
  228. package/dist/index-BUdvfHpp.cjs +5 -0
  229. package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
  230. package/dist/index-C6amCwRZ.js +25 -0
  231. package/dist/index-C8R9lsWG.cjs +1 -0
  232. package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
  233. package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
  234. package/dist/index-CeQvy566.cjs +11 -0
  235. package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
  236. package/dist/index-Cyt4EUZ6.js +20 -0
  237. package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
  238. package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
  239. package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
  240. package/dist/index-DueyY06i.cjs +368 -0
  241. package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
  242. package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
  243. package/dist/index-VTkAaA-n.js +18 -0
  244. package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
  245. package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
  246. package/dist/index-zIt6TVeg.js +753 -0
  247. package/dist/index.cjs +1 -1
  248. package/dist/index.js +2 -2
  249. package/dist/style-BFPpppS9.js +73 -0
  250. package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
  251. package/dist/style-CQdEALKR.cjs +59 -0
  252. package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
  253. package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
  254. package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
  255. package/package.json +1 -1
  256. package/dist/index-BGNavrtB.cjs +0 -368
  257. package/dist/index-BHcrzV2G.js +0 -54
  258. package/dist/index-Bj1KWOV4.cjs +0 -11
  259. package/dist/index-BsAddfgC.cjs +0 -1
  260. package/dist/index-Cn4bq6ZX.js +0 -84
  261. package/dist/index-CuRcxKQH.js +0 -42
  262. package/dist/index-DB1J-G6Z.js +0 -38
  263. package/dist/index-DkPva6Gr.cjs +0 -20
  264. package/dist/index-fzBXDy05.cjs +0 -16
  265. package/dist/index-gFZSZLba.js +0 -882
  266. package/dist/style-DvkivBNg.js +0 -74
  267. package/dist/style-Ito6YFqi.cjs +0 -64
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),c=require("react"),i=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./utils-CITgSxXe.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-DwHBgTPn.cjs"),m=require("./utils-BK6B_Y9X.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,7 +1,7 @@
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-DfbrHHed.js";
4
- import { c as p } from "./utils-MoGhNMmj.js";
4
+ import { c as p } from "./utils-BUdHa0nB.js";
5
5
  import { u as i } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
6
  const c = n.div`
7
7
  height: 1px;
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./Button.cjs"),$=require("./index-D4-_TrSn.cjs"),R=require("./utils-CITgSxXe.cjs"),f=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),s=require("./style-Ito6YFqi.cjs"),N=f.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),_=require("react"),m=require("./Button.cjs"),N=require("./index-DnbzopIv.cjs"),$=require("./utils-BK6B_Y9X.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),u=require("./breakpoints-CcVm-gVm.cjs"),h=require("./style-CQdEALKR.cjs"),q=g.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -60,14 +60,14 @@
60
60
 
61
61
  & .wrapper__cards {
62
62
  display: grid;
63
- grid-template-columns: ${r=>`repeat(${r==null?void 0:r.limitCards}, minmax(0, 1fr))`};
63
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
64
64
  gap: 1.25rem;
65
65
  justify-items: center;
66
66
  align-items: center;
67
67
  width: 100%;
68
68
  }
69
69
 
70
- @media ${p.down("M")} {
70
+ @media ${u.down("M")} {
71
71
  & .wrapper__cards {
72
72
  grid-template-columns: repeat(2, minmax(0, 1fr));
73
73
  }
@@ -89,7 +89,7 @@
89
89
  display: none;
90
90
  }
91
91
 
92
- @media ${p.down("S")} {
92
+ @media ${u.down("S")} {
93
93
  gap: 1.25rem;
94
94
 
95
95
  & .wrapper__view-all {
@@ -109,7 +109,7 @@
109
109
  & .wrapper__cards {
110
110
  gap: 1rem;
111
111
 
112
- ${r=>r!=null&&r.gridView?`
112
+ ${i=>i!=null&&i.gridView?`
113
113
  grid-template-columns: repeat(2, minmax(0, 1fr));
114
114
  & > div {
115
115
  min-width:100%;
@@ -134,17 +134,4 @@
134
134
  }`}
135
135
  }
136
136
  }
137
- `,q=f.styled(s.SkeletonRowWrapper)`
138
- @media ${p.down("S")} {
139
- & > div {
140
- background: linear-gradient(
141
- to right,
142
- transparent 0%,
143
- #f4f6fb 10%,
144
- #f4f6fb 100%
145
- );
146
-
147
- box-shadow: none;
148
- }
149
- }
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;
137
+ `,R=g.styled(h.SkeletonContainer)``,z=({keyPrefix:i})=>t.jsx(R,{children:[1,2,3,4].map(n=>t.jsx(h.SkeletonRect,{height:"18rem",width:"100%"},`${i}-${n}`))}),M=({keyPrefix:i,isLoading:n=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:s})=>t.jsx(_.Suspense,{fallbackComponent:r,children:n===!0?t.jsx(z,{keyPrefix:i}):s}),F=_.forwardRef(({title:i,subtitle:n,items:r,isLoading:s=!1,limit:w=4,limitForMobile:f=2,buttonText:a="Show More",onSelectCard:x=()=>{},onButtonAction:l=()=>{},icon:p,getImage:c=()=>{},getProductImage:y=()=>{},hideProducts:v=!1,showRating:d=!0,gridView:o=!1,componentName:b,LinkComponent:j},C)=>t.jsxs(q,{ref:C,limitCards:w,limitCardsForMobile:f,gridView:o,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[$.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:i})]}),l&&!s&&t.jsx(m,{text:a,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${o?"grid":""}`,onClick:l})]}),n&&t.jsx("div",{className:"wrapper__subtitle",children:n})]}),t.jsx(M,{isLoading:s,keyPrefix:"shop-cards-skeleton",children:t.jsx("div",{className:"wrapper__cards",children:r==null?void 0:r.map((e,S)=>t.jsx(N.ShopCard,{showRating:d,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:(P,k)=>x(e==null?void 0:e.uuid,k),image:c(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:y,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:v,metadata:{name:b,accessor:e==null?void 0:e.accessor},LinkComponent:j},`shop-card__${S+1}`))})}),o&&l&&!s&&t.jsx(m,{text:a,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:l})]}));module.exports=F;
@@ -1,12 +1,12 @@
1
- import { jsxs as l, jsx as r, Fragment as N } from "react/jsx-runtime";
2
- import { Suspense as R, forwardRef as j } from "react";
3
- import u from "./Button.js";
4
- import { S as z } from "./index-Dx2hfxCG.js";
5
- import { l as M } from "./utils-MoGhNMmj.js";
1
+ import { jsx as i, Fragment as N, jsxs as a } from "react/jsx-runtime";
2
+ import { Suspense as $, forwardRef as j } from "react";
3
+ import f from "./Button.js";
4
+ import { S as z } from "./index-gHaK62BZ.js";
5
+ import { l as M } from "./utils-BUdHa0nB.js";
6
6
  import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
7
- import { d as m } from "./breakpoints-BubDitvo.js";
8
- import { S as F, a as s } from "./style-DvkivBNg.js";
9
- const D = g.div`
7
+ import { d as u } from "./breakpoints-BubDitvo.js";
8
+ import { c as R, a as F } from "./style-BFPpppS9.js";
9
+ const P = g.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  align-items: flex-start;
@@ -75,7 +75,7 @@ const D = g.div`
75
75
  width: 100%;
76
76
  }
77
77
 
78
- @media ${m("M")} {
78
+ @media ${u("M")} {
79
79
  & .wrapper__cards {
80
80
  grid-template-columns: repeat(2, minmax(0, 1fr));
81
81
  }
@@ -97,7 +97,7 @@ const D = g.div`
97
97
  display: none;
98
98
  }
99
99
 
100
- @media ${m("S")} {
100
+ @media ${u("S")} {
101
101
  gap: 1.25rem;
102
102
 
103
103
  & .wrapper__view-all {
@@ -142,117 +142,71 @@ const D = g.div`
142
142
  }`}
143
143
  }
144
144
  }
145
- `, E = g(F)`
146
- @media ${m("S")} {
147
- & > div {
148
- background: linear-gradient(
149
- to right,
150
- transparent 0%,
151
- #f4f6fb 10%,
152
- #f4f6fb 100%
153
- );
154
-
155
- box-shadow: none;
156
- }
157
- }
158
- `, I = ({ keyPrefix: t }) => /* @__PURE__ */ l(E, { children: [
159
- /* @__PURE__ */ r(
160
- s,
161
- {
162
- height: "18rem",
163
- borderRadius: "0.75rem"
164
- },
165
- `${t}-1`
166
- ),
167
- /* @__PURE__ */ r(
168
- s,
169
- {
170
- height: "18rem",
171
- borderRadius: "0.75rem"
172
- },
173
- `${t}-2`
174
- ),
175
- /* @__PURE__ */ r(
176
- s,
177
- {
178
- height: "18rem",
179
- borderRadius: "0.75rem"
180
- },
181
- `${t}-3`
182
- ),
183
- /* @__PURE__ */ r(
184
- s,
185
- {
186
- height: "18rem",
187
- borderRadius: "0.75rem"
188
- },
189
- `${t}-4`
190
- )
191
- ] }), W = ({
145
+ `, D = g(R)``, E = ({ keyPrefix: t }) => /* @__PURE__ */ i(D, { children: [1, 2, 3, 4].map((r) => /* @__PURE__ */ i(F, { height: "18rem", width: "100%" }, `${t}-${r}`)) }), I = ({
192
146
  keyPrefix: t,
193
- isLoading: o = !1,
194
- fallbackComponent: i = /* @__PURE__ */ r(N, {}),
147
+ isLoading: r = !1,
148
+ fallbackComponent: l = /* @__PURE__ */ i(N, {}),
195
149
  children: n
196
- }) => /* @__PURE__ */ r(R, { fallbackComponent: i, children: o === !0 ? /* @__PURE__ */ r(I, { keyPrefix: t }) : n }), Q = j(
150
+ }) => /* @__PURE__ */ i($, { fallbackComponent: l, children: r === !0 ? /* @__PURE__ */ i(E, { keyPrefix: t }) : n }), Q = j(
197
151
  ({
198
152
  title: t,
199
- subtitle: o,
200
- items: i,
153
+ subtitle: r,
154
+ items: l,
201
155
  isLoading: n = !1,
202
- limit: w = 4,
156
+ limit: h = 4,
203
157
  limitForMobile: _ = 2,
204
- buttonText: f = "Show More",
205
- onSelectCard: d = () => {
158
+ buttonText: p = "Show More",
159
+ onSelectCard: w = () => {
206
160
  },
207
- onButtonAction: a = () => {
161
+ onButtonAction: o = () => {
208
162
  },
209
- icon: h,
210
- getImage: b = () => {
163
+ icon: m,
164
+ getImage: c = () => {
211
165
  },
212
- getProductImage: c = () => {
166
+ getProductImage: y = () => {
213
167
  },
214
168
  hideProducts: v = !1,
215
- showRating: y = !0,
216
- gridView: p = !1,
217
- componentName: x,
218
- LinkComponent: S
219
- }, C) => /* @__PURE__ */ l(
220
- D,
169
+ showRating: x = !0,
170
+ gridView: s = !1,
171
+ componentName: d,
172
+ LinkComponent: b
173
+ }, C) => /* @__PURE__ */ a(
174
+ P,
221
175
  {
222
176
  ref: C,
223
- limitCards: w,
177
+ limitCards: h,
224
178
  limitCardsForMobile: _,
225
- gridView: p,
179
+ gridView: s,
226
180
  children: [
227
- /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
228
- /* @__PURE__ */ l("div", { className: "wrapper__title", children: [
229
- t && /* @__PURE__ */ l("div", { className: "title__text", children: [
230
- M(h) && /* @__PURE__ */ r("i", { className: h }),
231
- /* @__PURE__ */ r("span", { children: t })
181
+ /* @__PURE__ */ a("div", { className: "wrapper__heading", children: [
182
+ /* @__PURE__ */ a("div", { className: "wrapper__title", children: [
183
+ t && /* @__PURE__ */ a("div", { className: "title__text", children: [
184
+ M(m) && /* @__PURE__ */ i("i", { className: m }),
185
+ /* @__PURE__ */ i("span", { children: t })
232
186
  ] }),
233
- a && !n && /* @__PURE__ */ r(
234
- u,
187
+ o && !n && /* @__PURE__ */ i(
188
+ f,
235
189
  {
236
- text: f,
190
+ text: p,
237
191
  color: "neutral",
238
192
  borderRadius: "curved",
239
193
  btnType: "tinted",
240
- className: `title__action ${p ? "grid" : ""}`,
241
- onClick: a
194
+ className: `title__action ${s ? "grid" : ""}`,
195
+ onClick: o
242
196
  }
243
197
  )
244
198
  ] }),
245
- o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
199
+ r && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: r })
246
200
  ] }),
247
- /* @__PURE__ */ r(
248
- W,
201
+ /* @__PURE__ */ i(
202
+ I,
249
203
  {
250
204
  isLoading: n,
251
205
  keyPrefix: "shop-cards-skeleton",
252
- children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: i == null ? void 0 : i.map((e, k) => /* @__PURE__ */ r(
206
+ children: /* @__PURE__ */ i("div", { className: "wrapper__cards", children: l == null ? void 0 : l.map((e, S) => /* @__PURE__ */ i(
253
207
  z,
254
208
  {
255
- showRating: y,
209
+ showRating: x,
256
210
  uuid: e == null ? void 0 : e.uuid,
257
211
  title: e == null ? void 0 : e.name,
258
212
  subtitle: e == null ? void 0 : e.shortDescription,
@@ -260,27 +214,27 @@ const D = g.div`
260
214
  reviewCount: e == null ? void 0 : e.reviewCount,
261
215
  products: e == null ? void 0 : e.products,
262
216
  imageComponent: e == null ? void 0 : e.imageComponent,
263
- onSelectCard: (P, $) => d(e == null ? void 0 : e.uuid, $),
264
- image: b(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
265
- getProductImage: c,
217
+ onSelectCard: (T, k) => w(e == null ? void 0 : e.uuid, k),
218
+ image: c(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
219
+ getProductImage: y,
266
220
  canAcceptPayments: e == null ? void 0 : e.canAcceptPayments,
267
221
  hideProducts: v,
268
- metadata: { name: x, accessor: e == null ? void 0 : e.accessor },
269
- LinkComponent: S
222
+ metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
223
+ LinkComponent: b
270
224
  },
271
- `shop-card__${k + 1}`
225
+ `shop-card__${S + 1}`
272
226
  )) })
273
227
  }
274
228
  ),
275
- p && a && !n && /* @__PURE__ */ r(
276
- u,
229
+ s && o && !n && /* @__PURE__ */ i(
230
+ f,
277
231
  {
278
- text: f,
232
+ text: p,
279
233
  borderRadius: "curved",
280
234
  btnType: "basic",
281
235
  color: "neutral",
282
236
  className: "wrapper__view-all",
283
- onClick: a
237
+ onClick: o
284
238
  }
285
239
  )
286
240
  ]
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-DwHBgTPn.cjs"),x=require("./Icon.cjs"),S=require("./utils-CITgSxXe.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-DwHBgTPn.cjs"),x=require("./Icon.cjs"),S=require("./utils-BK6B_Y9X.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-DfbrHHed.js";
4
4
  import x from "./Icon.js";
5
- import { a as C } from "./utils-MoGhNMmj.js";
5
+ import { a as C } from "./utils-BUdHa0nB.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,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),a=require("react"),b=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),y=require("./useDetectMobile-DYV6V1yw.cjs"),u=require("./utils-CITgSxXe.cjs"),N=require("./style-Boz6dk5s.cjs"),v=require("./Button.cjs"),R=require("./CategorySimpleCard-lIdzBNDa.cjs"),o=require("./style-Ito6YFqi.cjs"),_=b.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),f=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),C=require("./useDetectMobile-DYV6V1yw.cjs"),d=require("./utils-BK6B_Y9X.cjs"),v=require("./style-cJUZrJoG.cjs"),z=require("./Button.cjs"),N=require("./CategorySimpleCard-Dr1FxIY9.cjs"),r=require("./style-CQdEALKR.cjs"),$=f.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${()=>"repeat(6, minmax(0, 1fr))"};
4
4
  gap: 2rem;
@@ -26,10 +26,10 @@
26
26
  /* Safari and Chrome */
27
27
  }
28
28
  }
29
- `,f=b.styled(o.SkeletonColumnWrapper)`
29
+ `,M=f.styled(r.SkeletonAnimationColumnContainer)`
30
30
  @media ${m.down("S")} {
31
31
  & .skeleton__cards {
32
32
  overflow-x: hidden;
33
33
  }
34
34
  }
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;
35
+ `,_=({keyPrefix:s})=>t.jsx(M,{children:[1,2].map(l=>t.jsxs(r.SkeletonContainer,{className:"skeleton__cards",children:[t.jsx(r.SkeletonSquare,{size:"8.25rem"}),t.jsx(r.SkeletonSquare,{size:"8.25rem"}),t.jsx(r.SkeletonSquare,{size:"8.25rem"}),t.jsx(r.SkeletonSquare,{size:"8.25rem"}),t.jsx(r.SkeletonSquare,{size:"8.25rem"}),t.jsx(r.SkeletonSquare,{size:"8.25rem"})]},`${s}-${l}`))}),D=({keyPrefix:s,isLoading:l=!1,fallbackComponent:a=t.jsx(t.Fragment,{}),children:u})=>t.jsx(c.Suspense,{fallbackComponent:a,children:l===!0?t.jsx(_,{keyPrefix:s}):u}),y=c.memo(N.CategorySimpleCard),R=c.forwardRef((s,l)=>{const{icon:a,title:u="Shop by category",items:n,buttonText:p="Shop now",buttonLink:S,limit:g=12,onButtonAction:h=()=>{},onSelectCard:i=()=>{},isLoading:j=!1,getImage:k=()=>{},LinkComponent:b}=s,q=C.useDetectMobile(),w=c.useMemo(()=>t.jsx(t.Fragment,{children:q===!0?n==null?void 0:n.map((e,o)=>t.jsx(y,{uuid:e==null?void 0:e.uuid,image:k(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid),LinkComponent:b,...e},o)):n==null?void 0:n.slice(0,g).map((e,o)=>t.jsx(y,{uuid:e==null?void 0:e.uuid,image:k(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid),LinkComponent:b,...e},o))}),[n]);return t.jsxs(v.RegulatTitleSectionWrapper,{ref:l,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(a)&&t.jsx("i",{className:a}),t.jsx("span",{children:u})]}),d.isDefinedNotEmptyString(p)&&d.isDefinedNotEmptyString(S)&&!j&&t.jsx(z,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var o;(o=e==null?void 0:e.target)==null||o.blur(),h(S)},borderRadius:"curved",className:"button-link",children:p})]}),t.jsx(D,{isLoading:j,keyPrefix:"simple-categories-skeleton",children:t.jsx($,{limit:g,children:w})})]})});module.exports=R;
@@ -1,14 +1,14 @@
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-DfbrHHed.js";
1
+ import { jsx as r, jsxs as m, Fragment as C } from "react/jsx-runtime";
2
+ import { Suspense as N, memo as $, forwardRef as M, useMemo as R } from "react";
3
+ import { s as y } from "./emotion-styled.browser.esm-DfbrHHed.js";
4
4
  import { d as u } from "./breakpoints-BubDitvo.js";
5
- import { u as T } from "./useDetectMobile-B0Jog4jQ.js";
6
- import { l as c } from "./utils-MoGhNMmj.js";
7
- import { R as j } from "./style-D54KOzZj.js";
8
- import y from "./Button.js";
9
- import { C as z } from "./CategorySimpleCard-TJRJ_2Sb.js";
10
- import { b as B, S as p, c as o } from "./style-DvkivBNg.js";
11
- const D = v.div`
5
+ import { u as _ } from "./useDetectMobile-B0Jog4jQ.js";
6
+ import { l as c } from "./utils-BUdHa0nB.js";
7
+ import { R as L } from "./style-CP_urKvc.js";
8
+ import T from "./Button.js";
9
+ import { C as j } from "./CategorySimpleCard-BE6F0PFT.js";
10
+ import { b as A, c as B, d as n } from "./style-BFPpppS9.js";
11
+ const D = y.div`
12
12
  display: grid;
13
13
  grid-template-columns: ${() => "repeat(6, minmax(0, 1fr))"};
14
14
  gap: 2rem;
@@ -36,107 +36,104 @@ const D = v.div`
36
36
  /* Safari and Chrome */
37
37
  }
38
38
  }
39
- `, E = v(B)`
39
+ `, E = y(A)`
40
40
  @media ${u("S")} {
41
41
  & .skeleton__cards {
42
42
  overflow-x: hidden;
43
43
  }
44
44
  }
45
- `, F = ({ keyPrefix: t }) => /* @__PURE__ */ l(E, { children: [
46
- /* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
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`)
53
- ] }),
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`)
61
- ] }) })
62
- ] }), I = ({
63
- keyPrefix: t,
64
- isLoading: s = !1,
65
- fallbackComponent: m = /* @__PURE__ */ r(C, {}),
45
+ `, F = ({ keyPrefix: a }) => /* @__PURE__ */ r(E, { children: [1, 2].map((l) => /* @__PURE__ */ m(
46
+ B,
47
+ {
48
+ className: "skeleton__cards",
49
+ children: [
50
+ /* @__PURE__ */ r(n, { size: "8.25rem" }),
51
+ /* @__PURE__ */ r(n, { size: "8.25rem" }),
52
+ /* @__PURE__ */ r(n, { size: "8.25rem" }),
53
+ /* @__PURE__ */ r(n, { size: "8.25rem" }),
54
+ /* @__PURE__ */ r(n, { size: "8.25rem" }),
55
+ /* @__PURE__ */ r(n, { size: "8.25rem" })
56
+ ]
57
+ },
58
+ `${a}-${l}`
59
+ )) }), I = ({
60
+ keyPrefix: a,
61
+ isLoading: l = !1,
62
+ fallbackComponent: s = /* @__PURE__ */ r(C, {}),
66
63
  children: d
67
- }) => /* @__PURE__ */ r(M, { fallbackComponent: m, children: s === !0 ? /* @__PURE__ */ r(F, { keyPrefix: t }) : d }), w = R(z), X = W((t, s) => {
64
+ }) => /* @__PURE__ */ r(N, { fallbackComponent: s, children: l === !0 ? /* @__PURE__ */ r(F, { keyPrefix: a }) : d }), k = $(j), V = M((a, l) => {
68
65
  const {
69
- icon: m,
66
+ icon: s,
70
67
  title: d = "Shop by category",
71
- items: i,
72
- buttonText: h = "Shop now",
73
- buttonLink: g,
74
- limit: S = 12,
75
- onButtonAction: k = () => {
68
+ items: o,
69
+ buttonText: p = "Shop now",
70
+ buttonLink: f,
71
+ limit: g = 12,
72
+ onButtonAction: w = () => {
76
73
  },
77
- onSelectCard: n = () => {
74
+ onSelectCard: t = () => {
78
75
  },
79
- isLoading: b = !1,
80
- getImage: $ = () => {
76
+ isLoading: S = !1,
77
+ getImage: b = () => {
81
78
  },
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,
79
+ LinkComponent: h
80
+ } = a, v = _(), z = R(() => /* @__PURE__ */ r(C, { children: v === !0 ? o == null ? void 0 : o.map((e, i) => /* @__PURE__ */ r(
81
+ k,
85
82
  {
86
83
  uuid: e == null ? void 0 : e.uuid,
87
- image: $(e == null ? void 0 : e.image) || null,
84
+ image: b(e == null ? void 0 : e.image) || null,
88
85
  name: e == null ? void 0 : e.name,
89
86
  code: e == null ? void 0 : e.code,
90
- onSelectCard: () => n == null ? void 0 : n(e == null ? void 0 : e.uuid),
91
- LinkComponent: f,
87
+ onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid),
88
+ LinkComponent: h,
92
89
  ...e
93
90
  },
94
- a
95
- )) : i == null ? void 0 : i.slice(0, S).map((e, a) => /* @__PURE__ */ r(
96
- w,
91
+ i
92
+ )) : o == null ? void 0 : o.slice(0, g).map((e, i) => /* @__PURE__ */ r(
93
+ k,
97
94
  {
98
95
  uuid: e == null ? void 0 : e.uuid,
99
- image: $(e == null ? void 0 : e.image) || null,
96
+ image: b(e == null ? void 0 : e.image) || null,
100
97
  name: e == null ? void 0 : e.name,
101
98
  code: e == null ? void 0 : e.code,
102
- onSelectCard: () => n == null ? void 0 : n(e == null ? void 0 : e.uuid),
103
- LinkComponent: f,
99
+ onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid),
100
+ LinkComponent: h,
104
101
  ...e
105
102
  },
106
- a
107
- )) }), [i]);
108
- return /* @__PURE__ */ l(j, { ref: s, children: [
109
- /* @__PURE__ */ l("div", { className: "regular-title", children: [
110
- /* @__PURE__ */ l("div", { className: "regular-title-text", children: [
111
- c(m) && /* @__PURE__ */ r("i", { className: m }),
103
+ i
104
+ )) }), [o]);
105
+ return /* @__PURE__ */ m(L, { ref: l, children: [
106
+ /* @__PURE__ */ m("div", { className: "regular-title", children: [
107
+ /* @__PURE__ */ m("div", { className: "regular-title-text", children: [
108
+ c(s) && /* @__PURE__ */ r("i", { className: s }),
112
109
  /* @__PURE__ */ r("span", { children: d })
113
110
  ] }),
114
- c(h) && c(g) && !b && /* @__PURE__ */ r(
115
- y,
111
+ c(p) && c(f) && !S && /* @__PURE__ */ r(
112
+ T,
116
113
  {
117
114
  type: "button",
118
115
  btnType: "tinted",
119
116
  color: "neutral",
120
117
  onClick: (e) => {
121
- var a;
122
- (a = e == null ? void 0 : e.target) == null || a.blur(), k(g);
118
+ var i;
119
+ (i = e == null ? void 0 : e.target) == null || i.blur(), w(f);
123
120
  },
124
121
  borderRadius: "curved",
125
122
  className: "button-link",
126
- children: h
123
+ children: p
127
124
  }
128
125
  )
129
126
  ] }),
130
127
  /* @__PURE__ */ r(
131
128
  I,
132
129
  {
133
- isLoading: b,
130
+ isLoading: S,
134
131
  keyPrefix: "simple-categories-skeleton",
135
- children: /* @__PURE__ */ r(D, { limit: S, children: _ })
132
+ children: /* @__PURE__ */ r(D, { limit: g, children: z })
136
133
  }
137
134
  )
138
135
  ] });
139
136
  });
140
137
  export {
141
- X as default
138
+ V as default
142
139
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),s=require("react"),q=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),l=require("./breakpoints-CcVm-gVm.cjs"),y=require("./useDetectMobile-DYV6V1yw.cjs"),M=require("./index-BkztbBWe.cjs"),F=require("./index-DgUNsgfF.cjs"),i=require("./style-Ito6YFqi.cjs"),U=q.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),l=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),s=require("./breakpoints-CcVm-gVm.cjs"),P=require("./useDetectMobile-DYV6V1yw.cjs"),$=require("./index-B96icAp4.cjs"),F=require("./index-DgUNsgfF.cjs"),i=require("./style-CQdEALKR.cjs"),U=j.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: repeat(6, 1fr);
4
4
  gap: 1.25rem;
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  /* Tablet (768–1024px) – text 3/4 left, 1 card top-right, 4 equal product cols below */
13
- @media ${l.down("M")} {
13
+ @media ${s.down("M")} {
14
14
  grid-template-columns: repeat(4, 1fr);
15
15
  grid-template-rows: auto;
16
16
 
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  /* Mobile (≤767px) – title full width above, 2-col product grid below */
37
- @media ${l.down("S")} {
37
+ @media ${s.down("S")} {
38
38
  grid-template-columns: repeat(2, 1fr);
39
39
  gap: 1rem;
40
40
 
@@ -57,12 +57,12 @@
57
57
  }
58
58
 
59
59
  /* Small phones (≤480px) – single column */
60
- @media ${l.down("XS")} {
60
+ @media ${s.down("XS")} {
61
61
  grid-template-columns: 1fr;
62
62
  gap: 0.75rem;
63
63
  }
64
- `,C=q.styled(i.SkeletonColumnWrapper)`
65
- @media ${l.down("S")} {
64
+ `,_=j.styled(i.SkeletonAnimationColumnContainer)`
65
+ @media ${s.down("S")} {
66
66
  & .skeleton__cards {
67
67
  & > div {
68
68
  width: 100%;
@@ -74,4 +74,4 @@
74
74
  }
75
75
  }
76
76
  }
77
- `,R=({keyPrefix:r})=>t.jsxs(C,{children:[t.jsxs(i.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(i.SkeletonLinePlaceholder,{width:"100%",height:"11.125rem"},`${r}-1`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-2`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-3`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-4`)]}),t.jsxs(i.SkeletonRowWrapper,{className:"skeleton__cards",children:[t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-5`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-6`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-7`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-8`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-9`),t.jsx(i.SkeletonSquarePlaceholder,{height:"11.125rem",width:"11.125rem"},`${r}-10`)]})]}),T=({keyPrefix:r,isLoading:n=!1,fallbackComponent:a=t.jsx(t.Fragment,{}),children:d})=>t.jsx(s.Suspense,{fallbackComponent:a,children:n===!0?t.jsx(R,{keyPrefix:r}):d}),k=s.memo(M.SimpleProductCard),L=s.forwardRef((r,n)=>{const{title:a,subtitle:d,description:$,buttonText:f,buttonLink:v,items:o,onButtonAction:N=()=>{},isLoading:P=!1,limit:u=6,getImage:m=()=>{},negotiableText:h,freeText:p,componentName:g,LinkComponent:S}=r,w=y.useDetectMobile(),_=s.useMemo(()=>{var j,b;return t.jsx(t.Fragment,{children:w===!0?(j=o==null?void 0:o.slice(0,4))==null?void 0:j.map((e,c)=>t.jsx(k,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:h,freeText:p,metadata:{name:g,accessor:e==null?void 0:e.accessor},LinkComponent:S},c)):(b=o==null?void 0:o.slice(0,9))==null?void 0:b.map((e,c)=>t.jsx(k,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:h,freeText:p,metadata:{name:g,accessor:e==null?void 0:e.accessor},LinkComponent:S},c))})},[o,w,u]);return t.jsx(T,{isLoading:P,keyPrefix:"simple-products-skeleton",children:t.jsxs(U,{ref:n,limit:u,children:[t.jsx(F.TextBlockV1,{subtitle:d,title:a,description:$,buttonText:f,buttonLink:v,onButtonAction:N,className:"text-block-v1"}),_]})})});module.exports=L;
77
+ `,z=({keyPrefix:o})=>t.jsx(_,{children:[1,2].map(n=>t.jsxs(i.SkeletonContainer,{className:"skeleton__cards",children:[t.jsx(i.SkeletonRect,{width:"100%",height:"11.125rem"}),t.jsx(i.SkeletonSquare,{size:"11.125rem"}),t.jsx(i.SkeletonSquare,{size:"11.125rem"}),t.jsx(i.SkeletonSquare,{size:"11.125rem"})]},`${o}-${n}`))}),T=({keyPrefix:o,isLoading:n=!1,fallbackComponent:a=t.jsx(t.Fragment,{}),children:c})=>t.jsx(l.Suspense,{fallbackComponent:a,children:n===!0?t.jsx(z,{keyPrefix:o}):c}),k=l.memo($.SimpleProductCard),R=l.forwardRef((o,n)=>{const{title:a,subtitle:c,description:y,buttonText:q,buttonLink:v,items:r,onButtonAction:C=()=>{},isLoading:M=!1,limit:d=6,getImage:m=()=>{},negotiableText:p,freeText:g,componentName:h,LinkComponent:S}=o,w=P.useDetectMobile(),N=l.useMemo(()=>{var b,f;return t.jsx(t.Fragment,{children:w===!0?(b=r==null?void 0:r.slice(0,4))==null?void 0:b.map((e,u)=>t.jsx(k,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:p,freeText:g,metadata:{name:h,accessor:e==null?void 0:e.accessor},LinkComponent:S},u)):(f=r==null?void 0:r.slice(0,9))==null?void 0:f.map((e,u)=>t.jsx(k,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:p,freeText:g,metadata:{name:h,accessor:e==null?void 0:e.accessor},LinkComponent:S},u))})},[r,w,d]);return t.jsx(T,{isLoading:M,keyPrefix:"simple-products-skeleton",children:t.jsxs(U,{ref:n,limit:d,children:[t.jsx(F.TextBlockV1,{subtitle:c,title:a,description:y,buttonText:q,buttonLink:v,onButtonAction:C,className:"text-block-v1"}),N]})})});module.exports=R;