@ubnt/store.core 9.64.1-new-design.2 → 9.65.0-beta.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 +620 -145
- package/lib/_virtual/_virtual_multi-entry.js +25 -15
- 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 +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/crestron.svg +3 -0
- package/lib/assets/express.jpg +0 -0
- package/lib/assets/express2.jpg +0 -0
- package/lib/assets/express7.jpg +0 -0
- package/lib/assets/express72.jpg +0 -0
- 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/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucg-fiber.png +0 -0
- package/lib/assets/udr2.jpg +0 -0
- package/lib/assets/udr3.jpg +0 -0
- package/lib/assets/udr7.jpg +0 -0
- package/lib/assets/udr7.png +0 -0
- package/lib/assets/udr72.jpg +0 -0
- package/lib/assets/ux.png +0 -0
- package/lib/assets/ux7.png +0 -0
- package/lib/components/Accordion/Accordion.js +13 -13
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mjs +9 -9
- package/lib/components/Accordion/Accordion.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.styles.d.ts +18 -18
- package/lib/components/Accordion/Accordion.styles.js +28 -22
- package/lib/components/Accordion/Accordion.styles.js.map +1 -1
- package/lib/components/Accordion/Accordion.styles.mjs +28 -22
- package/lib/components/Accordion/Accordion.styles.mjs.map +1 -1
- package/lib/components/AppDownloadBanner/AppDownloadBanner.styles.d.ts +23 -21
- package/lib/components/Avatar/Avatar.js +6 -5
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Avatar/Avatar.mjs +4 -3
- package/lib/components/Avatar/Avatar.mjs.map +1 -1
- package/lib/components/Avatar/Avatar.styles.d.ts +2 -2
- package/lib/components/BackInStock/BackInStock.styles.d.ts +12 -7
- package/lib/components/Badge/Badge.styles.d.ts +2 -2
- package/lib/components/Banner/Banner.js +4 -4
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/Banner.mjs +4 -4
- package/lib/components/Banner/Banner.mjs.map +1 -1
- package/lib/components/Banner/Banner.styles.d.ts +16 -16
- package/lib/components/Banner/Banner.styles.js +9 -9
- package/lib/components/Banner/Banner.styles.js.map +1 -1
- package/lib/components/Banner/Banner.styles.mjs +9 -9
- package/lib/components/Banner/Banner.styles.mjs.map +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -2
- package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.styles.d.ts +9 -9
- 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/Button.styles.d.ts +4 -4
- 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 +4 -11
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +4 -11
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +8 -12
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +6 -46
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +6 -46
- 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.styles.d.ts +5 -5
- package/lib/components/CardSection/Card/Card.d.ts +1 -1
- package/lib/components/CardSection/Card/Card.js +17 -19
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +11 -13
- package/lib/components/CardSection/Card/Card.mjs.map +1 -1
- package/lib/components/CardSection/Card/Card.styles.d.ts +21 -21
- package/lib/components/CardSection/Card/Card.styles.js +22 -22
- package/lib/components/CardSection/Card/Card.styles.js.map +1 -1
- package/lib/components/CardSection/Card/Card.styles.mjs +22 -22
- package/lib/components/CardSection/Card/Card.styles.mjs.map +1 -1
- package/lib/components/CardSection/Card/Card.types.d.ts +0 -1
- package/lib/components/CardSection/Card/Card.types.js.map +1 -1
- package/lib/components/CardSection/Card/Card.types.mjs.map +1 -1
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CardSection/CardSection.styles.d.ts +4 -4
- package/lib/components/CarouselGallery/CarouselGallery.styles.d.ts +11 -11
- package/lib/components/CartIcon/CartIcon.js +4 -4
- package/lib/components/CartIcon/CartIcon.js.map +1 -1
- package/lib/components/CartIcon/CartIcon.mjs +2 -2
- package/lib/components/CartIcon/CartIcon.mjs.map +1 -1
- package/lib/components/CartIcon/CartIcon.styles.d.ts +5 -5
- package/lib/components/CartIcon/CartIcon.styles.js +4 -4
- package/lib/components/CartIcon/CartIcon.styles.js.map +1 -1
- package/lib/components/CartIcon/CartIcon.styles.mjs +4 -4
- package/lib/components/CartIcon/CartIcon.styles.mjs.map +1 -1
- package/lib/components/CartSummary/CartSummary.js +1 -1
- package/lib/components/CartSummary/CartSummary.js.map +1 -1
- package/lib/components/CartSummary/CartSummary.mjs +1 -1
- package/lib/components/CartSummary/CartSummary.mjs.map +1 -1
- package/lib/components/CartSummary/CartSummary.styles.d.ts +19 -13
- package/lib/components/CartSummary/CartSummary.styles.js +2 -2
- package/lib/components/CartSummary/CartSummary.styles.js.map +1 -1
- package/lib/components/CartSummary/CartSummary.styles.mjs +2 -2
- package/lib/components/CartSummary/CartSummary.styles.mjs.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +6 -8
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +6 -9
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -8
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +7 -4
- package/lib/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.mjs +3 -0
- package/lib/components/Checkbox/Checkbox.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/CloserLookSection.styles.d.ts +8 -8
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.d.ts +3 -3
- package/lib/components/Compare/Compare.styles.d.ts +36 -34
- package/lib/components/CompareChart/CompareChart.styles.d.ts +40 -36
- package/lib/components/CompareSection/CompareSection.styles.d.ts +18 -16
- 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/Container.styles.d.ts +3 -3
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/CustomImage/CustomImage.styles.d.ts +12 -12
- package/lib/components/DeploymentGallery/DeploymentGallery.styles.d.ts +4 -4
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/Explore.styles.d.ts +36 -28
- package/lib/components/Explore/Explore.styles.js +6 -6
- package/lib/components/Explore/Explore.styles.js.map +1 -1
- package/lib/components/Explore/Explore.styles.mjs +6 -6
- package/lib/components/Explore/Explore.styles.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.d.ts +5 -3
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/Features/Features.styles.d.ts +15 -15
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.d.ts +22 -22
- package/lib/components/Footer/Footer.js +2 -3
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mjs +0 -1
- package/lib/components/Footer/Footer.mjs.map +1 -1
- package/lib/components/Footer/Footer.styles.d.ts +39 -34
- package/lib/components/Footer/Footer.styles.js +1 -1
- package/lib/components/Footer/Footer.styles.js.map +1 -1
- package/lib/components/Footer/Footer.styles.mjs +1 -1
- package/lib/components/Footer/Footer.styles.mjs.map +1 -1
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +10 -10
- package/lib/components/Gallery/Gallery.js.map +1 -1
- package/lib/components/Gallery/Gallery.mjs +1 -1
- package/lib/components/Gallery/Gallery.mjs.map +1 -1
- package/lib/components/Gallery/Gallery.styles.d.ts +12 -8
- package/lib/components/Gallery/Gallery.styles.js +3 -1
- package/lib/components/Gallery/Gallery.styles.js.map +1 -1
- package/lib/components/Gallery/Gallery.styles.mjs +3 -1
- package/lib/components/Gallery/Gallery.styles.mjs.map +1 -1
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +5 -5
- package/lib/components/Gallery/GalleryControls/GalleryControls.js.map +1 -1
- package/lib/components/Gallery/GalleryControls/GalleryControls.mjs +1 -1
- package/lib/components/Gallery/GalleryControls/GalleryControls.mjs.map +1 -1
- package/lib/components/Gallery/GalleryControls/GalleryControls.styles.d.ts +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js +2 -2
- package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js.map +1 -1
- package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs +2 -2
- package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs.map +1 -1
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +13 -13
- package/lib/components/Gallery/GalleryItem/GalleryItem.js.map +1 -1
- package/lib/components/Gallery/GalleryItem/GalleryItem.mjs +5 -5
- package/lib/components/Gallery/GalleryItem/GalleryItem.mjs.map +1 -1
- package/lib/components/Gallery/GalleryItem/GalleryItem.styles.d.ts +10 -10
- package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js +11 -11
- package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js.map +1 -1
- package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs +11 -11
- package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs.map +1 -1
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.d.ts +8 -8
- package/lib/components/GradientButton/GradientButton.d.ts +1 -1
- package/lib/components/GradientButton/GradientButton.js +2 -0
- package/lib/components/GradientButton/GradientButton.js.map +1 -1
- package/lib/components/GradientButton/GradientButton.mjs +2 -0
- package/lib/components/GradientButton/GradientButton.mjs.map +1 -1
- package/lib/components/GradientButton/GradientButton.styles.d.ts +4 -4
- package/lib/components/GradientButton/GradientButton.styles.js +6 -6
- package/lib/components/GradientButton/GradientButton.styles.js.map +1 -1
- package/lib/components/GradientButton/GradientButton.styles.mjs +6 -6
- package/lib/components/GradientButton/GradientButton.styles.mjs.map +1 -1
- package/lib/components/GridGallery/GridGallery.js +9 -9
- package/lib/components/GridGallery/GridGallery.js.map +1 -1
- package/lib/components/GridGallery/GridGallery.mjs +1 -1
- package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
- package/lib/components/GridGallery/GridGallery.styles.d.ts +13 -13
- package/lib/components/GridGallery/GridGallery.styles.js +2 -2
- package/lib/components/GridGallery/GridGallery.styles.js.map +1 -1
- package/lib/components/GridGallery/GridGallery.styles.mjs +2 -2
- package/lib/components/GridGallery/GridGallery.styles.mjs.map +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.js +7 -7
- package/lib/components/GridGallery/GridModal/GridModal.js.map +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.mjs.map +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.styles.d.ts +7 -7
- package/lib/components/GridGallery/GridModal/GridModal.styles.js +4 -4
- package/lib/components/GridGallery/GridModal/GridModal.styles.js.map +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.styles.mjs +4 -4
- package/lib/components/GridGallery/GridModal/GridModal.styles.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.js +12 -12
- package/lib/components/Header/AccountFrame/AccountFrame.js.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.mjs +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.styles.d.ts +19 -15
- package/lib/components/Header/AccountFrame/AccountFrame.styles.js +2 -2
- package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs +2 -2
- package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountFrame/Mobile/Mobile.styles.d.ts +3 -3
- 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/AccountMenu/AccountMenu.styles.d.ts +30 -12
- package/lib/components/Header/CartModal/CartModal.styles.d.ts +15 -13
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModal/Empty/Empty.styles.d.ts +1 -1
- package/lib/components/Header/CartModal/Item/Item.styles.d.ts +10 -10
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/CartModal.styles.d.ts +23 -21
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +13 -13
- 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.styles.d.ts +49 -40
- package/lib/components/Header/Header.styles.js +33 -11
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +32 -11
- 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/LanguageFrame/LanguageFrame.styles.d.ts +14 -17
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js +0 -51
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs +1 -47
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.styles.d.ts +3 -3
- package/lib/components/Header/LinksModal/LinksModal.styles.d.ts +4 -4
- package/lib/components/Header/MenuItem/MenuItem.js +4 -5
- package/lib/components/Header/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.mjs +4 -5
- package/lib/components/Header/MenuItem/MenuItem.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +15 -15
- package/lib/components/Header/MenuItem/MenuItem.styles.js +11 -11
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +11 -11
- 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 +11 -11
- package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.mjs +6 -6
- package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.styles.d.ts +20 -20
- package/lib/components/Header/Navigation/Carousel/Carousel.styles.js +16 -16
- package/lib/components/Header/Navigation/Carousel/Carousel.styles.js.map +1 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs +16 -16
- package/lib/components/Header/Navigation/Carousel/Carousel.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +19 -19
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs +7 -7
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +29 -23
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +19 -19
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +19 -19
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +15 -15
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +9 -9
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +40 -36
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js +18 -18
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs +18 -18
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +117 -124
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +112 -119
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +7 -14
- 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/Overlay/Overlay.styles.d.ts +2 -2
- package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
- package/lib/components/Header/ProHeader/ProHeader.js +189 -290
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +171 -270
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +40 -49
- package/lib/components/Header/ProHeader/ProHeader.styles.js +68 -206
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +67 -195
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/SearchTab/SearchTab.styles.d.ts +3 -3
- 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 +28 -28
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +12 -12
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HeroVideo/HeroVideo.styles.d.ts +7 -7
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +14 -14
- package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
- package/lib/components/ImageCarousel/ImageCarousel.styles.d.ts +38 -34
- package/lib/components/ImageCarousel/ImageCarousel.styles.js +5 -4
- package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
- package/lib/components/ImageCarousel/ImageCarousel.styles.mjs +5 -4
- package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
- package/lib/components/ImageModal/ImageModal.styles.d.ts +8 -6
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/ImageSequence/ImageSequence.styles.d.ts +8 -8
- package/lib/components/InputSelect/InputSelect.styles.d.ts +4 -8
- package/lib/components/LandingPage/Block/Block.styles.d.ts +4 -4
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Card/Card.styles.d.ts +17 -17
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/Cards/Cards.styles.d.ts +9 -9
- package/lib/components/LandingPage/Cards/Cards.styles.js +1 -1
- package/lib/components/LandingPage/Cards/Cards.styles.js.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.styles.mjs +1 -1
- package/lib/components/LandingPage/Cards/Cards.styles.mjs.map +1 -1
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPage/LandingPage.styles.d.ts +5 -5
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +3 -3
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/LandingPageSearch.styles.d.ts +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSearch/Modal/Modal.styles.d.ts +26 -22
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.d.ts +22 -22
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +23 -21
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +60 -54
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +57 -49
- package/lib/components/LearnMoreLink/LearnMoreLink.styles.d.ts +2 -2
- package/lib/components/Loader/Loader.styles.d.ts +4 -4
- package/lib/components/Loader/Spinner/Spinner.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 +3 -4
- 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/EpisodeCard/EpisodeCard.styles.d.ts +11 -9
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +25 -25
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js +2 -2
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js.map +1 -1
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs +2 -2
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.mjs.map +1 -1
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.styles.d.ts +6 -6
- package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.d.ts +8 -8
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.d.ts +20 -18
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js.map +1 -1
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.mjs.map +1 -1
- package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.styles.d.ts +11 -11
- package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.d.ts +14 -14
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.d.ts +28 -24
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js +2 -2
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js.map +1 -1
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs +2 -2
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.mjs.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeHero/MicrositeHero.styles.d.ts +41 -41
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.styles.d.ts +6 -6
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.d.ts +15 -15
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.d.ts +15 -15
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.d.ts +14 -12
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js +2 -2
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js.map +1 -1
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs +2 -2
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.mjs.map +1 -1
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.styles.d.ts +5 -3
- package/lib/components/MicrositeSection/Features/Features.styles.d.ts +15 -15
- package/lib/components/MicrositeSection/MicrositeSection.styles.d.ts +24 -24
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +8 -6
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.styles.d.ts +2 -2
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.d.ts +17 -17
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/MicrositeProductPage.styles.d.ts +16 -8
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/MobileModal/MobileModal.styles.d.ts +8 -8
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/Modal/Modal.styles.d.ts +1 -1
- 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.styles.d.ts +84 -34
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.js +8 -7
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs +8 -7
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +1 -0
- 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.d.ts +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.d.ts +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.mjs +2 -2
- package/lib/{assets/icons/cart-secondary.svg.js → components/ModelCompareV3/assets/crestron.svg.js} +6 -6
- package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +10 -3
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +10 -3
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.js +3 -2
- package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/Switching.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 +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +7 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +7 -0
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +8 -0
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +8 -0
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +10 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +10 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udr7.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udr7.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +18 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.js +2 -0
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +1 -0
- 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 +2 -0
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +2 -0
- 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/NewToUnifiBox/NewToUnifiBox.styles.d.ts +5 -5
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/Pagination/Pagination.styles.d.ts +4 -4
- package/lib/components/Popover/Popover.styles.d.ts +11 -7
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.d.ts +7 -7
- package/lib/components/ProductCard/ProductCard.js +7 -7
- package/lib/components/ProductCard/ProductCard.styles.d.ts +16 -16
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +45 -37
- package/lib/components/ProductCardPopup/ProductCardPopup.styles.js +3 -3
- package/lib/components/ProductCardPopup/ProductCardPopup.styles.js.map +1 -1
- package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs +3 -3
- package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs.map +1 -1
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductCompare/ProductCompare.styles.d.ts +18 -18
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductDetails/ProductDetails.styles.d.ts +2 -2
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductGrid/ProductGrid.styles.d.ts +10 -13
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.d.ts +6 -6
- package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +11 -9
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +6 -6
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +7 -7
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.d.ts +6 -6
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +14 -14
- package/lib/components/ProductUpsell/ProductUpsell.styles.d.ts +20 -18
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/Options/Options.styles.d.ts +2 -2
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizard/ProductWizard.styles.d.ts +22 -16
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.d.ts +9 -9
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js +1 -1
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js.map +1 -1
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs +1 -1
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs.map +1 -1
- 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.styles.d.ts +2 -2
- 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/QuantityInput/QuantityInput.styles.d.ts +16 -12
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/RelatedProducts/RelatedProducts.styles.d.ts +14 -14
- package/lib/components/RelatedProducts/RelatedProducts.styles.js +2 -2
- package/lib/components/RelatedProducts/RelatedProducts.styles.js.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.styles.mjs +2 -2
- package/lib/components/RelatedProducts/RelatedProducts.styles.mjs.map +1 -1
- package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.styles.d.ts +23 -21
- package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.styles.d.ts +36 -16
- package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.styles.d.ts +38 -16
- package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.styles.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +602 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +598 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.styles.d.ts +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +5 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +4 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +4 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +13 -13
- 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/InputCard.styles.d.ts +20 -20
- 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/Layout.styles.d.ts +6 -6
- 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/ProgressBarChart.styles.d.ts +9 -9
- 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/PoeCalculator.styles.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/DesignCenterBanner/DesignCenterBanner.styles.d.ts +5 -5
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.styles.d.ts +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/PoeConsumerSelectModal/PoeConsumerSelectModal.styles.d.ts +19 -17
- 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/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.styles.d.ts +16 -16
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.styles.d.ts +3 -3
- package/lib/{constants/icons/header/arrow.svg.js → components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js} +6 -6
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.js +27 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js +27 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js +27 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.d.ts +3 -3
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +5 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +5 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.styles.d.ts +3 -3
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +26 -34
- 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.styles.d.ts +18 -14
- 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.d.ts +13 -11
- package/lib/components/Search/Input/Input.styles.js +2 -1
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +2 -1
- 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/Search/Modal/Modal.styles.d.ts +20 -18
- package/lib/components/SearchInput/Input.styles.d.ts +9 -7
- package/lib/components/SkeletonFootnote/SkeletonFootnote.d.ts +1 -1
- package/lib/components/SkeletonLoader/SkeletonCircleLoader/SkeletonCircleLoader.styles.d.ts +3 -3
- package/lib/components/SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader.styles.d.ts +3 -3
- package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.styles.d.ts +8 -8
- package/lib/components/StaticModal/StaticModal.styles.d.ts +2 -2
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.styles.d.ts +7 -5
- package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/StorageSliders/StorageSliders.styles.d.ts +12 -12
- package/lib/components/StorybookUtils/StoryButtonColumn.d.ts +1 -1
- package/lib/components/StorybookUtils/StoryButtonRow.d.ts +1 -1
- package/lib/components/StorybookUtils/StoryWrapper.d.ts +2 -2
- package/lib/components/TabinationButtons/TabinationButtons.styles.d.ts +9 -9
- package/lib/components/Toggle/Toggle.styles.d.ts +3 -3
- package/lib/components/Toggle/Toggle.styles.js +1 -1
- package/lib/components/Toggle/Toggle.styles.js.map +1 -1
- package/lib/components/Toggle/Toggle.styles.mjs +1 -1
- package/lib/components/Toggle/Toggle.styles.mjs.map +1 -1
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/Tooltip/Tooltip.styles.d.ts +33 -3
- package/lib/components/TopologyScheme/TopologyScheme.styles.d.ts +17 -17
- package/lib/components/UICare/UICare.styles.d.ts +19 -16
- package/lib/components/VariantSelector/CheckBox/CheckBox.styles.d.ts +6 -6
- package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.d.ts +7 -7
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.d.ts +18 -18
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/Variant/Variant.styles.d.ts +75 -65
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VariantSelector/VariantSelector.styles.d.ts +17 -13
- package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.d.ts +3 -3
- package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +32 -28
- package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +23 -19
- package/lib/components/VideoCookiesConsent/VideoCookiesConsent.styles.d.ts +8 -6
- package/lib/components/VideoPlayer/VideoPlayer.styles.d.ts +5 -5
- package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.d.ts +31 -28
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.js.map +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.mjs.map +1 -1
- 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/icons/header/index.d.ts +0 -1
- package/lib/constants/icons/header/index.js +0 -9
- package/lib/constants/icons/header/index.js.map +1 -1
- package/lib/constants/icons/header/index.mjs +0 -2
- package/lib/constants/icons/header/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/mixin.d.ts +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- 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 +0 -3
- package/lib/constants/proStoreCategories/mapping/index.js +6 -25
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +6 -25
- 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/unifi.d.ts +0 -3
- package/lib/constants/proStoreCategories/mapping/unifi.js +0 -3
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -3
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +5 -9
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +5 -9
- 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 +3 -7
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +5 -9
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +5 -9
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +0 -5
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -5
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +4 -8
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +4 -8
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +1 -8
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -8
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +4 -8
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +4 -8
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +4 -8
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +4 -8
- 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 +3 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -8
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -8
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -15
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +9 -15
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +10 -44
- package/lib/constants/proStoreFilters/mapping.js +19 -131
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +19 -131
- 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/contexts/MenuContext/presets.d.ts +1 -1
- package/lib/contexts/MenuContext/presets.js +4 -2
- package/lib/contexts/MenuContext/presets.js.map +1 -1
- package/lib/contexts/MenuContext/presets.mjs +4 -2
- package/lib/contexts/MenuContext/presets.mjs.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +11 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +2 -1
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/product.d.ts +87 -0
- package/lib/helpers/product.js +346 -0
- package/lib/helpers/product.js.map +1 -0
- package/lib/helpers/product.mjs +335 -0
- package/lib/helpers/product.mjs.map +1 -0
- package/lib/helpers/product.test.d.ts +1 -0
- 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/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 +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +1 -0
- package/lib/types/index.mjs.map +1 -1
- package/lib/types/product.d.ts +87 -0
- package/lib/types/product.js +14 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/product.mjs +13 -0
- package/lib/types/product.mjs.map +1 -0
- package/lib/utils/address.d.ts +278 -62
- package/lib/utils/address.js +11 -8
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +11 -8
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/array.d.ts +4 -0
- package/lib/utils/array.js +10 -0
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +10 -1
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/nextjs/ssr/registry.js +2 -2
- package/lib/utils/productSort.d.ts +41 -0
- package/lib/utils/productSort.js +67 -0
- package/lib/utils/productSort.js.map +1 -0
- package/lib/utils/productSort.mjs +60 -0
- package/lib/utils/productSort.mjs.map +1 -0
- package/lib/utils/validations/lastNameSuperRefinement.d.ts +11 -0
- package/lib/utils/validations/lastNameSuperRefinement.js +25 -0
- package/lib/utils/validations/lastNameSuperRefinement.js.map +1 -0
- package/lib/utils/validations/lastNameSuperRefinement.mjs +21 -0
- package/lib/utils/validations/lastNameSuperRefinement.mjs.map +1 -0
- package/package.json +42 -43
- package/lib/assets/arrow2.svg +0 -3
- 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.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
- package/lib/constants/icons/header/arrow.svg.js.map +0 -1
- package/lib/constants/icons/header/arrow.svg.mjs +0 -3
- package/lib/constants/icons/header/arrow.svg.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.js","sources":["../../../src/components/Gallery/Gallery.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","GalleryTrack","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQH,KAAU,IAAA,CAACA,MAAMC,OAAO,CAAA;EACpE,MAAMG,aAAaN,UACf,GAAA,CAACA,UAAY,EAAA,GAAGI,mBAAmB,CACnC,GAAAN,OAAA;EAEA,IAAAQ,UAAA,CAAWC,MAAU,IAAA,CAAA,IAAKR,IAAM,EAAA;IAC3B,OAAAO,UAAA;EACT;EAGM,MAAAE,gBAAA,GAAmB,CAAC,GAAGF,UAAU,CAAA;EAEvCE,gBAAA,CAAiBC,OAAQ,CAAAD,gBAAA,CAAiBA,gBAAiB,CAAAD,MAAA,GAAS,CAAC,CAAE,CAAA;EAEtDC,gBAAA,CAAAE,IAAA,CAAKF,gBAAiB,CAAA,CAAC,CAAE,CAAA;EACnC,OAAAA,gBAAA;AACT,CAAA;AAEa,MAAAG,OAAA,GAAUC,KAAAA,CAAAA,IAAK,CAAA,SAASD,QAAQE,CAAA;EAC3CC,QAAA;EACAhB,OAAA;EACAiB,MAAA;EACAC,SAAA;EACAC,IAAA;EACAC,QAAA;EACAC,WAAA;EACApB,IAAA;EACAqB,UAAA;EACAC,SAAA;EACAC;AACF,CAAiB,EAAA;EACT,MAAA;IACJC,KAAA;IACAC,eAAA;IACAC,cAAA;IACAC,YAAA;IACAC;MACEC,eAAmB,CAAAA,kBAAA,CAAA,CAAA;EAEjB,MAAAC,UAAA,GAAaC,aAAuB,IAAI,CAA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AAAO,eAAA;cACV/B,WAAA,EAAaA,YAAYE,KAAK,CAAA;cAC9BlB,WAAA;cACAuC,eAAiB,EAAA/B,oBAAA;cACjB5B,IAAA;cACAsB;YAAA,CAAA,EAVK,gBAAgBnB,KAAA,CAAMiE,EAAE,IAAI9B,KAAK,EAAA,CAWxC;UAAA,CAEH;QAAA,CACH,CAAA,EACCjB,UACC,mBAAA8B,UAAA,CAAAA,GAAA,CAACkB,iBAAA,CAAAA,iBAAA,EAAA;UACCC,KAAO,EAAAtC,aAAA;UACPZ,WAAA;UACAmD,QAAU,EAAAxB,OAAA;UACVyB,SAAW,EAAAjD;QAAA,CACb,CAAA;OAEJ,CAAA,EAEDS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,8BAAgBC,MACxD,IAAAvB,eAAAA,UAAAA,CAAAA,GAAA,CAACwB,eAAsB,CAAAA,qBAAA,EAAA;QAAAH,SAAA,EAAWjD;MAAU,CAAA,CAAA,EAE7CS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,8BAAgBG,MACxD,IAAAzB,eAAAA,UAAAA,CAAAA,GAAA,CAAC0B,eAAsB,CAAAA,qBAAA,EAAA;QAAAL,SAAA,EAAWjD;MAAU,CAAA,CAAA;IAEhD,CAAA;EACF,CAAA,CAAA;AAEJ,CAAC,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"Gallery.js","sources":["../../../src/components/Gallery/Gallery.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n $withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","GalleryTrack","$withTransition","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQH,KAAU,IAAA,CAACA,MAAMC,OAAO,CAAA;EACpE,MAAMG,aAAaN,UACf,GAAA,CAACA,UAAY,EAAA,GAAGI,mBAAmB,CACnC,GAAAN,OAAA;EAEA,IAAAQ,UAAA,CAAWC,MAAU,IAAA,CAAA,IAAKR,IAAM,EAAA;IAC3B,OAAAO,UAAA;EACT;EAGM,MAAAE,gBAAA,GAAmB,CAAC,GAAGF,UAAU,CAAA;EAEvCE,gBAAA,CAAiBC,OAAQ,CAAAD,gBA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A,UAAAA,CAAAA,GAAA,CAAC2B,eAAsB,CAAAA,qBAAA,EAAA;QAAAL,SAAA,EAAWlD;MAAU,CAAA,CAAA;IAEhD,CAAA;EACF,CAAA,CAAA;AAEJ,CAAC,CAAA;;"}
|
|
@@ -83,7 +83,7 @@ const Gallery = memo(function Gallery2({
|
|
|
83
83
|
objectFit
|
|
84
84
|
}) : /* @__PURE__ */jsxs(Fragment, {
|
|
85
85
|
children: [/* @__PURE__ */jsx(GalleryTrack, {
|
|
86
|
-
withTransition,
|
|
86
|
+
$withTransition: withTransition,
|
|
87
87
|
style: {
|
|
88
88
|
transform: !fade ? `translate3d(-${visibleSlide * 100}%, 0, 0)` : ""
|
|
89
89
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.mjs","sources":["../../../src/components/Gallery/Gallery.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQH,KAAU,IAAA,CAACA,MAAMC,OAAO,CAAA;EACpE,MAAMG,aAAaN,UACf,GAAA,CAACA,UAAY,EAAA,GAAGI,mBAAmB,CACnC,GAAAN,OAAA;EAEA,IAAAQ,UAAA,CAAWC,MAAU,IAAA,CAAA,IAAKR,IAAM,EAAA;IAC3B,OAAAO,UAAA;EACT;EAGM,MAAAE,gBAAA,GAAmB,CAAC,GAAGF,UAAU,CAAA;EAEvCE,gBAAA,CAAiBC,OAAQ,CAAAD,gBAAA,CAAiBA,gBAAiB,CAAAD,MAAA,GAAS,CAAC,CAAE,CAAA;EAEtDC,gBAAA,CAAAE,IAAA,CAAKF,gBAAiB,CAAA,CAAC,CAAE,CAAA;EACnC,OAAAA,gBAAA;AACT,CAAA;AAEa,MAAAG,OAAA,GAAUC,IAAK,CAAA,SAASD,QAAQE,CAAA;EAC3CC,QAAA;EACAhB,OAAA;EACAiB,MAAA;EACAC,SAAA;EACAC,IAAA;EACAC,QAAA;EACAC,WAAA;EACApB,IAAA;EACAqB,UAAA;EACAC,SAAA;EACAC;AACF,CAAiB,EAAA;EACT,MAAA;IACJC,KAAA;IACAC,e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AAgBnB,KAAA,CAAMgE,EAAE,IAAI7B,KAAK,EAAA,CAWxC;UAAA,CAEH;QAAA,CACH,CAAA,EACCjB,UACC,mBAAA8B,GAAA,CAACiB,iBAAA,EAAA;UACCC,KAAO,EAAArC,aAAA;UACPZ,WAAA;UACAkD,QAAU,EAAAvB,OAAA;UACVwB,SAAW,EAAAhD;QAAA,CACb,CAAA;OAEJ,CAAA,EAEDS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAayD,gBAAgBC,MACxD,IAAA,eAAAtB,GAAA,CAACuB,qBAAsB,EAAA;QAAAH,SAAA,EAAWhD;MAAU,CAAA,CAAA,EAE7CS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAayD,gBAAgBG,MACxD,IAAA,eAAAxB,GAAA,CAACyB,qBAAsB,EAAA;QAAAL,SAAA,EAAWhD;MAAU,CAAA,CAAA;IAEhD,CAAA;EACF,CAAA,CAAA;AAEJ,CAAC,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Gallery.mjs","sources":["../../../src/components/Gallery/Gallery.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDebounce, useHoverDirty, useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport type { CustomMediaAsset } from \"../CustomImage/CustomImage.types\";\nimport { useGalleryControls } from \"./Gallery.context\";\nimport * as S from \"./Gallery.styles\";\nimport type { GalleryProps } from \"./Gallery.types\";\nimport { GalleryControls } from \"./Gallery.types\";\nimport {\n GalleryBottomControls,\n GalleryInsideControls,\n} from \"./GalleryControls\";\nimport { GalleryItem } from \"./GalleryItem\";\nimport { GalleryThumbnails } from \"./GalleryThumbnails\";\n\nexport const parseGalleryEntries = (\n entries: CustomMediaAsset[],\n fade?: boolean,\n) => {\n // move entry with isVideo key to the front of the array\n const videoEntry = entries.find((entry) => entry.isVideo);\n const entriesWithoutVideo = entries.filter((entry) => !entry.isVideo);\n const newEntries = videoEntry\n ? [videoEntry, ...entriesWithoutVideo]\n : entries;\n\n if (newEntries.length <= 1 || fade) {\n return newEntries;\n }\n\n // Shallow-copy entries\n const slidesWithClones = [...newEntries];\n // Add copy of the last element to the front of the array\n slidesWithClones.unshift(slidesWithClones[slidesWithClones.length - 1]!);\n // Add a copy of the first (now due to the previous step is at index 1) the element to the end of the array\n slidesWithClones.push(slidesWithClones[1]!);\n return slidesWithClones;\n};\n\nexport const Gallery = memo(function Gallery({\n controls,\n entries,\n parsed,\n className,\n size,\n priority,\n renderImage,\n fade,\n thumbnails,\n objectFit,\n onChange,\n}: GalleryProps) {\n const {\n reset,\n setControlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n } = useGalleryControls();\n\n const galleryRef = useRef<HTMLDivElement>(null);\n\n // Parse entries\n const entriesParsed = useMemo<CustomMediaAsset[]>(() => {\n return parsed ? entries : parseGalleryEntries(entries, fade);\n }, [entries, fade, parsed]);\n\n // Update provider state if gallery controls change\n useEffect(() => {\n setControlsType(controls);\n }, [controls, setControlsType]);\n\n // Update image count and reset index when images change\n useEffect(() => {\n reset(entriesParsed.length);\n }, [entriesParsed, reset]);\n\n const activeEntry = useMemo(\n () => entriesParsed[visibleSlide],\n [entriesParsed, visibleSlide],\n );\n\n /**\n * Calculates, based on the given slide index and currently visible slide index,\n * if the provided index could be the next one to be shown (both ways - left and right).\n */\n const couldBeNext = useCallback(\n (index: number) => {\n const potentialNextRightSlideIndex =\n visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;\n\n const potentialNextLeftSlideIndex =\n visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;\n\n return !!(\n potentialNextRightSlideIndex === index ||\n potentialNextLeftSlideIndex === index\n );\n },\n [entriesParsed.length, visibleSlide],\n );\n\n // #############################################################################\n // Hover state\n // #############################################################################\n const isTabletUp = useMedia(BREAKPOINTS.TABLET_UP, false);\n const hoveredRaw = useHoverDirty(galleryRef, isTabletUp);\n\n // Debounce hovered to prevent stutter\n const [hovered, setHovered] = useState(false);\n\n useDebounce(\n () => {\n setHovered(hoveredRaw);\n },\n 10,\n [hoveredRaw],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!activeEntry || !entriesParsed.length) {\n return null;\n }\n\n return (\n <S.GalleryWrapper className={className} ref={galleryRef}>\n <S.GalleryImageContainer>\n {/* Using entries instead of parsedEntries to determine actual length */}\n {entriesParsed.length === 1 ? (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={activeEntry.src}\n item={activeEntry}\n size={size}\n priority={priority}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n isActive={true}\n objectFit={objectFit}\n />\n ) : (\n <>\n <S.GalleryTrack\n $withTransition={withTransition}\n style={{\n transform: !fade\n ? `translate3d(-${visibleSlide * 100}%, 0, 0)`\n : \"\",\n }}\n onTransitionEnd={resetTransitionState}\n >\n {entriesParsed.map((entry, index) => {\n const isCurrentActive = index === visibleSlide;\n\n return (\n <GalleryItem\n // Note: \"key\" needed to reset fade-in animation\n // key={entry.src}\n key={`gallery-item-${entry.id}-${index}`}\n item={entry}\n size={size}\n // Have to additionally check to only priority the first item of the gallery\n priority={priority && isCurrentActive}\n isActive={isCurrentActive}\n couldBeNext={couldBeNext(index)}\n renderImage={renderImage}\n onTransitionEnd={resetTransitionState}\n fade={fade}\n objectFit={objectFit}\n />\n );\n })}\n </S.GalleryTrack>\n {thumbnails && (\n <GalleryThumbnails\n items={entriesParsed}\n renderImage={renderImage}\n expanded={hovered}\n onControl={onChange}\n />\n )}\n </>\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Bottom && (\n <GalleryBottomControls onControl={onChange} />\n )}\n {entriesParsed.length > 1 && controls === GalleryControls.Inside && (\n <GalleryInsideControls onControl={onChange} />\n )}\n </S.GalleryImageContainer>\n </S.GalleryWrapper>\n );\n});\n"],"names":["parseGalleryEntries","entries","fade","videoEntry","find","entry","isVideo","entriesWithoutVideo","filter","newEntries","length","slidesWithClones","unshift","push","Gallery","memo","Gallery2","controls","parsed","className","size","priority","renderImage","thumbnails","objectFit","onChange","reset","setControlsType","withTransition","visibleSlide","resetTransitionState","useGalleryControls","galleryRef","useRef","entriesParsed","useMemo","useEffect","activeEntry","couldBeNext","useCallback","index","potentialNextRightSlideIndex","potentialNextLeftSlideIndex","isTabletUp","useMedia","BREAKPOINTS","TABLET_UP","hoveredRaw","useHoverDirty","hovered","setHovered","useState","useDebounce","jsx","S.GalleryWrapper","ref","children","jsxs","S.GalleryImageContainer","GalleryItem","item","onTransitionEnd","isActive","Fragment","S.GalleryTrack","$withTransition","style","transform","map","isCurrentActive","id","GalleryThumbnails","items","expanded","onControl","GalleryControls","Bottom","GalleryBottomControls","Inside","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAgBa,MAAAA,mBAAA,GAAsBA,CACjCC,OAAA,EACAC,IACG,KAAA;EAEH,MAAMC,aAAaF,OAAQ,CAAAG,IAAA,CAAMC,KAAA,IAAUA,MAAMC,OAAO,CAAA;EACxD,MAAMC,sBAAsBN,OAAQ,CAAAO,MAAA,CAAQH,KAAU,IAAA,CAACA,MAAMC,OAAO,CAAA;EACpE,MAAMG,aAAaN,UACf,GAAA,CAACA,UAAY,EAAA,GAAGI,mBAAmB,CACnC,GAAAN,OAAA;EAEA,IAAAQ,UAAA,CAAWC,MAAU,IAAA,CAAA,IAAKR,IAAM,EAAA;IAC3B,OAAAO,UAAA;EACT;EAGM,MAAAE,gBAAA,GAAmB,CAAC,GAAGF,UAAU,CAAA;EAEvCE,gBAAA,CAAiBC,OAAQ,CAAAD,gBAAA,CAAiBA,gBAAiB,CAAAD,MAAA,GAAS,CAAC,CAAE,CAAA;EAEtDC,gBAAA,CAAAE,IAAA,CAAKF,gBAAiB,CAAA,CAAC,CAAE,CAAA;EACnC,OAAAA,gBAAA;AACT,CAAA;AAEa,MAAAG,OAAA,GAAUC,IAAK,CAAA,SAASD,QAAQE,CAAA;EAC3CC,QAAA;EACAhB,OAA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,IAAAgD,eAAA;cACtBP,QAAU,EAAAO,eAAA;cACV/B,WAAA,EAAaA,YAAYE,KAAK,CAAA;cAC9BlB,WAAA;cACAuC,eAAiB,EAAA/B,oBAAA;cACjB5B,IAAA;cACAsB;YAAA,CAAA,EAVK,gBAAgBnB,KAAA,CAAMiE,EAAE,IAAI9B,KAAK,EAAA,CAWxC;UAAA,CAEH;QAAA,CACH,CAAA,EACCjB,UACC,mBAAA8B,GAAA,CAACkB,iBAAA,EAAA;UACCC,KAAO,EAAAtC,aAAA;UACPZ,WAAA;UACAmD,QAAU,EAAAxB,OAAA;UACVyB,SAAW,EAAAjD;QAAA,CACb,CAAA;OAEJ,CAAA,EAEDS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,gBAAgBC,MACxD,IAAA,eAAAvB,GAAA,CAACwB,qBAAsB,EAAA;QAAAH,SAAA,EAAWjD;MAAU,CAAA,CAAA,EAE7CS,aAAA,CAAcxB,SAAS,CAAK,IAAAO,QAAA,KAAa0D,gBAAgBG,MACxD,IAAA,eAAAzB,GAAA,CAAC0B,qBAAsB,EAAA;QAAAL,SAAA,EAAWjD;MAAU,CAAA,CAAA;IAEhD,CAAA;EACF,CAAA,CAAA;AAEJ,CAAC,CAAA;"}
|
|
@@ -2,11 +2,15 @@ import type { GalleryProps } from "./Gallery.types";
|
|
|
2
2
|
/**
|
|
3
3
|
* For gallery with outside (side) controls add flex container with spacing
|
|
4
4
|
*/
|
|
5
|
-
export declare const GalleryWrapper: import("styled-components").
|
|
6
|
-
export declare const GalleryImageContainer: import("styled-components").
|
|
7
|
-
export declare const GalleryLabel: import("styled-components").
|
|
8
|
-
export declare const GalleryClickThirdLeft: import("styled-components").
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
export declare const GalleryWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const GalleryImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<GalleryProps, "aspectRatio">>> & string;
|
|
7
|
+
export declare const GalleryLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const GalleryClickThirdLeft: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, never>> & string;
|
|
11
|
+
export declare const GalleryClickThirdRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
12
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
}, never>> & string;
|
|
14
|
+
export declare const GalleryTrack: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
+
$withTransition: boolean;
|
|
16
|
+
}>> & string;
|
|
@@ -63,7 +63,9 @@ const GalleryTrack = styled__default["default"].div`
|
|
|
63
63
|
inset: 0;
|
|
64
64
|
display: flex;
|
|
65
65
|
will-change: transform;
|
|
66
|
-
transition: ${
|
|
66
|
+
transition: ${({
|
|
67
|
+
$withTransition
|
|
68
|
+
}) => $withTransition ? `transform 0.2s` : "none"};
|
|
67
69
|
|
|
68
70
|
/**
|
|
69
71
|
* Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.styles.js","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${(
|
|
1
|
+
{"version":3,"file":"Gallery.styles.js","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ $withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${({ $withTransition }) =>\n $withTransition ? `transform 0.2s` : \"none\"};\n\n /**\n * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else\n * worked.\n * @see https://stackoverflow.com/a/15918159/1378261\n */\n -webkit-backface-visibility: hidden;\n * {\n -webkit-transform: translate3d(0, 0, 0);\n }\n`;\n"],"names":["GalleryWrapper","styled","div","GalleryImageContainer","props","aspectRatio","GalleryLabel","Gallery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
57
57
|
will-change: transform;
|
|
58
|
-
transition: ${
|
|
58
|
+
transition: ${({
|
|
59
|
+
$withTransition
|
|
60
|
+
}) => $withTransition ? `transform 0.2s` : "none"};
|
|
59
61
|
|
|
60
62
|
/**
|
|
61
63
|
* Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.styles.mjs","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${(
|
|
1
|
+
{"version":3,"file":"Gallery.styles.mjs","sources":["../../../src/components/Gallery/Gallery.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport type { GalleryProps } from \"./Gallery.types\";\n\n/**\n * For gallery with outside (side) controls add flex container with spacing\n */\nexport const GalleryWrapper = styled.div`\n display: flex;\n flex-direction: row;\n column-gap: 50vw;\n overflow: hidden;\n height: 100%;\n width: 100%;\n\n /* Center the image vertically if the only child in the container */\n &:only-child {\n margin-top: auto;\n margin-bottom: auto;\n }\n`;\n\nexport const GalleryImageContainer = styled.div<\n Pick<GalleryProps, \"aspectRatio\">\n>`\n position: relative;\n width: 100%;\n height: auto;\n\n /* In certain conditions need to gallery to be certain aspect-ratio */\n aspect-ratio: ${(props) =>\n props.aspectRatio\n ? `${props.aspectRatio[0]} / ${props.aspectRatio[1]}`\n : \"auto\"};\n`;\n\nexport const GalleryLabel = styled.div`\n text-align: center;\n /* Make it allocate space even tho there isn't anything */\n white-space: pre;\n\n /**\n * HACK: Using margin-bottom usual margin-top way of combining things as this makes it in this case a bit easier to\n * conditionally render the labels without requiring css in other places\n */\n margin-bottom: 24px;\n`;\n\nconst GalleryClickThird = styled.div`\n position: absolute;\n top: 0;\n height: 100%;\n width: 33.3%;\n z-index: 2;\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryClickThirdLeft = styled(GalleryClickThird)`\n left: 0;\n`;\n\nexport const GalleryClickThirdRight = styled(GalleryClickThird)`\n right: 0;\n`;\n\nexport const GalleryTrack = styled.div<{ $withTransition: boolean }>`\n position: absolute;\n inset: 0;\n display: flex;\n will-change: transform;\n transition: ${({ $withTransition }) =>\n $withTransition ? `transform 0.2s` : \"none\"};\n\n /**\n * Hack: to make sure the gallery track doesn't flicker on changing slides just for good old Safari. Nothing else\n * worked.\n * @see https://stackoverflow.com/a/15918159/1378261\n */\n -webkit-backface-visibility: hidden;\n * {\n -webkit-transform: translate3d(0, 0, 0);\n }\n`;\n"],"names":["GalleryWrapper","styled","div","GalleryImageContainer","props","aspectRatio","GalleryLabel","GalleryClickThird","GalleryClickThirdLeft","GalleryClickThirdRight","GalleryTrack","$withTransition"],"mappings":";;AAOO,MAAMA,iBAAiBC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAe9B,MAAMC,wBAAwBF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAQzBE,KAAA,IACfA,KAAM,CAAAC,WAAA,GACF,GAAGD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,MAAMD,KAAM,CAAAC,WAAA,CAAY,CAAC,CAAC,KACjD,MAAM;AAAA,CAAA;AAGP,MAAMC,eAAeL,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYnC,MAAMK,oBAAoBN,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAYpB,MAAAM,qBAAA,GAAwBP,OAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIhD,MAAAE,sBAAA,GAAyBR,OAAOM,iBAAiB,CAAA;AAAA;AAAA,CAAA;AAIvD,MAAMG,eAAeT,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKnB,CAAC;EAAES;AACf,CAAA,KAAAA,eAAA,GAAkB,mBAAmB,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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('../../../assets/icons/arrowRightMicro.svg.js');
|
|
6
6
|
var Gallery_context = require('../Gallery.context.js');
|
|
7
7
|
var GalleryControls_styles = require('./GalleryControls.styles.js');
|
|
@@ -13,7 +13,7 @@ function _interopDefault(e) {
|
|
|
13
13
|
}
|
|
14
14
|
var arrowRightMicroSvg__default = /*#__PURE__*/_interopDefault(arrowRightMicroSvg);
|
|
15
15
|
"use strict";
|
|
16
|
-
const GalleryControl =
|
|
16
|
+
const GalleryControl = react.memo(function GalleryRightControl({
|
|
17
17
|
label,
|
|
18
18
|
side,
|
|
19
19
|
rounded,
|
|
@@ -23,7 +23,7 @@ const GalleryControl = React.memo(function GalleryRightControl({
|
|
|
23
23
|
setNext,
|
|
24
24
|
setPrevious
|
|
25
25
|
} = Gallery_context.useGalleryControls();
|
|
26
|
-
const handleClick =
|
|
26
|
+
const handleClick = react.useCallback(() => {
|
|
27
27
|
onClick?.();
|
|
28
28
|
switch (side) {
|
|
29
29
|
case "left":
|
|
@@ -42,7 +42,7 @@ const GalleryControl = React.memo(function GalleryRightControl({
|
|
|
42
42
|
src: arrowRightMicroSvg__default["default"],
|
|
43
43
|
height: 24,
|
|
44
44
|
width: 24,
|
|
45
|
-
side,
|
|
45
|
+
$side: side,
|
|
46
46
|
$rounded: rounded
|
|
47
47
|
}), label && /* @__PURE__ */jsxRuntime.jsx(GalleryControls_styles.GalleryControlLabel, {
|
|
48
48
|
children: label
|
|
@@ -57,7 +57,7 @@ const GalleryOutsideControlsInfo = () => {
|
|
|
57
57
|
children: currentImageLabel
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
const GalleryBottomControls =
|
|
60
|
+
const GalleryBottomControls = react.memo(function GalleryBottomControls2({
|
|
61
61
|
className,
|
|
62
62
|
size,
|
|
63
63
|
onControl
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryControls.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","GalleryArrowIcon","src","arrowRightMicroSvg","height","width","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;AAWa,MAAAA,cAAA,GAAiBC,KAAAA,CAAAA,IAAK,CAAA,SAASC,mBAAoBA,CAAA;EAC9DC,KAAA;EACAC,IAAA;EACAC,OAAA;EACAC;AACF,CAAyB,EAAA;EACvB,MAAM;IAAEC,OAAA;IAASC;EAAY,CAAA,GAAIC,eAAmB,CAAAA,kBAAA,CAAA,CAAA;EAE9C,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IAC1BL,OAAA,IAAA;IAEV,QAAQF,IAAM;MACZ,KAAK,MAAA;QACSI,WAAA,EAAA;QACZ;MACF,KAAK,OAAA;QACKD,OAAA,EAAA;QACR;IACJ;KACC,CAACD,OAAA,EAASF,IAAM,EAAAI,WAAA,EAAaD,OAAO,CAAC,CAAA;EAGtC,sBAAAK,UAAA,CAAAA,IAAA,CAACC,sBAAE,CAAAC,YAAA,EAAF;IACCC,QAAU,EAAAV,OAAA;IACVC,OAAS,EAAAI,WAAA;IACT,YAAA,EAAYN,IAAS,KAAA,MAAA,GAAS,UAAa,GAAA,MAAA;IAE3CY,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,sBAAE,CAAAC,gBAAA,EAAF;MACCC,GAAK,EAAAC,2BAAA,CAAA,SAAA,CAAA;MACLC,MAAQ,EAAA,EAAA;MACRC,KAAO,EAAA,EAAA;
|
|
1
|
+
{"version":3,"file":"GalleryControls.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n $side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","GalleryArrowIcon","src","arrowRightMicroSvg","height","width","$side","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;;AAWa,MAAAA,cAAA,GAAiBC,KAAAA,CAAAA,IAAK,CAAA,SAASC,mBAAoBA,CAAA;EAC9DC,KAAA;EACAC,IAAA;EACAC,OAAA;EACAC;AACF,CAAyB,EAAA;EACvB,MAAM;IAAEC,OAAA;IAASC;EAAY,CAAA,GAAIC,eAAmB,CAAAA,kBAAA,CAAA,CAAA;EAE9C,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IAC1BL,OAAA,IAAA;IAEV,QAAQF,IAAM;MACZ,KAAK,MAAA;QACSI,WAAA,EAAA;QACZ;MACF,KAAK,OAAA;QACKD,OAAA,EAAA;QACR;IACJ;KACC,CAACD,OAAA,EAASF,IAAM,EAAAI,WAAA,EAAaD,OAAO,CAAC,CAAA;EAGtC,sBAAAK,UAAA,CAAAA,IAAA,CAACC,sBAAE,CAAAC,YAAA,EAAF;IACCC,QAAU,EAAAV,OAAA;IACVC,OAAS,EAAAI,WAAA;IACT,YAAA,EAAYN,IAAS,KAAA,MAAA,GAAS,UAAa,GAAA,MAAA;IAE3CY,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,sBAAE,CAAAC,gBAAA,EAAF;MACCC,GAAK,EAAAC,2BAAA,CAAA,SAAA,CAAA;MACLC,MAAQ,EAAA,EAAA;MACRC,KAAO,EAAA,EAAA;MACPC,KAAO,EAAApB,IAAA;MACPW,QAAU,EAAAV;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C,cAAA,CAACjB;MAAeM,OAAS,EAAA4B,SAAA;MAAW9B,IAAK,EAAA,MAAA;MAAOC,SAAO;KAAC,CAAA,EAAA,8BACvDL,cAAe,EAAA;MAAAM,OAAA,EAAS4B;MAAW9B,IAAK,EAAA,OAAA;MAAQC,SAAO;KAAC,CAAA;EAC3D,CAAA,CAAA;AAEJ,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryControls.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","src","arrowRightMicroSvg","height","width","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;AAWa,MAAAA,cAAA,GAAiBC,IAAK,CAAA,SAASC,mBAAoBA,CAAA;EAC9DC,KAAA;EACAC,IAAA;EACAC,OAAA;EACAC;AACF,CAAyB,EAAA;EACvB,MAAM;IAAEC,OAAA;IAASC;EAAY,CAAA,GAAIC,kBAAmB,CAAA,CAAA;EAE9C,MAAAC,WAAA,GAAcC,YAAY,MAAM;IAC1BL,OAAA,IAAA;IAEV,QAAQF,IAAM;MACZ,KAAK,MAAA;QACSI,WAAA,EAAA;QACZ;MACF,KAAK,OAAA;QACKD,OAAA,EAAA;QACR;IACJ;KACC,CAACD,OAAA,EAASF,IAAM,EAAAI,WAAA,EAAaD,OAAO,CAAC,CAAA;EAGtC,sBAAAK,IAAA,CAACC,YAAE,EAAF;IACCC,QAAU,EAAAT,OAAA;IACVC,OAAS,EAAAI,WAAA;IACT,YAAA,EAAYN,IAAS,KAAA,MAAA,GAAS,UAAa,GAAA,MAAA;IAE3CW,QAAA,EAAA,CAAA,eAAAC,GAAA,CAACC,gBAAE,EAAF;MACCC,GAAK,EAAAC,2BAAA;MACLC,MAAQ,EAAA,EAAA;MACRC,KAAO,EAAA,EAAA;
|
|
1
|
+
{"version":3,"file":"GalleryControls.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\n\nimport arrowRightMicroSvg from \"../../../assets/icons/arrowRightMicro.svg\";\nimport { useGalleryControls } from \"../Gallery.context\";\nimport type { GalleryControlsProps } from \"../Gallery.types\";\nimport * as S from \"./GalleryControls.styles\";\nimport type {\n GalleryBottomControlsProps,\n GalleryInsideControlsProps,\n} from \"./GalleryControls.types\";\n\nexport const GalleryControl = memo(function GalleryRightControl({\n label,\n side,\n rounded,\n onClick,\n}: GalleryControlsProps) {\n const { setNext, setPrevious } = useGalleryControls();\n\n const handleClick = useCallback(() => {\n onClick?.();\n\n switch (side) {\n case \"left\":\n setPrevious();\n break;\n case \"right\":\n setNext();\n break;\n }\n }, [onClick, side, setPrevious, setNext]);\n\n return (\n <S.GalleryArrow\n $rounded={rounded}\n onClick={handleClick}\n aria-label={side === \"left\" ? \"Previous\" : \"Next\"}\n >\n <S.GalleryArrowIcon\n src={arrowRightMicroSvg}\n height={24}\n width={24}\n $side={side}\n $rounded={rounded}\n />\n {label && <S.GalleryControlLabel>{label}</S.GalleryControlLabel>}\n </S.GalleryArrow>\n );\n});\n\nexport const GalleryOutsideControlsInfo = () => {\n const { currentImageLabel } = useGalleryControls();\n return <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>;\n};\n\nexport const GalleryBottomControls = memo(function GalleryBottomControls({\n className,\n size,\n onControl,\n}: GalleryBottomControlsProps) {\n const { currentImageLabel } = useGalleryControls();\n return (\n <S.GalleryBottomControlsContainer className={className} size={size}>\n <GalleryControl onClick={onControl} side=\"left\" />\n <S.GalleryControlsInfo>{currentImageLabel}</S.GalleryControlsInfo>\n <GalleryControl onClick={onControl} side=\"right\" />\n </S.GalleryBottomControlsContainer>\n );\n});\n\nexport const GalleryInsideControls = ({\n onControl,\n}: GalleryInsideControlsProps) => {\n return (\n <S.GalleryInsideControls>\n <GalleryControl onClick={onControl} side=\"left\" rounded />\n <GalleryControl onClick={onControl} side=\"right\" rounded />\n </S.GalleryInsideControls>\n );\n};\n"],"names":["GalleryControl","memo","GalleryRightControl","label","side","rounded","onClick","setNext","setPrevious","useGalleryControls","handleClick","useCallback","jsxs","S.GalleryArrow","$rounded","children","jsx","S.GalleryArrowIcon","src","arrowRightMicroSvg","height","width","$side","S.GalleryControlLabel","GalleryOutsideControlsInfo","currentImageLabel","S.GalleryControlsInfo","GalleryBottomControls","GalleryBottomControls2","className","size","onControl","S.GalleryBottomControlsContainer","GalleryInsideControls","S.GalleryInsideControls"],"mappings":";;;;;;;AAWa,MAAAA,cAAA,GAAiBC,IAAK,CAAA,SAASC,mBAAoBA,CAAA;EAC9DC,KAAA;EACAC,IAAA;EACAC,OAAA;EACAC;AACF,CAAyB,EAAA;EACvB,MAAM;IAAEC,OAAA;IAASC;EAAY,CAAA,GAAIC,kBAAmB,CAAA,CAAA;EAE9C,MAAAC,WAAA,GAAcC,YAAY,MAAM;IAC1BL,OAAA,IAAA;IAEV,QAAQF,IAAM;MACZ,KAAK,MAAA;QACSI,WAAA,EAAA;QACZ;MACF,KAAK,OAAA;QACKD,OAAA,EAAA;QACR;IACJ;KACC,CAACD,OAAA,EAASF,IAAM,EAAAI,WAAA,EAAaD,OAAO,CAAC,CAAA;EAGtC,sBAAAK,IAAA,CAACC,YAAE,EAAF;IACCC,QAAU,EAAAT,OAAA;IACVC,OAAS,EAAAI,WAAA;IACT,YAAA,EAAYN,IAAS,KAAA,MAAA,GAAS,UAAa,GAAA,MAAA;IAE3CW,QAAA,EAAA,CAAA,eAAAC,GAAA,CAACC,gBAAE,EAAF;MACCC,GAAK,EAAAC,2BAAA;MACLC,MAAQ,EAAA,EAAA;MACRC,KAAO,EAAA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K,EAAA,OAAA;MAAQC,SAAO;KAAC,CAAA;EAC3D,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { GalleryBottomControlsProps } from "./GalleryControls.types";
|
|
2
|
-
export declare const GalleryArrow: import("styled-components").
|
|
2
|
+
export declare const GalleryArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
3
3
|
$rounded?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const GalleryArrowIcon: import("styled-components").
|
|
6
|
-
side: string;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const GalleryArrowIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../StyleableSvgImage").StyleableSvgImageProps, {
|
|
6
|
+
$side: string;
|
|
7
7
|
$rounded?: boolean;
|
|
8
|
-
},
|
|
9
|
-
export declare const GalleryControlLabel: import("styled-components").
|
|
10
|
-
export declare const GalleryBottomControlsContainer: import("styled-components").
|
|
11
|
-
export declare const GalleryControlsInfo: import("styled-components").
|
|
12
|
-
export declare const GalleryInsideControls: import("styled-components").
|
|
8
|
+
}>> & string & Omit<({ src, width, height, renderedHeight, className, }: import("../../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
export declare const GalleryControlLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const GalleryBottomControlsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<GalleryBottomControlsProps, "size">>> & string;
|
|
11
|
+
export declare const GalleryControlsInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const GalleryInsideControls: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -55,8 +55,8 @@ const GalleryArrowIcon = styled__default["default"](StyleableSvgImage.StyleableS
|
|
|
55
55
|
}) => $rounded ? theme.theme.colors.white : "#494949"};
|
|
56
56
|
|
|
57
57
|
${({
|
|
58
|
-
side
|
|
59
|
-
}) => side === "left" && styled.css`
|
|
58
|
+
$side
|
|
59
|
+
}) => $side === "left" && styled.css`
|
|
60
60
|
transform: rotate(180deg);
|
|
61
61
|
`}
|
|
62
62
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryControls.styles.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ side }) =>\n side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAOA,MAAMA,mBAAsB,GAAAC,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAAA,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,eAAAA,CAAAA,SAAAA,EAAOS,iBAAAA,CAAAA,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAAA,CAAAA,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;
|
|
1
|
+
{"version":3,"file":"GalleryControls.styles.js","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n $side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ $side }) =>\n $side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","$side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;;;;;;;;;AAOA,MAAMA,mBAAsB,GAAAC,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,eAAO,CAAA,SAAA,CAAA,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAAA,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,eAAAA,CAAAA,SAAAA,EAAOS,iBAAAA,CAAAA,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAAA,CAAAA,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;AAAM,CAAA,KACTA,UAAU,MACV,IAAAb,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMc,sBAAsBZ,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMC,iCAAiCd,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAiBjD,CAAC;EAAEE;AAAA,CAAW,KAAAA,IAAA,KAAS,WAAWlB,mBAAmB;AAAA;AAAA,WAE9CK,MAAAA,CAAAA,YAAYC,eAAe;AAAA,MAChCN,mBAAmB;AAAA;AAAA,CAAA;AAIlB,MAAMmB,sBAAsBhB,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMI,wBAAwBjB,eAAO,CAAA,SAAA,CAAA,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryControls.styles.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ side }) =>\n side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;AAOA,MAAMA,mBAAsB,GAAAC,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,MAAO,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,OAAOS,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;
|
|
1
|
+
{"version":3,"file":"GalleryControls.styles.mjs","sources":["../../../../src/components/Gallery/GalleryControls/GalleryControls.styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport type { GalleryBottomControlsProps } from \"./GalleryControls.types\";\n\nconst SMALL_SIZE_CONTROLS = css`\n width: 100px;\n height: 40px;\n font-size: 14px;\n`;\n\nexport const GalleryArrow = styled.button<{ $rounded?: boolean }>`\n width: 60px;\n height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n transform-origin: center center;\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n border-radius: 50px;\n cursor: pointer;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n width: 40px;\n height: 40px;\n }\n\n ${({ $rounded }) =>\n $rounded &&\n css`\n height: 50px;\n width: 50px;\n border-radius: 25px; /* 50% of width/height */\n background-color: ${theme.colors.black20};\n `}\n\n &:hover {\n cursor: pointer;\n }\n`;\n\nexport const GalleryArrowIcon = styled(StyleableSvgImage)<{\n $side: string;\n $rounded?: boolean;\n}>`\n color: ${({ $rounded }) => ($rounded ? theme.colors.white : \"#494949\")};\n\n ${({ $side }) =>\n $side === \"left\" &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const GalleryControlLabel = styled.div`\n position: relative;\n user-select: none;\n`;\n\nexport const GalleryBottomControlsContainer = styled.div<\n Pick<GalleryBottomControlsProps, \"size\">\n>`\n position: relative;\n z-index: 3;\n width: 160px;\n height: 60px;\n background: rgba(255 255 255 / 0.6);\n border-radius: 50px;\n color: #494949;\n margin: 0 auto;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n font-size: 16px;\n\n ${({ size }) => size === \"small\" && SMALL_SIZE_CONTROLS}\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n ${SMALL_SIZE_CONTROLS}\n }\n`;\n\nexport const GalleryControlsInfo = styled.div`\n text-align: center;\n margin-top: 0;\n`;\n\nexport const GalleryInsideControls = styled.div`\n position: absolute;\n inset: 0 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n`;\n"],"names":["SMALL_SIZE_CONTROLS","css","GalleryArrow","styled","button","BREAKPOINTS","TABLET_AND_DOWN","$rounded","theme","colors","black20","GalleryArrowIcon","StyleableSvgImage","white","$side","GalleryControlLabel","div","GalleryBottomControlsContainer","size","GalleryControlsInfo","GalleryInsideControls"],"mappings":";;;;;;AAOA,MAAMA,mBAAsB,GAAAC,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMrB,MAAMC,eAAeC,MAAO,CAAAC,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAcxBC,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,IAKlC,CAAC;EAAEC;CAAS,KACZA,QACA,IAAAN,GAAA;AAAA;AAAA;AAAA;AAAA,0BAIsBO,KAAA,CAAMC,OAAOC,OAAO;AAAA,KACzC;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOQ,MAAAC,gBAAA,GAAmBR,OAAOS,iBAAiB,CAAA;AAAA,WAI7C,CAAC;EAAEL;CAAS,KAAOA,WAAWC,KAAM,CAAAC,MAAA,CAAOI,QAAQ,SAAU;AAAA;AAAA,IAEpE,CAAC;EAAEC;AAAM,CAAA,KACTA,UAAU,MACV,IAAAb,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMc,sBAAsBZ,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMC,iCAAiCd,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAiBjD,CAAC;EAAEE;AAAA,CAAW,KAAAA,IAAA,KAAS,WAAWlB,mBAAmB;AAAA;AAAA,WAE9CK,YAAYC,eAAe;AAAA,MAChCN,mBAAmB;AAAA;AAAA,CAAA;AAIlB,MAAMmB,sBAAsBhB,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnC,MAAMI,wBAAwBjB,MAAO,CAAAa,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
var GalleryItem_styles = require('./GalleryItem.styles.js');
|
|
8
8
|
"use strict";
|
|
9
|
-
const GalleryItem =
|
|
9
|
+
const GalleryItem = react.memo(function GalleryItem2({
|
|
10
10
|
item,
|
|
11
11
|
renderImage,
|
|
12
12
|
priority,
|
|
@@ -16,10 +16,10 @@ const GalleryItem = React.memo(function GalleryItem2({
|
|
|
16
16
|
couldBeNext = true,
|
|
17
17
|
objectFit = "cover"
|
|
18
18
|
}) {
|
|
19
|
-
const videoRef =
|
|
20
|
-
const isVideoHovering =
|
|
19
|
+
const videoRef = react.useRef(null);
|
|
20
|
+
const isVideoHovering = react.useRef(false);
|
|
21
21
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
22
|
-
const handleMouseEnter =
|
|
22
|
+
const handleMouseEnter = react.useCallback(() => {
|
|
23
23
|
isVideoHovering.current = true;
|
|
24
24
|
if (!videoRef.current) {
|
|
25
25
|
return;
|
|
@@ -40,8 +40,8 @@ const GalleryItem = React.memo(function GalleryItem2({
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}, []);
|
|
43
|
-
const [isVisible, setIsVisible] =
|
|
44
|
-
|
|
43
|
+
const [isVisible, setIsVisible] = react.useState(isActive);
|
|
44
|
+
react.useEffect(() => {
|
|
45
45
|
if (!isActive) {
|
|
46
46
|
window.setTimeout(() => {
|
|
47
47
|
setIsVisible(false);
|
|
@@ -52,7 +52,7 @@ const GalleryItem = React.memo(function GalleryItem2({
|
|
|
52
52
|
setIsVisible(true);
|
|
53
53
|
}
|
|
54
54
|
}, [isActive, isVisible]);
|
|
55
|
-
|
|
55
|
+
react.useEffect(() => {
|
|
56
56
|
if (!isVisible && videoRef.current) {
|
|
57
57
|
videoRef.current.pause();
|
|
58
58
|
videoRef.current.currentTime = 0;
|
|
@@ -60,11 +60,11 @@ const GalleryItem = React.memo(function GalleryItem2({
|
|
|
60
60
|
}, [isVisible]);
|
|
61
61
|
return /* @__PURE__ */jsxRuntime.jsx(GalleryItem_styles.GalleryItemWrapper, {
|
|
62
62
|
onTransitionEnd,
|
|
63
|
-
fade,
|
|
64
|
-
isActive,
|
|
65
|
-
isVisible,
|
|
66
|
-
couldBeNext,
|
|
67
|
-
hoverable: item.isVideo,
|
|
63
|
+
$fade: fade,
|
|
64
|
+
$isActive: isActive,
|
|
65
|
+
$isVisible: isVisible,
|
|
66
|
+
$couldBeNext: couldBeNext,
|
|
67
|
+
$hoverable: item.isVideo,
|
|
68
68
|
onMouseEnter: handleMouseEnter,
|
|
69
69
|
onMouseLeave: () => {
|
|
70
70
|
isVideoHovering.current = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryItem.js","sources":["../../../../src/components/Gallery/GalleryItem/GalleryItem.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useRef, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport type { GalleryItemProps } from \"../Gallery.types\";\nimport { GalleryImage, GalleryItemWrapper, Video } from \"./GalleryItem.styles\";\n\nexport const GalleryItem = memo(function GalleryItem({\n item,\n renderImage,\n priority,\n onTransitionEnd,\n fade,\n isActive,\n couldBeNext = true,\n objectFit = \"cover\",\n}: GalleryItemProps) {\n const videoRef = useRef<HTMLVideoElement>(null);\n const isVideoHovering = useRef<boolean>(false);\n\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const handleMouseEnter = useCallback(() => {\n // Keep track of if video is hovered to maintain loop\n isVideoHovering.current = true;\n\n if (!videoRef.current) {\n return;\n }\n\n // @see https://stackoverflow.com/a/6877530\n const isVideoPlaying = !!(\n videoRef.current.currentTime > 0 &&\n !videoRef.current.paused &&\n !videoRef.current.ended\n );\n\n if (!isVideoPlaying) {\n videoRef.current.play();\n videoRef.current.onended = () => {\n if (videoRef.current) {\n if (!isVideoHovering.current) {\n // Stop auto-looping and reset video\n videoRef.current.pause();\n videoRef.current.currentTime = 0;\n } else {\n // Just reset video loop\n videoRef.current.currentTime = 0;\n videoRef.current.play();\n }\n }\n };\n }\n }, []);\n\n const [isVisible, setIsVisible] = useState(isActive);\n\n // Set isVisible to false after fade out animation\n useEffect(() => {\n if (!isActive) {\n window.setTimeout(() => {\n setIsVisible(false);\n }, 500);\n return;\n }\n\n if (!isVisible) {\n setIsVisible(true);\n }\n }, [isActive, isVisible]);\n\n // Stop video when not visible\n useEffect(() => {\n if (!isVisible && videoRef.current) {\n videoRef.current.pause();\n videoRef.current.currentTime = 0;\n }\n }, [isVisible]);\n\n return (\n <GalleryItemWrapper\n onTransitionEnd={onTransitionEnd}\n fade={fade}\n isActive={isActive}\n isVisible={isVisible}\n couldBeNext={couldBeNext}\n hoverable={item.isVideo}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={() => {\n isVideoHovering.current = false;\n }}\n >\n {item.isVideo ? (\n <Video\n ref={videoRef}\n src={item.src}\n width={item.width}\n height={item.height}\n muted\n playsInline\n poster={item?.childAssets?.find((child) => !child.isVideo)?.src}\n $aspectRatio={item.width / item.height}\n controls={false}\n autoPlay={isMobile}\n />\n ) : (\n <GalleryImage\n asset={item}\n renderImage={renderImage}\n sizes=\"100%\"\n objectFit={objectFit}\n layout=\"fill\"\n priority={priority}\n />\n )}\n </GalleryItemWrapper>\n );\n});\n"],"names":["GalleryItem","memo","GalleryItem2","item","renderImage","priority","onTransitionEnd","fade","isActive","couldBeNext","objectFit","videoRef","useRef","isVideoHovering","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","handleMouseEnter","useCallback","current","isVideoPlaying","currentTime","paused","ended","play","onended","pause","isVisible","setIsVisible","useState","useEffect","window","setTimeout","jsx","GalleryItemWrapper","hoverable","isVideo","onMouseEnter","onMouseLeave","children","Video","ref","src","width","height","muted","playsInline","poster","childAssets","find","child","$aspectRatio","controls","autoPlay","GalleryImage","asset","sizes","layout"],"mappings":";;;;;;;;AAOa,MAAAA,WAAA,GAAcC,KAAAA,CAAAA,IAAK,CAAA,SAASD,YAAYE,CAAA;EACnDC,IAAA;EACAC,WAAA;EACAC,QAAA;EACAC,eAAA;EACAC,IAAA;EACAC,QAAA;EACAC,WAAc,GAAA,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AAI,CAACD,SAAW,EAAA;MACdC,YAAA,CAAa,IAAI,CAAA;IACnB;EAAA,CACC,EAAA,CAACrB,QAAU,EAAAoB,SAAS,CAAC,CAAA;EAGxBG,KAAAA,CAAAA,SAAA,CAAU,MAAM;IACV,IAAA,CAACH,SAAa,IAAAjB,QAAA,CAASS,OAAS,EAAA;MAClCT,QAAA,CAASS,QAAQO,KAAM,EAAA;MACvBhB,QAAA,CAASS,QAAQE,WAAc,GAAA,CAAA;IACjC;EAAA,CACF,EAAG,CAACM,SAAS,CAAC,CAAA;EAGZ,sBAAAM,UAAA,CAAAA,GAAA,CAACC,kBAAA,CAAAA,kBAAA,EAAA;IACC7B,eAAA;
|
|
1
|
+
{"version":3,"file":"GalleryItem.js","sources":["../../../../src/components/Gallery/GalleryItem/GalleryItem.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useRef, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport type { GalleryItemProps } from \"../Gallery.types\";\nimport { GalleryImage, GalleryItemWrapper, Video } from \"./GalleryItem.styles\";\n\nexport const GalleryItem = memo(function GalleryItem({\n item,\n renderImage,\n priority,\n onTransitionEnd,\n fade,\n isActive,\n couldBeNext = true,\n objectFit = \"cover\",\n}: GalleryItemProps) {\n const videoRef = useRef<HTMLVideoElement>(null);\n const isVideoHovering = useRef<boolean>(false);\n\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const handleMouseEnter = useCallback(() => {\n // Keep track of if video is hovered to maintain loop\n isVideoHovering.current = true;\n\n if (!videoRef.current) {\n return;\n }\n\n // @see https://stackoverflow.com/a/6877530\n const isVideoPlaying = !!(\n videoRef.current.currentTime > 0 &&\n !videoRef.current.paused &&\n !videoRef.current.ended\n );\n\n if (!isVideoPlaying) {\n videoRef.current.play();\n videoRef.current.onended = () => {\n if (videoRef.current) {\n if (!isVideoHovering.current) {\n // Stop auto-looping and reset video\n videoRef.current.pause();\n videoRef.current.currentTime = 0;\n } else {\n // Just reset video loop\n videoRef.current.currentTime = 0;\n videoRef.current.play();\n }\n }\n };\n }\n }, []);\n\n const [isVisible, setIsVisible] = useState(isActive);\n\n // Set isVisible to false after fade out animation\n useEffect(() => {\n if (!isActive) {\n window.setTimeout(() => {\n setIsVisible(false);\n }, 500);\n return;\n }\n\n if (!isVisible) {\n setIsVisible(true);\n }\n }, [isActive, isVisible]);\n\n // Stop video when not visible\n useEffect(() => {\n if (!isVisible && videoRef.current) {\n videoRef.current.pause();\n videoRef.current.currentTime = 0;\n }\n }, [isVisible]);\n\n return (\n <GalleryItemWrapper\n onTransitionEnd={onTransitionEnd}\n $fade={fade}\n $isActive={isActive}\n $isVisible={isVisible}\n $couldBeNext={couldBeNext}\n $hoverable={item.isVideo}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={() => {\n isVideoHovering.current = false;\n }}\n >\n {item.isVideo ? (\n <Video\n ref={videoRef}\n src={item.src}\n width={item.width}\n height={item.height}\n muted\n playsInline\n poster={item?.childAssets?.find((child) => !child.isVideo)?.src}\n $aspectRatio={item.width / item.height}\n controls={false}\n autoPlay={isMobile}\n />\n ) : (\n <GalleryImage\n asset={item}\n renderImage={renderImage}\n sizes=\"100%\"\n objectFit={objectFit}\n layout=\"fill\"\n priority={priority}\n />\n )}\n </GalleryItemWrapper>\n );\n});\n"],"names":["GalleryItem","memo","GalleryItem2","item","renderImage","priority","onTransitionEnd","fade","isActive","couldBeNext","objectFit","videoRef","useRef","isVideoHovering","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","handleMouseEnter","useCallback","current","isVideoPlaying","currentTime","paused","ended","play","onended","pause","isVisible","setIsVisible","useState","useEffect","window","setTimeout","jsx","GalleryItemWrapper","$fade","$isActive","$isVisible","$couldBeNext","$hoverable","isVideo","onMouseEnter","onMouseLeave","children","Video","ref","src","width","height","muted","playsInline","poster","childAssets","find","child","$aspectRatio","controls","autoPlay","GalleryImage","asset","sizes","layout"],"mappings":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S,YAAA,EAAcrD,IAAK,CAAA6C,KAAA,GAAQ7C,IAAK,CAAA8C,MAAA;MAChCQ,QAAU,EAAA,KAAA;MACVC,QAAU,EAAA5C;IAAA,CAAA,CAGZ,kBAAAoB,UAAA,CAAAA,GAAA,CAACyB,kBAAA,CAAAA,YAAA,EAAA;MACCC,KAAO,EAAAzD,IAAA;MACPC,WAAA;MACAyD,KAAM,EAAA,MAAA;MACNnD,SAAA;MACAoD,MAAO,EAAA,MAAA;MACPzD;IAAA,CACF;EAAA,CAAA,CAEJ;AAEJ,CAAC,CAAA;"}
|
|
@@ -58,11 +58,11 @@ const GalleryItem = memo(function GalleryItem2({
|
|
|
58
58
|
}, [isVisible]);
|
|
59
59
|
return /* @__PURE__ */jsx(GalleryItemWrapper, {
|
|
60
60
|
onTransitionEnd,
|
|
61
|
-
fade,
|
|
62
|
-
isActive,
|
|
63
|
-
isVisible,
|
|
64
|
-
couldBeNext,
|
|
65
|
-
hoverable: item.isVideo,
|
|
61
|
+
$fade: fade,
|
|
62
|
+
$isActive: isActive,
|
|
63
|
+
$isVisible: isVisible,
|
|
64
|
+
$couldBeNext: couldBeNext,
|
|
65
|
+
$hoverable: item.isVideo,
|
|
66
66
|
onMouseEnter: handleMouseEnter,
|
|
67
67
|
onMouseLeave: () => {
|
|
68
68
|
isVideoHovering.current = false;
|