@ubnt/store.core 9.56.0 → 9.56.1-new-design

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 (592) hide show
  1. package/CHANGELOG.md +106 -1
  2. package/lib/_virtual/_virtual_multi-entry.js +13 -10
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -11
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +12 -2
  7. package/lib/apis/smartcat.js +27 -4
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +27 -4
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/assets/attention.svg +5 -5
  12. package/lib/assets/attention2.svg +5 -5
  13. package/lib/assets/cart-secondary.svg +5 -0
  14. package/lib/assets/icon-location-pin.svg +5 -0
  15. package/lib/assets/icons/cart-secondary.svg.js +27 -0
  16. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  17. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  18. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  19. package/lib/assets/icons/menu/{icon-globe.svg.js → icon-location-pin.svg.js} +6 -6
  20. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  21. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  22. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  23. package/lib/assets/logoUnifi.svg +10 -2
  24. package/lib/assets/plus2.svg +1 -4
  25. package/lib/assets/plus3.svg +4 -1
  26. package/lib/assets/poe2.svg +3 -2
  27. package/lib/assets/poe3.svg +2 -3
  28. package/lib/assets/port.svg +4 -2
  29. package/lib/assets/port2.svg +2 -4
  30. package/lib/assets/udmPro.jpg +0 -0
  31. package/lib/assets/udmPro2.jpg +0 -0
  32. package/lib/assets/udmProMax.jpg +0 -0
  33. package/lib/assets/udmProMax2.jpg +0 -0
  34. package/lib/assets/udmProSpecial.jpg +0 -0
  35. package/lib/assets/udmProSpecial2.jpg +0 -0
  36. package/lib/components/Accordion/Accordion.js +4 -4
  37. package/lib/components/Avatar/Avatar.js +2 -2
  38. package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
  39. package/lib/components/Button/Button.js +12 -5
  40. package/lib/components/Button/Button.js.map +1 -1
  41. package/lib/components/Button/Button.mjs +8 -1
  42. package/lib/components/Button/Button.mjs.map +1 -1
  43. package/lib/components/Button/CartButton.d.ts +3 -1
  44. package/lib/components/Button/CartButton.js +11 -6
  45. package/lib/components/Button/CartButton.js.map +1 -1
  46. package/lib/components/Button/CartButton.mjs +8 -4
  47. package/lib/components/Button/CartButton.mjs.map +1 -1
  48. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  49. package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
  50. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  51. package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
  52. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  53. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
  54. package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
  55. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  56. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
  57. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  58. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  59. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  60. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
  61. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  62. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
  63. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  64. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
  65. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
  66. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  67. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
  68. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  69. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
  70. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  71. package/lib/components/CardSection/Card/Card.js +6 -6
  72. package/lib/components/CardSection/CardSection.js +2 -2
  73. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  74. package/lib/components/CartIcon/CartIcon.js +2 -2
  75. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  76. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  77. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  78. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  79. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  80. package/lib/components/Checkbox/Checkbox.js +4 -4
  81. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  82. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  83. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  84. package/lib/components/Container/Container.d.ts +1 -1
  85. package/lib/components/Container/Container.js +5 -4
  86. package/lib/components/Container/Container.js.map +1 -1
  87. package/lib/components/Container/Container.mjs +5 -4
  88. package/lib/components/Container/Container.mjs.map +1 -1
  89. package/lib/components/Container/index.stories.d.ts +5 -5
  90. package/lib/components/CustomImage/CustomImage.js +12 -12
  91. package/lib/components/Explore/Explore.js +5 -5
  92. package/lib/components/Explore/ExploreData.js +12 -12
  93. package/lib/components/Explore/ExploreData.js.map +1 -1
  94. package/lib/components/Explore/ExploreData.mjs +12 -12
  95. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  96. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  97. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  98. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  99. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  100. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  101. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  102. package/lib/components/Footer/Footer.js +2 -2
  103. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  104. package/lib/components/Gallery/Gallery.context.js +17 -17
  105. package/lib/components/Gallery/Gallery.js +9 -9
  106. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  107. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  108. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  109. package/lib/components/GridGallery/GridGallery.js +8 -8
  110. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  111. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  112. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  113. package/lib/components/Header/AccountMenu/AccountMenu.d.ts +1 -1
  114. package/lib/components/Header/AccountMenu/AccountMenu.js +39 -24
  115. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  116. package/lib/components/Header/AccountMenu/AccountMenu.mjs +22 -7
  117. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  118. package/lib/components/Header/AccountMenu/AccountMenu.stories.d.ts +11 -0
  119. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +6 -0
  120. package/lib/components/Header/AccountMenu/AccountMenu.styles.js +13 -0
  121. package/lib/components/Header/AccountMenu/AccountMenu.styles.js.map +1 -1
  122. package/lib/components/Header/AccountMenu/AccountMenu.styles.mjs +12 -1
  123. package/lib/components/Header/AccountMenu/AccountMenu.styles.mjs.map +1 -1
  124. package/lib/components/Header/AccountMenu/AccountMenu.types.d.ts +5 -0
  125. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  126. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  127. package/lib/components/Header/CartModalV2/Item/Item.js +7 -7
  128. package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
  129. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  130. package/lib/components/Header/Header.js +43 -43
  131. package/lib/components/Header/Header.js.map +1 -1
  132. package/lib/components/Header/Header.mjs +9 -9
  133. package/lib/components/Header/Header.mjs.map +1 -1
  134. package/lib/components/Header/Header.stories.d.ts +111 -0
  135. package/lib/components/Header/Header.styles.d.ts +7 -12
  136. package/lib/components/Header/Header.styles.js +10 -32
  137. package/lib/components/Header/Header.styles.js.map +1 -1
  138. package/lib/components/Header/Header.styles.mjs +10 -31
  139. package/lib/components/Header/Header.styles.mjs.map +1 -1
  140. package/lib/components/Header/Header.types.d.ts +29 -5
  141. package/lib/components/Header/Header.types.js +2 -1
  142. package/lib/components/Header/Header.types.js.map +1 -1
  143. package/lib/components/Header/Header.types.mjs +2 -1
  144. package/lib/components/Header/Header.types.mjs.map +1 -1
  145. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  146. package/lib/components/Header/IsolatedHeader.js +50 -50
  147. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  148. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  149. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  150. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  151. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  152. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  153. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  154. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  155. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  156. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  157. package/lib/components/Header/LogoIcon/index.js +6 -0
  158. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  159. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  160. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  161. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  162. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  163. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  164. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  165. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  166. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  167. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  168. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  169. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  170. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  171. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  172. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  173. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  174. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  175. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  176. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  177. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  178. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  179. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  180. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  181. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  182. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  183. package/lib/components/Header/Overlay/Overlay.js +3 -3
  184. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  185. package/lib/components/Header/ProHeader/ProHeader.js +270 -189
  186. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  187. package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
  188. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  189. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
  190. package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
  191. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  192. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
  193. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  194. package/lib/components/Header/translations/ar.json.js +4 -1
  195. package/lib/components/Header/translations/ar.json.js.map +1 -1
  196. package/lib/components/Header/translations/ar.json.mjs +4 -2
  197. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  198. package/lib/components/Header/translations/de.json.js +4 -1
  199. package/lib/components/Header/translations/de.json.js.map +1 -1
  200. package/lib/components/Header/translations/de.json.mjs +4 -2
  201. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  202. package/lib/components/Header/translations/el.json.js +4 -1
  203. package/lib/components/Header/translations/el.json.js.map +1 -1
  204. package/lib/components/Header/translations/el.json.mjs +4 -2
  205. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  206. package/lib/components/Header/translations/en.json.js +7 -1
  207. package/lib/components/Header/translations/en.json.js.map +1 -1
  208. package/lib/components/Header/translations/en.json.mjs +6 -2
  209. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  210. package/lib/components/Header/translations/es.json.js +4 -1
  211. package/lib/components/Header/translations/es.json.js.map +1 -1
  212. package/lib/components/Header/translations/es.json.mjs +4 -2
  213. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  214. package/lib/components/Header/translations/fr.json.js +4 -1
  215. package/lib/components/Header/translations/fr.json.js.map +1 -1
  216. package/lib/components/Header/translations/fr.json.mjs +4 -2
  217. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  218. package/lib/components/Header/translations/it.json.js +4 -1
  219. package/lib/components/Header/translations/it.json.js.map +1 -1
  220. package/lib/components/Header/translations/it.json.mjs +4 -2
  221. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  222. package/lib/components/Header/translations/ja.json.js +4 -1
  223. package/lib/components/Header/translations/ja.json.js.map +1 -1
  224. package/lib/components/Header/translations/ja.json.mjs +4 -2
  225. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  226. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  227. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  228. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  229. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  230. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  231. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  232. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  233. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  234. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  235. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  236. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  237. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  238. package/lib/components/Hero/Hero.js +5 -5
  239. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  240. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  241. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  242. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  243. package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
  244. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  245. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  246. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  247. package/lib/components/LandingPage/LandingPage.js +2 -2
  248. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  249. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  250. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  251. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  252. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  253. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  254. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  255. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  256. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  257. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  258. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  259. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  260. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  261. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  262. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
  263. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  264. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  265. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  266. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  267. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  268. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  269. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  270. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  271. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  272. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  273. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  274. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  275. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  276. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  277. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  278. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  279. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  280. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  281. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  282. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  283. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  284. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  285. package/lib/components/MobileModal/MobileModal.js +4 -4
  286. package/lib/components/Modal/Modal.js +3 -3
  287. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  288. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  289. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  290. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  291. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  292. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  293. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  294. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  295. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  296. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  297. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  298. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  299. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  300. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  301. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  302. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  303. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  304. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  305. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  306. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  307. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  308. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  309. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  310. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  311. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  312. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  313. package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
  314. package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
  315. package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
  316. package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
  317. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  318. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  319. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +4 -2
  320. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  321. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +4 -2
  322. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  323. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
  324. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  325. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
  326. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  327. package/lib/components/ModelCompareV3/data/products/express.js +3 -3
  328. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  329. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  330. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  331. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +4 -2
  332. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
  333. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +4 -2
  334. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
  335. package/lib/components/ModelCompareV3/data/products/gatewayLite.js +4 -2
  336. package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
  337. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +4 -2
  338. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
  339. package/lib/components/ModelCompareV3/data/products/gatewayMax.js +4 -2
  340. package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
  341. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +4 -2
  342. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
  343. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +4 -2
  344. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
  345. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +4 -2
  346. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
  347. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +3 -1
  348. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
  349. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +3 -1
  350. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
  351. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  352. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  353. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  354. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  355. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
  356. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  357. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
  358. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  359. package/lib/components/ModelCompareV3/data/products/udmPro.js +4 -4
  360. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  361. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
  362. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  363. package/lib/components/ModelCompareV3/data/products/udmProMax.js +4 -4
  364. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  365. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
  366. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  367. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +4 -4
  368. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  369. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
  370. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  371. package/lib/components/ModelCompareV3/data/products/udr.js +5 -41
  372. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  373. package/lib/components/ModelCompareV3/data/products/udr.mjs +5 -21
  374. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  375. package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
  376. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  377. package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
  378. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  379. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
  380. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
  381. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
  382. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
  383. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
  384. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
  385. package/lib/components/Pagination/Pagination.js +3 -3
  386. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  387. package/lib/components/ProductCard/ProductCard.js +7 -7
  388. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  389. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  390. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  391. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  392. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  393. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  394. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  395. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  396. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  397. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  398. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +81 -0
  399. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  400. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +73 -0
  401. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  402. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  403. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  404. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
  405. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  406. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
  407. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  408. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  409. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  410. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  411. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  412. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  413. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  414. package/lib/components/ProductWizard/Options/Options.js +3 -3
  415. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  416. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  417. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  418. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  419. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  420. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  421. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  422. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  423. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  424. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  425. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  426. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  427. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  428. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  429. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  430. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
  431. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  432. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  433. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  434. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  435. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  436. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  437. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
  438. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  439. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  440. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  441. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  442. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  443. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  444. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
  445. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +4 -4
  446. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
  447. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
  448. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
  449. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
  450. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
  451. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  452. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  453. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  454. package/lib/components/ScrollWrapper/ScrollWrapper.js +33 -25
  455. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  456. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  457. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  458. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  459. package/lib/components/Search/Input/Input.d.ts +1 -1
  460. package/lib/components/Search/Input/Input.js +8 -8
  461. package/lib/components/Search/Input/Input.js.map +1 -1
  462. package/lib/components/Search/Input/Input.mjs +4 -4
  463. package/lib/components/Search/Input/Input.mjs.map +1 -1
  464. package/lib/components/Search/Input/Input.styles.js +0 -1
  465. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  466. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  467. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  468. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  469. package/lib/components/Search/Modal/Modal.js +3 -3
  470. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  471. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  472. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  473. package/lib/components/Tooltip/Tooltip.js +5 -5
  474. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  475. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  476. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  477. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  478. package/lib/components/index.d.ts +1 -0
  479. package/lib/components/index.js +2 -0
  480. package/lib/components/index.js.map +1 -1
  481. package/lib/components/index.mjs +2 -0
  482. package/lib/components/index.mjs.map +1 -1
  483. package/lib/constants/icons/generic/index.js +3 -3
  484. package/lib/constants/icons/generic/index.mjs +1 -1
  485. package/lib/constants/icons/generic/plus.svg.js +5 -5
  486. package/lib/constants/icons/generic/plus.svg.mjs +2 -2
  487. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  488. package/lib/constants/icons/options/colors/index.js +3 -3
  489. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  490. package/lib/constants/icons/options/styles/index.js +3 -3
  491. package/lib/constants/optionIcons.js +6 -6
  492. package/lib/constants/optionIcons.mjs +4 -4
  493. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  494. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  495. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  496. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  497. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  498. package/lib/constants/proStoreCategories/mapping/index.d.ts +4 -2
  499. package/lib/constants/proStoreCategories/mapping/index.js +50 -51
  500. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  501. package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
  502. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  503. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  504. package/lib/constants/proStoreCategories/mapping/redirects.js +18 -3
  505. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  506. package/lib/constants/proStoreCategories/mapping/redirects.mjs +18 -3
  507. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  508. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
  509. package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
  510. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  511. package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
  512. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  513. package/lib/constants/proStoreCategories/translations/ar.json.js +7 -3
  514. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  515. package/lib/constants/proStoreCategories/translations/ar.json.mjs +7 -4
  516. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  517. package/lib/constants/proStoreCategories/translations/de.json.js +7 -3
  518. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  519. package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -4
  520. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  521. package/lib/constants/proStoreCategories/translations/el.json.js +7 -3
  522. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  523. package/lib/constants/proStoreCategories/translations/el.json.mjs +7 -4
  524. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  525. package/lib/constants/proStoreCategories/translations/en.json.js +7 -3
  526. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  527. package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -4
  528. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  529. package/lib/constants/proStoreCategories/translations/es.json.js +7 -3
  530. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  531. package/lib/constants/proStoreCategories/translations/es.json.mjs +7 -4
  532. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  533. package/lib/constants/proStoreCategories/translations/fr.json.js +7 -3
  534. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  535. package/lib/constants/proStoreCategories/translations/fr.json.mjs +7 -4
  536. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  537. package/lib/constants/proStoreCategories/translations/it.json.js +7 -3
  538. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  539. package/lib/constants/proStoreCategories/translations/it.json.mjs +7 -4
  540. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  541. package/lib/constants/proStoreCategories/translations/ja.json.js +7 -3
  542. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  543. package/lib/constants/proStoreCategories/translations/ja.json.mjs +7 -4
  544. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  545. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -3
  546. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  547. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -4
  548. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  549. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +7 -3
  550. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  551. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +7 -4
  552. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  553. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +7 -3
  554. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  555. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +7 -4
  556. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  557. package/lib/constants/proStoreFilters/mapping.d.ts +55 -3
  558. package/lib/constants/proStoreFilters/mapping.js +140 -10
  559. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  560. package/lib/constants/proStoreFilters/mapping.mjs +140 -10
  561. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  562. package/lib/constants/theme.js +4 -0
  563. package/lib/constants/theme.js.map +1 -1
  564. package/lib/constants/theme.mjs +4 -0
  565. package/lib/constants/theme.mjs.map +1 -1
  566. package/lib/contexts/MenuContext/context.js +34 -34
  567. package/lib/contexts/MenuContext/context.js.map +1 -1
  568. package/lib/contexts/MenuContext/context.mjs +1 -1
  569. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  570. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  571. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  572. package/lib/helpers/index.js +1 -0
  573. package/lib/helpers/index.js.map +1 -1
  574. package/lib/helpers/index.mjs +1 -1
  575. package/lib/helpers/proStoreCategories.js +2 -2
  576. package/lib/helpers/ux.d.ts +8 -0
  577. package/lib/helpers/ux.js +15 -0
  578. package/lib/helpers/ux.js.map +1 -1
  579. package/lib/helpers/ux.mjs +15 -1
  580. package/lib/helpers/ux.mjs.map +1 -1
  581. package/lib/hooks/useHasTouch.js +3 -3
  582. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  583. package/lib/hooks/useHorizontalScroll.js +2 -2
  584. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  585. package/lib/hooks/useScrollToY.js +2 -2
  586. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  587. package/lib/hooks/useTranslation.js +6 -6
  588. package/lib/utils/nextjs/ssr/registry.js +2 -2
  589. package/package.json +1 -1
  590. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  591. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  592. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
@@ -0,0 +1,81 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var React = require('react');
5
+ var typeGuards = require('../../utils/typeGuards.js');
6
+ var ProductTechSpecs_styles = require('./ProductTechSpecs.styles.js');
7
+ function _interopDefault(e) {
8
+ return e && e.__esModule ? e : {
9
+ default: e
10
+ };
11
+ }
12
+ var React__default = /*#__PURE__*/_interopDefault(React);
13
+ "use strict";
14
+ const ProductTechSpecs = ({
15
+ sections
16
+ }) => {
17
+ const renderFeatureValue = React.useCallback(value => {
18
+ const lines = value.split("\n");
19
+ return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
20
+ children: lines.map((line, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
21
+ children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx("br", {}), line]
22
+ }, i))
23
+ });
24
+ }, []);
25
+ const parsedSections = React.useMemo(() => {
26
+ return sections.map(section => {
27
+ const {
28
+ withParentId,
29
+ withoutParentId
30
+ } = section.features.reduce((acc, feature) => {
31
+ if (feature.parentId === null) {
32
+ acc.withoutParentId.push(feature);
33
+ } else {
34
+ acc.withParentId.push(feature);
35
+ }
36
+ return acc;
37
+ }, {
38
+ withParentId: [],
39
+ withoutParentId: []
40
+ });
41
+ const features = withoutParentId.map(parentFeature => {
42
+ const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
43
+ const mappedFeature = {
44
+ ...parentFeature,
45
+ children
46
+ };
47
+ return mappedFeature.children.length > 0 || !!mappedFeature.value ? mappedFeature : null;
48
+ }).filter(typeGuards.isNonNullish);
49
+ return {
50
+ id: section.id,
51
+ label: section.label,
52
+ features
53
+ };
54
+ }).filter(section => section.features.length > 0);
55
+ }, [sections]);
56
+ console.log(parsedSections);
57
+ return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Wrap, {
58
+ children: parsedSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
59
+ children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.SectionDivider, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Row, {
60
+ children: /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Heading, {
61
+ children: section.label
62
+ })
63
+ }), section.features.map(feature => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
64
+ children: [/* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
65
+ children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
66
+ children: feature.label
67
+ }), feature.value && renderFeatureValue(feature.value)]
68
+ }, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
69
+ children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Tree, {
70
+ $isLast: i2 === feature.children.length - 1
71
+ }), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Branch, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
72
+ $isChildRowFirstCell: true,
73
+ children: childFeature.label
74
+ }), childFeature.value && renderFeatureValue(childFeature.value)]
75
+ }, childFeature.id))]
76
+ }, feature.id))]
77
+ }, section.id))
78
+ });
79
+ };
80
+ exports.ProductTechSpecs = ProductTechSpecs;
81
+ //# sourceMappingURL=ProductTechSpecs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTechSpecs.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport { isNonNullish } from \"../../utils/typeGuards\";\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n const lines = value.split(\"\\n\");\n return (\n <S.Cell>\n {lines.map((line, i) => (\n <React.Fragment key={i}>\n {i > 0 && <br />}\n {line}\n </React.Fragment>\n ))}\n </S.Cell>\n );\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections\n .map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId\n .map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n\n const mappedFeature = {\n ...parentFeature,\n children,\n };\n\n return mappedFeature.children.length > 0 || !!mappedFeature.value\n ? mappedFeature\n : null;\n })\n .filter(isNonNullish);\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n })\n .filter((section) => section.features.length > 0);\n }, [sections]);\n\n console.log(parsedSections);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","lines","split","jsx","S.Cell","Cell","children","map","line","i","jsxs","React","Fragment","parsedSections","useMemo","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","filter","childFeature","id","mappedFeature","length","isNonNullish","label","console","log","S.Wrap","Wrap","S.SectionDivider","S.Row","Row","S.Heading","S.Tree","$isLast","S.Branch","Branch","$isChildRowFirstCell"],"mappings":";;;;;;;;;;;;;AAMO,MAAMA,mBAAmBA,CAAC;EAC/BC;AACF,CAA0C,KAAA;EAIlC,MAAAC,kBAAA,GAAqBC,iBAAY,CAACC,KAA+B,IAAA;IAC/D,MAAAC,KAAA,GAAQD,KAAM,CAAAE,KAAA,CAAM,IAAI,CAAA;IAC9B,OAAA,eACGC,UAAA,CAAAA,GAAA,CAAAC,uBAAA,CAAAC,IAAA,EAAA;MACEC,QAAM,EAAAL,KAAA,CAAAM,GAAA,CAAI,CAACC,IAAA,EAAMC,CAChB,KAAA,eAAAC,UAAA,CAAAA,IAAA,CAACC,cAAM,CAAA,SAAA,CAAA,CAAAC,QAAA,EAAN;QACEN,QAAA,EAAA,CAAIG,CAAA,GAAA,CAAA,IAAA,8BAAM,IAAG,EAAA,CAAA,CAAA,CAAA,EACbD,IAAA;OAFkB,EAAAC,CAGrB,CACD;IACH,CAAA,CAAA;EAEJ,CAAA,EAAG,EAAE,CAAA;EAEC,MAAAI,cAAA,GAAiBC,KAAAA,CAAAA,QAAQ,MAAM;IAC5B,OAAAjB,QAAA,CACJU,GAAI,CAACQ,OAAY,IAAA;MAChB,MAAM;QAAEC,YAAA;QAAcC;MAAgB,CAAA,GAAIF,QAAQG,QAAS,CAAAC,MAAA,CAIzD,CAACC,KAAKC,OAAY,KAAA;QACZ,IAAAA,OAAA,CAAQC,aAAa,IAAM,EAAA;UACzBF,GAAA,CAAAH,eAAA,CAAgBM,KAAKF,OAAO,CAAA;QAAA,CAC3B,MAAA;UACDD,GAAA,CAAAJ,YAAA,CAAaO,KAAKF,OAAO,CAAA;QAC/B;QACO,OAAAD,GAAA;MACT,CAAA,EACA;QAAEJ,YAAc,EAAA,EAAI;QAAAC,eAAA,EAAiB;MAAG,CAAA,CAC1C;MAEA,MAAMC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ime';
2
+ import React, { useCallback, useMemo } from 'react';
3
+ import { isNonNullish } from '../../utils/typeGuards.mjs';
4
+ import { Cell, Wrap, SectionDivider, Row, Heading, Tree, Branch } from './ProductTechSpecs.styles.mjs';
5
+ "use strict";
6
+ const ProductTechSpecs = ({
7
+ sections
8
+ }) => {
9
+ const renderFeatureValue = useCallback(value => {
10
+ const lines = value.split("\n");
11
+ return /* @__PURE__ */jsx(Cell, {
12
+ children: lines.map((line, i) => /* @__PURE__ */jsxs(React.Fragment, {
13
+ children: [i > 0 && /* @__PURE__ */jsx("br", {}), line]
14
+ }, i))
15
+ });
16
+ }, []);
17
+ const parsedSections = useMemo(() => {
18
+ return sections.map(section => {
19
+ const {
20
+ withParentId,
21
+ withoutParentId
22
+ } = section.features.reduce((acc, feature) => {
23
+ if (feature.parentId === null) {
24
+ acc.withoutParentId.push(feature);
25
+ } else {
26
+ acc.withParentId.push(feature);
27
+ }
28
+ return acc;
29
+ }, {
30
+ withParentId: [],
31
+ withoutParentId: []
32
+ });
33
+ const features = withoutParentId.map(parentFeature => {
34
+ const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
35
+ const mappedFeature = {
36
+ ...parentFeature,
37
+ children
38
+ };
39
+ return mappedFeature.children.length > 0 || !!mappedFeature.value ? mappedFeature : null;
40
+ }).filter(isNonNullish);
41
+ return {
42
+ id: section.id,
43
+ label: section.label,
44
+ features
45
+ };
46
+ }).filter(section => section.features.length > 0);
47
+ }, [sections]);
48
+ console.log(parsedSections);
49
+ return /* @__PURE__ */jsx(Wrap, {
50
+ children: parsedSections.map((section, i) => /* @__PURE__ */jsxs(React.Fragment, {
51
+ children: [i > 0 && /* @__PURE__ */jsx(SectionDivider, {}), /* @__PURE__ */jsx(Row, {
52
+ children: /* @__PURE__ */jsx(Heading, {
53
+ children: section.label
54
+ })
55
+ }), section.features.map(feature => /* @__PURE__ */jsxs(React.Fragment, {
56
+ children: [/* @__PURE__ */jsxs(Row, {
57
+ children: [/* @__PURE__ */jsx(Cell, {
58
+ children: feature.label
59
+ }), feature.value && renderFeatureValue(feature.value)]
60
+ }, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxs(Row, {
61
+ children: [/* @__PURE__ */jsx(Tree, {
62
+ $isLast: i2 === feature.children.length - 1
63
+ }), /* @__PURE__ */jsx(Branch, {}), /* @__PURE__ */jsx(Cell, {
64
+ $isChildRowFirstCell: true,
65
+ children: childFeature.label
66
+ }), childFeature.value && renderFeatureValue(childFeature.value)]
67
+ }, childFeature.id))]
68
+ }, feature.id))]
69
+ }, section.id))
70
+ });
71
+ };
72
+ export { ProductTechSpecs };
73
+ //# sourceMappingURL=ProductTechSpecs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTechSpecs.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport { isNonNullish } from \"../../utils/typeGuards\";\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n const lines = value.split(\"\\n\");\n return (\n <S.Cell>\n {lines.map((line, i) => (\n <React.Fragment key={i}>\n {i > 0 && <br />}\n {line}\n </React.Fragment>\n ))}\n </S.Cell>\n );\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections\n .map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId\n .map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n\n const mappedFeature = {\n ...parentFeature,\n children,\n };\n\n return mappedFeature.children.length > 0 || !!mappedFeature.value\n ? mappedFeature\n : null;\n })\n .filter(isNonNullish);\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n })\n .filter((section) => section.features.length > 0);\n }, [sections]);\n\n console.log(parsedSections);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","lines","split","jsx","S.Cell","children","map","line","i","jsxs","React","Fragment","parsedSections","useMemo","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","filter","childFeature","id","mappedFeature","length","isNonNullish","label","console","log","S.Wrap","S.SectionDivider","S.Row","S.Heading","S.Tree","$isLast","S.Branch","$isChildRowFirstCell"],"mappings":";;;;;AAMO,MAAMA,mBAAmBA,CAAC;EAC/BC;AACF,CAA0C,KAAA;EAIlC,MAAAC,kBAAA,GAAqBC,WAAY,CAACC,KAA+B,IAAA;IAC/D,MAAAC,KAAA,GAAQD,KAAM,CAAAE,KAAA,CAAM,IAAI,CAA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EAAA,CAAA,eAACF,GAAA,CAAAkC,MAAA;YAAOC,OAAA,EAAS9B,OAAMY,OAAQ,CAAAf,QAAA,CAASuB,SAAS;WAAG,CAAA,EAAA,eACpDzB,GAAA,CAACoC,MAAE,EAAF,EAAS,CAAA,EAAA,mBAETnC,IAAE,EAAF;YAAOoC,oBAAoB,EAAA,IAAA;YAAEnC,uBAAayB;WAAM,CAAA,EAChDL,YAAa,CAAAzB,KAAA,IACZF,kBAAmB,CAAA2B,YAAA,CAAazB,KAAK,CAAA;SAN7B,EAAAyB,YAAA,CAAaC,EAOzB,CACD,CAAA;OAjBgB,EAAAN,OAAA,CAAQM,EAkB7B,CACD,CAAA;IA5BkB,CAAA,EAAAZ,OAAA,CAAQY,EA6B7B,CACD;EACH,CAAA,CAAA;AAEJ,CAAA;"}
@@ -0,0 +1,5 @@
1
+ import type { Meta } from "@storybook/react";
2
+ import { ProductTechSpecs } from "./ProductTechSpecs";
3
+ declare const _default: Meta<typeof ProductTechSpecs>;
4
+ export default _default;
5
+ export declare const Base: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./ProductTechSpecs.types").ProductTechSpecsProps>;
@@ -0,0 +1,11 @@
1
+ export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Row: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Heading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const SectionDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const Cell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
6
+ $isChildRowFirstCell?: boolean;
7
+ }, never>;
8
+ export declare const Tree: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
+ $isLast: boolean;
10
+ }, never>;
11
+ export declare const Branch: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,80 @@
1
+ 'use strict';
2
+
3
+ var styled = require('styled-components');
4
+ var layout = require('../../constants/layout.js');
5
+ function _interopDefault(e) {
6
+ return e && e.__esModule ? e : {
7
+ default: e
8
+ };
9
+ }
10
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
11
+ "use strict";
12
+ const TABLE_LEFT_MARGIN = "0px";
13
+ const TREE_LEFT_MARGIN = "8px";
14
+ const Wrap = styled__default["default"].div``;
15
+ const Row = styled__default["default"].div`
16
+ display: grid;
17
+ grid-template-columns: 300px 1fr;
18
+ position: relative;
19
+ &:hover: {
20
+ background-color: #f9f9f9;
21
+ }
22
+ padding-left: ${TABLE_LEFT_MARGIN};
23
+
24
+ @media ${layout.BREAKPOINTS.MOBILE_AND_DOWN} {
25
+ grid-template-columns: 170px 1fr;
26
+ }
27
+ `;
28
+ const Heading = styled__default["default"].div`
29
+ font-size: 20px;
30
+ line-height: 24px;
31
+ font-weight: 700;
32
+ color: #212427;
33
+ margin-bottom: 16px;
34
+ grid-column: 1 / 3;
35
+ `;
36
+ const SectionDivider = styled__default["default"].div`
37
+ height: 1px;
38
+ background-color: #dbdce1;
39
+ margin: 16px 0;
40
+ grid-column: 1 / 3;
41
+ `;
42
+ const Cell = styled__default["default"].div`
43
+ padding: 8px 28px 8px 0;
44
+ font-size: 14px;
45
+ line-height: 20px;
46
+ color: #50565e;
47
+ ${({
48
+ $isChildRowFirstCell
49
+ }) => $isChildRowFirstCell && "margin-left: 24px;"}
50
+ `;
51
+ const Tree = styled__default["default"].div`
52
+ ${({
53
+ $isLast
54
+ }) => $isLast ? "height: 18px" : "height: 100%"};
55
+ position: absolute;
56
+ top: 0;
57
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
58
+ width: 1px;
59
+ background-color: #c5c5c5;
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ z-index: 1;
64
+ `;
65
+ const Branch = styled__default["default"].div`
66
+ position: absolute;
67
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
68
+ top: 17px;
69
+ width: 11px;
70
+ height: 1px;
71
+ background-color: #c5c5c5;
72
+ `;
73
+ exports.Branch = Branch;
74
+ exports.Cell = Cell;
75
+ exports.Heading = Heading;
76
+ exports.Row = Row;
77
+ exports.SectionDivider = SectionDivider;
78
+ exports.Tree = Tree;
79
+ exports.Wrap = Wrap;
80
+ //# sourceMappingURL=ProductTechSpecs.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTechSpecs.styles.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n grid-template-columns: 170px 1fr;\n }\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n // Cell is a child and its the first item on the row.\n $isChildRowFirstCell?: boolean;\n}>`\n padding: 8px 28px 8px 0;\n font-size: 14px;\n line-height: 20px;\n color: #50565e;\n ${({ $isChildRowFirstCell }) => $isChildRowFirstCell && \"margin-left: 24px;\"}\n`;\n\nexport const Tree = styled.div<{\n $isLast: boolean;\n}>`\n ${({ $isLast }) => ($isLast ? \"height: 18px\" : \"height: 100%\")};\n position: absolute;\n top: 0;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n width: 1px;\n background-color: #c5c5c5;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1;\n`;\n\nexport const Branch = styled.div`\n position: absolute;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n top: 17px;\n width: 11px;\n height: 1px;\n background-color: #c5c5c5;\n`;\n"],"names":["TABLE_LEFT_MARGIN","TREE_LEFT_MARGIN","Wrap","styled","div","Row","BREAKPOINTS","MOBILE_AND_DOWN","Heading","SectionDivider","Cell","$isChildRowFirstCell","Tree","$isLast","Branch"],"mappings":";;;;;;;;;;;AAIA,MAAMA,iBAAoB,GAAA,KAAA;AAC1B,MAAMC,gBAAmB,GAAA,KAAA;AAElB,MAAMC,OAAOC,eAAAA,CAAAA,SAAAA,CAAO,CAAAC,GAAA,EAAA;AAEpB,MAAMC,MAAMF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAORJ,iBAAiB;AAAA;AAAA,WAExBM,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAK/B,MAAMC,UAAUL,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASvB,MAAMK,iBAAiBN,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO9B,MAAMM,OAAOP,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQvB,CAAC;EAAEO;CAAqB,KAAMA,wBAAwB,oBAAoB;AAAA,CAAA;AAGvE,MAAMC,OAAOT,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA,IAGvB,CAAC;EAAES;AAAA,CAAe,KAAAA,OAAA,GAAU,iBAAiB,cAAe;AAAA;AAAA;AAAA,eAGjDb,iBAAiB,MAAMC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS/C,MAAMa,SAASX,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,eAEdJ,iBAAiB,MAAMC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;"}
@@ -0,0 +1,66 @@
1
+ import styled from 'styled-components';
2
+ import { BREAKPOINTS } from '../../constants/layout.mjs';
3
+ "use strict";
4
+ const TABLE_LEFT_MARGIN = "0px";
5
+ const TREE_LEFT_MARGIN = "8px";
6
+ const Wrap = styled.div``;
7
+ const Row = styled.div`
8
+ display: grid;
9
+ grid-template-columns: 300px 1fr;
10
+ position: relative;
11
+ &:hover: {
12
+ background-color: #f9f9f9;
13
+ }
14
+ padding-left: ${TABLE_LEFT_MARGIN};
15
+
16
+ @media ${BREAKPOINTS.MOBILE_AND_DOWN} {
17
+ grid-template-columns: 170px 1fr;
18
+ }
19
+ `;
20
+ const Heading = styled.div`
21
+ font-size: 20px;
22
+ line-height: 24px;
23
+ font-weight: 700;
24
+ color: #212427;
25
+ margin-bottom: 16px;
26
+ grid-column: 1 / 3;
27
+ `;
28
+ const SectionDivider = styled.div`
29
+ height: 1px;
30
+ background-color: #dbdce1;
31
+ margin: 16px 0;
32
+ grid-column: 1 / 3;
33
+ `;
34
+ const Cell = styled.div`
35
+ padding: 8px 28px 8px 0;
36
+ font-size: 14px;
37
+ line-height: 20px;
38
+ color: #50565e;
39
+ ${({
40
+ $isChildRowFirstCell
41
+ }) => $isChildRowFirstCell && "margin-left: 24px;"}
42
+ `;
43
+ const Tree = styled.div`
44
+ ${({
45
+ $isLast
46
+ }) => $isLast ? "height: 18px" : "height: 100%"};
47
+ position: absolute;
48
+ top: 0;
49
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
50
+ width: 1px;
51
+ background-color: #c5c5c5;
52
+ display: flex;
53
+ justify-content: center;
54
+ align-items: center;
55
+ z-index: 1;
56
+ `;
57
+ const Branch = styled.div`
58
+ position: absolute;
59
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
60
+ top: 17px;
61
+ width: 11px;
62
+ height: 1px;
63
+ background-color: #c5c5c5;
64
+ `;
65
+ export { Branch, Cell, Heading, Row, SectionDivider, Tree, Wrap };
66
+ //# sourceMappingURL=ProductTechSpecs.styles.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTechSpecs.styles.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n grid-template-columns: 170px 1fr;\n }\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n // Cell is a child and its the first item on the row.\n $isChildRowFirstCell?: boolean;\n}>`\n padding: 8px 28px 8px 0;\n font-size: 14px;\n line-height: 20px;\n color: #50565e;\n ${({ $isChildRowFirstCell }) => $isChildRowFirstCell && \"margin-left: 24px;\"}\n`;\n\nexport const Tree = styled.div<{\n $isLast: boolean;\n}>`\n ${({ $isLast }) => ($isLast ? \"height: 18px\" : \"height: 100%\")};\n position: absolute;\n top: 0;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n width: 1px;\n background-color: #c5c5c5;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1;\n`;\n\nexport const Branch = styled.div`\n position: absolute;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n top: 17px;\n width: 11px;\n height: 1px;\n background-color: #c5c5c5;\n`;\n"],"names":["TABLE_LEFT_MARGIN","TREE_LEFT_MARGIN","Wrap","styled","div","Row","BREAKPOINTS","MOBILE_AND_DOWN","Heading","SectionDivider","Cell","$isChildRowFirstCell","Tree","$isLast","Branch"],"mappings":";;;AAIA,MAAMA,iBAAoB,GAAA,KAAA;AAC1B,MAAMC,gBAAmB,GAAA,KAAA;AAElB,MAAMC,OAAOC,MAAO,CAAAC,GAAA,EAAA;AAEpB,MAAMC,MAAMF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAORJ,iBAAiB;AAAA;AAAA,WAExBM,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAK/B,MAAMC,UAAUL,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASvB,MAAMK,iBAAiBN,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO9B,MAAMM,OAAOP,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQvB,CAAC;EAAEO;CAAqB,KAAMA,wBAAwB,oBAAoB;AAAA,CAAA;AAGvE,MAAMC,OAAOT,MAAO,CAAAC,GAAA;AAAA,IAGvB,CAAC;EAAES;AAAA,CAAe,KAAAA,OAAA,GAAU,iBAAiB,cAAe;AAAA;AAAA;AAAA,eAGjDb,iBAAiB,MAAMC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS/C,MAAMa,SAASX,MAAO,CAAAC,GAAA;AAAA;AAAA,eAEdJ,iBAAiB,MAAMC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -0,0 +1,12 @@
1
+ export type ProductTechSpecsProps = {
2
+ sections: Array<{
3
+ id: string;
4
+ label: string;
5
+ features: Array<{
6
+ id: string;
7
+ value?: string;
8
+ label: string;
9
+ parentId: string | null;
10
+ }>;
11
+ }>;
12
+ };
@@ -0,0 +1 @@
1
+ export { ProductTechSpecs } from "./ProductTechSpecs";
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var ProductTechSpecs = require('./ProductTechSpecs.js');
4
+ "use strict";
5
+ exports.ProductTechSpecs = ProductTechSpecs.ProductTechSpecs;
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,3 @@
1
+ export { ProductTechSpecs } from './ProductTechSpecs.mjs';
2
+ "use strict";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var optionIcons = require('../../../constants/optionIcons.js');
6
6
  var asset = require('../../../utils/asset.js');
7
7
  require('../../ButtonGroup/index.js');
@@ -15,7 +15,7 @@ const ProductWizardOptions = function ProductWizardOptions2({
15
15
  onlyIcons,
16
16
  className
17
17
  }) {
18
- const getOptionIcon = react.useCallback((optionSlug, optionValueSlug) => {
18
+ const getOptionIcon = React.useCallback((optionSlug, optionValueSlug) => {
19
19
  const option = optionSlug.toLowerCase();
20
20
  const value = optionValueSlug.toLowerCase();
21
21
  const icon = optionIcons.OPTION_ICONS[option]?.[value];
@@ -24,7 +24,7 @@ const ProductWizardOptions = function ProductWizardOptions2({
24
24
  }
25
25
  return asset.imageSrc(icon);
26
26
  }, []);
27
- const getItemsWithIcons = react.useCallback(option => option.values.map(({
27
+ const getItemsWithIcons = React.useCallback(option => option.values.map(({
28
28
  id,
29
29
  title,
30
30
  slug,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../assets/icons/wizard/index.js');
6
6
  require('../NormalisedImage/index.js');
7
7
  require('../ProductWizardFootnotes/index.js');
@@ -43,7 +43,7 @@ const ProductWizard = function ProductWizard2({
43
43
  updateQuantity,
44
44
  translations
45
45
  }) {
46
- const addToCartBtnText = react.useMemo(() => {
46
+ const addToCartBtnText = React.useMemo(() => {
47
47
  if (isVariantSoldOut) {
48
48
  return translations.addToCartButton.soldOut;
49
49
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../assets/icons/payment-apple-pay.svg.js');
6
6
  require('../../assets/icons/payment-card.svg.js');
7
7
  require('../../assets/icons/payment-google-pay.svg.js');
@@ -77,7 +77,7 @@ const ProductWizardFootnotes = ({
77
77
  availablePaymentMethods,
78
78
  renderImage
79
79
  }) => {
80
- const limitErrorNode = react.useMemo(() => {
80
+ const limitErrorNode = React.useMemo(() => {
81
81
  if (limitsDisabled) {
82
82
  return;
83
83
  }
@@ -101,7 +101,7 @@ const ProductWizardFootnotes = ({
101
101
  }
102
102
  return void 0;
103
103
  }, [limitsDisabled, requiresLogin, maxRelevantLimitAddToCartQuantity, showLimitError, translations.errors.limitedToBuy, translations.errors.limitReached, translations.errors.limitErrorPer]);
104
- const getCardIcons = react.useCallback(() => {
104
+ const getCardIcons = React.useCallback(() => {
105
105
  const hasPaymentMethods = availablePaymentMethods && Object.keys(availablePaymentMethods).filter(item => {
106
106
  return !!availablePaymentMethods[item];
107
107
  }).length > 0;
@@ -119,7 +119,7 @@ const ProductWizardFootnotes = ({
119
119
  })
120
120
  });
121
121
  }, [availablePaymentMethods, renderImage]);
122
- const footnotes = react.useMemo(() => /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
122
+ const footnotes = React.useMemo(() => /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
123
123
  children: [getCardIcons(), translations?.footnotes?.shipping?.loading ? /* @__PURE__ */jsxRuntime.jsx(ProductWizardFootnotes_styles.SkeletonFootnote, {
124
124
  maxWidth: 120
125
125
  }) : translations?.footnotes?.shipping?.value && /* @__PURE__ */jsxRuntime.jsxs(ProductWizardFootnotes_styles.IconTextWrap, {
@@ -144,7 +144,7 @@ const ProductWizardFootnotes = ({
144
144
  })]
145
145
  })]
146
146
  }), [getCardIcons, translations.footnotes.shipping?.loading, translations.footnotes.shipping.value, translations.footnotes.warranty]);
147
- const hasFootnotes = react.useMemo(() => !!footnotes.props.children.filter(child => !!child).length, [footnotes.props.children]);
147
+ const hasFootnotes = React.useMemo(() => !!footnotes.props.children.filter(child => !!child).length, [footnotes.props.children]);
148
148
  if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {
149
149
  return null;
150
150
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var theme = require('../../constants/theme.js');
6
6
  "use strict";
7
7
  const ProgressCircle = ({
@@ -13,9 +13,9 @@ const ProgressCircle = ({
13
13
  backgroundColor = theme.theme.colors.white,
14
14
  className
15
15
  }) => {
16
- const radius = react.useMemo(() => (diameter - strokeWidth) / 2, [diameter, strokeWidth]);
17
- const circumference = react.useMemo(() => radius * 2 * Math.PI, [radius]);
18
- const strokeDashoffset = react.useMemo(() => circumference - (value ? value / 100 : 0) * circumference, [circumference, value]);
16
+ const radius = React.useMemo(() => (diameter - strokeWidth) / 2, [diameter, strokeWidth]);
17
+ const circumference = React.useMemo(() => radius * 2 * Math.PI, [radius]);
18
+ const strokeDashoffset = React.useMemo(() => circumference - (value ? value / 100 : 0) * circumference, [circumference, value]);
19
19
  return /* @__PURE__ */jsxRuntime.jsxs("svg", {
20
20
  className,
21
21
  width: diameter,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../Button/index.js');
6
6
  var QuantityControls_styles = require('./QuantityControls.styles.js');
7
7
  var CartButton = require('../Button/CartButton.js');
@@ -16,15 +16,15 @@ const QuantityControls = function QuantityControls2({
16
16
  cartButton,
17
17
  allowZero
18
18
  }) {
19
- const handleOnUpdateQuantity = react.useCallback(e => {
19
+ const handleOnUpdateQuantity = React.useCallback(e => {
20
20
  const value = Math.max(0, parseInt(e.target.value) || 0);
21
21
  onUpdateQuantity(value);
22
22
  }, [onUpdateQuantity]);
23
- const handleOnAddToCart = react.useCallback(() => {
23
+ const handleOnAddToCart = React.useCallback(() => {
24
24
  if (!allowZero && quantity < 1) return;
25
- onAddToCart();
25
+ onAddToCart?.();
26
26
  }, [allowZero, onAddToCart, quantity]);
27
- const cartButtonDisabled = react.useMemo(() => {
27
+ const cartButtonDisabled = React.useMemo(() => {
28
28
  return disabled || !allowZero && quantity < 1 || cartButton?.disabled;
29
29
  }, [allowZero, cartButton?.disabled, disabled, quantity]);
30
30
  return /* @__PURE__ */jsxRuntime.jsxs(QuantityControls_styles.Wrap, {
@@ -35,7 +35,7 @@ const QuantityControls = function QuantityControls2({
35
35
  onUpdateQuantity: handleOnUpdateQuantity,
36
36
  onIncreaseQuantity: () => onUpdateQuantity(quantity + 1),
37
37
  onDecreaseQuantity: () => onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)
38
- }), /* @__PURE__ */jsxRuntime.jsx(CartButton.CartButton, {
38
+ }), onAddToCart && /* @__PURE__ */jsxRuntime.jsx(CartButton.CartButton, {
39
39
  "data-test-id": "add-to-cart-btn",
40
40
  variant: "primary",
41
41
  ...cartButton,
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityControls.js","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","vari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,KAClBvB,gBAAA,CAAiBD,WAAW,CAAI,GAAAA,QAAA,GAAW,IAAI,CAAC;IAAA,CAEpD,CAAA,EAAA,eAEFoB,UAAA,CAAAA,GAAA,CAACK,UAAA,CAAAA,UAAA,EAAA;MACC,cAAa,EAAA,iBAAA;MACbC,OAAQ,EAAA,SAAA;MACP,GAAGtB,UAAA;MACJL,QAAU,EAAAgB,kBAAA;MACVY,OAAA,EAAUnB,CAAM,IAAA;QACdA,CAAA,CAAEoB,eAAgB,CAAA,CAAA;QACAd,iBAAA,EAAA;MACpB;IAAA,CACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"QuantityControls.js","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart?.();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n {onAddToCart && (\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n )}\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,KAAA,CAAAA,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,KAAAA,CAAAA,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAElBE,WAAA,IAAA;EACb,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqBC,KAAAA,CAAAA,QAAQ,MAAM;IACvC,OAAOjB,QAAa,IAAA,CAACM,SAAa,IAAAL,QAAA,GAAW,KAAMI,UAAY,EAAAL,QAAA;EAAA,GAC9D,CAACM,SAAA,EAAWD,YAAYL,QAAU,EAAAA,QAAA,EAAUC,QAAQ,CAAC,CAAA;EAKxD,OAAA,eACGiB,eAAA,CAAAC,uBAAAA,CAAAA,IAAA,EAAA;IAAOpB,SACL;IAAAqB,QAAA,EAAA,CAAA,CAAChB,iBACA,IAAA,eAAAiB,UAAA,CAAAA,GAAA,CAACC,uBAAE,CAAAC,aAAA,EAAF;MACCvB,QAAA;MACAC,QAAA;MACAC,gBAAkB,EAAAK,sBAAA;MAClBiB,kBAAoB,EAAAA,CAAA,KAAMtB,gBAAiB,CAAAD,QAAA,GAAW,CAAC,CAAA;MACvDwB,oBAAoBA,CAAA,KAClBvB,gBAAA,CAAiBD,WAAW,CAAI,GAAAA,QAAA,GAAW,IAAI,CAAC;IAAA,CAEpD,CAAA,EAEDE,WACC,mBAAAkB,UAAA,CAAAA,GAAA,CAACK,UAAA,CAAAA,UAAA,EAAA;MACC,cAAa,EAAA,iBAAA;MACbC,OAAQ,EAAA,SAAA;MACP,GAAGtB,UAAA;MACJL,QAAU,EAAAgB,kBAAA;MACVY,OAAA,EAAUnB,CAAM,IAAA;QACdA,CAAA,CAAEoB,eAAgB,CAAA,CAAA;QACAd,iBAAA,EAAA;MACpB;IAAA,CACF,CAAA;EAEJ,CAAA,CAAA;AAEJ,CAAA;"}
@@ -20,7 +20,7 @@ const QuantityControls = function QuantityControls2({
20
20
  }, [onUpdateQuantity]);
21
21
  const handleOnAddToCart = useCallback(() => {
22
22
  if (!allowZero && quantity < 1) return;
23
- onAddToCart();
23
+ onAddToCart?.();
24
24
  }, [allowZero, onAddToCart, quantity]);
25
25
  const cartButtonDisabled = useMemo(() => {
26
26
  return disabled || !allowZero && quantity < 1 || cartButton?.disabled;
@@ -33,7 +33,7 @@ const QuantityControls = function QuantityControls2({
33
33
  onUpdateQuantity: handleOnUpdateQuantity,
34
34
  onIncreaseQuantity: () => onUpdateQuantity(quantity + 1),
35
35
  onDecreaseQuantity: () => onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)
36
- }), /* @__PURE__ */jsx(CartButton, {
36
+ }), onAddToCart && /* @__PURE__ */jsx(CartButton, {
37
37
  "data-test-id": "add-to-cart-btn",
38
38
  variant: "primary",
39
39
  ...cartButton,
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityControls.mjs","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAEpBE,WAAA,EAAA;EACX,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqBC,QAAQ,MAAM;IACvC,OAAOjB,QAAa,IAAA,CAACM,SAAa,IAAAL,QAAA,GAAW,KAAMI,UAAY,EAAAL,QAAA;EAAA,GAC9D,CAACM,SAAA,EAAWD,YAAYL,QAAU,EAAAA,QAAA,EAAUC,QAAQ,CAAC,CAAA;EAKxD,OAAA,eACGiB,IAAA,CAAAC,IAAA,EAAA;IAAOpB,SACL;IAAAqB,QAAA,EAAA,CAAA,CAAChB,iBACA,IAAA,eAAAiB,GAAA,CAACC,aAAE,EAAF;MACCtB,QAAA;MACAC,QAAA;MACAC,gBAAkB,EAAAK,sBAAA;MAClBgB,kBAAoB,EAAAA,CAAA,KAAMrB,gBAAiB,CAAAD,QAAA,GAAW,CAAC,CAAA;MACvDuB,oBAAoBA,CAAA,KAClBtB,gBAAA,CAAiBD,WAAW,CAAI,GAAAA,QAAA,GAAW,IAAI,CAAC;IAAA,CAEpD,CAAA,EAAA,eAEFoB,GAAA,CAACI,UAAA,EAAA;MACC,cAAa,EAAA,iBAAA;MACbC,OAAQ,EAAA,SAAA;MACP,GAAGrB,UAAA;MACJL,QAAU,EAAAgB,kBAAA;MACVW,OAAA,EAAUlB,CAAM,IAAA;QACdA,CAAA,CAAEmB,eAAgB,CAAA,CAAA;QACAb,iBAAA,EAAA;MACpB;IAAA,CACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"QuantityControls.mjs","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart?.();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n {onAddToCart && (\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n )}\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAElBE,WAAA,IAAA;EACb,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqB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