@ubnt/store.core 9.18.0-alpha.9 → 9.19.0

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 (403) hide show
  1. package/CHANGELOG.md +3 -195
  2. package/lib/_virtual/_virtual_multi-entry.js +12 -27
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +10 -14
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/close2.svg +2 -3
  7. package/lib/assets/close3.svg +3 -2
  8. package/lib/{components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js → assets/icons/menu/icon-globe.svg.js} +6 -6
  9. package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
  10. package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
  11. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
  12. package/lib/assets/pause.svg +3 -3
  13. package/lib/assets/pause2.svg +3 -3
  14. package/lib/assets/ucgMax.jpg +0 -0
  15. package/lib/assets/ucgMax2.jpg +0 -0
  16. package/lib/assets/ucgUltra.jpg +0 -0
  17. package/lib/assets/ucgUltra2.jpg +0 -0
  18. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  19. package/lib/components/CategoryTabs/CategoryTabs.styles.js +3 -2
  20. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  21. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -2
  22. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  23. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  24. package/lib/components/Container/Container.d.ts +1 -1
  25. package/lib/components/Container/Container.js +3 -4
  26. package/lib/components/Container/Container.js.map +1 -1
  27. package/lib/components/Container/Container.mjs +4 -5
  28. package/lib/components/Container/Container.mjs.map +1 -1
  29. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  30. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  31. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  32. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  33. package/lib/components/Header/AccountMenu/AccountMenu.js +1 -11
  34. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  35. package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
  36. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  37. package/lib/components/Header/Header.js +6 -6
  38. package/lib/components/Header/Header.js.map +1 -1
  39. package/lib/components/Header/Header.mjs +6 -6
  40. package/lib/components/Header/Header.mjs.map +1 -1
  41. package/lib/components/Header/Header.styles.d.ts +2 -2
  42. package/lib/components/Header/Header.types.d.ts +4 -12
  43. package/lib/components/Header/Header.types.js +1 -2
  44. package/lib/components/Header/Header.types.js.map +1 -1
  45. package/lib/components/Header/Header.types.mjs +1 -2
  46. package/lib/components/Header/Header.types.mjs.map +1 -1
  47. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  48. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  49. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  50. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  51. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  52. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
  53. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  54. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  55. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  56. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +95 -92
  57. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  58. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +95 -92
  59. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  60. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
  61. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
  62. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  63. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
  64. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  65. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +4 -10
  66. package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -3
  67. package/lib/components/Header/ProHeader/ProHeader.js +120 -247
  68. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  69. package/lib/components/Header/ProHeader/ProHeader.mjs +124 -249
  70. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  71. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +1 -4
  72. package/lib/components/Header/ProHeader/ProHeader.styles.js +17 -23
  73. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  74. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +18 -21
  75. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  76. package/lib/components/Header/translations/ar.json.js +1 -4
  77. package/lib/components/Header/translations/ar.json.js.map +1 -1
  78. package/lib/components/Header/translations/ar.json.mjs +2 -4
  79. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  80. package/lib/components/Header/translations/de.json.js +1 -4
  81. package/lib/components/Header/translations/de.json.js.map +1 -1
  82. package/lib/components/Header/translations/de.json.mjs +2 -4
  83. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  84. package/lib/components/Header/translations/el.json.js +1 -4
  85. package/lib/components/Header/translations/el.json.js.map +1 -1
  86. package/lib/components/Header/translations/el.json.mjs +2 -4
  87. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  88. package/lib/components/Header/translations/en.json.js +1 -4
  89. package/lib/components/Header/translations/en.json.js.map +1 -1
  90. package/lib/components/Header/translations/en.json.mjs +2 -4
  91. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  92. package/lib/components/Header/translations/es.json.js +1 -4
  93. package/lib/components/Header/translations/es.json.js.map +1 -1
  94. package/lib/components/Header/translations/es.json.mjs +2 -4
  95. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  96. package/lib/components/Header/translations/fr.json.js +1 -4
  97. package/lib/components/Header/translations/fr.json.js.map +1 -1
  98. package/lib/components/Header/translations/fr.json.mjs +2 -4
  99. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  100. package/lib/components/Header/translations/it.json.js +1 -4
  101. package/lib/components/Header/translations/it.json.js.map +1 -1
  102. package/lib/components/Header/translations/it.json.mjs +2 -4
  103. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  104. package/lib/components/Header/translations/ja.json.js +1 -4
  105. package/lib/components/Header/translations/ja.json.js.map +1 -1
  106. package/lib/components/Header/translations/ja.json.mjs +2 -4
  107. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  108. package/lib/components/Header/translations/pt-BR.json.js +1 -4
  109. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  110. package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
  111. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  112. package/lib/components/Header/translations/zh-Hans.json.js +1 -4
  113. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  114. package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
  115. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  116. package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
  117. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  118. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
  119. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  120. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  121. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  122. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  123. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  124. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  125. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  126. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  127. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  128. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  129. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  130. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  131. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  132. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  133. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  134. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  135. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  136. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  137. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  138. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  139. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  140. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  141. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  142. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  143. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  144. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  145. package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
  146. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
  147. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  148. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  149. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
  150. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
  151. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  152. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  153. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  154. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
  155. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  156. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
  157. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  158. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
  159. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
  160. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  161. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
  162. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  163. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +34 -120
  164. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  165. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
  166. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  167. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
  168. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
  169. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  170. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
  171. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  172. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  173. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  174. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  175. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  176. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  177. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  178. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  179. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  180. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  181. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  182. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
  183. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  184. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  185. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  186. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  187. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  188. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  189. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  190. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +2 -1
  191. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  192. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
  193. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  194. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  195. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
  196. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  197. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
  198. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  199. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
  200. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
  201. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  202. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
  203. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  204. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
  205. package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
  206. package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
  207. package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.js.map +1 -1
  208. package/lib/components/ResourceCalculatorV1/components/index.mjs +3 -0
  209. package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
  210. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  211. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
  212. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  213. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  214. package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
  215. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  216. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  217. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  218. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  219. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  220. package/lib/components/index.d.ts +0 -1
  221. package/lib/components/index.js +0 -2
  222. package/lib/components/index.js.map +1 -1
  223. package/lib/components/index.mjs +0 -2
  224. package/lib/components/index.mjs.map +1 -1
  225. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  226. package/lib/constants/icons/options/colors/index.js +3 -3
  227. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  228. package/lib/constants/icons/options/styles/index.js +3 -3
  229. package/lib/constants/optionIcons.js +6 -6
  230. package/lib/constants/optionIcons.mjs +4 -4
  231. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  232. package/lib/constants/proStoreCategories/mapping/index.js +10 -15
  233. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  234. package/lib/constants/proStoreCategories/mapping/index.mjs +10 -15
  235. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  236. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
  237. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
  238. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  239. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
  240. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  241. package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
  242. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  243. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
  244. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  245. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  246. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  247. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  248. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  249. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  250. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  251. package/lib/constants/theme.js +0 -4
  252. package/lib/constants/theme.js.map +1 -1
  253. package/lib/constants/theme.mjs +0 -4
  254. package/lib/constants/theme.mjs.map +1 -1
  255. package/lib/contexts/MenuContext/context.js +1 -1
  256. package/lib/contexts/MenuContext/context.js.map +1 -1
  257. package/lib/contexts/MenuContext/context.mjs +1 -1
  258. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  259. package/lib/helpers/index.d.ts +0 -1
  260. package/lib/helpers/index.js +0 -11
  261. package/lib/helpers/index.js.map +1 -1
  262. package/lib/helpers/index.mjs +0 -1
  263. package/lib/helpers/index.mjs.map +1 -1
  264. package/lib/helpers/ux.d.ts +1 -9
  265. package/lib/helpers/ux.js +0 -15
  266. package/lib/helpers/ux.js.map +1 -1
  267. package/lib/helpers/ux.mjs +1 -15
  268. package/lib/helpers/ux.mjs.map +1 -1
  269. package/lib/types/index.d.ts +0 -1
  270. package/lib/types/index.js +0 -2
  271. package/lib/types/index.js.map +1 -1
  272. package/lib/types/index.mjs +0 -1
  273. package/lib/types/index.mjs.map +1 -1
  274. package/lib/utils/array.d.ts +0 -4
  275. package/lib/utils/array.js +0 -10
  276. package/lib/utils/array.js.map +1 -1
  277. package/lib/utils/array.mjs +1 -10
  278. package/lib/utils/array.mjs.map +1 -1
  279. package/lib/utils/money/constants.d.ts +25 -56
  280. package/lib/utils/money/constants.js +7 -72
  281. package/lib/utils/money/constants.js.map +1 -1
  282. package/lib/utils/money/constants.mjs +7 -70
  283. package/lib/utils/money/constants.mjs.map +1 -1
  284. package/lib/utils/money/format.d.ts +5 -10
  285. package/lib/utils/money/format.js +14 -22
  286. package/lib/utils/money/format.js.map +1 -1
  287. package/lib/utils/money/format.mjs +16 -23
  288. package/lib/utils/money/format.mjs.map +1 -1
  289. package/lib/utils/money/index.d.ts +1 -4
  290. package/lib/utils/money/index.js +8 -26
  291. package/lib/utils/money/index.js.map +1 -1
  292. package/lib/utils/money/index.mjs +4 -8
  293. package/lib/utils/money/index.mjs.map +1 -1
  294. package/lib/utils/money/misc.d.ts +28 -68
  295. package/lib/utils/money/misc.js +64 -35
  296. package/lib/utils/money/misc.js.map +1 -1
  297. package/lib/utils/money/misc.mjs +43 -32
  298. package/lib/utils/money/misc.mjs.map +1 -1
  299. package/lib/utils/money/tax.d.ts +2 -38
  300. package/lib/utils/money/tax.js +10 -46
  301. package/lib/utils/money/tax.js.map +1 -1
  302. package/lib/utils/money/tax.mjs +11 -42
  303. package/lib/utils/money/tax.mjs.map +1 -1
  304. package/lib/utils/money/types.d.ts +3 -78
  305. package/lib/utils/number.d.ts +1 -1
  306. package/lib/utils/number.js +1 -1
  307. package/lib/utils/number.js.map +1 -1
  308. package/lib/utils/number.mjs +1 -1
  309. package/lib/utils/number.mjs.map +1 -1
  310. package/lib/utils/validations.d.ts +15 -0
  311. package/lib/utils/validations.js +23 -0
  312. package/lib/utils/validations.js.map +1 -0
  313. package/lib/utils/validations.mjs +21 -0
  314. package/lib/utils/validations.mjs.map +1 -0
  315. package/package.json +1 -1
  316. package/lib/assets/efg.png +0 -0
  317. package/lib/assets/icon-location-pin.svg +0 -5
  318. package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
  319. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  320. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  321. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  322. package/lib/assets/ucg-max.png +0 -0
  323. package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +0 -2
  324. package/lib/components/Header/Navigation/ProMenu/ProMenu.js +0 -103
  325. package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +0 -1
  326. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +0 -81
  327. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +0 -1
  328. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +0 -23
  329. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +0 -121
  330. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +0 -1
  331. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +0 -106
  332. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +0 -1
  333. package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +0 -12
  334. package/lib/components/Header/Navigation/ProMenu/index.d.ts +0 -1
  335. package/lib/components/Header/Navigation/ProMenu/index.js +0 -6
  336. package/lib/components/Header/Navigation/ProMenu/index.mjs +0 -3
  337. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  338. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  339. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  340. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  341. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
  342. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
  343. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
  344. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
  345. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
  346. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
  347. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
  348. package/lib/helpers/product.d.ts +0 -87
  349. package/lib/helpers/product.js +0 -346
  350. package/lib/helpers/product.js.map +0 -1
  351. package/lib/helpers/product.mjs +0 -335
  352. package/lib/helpers/product.mjs.map +0 -1
  353. package/lib/types/product.d.ts +0 -87
  354. package/lib/types/product.js +0 -14
  355. package/lib/types/product.js.map +0 -1
  356. package/lib/types/product.mjs +0 -13
  357. package/lib/types/product.mjs.map +0 -1
  358. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  359. package/lib/utils/money/allocators/fixedAmount.js +0 -52
  360. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  361. package/lib/utils/money/allocators/fixedAmount.mjs +0 -50
  362. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  363. package/lib/utils/money/allocators/index.d.ts +0 -2
  364. package/lib/utils/money/allocators/index.js +0 -8
  365. package/lib/utils/money/allocators/index.js.map +0 -1
  366. package/lib/utils/money/allocators/index.mjs +0 -4
  367. package/lib/utils/money/allocators/index.mjs.map +0 -1
  368. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  369. package/lib/utils/money/allocators/productAmount.js +0 -98
  370. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  371. package/lib/utils/money/allocators/productAmount.mjs +0 -96
  372. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  373. package/lib/utils/money/exchangeRate.d.ts +0 -31
  374. package/lib/utils/money/exchangeRate.js +0 -27
  375. package/lib/utils/money/exchangeRate.js.map +0 -1
  376. package/lib/utils/money/exchangeRate.mjs +0 -23
  377. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  378. package/lib/utils/money/misc.private.d.ts +0 -23
  379. package/lib/utils/money/misc.private.js +0 -46
  380. package/lib/utils/money/misc.private.js.map +0 -1
  381. package/lib/utils/money/misc.private.mjs +0 -21
  382. package/lib/utils/money/misc.private.mjs.map +0 -1
  383. package/lib/utils/money/shipping.d.ts +0 -5
  384. package/lib/utils/money/shipping.js +0 -8
  385. package/lib/utils/money/shipping.js.map +0 -1
  386. package/lib/utils/money/shipping.mjs +0 -6
  387. package/lib/utils/money/shipping.mjs.map +0 -1
  388. package/lib/utils/money/tax.private.d.ts +0 -17
  389. package/lib/utils/money/tax.private.js +0 -65
  390. package/lib/utils/money/tax.private.js.map +0 -1
  391. package/lib/utils/money/tax.private.mjs +0 -60
  392. package/lib/utils/money/tax.private.mjs.map +0 -1
  393. package/lib/utils/productSort.d.ts +0 -41
  394. package/lib/utils/productSort.js +0 -67
  395. package/lib/utils/productSort.js.map +0 -1
  396. package/lib/utils/productSort.mjs +0 -60
  397. package/lib/utils/productSort.mjs.map +0 -1
  398. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
  399. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
  400. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
  401. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
  402. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
  403. /package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.mjs.map +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProMenu.mjs","sources":["../../../../../src/components/Header/Navigation/ProMenu/ProMenu.tsx"],"sourcesContent":["import { useMemo, useRef } from \"react\";\nimport { useHoverDirty } from \"react-use\";\n\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { Language } from \"../../../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../../../hooks\";\nimport { useHasTouch } from \"../../../../hooks/useHasTouch\";\nimport { en as EN_TRANSLATION } from \"../../translations\";\nimport * as S from \"./ProMenu.styles\";\nimport type { NavigationProMenuPrivateProps } from \"./ProMenu.types\";\n\nexport const NavigationProMenu = ({\n show,\n currentCountryName,\n handleStorePickerClick,\n productLineValue,\n productLineOptions,\n onProductLineChange,\n}: NavigationProMenuPrivateProps) => {\n const { motif } = useMenu();\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"../../translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"../../translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"../../translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"../../translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"../../translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"../../translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"../../translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"../../translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"../../translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"../../translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Refs\n // #############################################################################\n const wrapRef = useRef<HTMLDivElement>(null);\n\n // #############################################################################\n // Handle show\n // #############################################################################\n const wrapHover = useHoverDirty(wrapRef);\n const hasTouch = useHasTouch();\n\n const slideInView = useMemo((): boolean => {\n // Ignore hover on touch devices\n const hasHover = !hasTouch && wrapHover;\n\n // Show when parent or wrap has hover\n return show || hasHover;\n }, [hasTouch, show, wrapHover]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap ref={wrapRef} motif={motif} slideInView={slideInView}>\n <S.MenuWrap motif={motif}>\n <S.MenuWrapInner>\n <S.Container size=\"desktop\" noVerticalMargin>\n {/* Product line */}\n <S.ContainerRow>\n {productLineOptions.map((option) => (\n <S.LinkButton\n key={option.value}\n motif={motif}\n $active={option.value === productLineValue}\n onClick={() => onProductLineChange?.(option.value)}\n >\n {option.label}\n </S.LinkButton>\n ))}\n </S.ContainerRow>\n\n {/* Country */}\n {currentCountryName && (\n <S.ContainerRow>\n {currentCountryName}\n <S.LinkButton\n motif={motif}\n $active\n onClick={handleStorePickerClick}\n >\n {formatMessage(\"Change\")}\n </S.LinkButton>\n </S.ContainerRow>\n )}\n </S.Container>\n </S.MenuWrapInner>\n </S.MenuWrap>\n </S.Wrap>\n );\n};\n"],"names":["NavigationProMenu","show","currentCountryName","handleStorePickerClick","productLineValue","productLineOptions","onProductLineChange","motif","useMenu","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","wrapRef","useRef","wrapHover","useHoverDirty","hasTouch","useHasTouch","slideInView","useMemo","hasHover","jsx","S.Wrap","ref","children","S.MenuWrap","S.MenuWrapInner","jsxs","S.Container","size","noVerticalMargin","S.ContainerRow","map","option","S.LinkButton","$active","value","onClick","label"],"mappings":";;;;;;;;;;;;;;AAWO,MAAMA,oBAAoBA,CAAC;EAChCC,IAAA;EACAC,kBAAA;EACAC,sBAAA;EACAC,gBAAA;EACAC,kBAAA;EACAC;AACF,CAAqC,KAAA;EAC7B,MAAA;IAAEC;GAAM,GAAIC,OAAQ,EAAA;EACpB,MAAA;IAAEC;EAAc,CAAA,GAAIC,cAAe,CAAA;IACvCC,kBAAoB,EAAAC,cAAA;IACpBC,sBAAwB,EAAA;MACtB,CAACC,QAAA,CAASC,EAAE,GAAG,MACb,OAAO,gCAA4B,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACJ,QAAA,CAASK,EAAE,GAAG,MACb,OAAO,gCAA4B,CAAA,CAAEH,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACJ,QAAA,CAASM,EAAE,GAAG,MACb,OAAO,gCAA4B,CAAA,CAAEJ,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACJ,QAAA,CAASO,EAAE,GAAG,MACb,OAAO,gCAA4B,CAAA,CAAEL,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACJ,QAAA,CAASQ,EAAE,GAAG,MACb,OAAO,gCAA4B,CAAA,CAAEN,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACJ,QAAA,CAASS,EAAE,GAAG,MACb,OAAO,gCAA4B,CAAA,CAAEP,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACJ,QAAA,CAASU,EAAE,GAAG,MACb,OAAO,mCAA+B,CAAA,CAAER,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MACnE,CAACJ,QAAA,CAASW,EAAE,GAAG,MACb,OAAO,qCAAiC,CAAA,CAAET,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MACrE,CAACJ,QAAA,CAASY,EAAE,GAAG,MACb,OAAO,gCAA4B,CAAA,CAAEV,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAChE,CAACJ,QAAA,CAASa,EAAE,GAAG,MACb,OAAO,wCAAoC,CAAA,CAAEX,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO;IAC1E;EAAA,CACD,CAAA;EAKK,MAAAU,OAAA,GAAUC,OAAuB,IAAI,CAAA;EAKrC,MAAAC,SAAA,GAAYC,cAAcH,OAAO,CAAA;EACvC,MAAMI,WAAWC,WAAY,EAAA;EAEvB,MAAAC,WAAA,GAAcC,QAAQ,MAAe;IAEnC,MAAAC,QAAA,GAAW,CAACJ,QAAY,IAAAF,SAAA;IAG9B,OAAO7B,IAAQ,IAAAmC,QAAA;EACd,CAAA,EAAA,CAACJ,QAAU,EAAA/B,IAAA,EAAM6B,SAAS,CAAC,CAAA;EAM5B,OAAA,eAAAO,GAAA,CAACC,IAAE,EAAF;IAAOC,GAAA,EAAKX;IAASrB,KAAc;IAAA2B,WAAA;IAClCM,QAAC,EAAA,eAAAH,GAAA,CAAAI,QAAA,EAAA;MAAWlC;MACViC,QAAC,EAAA,eAAAH,GAAA,CAAAK,aAAA,EAAA;QACCF,QAAC,EAAA,eAAAG,IAAA,CAAAC,WAAA;UAAYC,IAAA,EAAK,SAAU;UAAAC,gBAAA,EAAgB,IAE1C;UAAAN,QAAA,EAAA,CAAA,eAAAH,GAAA,CAACU,YAAA,EAAA;YACEP,QAAmB,EAAAnC,kBAAA,CAAA2C,GAAA,CAAKC,MACvB,mBAAAZ,GAAA,CAACa,UAAE,EAAF;cAEC3C,KAAA;cACA4C,OAAA,EAASF,OAAOG,KAAU,KAAAhD,gBAAA;cAC1BiD,OAAS,EAAAA,CAAA,KAAM/C,mBAAsB,GAAA2C,MAAA,CAAOG,KAAK,CAAA;cAEhDZ,QAAO,EAAAS,MAAA,CAAAK;YAAA,CAAA,EALHL,MAAO,CAAAG,KAOf,CAAA;WACH,CAAA,EAGClD,kBACC,mBAAAyC,IAAA,CAACI,YAAE,EAAF;YACEP,QAAA,EAAA,CAAAtC,kBAAA,EAAA,eACDmC,GAAA,CAACa,UAAE,EAAF;cACC3C,KAAA;cACA4C,OAAO,EAAA,IAAA;cACPE,OAAS,EAAAlD,sBAAA;cAERqC,wBAAc,QAAQ;YAAA,CACzB,CAAA;WACF,CAAA;QAEJ,CAAA;MACF,CAAA;KACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1,23 +0,0 @@
1
- import type { Motif } from "@ubnt/ui-components/utils";
2
- export declare const TRANSITION_DURATION_MS = 250;
3
- export declare const GLASS_COVER_Z_INDEX: number;
4
- export declare const MenuWrapInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
- export declare const MenuWrap: import("styled-components").StyledComponent<"nav", import("styled-components").DefaultTheme, {
6
- motif: Motif;
7
- }, never>;
8
- export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
- motif: Motif;
10
- slideInView: boolean;
11
- }, never>;
12
- export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../../../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
13
- export declare const ContainerRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
- interface LinkButtonProps {
15
- $active?: boolean;
16
- motif: Motif;
17
- }
18
- export declare const LinkButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../Button/Button.types").ButtonProps & {
19
- children?: import("react").ReactNode;
20
- } & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {
21
- variant: "link";
22
- } & LinkButtonProps, "variant">;
23
- export {};
@@ -1,121 +0,0 @@
1
- 'use strict';
2
-
3
- var styled = require('styled-components');
4
- var theme = require('../../../../constants/theme.js');
5
- require('../../../Button/index.js');
6
- require('../../../Container/index.js');
7
- var Container_styles = require('../../../Container/Container.styles.js');
8
- var Container$1 = require('../../../Container/Container.js');
9
- var Button = require('../../../Button/Button.js');
10
- function _interopDefault(e) {
11
- return e && e.__esModule ? e : {
12
- default: e
13
- };
14
- }
15
- var styled__default = /*#__PURE__*/_interopDefault(styled);
16
- "use strict";
17
- const PRO_MENU_Z_INDEX = theme.theme.zIndex.header - 1;
18
- const TRANSITION_DURATION_MS = 250;
19
- const GLASS_COVER_Z_INDEX = TRANSITION_DURATION_MS - 1;
20
- const withCssTransition = props => styled.css`
21
- transition: ${TRANSITION_DURATION_MS}ms ease-out;
22
- transition-property: ${props.join(",")};
23
- `;
24
- const MenuWrapInner = styled__default["default"].div`
25
- overflow: hidden;
26
-
27
- opacity: 0;
28
- translate: 0 -5px;
29
- ${withCssTransition(["opacity", "translate"])};
30
- transition-duration: ${TRANSITION_DURATION_MS * 1.5}ms;
31
- `;
32
- const MenuWrap = styled__default["default"].nav`
33
- background: ${({
34
- motif
35
- }) => theme.theme.colors.menu.base[motif]};
36
- display: grid;
37
- position: absolute;
38
- width: 100%;
39
-
40
- grid-template-rows: 0fr;
41
- ${withCssTransition(["grid-template-rows", "height"])};
42
- `;
43
- const Wrap = styled__default["default"].div`
44
- position: relative;
45
- height: 0;
46
-
47
- /* General font config */
48
- font-size: 14px;
49
- line-height: ${20 / 14};
50
- color: ${({
51
- motif
52
- }) => theme.theme.colors.menu.proSubMenuText[motif]};
53
-
54
- /* Handle slide in */
55
- ${({
56
- slideInView
57
- }) => slideInView && styled.css`
58
- z-index: ${PRO_MENU_Z_INDEX};
59
-
60
- ${MenuWrap} {
61
- grid-template-rows: 1fr;
62
- }
63
-
64
- ${MenuWrapInner} {
65
- opacity: 1;
66
- translate: 0;
67
- }
68
- `}
69
- `;
70
- const Container = styled__default["default"](Container$1.Container)`
71
- padding-top: 16px;
72
- padding-bottom: 25px;
73
-
74
- ${Container_styles.WrapPadding} {
75
- flex-direction: column;
76
- align-items: flex-start;
77
- gap: 8px;
78
- }
79
- `;
80
- const ContainerRow = styled__default["default"].div`
81
- display: flex;
82
- gap: 16px;
83
- `;
84
- const LinkButton = styled__default["default"](Button.Button).attrs({
85
- variant: "link"
86
- })`
87
- font-size: inherit;
88
- line-height: inherit;
89
- text-align: left;
90
- font-weight: normal;
91
-
92
- > * {
93
- justify-content: flex-start;
94
- }
95
-
96
- ${({
97
- motif
98
- }) => styled.css`
99
- color: ${theme.theme.colors.menu.proSubMenuText[motif]};
100
-
101
- :hover,
102
- :focus {
103
- color: ${theme.theme.colors.menu.active[motif]};
104
- }
105
- `}
106
- ${({
107
- $active,
108
- motif
109
- }) => $active && styled.css`
110
- color: ${theme.theme.colors.menu.active[motif]};
111
- `};
112
- `;
113
- exports.Container = Container;
114
- exports.ContainerRow = ContainerRow;
115
- exports.GLASS_COVER_Z_INDEX = GLASS_COVER_Z_INDEX;
116
- exports.LinkButton = LinkButton;
117
- exports.MenuWrap = MenuWrap;
118
- exports.MenuWrapInner = MenuWrapInner;
119
- exports.TRANSITION_DURATION_MS = TRANSITION_DURATION_MS;
120
- exports.Wrap = Wrap;
121
- //# sourceMappingURL=ProMenu.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProMenu.styles.js","sources":["../../../../../src/components/Header/Navigation/ProMenu/ProMenu.styles.ts"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport styled, { css } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { Button as ButtonBase } from \"../../../Button\";\nimport { Container as ContainerBase } from \"../../../Container\";\nimport { WrapPadding } from \"../../../Container/Container.styles\";\n\nconst PRO_MENU_Z_INDEX = theme.zIndex.header - 1;\n\nexport const TRANSITION_DURATION_MS = 250;\nexport const GLASS_COVER_Z_INDEX = TRANSITION_DURATION_MS - 1;\n\nconst withCssTransition = (props: string[]) => css`\n transition: ${TRANSITION_DURATION_MS}ms ease-out;\n transition-property: ${props.join(\",\")};\n`;\n\nexport const MenuWrapInner = styled.div`\n overflow: hidden;\n\n opacity: 0;\n translate: 0 -5px;\n ${withCssTransition([\"opacity\", \"translate\"])};\n transition-duration: ${TRANSITION_DURATION_MS * 1.5}ms;\n`;\n\nexport const MenuWrap = styled.nav<{ motif: Motif }>`\n background: ${({ motif }) => theme.colors.menu.base[motif]};\n display: grid;\n position: absolute;\n width: 100%;\n\n grid-template-rows: 0fr;\n ${withCssTransition([\"grid-template-rows\", \"height\"])};\n`;\n\nexport const Wrap = styled.div<{ motif: Motif; slideInView: boolean }>`\n position: relative;\n height: 0;\n\n /* General font config */\n font-size: 14px;\n line-height: ${20 / 14};\n color: ${({ motif }) => theme.colors.menu.proSubMenuText[motif]};\n\n /* Handle slide in */\n ${({ slideInView }) =>\n slideInView &&\n css`\n z-index: ${PRO_MENU_Z_INDEX};\n\n ${MenuWrap} {\n grid-template-rows: 1fr;\n }\n\n ${MenuWrapInner} {\n opacity: 1;\n translate: 0;\n }\n `}\n`;\n\nexport const Container = styled(ContainerBase)`\n padding-top: 16px;\n padding-bottom: 25px;\n\n ${WrapPadding} {\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n }\n`;\n\nexport const ContainerRow = styled.div`\n display: flex;\n gap: 16px;\n`;\n\ninterface LinkButtonProps {\n $active?: boolean;\n motif: Motif;\n}\nexport const LinkButton = styled(ButtonBase).attrs({\n variant: \"link\",\n})<LinkButtonProps>`\n font-size: inherit;\n line-height: inherit;\n text-align: left;\n font-weight: normal;\n\n > * {\n justify-content: flex-start;\n }\n\n ${({ motif }) => css`\n color: ${theme.colors.menu.proSubMenuText[motif]};\n\n :hover,\n :focus {\n color: ${theme.colors.menu.active[motif]};\n }\n `}\n ${({ $active, motif }) =>\n $active &&\n css`\n color: ${theme.colors.menu.active[motif]};\n `};\n`;\n"],"names":["PRO_MENU_Z_INDEX","theme","zIndex","header","TRANSITION_DURATION_MS","GLASS_COVER_Z_INDEX","withCssTransition","props","css","join","MenuWrapInner","styled","div","MenuWrap","nav","motif","colors","menu","base","Wrap","proSubMenuText","slideInView","Container","ContainerBase","WrapPadding","ContainerRow","LinkButton","ButtonBase","attrs","variant","active","$active"],"mappings":";;;;;;;;;;;;;;;;AAQA,MAAMA,gBAAA,GAAmBC,KAAM,CAAAA,KAAA,CAAAC,MAAA,CAAOC,MAAS,GAAA,CAAA;AAExC,MAAMC,sBAAyB,GAAA,GAAA;AAC/B,MAAMC,sBAAsBD,sBAAyB,GAAA,CAAA;AAE5D,MAAME,iBAAA,GAAqBC,KAAoB,IAAAC,UAAA;AAAA,gBAC/BJ,sBAAsB;AAAA,yBACbG,KAAA,CAAME,IAAK,CAAA,GAAG,CAAC;AAAA,CAAA;AAGjC,MAAMC,gBAAgBC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKhCN,iBAAkB,CAAA,CAAC,SAAW,EAAA,WAAW,CAAC,CAAC;AAAA,yBACtBF,yBAAyB,GAAG;AAAA,CAAA;AAG9C,MAAMS,WAAWF,eAAO,CAAA,SAAA,CAAA,CAAAG,GAAA;AAAA,gBACf,CAAC;EAAEC;AAAM,CAAA,KAAMd,YAAMe,MAAO,CAAAC,IAAA,CAAKC,IAAK,CAAAH,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMxDT,iBAAkB,CAAA,CAAC,oBAAsB,EAAA,QAAQ,CAAC,CAAC;AAAA,CAAA;AAGhD,MAAMa,OAAOR,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAMV,KAAK,EAAE;AAAA,WACb,CAAC;EAAEG;AAAM,CAAA,KAAMd,YAAMe,MAAO,CAAAC,IAAA,CAAKG,cAAe,CAAAL,KAAK,CAAC;AAAA;AAAA;AAAA,IAG7D,CAAC;EAAEM;CAAY,KACfA,WACA,IAAAb,MAAAA,CAAAA,GAAA;AAAA,iBACaR,gBAAgB;AAAA;AAAA,QAEzBa,QAAQ;AAAA;AAAA;AAAA;AAAA,QAIRH,aAAa;AAAA;AAAA;AAAA;AAAA,KAIhB;AAAA,CAAA;AAGQ,MAAAY,SAAA,GAAYX,eAAAA,CAAAA,SAAAA,EAAOY,WAAAA,CAAAA,SAAa,CAAA;AAAA;AAAA;AAAA;AAAA,IAIzCC,4BAAW;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOR,MAAMC,eAAed,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAS5B,MAAMc,UAAa,GAAAf,eAAA,CAAA,SAAA,CAAA,CAAOgB,aAAU,CAAA,CAAEC,KAAM,CAAA;EACjDC,OAAS,EAAA;AACX,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUG,CAAC;EAAEd;AAAY,CAAA,KAAAP,UAAA;AAAA,aACNP,KAAM,CAAAA,KAAA,CAAAe,MAAA,CAAOC,IAAK,CAAAG,cAAA,CAAeL,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA,eAIrCd,KAAM,CAAAA,KAAA,CAAAe,MAAA,CAAOC,IAAK,CAAAa,MAAA,CAAOf,KAAK,CAAC;AAAA;AAAA,GAE3C;AAAA,IACC,CAAC;EAAEgB,OAAS;EAAAhB;AAAA,MACZgB,OACA,IAAAvB,MAAAA,CAAAA,GAAA;AAAA,eACWP,KAAM,CAAAA,KAAA,CAAAe,MAAA,CAAOC,IAAK,CAAAa,MAAA,CAAOf,KAAK,CAAC;AAAA,KACzC;AAAA,CAAA;;;;;;;;"}
@@ -1,106 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { theme } from '../../../../constants/theme.mjs';
3
- import '../../../Button/index.mjs';
4
- import '../../../Container/index.mjs';
5
- import { WrapPadding } from '../../../Container/Container.styles.mjs';
6
- import { Container as Container$1 } from '../../../Container/Container.mjs';
7
- import { Button } from '../../../Button/Button.mjs';
8
- "use strict";
9
- const PRO_MENU_Z_INDEX = theme.zIndex.header - 1;
10
- const TRANSITION_DURATION_MS = 250;
11
- const GLASS_COVER_Z_INDEX = TRANSITION_DURATION_MS - 1;
12
- const withCssTransition = props => css`
13
- transition: ${TRANSITION_DURATION_MS}ms ease-out;
14
- transition-property: ${props.join(",")};
15
- `;
16
- const MenuWrapInner = styled.div`
17
- overflow: hidden;
18
-
19
- opacity: 0;
20
- translate: 0 -5px;
21
- ${withCssTransition(["opacity", "translate"])};
22
- transition-duration: ${TRANSITION_DURATION_MS * 1.5}ms;
23
- `;
24
- const MenuWrap = styled.nav`
25
- background: ${({
26
- motif
27
- }) => theme.colors.menu.base[motif]};
28
- display: grid;
29
- position: absolute;
30
- width: 100%;
31
-
32
- grid-template-rows: 0fr;
33
- ${withCssTransition(["grid-template-rows", "height"])};
34
- `;
35
- const Wrap = styled.div`
36
- position: relative;
37
- height: 0;
38
-
39
- /* General font config */
40
- font-size: 14px;
41
- line-height: ${20 / 14};
42
- color: ${({
43
- motif
44
- }) => theme.colors.menu.proSubMenuText[motif]};
45
-
46
- /* Handle slide in */
47
- ${({
48
- slideInView
49
- }) => slideInView && css`
50
- z-index: ${PRO_MENU_Z_INDEX};
51
-
52
- ${MenuWrap} {
53
- grid-template-rows: 1fr;
54
- }
55
-
56
- ${MenuWrapInner} {
57
- opacity: 1;
58
- translate: 0;
59
- }
60
- `}
61
- `;
62
- const Container = styled(Container$1)`
63
- padding-top: 16px;
64
- padding-bottom: 25px;
65
-
66
- ${WrapPadding} {
67
- flex-direction: column;
68
- align-items: flex-start;
69
- gap: 8px;
70
- }
71
- `;
72
- const ContainerRow = styled.div`
73
- display: flex;
74
- gap: 16px;
75
- `;
76
- const LinkButton = styled(Button).attrs({
77
- variant: "link"
78
- })`
79
- font-size: inherit;
80
- line-height: inherit;
81
- text-align: left;
82
- font-weight: normal;
83
-
84
- > * {
85
- justify-content: flex-start;
86
- }
87
-
88
- ${({
89
- motif
90
- }) => css`
91
- color: ${theme.colors.menu.proSubMenuText[motif]};
92
-
93
- :hover,
94
- :focus {
95
- color: ${theme.colors.menu.active[motif]};
96
- }
97
- `}
98
- ${({
99
- $active,
100
- motif
101
- }) => $active && css`
102
- color: ${theme.colors.menu.active[motif]};
103
- `};
104
- `;
105
- export { Container, ContainerRow, GLASS_COVER_Z_INDEX, LinkButton, MenuWrap, MenuWrapInner, TRANSITION_DURATION_MS, Wrap };
106
- //# sourceMappingURL=ProMenu.styles.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProMenu.styles.mjs","sources":["../../../../../src/components/Header/Navigation/ProMenu/ProMenu.styles.ts"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport styled, { css } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { Button as ButtonBase } from \"../../../Button\";\nimport { Container as ContainerBase } from \"../../../Container\";\nimport { WrapPadding } from \"../../../Container/Container.styles\";\n\nconst PRO_MENU_Z_INDEX = theme.zIndex.header - 1;\n\nexport const TRANSITION_DURATION_MS = 250;\nexport const GLASS_COVER_Z_INDEX = TRANSITION_DURATION_MS - 1;\n\nconst withCssTransition = (props: string[]) => css`\n transition: ${TRANSITION_DURATION_MS}ms ease-out;\n transition-property: ${props.join(\",\")};\n`;\n\nexport const MenuWrapInner = styled.div`\n overflow: hidden;\n\n opacity: 0;\n translate: 0 -5px;\n ${withCssTransition([\"opacity\", \"translate\"])};\n transition-duration: ${TRANSITION_DURATION_MS * 1.5}ms;\n`;\n\nexport const MenuWrap = styled.nav<{ motif: Motif }>`\n background: ${({ motif }) => theme.colors.menu.base[motif]};\n display: grid;\n position: absolute;\n width: 100%;\n\n grid-template-rows: 0fr;\n ${withCssTransition([\"grid-template-rows\", \"height\"])};\n`;\n\nexport const Wrap = styled.div<{ motif: Motif; slideInView: boolean }>`\n position: relative;\n height: 0;\n\n /* General font config */\n font-size: 14px;\n line-height: ${20 / 14};\n color: ${({ motif }) => theme.colors.menu.proSubMenuText[motif]};\n\n /* Handle slide in */\n ${({ slideInView }) =>\n slideInView &&\n css`\n z-index: ${PRO_MENU_Z_INDEX};\n\n ${MenuWrap} {\n grid-template-rows: 1fr;\n }\n\n ${MenuWrapInner} {\n opacity: 1;\n translate: 0;\n }\n `}\n`;\n\nexport const Container = styled(ContainerBase)`\n padding-top: 16px;\n padding-bottom: 25px;\n\n ${WrapPadding} {\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n }\n`;\n\nexport const ContainerRow = styled.div`\n display: flex;\n gap: 16px;\n`;\n\ninterface LinkButtonProps {\n $active?: boolean;\n motif: Motif;\n}\nexport const LinkButton = styled(ButtonBase).attrs({\n variant: \"link\",\n})<LinkButtonProps>`\n font-size: inherit;\n line-height: inherit;\n text-align: left;\n font-weight: normal;\n\n > * {\n justify-content: flex-start;\n }\n\n ${({ motif }) => css`\n color: ${theme.colors.menu.proSubMenuText[motif]};\n\n :hover,\n :focus {\n color: ${theme.colors.menu.active[motif]};\n }\n `}\n ${({ $active, motif }) =>\n $active &&\n css`\n color: ${theme.colors.menu.active[motif]};\n `};\n`;\n"],"names":["PRO_MENU_Z_INDEX","theme","zIndex","header","TRANSITION_DURATION_MS","GLASS_COVER_Z_INDEX","withCssTransition","props","css","join","MenuWrapInner","styled","div","MenuWrap","nav","motif","colors","menu","base","Wrap","proSubMenuText","slideInView","Container","ContainerBase","WrapPadding","ContainerRow","LinkButton","ButtonBase","attrs","variant","active","$active"],"mappings":";;;;;;;;AAQA,MAAMA,gBAAA,GAAmBC,KAAM,CAAAC,MAAA,CAAOC,MAAS,GAAA,CAAA;AAExC,MAAMC,sBAAyB,GAAA,GAAA;AAC/B,MAAMC,sBAAsBD,sBAAyB,GAAA,CAAA;AAE5D,MAAME,iBAAA,GAAqBC,KAAoB,IAAAC,GAAA;AAAA,gBAC/BJ,sBAAsB;AAAA,yBACbG,KAAA,CAAME,IAAK,CAAA,GAAG,CAAC;AAAA,CAAA;AAGjC,MAAMC,gBAAgBC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKhCN,iBAAkB,CAAA,CAAC,SAAW,EAAA,WAAW,CAAC,CAAC;AAAA,yBACtBF,yBAAyB,GAAG;AAAA,CAAA;AAG9C,MAAMS,WAAWF,MAAO,CAAAG,GAAA;AAAA,gBACf,CAAC;EAAEC;AAAM,CAAA,KAAMd,MAAMe,MAAO,CAAAC,IAAA,CAAKC,IAAK,CAAAH,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMxDT,iBAAkB,CAAA,CAAC,oBAAsB,EAAA,QAAQ,CAAC,CAAC;AAAA,CAAA;AAGhD,MAAMa,OAAOR,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAMV,KAAK,EAAE;AAAA,WACb,CAAC;EAAEG;AAAM,CAAA,KAAMd,MAAMe,MAAO,CAAAC,IAAA,CAAKG,cAAe,CAAAL,KAAK,CAAC;AAAA;AAAA;AAAA,IAG7D,CAAC;EAAEM;CAAY,KACfA,WACA,IAAAb,GAAA;AAAA,iBACaR,gBAAgB;AAAA;AAAA,QAEzBa,QAAQ;AAAA;AAAA;AAAA;AAAA,QAIRH,aAAa;AAAA;AAAA;AAAA;AAAA,KAIhB;AAAA,CAAA;AAGQ,MAAAY,SAAA,GAAYX,OAAOY,WAAa,CAAA;AAAA;AAAA;AAAA;AAAA,IAIzCC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOR,MAAMC,eAAed,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAS5B,MAAMc,UAAa,GAAAf,MAAA,CAAOgB,MAAU,CAAA,CAAEC,KAAM,CAAA;EACjDC,OAAS,EAAA;AACX,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUG,CAAC;EAAEd;AAAY,CAAA,KAAAP,GAAA;AAAA,aACNP,KAAM,CAAAe,MAAA,CAAOC,IAAK,CAAAG,cAAA,CAAeL,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA,eAIrCd,KAAM,CAAAe,MAAA,CAAOC,IAAK,CAAAa,MAAA,CAAOf,KAAK,CAAC;AAAA;AAAA,GAE3C;AAAA,IACC,CAAC;EAAEgB,OAAS;EAAAhB;AAAA,MACZgB,OACA,IAAAvB,GAAA;AAAA,eACWP,KAAM,CAAAe,MAAA,CAAOC,IAAK,CAAAa,MAAA,CAAOf,KAAK,CAAC;AAAA,KACzC;AAAA,CAAA;"}
@@ -1,12 +0,0 @@
1
- import type { ProductLine } from "../../../../types";
2
- import type { HeaderProductLineOption } from "../../Header.types";
3
- export interface NavigationProMenuProps {
4
- }
5
- export interface NavigationProMenuPrivateProps extends NavigationProMenuProps {
6
- show: boolean;
7
- currentCountryName?: string;
8
- handleStorePickerClick?: () => void;
9
- productLineValue?: ProductLine;
10
- productLineOptions: HeaderProductLineOption[];
11
- onProductLineChange?: (line: ProductLine) => void;
12
- }
@@ -1 +0,0 @@
1
- export * from "./ProMenu";
@@ -1,6 +0,0 @@
1
- 'use strict';
2
-
3
- var ProMenu = require('./ProMenu.js');
4
- "use strict";
5
- exports.NavigationProMenu = ProMenu.NavigationProMenu;
6
- //# sourceMappingURL=index.js.map
@@ -1,3 +0,0 @@
1
- export { NavigationProMenu } from './ProMenu.mjs';
2
- "use strict";
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalOptionSelect.js","sources":["../../../src/components/HorizontalOptionSelect/HorizontalOptionSelect.tsx"],"sourcesContent":["import * as S from \"./HorizontalOptionSelect.styles\";\nimport type { HorizontalOptionSelectProps } from \"./HorizontalOptionSelect.types\";\n\nexport const HorizontalOptionSelect = ({\n items,\n activeId,\n className,\n symetricButtons,\n}: HorizontalOptionSelectProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.HorizontalOptionSelectWrap className={className}>\n {items.map((item) => (\n <S.Button\n key={item.id}\n onClick={item.onSelect}\n $active={activeId === item.id}\n $symetricButtons={symetricButtons}\n >\n {item.label}\n </S.Button>\n ))}\n </S.HorizontalOptionSelectWrap>\n );\n};\n"],"names":["HorizontalOptionSelect","items","activeId","className","symetricButtons","jsx","S.HorizontalOptionSelectWrap","HorizontalOptionSelectWrap","children","map","item","S.Button","Button","onClick","onSelect","$active","id","$symetricButtons","label"],"mappings":";;;;;AAGO,MAAMA,yBAAyBA,CAAC;EACrCC,KAAA;EACAC,QAAA;EACAC,SAAA;EACAC;AACF,CAAmC,KAAA;EAK/B,sBAAAC,UAAA,CAAAA,GAAA,CAACC,6BAAA,CAAAC,0BAAA,EAAA;IAA6BJ;IAC3BK,QAAM,EAAAP,KAAA,CAAAQ,GAAA,CAAKC,IACV,mBAAAL,UAAA,CAAAA,GAAA,CAACM,6BAAE,CAAAC,MAAA,EAAF;MAECC,SAASH,IAAK,CAAAI,QAAA;MACdC,OAAA,EAASb,aAAaQ,IAAK,CAAAM,EAAA;MAC3BC,gBAAkB,EAAAb,eAAA;MAEjBI,QAAK,EAAAE,IAAA,CAAAQ;IAAA,CAAA,EALDR,IAAK,CAAAM,EAOb,CAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalOptionSelect.mjs","sources":["../../../src/components/HorizontalOptionSelect/HorizontalOptionSelect.tsx"],"sourcesContent":["import * as S from \"./HorizontalOptionSelect.styles\";\nimport type { HorizontalOptionSelectProps } from \"./HorizontalOptionSelect.types\";\n\nexport const HorizontalOptionSelect = ({\n items,\n activeId,\n className,\n symetricButtons,\n}: HorizontalOptionSelectProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.HorizontalOptionSelectWrap className={className}>\n {items.map((item) => (\n <S.Button\n key={item.id}\n onClick={item.onSelect}\n $active={activeId === item.id}\n $symetricButtons={symetricButtons}\n >\n {item.label}\n </S.Button>\n ))}\n </S.HorizontalOptionSelectWrap>\n );\n};\n"],"names":["HorizontalOptionSelect","items","activeId","className","symetricButtons","jsx","S.HorizontalOptionSelectWrap","children","map","item","S.Button","onClick","onSelect","$active","id","$symetricButtons","label"],"mappings":";;;AAGO,MAAMA,yBAAyBA,CAAC;EACrCC,KAAA;EACAC,QAAA;EACAC,SAAA;EACAC;AACF,CAAmC,KAAA;EAK/B,sBAAAC,GAAA,CAACC,0BAAA,EAAA;IAA6BH;IAC3BI,QAAM,EAAAN,KAAA,CAAAO,GAAA,CAAKC,IACV,mBAAAJ,GAAA,CAACK,MAAE,EAAF;MAECC,SAASF,IAAK,CAAAG,QAAA;MACdC,OAAA,EAASX,aAAaO,IAAK,CAAAK,EAAA;MAC3BC,gBAAkB,EAAAX,eAAA;MAEjBG,QAAK,EAAAE,IAAA,CAAAO;IAAA,CAAA,EALDP,IAAK,CAAAK,EAOb,CAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalOptionSelect.styles.js","sources":["../../../src/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const HorizontalOptionSelectWrap = styled.div`\n border-radius: 100px;\n background-color: #f4f5f6;\n display: flex;\n padding: 2px;\n overflow-x: auto;\n\n &::-webkit-slider-thumb,\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const Button = styled.button<{\n $active: boolean;\n $symetricButtons?: boolean;\n}>`\n flex: ${({ $symetricButtons }) => ($symetricButtons ? \"1\" : \"0 1 auto\")};\n font-size: 14px;\n line-height: 24px;\n font-weight: 400;\n\n border: none;\n outline: none;\n box-shadow: none;\n\n padding: 2px;\n border-radius: 100px;\n\n background-color: ${({ $active }) => ($active ? \"#FFFFFF\" : \"transparent\")};\n color: ${({ $active }) => ($active ? \"#006FFF\" : \"#808893\")};\n\n flex-grow: 1;\n white-space: nowrap;\n cursor: pointer;\n`;\n"],"names":["HorizontalOptionSelectWrap","styled","div","Button","button","$symetricButtons","$active"],"mappings":";;;;;;;;;;AAEO,MAAMA,6BAA6BC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAa1C,MAAMC,SAASF,eAAO,CAAA,SAAA,CAAA,CAAAG,MAAA;AAAA,UAInB,CAAC;EAAEC;AAAA,CAAwB,KAAAA,gBAAA,GAAmB,MAAM,UAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAYnD,CAAC;EAAEC;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,aAAc;AAAA,WACjE,CAAC;EAAEA;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalOptionSelect.styles.mjs","sources":["../../../src/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const HorizontalOptionSelectWrap = styled.div`\n border-radius: 100px;\n background-color: #f4f5f6;\n display: flex;\n padding: 2px;\n overflow-x: auto;\n\n &::-webkit-slider-thumb,\n &::-webkit-scrollbar {\n display: none;\n }\n`;\n\nexport const Button = styled.button<{\n $active: boolean;\n $symetricButtons?: boolean;\n}>`\n flex: ${({ $symetricButtons }) => ($symetricButtons ? \"1\" : \"0 1 auto\")};\n font-size: 14px;\n line-height: 24px;\n font-weight: 400;\n\n border: none;\n outline: none;\n box-shadow: none;\n\n padding: 2px;\n border-radius: 100px;\n\n background-color: ${({ $active }) => ($active ? \"#FFFFFF\" : \"transparent\")};\n color: ${({ $active }) => ($active ? \"#006FFF\" : \"#808893\")};\n\n flex-grow: 1;\n white-space: nowrap;\n cursor: pointer;\n`;\n"],"names":["HorizontalOptionSelectWrap","styled","div","Button","button","$symetricButtons","$active"],"mappings":";;AAEO,MAAMA,6BAA6BC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAa1C,MAAMC,SAASF,MAAO,CAAAG,MAAA;AAAA,UAInB,CAAC;EAAEC;AAAA,CAAwB,KAAAA,gBAAA,GAAmB,MAAM,UAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAYnD,CAAC;EAAEC;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,aAAc;AAAA,WACjE,CAAC;EAAEA;AAAA,CAAe,KAAAA,OAAA,GAAU,YAAY,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- });
6
- var efg = require("../../../../assets/efg.png");
7
- function _interopDefault(e) {
8
- return e && e.__esModule ? e : {
9
- default: e
10
- };
11
- }
12
- var efg__default = /*#__PURE__*/_interopDefault(efg);
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function () {
16
- return efg__default["default"];
17
- }
18
- });
19
- Object.keys(efg).forEach(function (k) {
20
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
- enumerable: true,
22
- get: function () {
23
- return efg[k];
24
- }
25
- });
26
- });
27
- //# sourceMappingURL=efg.png.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"efg.png.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +0,0 @@
1
- export * from "../../../../assets/efg.png";
2
- export { default } from "../../../../assets/efg.png";
3
- //# sourceMappingURL=efg.png.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"efg.png.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ucg-max.png.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +0,0 @@
1
- export * from "../../../../assets/ucg-max.png";
2
- export { default } from "../../../../assets/ucg-max.png";
3
- //# sourceMappingURL=ucg-max.png.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ucg-max.png.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,87 +0,0 @@
1
- import type { ParsedCategoryItem } from "../constants/proStoreCategories";
2
- import type { CollectionSection, MappedProductSection, Nullish, ProductTagFragment, Section, StorefrontOption, StorefrontProduct, StoreId } from "../types";
3
- export declare const isNonNullish: <T>(entry: T | null | undefined) => entry is T;
4
- /**
5
- * Removes products that have tag starting with `EXCLUDE_PRODUCT_FROM_STORE_GRID_TAG_PREFIX`
6
- * and ends with `storeId`, e.g. `"exclude-from-store-grid:us`
7
- *
8
- * @warning Use this function only on grid and breadcrumbs products
9
- */
10
- export declare const removeExcludedProducts: <T extends {
11
- tags: ProductTagFragment[];
12
- }>(products: T[], storeId: StoreId) => T[];
13
- export declare enum HDDProductSlugs {
14
- HDD_1TB = "uacc-hdd-s-1tb",
15
- HDD_8TB_Enterprise = "uacc-hdd-e-8tb",
16
- HDD_16TB_Enterprise = "uacc-hdd-e-16tb"
17
- }
18
- /**
19
- * Recursively create section hierarchy
20
- */
21
- export declare const createSectionHierarchy: (sections: CollectionSection[], level?: number) => Section[];
22
- export declare enum MagicCollectionTags {
23
- /**
24
- * Used to determine if collection should be shown in an accessory
25
- * layout style where sections are placed inside variant cards
26
- */
27
- LayoutAccessories = "layout-accessories",
28
- /**
29
- * Used to determine if collection is pro-store specific and should
30
- * be redirected to pro-store's appropriate category
31
- */
32
- ProStore = "pro-store",
33
- /**
34
- * Used to disable length options (disable product splitting by "length")
35
- */
36
- DisableLengthOptions = "disable-length-options",
37
- /**
38
- * Used to disable speed options (disable product splitting by "speed")
39
- */
40
- DisableSpeedOptions = "disable-speed-options"
41
- }
42
- export declare enum ProductOptions {
43
- Length = "length",
44
- Speed = "speed",
45
- Color = "color"
46
- }
47
- export declare const COLLECTION_SECTION_OTHER_ID = "other";
48
- /**
49
- * Create product groups
50
- */
51
- export declare const getProductGroups: <T extends StorefrontProduct & {
52
- options: StorefrontOption[];
53
- }>(products?: T[], sectionHierarchy?: Nullish<Section[]>, tags?: Array<{
54
- id: string;
55
- name: string;
56
- }>) => MappedProductSection<T>[] | undefined;
57
- export declare const getProStoreCategory: ({ queryCategory, product, ignoreQuery, }: {
58
- queryCategory?: string;
59
- product: Pick<StorefrontProduct, "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
60
- ignoreQuery?: boolean;
61
- }) => string | null;
62
- type StoreProductsData = ({
63
- category: {
64
- id: string;
65
- label: string | null;
66
- } | undefined;
67
- } & {
68
- products: StorefrontProduct[];
69
- }) | {
70
- productGroups: MappedProductSection<StorefrontProduct>[];
71
- };
72
- export declare const getStoreProducts: ({ storeId, queryCategory, currentProduct, collections, allCategoryItems, }: {
73
- storeId: StoreId;
74
- queryCategory: string | undefined;
75
- currentProduct: Pick<StorefrontProduct, "id" | "slug" | "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
76
- collections: Array<{
77
- slug: string;
78
- sections: Array<{
79
- id: string;
80
- title: string;
81
- productTags: Array<string>;
82
- }>;
83
- products: Array<Pick<StorefrontProduct, "id" | "slug" | "tags" | "variants" | "options" | "title" | "status" | "minDisplayPrice">>;
84
- }>;
85
- allCategoryItems: ParsedCategoryItem[];
86
- }) => StoreProductsData;
87
- export {};