@ubnt/store.core 9.64.0-beta.0 → 9.64.0-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 (1100) hide show
  1. package/CHANGELOG.md +133 -613
  2. package/lib/_virtual/_virtual_multi-entry.js +15 -25
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -13
  5. package/lib/apis/smartcat.d.ts +12 -2
  6. package/lib/apis/smartcat.js +27 -4
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +27 -4
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/assets/arrow2.svg +3 -0
  11. package/lib/assets/cart-secondary.svg +5 -0
  12. package/lib/assets/close2.svg +2 -3
  13. package/lib/assets/close3.svg +3 -2
  14. package/lib/assets/express.jpg +0 -0
  15. package/lib/assets/express2.jpg +0 -0
  16. package/lib/assets/express7.jpg +0 -0
  17. package/lib/assets/express72.jpg +0 -0
  18. package/lib/assets/icon-location-pin.svg +5 -0
  19. package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
  20. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  21. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  22. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  23. package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
  24. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  25. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  26. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  27. package/lib/assets/logoUnifi.svg +10 -2
  28. package/lib/assets/minus4.svg +8 -8
  29. package/lib/assets/minus5.svg +8 -8
  30. package/lib/assets/payment-apple-pay.svg +12 -1
  31. package/lib/assets/payment-card.svg +12 -1
  32. package/lib/assets/payment-google-pay.svg +1 -1
  33. package/lib/assets/plus5.svg +9 -9
  34. package/lib/assets/plus6.svg +9 -9
  35. package/lib/assets/poe2.svg +2 -3
  36. package/lib/assets/poe3.svg +3 -2
  37. package/lib/assets/port.svg +2 -4
  38. package/lib/assets/port2.svg +4 -2
  39. package/lib/assets/udmPro.jpg +0 -0
  40. package/lib/assets/udmPro2.jpg +0 -0
  41. package/lib/assets/udmProMax.jpg +0 -0
  42. package/lib/assets/udmProMax2.jpg +0 -0
  43. package/lib/assets/udmProSpecial.jpg +0 -0
  44. package/lib/assets/udmProSpecial2.jpg +0 -0
  45. package/lib/assets/udr2.jpg +0 -0
  46. package/lib/assets/udr3.jpg +0 -0
  47. package/lib/assets/udr7.jpg +0 -0
  48. package/lib/assets/udr72.jpg +0 -0
  49. package/lib/components/Accordion/Accordion.js +13 -13
  50. package/lib/components/Accordion/Accordion.js.map +1 -1
  51. package/lib/components/Accordion/Accordion.mjs +9 -9
  52. package/lib/components/Accordion/Accordion.mjs.map +1 -1
  53. package/lib/components/Accordion/Accordion.styles.d.ts +18 -18
  54. package/lib/components/Accordion/Accordion.styles.js +22 -28
  55. package/lib/components/Accordion/Accordion.styles.js.map +1 -1
  56. package/lib/components/Accordion/Accordion.styles.mjs +22 -28
  57. package/lib/components/Accordion/Accordion.styles.mjs.map +1 -1
  58. package/lib/components/AppDownloadBanner/AppDownloadBanner.styles.d.ts +21 -23
  59. package/lib/components/Avatar/Avatar.js +5 -6
  60. package/lib/components/Avatar/Avatar.js.map +1 -1
  61. package/lib/components/Avatar/Avatar.mjs +3 -4
  62. package/lib/components/Avatar/Avatar.mjs.map +1 -1
  63. package/lib/components/Avatar/Avatar.styles.d.ts +2 -2
  64. package/lib/components/BackInStock/BackInStock.styles.d.ts +7 -12
  65. package/lib/components/Badge/Badge.styles.d.ts +2 -2
  66. package/lib/components/Banner/Banner.js +4 -4
  67. package/lib/components/Banner/Banner.js.map +1 -1
  68. package/lib/components/Banner/Banner.mjs +4 -4
  69. package/lib/components/Banner/Banner.mjs.map +1 -1
  70. package/lib/components/Banner/Banner.styles.d.ts +16 -16
  71. package/lib/components/Banner/Banner.styles.js +9 -9
  72. package/lib/components/Banner/Banner.styles.js.map +1 -1
  73. package/lib/components/Banner/Banner.styles.mjs +9 -9
  74. package/lib/components/Banner/Banner.styles.mjs.map +1 -1
  75. package/lib/components/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -2
  76. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.styles.d.ts +9 -9
  77. package/lib/components/Button/Button.js +12 -5
  78. package/lib/components/Button/Button.js.map +1 -1
  79. package/lib/components/Button/Button.mjs +8 -1
  80. package/lib/components/Button/Button.mjs.map +1 -1
  81. package/lib/components/Button/Button.styles.d.ts +4 -4
  82. package/lib/components/Button/CartButton.d.ts +3 -1
  83. package/lib/components/Button/CartButton.js +11 -6
  84. package/lib/components/Button/CartButton.js.map +1 -1
  85. package/lib/components/Button/CartButton.mjs +8 -4
  86. package/lib/components/Button/CartButton.mjs.map +1 -1
  87. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  88. package/lib/components/ButtonGroup/ButtonGroup.js +11 -4
  89. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  90. package/lib/components/ButtonGroup/ButtonGroup.mjs +11 -4
  91. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  92. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +12 -8
  93. package/lib/components/ButtonGroup/ButtonGroup.styles.js +46 -6
  94. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  95. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +46 -6
  96. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  97. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  98. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -5
  99. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  100. package/lib/components/CardSection/Card/Card.js +16 -16
  101. package/lib/components/CardSection/Card/Card.js.map +1 -1
  102. package/lib/components/CardSection/Card/Card.mjs +10 -10
  103. package/lib/components/CardSection/Card/Card.mjs.map +1 -1
  104. package/lib/components/CardSection/Card/Card.styles.d.ts +21 -21
  105. package/lib/components/CardSection/Card/Card.styles.js +22 -22
  106. package/lib/components/CardSection/Card/Card.styles.js.map +1 -1
  107. package/lib/components/CardSection/Card/Card.styles.mjs +22 -22
  108. package/lib/components/CardSection/Card/Card.styles.mjs.map +1 -1
  109. package/lib/components/CardSection/CardSection.js +2 -2
  110. package/lib/components/CardSection/CardSection.styles.d.ts +4 -4
  111. package/lib/components/CarouselGallery/CarouselGallery.styles.d.ts +11 -11
  112. package/lib/components/CartIcon/CartIcon.js +4 -4
  113. package/lib/components/CartIcon/CartIcon.js.map +1 -1
  114. package/lib/components/CartIcon/CartIcon.mjs +2 -2
  115. package/lib/components/CartIcon/CartIcon.mjs.map +1 -1
  116. package/lib/components/CartIcon/CartIcon.styles.d.ts +5 -5
  117. package/lib/components/CartIcon/CartIcon.styles.js +4 -4
  118. package/lib/components/CartIcon/CartIcon.styles.js.map +1 -1
  119. package/lib/components/CartIcon/CartIcon.styles.mjs +4 -4
  120. package/lib/components/CartIcon/CartIcon.styles.mjs.map +1 -1
  121. package/lib/components/CartSummary/CartSummary.js +1 -1
  122. package/lib/components/CartSummary/CartSummary.js.map +1 -1
  123. package/lib/components/CartSummary/CartSummary.mjs +1 -1
  124. package/lib/components/CartSummary/CartSummary.mjs.map +1 -1
  125. package/lib/components/CartSummary/CartSummary.styles.d.ts +13 -19
  126. package/lib/components/CartSummary/CartSummary.styles.js +2 -2
  127. package/lib/components/CartSummary/CartSummary.styles.js.map +1 -1
  128. package/lib/components/CartSummary/CartSummary.styles.mjs +2 -2
  129. package/lib/components/CartSummary/CartSummary.styles.mjs.map +1 -1
  130. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +8 -6
  131. package/lib/components/CategoryTabs/CategoryTabs.styles.js +9 -6
  132. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  133. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +8 -7
  134. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  135. package/lib/components/Checkbox/Checkbox.js +4 -7
  136. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  137. package/lib/components/Checkbox/Checkbox.mjs +0 -3
  138. package/lib/components/Checkbox/Checkbox.mjs.map +1 -1
  139. package/lib/components/Checkbox/Checkbox.styles.d.ts +3 -3
  140. package/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
  141. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  142. package/lib/components/CloserLookSection/CloserLookSection.styles.d.ts +8 -8
  143. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  144. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.d.ts +3 -3
  145. package/lib/components/Compare/Compare.styles.d.ts +34 -36
  146. package/lib/components/CompareChart/CompareChart.styles.d.ts +36 -40
  147. package/lib/components/CompareSection/CompareSection.styles.d.ts +16 -18
  148. package/lib/components/Container/Container.d.ts +1 -1
  149. package/lib/components/Container/Container.js +5 -4
  150. package/lib/components/Container/Container.js.map +1 -1
  151. package/lib/components/Container/Container.mjs +5 -4
  152. package/lib/components/Container/Container.mjs.map +1 -1
  153. package/lib/components/Container/Container.styles.d.ts +3 -3
  154. package/lib/components/Container/index.stories.d.ts +5 -5
  155. package/lib/components/CustomImage/CustomImage.js +12 -12
  156. package/lib/components/CustomImage/CustomImage.styles.d.ts +12 -12
  157. package/lib/components/DeploymentGallery/DeploymentGallery.styles.d.ts +4 -4
  158. package/lib/components/Explore/Explore.js +5 -5
  159. package/lib/components/Explore/Explore.styles.d.ts +28 -36
  160. package/lib/components/Explore/Explore.styles.js +6 -6
  161. package/lib/components/Explore/Explore.styles.js.map +1 -1
  162. package/lib/components/Explore/Explore.styles.mjs +6 -6
  163. package/lib/components/Explore/Explore.styles.mjs.map +1 -1
  164. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.d.ts +3 -5
  165. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  166. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.d.ts +15 -15
  167. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
  168. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  169. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.d.ts +22 -22
  170. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  171. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  172. package/lib/components/Footer/Footer.js +3 -2
  173. package/lib/components/Footer/Footer.js.map +1 -1
  174. package/lib/components/Footer/Footer.mjs +1 -0
  175. package/lib/components/Footer/Footer.mjs.map +1 -1
  176. package/lib/components/Footer/Footer.styles.d.ts +34 -39
  177. package/lib/components/Footer/Footer.styles.js +1 -1
  178. package/lib/components/Footer/Footer.styles.js.map +1 -1
  179. package/lib/components/Footer/Footer.styles.mjs +1 -1
  180. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  181. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  182. package/lib/components/Gallery/Gallery.context.js +17 -17
  183. package/lib/components/Gallery/Gallery.js +10 -10
  184. package/lib/components/Gallery/Gallery.js.map +1 -1
  185. package/lib/components/Gallery/Gallery.mjs +1 -1
  186. package/lib/components/Gallery/Gallery.mjs.map +1 -1
  187. package/lib/components/Gallery/Gallery.styles.d.ts +8 -12
  188. package/lib/components/Gallery/Gallery.styles.js +1 -3
  189. package/lib/components/Gallery/Gallery.styles.js.map +1 -1
  190. package/lib/components/Gallery/Gallery.styles.mjs +1 -3
  191. package/lib/components/Gallery/Gallery.styles.mjs.map +1 -1
  192. package/lib/components/Gallery/GalleryControls/GalleryControls.js +5 -5
  193. package/lib/components/Gallery/GalleryControls/GalleryControls.js.map +1 -1
  194. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs +1 -1
  195. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs.map +1 -1
  196. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.d.ts +9 -9
  197. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js +2 -2
  198. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js.map +1 -1
  199. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs +2 -2
  200. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs.map +1 -1
  201. package/lib/components/Gallery/GalleryItem/GalleryItem.js +13 -13
  202. package/lib/components/Gallery/GalleryItem/GalleryItem.js.map +1 -1
  203. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs +5 -5
  204. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs.map +1 -1
  205. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.d.ts +10 -10
  206. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js +11 -11
  207. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js.map +1 -1
  208. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs +11 -11
  209. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs.map +1 -1
  210. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  211. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.d.ts +8 -8
  212. package/lib/components/GradientButton/GradientButton.d.ts +1 -1
  213. package/lib/components/GradientButton/GradientButton.js +0 -2
  214. package/lib/components/GradientButton/GradientButton.js.map +1 -1
  215. package/lib/components/GradientButton/GradientButton.mjs +0 -2
  216. package/lib/components/GradientButton/GradientButton.mjs.map +1 -1
  217. package/lib/components/GradientButton/GradientButton.styles.d.ts +4 -4
  218. package/lib/components/GradientButton/GradientButton.styles.js +6 -6
  219. package/lib/components/GradientButton/GradientButton.styles.js.map +1 -1
  220. package/lib/components/GradientButton/GradientButton.styles.mjs +6 -6
  221. package/lib/components/GradientButton/GradientButton.styles.mjs.map +1 -1
  222. package/lib/components/GridGallery/GridGallery.js +9 -9
  223. package/lib/components/GridGallery/GridGallery.js.map +1 -1
  224. package/lib/components/GridGallery/GridGallery.mjs +1 -1
  225. package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
  226. package/lib/components/GridGallery/GridGallery.styles.d.ts +13 -13
  227. package/lib/components/GridGallery/GridGallery.styles.js +2 -2
  228. package/lib/components/GridGallery/GridGallery.styles.js.map +1 -1
  229. package/lib/components/GridGallery/GridGallery.styles.mjs +2 -2
  230. package/lib/components/GridGallery/GridGallery.styles.mjs.map +1 -1
  231. package/lib/components/GridGallery/GridModal/GridModal.js +7 -7
  232. package/lib/components/GridGallery/GridModal/GridModal.js.map +1 -1
  233. package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
  234. package/lib/components/GridGallery/GridModal/GridModal.mjs.map +1 -1
  235. package/lib/components/GridGallery/GridModal/GridModal.styles.d.ts +7 -7
  236. package/lib/components/GridGallery/GridModal/GridModal.styles.js +4 -4
  237. package/lib/components/GridGallery/GridModal/GridModal.styles.js.map +1 -1
  238. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs +4 -4
  239. package/lib/components/GridGallery/GridModal/GridModal.styles.mjs.map +1 -1
  240. package/lib/components/Header/AccountFrame/AccountFrame.js +12 -12
  241. package/lib/components/Header/AccountFrame/AccountFrame.js.map +1 -1
  242. package/lib/components/Header/AccountFrame/AccountFrame.mjs +1 -1
  243. package/lib/components/Header/AccountFrame/AccountFrame.mjs.map +1 -1
  244. package/lib/components/Header/AccountFrame/AccountFrame.styles.d.ts +15 -19
  245. package/lib/components/Header/AccountFrame/AccountFrame.styles.js +2 -2
  246. package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
  247. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs +2 -2
  248. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
  249. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  250. package/lib/components/Header/AccountFrame/Mobile/Mobile.styles.d.ts +3 -3
  251. package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
  252. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  253. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  254. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  255. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +12 -30
  256. package/lib/components/Header/CartModal/CartModal.styles.d.ts +13 -15
  257. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  258. package/lib/components/Header/CartModal/Empty/Empty.styles.d.ts +1 -1
  259. package/lib/components/Header/CartModal/Item/Item.styles.d.ts +10 -10
  260. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  261. package/lib/components/Header/CartModalV2/CartModal.styles.d.ts +21 -23
  262. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  263. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +13 -13
  264. package/lib/components/Header/Header.js +40 -40
  265. package/lib/components/Header/Header.js.map +1 -1
  266. package/lib/components/Header/Header.mjs +6 -6
  267. package/lib/components/Header/Header.mjs.map +1 -1
  268. package/lib/components/Header/Header.stories.d.ts +111 -0
  269. package/lib/components/Header/Header.styles.d.ts +40 -49
  270. package/lib/components/Header/Header.styles.js +11 -33
  271. package/lib/components/Header/Header.styles.js.map +1 -1
  272. package/lib/components/Header/Header.styles.mjs +11 -32
  273. package/lib/components/Header/Header.styles.mjs.map +1 -1
  274. package/lib/components/Header/Header.types.d.ts +29 -5
  275. package/lib/components/Header/Header.types.js +2 -1
  276. package/lib/components/Header/Header.types.js.map +1 -1
  277. package/lib/components/Header/Header.types.mjs +2 -1
  278. package/lib/components/Header/Header.types.mjs.map +1 -1
  279. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  280. package/lib/components/Header/IsolatedHeader.js +50 -50
  281. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  282. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  283. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  284. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  285. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.d.ts +17 -14
  286. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js +51 -0
  287. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
  288. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs +47 -1
  289. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs.map +1 -1
  290. package/lib/components/Header/LanguageFrame/Mobile/Mobile.styles.d.ts +3 -3
  291. package/lib/components/Header/LinksModal/LinksModal.styles.d.ts +4 -4
  292. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  293. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  294. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  295. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  296. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  297. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  298. package/lib/components/Header/LogoIcon/index.js +6 -0
  299. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  300. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  301. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  302. package/lib/components/Header/MenuItem/MenuItem.js +5 -4
  303. package/lib/components/Header/MenuItem/MenuItem.js.map +1 -1
  304. package/lib/components/Header/MenuItem/MenuItem.mjs +5 -4
  305. package/lib/components/Header/MenuItem/MenuItem.mjs.map +1 -1
  306. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +15 -15
  307. package/lib/components/Header/MenuItem/MenuItem.styles.js +11 -11
  308. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  309. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +11 -11
  310. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  311. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  312. package/lib/components/Header/Navigation/Carousel/Carousel.js +11 -11
  313. package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
  314. package/lib/components/Header/Navigation/Carousel/Carousel.mjs +6 -6
  315. package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
  316. package/lib/components/Header/Navigation/Carousel/Carousel.styles.d.ts +20 -20
  317. package/lib/components/Header/Navigation/Carousel/Carousel.styles.js +16 -16
  318. package/lib/components/Header/Navigation/Carousel/Carousel.styles.js.map +1 -1
  319. package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs +16 -16
  320. package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs.map +1 -1
  321. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +19 -19
  322. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js.map +1 -1
  323. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs +7 -7
  324. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs.map +1 -1
  325. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +23 -29
  326. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +19 -19
  327. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  328. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +19 -19
  329. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  330. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +15 -15
  331. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  332. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +9 -9
  333. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  334. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +36 -40
  335. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js +18 -18
  336. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
  337. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs +18 -18
  338. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs.map +1 -1
  339. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  340. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +124 -117
  341. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  342. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +119 -112
  343. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  344. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +14 -7
  345. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  346. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  347. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  348. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  349. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  350. package/lib/components/Header/Overlay/Overlay.js +3 -3
  351. package/lib/components/Header/Overlay/Overlay.styles.d.ts +2 -2
  352. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  353. package/lib/components/Header/ProHeader/ProHeader.js +290 -189
  354. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  355. package/lib/components/Header/ProHeader/ProHeader.mjs +270 -171
  356. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  357. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +49 -40
  358. package/lib/components/Header/ProHeader/ProHeader.styles.js +206 -68
  359. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  360. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +195 -67
  361. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  362. package/lib/components/Header/SearchTab/SearchTab.styles.d.ts +3 -3
  363. package/lib/components/Header/translations/ar.json.js +4 -1
  364. package/lib/components/Header/translations/ar.json.js.map +1 -1
  365. package/lib/components/Header/translations/ar.json.mjs +4 -2
  366. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  367. package/lib/components/Header/translations/de.json.js +4 -1
  368. package/lib/components/Header/translations/de.json.js.map +1 -1
  369. package/lib/components/Header/translations/de.json.mjs +4 -2
  370. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  371. package/lib/components/Header/translations/el.json.js +4 -1
  372. package/lib/components/Header/translations/el.json.js.map +1 -1
  373. package/lib/components/Header/translations/el.json.mjs +4 -2
  374. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  375. package/lib/components/Header/translations/en.json.js +7 -1
  376. package/lib/components/Header/translations/en.json.js.map +1 -1
  377. package/lib/components/Header/translations/en.json.mjs +6 -2
  378. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  379. package/lib/components/Header/translations/es.json.js +4 -1
  380. package/lib/components/Header/translations/es.json.js.map +1 -1
  381. package/lib/components/Header/translations/es.json.mjs +4 -2
  382. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  383. package/lib/components/Header/translations/fr.json.js +4 -1
  384. package/lib/components/Header/translations/fr.json.js.map +1 -1
  385. package/lib/components/Header/translations/fr.json.mjs +4 -2
  386. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  387. package/lib/components/Header/translations/it.json.js +4 -1
  388. package/lib/components/Header/translations/it.json.js.map +1 -1
  389. package/lib/components/Header/translations/it.json.mjs +4 -2
  390. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  391. package/lib/components/Header/translations/ja.json.js +4 -1
  392. package/lib/components/Header/translations/ja.json.js.map +1 -1
  393. package/lib/components/Header/translations/ja.json.mjs +4 -2
  394. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  395. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  396. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  397. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  398. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  399. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  400. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  401. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  402. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  403. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  404. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  405. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  406. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  407. package/lib/components/Hero/Hero.js +5 -5
  408. package/lib/components/Hero/Hero.styles.d.ts +28 -28
  409. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +12 -12
  410. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  411. package/lib/components/HeroVideo/HeroVideo.styles.d.ts +7 -7
  412. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +14 -14
  413. package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
  414. package/lib/components/ImageCarousel/ImageCarousel.styles.d.ts +34 -38
  415. package/lib/components/ImageCarousel/ImageCarousel.styles.js +4 -5
  416. package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
  417. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs +4 -5
  418. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
  419. package/lib/components/ImageModal/ImageModal.styles.d.ts +6 -8
  420. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  421. package/lib/components/ImageSequence/ImageSequence.styles.d.ts +8 -8
  422. package/lib/components/InputSelect/InputSelect.styles.d.ts +8 -4
  423. package/lib/components/LandingPage/Block/Block.styles.d.ts +4 -4
  424. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  425. package/lib/components/LandingPage/Cards/Card/Card.styles.d.ts +17 -17
  426. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  427. package/lib/components/LandingPage/Cards/Cards.styles.d.ts +9 -9
  428. package/lib/components/LandingPage/Cards/Cards.styles.js +1 -1
  429. package/lib/components/LandingPage/Cards/Cards.styles.js.map +1 -1
  430. package/lib/components/LandingPage/Cards/Cards.styles.mjs +1 -1
  431. package/lib/components/LandingPage/Cards/Cards.styles.mjs.map +1 -1
  432. package/lib/components/LandingPage/LandingPage.js +2 -2
  433. package/lib/components/LandingPage/LandingPage.styles.d.ts +5 -5
  434. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  435. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +3 -3
  436. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  437. package/lib/components/LandingPageSearch/LandingPageSearch.styles.d.ts +2 -2
  438. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  439. package/lib/components/LandingPageSearch/Modal/Modal.styles.d.ts +22 -26
  440. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  441. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.d.ts +22 -22
  442. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  443. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +21 -23
  444. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +54 -60
  445. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +49 -57
  446. package/lib/components/LearnMoreLink/LearnMoreLink.styles.d.ts +2 -2
  447. package/lib/components/Loader/Loader.styles.d.ts +4 -4
  448. package/lib/components/Loader/Spinner/Spinner.styles.d.ts +3 -3
  449. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  450. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  451. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  452. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  453. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  454. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +4 -3
  455. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  456. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  457. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  458. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  459. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  460. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  461. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.styles.d.ts +9 -11
  462. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  463. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +25 -25
  464. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js +2 -2
  465. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js.map +1 -1
  466. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs +2 -2
  467. package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs.map +1 -1
  468. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  469. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.styles.d.ts +6 -6
  470. package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.d.ts +8 -8
  471. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  472. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.d.ts +18 -20
  473. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js +2 -2
  474. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js.map +1 -1
  475. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs +2 -2
  476. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs.map +1 -1
  477. package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.styles.d.ts +11 -11
  478. package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.d.ts +14 -14
  479. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  480. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.d.ts +24 -28
  481. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js +2 -2
  482. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js.map +1 -1
  483. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs +2 -2
  484. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs.map +1 -1
  485. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  486. package/lib/components/MicrositeHero/MicrositeHero.styles.d.ts +41 -41
  487. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  488. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.styles.d.ts +6 -6
  489. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  490. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.d.ts +15 -15
  491. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  492. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.d.ts +15 -15
  493. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.d.ts +12 -14
  494. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js +2 -2
  495. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js.map +1 -1
  496. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs +2 -2
  497. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs.map +1 -1
  498. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  499. package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.styles.d.ts +3 -5
  500. package/lib/components/MicrositeSection/Features/Features.styles.d.ts +15 -15
  501. package/lib/components/MicrositeSection/MicrositeSection.styles.d.ts +24 -24
  502. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +6 -8
  503. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  504. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.styles.d.ts +2 -2
  505. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  506. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.d.ts +17 -17
  507. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  508. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  509. package/lib/components/Microsites/MicrositeProductPage.styles.d.ts +8 -16
  510. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  511. package/lib/components/MobileModal/MobileModal.js +4 -4
  512. package/lib/components/MobileModal/MobileModal.styles.d.ts +8 -8
  513. package/lib/components/Modal/Modal.js +3 -3
  514. package/lib/components/Modal/Modal.styles.d.ts +1 -1
  515. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  516. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  517. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  518. package/lib/components/ModelCompareV3/ModelCompareV3.styles.d.ts +34 -84
  519. package/lib/components/ModelCompareV3/ModelCompareV3.styles.js +7 -8
  520. package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
  521. package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs +7 -8
  522. package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs.map +1 -1
  523. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -1
  524. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  525. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  526. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  527. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  528. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  529. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  530. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  531. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  532. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  533. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.d.ts +2 -2
  534. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  535. package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.d.ts +1 -1
  536. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  537. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.js +5 -5
  538. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
  539. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.js +5 -5
  540. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.mjs +2 -2
  541. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  542. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  543. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  544. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  545. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  546. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  547. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  548. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  549. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
  550. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
  551. package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.js +1 -1
  552. package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.mjs +2 -2
  553. package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.js +1 -1
  554. package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.mjs +2 -2
  555. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  556. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  557. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  558. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  559. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  560. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  561. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.js +1 -1
  562. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
  563. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
  564. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.mjs +2 -2
  565. package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
  566. package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
  567. package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
  568. package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
  569. package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
  570. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
  571. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
  572. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  573. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
  574. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  575. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
  576. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  577. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
  578. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  579. package/lib/components/ModelCompareV3/data/Switching.js +2 -3
  580. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  581. package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
  582. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  583. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
  584. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  585. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
  586. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  587. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  588. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  589. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  590. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  591. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
  592. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  593. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
  594. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  595. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
  596. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  597. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
  598. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  599. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
  600. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  601. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
  602. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  603. package/lib/components/ModelCompareV3/data/products/express.js +1 -1
  604. package/lib/components/ModelCompareV3/data/products/express.mjs +1 -1
  605. package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
  606. package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
  607. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
  608. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  609. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
  610. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  611. package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
  612. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  613. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
  614. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  615. package/lib/components/ModelCompareV3/data/products/professionalHd24.js +0 -7
  616. package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
  617. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +0 -7
  618. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
  619. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +0 -7
  620. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
  621. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +0 -7
  622. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
  623. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
  624. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  625. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
  626. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  627. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
  628. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  629. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
  630. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  631. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
  632. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  633. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
  634. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  635. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
  636. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  637. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
  638. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  639. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
  640. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  641. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
  642. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  643. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
  644. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  645. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
  646. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  647. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
  648. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  649. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
  650. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  651. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
  652. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  653. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
  654. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  655. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +0 -7
  656. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
  657. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +0 -7
  658. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
  659. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
  660. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  661. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
  662. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  663. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
  664. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  665. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
  666. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  667. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  668. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  669. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  670. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  671. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  672. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  673. package/lib/components/ModelCompareV3/data/products/udr.js +1 -1
  674. package/lib/components/ModelCompareV3/data/products/udr.mjs +1 -1
  675. package/lib/components/ModelCompareV3/data/products/udr7.js +1 -1
  676. package/lib/components/ModelCompareV3/data/products/udr7.mjs +1 -1
  677. package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -1
  678. package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
  679. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  680. package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
  681. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  682. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
  683. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
  684. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
  685. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
  686. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
  687. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
  688. package/lib/components/ModelCompareV3/translations/ar.json.js +10 -10
  689. package/lib/components/ModelCompareV3/translations/ar.json.mjs +10 -10
  690. package/lib/components/ModelCompareV3/translations/de.json.js +2 -2
  691. package/lib/components/ModelCompareV3/translations/de.json.mjs +2 -2
  692. package/lib/components/ModelCompareV3/translations/el.json.js +1 -1
  693. package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -1
  694. package/lib/components/ModelCompareV3/translations/en.json.js +0 -2
  695. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  696. package/lib/components/ModelCompareV3/translations/en.json.mjs +0 -2
  697. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  698. package/lib/components/ModelCompareV3/translations/es.json.js +2 -2
  699. package/lib/components/ModelCompareV3/translations/es.json.mjs +2 -2
  700. package/lib/components/ModelCompareV3/translations/fr.json.js +1 -1
  701. package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -1
  702. package/lib/components/ModelCompareV3/translations/it.json.js +1 -1
  703. package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -1
  704. package/lib/components/ModelCompareV3/translations/ja.json.js +7 -7
  705. package/lib/components/ModelCompareV3/translations/ja.json.mjs +7 -7
  706. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -1
  707. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -1
  708. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  709. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +5 -5
  710. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +5 -5
  711. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +8 -8
  712. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +8 -8
  713. package/lib/components/NewToUnifiBox/NewToUnifiBox.styles.d.ts +5 -5
  714. package/lib/components/Pagination/Pagination.js +3 -3
  715. package/lib/components/Pagination/Pagination.styles.d.ts +4 -4
  716. package/lib/components/Popover/Popover.styles.d.ts +7 -11
  717. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  718. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.d.ts +7 -7
  719. package/lib/components/ProductCard/ProductCard.js +7 -7
  720. package/lib/components/ProductCard/ProductCard.styles.d.ts +16 -16
  721. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  722. package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +37 -45
  723. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js +3 -3
  724. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js.map +1 -1
  725. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs +3 -3
  726. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs.map +1 -1
  727. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  728. package/lib/components/ProductCompare/ProductCompare.styles.d.ts +18 -18
  729. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  730. package/lib/components/ProductDetails/ProductDetails.styles.d.ts +2 -2
  731. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  732. package/lib/components/ProductGrid/ProductGrid.styles.d.ts +13 -10
  733. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  734. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.d.ts +6 -6
  735. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +9 -11
  736. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +6 -6
  737. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +7 -7
  738. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  739. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.d.ts +6 -6
  740. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +14 -14
  741. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  742. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
  743. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  744. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
  745. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  746. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  747. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  748. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
  749. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  750. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
  751. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  752. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  753. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  754. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  755. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  756. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  757. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  758. package/lib/components/ProductUpsell/ProductUpsell.styles.d.ts +18 -20
  759. package/lib/components/ProductWizard/Options/Options.js +3 -3
  760. package/lib/components/ProductWizard/Options/Options.styles.d.ts +2 -2
  761. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  762. package/lib/components/ProductWizard/ProductWizard.styles.d.ts +16 -22
  763. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +10 -10
  764. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js.map +1 -1
  765. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs +5 -5
  766. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs.map +1 -1
  767. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.d.ts +9 -9
  768. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js +1 -1
  769. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js.map +1 -1
  770. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs +1 -1
  771. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs.map +1 -1
  772. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  773. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  774. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  775. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  776. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  777. package/lib/components/QuantityControls/QuantityControls.styles.d.ts +2 -2
  778. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  779. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  780. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  781. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  782. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  783. package/lib/components/QuantityInput/QuantityInput.styles.d.ts +12 -16
  784. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  785. package/lib/components/RelatedProducts/RelatedProducts.styles.d.ts +14 -14
  786. package/lib/components/RelatedProducts/RelatedProducts.styles.js +2 -2
  787. package/lib/components/RelatedProducts/RelatedProducts.styles.js.map +1 -1
  788. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs +2 -2
  789. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs.map +1 -1
  790. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.styles.d.ts +21 -23
  791. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.styles.d.ts +16 -36
  792. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.styles.d.ts +16 -38
  793. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.styles.d.ts +1 -1
  794. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -602
  795. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  796. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -598
  797. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  798. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  799. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.styles.d.ts +6 -6
  800. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +1 -5
  801. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -4
  802. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  803. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -4
  804. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  805. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  806. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +13 -13
  807. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  808. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.d.ts +20 -20
  809. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  810. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  811. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  812. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.d.ts +6 -6
  813. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  814. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  815. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  816. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  817. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  818. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  819. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.styles.d.ts +9 -9
  820. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  821. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  822. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.styles.d.ts +1 -1
  823. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/DesignCenterBanner/DesignCenterBanner.styles.d.ts +5 -5
  824. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  825. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.styles.d.ts +10 -10
  826. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
  827. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  828. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.styles.d.ts +17 -19
  829. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  830. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  831. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  832. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  833. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +4 -4
  834. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
  835. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.styles.d.ts +16 -16
  836. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
  837. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
  838. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
  839. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
  840. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  841. package/lib/components/ResourceCalculatorV1/ResourceCalculator.styles.d.ts +3 -3
  842. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.d.ts +3 -3
  843. package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -5
  844. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  845. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -5
  846. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  847. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  848. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  849. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.styles.d.ts +3 -3
  850. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  851. package/lib/components/ScrollWrapper/ScrollWrapper.js +34 -26
  852. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  853. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  854. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  855. package/lib/components/ScrollWrapper/ScrollWrapper.styles.d.ts +14 -18
  856. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  857. package/lib/components/Search/Input/Input.d.ts +1 -1
  858. package/lib/components/Search/Input/Input.js +8 -8
  859. package/lib/components/Search/Input/Input.js.map +1 -1
  860. package/lib/components/Search/Input/Input.mjs +4 -4
  861. package/lib/components/Search/Input/Input.mjs.map +1 -1
  862. package/lib/components/Search/Input/Input.styles.d.ts +11 -13
  863. package/lib/components/Search/Input/Input.styles.js +1 -2
  864. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  865. package/lib/components/Search/Input/Input.styles.mjs +1 -2
  866. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  867. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  868. package/lib/components/Search/Modal/Modal.js +3 -3
  869. package/lib/components/Search/Modal/Modal.styles.d.ts +18 -20
  870. package/lib/components/SearchInput/Input.styles.d.ts +7 -9
  871. package/lib/components/SkeletonFootnote/SkeletonFootnote.d.ts +1 -1
  872. package/lib/components/SkeletonLoader/SkeletonCircleLoader/SkeletonCircleLoader.styles.d.ts +3 -3
  873. package/lib/components/SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader.styles.d.ts +3 -3
  874. package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.styles.d.ts +8 -8
  875. package/lib/components/StaticModal/StaticModal.styles.d.ts +2 -2
  876. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  877. package/lib/components/StorageSliders/Slider/Slider.styles.d.ts +5 -7
  878. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  879. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  880. package/lib/components/StorageSliders/StorageSliders.styles.d.ts +12 -12
  881. package/lib/components/StorybookUtils/StoryButtonColumn.d.ts +1 -1
  882. package/lib/components/StorybookUtils/StoryButtonRow.d.ts +1 -1
  883. package/lib/components/StorybookUtils/StoryWrapper.d.ts +2 -2
  884. package/lib/components/TabinationButtons/TabinationButtons.styles.d.ts +9 -9
  885. package/lib/components/Toggle/Toggle.styles.d.ts +3 -3
  886. package/lib/components/Toggle/Toggle.styles.js +1 -1
  887. package/lib/components/Toggle/Toggle.styles.js.map +1 -1
  888. package/lib/components/Toggle/Toggle.styles.mjs +1 -1
  889. package/lib/components/Toggle/Toggle.styles.mjs.map +1 -1
  890. package/lib/components/Tooltip/Tooltip.js +5 -5
  891. package/lib/components/Tooltip/Tooltip.styles.d.ts +3 -33
  892. package/lib/components/TopologyScheme/TopologyScheme.styles.d.ts +17 -17
  893. package/lib/components/UICare/UICare.styles.d.ts +16 -19
  894. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.d.ts +6 -6
  895. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.d.ts +7 -7
  896. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  897. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.d.ts +18 -18
  898. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  899. package/lib/components/VariantSelector/Variant/Variant.styles.d.ts +65 -75
  900. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  901. package/lib/components/VariantSelector/VariantSelector.styles.d.ts +13 -17
  902. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.d.ts +3 -3
  903. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +28 -32
  904. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +19 -23
  905. package/lib/components/VideoCookiesConsent/VideoCookiesConsent.styles.d.ts +6 -8
  906. package/lib/components/VideoPlayer/VideoPlayer.styles.d.ts +5 -5
  907. package/lib/components/VideoPlayerNew/VideoPlayer.js +20 -20
  908. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  909. package/lib/components/VideoPlayerNew/VideoPlayer.styles.d.ts +28 -31
  910. package/lib/components/VideoPlayerNew/VideoPlayer.styles.js +2 -2
  911. package/lib/components/VideoPlayerNew/VideoPlayer.styles.js.map +1 -1
  912. package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs +2 -2
  913. package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs.map +1 -1
  914. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  915. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  916. package/lib/components/index.d.ts +1 -0
  917. package/lib/components/index.js +2 -0
  918. package/lib/components/index.js.map +1 -1
  919. package/lib/components/index.mjs +2 -0
  920. package/lib/components/index.mjs.map +1 -1
  921. package/lib/{components/ResourceCalculatorV1/assets/consoles/udr7.png.js → constants/icons/header/arrow.svg.js} +6 -6
  922. package/lib/constants/icons/header/arrow.svg.js.map +1 -0
  923. package/lib/constants/icons/header/arrow.svg.mjs +3 -0
  924. package/lib/constants/icons/header/arrow.svg.mjs.map +1 -0
  925. package/lib/constants/icons/header/index.d.ts +1 -0
  926. package/lib/constants/icons/header/index.js +9 -0
  927. package/lib/constants/icons/header/index.js.map +1 -1
  928. package/lib/constants/icons/header/index.mjs +2 -0
  929. package/lib/constants/icons/header/index.mjs.map +1 -1
  930. package/lib/constants/mixin.d.ts +3 -3
  931. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  932. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  933. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  934. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  935. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  936. package/lib/constants/proStoreCategories/mapping/index.d.ts +3 -0
  937. package/lib/constants/proStoreCategories/mapping/index.js +25 -6
  938. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  939. package/lib/constants/proStoreCategories/mapping/index.mjs +25 -6
  940. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  941. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  942. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +3 -0
  943. package/lib/constants/proStoreCategories/mapping/unifi.js +3 -0
  944. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  945. package/lib/constants/proStoreCategories/mapping/unifi.mjs +3 -0
  946. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  947. package/lib/constants/proStoreCategories/translations/ar.json.js +9 -5
  948. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  949. package/lib/constants/proStoreCategories/translations/ar.json.mjs +9 -5
  950. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  951. package/lib/constants/proStoreCategories/translations/de.json.js +7 -3
  952. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  953. package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -3
  954. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  955. package/lib/constants/proStoreCategories/translations/el.json.js +9 -5
  956. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  957. package/lib/constants/proStoreCategories/translations/el.json.mjs +9 -5
  958. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  959. package/lib/constants/proStoreCategories/translations/en.json.js +5 -0
  960. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  961. package/lib/constants/proStoreCategories/translations/en.json.mjs +5 -1
  962. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  963. package/lib/constants/proStoreCategories/translations/es.json.js +8 -4
  964. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  965. package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -4
  966. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  967. package/lib/constants/proStoreCategories/translations/fr.json.js +8 -1
  968. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  969. package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -2
  970. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  971. package/lib/constants/proStoreCategories/translations/it.json.js +8 -4
  972. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  973. package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -4
  974. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  975. package/lib/constants/proStoreCategories/translations/ja.json.js +8 -4
  976. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  977. package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -4
  978. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  979. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -3
  980. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  981. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -3
  982. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  983. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -1
  984. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  985. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -2
  986. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  987. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -1
  988. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  989. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -2
  990. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  991. package/lib/constants/proStoreFilters/mapping.d.ts +44 -8
  992. package/lib/constants/proStoreFilters/mapping.js +130 -16
  993. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  994. package/lib/constants/proStoreFilters/mapping.mjs +130 -16
  995. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  996. package/lib/constants/theme.js +4 -0
  997. package/lib/constants/theme.js.map +1 -1
  998. package/lib/constants/theme.mjs +4 -0
  999. package/lib/constants/theme.mjs.map +1 -1
  1000. package/lib/contexts/MenuContext/context.js +34 -34
  1001. package/lib/contexts/MenuContext/context.js.map +1 -1
  1002. package/lib/contexts/MenuContext/context.mjs +1 -1
  1003. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  1004. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  1005. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  1006. package/lib/contexts/MenuContext/presets.d.ts +1 -1
  1007. package/lib/contexts/MenuContext/presets.js +2 -4
  1008. package/lib/contexts/MenuContext/presets.js.map +1 -1
  1009. package/lib/contexts/MenuContext/presets.mjs +2 -4
  1010. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  1011. package/lib/helpers/index.d.ts +0 -1
  1012. package/lib/helpers/index.js +1 -11
  1013. package/lib/helpers/index.js.map +1 -1
  1014. package/lib/helpers/index.mjs +1 -2
  1015. package/lib/helpers/index.mjs.map +1 -1
  1016. package/lib/helpers/proStoreCategories.js +2 -2
  1017. package/lib/helpers/ux.d.ts +8 -0
  1018. package/lib/helpers/ux.js +15 -0
  1019. package/lib/helpers/ux.js.map +1 -1
  1020. package/lib/helpers/ux.mjs +15 -1
  1021. package/lib/helpers/ux.mjs.map +1 -1
  1022. package/lib/hooks/useHasTouch.js +3 -3
  1023. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  1024. package/lib/hooks/useHorizontalScroll.js +2 -2
  1025. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  1026. package/lib/hooks/useScrollToY.js +2 -2
  1027. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  1028. package/lib/hooks/useTranslation.js +6 -6
  1029. package/lib/types/generated.d.ts +1 -1
  1030. package/lib/types/generated.js.map +1 -1
  1031. package/lib/types/generated.mjs.map +1 -1
  1032. package/lib/types/index.d.ts +0 -1
  1033. package/lib/types/index.js +0 -2
  1034. package/lib/types/index.js.map +1 -1
  1035. package/lib/types/index.mjs +0 -1
  1036. package/lib/types/index.mjs.map +1 -1
  1037. package/lib/utils/address.d.ts +62 -278
  1038. package/lib/utils/address.js +8 -11
  1039. package/lib/utils/address.js.map +1 -1
  1040. package/lib/utils/address.mjs +8 -11
  1041. package/lib/utils/address.mjs.map +1 -1
  1042. package/lib/utils/array.d.ts +0 -4
  1043. package/lib/utils/array.js +0 -10
  1044. package/lib/utils/array.js.map +1 -1
  1045. package/lib/utils/array.mjs +1 -10
  1046. package/lib/utils/array.mjs.map +1 -1
  1047. package/lib/utils/nextjs/ssr/registry.js +2 -2
  1048. package/package.json +43 -42
  1049. package/lib/assets/crestron.svg +0 -3
  1050. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  1051. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  1052. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  1053. package/lib/assets/ucg-fiber.png +0 -0
  1054. package/lib/assets/udr7.png +0 -0
  1055. package/lib/assets/ux.png +0 -0
  1056. package/lib/assets/ux7.png +0 -0
  1057. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
  1058. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
  1059. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
  1060. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
  1061. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
  1062. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
  1063. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
  1064. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
  1065. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js +0 -27
  1066. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js.map +0 -1
  1067. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs +0 -3
  1068. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs.map +0 -1
  1069. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.js.map +0 -1
  1070. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs +0 -3
  1071. package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs.map +0 -1
  1072. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js +0 -27
  1073. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js.map +0 -1
  1074. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs +0 -3
  1075. package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs.map +0 -1
  1076. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js +0 -27
  1077. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js.map +0 -1
  1078. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs +0 -3
  1079. package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs.map +0 -1
  1080. package/lib/helpers/product.d.ts +0 -87
  1081. package/lib/helpers/product.js +0 -346
  1082. package/lib/helpers/product.js.map +0 -1
  1083. package/lib/helpers/product.mjs +0 -335
  1084. package/lib/helpers/product.mjs.map +0 -1
  1085. package/lib/helpers/product.test.d.ts +0 -1
  1086. package/lib/types/product.d.ts +0 -87
  1087. package/lib/types/product.js +0 -14
  1088. package/lib/types/product.js.map +0 -1
  1089. package/lib/types/product.mjs +0 -13
  1090. package/lib/types/product.mjs.map +0 -1
  1091. package/lib/utils/productSort.d.ts +0 -41
  1092. package/lib/utils/productSort.js +0 -67
  1093. package/lib/utils/productSort.js.map +0 -1
  1094. package/lib/utils/productSort.mjs +0 -60
  1095. package/lib/utils/productSort.mjs.map +0 -1
  1096. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  1097. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  1098. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  1099. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  1100. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
@@ -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 Gallery_types = require('./Gallery.types.js');
6
6
  var utils = require('./utils.js');
7
7
  "use strict";
@@ -19,31 +19,31 @@ const defaultGalleryContextState = {
19
19
  resetTransitionState: () => {},
20
20
  currentImageLabel: "0/0"
21
21
  };
22
- const GalleryContext = react.createContext(defaultGalleryContextState);
22
+ const GalleryContext = React.createContext(defaultGalleryContextState);
23
23
  const GalleryControlsProvider = ({
24
24
  children,
25
25
  fade
26
26
  }) => {
27
- const [total, setTotal] = react.useState(0);
28
- const [controlsType, setControlsType] = react.useState(Gallery_types.GalleryControls.Inside);
29
- const showGalleryControls = react.useMemo(() => total > 1, [total]);
30
- const [visibleSlide, setVisibleSlideRaw] = react.useState(defaultGalleryContextState.visibleSlide);
31
- const [withTransition, setWithTransition] = react.useState(defaultGalleryContextState.withTransition);
32
- const [controlsDisabled, setControlsDisabled] = react.useState(false);
33
- const resetTransitionState = react.useCallback(() => {
27
+ const [total, setTotal] = React.useState(0);
28
+ const [controlsType, setControlsType] = React.useState(Gallery_types.GalleryControls.Inside);
29
+ const showGalleryControls = React.useMemo(() => total > 1, [total]);
30
+ const [visibleSlide, setVisibleSlideRaw] = React.useState(defaultGalleryContextState.visibleSlide);
31
+ const [withTransition, setWithTransition] = React.useState(defaultGalleryContextState.withTransition);
32
+ const [controlsDisabled, setControlsDisabled] = React.useState(false);
33
+ const resetTransitionState = React.useCallback(() => {
34
34
  setWithTransition(true);
35
35
  setControlsDisabled(false);
36
36
  }, []);
37
- const reset = react.useCallback(newTotal => {
37
+ const reset = React.useCallback(newTotal => {
38
38
  setTotal(newTotal);
39
39
  setVisibleSlideRaw(!fade && newTotal > 1 ? 1 : 0);
40
40
  resetTransitionState();
41
41
  }, [resetTransitionState, fade]);
42
- const setVisibleSlide = react.useCallback(nextVisibleState => {
42
+ const setVisibleSlide = React.useCallback(nextVisibleState => {
43
43
  setControlsDisabled(true);
44
44
  setVisibleSlideRaw(nextVisibleState);
45
45
  }, []);
46
- react.useEffect(() => {
46
+ React.useEffect(() => {
47
47
  if (fade || controlsDisabled || total <= 1) {
48
48
  return;
49
49
  }
@@ -65,7 +65,7 @@ const GalleryControlsProvider = ({
65
65
  });
66
66
  }
67
67
  }, [visibleSlide, controlsDisabled, total]);
68
- const setPrevious = react.useCallback(() => {
68
+ const setPrevious = React.useCallback(() => {
69
69
  if (controlsDisabled) {
70
70
  return;
71
71
  }
@@ -75,7 +75,7 @@ const GalleryControlsProvider = ({
75
75
  setVisibleSlide(currVisibleSlide => currVisibleSlide - 1);
76
76
  }
77
77
  }, [controlsDisabled, setVisibleSlide, total, fade]);
78
- const setNext = react.useCallback(() => {
78
+ const setNext = React.useCallback(() => {
79
79
  if (controlsDisabled) {
80
80
  return;
81
81
  }
@@ -85,7 +85,7 @@ const GalleryControlsProvider = ({
85
85
  setVisibleSlide(currVisibleSlide => currVisibleSlide + 1);
86
86
  }
87
87
  }, [controlsDisabled, setVisibleSlide, total, fade]);
88
- const jumpToSlide = react.useCallback(index => {
88
+ const jumpToSlide = React.useCallback(index => {
89
89
  if (controlsDisabled) {
90
90
  return;
91
91
  }
@@ -98,7 +98,7 @@ const GalleryControlsProvider = ({
98
98
  resetTransitionState();
99
99
  });
100
100
  }, [controlsDisabled, fade, setVisibleSlide, resetTransitionState]);
101
- const currentImageLabel = react.useMemo(() => {
101
+ const currentImageLabel = React.useMemo(() => {
102
102
  const isAnimatable = total > 1;
103
103
  const totalNormalised = isAnimatable ? total - (fade ? 0 : 2) : 1;
104
104
  let normalisedIndex = visibleSlide;
@@ -135,7 +135,7 @@ const GalleryControlsProvider = ({
135
135
  children
136
136
  });
137
137
  };
138
- const useGalleryControls = () => react.useContext(GalleryContext);
138
+ const useGalleryControls = () => React.useContext(GalleryContext);
139
139
  exports.GalleryControlsProvider = GalleryControlsProvider;
140
140
  exports.useGalleryControls = useGalleryControls;
141
141
  //# sourceMappingURL=Gallery.context.js.map
@@ -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 reactUse = require('react-use');
6
6
  var layout = require('../../constants/layout.js');
7
7
  var Gallery_context = require('./Gallery.context.js');
@@ -26,7 +26,7 @@ const parseGalleryEntries = (entries, fade) => {
26
26
  slidesWithClones.push(slidesWithClones[1]);
27
27
  return slidesWithClones;
28
28
  };
29
- const Gallery = react.memo(function Gallery2({
29
+ const Gallery = React.memo(function Gallery2({
30
30
  controls,
31
31
  entries,
32
32
  parsed,
@@ -46,25 +46,25 @@ const Gallery = react.memo(function Gallery2({
46
46
  visibleSlide,
47
47
  resetTransitionState
48
48
  } = Gallery_context.useGalleryControls();
49
- const galleryRef = react.useRef(null);
50
- const entriesParsed = react.useMemo(() => {
49
+ const galleryRef = React.useRef(null);
50
+ const entriesParsed = React.useMemo(() => {
51
51
  return parsed ? entries : parseGalleryEntries(entries, fade);
52
52
  }, [entries, fade, parsed]);
53
- react.useEffect(() => {
53
+ React.useEffect(() => {
54
54
  setControlsType(controls);
55
55
  }, [controls, setControlsType]);
56
- react.useEffect(() => {
56
+ React.useEffect(() => {
57
57
  reset(entriesParsed.length);
58
58
  }, [entriesParsed, reset]);
59
- const activeEntry = react.useMemo(() => entriesParsed[visibleSlide], [entriesParsed, visibleSlide]);
60
- const couldBeNext = react.useCallback(index => {
59
+ const activeEntry = React.useMemo(() => entriesParsed[visibleSlide], [entriesParsed, visibleSlide]);
60
+ const couldBeNext = React.useCallback(index => {
61
61
  const potentialNextRightSlideIndex = visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;
62
62
  const potentialNextLeftSlideIndex = visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;
63
63
  return !!(potentialNextRightSlideIndex === index || potentialNextLeftSlideIndex === index);
64
64
  }, [entriesParsed.length, visibleSlide]);
65
65
  const isTabletUp = reactUse.useMedia(layout.BREAKPOINTS.TABLET_UP, false);
66
66
  const hoveredRaw = reactUse.useHoverDirty(galleryRef, isTabletUp);
67
- const [hovered, setHovered] = react.useState(false);
67
+ const [hovered, setHovered] = React.useState(false);
68
68
  reactUse.useDebounce(() => {
69
69
  setHovered(hoveredRaw);
70
70
  }, 10, [hoveredRaw]);
@@ -85,7 +85,7 @@ const Gallery = react.memo(function Gallery2({
85
85
  objectFit
86
86
  }) : /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
87
87
  children: [/* @__PURE__ */jsxRuntime.jsx(Gallery_styles.GalleryTrack, {
88
- $withTransition: withTransition,
88
+ withTransition,
89
89
  style: {
90
90
  transform: !fade ? `translate3d(-${visibleSlide * 100}%, 0, 0)` : ""
91
91
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.js","sources":["../../../src/components/Gallery/Gallery.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n $withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","GalleryTrack","$withTransition","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQH,KAAU,IAAA,CAACA,MAAMC,OAAO,CAAA;EACpE,MAAMG,aAAaN,UACf,GAAA,CAACA,UAAY,EAAA,GAAGI,mBAAmB,CACnC,GAAAN,OAAA;EAEA,IAAAQ,UAAA,CAAWC,MAAU,IAAA,CAAA,IAAKR,IAAM,EAAA;IAC3B,OAAAO,UAAA;EACT;EAGM,MAAAE,gBAAA,GAAmB,CAAC,GAAGF,UAAU,CAAA;EAEvCE,gBAAA,CAAiBC,OAAQ,CAAAD,gBAAA,CAAiBA,gBAAiB,CAAAD,MAAA,GAAS,CAAC,CAAE,CAAA;EAEtDC,gBAAA,CAAAE,IAAA,CAAKF,gBAAiB,CAAA,CAAC,CAAE,CAAA;EACnC,OAAAA,gBAAA;AACT,CAAA;AAEa,MAAAG,OAAA,GAAUC,KAAAA,CAAAA,IAAK,CAAA,SAASD,QAA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import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","GalleryTrack","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQ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A,CACb,CAAA;OAEJ,CAAA,EAEDS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,8BAAgBC,MACxD,IAAAvB,eAAAA,UAAAA,CAAAA,GAAA,CAACwB,eAAsB,CAAAA,qBAAA,EAAA;QAAAH,SAAA,EAAWjD;MAAU,CAAA,CAAA,EAE7CS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,8BAAgBG,MACxD,IAAAzB,eAAAA,UAAAA,CAAAA,GAAA,CAAC0B,eAAsB,CAAAA,qBAAA,EAAA;QAAAL,SAAA,EAAWjD;MAAU,CAAA,CAAA;IAEhD,CAAA;EACF,CAAA,CAAA;AAEJ,CAAC,CAAA;;"}
@@ -83,7 +83,7 @@ const Gallery = memo(function Gallery2({
83
83
  objectFit
84
84
  }) : /* @__PURE__ */jsxs(Fragment, {
85
85
  children: [/* @__PURE__ */jsx(GalleryTrack, {
86
- $withTransition: withTransition,
86
+ withTransition,
87
87
  style: {
88
88
  transform: !fade ? `translate3d(-${visibleSlide * 100}%, 0, 0)` : ""
89
89
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.mjs","sources":["../../../src/components/Gallery/Gallery.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n $withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","$withTransition","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQH,KAAU,IAAA,CAACA,MAAMC,OAAO,CAAA;EACpE,MAAMG,aAAaN,UACf,GAAA,CAACA,UAAY,EAAA,GAAGI,mBAAmB,CACnC,GAAAN,OAAA;EAEA,IAAAQ,UAAA,CAAWC,MAAU,IAAA,CAAA,IAAKR,IAAM,EAAA;IAC3B,OAAAO,UAAA;EACT;EAGM,MAAAE,gBAAA,GAAmB,CAAC,GAAGF,UAAU,CAAA;EAEvCE,gBAAA,CAAiBC,OAAQ,CAAAD,gBAAA,CAAiBA,gBAAiB,CAAAD,MAAA,GAAS,CAAC,CAAE,CAAA;EAEtDC,gBAAA,CAAAE,IAAA,CAAKF,gBAAiB,CAAA,CAAC,CAAE,CAAA;EACnC,OAAAA,gBAAA;AACT,CAAA;AAEa,MAAA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M,WAAA,EAAA;cAICC,IAAM,EAAAvD,KAAA;cACNe,IAAA;cAEAC,UAAUA,QAAY,IAAAgD,eAAA;cACtBP,QAAU,EAAAO,eAAA;cACV/B,WAAA,EAAaA,YAAYE,KAAK,CAAA;cAC9BlB,WAAA;cACAuC,eAAiB,EAAA/B,oBAAA;cACjB5B,IAAA;cACAsB;YAAA,CAAA,EAVK,gBAAgBnB,KAAA,CAAMiE,EAAE,IAAI9B,KAAK,EAAA,CAWxC;UAAA,CAEH;QAAA,CACH,CAAA,EACCjB,UACC,mBAAA8B,GAAA,CAACkB,iBAAA,EAAA;UACCC,KAAO,EAAAtC,aAAA;UACPZ,WAAA;UACAmD,QAAU,EAAAxB,OAAA;UACVyB,SAAW,EAAAjD;QAAA,CACb,CAAA;OAEJ,CAAA,EAEDS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,gBAAgBC,MACxD,IAAA,eAAAvB,GAAA,CAACwB,qBAAsB,EAAA;QAAAH,SAAA,EAAWjD;MAAU,CAAA,CAAA,EAE7CS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,gBAAgBG,MACxD,IAAA,eAAAzB,GAAA,CAAC0B,qBAAsB,EAAA;QAAAL,SAAA,EAAWjD;MAAU,CAAA,CAAA;IAEhD,CAAA;EACF,CAAA,CAAA;AAEJ,CAAC,CAAA;"}
1
+ {"version":3,"file":"Gallery.mjs","sources":["../../../src/components/Gallery/Gallery.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQH,KAAU,IAAA,CAACA,MAAMC,OAAO,CAAA;EACpE,MAAMG,aAAaN,UACf,GAAA,CAACA,UAAY,EAAA,GAAGI,mBAAmB,CACnC,GAAAN,OAAA;EAEA,IAAAQ,UAAA,CAAWC,MAAU,IAAA,CAAA,IAAKR,IAAM,EAAA;IAC3B,OAAAO,UAAA;EACT;EAGM,MAAAE,gBAAA,GAAmB,CAAC,GAAGF,UAAU,CAAA;EAEvCE,gBAAA,CAAiBC,OAAQ,CAAAD,gBAAA,CAAiB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Ac,EAAAtB,aAAA,CAAAiC,GAAA,CAAI,CAAC9D,KAAA,EAAOmC,KAAU,KAAA;YACnC,MAAM4B,kBAAkB5B,KAAU,KAAAX,YAAA;YAGhC,sBAAAwB,GAAA,CAACM,WAAA,EAAA;cAICC,IAAM,EAAAvD,KAAA;cACNe,IAAA;cAEAC,UAAUA,QAAY,IAAA+C,eAAA;cACtBN,QAAU,EAAAM,eAAA;cACV9B,WAAA,EAAaA,YAAYE,KAAK,CAAA;cAC9BlB,WAAA;cACAuC,eAAiB,EAAA/B,oBAAA;cACjB5B,IAAA;cACAsB;YAAA,CAAA,EAVK,gBAAgBnB,KAAA,CAAMgE,EAAE,IAAI7B,KAAK,EAAA,CAWxC;UAAA,CAEH;QAAA,CACH,CAAA,EACCjB,UACC,mBAAA8B,GAAA,CAACiB,iBAAA,EAAA;UACCC,KAAO,EAAArC,aAAA;UACPZ,WAAA;UACAkD,QAAU,EAAAvB,OAAA;UACVwB,SAAW,EAAAhD;QAAA,CACb,CAAA;OAEJ,CAAA,EAEDS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAayD,gBAAgBC,MACxD,IAAA,eAAAtB,GAAA,CAACuB,qBAAsB,EAAA;QAAAH,SAAA,EAAWhD;MAAU,CAAA,CAAA,EAE7CS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAayD,gBAAgBG,MACxD,IAAA,eAAAxB,GAAA,CAACyB,qBAAsB,EAAA;QAAAL,SAAA,EAAWhD;MAAU,CAAA,CAAA;IAEhD,CAAA;EACF,CAAA,CAAA;AAEJ,CAAC,CAAA;"}
@@ -2,15 +2,11 @@ import type { GalleryProps } from "./Gallery.types";
2
2
  /**
3
3
  * For gallery with outside (side) controls add flex container with spacing
4
4
  */
5
- export declare const GalleryWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
- export declare const GalleryImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<GalleryProps, "aspectRatio">>> & string;
7
- export declare const GalleryLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
- export declare const GalleryClickThirdLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
9
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, never>> & string;
11
- export declare const GalleryClickThirdRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
12
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
13
- }, never>> & string;
14
- export declare const GalleryTrack: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
15
- $withTransition: boolean;
16
- }>> & string;
5
+ export declare const GalleryWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const GalleryImageContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<GalleryProps, "aspectRatio">, never>;
7
+ export declare const GalleryLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const GalleryClickThirdLeft: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const GalleryClickThirdRight: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const GalleryTrack: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
11
+ withTransition: boolean;
12
+ }, never>;
@@ -63,9 +63,7 @@ const GalleryTrack = styled__default["default"].div`
63
63
  inset: 0;
64
64
  display: flex;
65
65
  will-change: transform;
66
- transition: ${({
67
- $withTransition
68
- }) => $withTransition ? `transform 0.2s` : "none"};
66
+ transition: ${props => props.withTransition ? `transform 0.2s` : "none"};
69
67
 
70
68
  /**
71
69
  * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.styles.js","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ $withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${({ $withTransition }) =>\n $withTransition ? `transform 0.2s` : \"none\"};\n\n /**\n * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else\n * worked.\n * @see https://stackoverflow.com/a/15918159/1378261\n */\n -webkit-backface-visibility: hidden;\n * {\n -webkit-transform: translate3d(0, 0, 0);\n }\n`;\n"],"names":["GalleryWrapper","styled","div","GalleryImageContainer","props","aspectRatio","GalleryLabel","GalleryClickThird","GalleryClickThirdLeft","GalleryClickThirdRight","GalleryTrack","$withTransition"],"mappings":";;;;;;;;;;AAOO,MAAMA,iBAAiBC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAe9B,MAAMC,wBAAwBF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAQzBE,KAAA,IACfA,KAAM,CAAAC,WAAA,GACF,GAAGD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,MAAMD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,KACjD,MAAM;AAAA,CAAA;AAGP,MAAMC,eAAeL,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYnC,MAAMK,oBAAoBN,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYpB,MAAAM,qBAAA,GAAwBP,eAAAA,CAAAA,SAAAA,EAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIhD,MAAAE,sBAAA,GAAyBR,eAAAA,CAAAA,SAAAA,EAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIvD,MAAMG,eAAeT,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKnB,CAAC;EAAES;AACf,CAAA,KAAAA,eAAA,GAAkB,mBAAmB,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;"}
1
+ {"version":3,"file":"Gallery.styles.js","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${(props) => (props.withTransition ? `transform 0.2s` : \"none\")};\n\n /**\n * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else\n * worked.\n * @see https://stackoverflow.com/a/15918159/1378261\n */\n -webkit-backface-visibility: hidden;\n * {\n -webkit-transform: translate3d(0, 0, 0);\n }\n`;\n"],"names":["GalleryWrapper","styled","div","GalleryImageContainer","props","aspectRatio","GalleryLabel","GalleryClickThird","GalleryClickThirdLeft","GalleryClickThirdRight","GalleryTrack","withTransition"],"mappings":";;;;;;;;;;AAOO,MAAMA,iBAAiBC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAe9B,MAAMC,wBAAwBF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAQzBE,KAAA,IACfA,KAAM,CAAAC,WAAA,GACF,GAAGD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,MAAMD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,KACjD,MAAM;AAAA,CAAA;AAGP,MAAMC,eAAeL,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYnC,MAAMK,oBAAoBN,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYpB,MAAAM,qBAAA,GAAwBP,eAAAA,CAAAA,SAAAA,EAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIhD,MAAAE,sBAAA,GAAyBR,eAAAA,CAAAA,SAAAA,EAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIvD,MAAMG,eAAeT,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKlBE,KAAA,IAAWA,KAAM,CAAAO,cAAA,GAAiB,mBAAmB,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;"}
@@ -55,9 +55,7 @@ const GalleryTrack = styled.div`
55
55
  inset: 0;
56
56
  display: flex;
57
57
  will-change: transform;
58
- transition: ${({
59
- $withTransition
60
- }) => $withTransition ? `transform 0.2s` : "none"};
58
+ transition: ${props => props.withTransition ? `transform 0.2s` : "none"};
61
59
 
62
60
  /**
63
61
  * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.styles.mjs","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ $withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${({ $withTransition }) =>\n $withTransition ? `transform 0.2s` : \"none\"};\n\n /**\n * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else\n * worked.\n * @see https://stackoverflow.com/a/15918159/1378261\n */\n -webkit-backface-visibility: hidden;\n * {\n -webkit-transform: translate3d(0, 0, 0);\n }\n`;\n"],"names":["GalleryWrapper","styled","div","GalleryImageContainer","props","aspectRatio","GalleryLabel","GalleryClickThird","GalleryClickThirdLeft","GalleryClickThirdRight","GalleryTrack","$withTransition"],"mappings":";;AAOO,MAAMA,iBAAiBC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAe9B,MAAMC,wBAAwBF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAQzBE,KAAA,IACfA,KAAM,CAAAC,WAAA,GACF,GAAGD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,MAAMD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,KACjD,MAAM;AAAA,CAAA;AAGP,MAAMC,eAAeL,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYnC,MAAMK,oBAAoBN,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYpB,MAAAM,qBAAA,GAAwBP,OAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIhD,MAAAE,sBAAA,GAAyBR,OAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIvD,MAAMG,eAAeT,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKnB,CAAC;EAAES;AACf,CAAA,KAAAA,eAAA,GAAkB,mBAAmB,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"Gallery.styles.mjs","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${(props) => (props.withTransition ? `transform 0.2s` : \"none\")};\n\n /**\n * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else\n * worked.\n * @see https://stackoverflow.com/a/15918159/1378261\n */\n -webkit-backface-visibility: hidden;\n * {\n -webkit-transform: translate3d(0, 0, 0);\n }\n`;\n"],"names":["GalleryWrapper","styled","div","GalleryImageContainer","props","aspectRatio","GalleryLabel","GalleryClickThird","GalleryClickThirdLeft","GalleryClickThirdRight","GalleryTrack","withTransition"],"mappings":";;AAOO,MAAMA,iBAAiBC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAe9B,MAAMC,wBAAwBF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAQzBE,KAAA,IACfA,KAAM,CAAAC,WAAA,GACF,GAAGD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,MAAMD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,KACjD,MAAM;AAAA,CAAA;AAGP,MAAMC,eAAeL,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYnC,MAAMK,oBAAoBN,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYpB,MAAAM,qBAAA,GAAwBP,OAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIhD,MAAAE,sBAAA,GAAyBR,OAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIvD,MAAMG,eAAeT,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKlBE,KAAA,IAAWA,KAAM,CAAAO,cAAA,GAAiB,mBAAmB,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -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/arrowRightMicro.svg.js');
6
6
  var Gallery_context = require('../Gallery.context.js');
7
7
  var GalleryControls_styles = require('./GalleryControls.styles.js');
@@ -13,7 +13,7 @@ function _interopDefault(e) {
13
13
  }
14
14
  var arrowRightMicroSvg__default = /*#__PURE__*/_interopDefault(arrowRightMicroSvg);
15
15
  "use strict";
16
- const GalleryControl = react.memo(function GalleryRightControl({
16
+ const GalleryControl = React.memo(function GalleryRightControl({
17
17
  label,
18
18
  side,
19
19
  rounded,
@@ -23,7 +23,7 @@ const GalleryControl = react.memo(function GalleryRightControl({
23
23
  setNext,
24
24
  setPrevious
25
25
  } = Gallery_context.useGalleryControls();
26
- const handleClick = react.useCallback(() => {
26
+ const handleClick = React.useCallback(() => {
27
27
  onClick?.();
28
28
  switch (side) {
29
29
  case "left":
@@ -42,7 +42,7 @@ const GalleryControl = react.memo(function GalleryRightControl({
42
42
  src: arrowRightMicroSvg__default["default"],
43
43
  height: 24,
44
44
  width: 24,
45
- $side: side,
45
+ side,
46
46
  $rounded: rounded
47
47
  }), label && /* @__PURE__ */jsxRuntime.jsx(GalleryControls_styles.GalleryControlLabel, {
48
48
  children: label
@@ -57,7 +57,7 @@ const GalleryOutsideControlsInfo = () => {
57
57
  children: currentImageLabel
58
58
  });
59
59
  };
60
- const GalleryBottomControls = react.memo(function GalleryBottomControls2({
60
+ const GalleryBottomControls = React.memo(function GalleryBottomControls2({
61
61
  className,
62
62
  size,
63
63
  onControl
@@ -1 +1 @@
1
- {"version":3,"file":"GalleryControls.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n $side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","GalleryArrowIcon","src","arrowRightMicroSvg","height","width","$side","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;AAWa,MAAAA,cAAA,GAAiBC,KAAAA,CAAAA,IAAK,CAAA,SAASC,mBAAoBA,CAAA;EAC9DC,KAAA;EACAC,IAAA;EACAC,OAAA;EACAC;AACF,CAAyB,EAAA;EACvB,MAAM;IAAEC,OAAA;IAASC;EAAY,CAAA,GAAIC,eAAmB,CAAAA,kBAAA,CAAA,CAAA;EAE9C,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IAC1BL,OAAA,IAAA;IAEV,QAAQF,IAAM;MACZ,KAAK,MAAA;QACSI,WAAA,EAAA;QACZ;MACF,KAAK,OAAA;QACKD,OAAA,EAAA;QACR;IACJ;KACC,CAACD,OAAA,EAASF,IAAM,EAAAI,WAAA,EAAaD,OAAO,CAAC,CAAA;EAGtC,sBAAAK,UAAA,CAAAA,IAAA,CAACC,sBAAE,CAAAC,YAAA,EAAF;IACCC,QAAU,EAAAV,OAAA;IACVC,OAAS,EAAAI,WAAA;IACT,YAAA,EAAYN,IAAS,KAAA,MAAA,GAAS,UAAa,GAAA,MAAA;IAE3CY,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,sBAAE,CAAAC,gBAAA,EAAF;MACCC,GAAK,EAAAC,2BAAA,CAAA,SAAA,CAAA;MACLC,MAAQ,E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BAAAtB,UAAA,CAAAA,IAAA,CAAC0B,4CAAE,EAAF;IACCtB,QAAA,EAAA,CAAA,eAAAC,cAAA,CAACjB;MAAeM,OAAS,EAAA4B,SAAA;MAAW9B,IAAK,EAAA,MAAA;MAAOC,SAAO;KAAC,CAAA,EAAA,8BACvDL,cAAe,EAAA;MAAAM,OAAA,EAAS4B;MAAW9B,IAAK,EAAA,OAAA;MAAQC,SAAO;KAAC,CAAA;EAC3D,CAAA,CAAA;AAEJ,CAAA;;;;"}
1
+ {"version":3,"file":"GalleryControls.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","GalleryArrowIcon","src","arrowRightMicroSvg","height","width","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;AAWa,MAAAA,cAAA,GAAiBC,KAAAA,CAAAA,IAAK,CAAA,SAASC,mBAAoBA,CAAA;EAC9DC,KAAA;EACAC,IAAA;EACAC,OAAA;EACAC;AACF,CAAyB,EAAA;EACvB,MAAM;IAAEC,OAAA;IAASC;EAAY,CAAA,GAAIC,eAAmB,CAAAA,kBAAA,CAAA,CAAA;EAE9C,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IAC1BL,OAAA,IAAA;IAEV,QAAQF,IAAM;MACZ,KAAK,MAAA;QACSI,WAAA,EAAA;QACZ;MACF,KAAK,OAAA;QACKD,OAAA,EAAA;QACR;IACJ;KACC,CAACD,OAAA,EAASF,IAAM,EAAAI,WAAA,EAAaD,OAAO,CAAC,CAAA;EAG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A,UAAAA,CAAAA,GAAA,CAAAU,sBAAA,CAAAC,mBAAA,EAAA;MAAuBZ,QAAkB,EAAAU;IAAA,CAAA,CAAA,EAAA,eACzCT,UAAA,CAAAA,GAAA,CAAAjB,cAAA,EAAA;MAAeM,OAAS,EAAA2B,SAAA;MAAW7B,MAAK;KAAQ,CAAA;EACnD,CAAA,CAAA;AAEJ,CAAC,CAAA;AAEM,MAAMgC,wBAAwBA,CAAC;EACpCH;AACF,CAAkC,KAAA;EAE9B,sBAAArB,UAAA,CAAAA,IAAA,CAACyB,4CAAE,EAAF;IACCrB,QAAA,EAAA,CAAA,eAAAC,cAAA,CAACjB;MAAeM,OAAS,EAAA2B,SAAA;MAAW7B,IAAK,EAAA,MAAA;MAAOC,SAAO;KAAC,CAAA,EAAA,8BACvDL,cAAe,EAAA;MAAAM,OAAA,EAAS2B;MAAW7B,IAAK,EAAA,OAAA;MAAQC,SAAO;KAAC,CAAA;EAC3D,CAAA,CAAA;AAEJ,CAAA;;;;"}
@@ -34,7 +34,7 @@ const GalleryControl = memo(function GalleryRightControl({
34
34
  src: arrowRightMicroSvg__default,
35
35
  height: 24,
36
36
  width: 24,
37
- $side: side,
37
+ side,
38
38
  $rounded: rounded
39
39
  }), label && /* @__PURE__ */jsx(GalleryControlLabel, {
40
40
  children: label
@@ -1 +1 @@
1
- {"version":3,"file":"GalleryControls.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n $side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","src","arrowRightMicroSvg","height","width","$side","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;AAWa,MAAAA,cAAA,GAA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A;EACjD,OAAA,eACGG,IAAA,CAAAoB,8BAAA,EAAA;IAAiCH;IAAsBC,IACtD;IAAAf,QAAA,EAAA,CAAA,eAAAC,GAAA,CAAChB,cAAe,EAAA;MAAAM,OAAA,EAASyB,SAAW;MAAA3B,IAAA,EAAK;KAAO,CAAA,EAC/C,eAAAY,GAAA,CAAAU,mBAAA,EAAA;MAAuBX,QAAkB,EAAAU;IAAA,CAAA,CAAA,EAAA,eACzCT,GAAA,CAAAhB,cAAA,EAAA;MAAeM,OAAS,EAAAyB,SAAA;MAAW3B,MAAK;KAAQ,CAAA;EACnD,CAAA,CAAA;AAEJ,CAAC,CAAA;AAEM,MAAM6B,wBAAwBA,CAAC;EACpCF;AACF,CAAkC,KAAA;EAE9B,sBAAAnB,IAAA,CAACsB,uBAAE,EAAF;IACCnB,QAAA,EAAA,CAAA,eAAAC,GAAA,CAAChB;MAAeM,OAAS,EAAAyB,SAAA;MAAW3B,IAAK,EAAA,MAAA;MAAOC,SAAO;KAAC,CAAA,EAAA,mBACvDL,cAAe,EAAA;MAAAM,OAAA,EAASyB;MAAW3B,IAAK,EAAA,OAAA;MAAQC,SAAO;KAAC,CAAA;EAC3D,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"GalleryControls.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","src","arrowRightMicroSvg","height","width","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;AAWa,MAAAA,cAAA,GAAiBC,IAAK,CAAA,SAASC,mBAAoBA,CAAA;EAC9DC,KAAA;EACAC,IAAA;E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,EAAA,CAAA,eAAAC,GAAA,CAAChB,cAAe,EAAA;MAAAM,OAAA,EAASwB,SAAW;MAAA1B,IAAA,EAAK;KAAO,CAAA,EAC/C,eAAAY,GAAA,CAAAS,mBAAA,EAAA;MAAuBV,QAAkB,EAAAS;IAAA,CAAA,CAAA,EAAA,eACzCR,GAAA,CAAAhB,cAAA,EAAA;MAAeM,OAAS,EAAAwB,SAAA;MAAW1B,MAAK;KAAQ,CAAA;EACnD,CAAA,CAAA;AAEJ,CAAC,CAAA;AAEM,MAAM4B,wBAAwBA,CAAC;EACpCF;AACF,CAAkC,KAAA;EAE9B,sBAAAlB,IAAA,CAACqB,uBAAE,EAAF;IACClB,QAAA,EAAA,CAAA,eAAAC,GAAA,CAAChB;MAAeM,OAAS,EAAAwB,SAAA;MAAW1B,IAAK,EAAA,MAAA;MAAOC,SAAO;KAAC,CAAA,EAAA,mBACvDL,cAAe,EAAA;MAAAM,OAAA,EAASwB;MAAW1B,IAAK,EAAA,OAAA;MAAQC,SAAO;KAAC,CAAA;EAC3D,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1,12 +1,12 @@
1
1
  import type { GalleryBottomControlsProps } from "./GalleryControls.types";
2
- export declare const GalleryArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
2
+ export declare const GalleryArrow: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
3
3
  $rounded?: boolean;
4
- }>> & string;
5
- export declare const GalleryArrowIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../StyleableSvgImage").StyleableSvgImageProps, {
6
- $side: string;
4
+ }, never>;
5
+ export declare const GalleryArrowIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, }: import("../../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {
6
+ side: string;
7
7
  $rounded?: boolean;
8
- }>> & string & Omit<({ src, width, height, renderedHeight, className, }: import("../../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
9
- export declare const GalleryControlLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
- export declare const GalleryBottomControlsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<GalleryBottomControlsProps, "size">>> & string;
11
- export declare const GalleryControlsInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
- export declare const GalleryInsideControls: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
+ }, never>;
9
+ export declare const GalleryControlLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const GalleryBottomControlsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<GalleryBottomControlsProps, "size">, never>;
11
+ export declare const GalleryControlsInfo: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const GalleryInsideControls: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -55,8 +55,8 @@ const GalleryArrowIcon = styled__default["default"](StyleableSvgImage.StyleableS
55
55
  }) => $rounded ? theme.theme.colors.white : "#494949"};
56
56
 
57
57
  ${({
58
- $side
59
- }) => $side === "left" && styled.css`
58
+ side
59
+ }) => side === "left" && styled.css`
60
60
  transform: rotate(180deg);
61
61
  `}
62
62
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"GalleryControls.styles.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n $side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ $side }) =>\n $side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","$side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAOA,MAAMA,mBAAsB,GAAAC,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAAA,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,eAAAA,CAAAA,SAAAA,EAAOS,iBAAAA,CAAAA,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAAA,CAAAA,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;AAAM,CAAA,KACTA,UAAU,MACV,IAAAb,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMc,sBAAsBZ,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMC,iCAAiCd,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAiBjD,CAAC;EAAEE;AAAA,CAAW,KAAAA,IAAA,KAAS,WAAWlB,mBAAmB;AAAA;AAAA,WAE9CK,MAAAA,CAAAA,YAAYC,eAAe;AAAA,MAChCN,mBAAmB;AAAA;AAAA,CAAA;AAIlB,MAAMmB,sBAAsBhB,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMI,wBAAwBjB,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;"}
1
+ {"version":3,"file":"GalleryControls.styles.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ side }) =>\n side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAOA,MAAMA,mBAAsB,GAAAC,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAAA,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,eAAAA,CAAAA,SAAAA,EAAOS,iBAAAA,CAAAA,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAAA,CAAAA,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;AAAK,CAAA,KACRA,SAAS,MACT,IAAAb,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMc,sBAAsBZ,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMC,iCAAiCd,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAiBjD,CAAC;EAAEE;AAAA,CAAW,KAAAA,IAAA,KAAS,WAAWlB,mBAAmB;AAAA;AAAA,WAE9CK,MAAAA,CAAAA,YAAYC,eAAe;AAAA,MAChCN,mBAAmB;AAAA;AAAA,CAAA;AAIlB,MAAMmB,sBAAsBhB,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMI,wBAAwBjB,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;"}
@@ -47,8 +47,8 @@ const GalleryArrowIcon = styled(StyleableSvgImage)`
47
47
  }) => $rounded ? theme.colors.white : "#494949"};
48
48
 
49
49
  ${({
50
- $side
51
- }) => $side === "left" && css`
50
+ side
51
+ }) => side === "left" && css`
52
52
  transform: rotate(180deg);
53
53
  `}
54
54
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"GalleryControls.styles.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n $side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ $side }) =>\n $side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","$side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;AAOA,MAAMA,mBAAsB,GAAAC,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,MAAO,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,OAAOS,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;AAAM,CAAA,KACTA,UAAU,MACV,IAAAb,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMc,sBAAsBZ,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMC,iCAAiCd,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAiBjD,CAAC;EAAEE;AAAA,CAAW,KAAAA,IAAA,KAAS,WAAWlB,mBAAmB;AAAA;AAAA,WAE9CK,YAAYC,eAAe;AAAA,MAChCN,mBAAmB;AAAA;AAAA,CAAA;AAIlB,MAAMmB,sBAAsBhB,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMI,wBAAwBjB,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
1
+ {"version":3,"file":"GalleryControls.styles.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ side }) =>\n side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;AAOA,MAAMA,mBAAsB,GAAAC,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,MAAO,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,OAAOS,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;AAAK,CAAA,KACRA,SAAS,MACT,IAAAb,GAAA;AAAA;AAAA,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