@ubnt/store.core 9.58.0-new-design → 9.58.1
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 +3 -114
- package/lib/_virtual/_virtual_multi-entry.js +10 -13
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +11 -13
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +2 -12
- package/lib/apis/smartcat.js +4 -27
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +4 -27
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/icons/menu/{icon-location-pin.svg.js → icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +2 -10
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
- package/lib/components/Button/Button.js +5 -12
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +1 -8
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +1 -3
- package/lib/components/Button/CartButton.js +6 -11
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +4 -8
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +6 -10
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +0 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +2 -4
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +5 -8
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +6 -7
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- 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 -5
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +12 -12
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +12 -12
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
- 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/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +20 -30
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +43 -43
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +9 -9
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +12 -7
- package/lib/components/Header/Header.styles.js +32 -10
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +31 -10
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +5 -29
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +0 -1
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +46 -47
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- 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 +0 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
- package/lib/components/Header/ProHeader/ProHeader.js +189 -270
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +171 -251
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
- package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +1 -4
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +2 -4
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +1 -4
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +2 -4
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +1 -4
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +2 -4
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -7
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -6
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +1 -4
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +2 -4
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +1 -4
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +2 -4
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +1 -4
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +2 -4
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +1 -4
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +2 -4
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +1 -4
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +1 -4
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- 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/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +1 -3
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +1 -2
- package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +3 -3
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +41 -5
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +21 -5
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +7 -7
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +6 -6
- package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
- package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +1 -6
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -6
- package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +25 -33
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +8 -8
- package/lib/components/Search/Input/Input.js.map +1 -1
- package/lib/components/Search/Input/Input.mjs +4 -4
- package/lib/components/Search/Input/Input.mjs.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +1 -0
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +1 -0
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +2 -3
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +0 -2
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -4
- package/lib/constants/proStoreCategories/mapping/index.js +51 -50
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
- package/lib/constants/proStoreCategories/mapping/redirects.js +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +3 -55
- package/lib/constants/proStoreFilters/mapping.js +10 -140
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +10 -140
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +0 -4
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +0 -4
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +34 -34
- 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/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/helpers/index.js +0 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +0 -8
- package/lib/helpers/ux.js +0 -15
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +1 -15
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useHasTouch.js +3 -3
- package/lib/hooks/useHddRetentionCalculator.js +5 -5
- package/lib/hooks/useHorizontalScroll.js +2 -2
- package/lib/hooks/useLockBodyScrollCustom.js +3 -3
- package/lib/hooks/useScrollToY.js +2 -2
- package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
- package/lib/hooks/useTranslation.js +6 -6
- package/lib/utils/nextjs/ssr/registry.js +2 -2
- package/package.json +1 -1
- package/lib/assets/cart-secondary.svg +0 -5
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/cart-secondary.svg.js +0 -27
- package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
- package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
- package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +0 -6
- package/lib/components/Header/Header.stories.d.ts +0 -111
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
- package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
- package/lib/components/Header/LogoIcon/index.d.ts +0 -1
- package/lib/components/Header/LogoIcon/index.js +0 -6
- package/lib/components/Header/LogoIcon/index.js.map +0 -1
- package/lib/components/Header/LogoIcon/index.mjs +0 -3
- package/lib/components/Header/LogoIcon/index.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -81
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -73
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +0 -5
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -80
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -66
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
- package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
- package/lib/components/ProductTechSpecsV2/index.js +0 -6
- package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
- package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
package/lib/helpers/ux.mjs
CHANGED
|
@@ -42,19 +42,5 @@ const getTrueOffsetY = el => {
|
|
|
42
42
|
}
|
|
43
43
|
return offset;
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
if (typeof window === "undefined") {
|
|
47
|
-
return {
|
|
48
|
-
width: 0,
|
|
49
|
-
height: 0
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
const style = window.getComputedStyle(el);
|
|
53
|
-
const px = value => /^\d+px$/.test(value) ? parseFloat(value) : 0;
|
|
54
|
-
return {
|
|
55
|
-
width: el.offsetWidth + px(style.marginLeft) + px(style.marginRight),
|
|
56
|
-
height: el.offsetHeight + px(style.marginTop) + px(style.marginBottom)
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
export { getTrueOffsetY, getTrueSize, scrollIntoView, scrollToY };
|
|
45
|
+
export { getTrueOffsetY, scrollIntoView, scrollToY };
|
|
60
46
|
//# sourceMappingURL=ux.mjs.map
|
package/lib/helpers/ux.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ux.mjs","sources":["../../src/helpers/ux.ts"],"sourcesContent":["const SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number | undefined;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n if (start === undefined) {\n start = timestamp;\n }\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n
|
|
1
|
+
{"version":3,"file":"ux.mjs","sources":["../../src/helpers/ux.ts"],"sourcesContent":["const SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number | undefined;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n if (start === undefined) {\n start = timestamp;\n }\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n"],"names":["SCROLL_INTO_VIEW_DEFAULT_DURATION","scrollToY","targetY","duration","start","previousTimeStamp","initY","window","scrollY","limit","document","documentElement","scrollHeight","clientHeight","step","timestamp","elapsed","progress","scroll","top","requestAnimationFrame","scrollIntoView","element","elementWindowY","getBoundingClientRect","y","innerHeight","getTrueOffsetY","el","offset","offsetTop","parentElement"],"mappings":";;AAAA,MAAMA,iCAAoC,GAAA,GAAA;AAQ7B,MAAAC,SAAA,GAAYA,CAACC,OAAA,EAAiBC,QAAqB,KAAA;EAC1D,IAAAC,KAAA;EACA,IAAAC,iBAAA;EACJ,MAAMC,QAAQC,MAAO,CAAAC,OAAA;EACrB,MAAMC,KACJ,GAAAC,QAAA,CAASC,eAAgB,CAAAC,YAAA,GACzBF,SAASC,eAAgB,CAAAE,YAAA;EAE3B,SAASC,KAAKC,SAAmB,EAAA;IAC/B,IAAIX,UAAU,KAAW,CAAA,EAAA;MACfA,KAAA,GAAAW,SAAA;IACV;IACA,MAAMC,UAAUD,SAAY,GAAAX,KAAA;IACtB,MAAAa,QAAA,GAAA,CAAYF,YAAYX,KAAS,IAAAD,QAAA;IAEvC,IAAIE,sBAAsBU,SAAW,EAAA;MACnCR,MAAA,CAAOW,MAAO,CAAA;QACZC,OAAOjB,OAAU,GAAAO,KAAA,GAAQA,KAAQ,GAAAP,OAAA,IAAWI,SAASW,QAAW,GAAAX;MAAA,CACjE,CAAA;IACH;IAEA,IAAIU,UAAUb,QAAU,EAAA;MACFE,iBAAA,GAAAU,SAAA;MACpBR,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;IAAA,CAC5B,MAAA;MACLP,MAAA,CAAOW,MAAO,CAAA;QACZC,GAAK,EAAAjB;MAAA,CACN,CAAA;IACH;EACF;EAEAK,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;AACnC,CAAA;AASO,MAAMO,cAAiB,GAAAA,CAC5BC,OACA,EAAAnB,QAAA,GAAWH,iCACR,KAAA;EACC,IAAA,OAAOO,WAAW,WAAa,EAAA;EACnC,IAAI,CAACe,OAAS,EAAA;EAGd,MAAMC,cAAiB,GAAAD,OAAA,CAAQE,qBAAsB,CAAA,CAAA,CAAEL,MAAMZ,MAAO,CAAAC,OAAA;EAEpE,MAAMiB,CAAI,GAAAF,cAAA,GAAiBhB,MAAO,CAAAmB,WAAA,IAAe,CAAI,GAAA,CAAA,CAAA;EAGrDzB,SAAA,CAAUwB,GAAGtB,QAAQ,CAAA;AACvB,CAAA;AAKa,MAAAwB,cAAA,GAAkBC,EAAoB,IAAA;EACjD,IAAIC,SAASD,EAAG,CAAAE,SAAA;EAEhB,IAAIF,GAAGG,aAAe,EAAA;IACVF,MAAA,IAAAF,cAAA,CAAeC,GAAGG,aAAa,CAAA;EAC3C;EAEO,OAAAF,MAAA;AACT,CAAA;"}
|
package/lib/hooks/useHasTouch.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const useHasTouch = () => {
|
|
6
|
-
const [hasTouch, setHasTouch] =
|
|
7
|
-
|
|
6
|
+
const [hasTouch, setHasTouch] = react.useState(typeof document !== "undefined" && "ontouchstart" in document.documentElement || typeof window !== "undefined" && window.navigator.maxTouchPoints > 0);
|
|
7
|
+
react.useEffect(() => {
|
|
8
8
|
let lastTouchTime = 0;
|
|
9
9
|
function disableTouch() {
|
|
10
10
|
if (Date.now() - lastTouchTime < 500) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const calculateTotalCameraRetentionLoad = cameras => {
|
|
6
6
|
const cameraRetentionLoad = {
|
|
@@ -67,16 +67,16 @@ const getMaxRetention = inputs => {
|
|
|
67
67
|
return lastItem?.value || 0;
|
|
68
68
|
};
|
|
69
69
|
const useRetentionCalculator = config => {
|
|
70
|
-
const maxRetention =
|
|
70
|
+
const maxRetention = react.useMemo(() => {
|
|
71
71
|
return getMaxRetention(config);
|
|
72
72
|
}, [config]);
|
|
73
|
-
const retentionHddItems =
|
|
73
|
+
const retentionHddItems = react.useMemo(() => {
|
|
74
74
|
return getRetentionHddItems(config);
|
|
75
75
|
}, [config]);
|
|
76
|
-
const getRequiredHddsByRetention =
|
|
76
|
+
const getRequiredHddsByRetention = react.useCallback(retention => {
|
|
77
77
|
return getRequiredHddCountByTime(config, retention);
|
|
78
78
|
}, [config]);
|
|
79
|
-
const minRetentionStorage =
|
|
79
|
+
const minRetentionStorage = react.useMemo(() => {
|
|
80
80
|
return retentionHddItems.find((item, i) => {
|
|
81
81
|
return item.value > 0 && i + 1 >= config.parityDisks * 2;
|
|
82
82
|
})?.value || 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
function useHorizontalScroll(ref, enabled = true) {
|
|
6
|
-
|
|
6
|
+
react.useEffect(() => {
|
|
7
7
|
if (!enabled) return;
|
|
8
8
|
if (!ref?.current) return;
|
|
9
9
|
const element = ref.current;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const LOCK_SCROLL_CLASS = "lock-scroll";
|
|
6
6
|
const updateElsClassList = (els, type) => {
|
|
@@ -11,8 +11,8 @@ const updateElsClassList = (els, type) => {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
const useLockBodyScrollCustom = isLocked => {
|
|
14
|
-
const getEls =
|
|
15
|
-
|
|
14
|
+
const getEls = react.useCallback(() => [document.documentElement, document.body, document.getElementById("__next")], []);
|
|
15
|
+
react.useEffect(() => {
|
|
16
16
|
if (isLocked) {
|
|
17
17
|
updateElsClassList(getEls(), "add");
|
|
18
18
|
} else {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const useScrollToY = () => {
|
|
6
|
-
const rafRef =
|
|
6
|
+
const rafRef = react.useRef(0);
|
|
7
7
|
const cancelScrollToY = () => {
|
|
8
8
|
window.cancelAnimationFrame(rafRef.current);
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var react = require('react');
|
|
4
4
|
"use strict";
|
|
5
5
|
const testMediaElementVolumeSetterAsync = () => {
|
|
6
6
|
const timeoutPromise = new Promise(resolve => setTimeout(resolve, 500, false));
|
|
@@ -17,8 +17,8 @@ const testMediaElementVolumeSetterAsync = () => {
|
|
|
17
17
|
return Promise.race([promise, timeoutPromise]);
|
|
18
18
|
};
|
|
19
19
|
const useTestMediaElementVolumeSetter = () => {
|
|
20
|
-
const [isSupported, setIsSupported] =
|
|
21
|
-
|
|
20
|
+
const [isSupported, setIsSupported] = react.useState(null);
|
|
21
|
+
react.useEffect(() => {
|
|
22
22
|
testMediaElementVolumeSetterAsync().then(setIsSupported).catch(e => console.error("Cannot detect", e));
|
|
23
23
|
}, []);
|
|
24
24
|
return isSupported;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var intl = require('@formatjs/intl');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
require('../contexts/MenuContext/index.js');
|
|
6
6
|
var mapping = require('../contexts/MenuContext/mapping.js');
|
|
7
7
|
var context = require('../contexts/MenuContext/context.js');
|
|
@@ -11,8 +11,8 @@ const useTranslationRaw = ({
|
|
|
11
11
|
defaultTranslation,
|
|
12
12
|
additionalTranslations
|
|
13
13
|
}) => {
|
|
14
|
-
const [activeTranslation, setActiveTranslation] =
|
|
15
|
-
|
|
14
|
+
const [activeTranslation, setActiveTranslation] = react.useState(defaultTranslation);
|
|
15
|
+
react.useEffect(() => {
|
|
16
16
|
const loadTranslations = async () => {
|
|
17
17
|
try {
|
|
18
18
|
if (language === mapping.DEFAULT_LANGUAGE) {
|
|
@@ -30,14 +30,14 @@ const useTranslationRaw = ({
|
|
|
30
30
|
};
|
|
31
31
|
loadTranslations();
|
|
32
32
|
}, [language, additionalTranslations, defaultTranslation]);
|
|
33
|
-
const intl$1 =
|
|
33
|
+
const intl$1 = react.useMemo(() => {
|
|
34
34
|
const cache = intl.createIntlCache();
|
|
35
35
|
return intl.createIntl({
|
|
36
36
|
locale: language,
|
|
37
37
|
messages: activeTranslation
|
|
38
38
|
}, cache);
|
|
39
39
|
}, [language, activeTranslation]);
|
|
40
|
-
const formatMessage =
|
|
40
|
+
const formatMessage = react.useCallback((id, values) => intl$1.formatMessage({
|
|
41
41
|
id,
|
|
42
42
|
defaultMessage: defaultTranslation[id]
|
|
43
43
|
}, values), [intl$1, defaultTranslation]);
|
|
@@ -50,7 +50,7 @@ const useTranslation = options => {
|
|
|
50
50
|
const {
|
|
51
51
|
language
|
|
52
52
|
} = context.useMenu();
|
|
53
|
-
const optionsExtended =
|
|
53
|
+
const optionsExtended = react.useMemo(() => ({
|
|
54
54
|
...options,
|
|
55
55
|
language
|
|
56
56
|
}), [options, language]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
var constants = require('./constants.js');
|
|
6
6
|
"use strict";
|
|
7
|
-
const UiComponentsSsrStyleRegistryPagesRouter =
|
|
7
|
+
const UiComponentsSsrStyleRegistryPagesRouter = react.memo(function UiComponentsSsrStyleRegistryPagesRouter2() {
|
|
8
8
|
const injections = globalThis[constants.SSR_INJECT_ID];
|
|
9
9
|
const injectionsExist = !!injections && Array.isArray(injections) && !!injections.length;
|
|
10
10
|
return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.57031 3.22461C1.57031 2.94847 1.79417 2.72461 2.07031 2.72461H3.83016C4.06075 2.72461 4.26143 2.8823 4.31597 3.10635L4.76721 4.96011H15.4618C16.2475 4.96011 16.7435 5.28209 17.0921 5.69181C17.5418 6.2202 17.5409 6.79535 17.4341 7.29746C17.4326 7.30447 17.431 7.31144 17.4292 7.31838L16.3402 11.5367C16.2744 11.7811 16.1883 12.0166 16.0299 12.2394C15.8712 12.4623 15.6633 12.6403 15.3995 12.8097C14.8723 13.1485 14.2351 13.1586 13.6666 13.1586H6.73601C6.56942 13.1586 6.42693 13.2131 6.33011 13.3046C6.24039 13.3895 6.14553 13.5479 6.14553 13.849C6.14553 14.0633 6.23165 14.2209 6.34436 14.3293C6.47021 14.4504 6.60091 14.4849 6.64514 14.4849H14.9759L14.9762 15.4849H6.64514C6.29559 15.4849 5.92648 15.315 5.65098 15.0499C5.36233 14.7721 5.14553 14.3617 5.14553 13.849C5.14553 13.3172 5.32355 12.8803 5.64289 12.5782C5.8204 12.4103 6.02716 12.2977 6.24203 12.2318C6.16598 12.1628 6.09396 12.0942 6.02501 12.0275C5.46345 11.4847 5.17921 10.6674 4.99858 9.97217L4.99773 9.9689L3.88849 5.57837L3.43727 3.72461H2.07031C1.79417 3.72461 1.57031 3.50075 1.57031 3.22461ZM8.63721 12.1586H13.6666C14.2779 12.1586 14.6155 12.1249 14.859 11.9684C15.0564 11.8415 15.1541 11.7453 15.215 11.6597C15.2758 11.5742 15.3231 11.4672 15.3739 11.2791L16.4581 7.07929C16.5283 6.74241 16.498 6.53667 16.3305 6.33988C16.1457 6.12265 15.9162 5.96011 15.4618 5.96011H5.01636L5.96686 9.72231C6.14251 10.3978 6.37313 10.9732 6.72003 11.3086C6.98059 11.5604 7.21044 11.7641 7.49533 11.9119C7.7719 12.0555 8.12538 12.1586 8.63721 12.1586ZM14.9762 15.4849C15.2524 15.4849 15.4763 15.2611 15.4763 14.9849C15.4763 14.7088 15.2521 14.4849 14.9759 14.4849L14.9762 15.4849Z" fill="#006FFF"/>
|
|
3
|
-
<path d="M14.1842 17.0193C14.1842 17.4059 13.8708 17.7193 13.4842 17.7193C13.0976 17.7193 12.7842 17.4059 12.7842 17.0193C12.7842 16.6327 13.0976 16.3193 13.4842 16.3193C13.8708 16.3193 14.1842 16.6327 14.1842 17.0193Z" fill="#006FFF"/>
|
|
4
|
-
<path d="M8.30741 17.0193C8.30741 17.4059 7.99401 17.7193 7.60741 17.7193C7.22081 17.7193 6.90741 17.4059 6.90741 17.0193C6.90741 16.6327 7.22081 16.3193 7.60741 16.3193C7.99401 16.3193 8.30741 16.6327 8.30741 17.0193Z" fill="#006FFF"/>
|
|
5
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg width="17" height="17" viewBox="0 0 17 17" fill="none"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.0499 6.80268C11.0499 8.21196 9.90823 9.3544 8.4999 9.3544C7.09158 9.3544 5.9499 8.21196 5.9499 6.80268C5.9499 5.3934 7.09158 4.25095 8.4999 4.25095C9.90823 4.25095 11.0499 5.3934 11.0499 6.80268ZM10.1999 6.80268C10.1999 7.7422 9.43879 8.50383 8.4999 8.50383C7.56102 8.50383 6.7999 7.7422 6.7999 6.80268C6.7999 5.86316 7.56102 5.10152 8.4999 5.10152C9.43879 5.10152 10.1999 5.86316 10.1999 6.80268Z" fill="currentColor"/>
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.4999 1.69922C5.68325 1.69922 3.3999 3.98411 3.3999 6.80268C3.3999 8.76181 4.31062 10.6139 5.31026 12.0638C6.31479 13.5208 7.44298 14.6203 7.94931 15.0835C8.26361 15.3711 8.73619 15.3711 9.0505 15.0835C9.55683 14.6203 10.685 13.5208 11.6895 12.0638C12.6892 10.6139 13.5999 8.76181 13.5999 6.80268C13.5999 3.98411 11.3166 1.69922 8.4999 1.69922ZM4.2499 6.80268C4.2499 4.45387 6.15269 2.54979 8.4999 2.54979C10.8471 2.54979 12.7499 4.45387 12.7499 6.80268C12.7499 8.51023 11.9489 10.1898 10.9899 11.5808C10.0506 12.9431 8.99195 13.9825 8.4999 14.4347C8.00786 13.9825 6.94916 12.9431 6.00991 11.5808C5.0509 10.1898 4.2499 8.51023 4.2499 6.80268Z" fill="currentColor"/>
|
|
5
|
-
</svg>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var CartIconSecondary = require("../cart-secondary.svg");
|
|
7
|
-
function _interopDefault(e) {
|
|
8
|
-
return e && e.__esModule ? e : {
|
|
9
|
-
default: e
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
var CartIconSecondary__default = /*#__PURE__*/_interopDefault(CartIconSecondary);
|
|
13
|
-
Object.defineProperty(exports, "default", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return CartIconSecondary__default["default"];
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.keys(CartIconSecondary).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 CartIconSecondary[k];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=cart-secondary.svg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cart-secondary.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cart-secondary.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-location-pin.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-location-pin.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: ({ items, onClick, activeId, variant, innerContainerSize, }: import("./ButtonGroupBasic.types").ButtonGroupBasicProps) => JSX.Element;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Base: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./ButtonGroupBasic.types").ButtonGroupBasicProps>;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from "react";
|
|
2
|
-
import { SiteId } from "../../contexts/MenuContext/mapping";
|
|
3
|
-
import type { GlobalSiteConfig } from "../../contexts/MenuContext/types";
|
|
4
|
-
import { GlobalStoreId, ProductLine } from "../../types";
|
|
5
|
-
import { Language } from "../../types/constants";
|
|
6
|
-
import { GlobalHeader } from "./Header";
|
|
7
|
-
/**
|
|
8
|
-
* HACK: instead of using ComponentStory and StoryMeta we use raw Story and Meta so we can add debug flags that are
|
|
9
|
-
* needed for custom rendering of different story scenario's without that are on MenuContextProvider but not actually
|
|
10
|
-
* passed in for the <Header/> itself
|
|
11
|
-
*/
|
|
12
|
-
type CustomHeaderProps = ComponentProps<typeof GlobalHeader> & {
|
|
13
|
-
context: SiteId;
|
|
14
|
-
storeId?: GlobalStoreId;
|
|
15
|
-
simulateAppropriateSubnavigations?: boolean;
|
|
16
|
-
pathname?: string;
|
|
17
|
-
globalSiteConfig?: GlobalSiteConfig;
|
|
18
|
-
language?: Language;
|
|
19
|
-
};
|
|
20
|
-
declare const _default: {
|
|
21
|
-
title: string;
|
|
22
|
-
parameters: {
|
|
23
|
-
layout: string;
|
|
24
|
-
};
|
|
25
|
-
argTypes: {
|
|
26
|
-
context: {
|
|
27
|
-
control: "select";
|
|
28
|
-
options: SiteId[];
|
|
29
|
-
};
|
|
30
|
-
motif: {
|
|
31
|
-
control: "radio";
|
|
32
|
-
options: string[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|
|
37
|
-
export declare const StoreUnifiUS: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
38
|
-
export declare const StoreUnifiEU: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
39
|
-
export declare const StoreUnifiCA: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
40
|
-
export declare const StoreUnifiME: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
41
|
-
export declare const StoreUISP_US: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
42
|
-
export declare const Generic: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
43
|
-
export declare const UI: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
44
|
-
export declare const UISP: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
45
|
-
export declare const Techspecs: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
46
|
-
export declare const Experts_UI: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
47
|
-
export declare const Experts_UISP: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
48
|
-
export declare const UWC: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
49
|
-
export declare const NavigationLoading: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
50
|
-
export declare const SearchLoading: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, CustomHeaderProps>;
|
|
51
|
-
export declare const StoreCartModal: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Header.types").HeaderProps>;
|
|
52
|
-
export declare const Isolated: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
|
|
53
|
-
className?: string;
|
|
54
|
-
motif: import("@ubnt/ui-components").Motif;
|
|
55
|
-
translations?: import("./Header.types").HeaderTranslations;
|
|
56
|
-
handleContinueShopping: () => void;
|
|
57
|
-
showLineLoader?: boolean;
|
|
58
|
-
account?: {
|
|
59
|
-
loading?: import("./Header.types").HeaderAccount["loading"];
|
|
60
|
-
customer?: {
|
|
61
|
-
picture?: import("./Header.types").HeaderAccountCustomer["picture"];
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
logo?: import("./Header.types").HeaderLogo;
|
|
65
|
-
} & Pick<import("./Header.types").HeaderProps, "embedConfig">>;
|
|
66
|
-
export declare const Pro: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Pick<import("./Header.types").HeaderProps, "className" | "motif" | "cart" | "account" | "translations" | "onModalOpen" | "onCartClick" | "showLineLoader" | "accountMenu"> & {
|
|
67
|
-
embedConfig?: import("./Header.types").HeaderEmbedConfig;
|
|
68
|
-
handleStorePickerClick?: () => void;
|
|
69
|
-
currentCountryName?: string;
|
|
70
|
-
earlyAccess?: import("./Header.types").ProHeaderEarlyAccess;
|
|
71
|
-
handlePurchaseHistoryClick?: () => void;
|
|
72
|
-
handleOrderHistoryClick?: () => void;
|
|
73
|
-
productLineOptions?: import("./Header.types").HeaderProductLineOption[];
|
|
74
|
-
productLineValue?: ProductLine;
|
|
75
|
-
handleProductLineChange?: (type: ProductLine) => void;
|
|
76
|
-
handleMobileMenuClick?: () => void;
|
|
77
|
-
onLanguageChange?: (e: React.MouseEvent<HTMLElement>, link: string, language: Language) => void;
|
|
78
|
-
searchValue?: string;
|
|
79
|
-
onSearch?: (searchTerm: string) => void;
|
|
80
|
-
searchInputWidth?: number;
|
|
81
|
-
searchInputChildren?: import("react").ReactNode;
|
|
82
|
-
onSearchFocus?: () => void;
|
|
83
|
-
onSearchBlur?: () => void;
|
|
84
|
-
onSearchClick?: () => void;
|
|
85
|
-
categories: import("./Header.types").ProHeaderCategories;
|
|
86
|
-
hideInlineCategories?: boolean;
|
|
87
|
-
logo?: import("./Header.types").HeaderLogo;
|
|
88
|
-
}>;
|
|
89
|
-
export declare const ProEmbedded: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Pick<import("./Header.types").HeaderProps, "className" | "motif" | "cart" | "account" | "translations" | "onModalOpen" | "onCartClick" | "showLineLoader" | "accountMenu"> & {
|
|
90
|
-
embedConfig?: import("./Header.types").HeaderEmbedConfig;
|
|
91
|
-
handleStorePickerClick?: () => void;
|
|
92
|
-
currentCountryName?: string;
|
|
93
|
-
earlyAccess?: import("./Header.types").ProHeaderEarlyAccess;
|
|
94
|
-
handlePurchaseHistoryClick?: () => void;
|
|
95
|
-
handleOrderHistoryClick?: () => void;
|
|
96
|
-
productLineOptions?: import("./Header.types").HeaderProductLineOption[];
|
|
97
|
-
productLineValue?: ProductLine;
|
|
98
|
-
handleProductLineChange?: (type: ProductLine) => void;
|
|
99
|
-
handleMobileMenuClick?: () => void;
|
|
100
|
-
onLanguageChange?: (e: React.MouseEvent<HTMLElement>, link: string, language: Language) => void;
|
|
101
|
-
searchValue?: string;
|
|
102
|
-
onSearch?: (searchTerm: string) => void;
|
|
103
|
-
searchInputWidth?: number;
|
|
104
|
-
searchInputChildren?: import("react").ReactNode;
|
|
105
|
-
onSearchFocus?: () => void;
|
|
106
|
-
onSearchBlur?: () => void;
|
|
107
|
-
onSearchClick?: () => void;
|
|
108
|
-
categories: import("./Header.types").ProHeaderCategories;
|
|
109
|
-
hideInlineCategories?: boolean;
|
|
110
|
-
logo?: import("./Header.types").HeaderLogo;
|
|
111
|
-
}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Nullish } from "../../../types";
|
|
2
|
-
import { ProductLine } from "../../../types";
|
|
3
|
-
interface HeaderLogoIconProps {
|
|
4
|
-
productLine: Nullish<ProductLine>;
|
|
5
|
-
}
|
|
6
|
-
export declare const HeaderLogoIcon: ({ productLine }: HeaderLogoIconProps) => JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
require('../../../constants/icons/index.js');
|
|
5
|
-
require('../../../types/index.js');
|
|
6
|
-
require('../../StyleableSvgImage/index.js');
|
|
7
|
-
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
8
|
-
var _externalAssets_BPYvPCPi = require("../../../assets/logo.svg");
|
|
9
|
-
var generated = require('../../../types/generated.js');
|
|
10
|
-
var _externalAssets_TKrekyEi = require("../../../assets/logoUisp.svg");
|
|
11
|
-
var _externalAssets_BH7iT_0Q = require("../../../assets/logoUnifi.svg");
|
|
12
|
-
function _interopDefault(e) {
|
|
13
|
-
return e && e.__esModule ? e : {
|
|
14
|
-
default: e
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
var _externalAssets_BPYvPCPi__default = /*#__PURE__*/_interopDefault(_externalAssets_BPYvPCPi);
|
|
18
|
-
var _externalAssets_TKrekyEi__default = /*#__PURE__*/_interopDefault(_externalAssets_TKrekyEi);
|
|
19
|
-
var _externalAssets_BH7iT_0Q__default = /*#__PURE__*/_interopDefault(_externalAssets_BH7iT_0Q);
|
|
20
|
-
"use strict";
|
|
21
|
-
const HeaderLogoIcon = ({
|
|
22
|
-
productLine
|
|
23
|
-
}) => {
|
|
24
|
-
switch (productLine) {
|
|
25
|
-
case generated.ProductLine.Unifi:
|
|
26
|
-
return /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
27
|
-
src: _externalAssets_BH7iT_0Q__default["default"],
|
|
28
|
-
width: 59,
|
|
29
|
-
height: 18
|
|
30
|
-
});
|
|
31
|
-
case generated.ProductLine.Uisp:
|
|
32
|
-
return /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
33
|
-
src: _externalAssets_TKrekyEi__default["default"],
|
|
34
|
-
width: 56.5,
|
|
35
|
-
height: 18
|
|
36
|
-
});
|
|
37
|
-
default:
|
|
38
|
-
return /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
39
|
-
src: _externalAssets_BPYvPCPi__default["default"],
|
|
40
|
-
width: 17.86,
|
|
41
|
-
height: 18
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.HeaderLogoIcon = HeaderLogoIcon;
|
|
46
|
-
//# sourceMappingURL=LogoIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogoIcon.js","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import * as icons from \"../../../constants/icons\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n}\n\nexport const HeaderLogoIcon = ({ productLine }: HeaderLogoIconProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n return (\n <StyleableSvgImage\n src={icons.header.logoUnifi}\n width={59}\n height={18}\n />\n );\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={icons.header.logoUisp}\n width={56.5}\n height={18}\n />\n );\n default:\n return (\n <StyleableSvgImage src={icons.header.logo} width={17.86} height={18} />\n );\n }\n};\n"],"names":["HeaderLogoIcon","productLine","ProductLine","Unifi","jsx","StyleableSvgImage","src","icons.header.logoUnifi","width","height","Uisp","icons.header.logoUisp","icons.header.logo"],"mappings":";;;;;;;;;;;;;;;;;;;;AASO,MAAMA,cAAiB,GAAAA,CAAC;EAAEC;CAAuC,KAAA;EAItE,QAAQA,WAAa;IACnB,KAAKC,SAAY,CAAAA,WAAA,CAAAC,KAAA;MAEb,sBAAAC,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;QACCC,GAAA,EAAKC,iCAAa,CAAA,SAAA,CAAA;QAClBC,KAAO,EAAA,EAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ,KAAKP,SAAY,CAAAA,WAAA,CAAAQ,IAAA;MAEb,sBAAAN,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;QACCC,GAAA,EAAKK,iCAAa,CAAA,SAAA,CAAA;QAClBH,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ;MAEI,sBAAAL,UAAA,CAAAA,GAAA,CAACC;QAAkBC,GAAK,EAAAM,iCAAAA,CAAAA,SAAAA,CAAmB;QAAAJ,KAAA,EAAO,KAAO;QAAAC,MAAA,EAAQ;MAAI,CAAA,CAAA;EAE3E;AACF,CAAA;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import '../../../constants/icons/index.mjs';
|
|
3
|
-
import '../../../types/index.mjs';
|
|
4
|
-
import '../../StyleableSvgImage/index.mjs';
|
|
5
|
-
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
6
|
-
import _externalAssets_BPYvPCPi__default from "../../../assets/logo.svg";
|
|
7
|
-
import { ProductLine } from '../../../types/generated.mjs';
|
|
8
|
-
import _externalAssets_TKrekyEi__default from "../../../assets/logoUisp.svg";
|
|
9
|
-
import _externalAssets_BH7iT_0Q__default from "../../../assets/logoUnifi.svg";
|
|
10
|
-
"use strict";
|
|
11
|
-
const HeaderLogoIcon = ({
|
|
12
|
-
productLine
|
|
13
|
-
}) => {
|
|
14
|
-
switch (productLine) {
|
|
15
|
-
case ProductLine.Unifi:
|
|
16
|
-
return /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
17
|
-
src: _externalAssets_BH7iT_0Q__default,
|
|
18
|
-
width: 59,
|
|
19
|
-
height: 18
|
|
20
|
-
});
|
|
21
|
-
case ProductLine.Uisp:
|
|
22
|
-
return /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
23
|
-
src: _externalAssets_TKrekyEi__default,
|
|
24
|
-
width: 56.5,
|
|
25
|
-
height: 18
|
|
26
|
-
});
|
|
27
|
-
default:
|
|
28
|
-
return /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
29
|
-
src: _externalAssets_BPYvPCPi__default,
|
|
30
|
-
width: 17.86,
|
|
31
|
-
height: 18
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
export { HeaderLogoIcon };
|
|
36
|
-
//# sourceMappingURL=LogoIcon.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogoIcon.mjs","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import * as icons from \"../../../constants/icons\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n}\n\nexport const HeaderLogoIcon = ({ productLine }: HeaderLogoIconProps) => {\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n return (\n <StyleableSvgImage\n src={icons.header.logoUnifi}\n width={59}\n height={18}\n />\n );\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={icons.header.logoUisp}\n width={56.5}\n height={18}\n />\n );\n default:\n return (\n <StyleableSvgImage src={icons.header.logo} width={17.86} height={18} />\n );\n }\n};\n"],"names":["HeaderLogoIcon","productLine","ProductLine","Unifi","jsx","StyleableSvgImage","src","icons.header.logoUnifi","width","height","Uisp","icons.header.logoUisp","icons.header.logo"],"mappings":";;;;;;;;;;AASO,MAAMA,cAAiB,GAAAA,CAAC;EAAEC;CAAuC,KAAA;EAItE,QAAQA,WAAa;IACnB,KAAKC,WAAY,CAAAC,KAAA;MAEb,sBAAAC,GAAA,CAACC,iBAAA,EAAA;QACCC,GAAA,EAAKC,iCAAa;QAClBC,KAAO,EAAA,EAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ,KAAKP,WAAY,CAAAQ,IAAA;MAEb,sBAAAN,GAAA,CAACC,iBAAA,EAAA;QACCC,GAAA,EAAKK,iCAAa;QAClBH,KAAO,EAAA,IAAA;QACPC,MAAQ,EAAA;MAAA,CAAA,CACV;IAEJ;MAEI,sBAAAL,GAAA,CAACC;QAAkBC,GAAK,EAAAM,iCAAmB;QAAAJ,KAAA,EAAO,KAAO;QAAAC,MAAA,EAAQ;MAAI,CAAA,CAAA;EAE3E;AACF,CAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LogoIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|