@ubnt/store.core 9.59.0-new-design → 9.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -122
- 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/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- 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/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/poe2.svg +2 -3
- package/lib/assets/poe3.svg +3 -2
- package/lib/assets/port.svg +2 -4
- package/lib/assets/port2.svg +4 -2
- 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/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/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/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/poe.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- 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 +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +4 -4
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +4 -4
- 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/data/properties/powerMethodPoe.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.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 +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- 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/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +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 +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +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 -79
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
- 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 -86
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -72
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroupBasic.styles.mjs","sources":["../../../src/components/ButtonGroupBasic/ButtonGroupBasic.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS, CONTAINER_PADDING } from \"../../constants/layout\";\nimport { theme } from \"../../constants/theme\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\
|
|
1
|
+
{"version":3,"file":"ButtonGroupBasic.styles.mjs","sources":["../../../src/components/ButtonGroupBasic/ButtonGroupBasic.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS, CONTAINER_PADDING } from \"../../constants/layout\";\nimport { theme } from \"../../constants/theme\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\n\nexport const ButtonGroupBasic = styled.div`\n margin: 0 -${CONTAINER_PADDING.DESKTOP}px;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n margin: 0 -${CONTAINER_PADDING.MOBILE}px;\n }\n\n ${ScrollContainer} {\n padding: 0 ${CONTAINER_PADDING.DESKTOP}px;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n padding: 0 ${CONTAINER_PADDING.MOBILE}px;\n }\n }\n`;\n\nexport const ButtonGroupBasicInner = styled.div``;\n\nexport const Button = styled.button<{\n $isActive?: boolean;\n}>`\n color: ${theme.colors.shuttleGray};\n cursor: pointer;\n border-radius: 4px;\n border: none;\n font-weight: 400;\n font-size: ${theme.font.size14};\n line-height: 17px;\n padding: 14px 20px;\n white-space: nowrap;\n transition: 0.2s ease-in-out;\n letter-spacing: -0.02em;\n background-color: transparent;\n\n &:hover,\n &:focus {\n background-color: #cce2ff;\n }\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background-color: #006fff;\n color: ${theme.colors.white};\n\n &:hover,\n &:focus {\n background-color: #006fff;\n color: ${theme.colors.white};\n }\n `}\n`;\n"],"names":["ButtonGroupBasic","styled","div","CONTAINER_PADDING","DESKTOP","BREAKPOINTS","TABLET_AND_DOWN","MOBILE","ScrollContainer","ButtonGroupBasicInner","Button","button","theme","colors","shuttleGray","font","size14","$isActive","css","white"],"mappings":";;;;;AAMO,MAAMA,mBAAmBC,MAAO,CAAAC,GAAA;AAAA,eACxBC,kBAAkBC,OAAO;AAAA;AAAA,WAE7BC,YAAYC,eAAe;AAAA,iBACrBH,kBAAkBI,MAAM;AAAA;AAAA;AAAA,IAGrCC,eAAe;AAAA,iBACFL,kBAAkBC,OAAO;AAAA;AAAA,aAE7BC,YAAYC,eAAe;AAAA,mBACrBH,kBAAkBI,MAAM;AAAA;AAAA;AAAA,CAAA;AAKpC,MAAME,wBAAwBR,MAAO,CAAAC,GAAA,EAAA;AAErC,MAAMQ,SAAST,MAAO,CAAAU,MAAA;AAAA,WAGlBC,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpBF,KAAA,CAAMG,KAAKC,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAa5B,CAAC;EAAEC;CAAU,KACbA,SACA,IAAAC,GAAA;AAAA;AAAA,eAEWN,KAAA,CAAMC,OAAOM,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,iBAKhBP,KAAA,CAAMC,OAAOM,KAAK;AAAA;AAAA,KAE9B;AAAA,CAAA;"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ContainerProps } from "../Container/Container.types";
|
|
2
1
|
interface ButtonGroupBasicItem {
|
|
3
2
|
title: string;
|
|
4
3
|
id: string;
|
|
@@ -8,13 +7,10 @@ export interface ButtonItemProps {
|
|
|
8
7
|
activeId?: string | string[];
|
|
9
8
|
id: string;
|
|
10
9
|
title: string;
|
|
11
|
-
variant: ButtonGroupBasicProps["variant"];
|
|
12
10
|
}
|
|
13
11
|
export type ButtonGroupBasicProps = {
|
|
14
12
|
items: ButtonGroupBasicItem[];
|
|
15
13
|
onClick?: (id: string) => void;
|
|
16
14
|
activeId?: string | string[];
|
|
17
|
-
variant?: "basic" | "underline";
|
|
18
|
-
innerContainerSize?: ContainerProps["size"];
|
|
19
15
|
};
|
|
20
16
|
export {};
|
|
@@ -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
|
require('../../../contexts/MenuContext/mapping.js');
|
|
7
7
|
require('../../../hooks/index.js');
|
|
@@ -73,7 +73,7 @@ const Card = ({
|
|
|
73
73
|
}).then(res => res.default)
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const labelEls =
|
|
76
|
+
const labelEls = react.useMemo(() => {
|
|
77
77
|
if (!labels) {
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
@@ -97,14 +97,14 @@ const Card = ({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}, [labels, formatMessage]);
|
|
100
|
-
const [playing, setPlaying] =
|
|
101
|
-
const onMouseEnter =
|
|
100
|
+
const [playing, setPlaying] = react.useState(false);
|
|
101
|
+
const onMouseEnter = react.useCallback(() => {
|
|
102
102
|
setPlaying(true);
|
|
103
103
|
}, []);
|
|
104
|
-
const onMouseLeave =
|
|
104
|
+
const onMouseLeave = react.useCallback(() => {
|
|
105
105
|
setPlaying(false);
|
|
106
106
|
}, []);
|
|
107
|
-
const handleCardClick =
|
|
107
|
+
const handleCardClick = react.useCallback(e => {
|
|
108
108
|
beforeFollowLink?.(learnMoreHref);
|
|
109
109
|
onLinkClick?.(e, learnMoreHref);
|
|
110
110
|
}, [beforeFollowLink, learnMoreHref, onLinkClick]);
|
|
@@ -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
|
require('./Card/index.js');
|
|
7
7
|
var CardSection_styles = require('./CardSection.styles.js');
|
|
@@ -19,7 +19,7 @@ const CardSection = ({
|
|
|
19
19
|
const {
|
|
20
20
|
languageDirection
|
|
21
21
|
} = context.useMenu();
|
|
22
|
-
const cards =
|
|
22
|
+
const cards = react.useMemo(() => {
|
|
23
23
|
return cardsProps.map((props, i) => {
|
|
24
24
|
return {
|
|
25
25
|
id: `${sectionTitle}_${i}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const CardSectionWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const SectionTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const CardsScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon,
|
|
3
|
+
export declare const CardsScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const CardsWrapper: import("styled-components").StyledComponent<"div", 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
|
require('../../assets/icons/cart.svg.js');
|
|
6
6
|
require('../../assets/icons/cartEmpty.svg.js');
|
|
7
7
|
require('../StyleableSvgImage/index.js');
|
|
@@ -24,7 +24,7 @@ const CartIcon = ({
|
|
|
24
24
|
height = 20,
|
|
25
25
|
motif = "light"
|
|
26
26
|
}) => {
|
|
27
|
-
const cartQuantityText =
|
|
27
|
+
const cartQuantityText = react.useMemo(() => {
|
|
28
28
|
if (itemCount && itemCount > 0) {
|
|
29
29
|
return itemCount > 99 ? "99+" : itemCount.toString();
|
|
30
30
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
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>;
|
|
4
|
-
export declare const ScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, alignActive, disableScrollToActive, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const ScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
5
3
|
export declare const Item: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
4
|
$selected: boolean;
|
|
7
5
|
}, never>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var styled = require('styled-components');
|
|
4
4
|
var layout = require('../../constants/layout.js');
|
|
5
|
+
var theme = require('../../constants/theme.js');
|
|
5
6
|
require('../Container/index.js');
|
|
6
7
|
require('../ScrollWrapper/index.js');
|
|
7
8
|
var ScrollWrapper_styles = require('../ScrollWrapper/ScrollWrapper.styles.js');
|
|
@@ -16,19 +17,17 @@ function _interopDefault(e) {
|
|
|
16
17
|
}
|
|
17
18
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
18
19
|
"use strict";
|
|
19
|
-
const CATEGORY_TABS_HEIGHT = 79;
|
|
20
|
-
const CATEGORY_TABS_HEIGHT_MOBILE = 65;
|
|
21
20
|
const Container = styled__default["default"](Container$1.Container)`
|
|
22
21
|
padding: 0;
|
|
23
22
|
|
|
24
23
|
margin-top: 16px;
|
|
25
24
|
margin-bottom: 16px;
|
|
26
|
-
max-height:
|
|
25
|
+
max-height: 79px;
|
|
27
26
|
|
|
28
27
|
@media ${layout.BREAKPOINTS.MOBILE_AND_DOWN} {
|
|
29
28
|
margin-top: 0;
|
|
30
29
|
margin-bottom: 0;
|
|
31
|
-
max-height:
|
|
30
|
+
max-height: 65px;
|
|
32
31
|
}
|
|
33
32
|
`;
|
|
34
33
|
const ScrollWrapper = styled__default["default"](ScrollWrapper$1.ScrollWrapper)`
|
|
@@ -62,13 +61,13 @@ const Item = styled__default["default"].div`
|
|
|
62
61
|
${({
|
|
63
62
|
$selected
|
|
64
63
|
}) => $selected && styled.css`
|
|
65
|
-
background-color:
|
|
64
|
+
background-color: ${theme.theme.colors.athensGreyDark};
|
|
66
65
|
`}
|
|
67
66
|
|
|
68
67
|
/* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */
|
|
69
68
|
@media (hover: hover) {
|
|
70
69
|
:hover {
|
|
71
|
-
background-color:
|
|
70
|
+
background-color: ${theme.theme.colors.athensGreyDark};
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
|
|
@@ -93,8 +92,6 @@ const IconWrap = styled__default["default"].div`
|
|
|
93
92
|
const Icon = styled__default["default"](StyleableSvgImage.StyleableSvgImage)`
|
|
94
93
|
color: #4c4c4c;
|
|
95
94
|
`;
|
|
96
|
-
exports.CATEGORY_TABS_HEIGHT = CATEGORY_TABS_HEIGHT;
|
|
97
|
-
exports.CATEGORY_TABS_HEIGHT_MOBILE = CATEGORY_TABS_HEIGHT_MOBILE;
|
|
98
95
|
exports.Container = Container;
|
|
99
96
|
exports.Icon = Icon;
|
|
100
97
|
exports.IconWrap = IconWrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryTabs.styles.js","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { ScrollWrapper as ScrollWrapperBase } from \"../ScrollWrapper\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const
|
|
1
|
+
{"version":3,"file":"CategoryTabs.styles.js","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { theme } from \"../../constants/theme\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { ScrollWrapper as ScrollWrapperBase } from \"../ScrollWrapper\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const Container = styled(ContainerBase)`\n padding: 0;\n\n margin-top: 16px;\n margin-bottom: 16px;\n max-height: 79px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin-top: 0;\n margin-bottom: 0;\n max-height: 65px;\n }\n`;\n\nexport const ScrollWrapper = styled(ScrollWrapperBase)`\n ${ScrollContainer} {\n padding: 0 32px;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n padding: 0 16px;\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding: 0 8px;\n }\n }\n`;\n\nexport const Item = styled.div<{ $selected: boolean }>`\n display: block;\n padding: 8px;\n border-radius: 8px;\n height: 79px;\n min-width: 67px;\n\n font-size: 13px;\n line-height: 1.23;\n color: #393939;\n text-align: center;\n\n cursor: pointer;\n transition: background-color 0.2s ease-in-out;\n\n ${({ $selected }) =>\n $selected &&\n css`\n background-color: ${theme.colors.athensGreyDark};\n `}\n\n /* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */\n @media (hover: hover) {\n :hover {\n background-color: ${theme.colors.athensGreyDark};\n }\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n height: 65px;\n\n padding: 8px 4px 7px;\n }\n`;\n\nexport const IconWrap = styled.div`\n margin: 5px 0 4px;\n height: 38px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 0;\n }\n`;\n\nexport const Icon = styled(StyleableSvgImage)`\n color: #4c4c4c;\n`;\n"],"names":["Container","styled","ContainerBase","BREAKPOINTS","MOBILE_AND_DOWN","ScrollWrapper","ScrollWrapperBase","ScrollContainer","TABLET_AND_DOWN","Item","div","$selected","css","theme","colors","athensGreyDark","IconWrap","Icon","StyleableSvgImage"],"mappings":";;;;;;;;;;;;;;;;;;;AASa,MAAAA,SAAA,GAAYC,eAAAA,CAAAA,SAAAA,EAAOC,WAAAA,CAAAA,SAAa,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAOlCC,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOzB,MAAAC,aAAA,GAAgBJ,eAAAA,CAAAA,SAAAA,EAAOK,eAAAA,CAAAA,aAAiB,CAAA;AAAA,IACjDC,oCAAe;AAAA;AAAA;AAAA,aAGNJ,MAAAA,CAAAA,YAAYK,eAAe;AAAA;AAAA;AAAA;AAAA,aAI3BL,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA,CAAA;AAMjC,MAAMK,OAAOR,eAAO,CAAA,SAAA,CAAA,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAevB,CAAC;EAAEC;CAAU,KACbA,SACA,IAAAC,MAAAA,CAAAA,GAAA;AAAA,0BACsBC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,cAAc;AAAA,KAChD;AAAA;AAAA;AAAA;AAAA;AAAA,0BAKqBF,KAAA,CAAAA,KAAA,CAAMC,OAAOC,cAAc;AAAA;AAAA;AAAA;AAAA,WAI1CZ,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO/B,MAAMY,WAAWf,eAAO,CAAA,SAAA,CAAA,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAQpBP,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAKzB,MAAAa,IAAA,GAAOhB,eAAAA,CAAAA,SAAAA,EAAOiB,iBAAAA,CAAAA,iBAAiB,CAAA;AAAA;AAAA,CAAA;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { BREAKPOINTS } from '../../constants/layout.mjs';
|
|
3
|
+
import { theme } from '../../constants/theme.mjs';
|
|
3
4
|
import '../Container/index.mjs';
|
|
4
5
|
import '../ScrollWrapper/index.mjs';
|
|
5
6
|
import { ScrollContainer } from '../ScrollWrapper/ScrollWrapper.styles.mjs';
|
|
@@ -8,19 +9,17 @@ import { Container as Container$1 } from '../Container/Container.mjs';
|
|
|
8
9
|
import { ScrollWrapper as ScrollWrapper$1 } from '../ScrollWrapper/ScrollWrapper.mjs';
|
|
9
10
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
10
11
|
"use strict";
|
|
11
|
-
const CATEGORY_TABS_HEIGHT = 79;
|
|
12
|
-
const CATEGORY_TABS_HEIGHT_MOBILE = 65;
|
|
13
12
|
const Container = styled(Container$1)`
|
|
14
13
|
padding: 0;
|
|
15
14
|
|
|
16
15
|
margin-top: 16px;
|
|
17
16
|
margin-bottom: 16px;
|
|
18
|
-
max-height:
|
|
17
|
+
max-height: 79px;
|
|
19
18
|
|
|
20
19
|
@media ${BREAKPOINTS.MOBILE_AND_DOWN} {
|
|
21
20
|
margin-top: 0;
|
|
22
21
|
margin-bottom: 0;
|
|
23
|
-
max-height:
|
|
22
|
+
max-height: 65px;
|
|
24
23
|
}
|
|
25
24
|
`;
|
|
26
25
|
const ScrollWrapper = styled(ScrollWrapper$1)`
|
|
@@ -54,13 +53,13 @@ const Item = styled.div`
|
|
|
54
53
|
${({
|
|
55
54
|
$selected
|
|
56
55
|
}) => $selected && css`
|
|
57
|
-
background-color:
|
|
56
|
+
background-color: ${theme.colors.athensGreyDark};
|
|
58
57
|
`}
|
|
59
58
|
|
|
60
59
|
/* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */
|
|
61
60
|
@media (hover: hover) {
|
|
62
61
|
:hover {
|
|
63
|
-
background-color:
|
|
62
|
+
background-color: ${theme.colors.athensGreyDark};
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -85,5 +84,5 @@ const IconWrap = styled.div`
|
|
|
85
84
|
const Icon = styled(StyleableSvgImage)`
|
|
86
85
|
color: #4c4c4c;
|
|
87
86
|
`;
|
|
88
|
-
export {
|
|
87
|
+
export { Container, Icon, IconWrap, Item, ScrollWrapper };
|
|
89
88
|
//# sourceMappingURL=CategoryTabs.styles.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryTabs.styles.mjs","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { ScrollWrapper as ScrollWrapperBase } from \"../ScrollWrapper\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const
|
|
1
|
+
{"version":3,"file":"CategoryTabs.styles.mjs","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { theme } from \"../../constants/theme\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { ScrollWrapper as ScrollWrapperBase } from \"../ScrollWrapper\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const Container = styled(ContainerBase)`\n padding: 0;\n\n margin-top: 16px;\n margin-bottom: 16px;\n max-height: 79px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin-top: 0;\n margin-bottom: 0;\n max-height: 65px;\n }\n`;\n\nexport const ScrollWrapper = styled(ScrollWrapperBase)`\n ${ScrollContainer} {\n padding: 0 32px;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n padding: 0 16px;\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding: 0 8px;\n }\n }\n`;\n\nexport const Item = styled.div<{ $selected: boolean }>`\n display: block;\n padding: 8px;\n border-radius: 8px;\n height: 79px;\n min-width: 67px;\n\n font-size: 13px;\n line-height: 1.23;\n color: #393939;\n text-align: center;\n\n cursor: pointer;\n transition: background-color 0.2s ease-in-out;\n\n ${({ $selected }) =>\n $selected &&\n css`\n background-color: ${theme.colors.athensGreyDark};\n `}\n\n /* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */\n @media (hover: hover) {\n :hover {\n background-color: ${theme.colors.athensGreyDark};\n }\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n height: 65px;\n\n padding: 8px 4px 7px;\n }\n`;\n\nexport const IconWrap = styled.div`\n margin: 5px 0 4px;\n height: 38px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 0;\n }\n`;\n\nexport const Icon = styled(StyleableSvgImage)`\n color: #4c4c4c;\n`;\n"],"names":["Container","styled","ContainerBase","BREAKPOINTS","MOBILE_AND_DOWN","ScrollWrapper","ScrollWrapperBase","ScrollContainer","TABLET_AND_DOWN","Item","div","$selected","css","theme","colors","athensGreyDark","IconWrap","Icon","StyleableSvgImage"],"mappings":";;;;;;;;;;;AASa,MAAAA,SAAA,GAAYC,OAAOC,WAAa,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAOlCC,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOzB,MAAAC,aAAA,GAAgBJ,OAAOK,eAAiB,CAAA;AAAA,IACjDC,eAAe;AAAA;AAAA;AAAA,aAGNJ,YAAYK,eAAe;AAAA;AAAA;AAAA;AAAA,aAI3BL,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA,CAAA;AAMjC,MAAMK,OAAOR,MAAO,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAevB,CAAC;EAAEC;CAAU,KACbA,SACA,IAAAC,GAAA;AAAA,0BACsBC,KAAA,CAAMC,OAAOC,cAAc;AAAA,KAChD;AAAA;AAAA;AAAA;AAAA;AAAA,0BAKqBF,KAAA,CAAMC,OAAOC,cAAc;AAAA;AAAA;AAAA;AAAA,WAI1CZ,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO/B,MAAMY,WAAWf,MAAO,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAQpBP,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAKzB,MAAAa,IAAA,GAAOhB,OAAOiB,iBAAiB,CAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
var Checkbox_styles = require('./Checkbox.styles.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const Checkbox = function Checkbox2({
|
|
8
8
|
radio,
|
|
9
9
|
...props
|
|
10
10
|
}) {
|
|
11
|
-
const [isSsr, setIsSsr] =
|
|
12
|
-
|
|
11
|
+
const [isSsr, setIsSsr] = react.useState(true);
|
|
12
|
+
react.useEffect(() => {
|
|
13
13
|
setIsSsr(false);
|
|
14
14
|
}, []);
|
|
15
|
-
const onRadioClick =
|
|
15
|
+
const onRadioClick = react.useCallback(e => {
|
|
16
16
|
const checked = Boolean(props.checked);
|
|
17
17
|
if (checked) {
|
|
18
18
|
props.onChange?.(
|
|
@@ -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
|
var reactUse = require('react-use');
|
|
7
7
|
var layout = require('../../constants/layout.js');
|
|
8
8
|
require('../Accordion/index.js');
|
|
@@ -64,19 +64,19 @@ const CloserLookSection = function CloserLookSection2({
|
|
|
64
64
|
bannerHtml
|
|
65
65
|
}) {
|
|
66
66
|
const isTablet = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
67
|
-
const wrapRef =
|
|
68
|
-
const translations =
|
|
67
|
+
const wrapRef = react.useRef(null);
|
|
68
|
+
const translations = react.useMemo(() => {
|
|
69
69
|
return merge__default["default"](CloserLookSection_constants.defaultCloserLookSectionTranslations, initialTranslations);
|
|
70
70
|
}, [initialTranslations]);
|
|
71
|
-
const [activeTabId, setActiveTabId] =
|
|
72
|
-
const [activeFaqSection, setActiveFaqSection] =
|
|
73
|
-
|
|
71
|
+
const [activeTabId, setActiveTabId] = react.useState();
|
|
72
|
+
const [activeFaqSection, setActiveFaqSection] = react.useState();
|
|
73
|
+
react.useEffect(() => {
|
|
74
74
|
onTabChange?.(activeTabId);
|
|
75
75
|
}, [activeTabId, onTabChange]);
|
|
76
|
-
const parsedCompareVariants =
|
|
76
|
+
const parsedCompareVariants = react.useMemo(() => {
|
|
77
77
|
return ProductCompare_utils.parseProductCompareVariants(productCompareProps?.variants ?? []);
|
|
78
78
|
}, [productCompareProps?.variants]);
|
|
79
|
-
const tabs =
|
|
79
|
+
const tabs = react.useMemo(() => {
|
|
80
80
|
const assetIsNotVideoOnTablet = asset => !isTablet || !asset.isVideo;
|
|
81
81
|
const items = [glanceAssets.length ? {
|
|
82
82
|
id: "Glance" /* Glance */,
|
|
@@ -117,14 +117,14 @@ const CloserLookSection = function CloserLookSection2({
|
|
|
117
117
|
} : null];
|
|
118
118
|
return items.filter(tab => !!tab);
|
|
119
119
|
}, [glanceAssets.length, photosAssets, translations.tabs.glance, translations.tabs.product, translations.tabs.deployment, translations.tabs.inTheBox, translations.tabs.buildFeatures, translations.tabs.performanceImages, translations.tabs.compare, translations.tabs.installationTutorial, translations.tabs.capacityCalculator, translations.tabs.recommendedAddons, translations.tabs.faq, deploymentAssets.length, inTheBoxAssets.length, buildFeatureAssets.length, performanceAssets.length, parsedCompareVariants.length, installationAssets, capacityCalculator, recommendedAddonsProps?.products.length, faq?.items.length, isTablet]);
|
|
120
|
-
|
|
120
|
+
react.useEffect(() => {
|
|
121
121
|
for (const tab of tabs) {
|
|
122
122
|
setActiveTabId(tab.id);
|
|
123
123
|
break;
|
|
124
124
|
}
|
|
125
125
|
}, [tabs]);
|
|
126
126
|
const location = reactUse.useLocation();
|
|
127
|
-
|
|
127
|
+
react.useEffect(() => {
|
|
128
128
|
const wrapEl = wrapRef.current;
|
|
129
129
|
if (!wrapEl || !location.hash) return;
|
|
130
130
|
const locationHash = location.hash.includes("faq") ? "#faq" : location.hash;
|
|
@@ -144,7 +144,7 @@ const CloserLookSection = function CloserLookSection2({
|
|
|
144
144
|
}, 1e3);
|
|
145
145
|
}, 800);
|
|
146
146
|
}, [location, location.hash, tabs]);
|
|
147
|
-
const handleGalleryModalToggle =
|
|
147
|
+
const handleGalleryModalToggle = react.useCallback((tabId, src) => {
|
|
148
148
|
onGalleryModalToggle?.(tabId, src);
|
|
149
149
|
}, [onGalleryModalToggle]);
|
|
150
150
|
if (!tabs.length) {
|
|
@@ -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('../../CustomImage/index.js');
|
|
7
7
|
require('../../ProductCard/index.js');
|
|
8
8
|
require('../../ProductCardPopup/index.js');
|
|
@@ -24,12 +24,12 @@ const RecommendedAddons = ({
|
|
|
24
24
|
products,
|
|
25
25
|
activePopupProduct
|
|
26
26
|
}) => {
|
|
27
|
-
const translations =
|
|
27
|
+
const translations = react.useMemo(() => {
|
|
28
28
|
return merge__default["default"](RecommendedAddons_constants.defaultRecommendedAddonsTranslations, initialTranslations);
|
|
29
29
|
}, [initialTranslations]);
|
|
30
|
-
const [popupProduct, setPopupProduct] =
|
|
31
|
-
const isPopupOpen =
|
|
32
|
-
|
|
30
|
+
const [popupProduct, setPopupProduct] = react.useState(activePopupProduct);
|
|
31
|
+
const isPopupOpen = react.useMemo(() => !!activePopupProduct, [activePopupProduct]);
|
|
32
|
+
react.useEffect(() => {
|
|
33
33
|
if (activePopupProduct !== void 0) {
|
|
34
34
|
setPopupProduct(activePopupProduct);
|
|
35
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
2
|
-
export declare const ContainerButtonGroup: import("styled-components").StyledComponent<import("react").
|
|
3
|
-
export declare const ContainerTable: import("styled-components").StyledComponent<import("react").
|
|
4
|
-
export declare const ContainerChart: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const ContainerButtonGroup: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const ContainerTable: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const ContainerChart: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const TableWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const CompareTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const Cell: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {
|
|
@@ -20,7 +20,7 @@ export declare const CellTextualValue: import("styled-components").StyledCompone
|
|
|
20
20
|
export declare const TableButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
21
21
|
active: boolean;
|
|
22
22
|
}, never>;
|
|
23
|
-
export declare const TableNote: import("styled-components").StyledComponent<import("react").
|
|
23
|
+
export declare const TableNote: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
24
24
|
export declare const ButtonGroupWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
25
25
|
export declare const InTheBoxTitle: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme, {}, never>;
|
|
26
26
|
export declare const InTheBoxImage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ContainerProps } from "./Container.types";
|
|
2
|
-
export declare const Container: import("react").
|
|
2
|
+
export declare const Container: import("react").NamedExoticComponent<ContainerProps>;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
var Container_styles = require('./Container.styles.js');
|
|
6
6
|
"use strict";
|
|
7
|
-
const Container =
|
|
7
|
+
const Container = react.memo(function Container2({
|
|
8
8
|
children,
|
|
9
9
|
fullHeight,
|
|
10
10
|
...rest
|
|
11
|
-
}
|
|
11
|
+
}) {
|
|
12
12
|
return /* @__PURE__ */jsxRuntime.jsx(Container_styles.Wrap, {
|
|
13
13
|
...rest,
|
|
14
14
|
children: /* @__PURE__ */jsxRuntime.jsx(Container_styles.WrapPadding, {
|
|
15
15
|
$fullHeight: fullHeight,
|
|
16
|
-
ref,
|
|
17
16
|
children
|
|
18
17
|
})
|
|
19
18
|
});
|
|
20
|
-
})
|
|
19
|
+
});
|
|
21
20
|
exports.Container = Container;
|
|
22
21
|
//# sourceMappingURL=Container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Container.js","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { Wrap, WrapPadding } from \"./Container.styles\";\nimport type { ContainerProps } from \"./Container.types\";\n\nexport const Container = memo(function Container({\n children,\n fullHeight,\n ...rest\n}: ContainerProps) {\n return (\n <Wrap {...rest}>\n <WrapPadding $fullHeight={fullHeight}>{children}</WrapPadding>\n </Wrap>\n );\n});\n"],"names":["Container","memo","Container2","children","fullHeight","rest","jsx","Wrap","WrapPadding","$fullHeight"],"mappings":";;;;;;AAKa,MAAAA,SAAA,GAAYC,KAAAA,CAAAA,IAAK,CAAA,SAASD,UAAUE,CAAA;EAC/CC,QAAA;EACAC,UAAA;EACA,GAAGC;AACL,CAAmB,EAAA;EAEf,OAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC;IAAM,GAAGF,IAAA;IACRF,wCAACK,gBAAY,CAAAA,WAAA,EAAA;MAAAC,WAAA,EAAaL,UAAa;MAAAD;IAAS,CAAA;EAClD,CAAA,CAAA;AAEJ,CAAC,CAAA;"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { memo
|
|
2
|
+
import { memo } from 'react';
|
|
3
3
|
import { Wrap, WrapPadding } from './Container.styles.mjs';
|
|
4
4
|
"use strict";
|
|
5
|
-
const Container = memo(
|
|
5
|
+
const Container = memo(function Container2({
|
|
6
6
|
children,
|
|
7
7
|
fullHeight,
|
|
8
8
|
...rest
|
|
9
|
-
}
|
|
9
|
+
}) {
|
|
10
10
|
return /* @__PURE__ */jsx(Wrap, {
|
|
11
11
|
...rest,
|
|
12
12
|
children: /* @__PURE__ */jsx(WrapPadding, {
|
|
13
13
|
$fullHeight: fullHeight,
|
|
14
|
-
ref,
|
|
15
14
|
children
|
|
16
15
|
})
|
|
17
16
|
});
|
|
18
|
-
})
|
|
17
|
+
});
|
|
19
18
|
export { Container };
|
|
20
19
|
//# sourceMappingURL=Container.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.mjs","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Container.mjs","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { Wrap, WrapPadding } from \"./Container.styles\";\nimport type { ContainerProps } from \"./Container.types\";\n\nexport const Container = memo(function Container({\n children,\n fullHeight,\n ...rest\n}: ContainerProps) {\n return (\n <Wrap {...rest}>\n <WrapPadding $fullHeight={fullHeight}>{children}</WrapPadding>\n </Wrap>\n );\n});\n"],"names":["Container","memo","Container2","children","fullHeight","rest","jsx","Wrap","WrapPadding","$fullHeight"],"mappings":";;;;AAKa,MAAAA,SAAA,GAAYC,IAAK,CAAA,SAASD,UAAUE,CAAA;EAC/CC,QAAA;EACAC,UAAA;EACA,GAAGC;AACL,CAAmB,EAAA;EAEf,OAAA,eAAAC,GAAA,CAACC;IAAM,GAAGF,IAAA;IACRF,6BAACK,WAAY,EAAA;MAAAC,WAAA,EAAaL,UAAa;MAAAD;IAAS,CAAA;EAClD,CAAA,CAAA;AAEJ,CAAC,CAAA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const StoryElement: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: import("react").
|
|
3
|
+
component: import("react").NamedExoticComponent<import("./Container.types").ContainerProps>;
|
|
4
4
|
parameters: {
|
|
5
5
|
notes: {
|
|
6
6
|
markdown: string;
|
|
@@ -8,7 +8,7 @@ declare const StoryElement: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default StoryElement;
|
|
11
|
-
export declare const Primary_PC: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
12
|
-
export declare const Mobile: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
13
|
-
export declare const Tablet: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
14
|
-
export declare const Full: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
11
|
+
export declare const Primary_PC: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps>;
|
|
12
|
+
export declare const Mobile: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps>;
|
|
13
|
+
export declare const Tablet: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps>;
|
|
14
|
+
export declare const Full: import("@storybook/core/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps>;
|
|
@@ -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 reactDom = require('react-dom');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
require('../../assets/icons/fallbackImage.svg.js');
|
|
@@ -71,19 +71,19 @@ const CustomImage = function CustomImage2({
|
|
|
71
71
|
canFullscreen,
|
|
72
72
|
onFullscreenChange
|
|
73
73
|
}) {
|
|
74
|
-
const [loading, setLoading] =
|
|
74
|
+
const [loading, setLoading] = react.useState(
|
|
75
75
|
// Set as loading by default, handle not loading in the effect
|
|
76
76
|
true);
|
|
77
|
-
const [error, setError] =
|
|
78
|
-
const [isFullscreen, setIsFullscreen] =
|
|
77
|
+
const [error, setError] = react.useState(false);
|
|
78
|
+
const [isFullscreen, setIsFullscreen] = react.useState(false);
|
|
79
79
|
reactUse.useLockBodyScroll(isFullscreen);
|
|
80
|
-
|
|
80
|
+
react.useEffect(() => {
|
|
81
81
|
if (canFullscreen && onFullscreenChange) {
|
|
82
82
|
onFullscreenChange(isFullscreen);
|
|
83
83
|
}
|
|
84
84
|
}, [canFullscreen, isFullscreen, onFullscreenChange]);
|
|
85
|
-
const wrapRef =
|
|
86
|
-
|
|
85
|
+
const wrapRef = react.useRef(null);
|
|
86
|
+
react.useEffect(() => {
|
|
87
87
|
if (!wrapRef.current) return;
|
|
88
88
|
const imageEl = wrapRef.current.querySelector("img");
|
|
89
89
|
if (!imageEl) return;
|
|
@@ -91,25 +91,25 @@ const CustomImage = function CustomImage2({
|
|
|
91
91
|
setLoading(loadingInitial);
|
|
92
92
|
setError(false);
|
|
93
93
|
}, []);
|
|
94
|
-
const handleOnError =
|
|
94
|
+
const handleOnError = react.useCallback(() => {
|
|
95
95
|
setError(true);
|
|
96
96
|
}, []);
|
|
97
|
-
const handleOnLoadingComplete =
|
|
97
|
+
const handleOnLoadingComplete = react.useCallback(() => {
|
|
98
98
|
setLoading(false);
|
|
99
99
|
setError(false);
|
|
100
100
|
}, []);
|
|
101
|
-
const handleOnLoadComplete =
|
|
101
|
+
const handleOnLoadComplete = react.useCallback(event => {
|
|
102
102
|
if (!event?.currentTarget?.src || event.currentTarget.src === asset2?.src) {
|
|
103
103
|
setLoading(false);
|
|
104
104
|
setError(false);
|
|
105
105
|
}
|
|
106
106
|
}, [asset2?.src]);
|
|
107
|
-
const handleFullscreenClick =
|
|
107
|
+
const handleFullscreenClick = react.useCallback(() => {
|
|
108
108
|
if (canFullscreen && asset2 && !error && !loading && !isFullscreen) {
|
|
109
109
|
setIsFullscreen(true);
|
|
110
110
|
}
|
|
111
111
|
}, [asset2, canFullscreen, error, isFullscreen, loading]);
|
|
112
|
-
|
|
112
|
+
react.useEffect(() => {
|
|
113
113
|
if (!canFullscreen) {
|
|
114
114
|
return;
|
|
115
115
|
}
|