@ubnt/store.core 9.59.0-beta.0 → 9.59.0-new-design
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +113 -565
- package/lib/_virtual/_virtual_multi-entry.js +15 -25
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +13 -13
- package/lib/apis/smartcat.d.ts +12 -2
- package/lib/apis/smartcat.js +27 -4
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +27 -4
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/cart-secondary.svg +5 -0
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
- package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
- package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
- package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
- package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
- 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/logoUnifi.svg +10 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- 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/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/Button/Button.js +12 -5
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +8 -1
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +3 -1
- package/lib/components/Button/CartButton.js +11 -6
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +8 -4
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +3 -4
- package/lib/components/CardSection/CardSection.js.map +1 -1
- package/lib/components/CardSection/CardSection.mjs +1 -2
- package/lib/components/CardSection/CardSection.mjs.map +1 -1
- 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 +4 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
- 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 +5 -4
- 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/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/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 +30 -20
- 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/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 +40 -40
- 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.stories.d.ts +111 -0
- package/lib/components/Header/Header.styles.d.ts +7 -12
- package/lib/components/Header/Header.styles.js +10 -32
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +10 -31
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +29 -5
- 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/IsolatedHeader.d.ts +1 -0
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +47 -46
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
- package/lib/components/Header/LogoIcon/index.d.ts +1 -0
- package/lib/components/Header/LogoIcon/index.js +6 -0
- package/lib/components/Header/LogoIcon/index.js.map +1 -0
- package/lib/components/Header/LogoIcon/index.mjs +3 -0
- package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
- 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/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 +116 -109
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
- 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 +12 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
- package/lib/components/Header/ProHeader/ProHeader.js +270 -189
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
- package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
- 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 +7 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +6 -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.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 +3 -1
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
- 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/ModelCompareV3.types.d.ts +0 -1
- 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/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/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.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/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.js +2 -3
- package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
- package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- 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/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -1
- package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +10 -10
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +10 -10
- package/lib/components/ModelCompareV3/translations/de.json.js +2 -2
- package/lib/components/ModelCompareV3/translations/de.json.mjs +2 -2
- 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 -3
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +1 -3
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +2 -2
- package/lib/components/ModelCompareV3/translations/es.json.mjs +2 -2
- 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 +7 -7
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +7 -7
- 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/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +5 -5
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +5 -5
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +8 -8
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +8 -8
- 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/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- 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 +6 -1
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
- 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 +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- 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 +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 +17 -17
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- 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/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 +32 -94
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +15 -77
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.d.ts +1 -3
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.js +0 -10
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs +0 -10
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -4
- 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 +0 -1
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +0 -1
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +3 -2
- 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 +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/filters.d.ts +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -0
- package/lib/constants/proStoreCategories/mapping/index.js +20 -6
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +20 -6
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js +2 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +2 -0
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +5 -4
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +5 -4
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +5 -4
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +5 -4
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +6 -5
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +6 -5
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +5 -1
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +5 -2
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +5 -4
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +5 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +5 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +5 -2
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +5 -4
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +5 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +5 -4
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +5 -4
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +5 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +5 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +5 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +5 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +5 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +5 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +43 -7
- package/lib/constants/proStoreFilters/mapping.js +129 -15
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +129 -15
- package/lib/constants/proStoreFilters/mapping.mjs.map +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/constants/url.d.ts +1 -1
- package/lib/constants/url.js +1 -1
- package/lib/constants/url.js.map +1 -1
- package/lib/constants/url.mjs +1 -1
- package/lib/constants/url.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/contexts/MenuContext/presets.d.ts +1 -1
- package/lib/contexts/MenuContext/presets.js +2 -4
- package/lib/contexts/MenuContext/presets.js.map +1 -1
- package/lib/contexts/MenuContext/presets.mjs +2 -4
- package/lib/contexts/MenuContext/presets.mjs.map +1 -1
- package/lib/helpers/index.d.ts +0 -1
- package/lib/helpers/index.js +1 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -2
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +8 -0
- 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/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/types/generated.d.ts +1 -1
- package/lib/types/generated.js.map +1 -1
- package/lib/types/generated.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/address.d.ts +62 -278
- package/lib/utils/address.js +8 -11
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +8 -11
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/nextjs/ssr/registry.js +2 -2
- package/package.json +42 -42
- package/lib/assets/crestron.svg +0 -3
- 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/CardSection/CardSection.stories.d.ts +0 -7
- package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/helpers/product.test.d.ts +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -67
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -60
- package/lib/utils/productSort.mjs.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
- package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
- package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
- package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../constants/icons/index.js');
|
|
7
7
|
require('../../StyleableSvgImage/index.js');
|
|
@@ -19,18 +19,18 @@ function _interopDefault(e) {
|
|
|
19
19
|
var _externalAssets_B1gmoLrG__default = /*#__PURE__*/_interopDefault(_externalAssets_B1gmoLrG);
|
|
20
20
|
"use strict";
|
|
21
21
|
const LandingPageCards = function LandingPageCards2(props) {
|
|
22
|
-
const wrapRef =
|
|
23
|
-
const wrapInnerRef =
|
|
22
|
+
const wrapRef = React.useRef(null);
|
|
23
|
+
const wrapInnerRef = React.useRef(null);
|
|
24
24
|
const scrollbarWidth = reactUse.useScrollbarWidth();
|
|
25
|
-
const [customScrollbarWidth, setCustomScrollbarWidth] =
|
|
26
|
-
|
|
25
|
+
const [customScrollbarWidth, setCustomScrollbarWidth] = React.useState(0);
|
|
26
|
+
React.useEffect(() => {
|
|
27
27
|
setCustomScrollbarWidth(scrollbarWidth || 0);
|
|
28
28
|
}, [scrollbarWidth]);
|
|
29
|
-
const [showArrows, setShowArrows] =
|
|
29
|
+
const [showArrows, setShowArrows] = React.useState({
|
|
30
30
|
prev: false,
|
|
31
31
|
next: false
|
|
32
32
|
});
|
|
33
|
-
const updateArrowShowState =
|
|
33
|
+
const updateArrowShowState = React.useCallback((wrapEl, wrapInnerEl) => {
|
|
34
34
|
const cardEl = wrapEl.querySelector(`.${Cards_constants.CARD_CLASS_NAME}`);
|
|
35
35
|
if (!cardEl) return;
|
|
36
36
|
setShowArrows({
|
|
@@ -38,7 +38,7 @@ const LandingPageCards = function LandingPageCards2(props) {
|
|
|
38
38
|
next: wrapInnerEl.offsetWidth + wrapInnerEl.scrollLeft < wrapInnerEl.scrollWidth
|
|
39
39
|
});
|
|
40
40
|
}, []);
|
|
41
|
-
|
|
41
|
+
React.useEffect(() => {
|
|
42
42
|
const wrapEl = wrapRef.current;
|
|
43
43
|
const wrapInnerEl = wrapInnerRef.current;
|
|
44
44
|
if (!wrapEl || !wrapInnerEl) return;
|
|
@@ -49,7 +49,7 @@ const LandingPageCards = function LandingPageCards2(props) {
|
|
|
49
49
|
wrapInnerEl.removeEventListener("scroll", () => updateArrowShowState(wrapEl, wrapInnerEl));
|
|
50
50
|
};
|
|
51
51
|
}, [updateArrowShowState]);
|
|
52
|
-
const onPrevClick =
|
|
52
|
+
const onPrevClick = React.useCallback(() => {
|
|
53
53
|
if (!wrapRef.current || !wrapInnerRef.current) return;
|
|
54
54
|
const cardEl = wrapRef.current.querySelector(`.${Cards_constants.CARD_CLASS_NAME}`);
|
|
55
55
|
if (!cardEl) return;
|
|
@@ -58,7 +58,7 @@ const LandingPageCards = function LandingPageCards2(props) {
|
|
|
58
58
|
behavior: "smooth"
|
|
59
59
|
});
|
|
60
60
|
}, []);
|
|
61
|
-
const onNextClick =
|
|
61
|
+
const onNextClick = React.useCallback(() => {
|
|
62
62
|
if (!wrapRef.current || !wrapInnerRef.current) return;
|
|
63
63
|
const cardEl = wrapRef.current.querySelector(`.${Cards_constants.CARD_CLASS_NAME}`);
|
|
64
64
|
if (!cardEl) return;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
require('../../assets/landingPage/design-uisp-mobile.png.js');
|
|
7
7
|
require('../../assets/landingPage/design-uisp.png.js');
|
|
8
8
|
require('../../assets/landingPage/design-unifi-mobile.png.js');
|
|
@@ -40,7 +40,7 @@ const LandingPage = function LandingPage2({
|
|
|
40
40
|
collectionBlocks,
|
|
41
41
|
translations: initialTranslations
|
|
42
42
|
}) {
|
|
43
|
-
const translations =
|
|
43
|
+
const translations = React.useMemo(() => {
|
|
44
44
|
return merge__default["default"](LandingPage_constants.defaultLandingPageTranslations, initialTranslations);
|
|
45
45
|
}, [initialTranslations]);
|
|
46
46
|
return /* @__PURE__ */jsxRuntime.jsxs(LandingPage_styles.Wrap, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var currencies = require('@dinero.js/currencies');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
require('../../contexts/MenuContext/index.js');
|
|
7
7
|
var mapping = require('../../contexts/MenuContext/mapping.js');
|
|
8
8
|
require('../../types/index.js');
|
|
@@ -31,8 +31,8 @@ const LandingPagePro = ({
|
|
|
31
31
|
const {
|
|
32
32
|
navigation
|
|
33
33
|
} = context.useMenu();
|
|
34
|
-
const isSearchUsed =
|
|
35
|
-
const categories =
|
|
34
|
+
const isSearchUsed = React.useMemo(() => !!searchProps.searchValue, [searchProps.searchValue]);
|
|
35
|
+
const categories = React.useMemo(() => {
|
|
36
36
|
const navItems = sidebarProps.productTypeBlock.activeType === "unifi" ? navigation.primary.items : navigation.secondary.items;
|
|
37
37
|
const items = navItems.filter(item => item.id !== mapping.NavigationItemId.UnifiIdentity && item.id !== mapping.NavigationItemId.UispSoftware
|
|
38
38
|
/**
|
|
@@ -117,13 +117,13 @@ const LandingPagePro = ({
|
|
|
117
117
|
items: category.items.filter(item => item?.products?.length)
|
|
118
118
|
}));
|
|
119
119
|
}, [navigation.primary.items, navigation.secondary.items, productGridProps?.products, sidebarProps.productTypeBlock.activeType, sidebarProps.translations.all]);
|
|
120
|
-
const maxPriceFilterAmount =
|
|
120
|
+
const maxPriceFilterAmount = React.useMemo(() => {
|
|
121
121
|
return {
|
|
122
122
|
amount: maximumPriceFilterLookup.get(sidebarProps.filtersBlock?.currency || generated.Currency.Cad) || 7e4,
|
|
123
123
|
currency: sidebarProps.filtersBlock?.currency || generated.Currency.Cad
|
|
124
124
|
};
|
|
125
125
|
}, [sidebarProps.filtersBlock?.currency]);
|
|
126
|
-
const categoryProducts =
|
|
126
|
+
const categoryProducts = React.useMemo(() => {
|
|
127
127
|
if (!sidebarProps?.categoriesBlock?.activeCategory) {
|
|
128
128
|
return productGridProps.products;
|
|
129
129
|
}
|
|
@@ -134,7 +134,7 @@ const LandingPagePro = ({
|
|
|
134
134
|
}
|
|
135
135
|
return [];
|
|
136
136
|
}, [categories, productGridProps.products, sidebarProps.categoriesBlock?.activeCategory]);
|
|
137
|
-
const productsFilter =
|
|
137
|
+
const productsFilter = React.useCallback(product => {
|
|
138
138
|
if (sidebarProps.filtersBlock?.activeFilters?.filters?.includes("inStock") && !product.variants.find(variant => variant.isInStock)) {
|
|
139
139
|
return false;
|
|
140
140
|
}
|
|
@@ -164,7 +164,7 @@ const LandingPagePro = ({
|
|
|
164
164
|
}
|
|
165
165
|
return true;
|
|
166
166
|
}, [maxPriceFilterAmount.amount, sidebarProps.filtersBlock?.activeFilters?.filters, sidebarProps.filtersBlock?.activeFilters?.priceFrom?.displayPrice, sidebarProps.filtersBlock?.activeFilters?.priceTo?.displayPrice]);
|
|
167
|
-
const productsSort =
|
|
167
|
+
const productsSort = React.useCallback((currentProduct, nextProduct) => {
|
|
168
168
|
const currentInStock = utils.productHasSomeInStock(currentProduct);
|
|
169
169
|
const nextInStock = utils.productHasSomeInStock(nextProduct);
|
|
170
170
|
const sortWeight = !isSearchUsed ? utils.compareSortWeights({
|
|
@@ -197,13 +197,13 @@ const LandingPagePro = ({
|
|
|
197
197
|
}
|
|
198
198
|
return sortValue + sortWeight;
|
|
199
199
|
}, [isSearchUsed, productGridProps.sortValue]);
|
|
200
|
-
const products =
|
|
200
|
+
const products = React.useMemo(() => {
|
|
201
201
|
if (categoryProducts === null) {
|
|
202
202
|
return null;
|
|
203
203
|
}
|
|
204
204
|
return categoryProducts?.filter(productsFilter).sort(productsSort);
|
|
205
205
|
}, [categoryProducts, productsFilter, productsSort]);
|
|
206
|
-
const filtersBlock =
|
|
206
|
+
const filtersBlock = React.useMemo(() => {
|
|
207
207
|
if (!sidebarProps.filtersBlock) {
|
|
208
208
|
return void 0;
|
|
209
209
|
}
|
|
@@ -221,12 +221,12 @@ const LandingPagePro = ({
|
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
}, [maxPriceFilterAmount, productGridProps.products, sidebarProps.filtersBlock]);
|
|
224
|
-
const hasFilters =
|
|
224
|
+
const hasFilters = React.useMemo(() => {
|
|
225
225
|
return !!filtersBlock?.activeFilters.filters?.length || filtersBlock?.activeFilters.priceFrom !== void 0 || filtersBlock?.activeFilters.priceTo !== void 0;
|
|
226
226
|
}, [filtersBlock?.activeFilters.filters?.length, filtersBlock?.activeFilters.priceFrom, filtersBlock?.activeFilters.priceTo]);
|
|
227
|
-
const areCategoriesLoading =
|
|
228
|
-
const isSidebarLoading =
|
|
229
|
-
const isDefaultCategory =
|
|
227
|
+
const areCategoriesLoading = React.useMemo(() => !!(sidebarProps.categoriesBlock && sidebarProps.categoriesBlock.activeCategory === void 0), [sidebarProps.categoriesBlock]);
|
|
228
|
+
const isSidebarLoading = React.useMemo(() => areCategoriesLoading || !productGridProps.isFullyLoaded, [areCategoriesLoading, productGridProps.isFullyLoaded]);
|
|
229
|
+
const isDefaultCategory = React.useMemo(() => !sidebarProps.categoriesBlock?.activeCategory, [sidebarProps.categoriesBlock?.activeCategory]);
|
|
230
230
|
return /* @__PURE__ */jsxRuntime.jsxs(LandingPagePro_styles.Container, {
|
|
231
231
|
size: "desktop",
|
|
232
232
|
children: [/* @__PURE__ */jsxRuntime.jsx(LandingPageSidebar.LandingPageSidebar, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
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>;
|
|
2
2
|
export declare const ProductsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const SearchLoader: import("styled-components").StyledComponent<({ height, maxWidth, className, }: import("../SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader").SkeletonLinearLoaderProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
var layout = require('../../constants/layout.js');
|
|
7
7
|
require('../Search/index.js');
|
|
@@ -21,7 +21,7 @@ const LandingPageSearch = ({
|
|
|
21
21
|
const handleInputValueChange = e => {
|
|
22
22
|
search?.onSearch(e.target.value);
|
|
23
23
|
};
|
|
24
|
-
const handleOnClose =
|
|
24
|
+
const handleOnClose = React.useCallback(e => {
|
|
25
25
|
if (e?.ctrlKey || e?.metaKey) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../utils/money/index.js');
|
|
7
7
|
require('../../CustomImage/index.js');
|
|
@@ -26,13 +26,13 @@ const SearchModal = function SearchModal2({
|
|
|
26
26
|
renderImage,
|
|
27
27
|
disableShowMoreResults
|
|
28
28
|
}) {
|
|
29
|
-
const ref =
|
|
30
|
-
const noResults =
|
|
31
|
-
const showSearchResultsLink =
|
|
29
|
+
const ref = React.useRef(null);
|
|
30
|
+
const noResults = React.useMemo(() => !search.loading && !search.items?.length && !!formattedQuerySearchTerm, [formattedQuerySearchTerm, search.items?.length, search.loading]);
|
|
31
|
+
const showSearchResultsLink = React.useMemo(() => !disableShowMoreResults && search.totalItemsCount > MAX_SEARCH_RESULTS, [search, disableShowMoreResults]);
|
|
32
32
|
reactUse.useClickAway(ref, () => {
|
|
33
33
|
onClose?.();
|
|
34
34
|
});
|
|
35
|
-
const searchItemsSliced =
|
|
35
|
+
const searchItemsSliced = React.useMemo(() => {
|
|
36
36
|
return search.items.slice(0, MAX_SEARCH_RESULTS);
|
|
37
37
|
}, [search.items]);
|
|
38
38
|
return /* @__PURE__ */jsxRuntime.jsxs(Modal_styles.Container, {
|
|
@@ -80,16 +80,16 @@ const SearchModalItem = function SearchModalItem2({
|
|
|
80
80
|
renderImage,
|
|
81
81
|
renderSeparationBorder
|
|
82
82
|
}) {
|
|
83
|
-
const handleButtonClick =
|
|
83
|
+
const handleButtonClick = React.useCallback(() => {
|
|
84
84
|
onAddToCart(slug);
|
|
85
85
|
}, [onAddToCart, slug]);
|
|
86
|
-
const isInStock =
|
|
86
|
+
const isInStock = React.useMemo(() => {
|
|
87
87
|
return !!variants?.find(variant => variant.isInStock);
|
|
88
88
|
}, [variants]);
|
|
89
|
-
const isComingSoon =
|
|
89
|
+
const isComingSoon = React.useMemo(() => {
|
|
90
90
|
return !isInStock && !!variants?.find(variant => variant.isComingSoon);
|
|
91
91
|
}, [isInStock, variants]);
|
|
92
|
-
const addToCartButtonText =
|
|
92
|
+
const addToCartButtonText = React.useMemo(() => {
|
|
93
93
|
if (isComingSoon) {
|
|
94
94
|
return translations.view;
|
|
95
95
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var Checkbox = require('@ubnt/ui-components/Checkbox');
|
|
5
5
|
var Radio = require('@ubnt/ui-components/Radio');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactUse = require('react-use');
|
|
8
8
|
require('../../assets/icons/previouslyPurchasedStar.svg.js');
|
|
9
9
|
require('../../constants/icons/index.js');
|
|
@@ -44,11 +44,11 @@ const LandingPageSidebar = function LandingPageSidebar2({
|
|
|
44
44
|
productTypeProps,
|
|
45
45
|
isCartSummaryOpen
|
|
46
46
|
}) {
|
|
47
|
-
const [isMobileOverlayOpened, setIsMobileOverlayOpened] =
|
|
47
|
+
const [isMobileOverlayOpened, setIsMobileOverlayOpened] = React.useState(false);
|
|
48
48
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
49
|
-
const [hasFiltersChanged, setHasFiltersChanged] =
|
|
49
|
+
const [hasFiltersChanged, setHasFiltersChanged] = React.useState(false);
|
|
50
50
|
useLockBodyScrollCustom.useLockBodyScrollCustom(isMobile && isMobileOverlayOpened);
|
|
51
|
-
const filtersChange =
|
|
51
|
+
const filtersChange = React.useCallback(value => {
|
|
52
52
|
setHasFiltersChanged(true);
|
|
53
53
|
filtersBlock?.onChange(value);
|
|
54
54
|
}, [filtersBlock]);
|
|
@@ -108,17 +108,17 @@ const CategoriesBlock = function CategoriesBlock2({
|
|
|
108
108
|
isSearchUsed,
|
|
109
109
|
productCount
|
|
110
110
|
}) {
|
|
111
|
-
const getInitialIndex =
|
|
111
|
+
const getInitialIndex = React.useCallback(() => {
|
|
112
112
|
return categories.findIndex(category => {
|
|
113
113
|
return category.items.some(item => categoriesBlock?.activeCategory === item.slug);
|
|
114
114
|
});
|
|
115
115
|
}, [categories, categoriesBlock?.activeCategory]);
|
|
116
|
-
const [initialAccordionIndex, setInitialAccordionIndex] =
|
|
117
|
-
const categoryChange =
|
|
116
|
+
const [initialAccordionIndex, setInitialAccordionIndex] = React.useState(getInitialIndex());
|
|
117
|
+
const categoryChange = React.useCallback(value => {
|
|
118
118
|
setFilersChanged(true);
|
|
119
119
|
categoriesBlock?.onChange(value);
|
|
120
120
|
}, [categoriesBlock, setFilersChanged]);
|
|
121
|
-
const accordionItems =
|
|
121
|
+
const accordionItems = React.useMemo(() => {
|
|
122
122
|
return categories.filter(category => isSearchUsed || (category?.items.flatMap(item => item.products).length || 0) > 0).map(category => {
|
|
123
123
|
const firstCategory = category.items[0];
|
|
124
124
|
return {
|
|
@@ -141,7 +141,7 @@ const CategoriesBlock = function CategoriesBlock2({
|
|
|
141
141
|
};
|
|
142
142
|
});
|
|
143
143
|
}, [categories, categoriesBlock?.activeCategory, categoryChange, isSearchUsed, translations]);
|
|
144
|
-
const handleAccordionChange =
|
|
144
|
+
const handleAccordionChange = React.useCallback(index => {
|
|
145
145
|
if (index > -1) {
|
|
146
146
|
setInitialAccordionIndex(index);
|
|
147
147
|
const currentCategoryID = accordionItems[index]?.id;
|
|
@@ -209,7 +209,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
209
209
|
translations,
|
|
210
210
|
filtersBlock
|
|
211
211
|
}) {
|
|
212
|
-
const filtersList =
|
|
212
|
+
const filtersList = React.useMemo(() => {
|
|
213
213
|
return [{
|
|
214
214
|
title: translations.MSRPRange,
|
|
215
215
|
id: "priceRange",
|
|
@@ -232,7 +232,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
232
232
|
type: "checkbox"
|
|
233
233
|
}];
|
|
234
234
|
}, [translations.MSRPRange, translations.earlyAccess, translations.inStock, translations.myPurchaseHistory]);
|
|
235
|
-
const handleCheckboxChange =
|
|
235
|
+
const handleCheckboxChange = React.useCallback((value, checked) => {
|
|
236
236
|
if (checked && !filtersBlock?.activeFilters.filters?.includes(value)) {
|
|
237
237
|
const newData = {
|
|
238
238
|
...filtersBlock?.activeFilters,
|
|
@@ -247,7 +247,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
247
247
|
filtersBlock?.onChange(newData);
|
|
248
248
|
}
|
|
249
249
|
}, [filtersBlock]);
|
|
250
|
-
const hasFilters =
|
|
250
|
+
const hasFilters = React.useMemo(() => {
|
|
251
251
|
return !!filtersBlock?.activeFilters.filters?.length || filtersBlock?.activeFilters.priceFrom !== void 0 || filtersBlock?.activeFilters.priceTo !== void 0;
|
|
252
252
|
}, [filtersBlock?.activeFilters.filters?.length, filtersBlock?.activeFilters.priceFrom, filtersBlock?.activeFilters.priceTo]);
|
|
253
253
|
if (!filtersBlock) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../assets/icons/link.svg.js');
|
|
7
7
|
require('../../contexts/MenuContext/index.js');
|
|
@@ -56,8 +56,8 @@ const LayoutRenderer = ({
|
|
|
56
56
|
const {
|
|
57
57
|
activeNavigationSection
|
|
58
58
|
} = context.useMenu();
|
|
59
|
-
const wrapRef =
|
|
60
|
-
const images =
|
|
59
|
+
const wrapRef = React.useRef(null);
|
|
60
|
+
const images = React.useMemo(() => {
|
|
61
61
|
if (currentProduct?.images?.length) {
|
|
62
62
|
if (!currentProduct?.showGallery && currentProduct.images[0]) {
|
|
63
63
|
return [currentProduct.images[0]];
|
|
@@ -72,10 +72,10 @@ const LayoutRenderer = ({
|
|
|
72
72
|
const [galleryRef, {
|
|
73
73
|
width: galleryWidth
|
|
74
74
|
}] = reactUse.useMeasure();
|
|
75
|
-
const galleryHeight =
|
|
75
|
+
const galleryHeight = React.useMemo(() => {
|
|
76
76
|
return windowHeight - Header_styles.HEADER_HEIGHT - 80;
|
|
77
77
|
}, [windowHeight]);
|
|
78
|
-
const showTitle =
|
|
78
|
+
const showTitle = React.useMemo(() =>
|
|
79
79
|
// If not pro-store
|
|
80
80
|
!isProStore && (
|
|
81
81
|
// If we have no collection
|
|
@@ -84,7 +84,7 @@ const LayoutRenderer = ({
|
|
|
84
84
|
activeNavigationSection.items.every(item => !item.active) ||
|
|
85
85
|
// If we have collection and there are active, invisible items
|
|
86
86
|
activeNavigationSection.items.some(item => item.active && item.invisible)), [activeNavigationSection.items, collection, isProStore]);
|
|
87
|
-
const photos =
|
|
87
|
+
const photos = React.useMemo(() => {
|
|
88
88
|
return currentProduct?.deploymentImages?.map(asset => {
|
|
89
89
|
return {
|
|
90
90
|
...asset,
|
|
@@ -93,8 +93,8 @@ const LayoutRenderer = ({
|
|
|
93
93
|
};
|
|
94
94
|
}) ?? [];
|
|
95
95
|
}, [collection?.slug, currentProduct?.deploymentImages]);
|
|
96
|
-
const [activeTab, setActiveTab] =
|
|
97
|
-
const closerLookSectionProps =
|
|
96
|
+
const [activeTab, setActiveTab] = React.useState();
|
|
97
|
+
const closerLookSectionProps = React.useMemo(() => {
|
|
98
98
|
return {
|
|
99
99
|
translations: translations.closerLookSection,
|
|
100
100
|
renderImage,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const ProductLayoutProductSectionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const ProductLayoutLeftSide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const ProductLayoutRightSide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
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, {
|
|
2
2
|
imageCarouselFullScreen?: boolean;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").
|
|
4
|
+
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {
|
|
5
5
|
imageCarouselFullScreen?: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const ProductSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
@@ -44,7 +44,7 @@ export declare const DescriptionIconWrap: import("styled-components").StyledComp
|
|
|
44
44
|
export declare const BREADCRUMBS_HEIGHT: number;
|
|
45
45
|
export declare const LAYOUT_DIVIDER_HEIGHT = 1;
|
|
46
46
|
export declare const ProductLayoutDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
47
|
-
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").
|
|
47
|
+
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
48
48
|
export declare const ProductLayoutBreadcrumbs: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Breadcrumbs/Breadcrumbs.types").BreadcrumbsProps & import("react").RefAttributes<HTMLDivElement | null>>, import("styled-components").DefaultTheme, {
|
|
49
49
|
showDivider?: boolean;
|
|
50
50
|
}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
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, {
|
|
2
2
|
imageCarouselFullScreen?: boolean;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").
|
|
4
|
+
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {
|
|
5
5
|
imageCarouselFullScreen?: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const ProductSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
@@ -41,7 +41,7 @@ export declare const TopologyScheme: import("styled-components").StyledComponent
|
|
|
41
41
|
export declare const DescriptionItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
42
42
|
export declare const DescriptionIconCircle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
43
43
|
export declare const DescriptionIconWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
44
|
-
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").
|
|
44
|
+
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
45
45
|
export declare const ProductLayoutHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
46
46
|
export declare const ProductLayoutTitle: import("styled-components").StyledComponent<"h1", import("styled-components").DefaultTheme, {}, never>;
|
|
47
47
|
export declare const ProductLayoutDescription: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Props } from "./LoaderDots.types";
|
|
2
|
-
export declare const LoaderDots: ({ size }: Props) => JSX.Element;
|
|
2
|
+
export declare const LoaderDots: ({ size, color, }: Props) => JSX.Element;
|
|
@@ -14,10 +14,12 @@ function _interopDefault(e) {
|
|
|
14
14
|
var LoaderDotsSvg__default = /*#__PURE__*/_interopDefault(LoaderDotsSvg);
|
|
15
15
|
"use strict";
|
|
16
16
|
const LoaderDots = function LoaderDots2({
|
|
17
|
-
size = "medium"
|
|
17
|
+
size = "medium",
|
|
18
|
+
color
|
|
18
19
|
}) {
|
|
19
20
|
return /* @__PURE__ */jsxRuntime.jsx(LoaderDots_styles.Wrap, {
|
|
20
21
|
size,
|
|
22
|
+
color,
|
|
21
23
|
children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
22
24
|
src: LoaderDotsSvg__default["default"],
|
|
23
25
|
width: LoaderDots_styles.SIZES[size].width,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.js","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({
|
|
1
|
+
{"version":3,"file":"LoaderDots.js","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({\n size = \"medium\",\n color,\n}: Props) {\n return (\n <S.Wrap size={size} color={color}>\n <StyleableSvgImage\n src={LoaderDotsSvg}\n width={S.SIZES[size].width}\n height={S.SIZES[size].height}\n />\n </S.Wrap>\n );\n};\n"],"names":["LoaderDots","LoaderDots2","size","color","jsx","S.Wrap","children","StyleableSvgImage","src","LoaderDotsSvg","width","S.SIZES","height"],"mappings":";;;;;;;;;;;;;;;AAKa,MAAAA,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,QAAA;EACPC;AACF,CAAU,EAAA;EACR,OACGC,eAAAA,UAAAA,CAAAA,GAAA,CAAAC,iBAAAA,CAAAA,IAAA,EAAA;IAAOH;IAAYC,KAClB;IAAAG,QAAA,EAAA,eAAAF,UAAA,CAAAA,GAAA,CAACG,iBAAA,CAAAA,iBAAA,EAAA;MACCC,GAAK,EAAAC,sBAAA,CAAA,SAAA,CAAA;MACLC,KAAO,EAAAC,iBAAAA,CAAAA,KAAQ,CAAAT,IAAI,CAAE,CAAAQ,KAAA;MACrBE,MAAQ,EAAAD,iBAAAA,CAAAA,KAAQ,CAAAT,IAAI,CAAE,CAAAU;IAAA,CAE1B;EAAA,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -6,10 +6,12 @@ import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
|
6
6
|
import LoaderDotsSvg__default from "../../assets/loaderDots.svg";
|
|
7
7
|
"use strict";
|
|
8
8
|
const LoaderDots = function LoaderDots2({
|
|
9
|
-
size = "medium"
|
|
9
|
+
size = "medium",
|
|
10
|
+
color
|
|
10
11
|
}) {
|
|
11
12
|
return /* @__PURE__ */jsx(Wrap, {
|
|
12
13
|
size,
|
|
14
|
+
color,
|
|
13
15
|
children: /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
14
16
|
src: LoaderDotsSvg__default,
|
|
15
17
|
width: SIZES[size].width,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({
|
|
1
|
+
{"version":3,"file":"LoaderDots.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({\n size = \"medium\",\n color,\n}: Props) {\n return (\n <S.Wrap size={size} color={color}>\n <StyleableSvgImage\n src={LoaderDotsSvg}\n width={S.SIZES[size].width}\n height={S.SIZES[size].height}\n />\n </S.Wrap>\n );\n};\n"],"names":["LoaderDots","LoaderDots2","size","color","jsx","S.Wrap","children","StyleableSvgImage","src","LoaderDotsSvg","width","S.SIZES","height"],"mappings":";;;;;;;AAKa,MAAAA,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,QAAA;EACPC;AACF,CAAU,EAAA;EACR,OACG,eAAAC,GAAA,CAAAC,IAAA,EAAA;IAAOH;IAAYC,KAClB;IAAAG,QAAA,EAAA,eAAAF,GAAA,CAACG,iBAAA,EAAA;MACCC,GAAK,EAAAC,sBAAA;MACLC,KAAO,EAAAC,KAAQ,CAAAT,IAAI,CAAE,CAAAQ,KAAA;MACrBE,MAAQ,EAAAD,KAAQ,CAAAT,IAAI,CAAE,CAAAU;IAAA,CAE1B;EAAA,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { LoaderDotsSize } from "./LoaderDots.types";
|
|
1
|
+
import type { LoaderDotsColor, LoaderDotsSize } from "./LoaderDots.types";
|
|
2
2
|
export declare const SIZES: Record<LoaderDotsSize, {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
5
|
}>;
|
|
6
6
|
export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
7
|
size: LoaderDotsSize;
|
|
8
|
+
color?: LoaderDotsColor;
|
|
8
9
|
}, never>;
|
|
@@ -21,7 +21,17 @@ const SIZES = {
|
|
|
21
21
|
};
|
|
22
22
|
const Wrap = styled__default["default"].div`
|
|
23
23
|
display: block;
|
|
24
|
-
color: ${
|
|
24
|
+
color: ${({
|
|
25
|
+
color
|
|
26
|
+
}) => {
|
|
27
|
+
if (!color) return theme.theme.colors.white;
|
|
28
|
+
switch (color) {
|
|
29
|
+
case "white":
|
|
30
|
+
return theme.theme.colors.white;
|
|
31
|
+
case "primaryBlue":
|
|
32
|
+
return theme.theme.colors.primaryBlue;
|
|
33
|
+
}
|
|
34
|
+
}};
|
|
25
35
|
width: ${({
|
|
26
36
|
size
|
|
27
37
|
}) => SIZES[size].width}px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.styles.js","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type { LoaderDotsSize } from \"./LoaderDots.types\";\n\nexport const SIZES: Record<\n LoaderDotsSize,\n {\n width: number;\n height: number;\n }\n> = {\n large: {\n width: 36,\n height: 36,\n },\n medium: {\n width: 18,\n height: 18,\n },\n};\n\nexport const Wrap = styled.div<{
|
|
1
|
+
{"version":3,"file":"LoaderDots.styles.js","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type { LoaderDotsColor, LoaderDotsSize } from \"./LoaderDots.types\";\n\nexport const SIZES: Record<\n LoaderDotsSize,\n {\n width: number;\n height: number;\n }\n> = {\n large: {\n width: 36,\n height: 36,\n },\n medium: {\n width: 18,\n height: 18,\n },\n};\n\nexport const Wrap = styled.div<{\n size: LoaderDotsSize;\n color?: LoaderDotsColor;\n}>`\n display: block;\n color: ${({ color }) => {\n if (!color) return theme.colors.white;\n\n switch (color) {\n case \"white\":\n return theme.colors.white;\n case \"primaryBlue\":\n return theme.colors.primaryBlue;\n }\n }};\n width: ${({ size }) => SIZES[size].width}px;\n height: ${({ size }) => SIZES[size].height}px;\n`;\n"],"names":["SIZES","large","width","height","medium","Wrap","styled","div","color","theme","colors","white","primaryBlue","size"],"mappings":";;;;;;;;;;;AAKO,MAAMA,KAMT,GAAA;EACFC,KAAO,EAAA;IACLC,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,MAAQ,EAAA;IACNF,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV;AACF,CAAA;AAEO,MAAME,OAAOC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,WAKhB,CAAC;EAAEC;CAAY,KAAA;EACtB,IAAI,CAACA,KAAA,EAAc,OAAAC,WAAA,CAAMC,MAAO,CAAAC,KAAA;EAEhC,QAAQH,KAAO;IACb,KAAK,OAAA;MACH,OAAOC,YAAMC,MAAO,CAAAC,KAAA;IACtB,KAAK,aAAA;MACH,OAAOF,YAAMC,MAAO,CAAAE,WAAA;EACxB;AACF,CAAC;AAAA,WACQ,CAAC;EAAEC;MAAWb,KAAM,CAAAa,IAAI,EAAEX,KAAK;AAAA,YAC9B,CAAC;EAAEW;MAAWb,KAAM,CAAAa,IAAI,EAAEV,MAAM;AAAA,CAAA;;"}
|
|
@@ -13,7 +13,17 @@ const SIZES = {
|
|
|
13
13
|
};
|
|
14
14
|
const Wrap = styled.div`
|
|
15
15
|
display: block;
|
|
16
|
-
color: ${
|
|
16
|
+
color: ${({
|
|
17
|
+
color
|
|
18
|
+
}) => {
|
|
19
|
+
if (!color) return theme.colors.white;
|
|
20
|
+
switch (color) {
|
|
21
|
+
case "white":
|
|
22
|
+
return theme.colors.white;
|
|
23
|
+
case "primaryBlue":
|
|
24
|
+
return theme.colors.primaryBlue;
|
|
25
|
+
}
|
|
26
|
+
}};
|
|
17
27
|
width: ${({
|
|
18
28
|
size
|
|
19
29
|
}) => SIZES[size].width}px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.styles.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type { LoaderDotsSize } from \"./LoaderDots.types\";\n\nexport const SIZES: Record<\n LoaderDotsSize,\n {\n width: number;\n height: number;\n }\n> = {\n large: {\n width: 36,\n height: 36,\n },\n medium: {\n width: 18,\n height: 18,\n },\n};\n\nexport const Wrap = styled.div<{
|
|
1
|
+
{"version":3,"file":"LoaderDots.styles.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type { LoaderDotsColor, LoaderDotsSize } from \"./LoaderDots.types\";\n\nexport const SIZES: Record<\n LoaderDotsSize,\n {\n width: number;\n height: number;\n }\n> = {\n large: {\n width: 36,\n height: 36,\n },\n medium: {\n width: 18,\n height: 18,\n },\n};\n\nexport const Wrap = styled.div<{\n size: LoaderDotsSize;\n color?: LoaderDotsColor;\n}>`\n display: block;\n color: ${({ color }) => {\n if (!color) return theme.colors.white;\n\n switch (color) {\n case \"white\":\n return theme.colors.white;\n case \"primaryBlue\":\n return theme.colors.primaryBlue;\n }\n }};\n width: ${({ size }) => SIZES[size].width}px;\n height: ${({ size }) => SIZES[size].height}px;\n`;\n"],"names":["SIZES","large","width","height","medium","Wrap","styled","div","color","theme","colors","white","primaryBlue","size"],"mappings":";;;AAKO,MAAMA,KAMT,GAAA;EACFC,KAAO,EAAA;IACLC,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,MAAQ,EAAA;IACNF,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV;AACF,CAAA;AAEO,MAAME,OAAOC,MAAO,CAAAC,GAAA;AAAA;AAAA,WAKhB,CAAC;EAAEC;CAAY,KAAA;EACtB,IAAI,CAACA,KAAA,EAAc,OAAAC,KAAA,CAAMC,MAAO,CAAAC,KAAA;EAEhC,QAAQH,KAAO;IACb,KAAK,OAAA;MACH,OAAOC,MAAMC,MAAO,CAAAC,KAAA;IACtB,KAAK,aAAA;MACH,OAAOF,MAAMC,MAAO,CAAAE,WAAA;EACxB;AACF,CAAC;AAAA,WACQ,CAAC;EAAEC;MAAWb,KAAM,CAAAa,IAAI,EAAEX,KAAK;AAAA,YAC9B,CAAC;EAAEW;MAAWb,KAAM,CAAAa,IAAI,EAAEV,MAAM;AAAA,CAAA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../../contexts/MenuContext/index.js');
|
|
6
6
|
var MeetUniFiVideoPlayer_helpers = require('../MeetUniFiVideoPlayer.helpers.js');
|
|
7
7
|
var EpisodeCard_styles = require('./EpisodeCard.styles.js');
|
|
@@ -16,20 +16,20 @@ const EpisodeCard = ({
|
|
|
16
16
|
const {
|
|
17
17
|
languageDirection
|
|
18
18
|
} = context.useMenu();
|
|
19
|
-
const videoRef =
|
|
20
|
-
const [videoShouldPlay, setVideoShouldPlay] =
|
|
21
|
-
const [videoLoaded, setVideoLoaded] =
|
|
22
|
-
const handleMouseOver =
|
|
19
|
+
const videoRef = React.useRef(null);
|
|
20
|
+
const [videoShouldPlay, setVideoShouldPlay] = React.useState(false);
|
|
21
|
+
const [videoLoaded, setVideoLoaded] = React.useState(false);
|
|
22
|
+
const handleMouseOver = React.useCallback(() => {
|
|
23
23
|
setVideoShouldPlay(true);
|
|
24
24
|
videoRef.current?.play();
|
|
25
25
|
onMouseOver?.();
|
|
26
26
|
}, [onMouseOver]);
|
|
27
|
-
const handleMouseOut =
|
|
27
|
+
const handleMouseOut = React.useCallback(() => {
|
|
28
28
|
setVideoShouldPlay(false);
|
|
29
29
|
videoRef.current?.pause();
|
|
30
30
|
onMouseOut?.();
|
|
31
31
|
}, [onMouseOut]);
|
|
32
|
-
const handleOnClick =
|
|
32
|
+
const handleOnClick = React.useCallback(() => {
|
|
33
33
|
onClick?.(episode.id);
|
|
34
34
|
}, [episode.id, onClick]);
|
|
35
35
|
return /* @__PURE__ */jsxRuntime.jsxs(EpisodeCard_styles.Container, {
|