@ubnt/store.core 9.49.0-new-design → 9.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -73
- package/lib/_virtual/_virtual_multi-entry.js +0 -1
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/icons/menu/{icon-location-pin.svg.js → icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +2 -10
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/port.svg +2 -4
- package/lib/assets/port2.svg +4 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
- package/lib/components/Button/Button.js +0 -7
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +1 -8
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +1 -3
- package/lib/components/Button/CartButton.js +4 -9
- 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/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +2 -4
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +5 -8
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +6 -7
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +3 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/Explore/ExploreData.js +12 -12
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +12 -12
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Header/AccountMenu/AccountMenu.js +1 -11
- 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/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +9 -9
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +9 -9
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +12 -7
- package/lib/components/Header/Header.styles.js +32 -10
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +31 -10
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +5 -29
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +0 -1
- package/lib/components/Header/IsolatedHeader.js +44 -44
- 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/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +103 -110
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
- package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
- package/lib/components/Header/ProHeader/ProHeader.js +168 -249
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +170 -250
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
- package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +1 -4
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +2 -4
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +1 -4
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +2 -4
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +1 -4
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +2 -4
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -7
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -6
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +1 -4
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +2 -4
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +1 -4
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +2 -4
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +1 -4
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +2 -4
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +1 -4
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +2 -4
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +1 -4
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +1 -4
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +1 -3
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +1 -2
- package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +3 -3
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +41 -5
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +21 -5
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- 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/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +4 -4
- package/lib/components/Search/Input/Input.js.map +1 -1
- package/lib/components/Search/Input/Input.mjs +4 -4
- package/lib/components/Search/Input/Input.mjs.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +1 -0
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +1 -0
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +2 -3
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -16
- package/lib/constants/proStoreCategories/mapping/filters.js +0 -16
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -16
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -3
- package/lib/constants/proStoreCategories/mapping/index.js +51 -45
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +49 -44
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
- package/lib/constants/proStoreCategories/mapping/redirects.js +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -8
- package/lib/constants/proStoreCategories/mapping/unifi.js +9 -8
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -8
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +2 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +3 -4
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +3 -4
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +3 -45
- package/lib/constants/proStoreFilters/mapping.js +9 -119
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +9 -119
- 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 +1 -1
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/helpers/index.js +0 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -1
- package/lib/helpers/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/package.json +1 -1
- package/lib/assets/cart-secondary.svg +0 -5
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/cart-secondary.svg.js +0 -27
- package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
- package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
- package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +0 -6
- package/lib/components/Header/Header.stories.d.ts +0 -111
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
- package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
- package/lib/components/Header/LogoIcon/index.d.ts +0 -1
- package/lib/components/Header/LogoIcon/index.js +0 -6
- package/lib/components/Header/LogoIcon/index.js.map +0 -1
- package/lib/components/Header/LogoIcon/index.mjs +0 -3
- package/lib/components/Header/LogoIcon/index.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"udw.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/udw.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport {
|
|
1
|
+
{"version":3,"file":"udw.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/udw.tsx"],"sourcesContent":["import { UniFiCategoryId } from \"../../../../constants/proStoreCategories\";\nimport { SiteId } from \"../../../../contexts/MenuContext/mapping\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport applications from \"../../assets/applications.svg\";\nimport image from \"../../assets/Consoles/bigCompare/udw.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { nextAiInspection } from \"../properties\";\nimport { clientDevices } from \"../properties/clientDevices\";\nimport { idsIpsThroughput } from \"../properties/idsIpsThroughput\";\nimport { integratedWiFi6 } from \"../properties/integratedWiFi6\";\nimport { lanPorts } from \"../properties/lanPorts\";\nimport { mounting } from \"../properties/mounting\";\nimport { powerRedundancy } from \"../properties/powerRedundancy\";\nimport { storage } from \"../properties/storage\";\nimport { throughput } from \"../properties/throughput\";\nimport { unifiAppSuite } from \"../properties/unifiAppSuite\";\nimport { unifiDevices } from \"../properties/unifiDevices\";\nimport { wanPorts } from \"../properties/wanPorts\";\n\nexport const udw: Product = {\n id: \"udw\",\n title: \"udw.title\",\n description: \"udw.description\",\n techspecsPath: [\n SiteId.TechSpecs,\n `/unifi/${UniFiCategoryId.UniFiCloudGateways}/udw`,\n ],\n storePathParts: {\n category: \"all-unifi-cloud-gateways\",\n productSlug: \"udw\",\n },\n image: {\n src: image,\n width: 337,\n height: 130,\n },\n notes: [\"udw.notes\"],\n propertyValues: [\n {\n propertyId: unifiAppSuite.id,\n value: {\n type: \"custom\",\n value: <StyleableSvgImage src={applications} height={30} width={144} />,\n },\n },\n {\n propertyId: throughput.id,\n value: {\n type: \"translation\",\n value: \"udw.throughput\",\n },\n },\n {\n propertyId: idsIpsThroughput.id,\n value: {\n type: \"translation\",\n value: \"udw.idsIpsThroughput\",\n },\n },\n {\n propertyId: unifiDevices.id,\n value: {\n type: \"translation\",\n value: \"udw.unifiDevices\",\n },\n },\n {\n propertyId: clientDevices.id,\n value: {\n type: \"translation\",\n value: \"udw.clientDevices\",\n },\n },\n {\n propertyId: wanPorts.id,\n value: {\n type: \"translation\",\n value: \"udw.wanPorts\",\n },\n },\n {\n propertyId: lanPorts.id,\n value: {\n type: \"translation\",\n value: \"udw.lanPorts\",\n },\n },\n {\n propertyId: nextAiInspection.id,\n value: {\n type: \"boolean\",\n value: false,\n },\n },\n {\n propertyId: storage.id,\n value: {\n type: \"translation\",\n value: \"udw.storage\",\n },\n },\n {\n propertyId: powerRedundancy.id,\n value: {\n type: \"translation\",\n value: \"udw.powerRedundancy\",\n },\n },\n {\n propertyId: mounting.id,\n value: {\n type: \"translation\",\n value: \"udw.mounting\",\n },\n },\n {\n propertyId: integratedWiFi6.id,\n value: {\n type: \"translation\",\n value: \"udw.integratedWiFi6\",\n },\n },\n ],\n};\n"],"names":["udw","id","title","description","techspecsPath","SiteId","TechSpecs","UniFiCategoryId","UniFiCloudGateways","storePathParts","category","productSlug","image","src","width","height","notes","propertyValues","propertyId","unifiAppSuite","value","type","StyleableSvgImage","applications","throughput","idsIpsThroughput","unifiDevices","clientDevices","wanPorts","lanPorts","nextAiInspection","storage","powerRedundancy","mounting","integratedWiFi6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmBO,MAAMA,GAAe,GAAA;EAC1BC,EAAI,EAAA,KAAA;EACJC,KAAO,EAAA,WAAA;EACPC,WAAa,EAAA,iBAAA;EACbC,aAAe,EAAA,CACbC,MAAO,CAAAC,SAAA,EACP,UAAUC,gBAAgBC,kBAAkB,MAAA,CAC9C;EACAC,cAAgB,EAAA;IACdC,QAAU,EAAA,0BAAA;IACVC,WAAa,EAAA;EACf,CAAA;EACAC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAA,EAAO,CAAC,WAAW,CAAA;EACnBC,cAAgB,EAAA,CACd;IACEC,YAAYC,aAAc,CAAAlB,EAAA;IAC1BmB,KAAO,EAAA;MACLC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B,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYgB,eAAgB,CAAAjC,EAAA;IAC5BmB,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -2,7 +2,7 @@ export declare const PRODUCT_SECTION_NAVIGATION_HEIGHT = 48;
|
|
|
2
2
|
export declare const PRODUCT_SECTION_NAVIGATION_ANIMATION_MS = 300;
|
|
3
3
|
export declare const NAV_ITEM_GAP_SIZE = 30;
|
|
4
4
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
5
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const NavItemWrapOuter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const NavItemWrapInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
8
|
export declare const NavItem: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const NAV_ITEM_GAP_SIZE = 30;
|
|
2
2
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
3
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const Item: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
|
|
5
5
|
active?: boolean;
|
|
6
6
|
}, never>;
|
|
@@ -10,8 +10,8 @@ export declare const SpecData: import("styled-components").StyledComponent<"div"
|
|
|
10
10
|
}, never>;
|
|
11
11
|
export declare const SpecsWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
12
12
|
export declare const SectionWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
13
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
14
14
|
export declare const GradientButton: import("styled-components").StyledComponent<({ children, active, className, ...props }: import("../GradientButton/GradientButton.types").GradientButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
15
15
|
export declare const Title: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare const ScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon,
|
|
16
|
+
export declare const ScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
17
17
|
export declare const ScrollOuter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -12,7 +12,7 @@ require('./assets/attention.svg.js');
|
|
|
12
12
|
var InputCard_styles = require('./InputCard.styles.js');
|
|
13
13
|
require('./InputSections/index.js');
|
|
14
14
|
var CustomImage = require('../../../../CustomImage/CustomImage.js');
|
|
15
|
-
var attentionIcon = require("../../../../../assets/
|
|
15
|
+
var attentionIcon = require("../../../../../assets/attention.svg");
|
|
16
16
|
var OptionSelectSection = require('./InputSections/OptionSelectSection.js');
|
|
17
17
|
var SliderSection = require('./InputSections/SliderSection.js');
|
|
18
18
|
var CounterSection = require('./InputSections/CounterSection.js');
|
|
@@ -10,7 +10,7 @@ import './assets/attention.svg.mjs';
|
|
|
10
10
|
import { Card, Header, HeaderHeadingSection, HeadingIcon, HeadingTitle, HeaderActionSection, SubduedInfo, OverlayFilter, NotAvailableNoteWrap, NotAvailableNoteIcon, InputBody, InputSectionSpacing, Footer, FooterContent, FooterNote } from './InputCard.styles.mjs';
|
|
11
11
|
import './InputSections/index.mjs';
|
|
12
12
|
import { CustomImage } from '../../../../CustomImage/CustomImage.mjs';
|
|
13
|
-
import attentionIcon__default from "../../../../../assets/
|
|
13
|
+
import attentionIcon__default from "../../../../../assets/attention.svg";
|
|
14
14
|
import { OptionSelectSection } from './InputSections/OptionSelectSection.mjs';
|
|
15
15
|
import { SliderSection } from './InputSections/SliderSection.mjs';
|
|
16
16
|
import { CounterSection } from './InputSections/CounterSection.mjs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var attentionIcon = require("../../../../../../assets/
|
|
6
|
+
var attentionIcon = require("../../../../../../assets/attention.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/attention.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/attention.svg";
|
|
3
3
|
//# sourceMappingURL=attention.svg.mjs.map
|
|
@@ -6,7 +6,7 @@ var asset = require('../../../../../utils/asset.js');
|
|
|
6
6
|
require('./assets/attention.svg.js');
|
|
7
7
|
var Part = require('./Part.js');
|
|
8
8
|
var ProgressBarChart_styles = require('./ProgressBarChart.styles.js');
|
|
9
|
-
var attentionIcon = require("../../../../../assets/
|
|
9
|
+
var attentionIcon = require("../../../../../assets/attention2.svg");
|
|
10
10
|
function _interopDefault(e) {
|
|
11
11
|
return e && e.__esModule ? e : {
|
|
12
12
|
default: e
|
|
@@ -4,7 +4,7 @@ import { imageSrc } from '../../../../../utils/asset.mjs';
|
|
|
4
4
|
import './assets/attention.svg.mjs';
|
|
5
5
|
import { PART_GAP_PX, PART_WIDTH_PX, Part } from './Part.mjs';
|
|
6
6
|
import { ProgressBarChartContainer, ProgressBarChartHeader, ProgressBarChartTitle, ProgressBarWrapper, ProgressBarPartsContainer, ProgressBarAttentionLabel, ProgressBarAttentionLabelIcon } from './ProgressBarChart.styles.mjs';
|
|
7
|
-
import attentionIcon__default from "../../../../../assets/
|
|
7
|
+
import attentionIcon__default from "../../../../../assets/attention2.svg";
|
|
8
8
|
"use strict";
|
|
9
9
|
const ProgressBarChart = ({
|
|
10
10
|
title,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var attentionIcon = require("../../../../../../assets/
|
|
6
|
+
var attentionIcon = require("../../../../../../assets/attention2.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/attention2.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/attention2.svg";
|
|
3
3
|
//# sourceMappingURL=attention.svg.mjs.map
|
|
@@ -9,7 +9,7 @@ require('./assets/port.svg.js');
|
|
|
9
9
|
var RecommendedPoeSwitches_styles = require('./RecommendedPoeSwitches.styles.js');
|
|
10
10
|
var ValueTile = require('./ValueTile.js');
|
|
11
11
|
var CustomImage = require('../../../../CustomImage/CustomImage.js');
|
|
12
|
-
var portIcon = require("../../../../../assets/
|
|
12
|
+
var portIcon = require("../../../../../assets/port.svg");
|
|
13
13
|
var poeIcon = require("../../../../../assets/poe3.svg");
|
|
14
14
|
function _interopDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : {
|
|
@@ -7,7 +7,7 @@ import './assets/port.svg.mjs';
|
|
|
7
7
|
import { RecommendedDevices, Header, HeaderColumn, Title, Subtitle, Label, ItemsWrap, Item, ItemImgWrap, ItemBodyWrap, ItemTitle, ItemLabelsWrap, ItemLabel, ItemLabelIcon, ItemLabelBody } from './RecommendedPoeSwitches.styles.mjs';
|
|
8
8
|
import { ValueTile } from './ValueTile.mjs';
|
|
9
9
|
import { CustomImage } from '../../../../CustomImage/CustomImage.mjs';
|
|
10
|
-
import portIcon__default from "../../../../../assets/
|
|
10
|
+
import portIcon__default from "../../../../../assets/port.svg";
|
|
11
11
|
import poeIcon__default from "../../../../../assets/poe3.svg";
|
|
12
12
|
"use strict";
|
|
13
13
|
const RecommendedPoeSwitches = ({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var portIcon = require("../../../../../../assets/
|
|
6
|
+
var portIcon = require("../../../../../../assets/port.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/port.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/port.svg";
|
|
3
3
|
//# sourceMappingURL=port.svg.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ScrollWrapperProps } from "./ScrollWrapper.types";
|
|
2
|
-
export declare const ScrollWrapper: ({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon,
|
|
2
|
+
export declare const ScrollWrapper: ({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, }: ScrollWrapperProps) => JSX.Element;
|
|
@@ -35,9 +35,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
35
35
|
hideArrows,
|
|
36
36
|
onScrollChange,
|
|
37
37
|
enableWheelScroll,
|
|
38
|
-
arrowIcon
|
|
39
|
-
alignActive = "center",
|
|
40
|
-
disableScrollToActive
|
|
38
|
+
arrowIcon
|
|
41
39
|
}) {
|
|
42
40
|
const containerRef = react.useRef(null);
|
|
43
41
|
const [containerMeasureRef, containerSize] = reactUse.useMeasure();
|
|
@@ -143,16 +141,10 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
143
141
|
if (actNav) {
|
|
144
142
|
const actNavRect = actNav.getBoundingClientRect();
|
|
145
143
|
if (direction === "horizontal") {
|
|
146
|
-
if (
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
} else {
|
|
151
|
-
if (actNavRect.right > containerRect.right) {
|
|
152
|
-
offset.left = actNavRect.right - containerRect.right + containerRef.current.scrollLeft + (!hideArrows ? ScrollWrapper_styles.FADE_BUTTON_SIZE : 0) + containerRect.width / 2 - actNavRect.width / 2;
|
|
153
|
-
} else if (actNavRect.left < containerRect.left) {
|
|
154
|
-
offset.left = actNavRect.left - containerRect.left + containerRef.current.scrollLeft - (!hideArrows ? ScrollWrapper_styles.FADE_BUTTON_SIZE : 0) - containerRect.width / 2 + actNavRect.width / 2;
|
|
155
|
-
}
|
|
144
|
+
if (actNavRect.right > containerRect.right) {
|
|
145
|
+
offset.left = actNavRect.right - containerRect.right + containerRef.current.scrollLeft + (!hideArrows ? ScrollWrapper_styles.FADE_BUTTON_SIZE : 0) + containerRect.width / 2 - actNavRect.width / 2;
|
|
146
|
+
} else if (actNavRect.left < containerRect.left) {
|
|
147
|
+
offset.left = actNavRect.left - containerRect.left + containerRef.current.scrollLeft - (!hideArrows ? ScrollWrapper_styles.FADE_BUTTON_SIZE : 0) - containerRect.width / 2 + actNavRect.width / 2;
|
|
156
148
|
}
|
|
157
149
|
} else if (direction === "vertical") {
|
|
158
150
|
if (actNavRect.bottom > containerRect.bottom) {
|
|
@@ -163,7 +155,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
163
155
|
}
|
|
164
156
|
}
|
|
165
157
|
return offset;
|
|
166
|
-
}, [direction,
|
|
158
|
+
}, [direction, hideArrows]);
|
|
167
159
|
const {
|
|
168
160
|
x: refScrollX,
|
|
169
161
|
y: refScrollY
|
|
@@ -279,7 +271,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
279
271
|
}, [direction, scrollX, scrollY, scrollStepType, gap, getContainerItemWidth, getVisibleItemsWidth, getInvisibleItemOffset]);
|
|
280
272
|
react.useEffect(() => {
|
|
281
273
|
window.setTimeout(() => {
|
|
282
|
-
if (!containerRef.current
|
|
274
|
+
if (!containerRef.current) return;
|
|
283
275
|
if (activeIndex !== void 0 && activeIndex > -1) {
|
|
284
276
|
const offset = getActiveIndexOffset(activeIndex);
|
|
285
277
|
if (offset.left !== void 0) {
|
|
@@ -296,7 +288,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
296
288
|
});
|
|
297
289
|
}
|
|
298
290
|
}, 0);
|
|
299
|
-
}, [activeIndex, getActiveIndexOffset
|
|
291
|
+
}, [activeIndex, getActiveIndexOffset]);
|
|
300
292
|
const arrowIconSrc = react.useMemo(() => {
|
|
301
293
|
const icon = arrowIcon?.icon ?? ArrowRightIcon__default["default"];
|
|
302
294
|
return typeof icon === "string" ? icon : icon.src;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollWrapper.js","sources":["../../../src/components/ScrollWrapper/ScrollWrapper.tsx"],"sourcesContent":["/* eslint-disable @next/next/no-img-element */\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useMeasure, useScroll, useWindowSize } from \"react-use\";\n\nimport ArrowRightIcon from \"../../assets/icons/arrowRight.svg\";\nimport { useHorizontalScroll } from \"../../hooks/useHorizontalScroll\";\nimport * as S from \"./ScrollWrapper.styles\";\nimport { FADE_BUTTON_SIZE } from \"./ScrollWrapper.styles\";\nimport type { ScrollWrapperProps } from \"./ScrollWrapper.types\";\n\nconst SCROLL_CONTAINER_ITEM_CLASS_NAME = \"scroll-container-item\";\n\nconst NEAR_BOUNDARY_WIDTH = 10;\n\nexport const ScrollWrapper = function ScrollWrapper({\n align,\n direction,\n items,\n fillType,\n fillColor,\n accentColor,\n arrowColor,\n scrollStepType = \"scrollScreen\",\n gap,\n className,\n arrowFadeColor,\n activeIndex,\n circleArrowBackground,\n arrowGap,\n gradientSize,\n hideArrows,\n onScrollChange,\n enableWheelScroll,\n arrowIcon,\n alignActive = \"center\",\n disableScrollToActive,\n}: ScrollWrapperProps) {\n // #############################################################################\n // Container ref\n // #############################################################################\n const containerRef = useRef<null | HTMLDivElement>(null);\n const [containerMeasureRef, containerSize] = useMeasure<HTMLDivElement>();\n\n useHorizontalScroll(containerRef, !!enableWheelScroll);\n\n // Set measure ref\n useEffect(() => {\n if (containerRef.current) {\n containerMeasureRef(containerRef.current);\n }\n }, [containerMeasureRef]);\n\n const getContainerItemWidth = useCallback((): number => {\n const containerItem = containerRef.current?.querySelector(\n `.${SCROLL_CONTAINER_ITEM_CLASS_NAME}`,\n );\n\n if (!containerItem) {\n return 0;\n }\n\n return containerItem.getBoundingClientRect().width;\n }, []);\n\n const getInvisibleItemOffset = useCallback(\n ({ scrollDirection }: { scrollDirection: 1 | -1 }): number => {\n if (!containerRef.current) {\n return 0; // If container is not available, return 0\n }\n\n const container = containerRef.current;\n const items = container.querySelectorAll(\n `.${SCROLL_CONTAINER_ITEM_CLASS_NAME}`,\n );\n const containerRect = container.getBoundingClientRect();\n const isHorizontal = direction === \"horizontal\";\n\n // Offset for gradient element, as it covers the last item\n const fadeSize = 20;\n\n if (isHorizontal) {\n const padding =\n scrollDirection === 1\n ? parseFloat(window.getComputedStyle(container)[\"paddingRight\"])\n : parseFloat(window.getComputedStyle(container)[\"paddingLeft\"]);\n const offset = Math.max(padding, fadeSize);\n const containerEdgeWithoutPadding =\n scrollDirection === 1\n ? containerRect[\"right\"] - offset\n : containerRect[\"left\"] + offset;\n\n if (scrollDirection === 1) {\n for (const item of Array.from(items)) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible horizontally\n if (itemRect.right > containerEdgeWithoutPadding) {\n return Math.abs(itemRect.right - containerEdgeWithoutPadding);\n }\n }\n } else {\n for (let i = items.length - 1; i >= 0; i--) {\n const item = items[i];\n if (item) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible horizontally\n if (itemRect.left < containerEdgeWithoutPadding) {\n return Math.abs(containerEdgeWithoutPadding - itemRect.left);\n }\n }\n }\n }\n } else {\n const padding =\n scrollDirection === 1\n ? parseFloat(window.getComputedStyle(container)[\"paddingBottom\"])\n : parseFloat(window.getComputedStyle(container)[\"paddingTop\"]);\n const offset = Math.max(padding, fadeSize);\n\n const containerEdgeWithoutPadding =\n scrollDirection === 1\n ? containerRect[\"bottom\"] - offset\n : containerRect[\"top\"] + offset;\n\n if (scrollDirection === 1) {\n for (const item of Array.from(items)) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible vertically\n if (itemRect.bottom > containerEdgeWithoutPadding) {\n return Math.abs(itemRect.bottom - containerEdgeWithoutPadding);\n }\n }\n } else {\n for (let i = items.length - 1; i >= 0; i--) {\n const item = items[i];\n if (item) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible vertically\n if (itemRect.top < containerEdgeWithoutPadding) {\n return Math.abs(containerEdgeWithoutPadding - itemRect.top);\n }\n }\n }\n }\n }\n\n // If all items are fully visible, return 0\n return 0;\n },\n [direction],\n );\n\n const getVisibleItemsWidth = useCallback((): number => {\n if (!containerRef.current) {\n return 0;\n }\n\n const containerRect = containerRef.current.getBoundingClientRect();\n const containerItems = containerRef.current.querySelectorAll(\n `.${SCROLL_CONTAINER_ITEM_CLASS_NAME}`,\n );\n\n let visibleItemsWidth = 0;\n\n containerItems.forEach((item) => {\n const itemRect = item.getBoundingClientRect();\n\n if (\n (direction === \"horizontal\" &&\n itemRect.left >= containerRect.left &&\n itemRect.right <= containerRect.right) ||\n (direction === \"vertical\" &&\n itemRect.top >= containerRect.top &&\n itemRect.bottom <= containerRect.bottom)\n ) {\n // Do not add gap for first item because gaps should always be \"gaps = items - 1\"\n if (visibleItemsWidth !== 0 && gap !== undefined) {\n visibleItemsWidth += gap;\n }\n\n visibleItemsWidth +=\n direction === \"horizontal\" ? itemRect.width : itemRect.height;\n }\n });\n\n return visibleItemsWidth;\n }, [direction, gap]);\n\n const getActiveIndexOffset = useCallback(\n (index: number): { left: number | undefined; top: number | undefined } => {\n const offset: { left: undefined | number; top: undefined | number } = {\n left: undefined,\n top: undefined,\n };\n if (!containerRef.current) {\n return offset;\n }\n\n const containerRect = containerRef.current.getBoundingClientRect();\n const actNav = containerRef.current.children[index] as HTMLElement;\n\n if (actNav) {\n const actNavRect = actNav.getBoundingClientRect();\n\n if (direction === \"horizontal\") {\n if (alignActive === \"left\") {\n // Align active item to the left\n if (\n actNavRect.left < containerRect.left ||\n actNavRect.right > containerRect.right\n ) {\n offset.left =\n actNavRect.left -\n containerRect.left +\n containerRef.current.scrollLeft;\n }\n } else {\n // Default behavior: Align active item to the center\n if (actNavRect.right > containerRect.right) {\n offset.left =\n actNavRect.right -\n containerRect.right +\n containerRef.current.scrollLeft +\n (!hideArrows ? FADE_BUTTON_SIZE : 0) +\n containerRect.width / 2 -\n actNavRect.width / 2;\n } else if (actNavRect.left < containerRect.left) {\n offset.left =\n actNavRect.left -\n containerRect.left +\n containerRef.current.scrollLeft -\n (!hideArrows ? FADE_BUTTON_SIZE : 0) -\n containerRect.width / 2 +\n actNavRect.width / 2;\n }\n }\n } else if (direction === \"vertical\") {\n if (actNavRect.bottom > containerRect.bottom) {\n offset.top =\n actNavRect.bottom -\n containerRect.bottom +\n containerRef.current.scrollTop +\n (!hideArrows ? FADE_BUTTON_SIZE : 0);\n } else if (actNavRect.top < containerRect.top) {\n offset.top =\n actNavRect.top -\n containerRect.top +\n containerRef.current.scrollTop +\n (!hideArrows ? FADE_BUTTON_SIZE : 0);\n }\n }\n }\n\n return offset;\n },\n [direction, alignActive, hideArrows],\n );\n\n // #############################################################################\n // Handle scrolling\n // #############################################################################\n const { x: refScrollX, y: refScrollY } = useScroll(containerRef);\n // Keep track of window size to detect resize\n const windowSize = useWindowSize();\n\n // Keep track of the current scroll position and size\n // State is needed due to initial not being tracked by useScroll\n const [scrollX, setScrollX] = useState(0);\n const [scrollY, setScrollY] = useState(0);\n\n // Set initial data\n useEffect(() => {\n if (!containerRef.current) return;\n\n const initScrollX = containerRef.current.scrollLeft;\n const initScrollY = containerRef.current.scrollTop;\n\n setScrollX(initScrollX);\n setScrollY(initScrollY);\n\n onScrollChange?.({\n scrollX: initScrollX,\n scrollY: initScrollY,\n scrollWidth: containerRef.current.scrollWidth,\n });\n }, [onScrollChange]);\n\n // Set scroll positions on scroll and resize\n useEffect(() => {\n setScrollX(refScrollX);\n setScrollY(refScrollY);\n\n onScrollChange?.({\n scrollX: refScrollX,\n scrollY: refScrollY,\n scrollWidth: containerRef.current?.scrollWidth ?? 0,\n });\n }, [\n onScrollChange,\n refScrollX,\n refScrollY,\n // HACK: needed windowSize to retrigger the effect\n // eslint-disable-next-line react-hooks/exhaustive-deps\n windowSize,\n ]);\n\n // #############################################################################\n // Parse fade display state\n // #############################################################################\n const [showFadeStart, setShowFadeStart] = useState(false);\n const [showFadeEnd, setShowFadeEnd] = useState(false);\n\n useEffect(() => {\n if (!containerRef.current) return;\n\n const width = containerRef.current.offsetWidth;\n const height = containerRef.current.offsetHeight;\n const scrollWidth = containerRef.current.scrollWidth;\n const scrollHeight = containerRef.current.scrollHeight;\n\n // 1px added to fix issue with 1 pixel (sometimes arrow doesn't disappear when it should)\n // happens only when scroll behavior is smooth\n const scrollXFixOffset = 1;\n\n switch (direction) {\n case \"horizontal\":\n setShowFadeStart(scrollX > 0);\n\n setShowFadeEnd(\n Math.ceil(scrollX + scrollXFixOffset) < scrollWidth - width,\n );\n break;\n case \"vertical\":\n setShowFadeStart(scrollY > 0);\n setShowFadeEnd(\n Math.ceil(scrollY + scrollXFixOffset) < scrollHeight - height,\n );\n break;\n }\n }, [\n // HACK: needed windowSize, containerSize.width to retrigger the effect\n // eslint-disable-next-line react-hooks/exhaustive-deps\n containerSize.width,\n windowSize,\n // #############################################################################\n direction,\n scrollX,\n scrollY,\n items,\n ]);\n\n // #############################################################################\n // Handle arrow click scroll\n // #############################################################################\n const handleArrowClick = useCallback(\n (first: boolean) => {\n // Ensure the container reference is available\n const container = containerRef.current;\n if (!container) return;\n\n // Determine the scroll direction based on the `first` parameter\n const scrollDirection = first ? -1 : 1;\n\n // Destructure properties from the container for ease of use\n const {\n scrollWidth,\n scrollHeight,\n offsetWidth,\n offsetHeight,\n clientWidth,\n } = container;\n\n // Determine if the scrolling direction is horizontal or vertical\n const isHorizontal = direction === \"horizontal\";\n const scrollPosition = isHorizontal ? scrollX : scrollY;\n const scrollSize = isHorizontal ? scrollWidth : scrollHeight;\n\n // Calculate the scroll step based on the scrollStepType\n let scrollStep = 0;\n switch (scrollStepType) {\n case \"scrollScreen\":\n scrollStep = isHorizontal ? offsetWidth : offsetHeight;\n break;\n case \"itemWidth\":\n scrollStep = getContainerItemWidth();\n break;\n case \"visibleItemsWidth\":\n scrollStep = getVisibleItemsWidth();\n break;\n case \"nextItem\":\n scrollStep = getInvisibleItemOffset({\n scrollDirection,\n });\n break;\n }\n\n // Calculate the new scroll position\n const newScrollPosition =\n scrollPosition + scrollDirection * (scrollStep + (gap ?? 0));\n\n // Ensure the new scroll position is within bounds\n const newScrollPositionWithinBounds = Math.max(\n 0,\n Math.min(scrollSize - scrollStep, newScrollPosition),\n );\n\n // Calculate the possible scroll amount\n const possibleScroll = scrollSize - clientWidth;\n const nearBoundary = NEAR_BOUNDARY_WIDTH;\n\n // Scroll to the beginning if the new position is near the start\n if (newScrollPosition < nearBoundary || newScrollPosition < 0) {\n container.scrollTo({\n left: 0,\n top: 0,\n behavior: \"smooth\",\n });\n return;\n }\n\n // Scroll to the end if the new position is near the end\n if (\n possibleScroll - newScrollPosition < nearBoundary ||\n newScrollPosition > possibleScroll\n ) {\n container.scrollTo({\n left: possibleScroll,\n top: possibleScroll,\n behavior: \"smooth\",\n });\n return;\n }\n\n // Smooth scroll to the new position within bounds\n container.scrollTo({\n left: isHorizontal ? newScrollPositionWithinBounds : undefined,\n top: !isHorizontal ? newScrollPositionWithinBounds : undefined,\n behavior: \"smooth\",\n });\n },\n [\n direction,\n scrollX,\n scrollY,\n scrollStepType,\n gap,\n getContainerItemWidth,\n getVisibleItemsWidth,\n getInvisibleItemOffset,\n ],\n );\n\n // #############################################################################\n // Scroll to start or active index on mount\n // #############################################################################\n useEffect(() => {\n window.setTimeout(() => {\n if (!containerRef.current || disableScrollToActive) return;\n\n // Scroll into view, if activeIndex is provided\n if (activeIndex !== undefined && activeIndex > -1) {\n const offset = getActiveIndexOffset(activeIndex);\n\n if (offset.left !== undefined) {\n containerRef.current.scrollLeft = offset.left;\n }\n if (offset.top !== undefined) {\n containerRef.current.scrollTop = offset.top;\n }\n } else {\n containerRef.current.scrollTo({\n left: 0,\n top: 0,\n behavior: \"smooth\",\n });\n }\n }, 0);\n }, [activeIndex, getActiveIndexOffset, disableScrollToActive]);\n\n // #############################################################################\n // Arrow icon\n // #############################################################################\n const arrowIconSrc = useMemo(() => {\n const icon = arrowIcon?.icon ?? ArrowRightIcon;\n\n return typeof icon === \"string\" ? icon : icon.src;\n }, [arrowIcon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.OuterContainer\n $align={align}\n $direction={direction}\n $showFadeStart={showFadeStart}\n $showFadeEnd={showFadeEnd}\n $fillType={fillType}\n $fillColor={fillColor}\n $gradientSize={gradientSize}\n className={className}\n >\n <S.ScrollContainer ref={containerRef} $direction={direction} $gap={gap}>\n {items.map((item, i) => (\n <S.Item\n key={item.id + i}\n className={SCROLL_CONTAINER_ITEM_CLASS_NAME}\n >\n {item.render()}\n </S.Item>\n ))}\n </S.ScrollContainer>\n\n <S.LeftArrowIcon\n $show={showFadeStart && !hideArrows}\n $first\n $fillType={fillType}\n $fillColor={fillColor}\n $accentColor={accentColor}\n $direction={direction}\n $arrowFadeColor={arrowFadeColor}\n $circleArrowBackground={circleArrowBackground}\n onClick={() => handleArrowClick(true)}\n $arrowGap={arrowGap}\n >\n <S.ArrowIconSvg\n $arrowColor={arrowColor}\n width={arrowIcon?.width ?? (circleArrowBackground ? 10 : 8)}\n height={arrowIcon?.height ?? (circleArrowBackground ? 16 : 13)}\n src={arrowIconSrc}\n />\n </S.LeftArrowIcon>\n\n <S.RightArrowIcon\n $show={showFadeEnd && !hideArrows}\n $fillType={fillType}\n $fillColor={fillColor}\n $accentColor={accentColor}\n $direction={direction}\n $arrowFadeColor={arrowFadeColor}\n $circleArrowBackground={circleArrowBackground}\n onClick={() => handleArrowClick(false)}\n $arrowGap={arrowGap}\n >\n <S.ArrowIconSvg\n $arrowColor={arrowColor}\n width={arrowIcon?.width ?? (circleArrowBackground ? 10 : 8)}\n height={arrowIcon?.height ?? (circleArrowBackground ? 16 : 13)}\n src={arrowIconSrc}\n />\n </S.RightArrowIcon>\n </S.OuterContainer>\n );\n};\n"],"names":["SCROLL_CONTAINER_ITEM_CLASS_NAME","NEAR_BOUNDARY_WIDTH","ScrollWrapper","ScrollWrapper2","align","direction","items","fillType","fillColor","accentColor","arrowColor","scrollStepType","gap","className","arrowFadeColor","activeIndex","circleArrowBackground","arrowGap","gradientSize","hideArrows","onScrollChange","enableWheelScroll","arrowIcon","alignActive","disableScrollToActive","containerRef","useRef","containerMeasureRef","containerSize","useMeasure","useHorizontalScroll","useEffect","current","getContainerItemWidth","useCallback","containerItem","querySelector","getBoundingClientRect","width","getInvisibleItemOffset","scrollDirection","container","querySelectorAll","containerRect","isHorizontal","fadeSize","padding","parseFloat","window","getComputedStyle","offset","Math","max","containerEdgeWithoutPadding","item","Array","from","itemRect","right","abs","i","length","left","bottom","top","getVisibleItemsWidth","containerItems","visibleItemsWidth","forEach","height","getActiveIndexOffset","index","actNav","children","actNavRect","scrollLeft","FADE_BUTTON_SIZE","scrollTop","x","refScrollX","y","refScrollY","useScroll","windowSize","useWindowSize","scrollX","setScrollX","useState","scrollY","setScrollY","initScrollX","initScrollY","scrollWidth","showFadeStart","setShowFadeStart","showFadeEnd","setShowFadeEnd","offsetWidth","offsetHeight","scrollHeight","scrollXFixOffset","ceil","handleArrowClick","first","clientWidth","scrollPosition","scrollSize","scrollStep","newScrollPosition","newScrollPositionWithinBounds","min","possibleScroll","nearBoundary","scrollTo","behavior","setTimeout","arrowIconSrc","useMemo","icon","ArrowRightIcon","src","jsxs","S.OuterContainer","OuterContainer","$align","$direction","$showFadeStart","$showFadeEnd","$fillType","$fillColor","$gradientSize","jsx","S.ScrollContainer","ScrollContainer","ref","$gap","map","S.Item","Item","render","id","S.LeftArrowIcon","LeftArrowIcon","$show","$first","$accentColor","$arrowFadeColor","$circleArrowBackground","onClick","$arrowGap","S.ArrowIconSvg","ArrowIconSvg","$arrowColor","S.RightArrowIcon","RightArrowIcon"],"mappings":";;;;;;;;;;;;;;;;AAUA,MAAMA,gCAAmC,GAAA,uBAAA;AAEzC,MAAMC,mBAAsB,GAAA,EAAA;AAEf,MAAAC,aAAA,GAAgB,SAASA,cAAcC,CAAA;EAClDC,KAAA;EACAC,SAAA;EACAC,KAAA;EACAC,QAAA;EACAC,SAAA;EACAC,WAAA;EACAC,UAAA;EACAC,cAAiB,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AW,KAAArD,qBAAA,GAAwB,EAAK,GAAA,EAAA,CAAA;QAC3DwG,GAAK,EAAAJ;MAAA,CACP;IAAA,CACF,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ScrollWrapper.js","sources":["../../../src/components/ScrollWrapper/ScrollWrapper.tsx"],"sourcesContent":["/* eslint-disable @next/next/no-img-element */\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useMeasure, useScroll, useWindowSize } from \"react-use\";\n\nimport ArrowRightIcon from \"../../assets/icons/arrowRight.svg\";\nimport { useHorizontalScroll } from \"../../hooks/useHorizontalScroll\";\nimport * as S from \"./ScrollWrapper.styles\";\nimport { FADE_BUTTON_SIZE } from \"./ScrollWrapper.styles\";\nimport type { ScrollWrapperProps } from \"./ScrollWrapper.types\";\n\nconst SCROLL_CONTAINER_ITEM_CLASS_NAME = \"scroll-container-item\";\n\nconst NEAR_BOUNDARY_WIDTH = 10;\n\nexport const ScrollWrapper = function ScrollWrapper({\n align,\n direction,\n items,\n fillType,\n fillColor,\n accentColor,\n arrowColor,\n scrollStepType = \"scrollScreen\",\n gap,\n className,\n arrowFadeColor,\n activeIndex,\n circleArrowBackground,\n arrowGap,\n gradientSize,\n hideArrows,\n onScrollChange,\n enableWheelScroll,\n arrowIcon,\n}: ScrollWrapperProps) {\n // #############################################################################\n // Container ref\n // #############################################################################\n const containerRef = useRef<null | HTMLDivElement>(null);\n const [containerMeasureRef, containerSize] = useMeasure<HTMLDivElement>();\n\n useHorizontalScroll(containerRef, !!enableWheelScroll);\n\n // Set measure ref\n useEffect(() => {\n if (containerRef.current) {\n containerMeasureRef(containerRef.current);\n }\n }, [containerMeasureRef]);\n\n const getContainerItemWidth = useCallback((): number => {\n const containerItem = containerRef.current?.querySelector(\n `.${SCROLL_CONTAINER_ITEM_CLASS_NAME}`,\n );\n\n if (!containerItem) {\n return 0;\n }\n\n return containerItem.getBoundingClientRect().width;\n }, []);\n\n const getInvisibleItemOffset = useCallback(\n ({ scrollDirection }: { scrollDirection: 1 | -1 }): number => {\n if (!containerRef.current) {\n return 0; // If container is not available, return 0\n }\n\n const container = containerRef.current;\n const items = container.querySelectorAll(\n `.${SCROLL_CONTAINER_ITEM_CLASS_NAME}`,\n );\n const containerRect = container.getBoundingClientRect();\n const isHorizontal = direction === \"horizontal\";\n\n // Offset for gradient element, as it covers the last item\n const fadeSize = 20;\n\n if (isHorizontal) {\n const padding =\n scrollDirection === 1\n ? parseFloat(window.getComputedStyle(container)[\"paddingRight\"])\n : parseFloat(window.getComputedStyle(container)[\"paddingLeft\"]);\n const offset = Math.max(padding, fadeSize);\n const containerEdgeWithoutPadding =\n scrollDirection === 1\n ? containerRect[\"right\"] - offset\n : containerRect[\"left\"] + offset;\n\n if (scrollDirection === 1) {\n for (const item of Array.from(items)) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible horizontally\n if (itemRect.right > containerEdgeWithoutPadding) {\n return Math.abs(itemRect.right - containerEdgeWithoutPadding);\n }\n }\n } else {\n for (let i = items.length - 1; i >= 0; i--) {\n const item = items[i];\n if (item) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible horizontally\n if (itemRect.left < containerEdgeWithoutPadding) {\n return Math.abs(containerEdgeWithoutPadding - itemRect.left);\n }\n }\n }\n }\n } else {\n const padding =\n scrollDirection === 1\n ? parseFloat(window.getComputedStyle(container)[\"paddingBottom\"])\n : parseFloat(window.getComputedStyle(container)[\"paddingTop\"]);\n const offset = Math.max(padding, fadeSize);\n\n const containerEdgeWithoutPadding =\n scrollDirection === 1\n ? containerRect[\"bottom\"] - offset\n : containerRect[\"top\"] + offset;\n\n if (scrollDirection === 1) {\n for (const item of Array.from(items)) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible vertically\n if (itemRect.bottom > containerEdgeWithoutPadding) {\n return Math.abs(itemRect.bottom - containerEdgeWithoutPadding);\n }\n }\n } else {\n for (let i = items.length - 1; i >= 0; i--) {\n const item = items[i];\n if (item) {\n const itemRect = item.getBoundingClientRect();\n // Check if item is partially or fully invisible vertically\n if (itemRect.top < containerEdgeWithoutPadding) {\n return Math.abs(containerEdgeWithoutPadding - itemRect.top);\n }\n }\n }\n }\n }\n\n // If all items are fully visible, return 0\n return 0;\n },\n [direction],\n );\n\n const getVisibleItemsWidth = useCallback((): number => {\n if (!containerRef.current) {\n return 0;\n }\n\n const containerRect = containerRef.current.getBoundingClientRect();\n const containerItems = containerRef.current.querySelectorAll(\n `.${SCROLL_CONTAINER_ITEM_CLASS_NAME}`,\n );\n\n let visibleItemsWidth = 0;\n\n containerItems.forEach((item) => {\n const itemRect = item.getBoundingClientRect();\n\n if (\n (direction === \"horizontal\" &&\n itemRect.left >= containerRect.left &&\n itemRect.right <= containerRect.right) ||\n (direction === \"vertical\" &&\n itemRect.top >= containerRect.top &&\n itemRect.bottom <= containerRect.bottom)\n ) {\n // Do not add gap for first item because gaps should always be \"gaps = items - 1\"\n if (visibleItemsWidth !== 0 && gap !== undefined) {\n visibleItemsWidth += gap;\n }\n\n visibleItemsWidth +=\n direction === \"horizontal\" ? itemRect.width : itemRect.height;\n }\n });\n\n return visibleItemsWidth;\n }, [direction, gap]);\n\n const getActiveIndexOffset = useCallback(\n (index: number): { left: number | undefined; top: number | undefined } => {\n const offset: { left: undefined | number; top: undefined | number } = {\n left: undefined,\n top: undefined,\n };\n if (!containerRef.current) {\n return offset;\n }\n\n const containerRect = containerRef.current.getBoundingClientRect();\n const actNav = containerRef.current.children[index] as HTMLElement;\n\n if (actNav) {\n const actNavRect = actNav.getBoundingClientRect();\n\n if (direction === \"horizontal\") {\n if (actNavRect.right > containerRect.right) {\n offset.left =\n actNavRect.right -\n containerRect.right +\n containerRef.current.scrollLeft +\n (!hideArrows ? FADE_BUTTON_SIZE : 0) +\n containerRect.width / 2 -\n actNavRect.width / 2;\n } else if (actNavRect.left < containerRect.left) {\n offset.left =\n actNavRect.left -\n containerRect.left +\n containerRef.current.scrollLeft -\n (!hideArrows ? FADE_BUTTON_SIZE : 0) -\n containerRect.width / 2 +\n actNavRect.width / 2;\n }\n } else if (direction === \"vertical\") {\n if (actNavRect.bottom > containerRect.bottom) {\n offset.top =\n actNavRect.bottom -\n containerRect.bottom +\n containerRef.current.scrollTop +\n (!hideArrows ? FADE_BUTTON_SIZE : 0);\n } else if (actNavRect.top < containerRect.top) {\n offset.top =\n actNavRect.top -\n containerRect.top +\n containerRef.current.scrollTop +\n (!hideArrows ? FADE_BUTTON_SIZE : 0);\n }\n }\n }\n return offset;\n },\n [direction, hideArrows],\n );\n\n // #############################################################################\n // Handle scrolling\n // #############################################################################\n const { x: refScrollX, y: refScrollY } = useScroll(containerRef);\n // Keep track of window size to detect resize\n const windowSize = useWindowSize();\n\n // Keep track of the current scroll position and size\n // State is needed due to initial not being tracked by useScroll\n const [scrollX, setScrollX] = useState(0);\n const [scrollY, setScrollY] = useState(0);\n\n // Set initial data\n useEffect(() => {\n if (!containerRef.current) return;\n\n const initScrollX = containerRef.current.scrollLeft;\n const initScrollY = containerRef.current.scrollTop;\n\n setScrollX(initScrollX);\n setScrollY(initScrollY);\n\n onScrollChange?.({\n scrollX: initScrollX,\n scrollY: initScrollY,\n scrollWidth: containerRef.current.scrollWidth,\n });\n }, [onScrollChange]);\n\n // Set scroll positions on scroll and resize\n useEffect(() => {\n setScrollX(refScrollX);\n setScrollY(refScrollY);\n\n onScrollChange?.({\n scrollX: refScrollX,\n scrollY: refScrollY,\n scrollWidth: containerRef.current?.scrollWidth ?? 0,\n });\n }, [\n onScrollChange,\n refScrollX,\n refScrollY,\n // HACK: needed windowSize to retrigger the effect\n // eslint-disable-next-line react-hooks/exhaustive-deps\n windowSize,\n ]);\n\n // #############################################################################\n // Parse fade display state\n // #############################################################################\n const [showFadeStart, setShowFadeStart] = useState(false);\n const [showFadeEnd, setShowFadeEnd] = useState(false);\n\n useEffect(() => {\n if (!containerRef.current) return;\n\n const width = containerRef.current.offsetWidth;\n const height = containerRef.current.offsetHeight;\n const scrollWidth = containerRef.current.scrollWidth;\n const scrollHeight = containerRef.current.scrollHeight;\n\n // 1px added to fix issue with 1 pixel (sometimes arrow doesn't disappear when it should)\n // happens only when scroll behavior is smooth\n const scrollXFixOffset = 1;\n\n switch (direction) {\n case \"horizontal\":\n setShowFadeStart(scrollX > 0);\n\n setShowFadeEnd(\n Math.ceil(scrollX + scrollXFixOffset) < scrollWidth - width,\n );\n break;\n case \"vertical\":\n setShowFadeStart(scrollY > 0);\n setShowFadeEnd(\n Math.ceil(scrollY + scrollXFixOffset) < scrollHeight - height,\n );\n break;\n }\n }, [\n // HACK: needed windowSize, containerSize.width to retrigger the effect\n // eslint-disable-next-line react-hooks/exhaustive-deps\n containerSize.width,\n windowSize,\n // #############################################################################\n direction,\n scrollX,\n scrollY,\n items,\n ]);\n\n // #############################################################################\n // Handle arrow click scroll\n // #############################################################################\n const handleArrowClick = useCallback(\n (first: boolean) => {\n // Ensure the container reference is available\n const container = containerRef.current;\n if (!container) return;\n\n // Determine the scroll direction based on the `first` parameter\n const scrollDirection = first ? -1 : 1;\n\n // Destructure properties from the container for ease of use\n const {\n scrollWidth,\n scrollHeight,\n offsetWidth,\n offsetHeight,\n clientWidth,\n } = container;\n\n // Determine if the scrolling direction is horizontal or vertical\n const isHorizontal = direction === \"horizontal\";\n const scrollPosition = isHorizontal ? scrollX : scrollY;\n const scrollSize = isHorizontal ? scrollWidth : scrollHeight;\n\n // Calculate the scroll step based on the scrollStepType\n let scrollStep = 0;\n switch (scrollStepType) {\n case \"scrollScreen\":\n scrollStep = isHorizontal ? offsetWidth : offsetHeight;\n break;\n case \"itemWidth\":\n scrollStep = getContainerItemWidth();\n break;\n case \"visibleItemsWidth\":\n scrollStep = getVisibleItemsWidth();\n break;\n case \"nextItem\":\n scrollStep = getInvisibleItemOffset({\n scrollDirection,\n });\n break;\n }\n\n // Calculate the new scroll position\n const newScrollPosition =\n scrollPosition + scrollDirection * (scrollStep + (gap ?? 0));\n\n // Ensure the new scroll position is within bounds\n const newScrollPositionWithinBounds = Math.max(\n 0,\n Math.min(scrollSize - scrollStep, newScrollPosition),\n );\n\n // Calculate the possible scroll amount\n const possibleScroll = scrollSize - clientWidth;\n const nearBoundary = NEAR_BOUNDARY_WIDTH;\n\n // Scroll to the beginning if the new position is near the start\n if (newScrollPosition < nearBoundary || newScrollPosition < 0) {\n container.scrollTo({\n left: 0,\n top: 0,\n behavior: \"smooth\",\n });\n return;\n }\n\n // Scroll to the end if the new position is near the end\n if (\n possibleScroll - newScrollPosition < nearBoundary ||\n newScrollPosition > possibleScroll\n ) {\n container.scrollTo({\n left: possibleScroll,\n top: possibleScroll,\n behavior: \"smooth\",\n });\n return;\n }\n\n // Smooth scroll to the new position within bounds\n container.scrollTo({\n left: isHorizontal ? newScrollPositionWithinBounds : undefined,\n top: !isHorizontal ? newScrollPositionWithinBounds : undefined,\n behavior: \"smooth\",\n });\n },\n [\n direction,\n scrollX,\n scrollY,\n scrollStepType,\n gap,\n getContainerItemWidth,\n getVisibleItemsWidth,\n getInvisibleItemOffset,\n ],\n );\n\n // #############################################################################\n // Scroll to start or active index on mount\n // #############################################################################\n useEffect(() => {\n window.setTimeout(() => {\n if (!containerRef.current) return;\n\n // Scroll into view, if activeIndex is provided\n if (activeIndex !== undefined && activeIndex > -1) {\n const offset = getActiveIndexOffset(activeIndex);\n\n if (offset.left !== undefined) {\n containerRef.current.scrollLeft = offset.left;\n }\n if (offset.top !== undefined) {\n containerRef.current.scrollTop = offset.top;\n }\n } else {\n containerRef.current.scrollTo({\n left: 0,\n top: 0,\n behavior: \"smooth\",\n });\n }\n }, 0);\n }, [activeIndex, getActiveIndexOffset]);\n\n // #############################################################################\n // Arrow icon\n // #############################################################################\n const arrowIconSrc = useMemo(() => {\n const icon = arrowIcon?.icon ?? ArrowRightIcon;\n\n return typeof icon === \"string\" ? icon : icon.src;\n }, [arrowIcon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.OuterContainer\n $align={align}\n $direction={direction}\n $showFadeStart={showFadeStart}\n $showFadeEnd={showFadeEnd}\n $fillType={fillType}\n $fillColor={fillColor}\n $gradientSize={gradientSize}\n className={className}\n >\n <S.ScrollContainer ref={containerRef} $direction={direction} $gap={gap}>\n {items.map((item, i) => (\n <S.Item\n key={item.id + i}\n className={SCROLL_CONTAINER_ITEM_CLASS_NAME}\n >\n {item.render()}\n </S.Item>\n ))}\n </S.ScrollContainer>\n\n <S.LeftArrowIcon\n $show={showFadeStart && !hideArrows}\n $first\n $fillType={fillType}\n $fillColor={fillColor}\n $accentColor={accentColor}\n $direction={direction}\n $arrowFadeColor={arrowFadeColor}\n $circleArrowBackground={circleArrowBackground}\n onClick={() => handleArrowClick(true)}\n $arrowGap={arrowGap}\n >\n <S.ArrowIconSvg\n $arrowColor={arrowColor}\n width={arrowIcon?.width ?? (circleArrowBackground ? 10 : 8)}\n height={arrowIcon?.height ?? (circleArrowBackground ? 16 : 13)}\n src={arrowIconSrc}\n />\n </S.LeftArrowIcon>\n\n <S.RightArrowIcon\n $show={showFadeEnd && !hideArrows}\n $fillType={fillType}\n $fillColor={fillColor}\n $accentColor={accentColor}\n $direction={direction}\n $arrowFadeColor={arrowFadeColor}\n $circleArrowBackground={circleArrowBackground}\n onClick={() => handleArrowClick(false)}\n $arrowGap={arrowGap}\n >\n <S.ArrowIconSvg\n $arrowColor={arrowColor}\n width={arrowIcon?.width ?? (circleArrowBackground ? 10 : 8)}\n height={arrowIcon?.height ?? (circleArrowBackground ? 16 : 13)}\n src={arrowIconSrc}\n />\n </S.RightArrowIcon>\n </S.OuterContainer>\n );\n};\n"],"names":["SCROLL_CONTAINER_ITEM_CLASS_NAME","NEAR_BOUNDARY_WIDTH","ScrollWrapper","ScrollWrapper2","align","direction","items","fillType","fillColor","accentColor","arrowColor","scrollStepType","gap","className","arrowFadeColor","activeIndex","circleArrowBackground","arrowGap","gradientSize","hideArrows","onScrollChange","enableWheelScroll","arrowIcon","containerRef","useRef","containerMeasureRef","containerSize","useMeasure","useHorizontalScroll","useEffect","current","getContainerItemWidth","useCallback","containerItem","querySelector","getBoundingClientRect","width","getInvisibleItemOffset","scrollDirection","container","querySelectorAll","containerRect","isHorizontal","fadeSize","padding","parseFloat","window","getComputedStyle","offset","Math","max","containerEdgeWithoutPadding","item","Array","from","itemRect","right","abs","i","length","left","bottom","top","getVisibleItemsWidth","containerItems","visibleItemsWidth","forEach","height","getActiveIndexOffset","index","actNav","children","actNavRect","scrollLeft","FADE_BUTTON_SIZE","scrollTop","x","refScrollX","y","refScrollY","useScroll","windowSize","useWindowSize","scrollX","setScrollX","useState","scrollY","setScrollY","initScrollX","initScrollY","scrollWidth","showFadeStart","setShowFadeStart","showFadeEnd","setShowFadeEnd","offsetWidth","offsetHeight","scrollHeight","scrollXFixOffset","ceil","handleArrowClick","first","clientWidth","scrollPosition","scrollSize","scrollStep","newScrollPosition","newScrollPositionWithinBounds","min","possibleScroll","nearBoundary","scrollTo","behavior","setTimeout","arrowIconSrc","useMemo","icon","ArrowRightIcon","src","jsxs","S.OuterContainer","OuterContainer","$align","$direction","$showFadeStart","$showFadeEnd","$fillType","$fillColor","$gradientSize","jsx","S.ScrollContainer","ScrollContainer","ref","$gap","map","S.Item","Item","render","id","S.LeftArrowIcon","LeftArrowIcon","$show","$first","$accentColor","$arrowFadeColor","$circleArrowBackground","onClick","$arrowGap","S.ArrowIconSvg","ArrowIconSvg","$arrowColor","S.RightArrowIcon","RightArrowIcon"],"mappings":";;;;;;;;;;;;;;;;AAUA,MAAMA,gCAAmC,GAAA,uBAAA;AAEzC,MAAMC,mBAAsB,GAAA,EAAA;AAEf,MAAAC,aAAA,GAAgB,SAASA,cAAcC,CAAA;EAClDC,KAAA;EACAC,SAAA;EACAC,KAAA;EACAC,QAAA;EACAC,SAAA;EACAC,WAAA;EACAC,UAAA;EACAC,cAAiB,GAAA,cAAA;EACjBC,GAAA;EACAC,SAAA;EACAC,cAAA;EACAC,WAAA;EACAC,qBAAA;EACAC,QAAA;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AAK,GAAA,CAAA,CAAA;QACzDmD,MAAQ,EAAA7C,SAAA,EAAW6C,MAAW,KAAAnD,qBAAA,GAAwB,EAAK,GAAA,EAAA,CAAA;QAC3DsG,GAAK,EAAAJ;MAAA,CACP;IAAA,CACF,CAAA,EAAA,eAEAe,UAAA,CAAAA,GAAA,CAACsB,oBAAE,CAAAC,cAAA,EAAF;MACCX,KAAA,EAAOhD,eAAe,CAAC1E,UAAA;MACvB2G,SAAW,EAAAvH,QAAA;MACXwH,UAAY,EAAAvH,SAAA;MACZuI,YAAc,EAAAtI,WAAA;MACdkH,UAAY,EAAAtH,SAAA;MACZ2I,eAAiB,EAAAlI,cAAA;MACjBmI,sBAAwB,EAAAjI,qBAAA;MACxBkI,OAAA,EAASA,CAAA,KAAM9C,gBAAA,CAAiB,KAAK,CAAA;MACrC+C,SAAW,EAAAlI,QAAA;MAEXsD,QAAA,iBAAA0D,UAAA,CAAAA,GAAA,CAACmB,oBAAE,CAAAC,YAAA,EAAF;QACCC,WAAa,EAAA5I,UAAA;QACb0B,KAAO,EAAAd,SAAA,EAAWc,KAAU,KAAApB,qBAAA,GAAwB,EAAK,GAAA,CAAA,CAAA;QACzDmD,MAAQ,EAAA7C,SAAA,EAAW6C,MAAW,KAAAnD,qBAAA,GAAwB,EAAK,GAAA,EAAA,CAAA;QAC3DsG,GAAK,EAAAJ;MAAA,CACP;IAAA,CACF,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
|
|
@@ -27,9 +27,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
27
27
|
hideArrows,
|
|
28
28
|
onScrollChange,
|
|
29
29
|
enableWheelScroll,
|
|
30
|
-
arrowIcon
|
|
31
|
-
alignActive = "center",
|
|
32
|
-
disableScrollToActive
|
|
30
|
+
arrowIcon
|
|
33
31
|
}) {
|
|
34
32
|
const containerRef = useRef(null);
|
|
35
33
|
const [containerMeasureRef, containerSize] = useMeasure();
|
|
@@ -135,16 +133,10 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
135
133
|
if (actNav) {
|
|
136
134
|
const actNavRect = actNav.getBoundingClientRect();
|
|
137
135
|
if (direction === "horizontal") {
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
} else {
|
|
143
|
-
if (actNavRect.right > containerRect.right) {
|
|
144
|
-
offset.left = actNavRect.right - containerRect.right + containerRef.current.scrollLeft + (!hideArrows ? FADE_BUTTON_SIZE : 0) + containerRect.width / 2 - actNavRect.width / 2;
|
|
145
|
-
} else if (actNavRect.left < containerRect.left) {
|
|
146
|
-
offset.left = actNavRect.left - containerRect.left + containerRef.current.scrollLeft - (!hideArrows ? FADE_BUTTON_SIZE : 0) - containerRect.width / 2 + actNavRect.width / 2;
|
|
147
|
-
}
|
|
136
|
+
if (actNavRect.right > containerRect.right) {
|
|
137
|
+
offset.left = actNavRect.right - containerRect.right + containerRef.current.scrollLeft + (!hideArrows ? FADE_BUTTON_SIZE : 0) + containerRect.width / 2 - actNavRect.width / 2;
|
|
138
|
+
} else if (actNavRect.left < containerRect.left) {
|
|
139
|
+
offset.left = actNavRect.left - containerRect.left + containerRef.current.scrollLeft - (!hideArrows ? FADE_BUTTON_SIZE : 0) - containerRect.width / 2 + actNavRect.width / 2;
|
|
148
140
|
}
|
|
149
141
|
} else if (direction === "vertical") {
|
|
150
142
|
if (actNavRect.bottom > containerRect.bottom) {
|
|
@@ -155,7 +147,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
155
147
|
}
|
|
156
148
|
}
|
|
157
149
|
return offset;
|
|
158
|
-
}, [direction,
|
|
150
|
+
}, [direction, hideArrows]);
|
|
159
151
|
const {
|
|
160
152
|
x: refScrollX,
|
|
161
153
|
y: refScrollY
|
|
@@ -271,7 +263,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
271
263
|
}, [direction, scrollX, scrollY, scrollStepType, gap, getContainerItemWidth, getVisibleItemsWidth, getInvisibleItemOffset]);
|
|
272
264
|
useEffect(() => {
|
|
273
265
|
window.setTimeout(() => {
|
|
274
|
-
if (!containerRef.current
|
|
266
|
+
if (!containerRef.current) return;
|
|
275
267
|
if (activeIndex !== void 0 && activeIndex > -1) {
|
|
276
268
|
const offset = getActiveIndexOffset(activeIndex);
|
|
277
269
|
if (offset.left !== void 0) {
|
|
@@ -288,7 +280,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
288
280
|
});
|
|
289
281
|
}
|
|
290
282
|
}, 0);
|
|
291
|
-
}, [activeIndex, getActiveIndexOffset
|
|
283
|
+
}, [activeIndex, getActiveIndexOffset]);
|
|
292
284
|
const arrowIconSrc = useMemo(() => {
|
|
293
285
|
const icon = arrowIcon?.icon ?? ArrowRightIcon__default;
|
|
294
286
|
return typeof icon === "string" ? icon : icon.src;
|