@ubnt/store.core 9.19.1 → 9.20.0-alpha.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.
- package/CHANGELOG.md +199 -3
- package/lib/_virtual/_virtual_multi-entry.js +27 -12
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +14 -10
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/efg.png +0 -0
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.js +27 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucg-max.png +0 -0
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +2 -3
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +2 -3
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +4 -3
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +5 -4
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Header/AccountMenu/AccountMenu.js +11 -1
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/Header.js +6 -6
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +6 -6
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +2 -2
- package/lib/components/Header/Header.types.d.ts +12 -4
- package/lib/components/Header/Header.types.js +2 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +2 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +2 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js +103 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +81 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +23 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +121 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +106 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +12 -0
- package/lib/components/Header/Navigation/ProMenu/index.d.ts +1 -0
- package/lib/components/Header/Navigation/ProMenu/index.js +6 -0
- package/lib/components/{ResourceCalculatorV1/components → Header/Navigation/ProMenu}/index.js.map +1 -1
- package/lib/components/Header/Navigation/ProMenu/index.mjs +3 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +92 -95
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +92 -95
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +10 -4
- package/lib/components/Header/ProHeader/ProHeader.d.ts +3 -4
- package/lib/components/Header/ProHeader/ProHeader.js +247 -120
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +249 -124
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +4 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.js +23 -17
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +21 -18
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +4 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +4 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +4 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +4 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +4 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +4 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +4 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +4 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +4 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +4 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +4 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +4 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +4 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +4 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +4 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +4 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +4 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +4 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.js +3 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.mjs +3 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +10 -7
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +10 -7
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +1 -0
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.d.ts +3 -0
- package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
- package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +313 -17
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +311 -17
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +3 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +120 -34
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +120 -34
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +16 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +54 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +50 -11
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +1 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +1 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
- package/lib/{assets/icons/menu/icon-globe.svg.js → components/ResourceCalculatorV1/assets/consoles/efg.png.js} +6 -6
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +27 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +6 -4
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +6 -4
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/index.d.ts +1 -0
- package/lib/constants/proStoreCategories/mapping/index.js +54 -49
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +54 -49
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js +1 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +1 -0
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +3 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
- package/lib/constants/theme.js +4 -0
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +4 -0
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +1 -1
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +11 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -0
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/product.d.ts +87 -0
- package/lib/helpers/product.js +346 -0
- package/lib/helpers/product.js.map +1 -0
- package/lib/helpers/product.mjs +335 -0
- package/lib/helpers/product.mjs.map +1 -0
- package/lib/helpers/ux.d.ts +9 -1
- package/lib/helpers/ux.js +15 -0
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +15 -1
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +1 -0
- package/lib/types/index.mjs.map +1 -1
- package/lib/types/product.d.ts +87 -0
- package/lib/types/product.js +14 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/product.mjs +13 -0
- package/lib/types/product.mjs.map +1 -0
- package/lib/utils/array.d.ts +4 -0
- package/lib/utils/array.js +10 -0
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +10 -1
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/allocators/fixedAmount.d.ts +26 -0
- package/lib/utils/money/allocators/fixedAmount.js +52 -0
- package/lib/utils/money/allocators/fixedAmount.js.map +1 -0
- package/lib/utils/money/allocators/fixedAmount.mjs +50 -0
- package/lib/utils/money/allocators/fixedAmount.mjs.map +1 -0
- package/lib/utils/money/allocators/index.d.ts +2 -0
- package/lib/utils/money/allocators/index.js +8 -0
- package/lib/utils/money/allocators/index.js.map +1 -0
- package/lib/utils/money/allocators/index.mjs +4 -0
- package/lib/utils/money/allocators/index.mjs.map +1 -0
- package/lib/utils/money/allocators/productAmount.d.ts +13 -0
- package/lib/utils/money/allocators/productAmount.js +98 -0
- package/lib/utils/money/allocators/productAmount.js.map +1 -0
- package/lib/utils/money/allocators/productAmount.mjs +96 -0
- package/lib/utils/money/allocators/productAmount.mjs.map +1 -0
- package/lib/utils/money/constants.d.ts +56 -25
- package/lib/utils/money/constants.js +72 -7
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +70 -7
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/exchangeRate.d.ts +31 -0
- package/lib/utils/money/exchangeRate.js +27 -0
- package/lib/utils/money/exchangeRate.js.map +1 -0
- package/lib/utils/money/exchangeRate.mjs +23 -0
- package/lib/utils/money/exchangeRate.mjs.map +1 -0
- package/lib/utils/money/format.d.ts +10 -5
- package/lib/utils/money/format.js +22 -14
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +23 -16
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.d.ts +4 -1
- package/lib/utils/money/index.js +26 -8
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +8 -4
- package/lib/utils/money/index.mjs.map +1 -1
- package/lib/utils/money/misc.d.ts +68 -28
- package/lib/utils/money/misc.js +35 -64
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs +32 -43
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/money/misc.private.d.ts +23 -0
- package/lib/utils/money/misc.private.js +46 -0
- package/lib/utils/money/misc.private.js.map +1 -0
- package/lib/utils/money/misc.private.mjs +21 -0
- package/lib/utils/money/misc.private.mjs.map +1 -0
- package/lib/utils/money/shipping.d.ts +5 -0
- package/lib/utils/money/shipping.js +8 -0
- package/lib/utils/money/shipping.js.map +1 -0
- package/lib/utils/money/shipping.mjs +6 -0
- package/lib/utils/money/shipping.mjs.map +1 -0
- package/lib/utils/money/tax.d.ts +38 -2
- package/lib/utils/money/tax.js +46 -10
- package/lib/utils/money/tax.js.map +1 -1
- package/lib/utils/money/tax.mjs +42 -11
- package/lib/utils/money/tax.mjs.map +1 -1
- package/lib/utils/money/tax.private.d.ts +17 -0
- package/lib/utils/money/tax.private.js +65 -0
- package/lib/utils/money/tax.private.js.map +1 -0
- package/lib/utils/money/tax.private.mjs +60 -0
- package/lib/utils/money/tax.private.mjs.map +1 -0
- package/lib/utils/money/types.d.ts +78 -3
- package/lib/utils/number.d.ts +1 -1
- package/lib/utils/number.js +1 -1
- package/lib/utils/number.js.map +1 -1
- package/lib/utils/number.mjs +1 -1
- package/lib/utils/number.mjs.map +1 -1
- package/lib/utils/productSort.d.ts +41 -0
- package/lib/utils/productSort.js +67 -0
- package/lib/utils/productSort.js.map +1 -0
- package/lib/utils/productSort.mjs +60 -0
- package/lib/utils/productSort.mjs.map +1 -0
- package/package.json +1 -1
- package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.d.ts +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.js +0 -5
- package/lib/components/ResourceCalculatorV1/components/index.mjs +0 -3
- package/lib/utils/validations.d.ts +0 -15
- package/lib/utils/validations.js +0 -23
- package/lib/utils/validations.js.map +0 -1
- package/lib/utils/validations.mjs +0 -21
- package/lib/utils/validations.mjs.map +0 -1
- /package/lib/components/{ResourceCalculatorV1/components → Header/Navigation/ProMenu}/index.mjs.map +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.d.ts +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js.map +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs.map +0 -0
|
@@ -12,7 +12,7 @@ export declare const Wrap: import("styled-components").StyledComponent<"div", im
|
|
|
12
12
|
slideInView?: boolean;
|
|
13
13
|
noTransition?: boolean;
|
|
14
14
|
}, never>;
|
|
15
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
15
|
+
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>;
|
|
16
16
|
export declare const PrimaryList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
17
17
|
export declare const Button: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../Button/Button.types").ButtonProps & {
|
|
18
18
|
children?: import("react").ReactNode;
|
|
@@ -4,7 +4,7 @@ export declare const SECTION_SEARCH_RESULTS_ITEM_HEIGHT = 76;
|
|
|
4
4
|
export declare const SECTION_ITEM_IMAGE_SIZE = 56;
|
|
5
5
|
export declare const SECTION_ITEM_IMAGE_MARGIN = 10;
|
|
6
6
|
export declare const IOS_GHOST_MENU_HEIGHT = 69;
|
|
7
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
7
|
+
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>;
|
|
8
8
|
export declare const SearchTextDot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
9
|
export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
10
10
|
motif: Motif;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var reactUse = require('react-use');
|
|
6
|
+
require('../../../../contexts/MenuContext/index.js');
|
|
7
|
+
require('../../../../contexts/MenuContext/mapping.js');
|
|
8
|
+
require('../../../../hooks/index.js');
|
|
9
|
+
var useHasTouch = require('../../../../hooks/useHasTouch.js');
|
|
10
|
+
require('../../translations/index.js');
|
|
11
|
+
var ProMenu_styles = require('./ProMenu.styles.js');
|
|
12
|
+
var context = require('../../../../contexts/MenuContext/context.js');
|
|
13
|
+
var useTranslation = require('../../../../hooks/useTranslation.js');
|
|
14
|
+
var en = require('../../translations/en.json.js');
|
|
15
|
+
var constants = require('../../../../types/constants.js');
|
|
16
|
+
"use strict";
|
|
17
|
+
const NavigationProMenu = ({
|
|
18
|
+
show,
|
|
19
|
+
currentCountryName,
|
|
20
|
+
handleStorePickerClick,
|
|
21
|
+
productLineValue,
|
|
22
|
+
productLineOptions,
|
|
23
|
+
onProductLineChange
|
|
24
|
+
}) => {
|
|
25
|
+
const {
|
|
26
|
+
motif
|
|
27
|
+
} = context.useMenu();
|
|
28
|
+
const {
|
|
29
|
+
formatMessage
|
|
30
|
+
} = useTranslation.useTranslation({
|
|
31
|
+
defaultTranslation: en["default"],
|
|
32
|
+
additionalTranslations: {
|
|
33
|
+
[constants.Language.Ja]: () => Promise.resolve().then(function () {
|
|
34
|
+
return require('../../translations/ja.json.js');
|
|
35
|
+
}).then(res => res.default),
|
|
36
|
+
[constants.Language.Ar]: () => Promise.resolve().then(function () {
|
|
37
|
+
return require('../../translations/ar.json.js');
|
|
38
|
+
}).then(res => res.default),
|
|
39
|
+
[constants.Language.De]: () => Promise.resolve().then(function () {
|
|
40
|
+
return require('../../translations/de.json.js');
|
|
41
|
+
}).then(res => res.default),
|
|
42
|
+
[constants.Language.Es]: () => Promise.resolve().then(function () {
|
|
43
|
+
return require('../../translations/es.json.js');
|
|
44
|
+
}).then(res => res.default),
|
|
45
|
+
[constants.Language.El]: () => Promise.resolve().then(function () {
|
|
46
|
+
return require('../../translations/el.json.js');
|
|
47
|
+
}).then(res => res.default),
|
|
48
|
+
[constants.Language.It]: () => Promise.resolve().then(function () {
|
|
49
|
+
return require('../../translations/it.json.js');
|
|
50
|
+
}).then(res => res.default),
|
|
51
|
+
[constants.Language.Pt]: () => Promise.resolve().then(function () {
|
|
52
|
+
return require('../../translations/pt-BR.json.js');
|
|
53
|
+
}).then(res => res.default),
|
|
54
|
+
[constants.Language.Zh]: () => Promise.resolve().then(function () {
|
|
55
|
+
return require('../../translations/zh-Hans.json.js');
|
|
56
|
+
}).then(res => res.default),
|
|
57
|
+
[constants.Language.Fr]: () => Promise.resolve().then(function () {
|
|
58
|
+
return require('../../translations/fr.json.js');
|
|
59
|
+
}).then(res => res.default),
|
|
60
|
+
[constants.Language.Tw]: () => Promise.resolve().then(function () {
|
|
61
|
+
return require('../../translations/zh-Hant-TW.json.js');
|
|
62
|
+
}).then(res => res.default)
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
const wrapRef = react.useRef(null);
|
|
66
|
+
const wrapHover = reactUse.useHoverDirty(wrapRef);
|
|
67
|
+
const hasTouch = useHasTouch.useHasTouch();
|
|
68
|
+
const slideInView = react.useMemo(() => {
|
|
69
|
+
const hasHover = !hasTouch && wrapHover;
|
|
70
|
+
return show || hasHover;
|
|
71
|
+
}, [hasTouch, show, wrapHover]);
|
|
72
|
+
return /* @__PURE__ */jsxRuntime.jsx(ProMenu_styles.Wrap, {
|
|
73
|
+
ref: wrapRef,
|
|
74
|
+
motif,
|
|
75
|
+
slideInView,
|
|
76
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProMenu_styles.MenuWrap, {
|
|
77
|
+
motif,
|
|
78
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProMenu_styles.MenuWrapInner, {
|
|
79
|
+
children: /* @__PURE__ */jsxRuntime.jsxs(ProMenu_styles.Container, {
|
|
80
|
+
size: "desktop",
|
|
81
|
+
noVerticalMargin: true,
|
|
82
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProMenu_styles.ContainerRow, {
|
|
83
|
+
children: productLineOptions.map(option => /* @__PURE__ */jsxRuntime.jsx(ProMenu_styles.LinkButton, {
|
|
84
|
+
motif,
|
|
85
|
+
$active: option.value === productLineValue,
|
|
86
|
+
onClick: () => onProductLineChange?.(option.value),
|
|
87
|
+
children: option.label
|
|
88
|
+
}, option.value))
|
|
89
|
+
}), currentCountryName && /* @__PURE__ */jsxRuntime.jsxs(ProMenu_styles.ContainerRow, {
|
|
90
|
+
children: [currentCountryName, /* @__PURE__ */jsxRuntime.jsx(ProMenu_styles.LinkButton, {
|
|
91
|
+
motif,
|
|
92
|
+
$active: true,
|
|
93
|
+
onClick: handleStorePickerClick,
|
|
94
|
+
children: formatMessage("Change")
|
|
95
|
+
})]
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
exports.NavigationProMenu = NavigationProMenu;
|
|
103
|
+
//# sourceMappingURL=ProMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProMenu.js","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","Promise","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","MenuWrapInner","jsxs","S.Container","size","noVerticalMargin","S.ContainerRow","ContainerRow","map","option","S.LinkButton","LinkButton","$active","value","onClick","label"],"mappings":";;;;;;;;;;;;;;;;AAWO,MAAMA,oBAAoBA,CAAC;EAChCC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,eAAAI,eAAA,CAAAC,cAAAA,CAAAA,WAAA;UAAYC,IAAA,EAAK,SAAU;UAAAC,gBAAA,EAAgB,IAE1C;UAAAP,QAAA,EAAA,CAAA,eAAAH,UAAA,CAAAA,GAAA,CAACW,cAAA,CAAAC,YAAA,EAAA;YACET,QAAmB,EAAApC,kBAAA,CAAA8C,GAAA,CAAKC,MACvB,mBAAAd,UAAA,CAAAA,GAAA,CAACe,cAAE,CAAAC,UAAA,EAAF;cAEC/C,KAAA;cACAgD,OAAA,EAASH,OAAOI,KAAU,KAAApD,gBAAA;cAC1BqD,OAAS,EAAAA,CAAA,KAAMnD,mBAAsB,GAAA8C,MAAA,CAAOI,KAAK,CAAA;cAEhDf,QAAO,EAAAW,MAAA,CAAAM;YAAA,CAAA,EALHN,MAAO,CAAAI,KAOf,CAAA;WACH,CAAA,EAGCtD,kBACC,mBAAA2C,UAAA,CAAAA,IAAA,CAACI,2BAAE,EAAF;YACER,QAAA,EAAA,CAAAvC,kBAAA,EAAA,eACDoC,UAAA,CAAAA,GAAA,CAACe,cAAE,CAAAC,UAAA,EAAF;cACC/C,KAAA;cACAgD,OAAO,EAAA,IAAA;cACPE,OAAS,EAAAtD,sBAAA;cAERsC,wBAAc,QAAQ;YAAA,CACzB,CAAA;WACF,CAAA;QAEJ,CAAA;MACF,CAAA;KACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useMemo } from 'react';
|
|
3
|
+
import { useHoverDirty } from 'react-use';
|
|
4
|
+
import '../../../../contexts/MenuContext/index.mjs';
|
|
5
|
+
import '../../../../contexts/MenuContext/mapping.mjs';
|
|
6
|
+
import '../../../../hooks/index.mjs';
|
|
7
|
+
import { useHasTouch } from '../../../../hooks/useHasTouch.mjs';
|
|
8
|
+
import '../../translations/index.mjs';
|
|
9
|
+
import { Wrap, MenuWrap, MenuWrapInner, Container, ContainerRow, LinkButton } from './ProMenu.styles.mjs';
|
|
10
|
+
import { useMenu } from '../../../../contexts/MenuContext/context.mjs';
|
|
11
|
+
import { useTranslation } from '../../../../hooks/useTranslation.mjs';
|
|
12
|
+
import EN_TRANSLATION from '../../translations/en.json.mjs';
|
|
13
|
+
import { Language } from '../../../../types/constants.mjs';
|
|
14
|
+
"use strict";
|
|
15
|
+
const NavigationProMenu = ({
|
|
16
|
+
show,
|
|
17
|
+
currentCountryName,
|
|
18
|
+
handleStorePickerClick,
|
|
19
|
+
productLineValue,
|
|
20
|
+
productLineOptions,
|
|
21
|
+
onProductLineChange
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
motif
|
|
25
|
+
} = useMenu();
|
|
26
|
+
const {
|
|
27
|
+
formatMessage
|
|
28
|
+
} = useTranslation({
|
|
29
|
+
defaultTranslation: EN_TRANSLATION,
|
|
30
|
+
additionalTranslations: {
|
|
31
|
+
[Language.Ja]: () => import('../../translations/ja.json.mjs').then(res => res.default),
|
|
32
|
+
[Language.Ar]: () => import('../../translations/ar.json.mjs').then(res => res.default),
|
|
33
|
+
[Language.De]: () => import('../../translations/de.json.mjs').then(res => res.default),
|
|
34
|
+
[Language.Es]: () => import('../../translations/es.json.mjs').then(res => res.default),
|
|
35
|
+
[Language.El]: () => import('../../translations/el.json.mjs').then(res => res.default),
|
|
36
|
+
[Language.It]: () => import('../../translations/it.json.mjs').then(res => res.default),
|
|
37
|
+
[Language.Pt]: () => import('../../translations/pt-BR.json.mjs').then(res => res.default),
|
|
38
|
+
[Language.Zh]: () => import('../../translations/zh-Hans.json.mjs').then(res => res.default),
|
|
39
|
+
[Language.Fr]: () => import('../../translations/fr.json.mjs').then(res => res.default),
|
|
40
|
+
[Language.Tw]: () => import('../../translations/zh-Hant-TW.json.mjs').then(res => res.default)
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const wrapRef = useRef(null);
|
|
44
|
+
const wrapHover = useHoverDirty(wrapRef);
|
|
45
|
+
const hasTouch = useHasTouch();
|
|
46
|
+
const slideInView = useMemo(() => {
|
|
47
|
+
const hasHover = !hasTouch && wrapHover;
|
|
48
|
+
return show || hasHover;
|
|
49
|
+
}, [hasTouch, show, wrapHover]);
|
|
50
|
+
return /* @__PURE__ */jsx(Wrap, {
|
|
51
|
+
ref: wrapRef,
|
|
52
|
+
motif,
|
|
53
|
+
slideInView,
|
|
54
|
+
children: /* @__PURE__ */jsx(MenuWrap, {
|
|
55
|
+
motif,
|
|
56
|
+
children: /* @__PURE__ */jsx(MenuWrapInner, {
|
|
57
|
+
children: /* @__PURE__ */jsxs(Container, {
|
|
58
|
+
size: "desktop",
|
|
59
|
+
noVerticalMargin: true,
|
|
60
|
+
children: [/* @__PURE__ */jsx(ContainerRow, {
|
|
61
|
+
children: productLineOptions.map(option => /* @__PURE__ */jsx(LinkButton, {
|
|
62
|
+
motif,
|
|
63
|
+
$active: option.value === productLineValue,
|
|
64
|
+
onClick: () => onProductLineChange?.(option.value),
|
|
65
|
+
children: option.label
|
|
66
|
+
}, option.value))
|
|
67
|
+
}), currentCountryName && /* @__PURE__ */jsxs(ContainerRow, {
|
|
68
|
+
children: [currentCountryName, /* @__PURE__ */jsx(LinkButton, {
|
|
69
|
+
motif,
|
|
70
|
+
$active: true,
|
|
71
|
+
onClick: handleStorePickerClick,
|
|
72
|
+
children: formatMessage("Change")
|
|
73
|
+
})]
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
export { NavigationProMenu };
|
|
81
|
+
//# sourceMappingURL=ProMenu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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,gC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_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 {};
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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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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;;;;;;;;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProMenu";
|
package/lib/components/{ResourceCalculatorV1/components → Header/Navigation/ProMenu}/index.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { NavigationProMobileMenuProps } from "./ProMobileMenu.types";
|
|
2
|
-
export declare const NavigationProMobileMenu: ({ translations, onClose, currentCountryName, handleStorePickerClick, handleOrderHistoryClick, handlePurchaseHistoryClick, handleProductLineChange, productLineValue, productLineOptions,
|
|
2
|
+
export declare const NavigationProMobileMenu: ({ translations, onClose, currentCountryName, handleStorePickerClick, handleOrderHistoryClick, handlePurchaseHistoryClick, handleProductLineChange, productLineValue, productLineOptions, categories, hideExtraSection, }: NavigationProMobileMenuProps) => JSX.Element;
|