@ubnt/store.core 9.64.0-beta.1 → 9.64.0-new-design
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +131 -615
- package/lib/_virtual/_virtual_multi-entry.js +15 -25
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +13 -13
- package/lib/apis/smartcat.d.ts +12 -2
- package/lib/apis/smartcat.js +27 -4
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +27 -4
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/arrow2.svg +3 -0
- package/lib/assets/cart-secondary.svg +5 -0
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/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/icon-location-pin.svg +5 -0
- package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
- package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
- package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
- package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
- package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +10 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/payment-apple-pay.svg +12 -1
- package/lib/assets/payment-card.svg +12 -1
- package/lib/assets/payment-google-pay.svg +1 -1
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/udr2.jpg +0 -0
- package/lib/assets/udr3.jpg +0 -0
- package/lib/assets/udr7.jpg +0 -0
- package/lib/assets/udr72.jpg +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 +22 -28
- package/lib/components/Accordion/Accordion.styles.js.map +1 -1
- package/lib/components/Accordion/Accordion.styles.mjs +22 -28
- package/lib/components/Accordion/Accordion.styles.mjs.map +1 -1
- package/lib/components/AppDownloadBanner/AppDownloadBanner.styles.d.ts +21 -23
- package/lib/components/Avatar/Avatar.js +5 -6
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Avatar/Avatar.mjs +3 -4
- 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 +7 -12
- 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 +12 -5
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +8 -1
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/Button.styles.d.ts +4 -4
- package/lib/components/Button/CartButton.d.ts +3 -1
- package/lib/components/Button/CartButton.js +11 -6
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +8 -4
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +11 -4
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +11 -4
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +12 -8
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +46 -6
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +46 -6
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -5
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
- package/lib/components/CardSection/Card/Card.js +16 -16
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +10 -10
- 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/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 +13 -19
- 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 +8 -6
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +9 -6
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +8 -7
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -7
- package/lib/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.mjs +0 -3
- 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 +34 -36
- package/lib/components/CompareChart/CompareChart.styles.d.ts +36 -40
- package/lib/components/CompareSection/CompareSection.styles.d.ts +16 -18
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +5 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +5 -4
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/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 +28 -36
- 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 +3 -5
- 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 +23 -23
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.d.ts +22 -22
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Footer/Footer.js +3 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mjs +1 -0
- package/lib/components/Footer/Footer.mjs.map +1 -1
- package/lib/components/Footer/Footer.styles.d.ts +34 -39
- 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 +8 -12
- package/lib/components/Gallery/Gallery.styles.js +1 -3
- package/lib/components/Gallery/Gallery.styles.js.map +1 -1
- package/lib/components/Gallery/Gallery.styles.mjs +1 -3
- 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 +0 -2
- package/lib/components/GradientButton/GradientButton.js.map +1 -1
- package/lib/components/GradientButton/GradientButton.mjs +0 -2
- 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 +15 -19
- 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 +30 -20
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +12 -30
- package/lib/components/Header/CartModal/CartModal.styles.d.ts +13 -15
- 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 +21 -23
- 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.stories.d.ts +111 -0
- package/lib/components/Header/Header.styles.d.ts +40 -49
- package/lib/components/Header/Header.styles.js +11 -33
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +11 -32
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +29 -5
- package/lib/components/Header/Header.types.js +2 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +2 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +1 -0
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +47 -46
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.d.ts +17 -14
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js +51 -0
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs +47 -1
- 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/LogoIcon/LogoIcon.d.ts +7 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
- package/lib/components/Header/LogoIcon/index.d.ts +1 -0
- package/lib/components/Header/LogoIcon/index.js +6 -0
- package/lib/components/Header/LogoIcon/index.js.map +1 -0
- package/lib/components/Header/LogoIcon/index.mjs +3 -0
- package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
- package/lib/components/Header/MenuItem/MenuItem.js +5 -4
- package/lib/components/Header/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.mjs +5 -4
- 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 +1 -0
- 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 +23 -29
- 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 +36 -40
- 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 +124 -117
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +119 -112
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +14 -7
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/Overlay/Overlay.styles.d.ts +2 -2
- package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
- package/lib/components/Header/ProHeader/ProHeader.js +290 -189
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +270 -171
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +49 -40
- package/lib/components/Header/ProHeader/ProHeader.styles.js +206 -68
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +195 -67
- 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 +4 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +4 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +4 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +4 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +4 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +4 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +7 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +6 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +4 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +4 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +4 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +4 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +4 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +4 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +4 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +4 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +4 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +4 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/Hero/Hero.styles.d.ts +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 +34 -38
- package/lib/components/ImageCarousel/ImageCarousel.styles.js +4 -5
- package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
- package/lib/components/ImageCarousel/ImageCarousel.styles.mjs +4 -5
- package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
- package/lib/components/ImageModal/ImageModal.styles.d.ts +6 -8
- 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 +8 -4
- 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 +22 -26
- 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 +21 -23
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +54 -60
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +49 -57
- 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 +3 -1
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +4 -3
- package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.styles.d.ts +9 -11
- 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 +18 -20
- 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 +24 -28
- 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 +12 -14
- 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 +3 -5
- 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 +6 -8
- 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 +8 -16
- 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 +34 -84
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.js +7 -8
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs +7 -8
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -1
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.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/components/ModelCompareV3/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.js +2 -3
- package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
- package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/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 +0 -7
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/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/index.d.ts +0 -1
- package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +10 -10
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +10 -10
- package/lib/components/ModelCompareV3/translations/de.json.js +2 -2
- package/lib/components/ModelCompareV3/translations/de.json.mjs +2 -2
- package/lib/components/ModelCompareV3/translations/el.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +0 -2
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +0 -2
- 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 +7 -11
- 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 +37 -45
- 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 +13 -10
- 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 +9 -11
- 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/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- package/lib/components/ProductUpsell/ProductUpsell.styles.d.ts +18 -20
- 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 +16 -22
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +10 -10
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js.map +1 -1
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs +5 -5
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs.map +1 -1
- 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 +6 -1
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
- package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.styles.d.ts +12 -16
- 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 +21 -23
- package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.styles.d.ts +16 -36
- package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.styles.d.ts +16 -38
- package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.styles.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -602
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -598
- 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 +1 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -4
- 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 +5 -5
- 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/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.styles.d.ts +9 -9
- 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 +17 -19
- 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/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.d.ts +3 -3
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -5
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -5
- 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 +34 -26
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.d.ts +14 -18
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
- 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 +11 -13
- package/lib/components/Search/Input/Input.styles.js +1 -2
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +1 -2
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +3 -2
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/Search/Modal/Modal.styles.d.ts +18 -20
- package/lib/components/SearchInput/Input.styles.d.ts +7 -9
- 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 +5 -7
- 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 +3 -33
- package/lib/components/TopologyScheme/TopologyScheme.styles.d.ts +17 -17
- package/lib/components/UICare/UICare.styles.d.ts +16 -19
- 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 +65 -75
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VariantSelector/VariantSelector.styles.d.ts +13 -17
- package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.d.ts +3 -3
- package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +28 -32
- package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +19 -23
- package/lib/components/VideoCookiesConsent/VideoCookiesConsent.styles.d.ts +6 -8
- package/lib/components/VideoPlayer/VideoPlayer.styles.d.ts +5 -5
- package/lib/components/VideoPlayerNew/VideoPlayer.js +20 -20
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.d.ts +28 -31
- 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/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/{components/ResourceCalculatorV1/assets/consoles/udr7.png.js → constants/icons/header/arrow.svg.js} +6 -6
- package/lib/constants/icons/header/arrow.svg.js.map +1 -0
- package/lib/constants/icons/header/arrow.svg.mjs +3 -0
- package/lib/constants/icons/header/arrow.svg.mjs.map +1 -0
- package/lib/constants/icons/header/index.d.ts +1 -0
- package/lib/constants/icons/header/index.js +9 -0
- package/lib/constants/icons/header/index.js.map +1 -1
- package/lib/constants/icons/header/index.mjs +2 -0
- 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 +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +3 -0
- package/lib/constants/proStoreCategories/mapping/index.js +25 -6
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +25 -6
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +3 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js +3 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +3 -0
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +9 -5
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +9 -5
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -3
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +9 -5
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +9 -5
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +5 -0
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +5 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +8 -4
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +8 -4
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +8 -4
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -4
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -3
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +44 -8
- package/lib/constants/proStoreFilters/mapping.js +130 -16
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +130 -16
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +4 -0
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +4 -0
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +34 -34
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/presets.d.ts +1 -1
- package/lib/contexts/MenuContext/presets.js +2 -4
- package/lib/contexts/MenuContext/presets.js.map +1 -1
- package/lib/contexts/MenuContext/presets.mjs +2 -4
- package/lib/contexts/MenuContext/presets.mjs.map +1 -1
- package/lib/helpers/index.d.ts +0 -1
- package/lib/helpers/index.js +1 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -2
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +8 -0
- package/lib/helpers/ux.js +15 -0
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +15 -1
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useHasTouch.js +3 -3
- package/lib/hooks/useHddRetentionCalculator.js +5 -5
- package/lib/hooks/useHorizontalScroll.js +2 -2
- package/lib/hooks/useLockBodyScrollCustom.js +3 -3
- package/lib/hooks/useScrollToY.js +2 -2
- package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
- package/lib/hooks/useTranslation.js +6 -6
- package/lib/types/generated.d.ts +1 -1
- package/lib/types/generated.js.map +1 -1
- package/lib/types/generated.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/address.d.ts +62 -278
- package/lib/utils/address.js +8 -11
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +8 -11
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/nextjs/ssr/registry.js +2 -2
- package/package.json +43 -42
- package/lib/assets/crestron.svg +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
- package/lib/assets/ucg-fiber.png +0 -0
- package/lib/assets/udr7.png +0 -0
- package/lib/assets/ux.png +0 -0
- package/lib/assets/ux7.png +0 -0
- package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-fiber.png.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/udr7.png.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux.png.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/ux7.png.mjs.map +0 -1
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/helpers/product.test.d.ts +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -67
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -60
- package/lib/utils/productSort.mjs.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
- package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
- package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
- package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
export declare const Wrap: import("styled-components
|
|
2
|
-
export declare const HeaderBlock: import("styled-components
|
|
3
|
-
export declare const HeaderIcon: import("styled-components
|
|
4
|
-
export declare const HeaderButton: import("styled-components
|
|
1
|
+
export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const HeaderBlock: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const HeaderIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const HeaderButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const ItemTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
21
|
-
export declare const ItemPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const HeaderTextWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const HeaderText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const MainHeading: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
export declare const CategoryWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
export declare const CategoryTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
+
export declare const CategoryItemsWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
+
export declare const CategoryItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
+
export declare const ItemMeta: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
+
export declare const ItemImage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
+
export declare const ItemSubTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
+
export declare const ItemTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
+
export declare const ItemPrice: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var optionIcons = require('../../../constants/optionIcons.js');
|
|
6
6
|
var asset = require('../../../utils/asset.js');
|
|
7
7
|
require('../../ButtonGroup/index.js');
|
|
@@ -15,7 +15,7 @@ const ProductWizardOptions = function ProductWizardOptions2({
|
|
|
15
15
|
onlyIcons,
|
|
16
16
|
className
|
|
17
17
|
}) {
|
|
18
|
-
const getOptionIcon =
|
|
18
|
+
const getOptionIcon = React.useCallback((optionSlug, optionValueSlug) => {
|
|
19
19
|
const option = optionSlug.toLowerCase();
|
|
20
20
|
const value = optionValueSlug.toLowerCase();
|
|
21
21
|
const icon = optionIcons.OPTION_ICONS[option]?.[value];
|
|
@@ -24,7 +24,7 @@ const ProductWizardOptions = function ProductWizardOptions2({
|
|
|
24
24
|
}
|
|
25
25
|
return asset.imageSrc(icon);
|
|
26
26
|
}, []);
|
|
27
|
-
const getItemsWithIcons =
|
|
27
|
+
const getItemsWithIcons = React.useCallback(option => option.values.map(({
|
|
28
28
|
id,
|
|
29
29
|
title,
|
|
30
30
|
slug,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const Options: import("styled-components
|
|
2
|
-
export declare const OptionPickerContainer: import("styled-components
|
|
1
|
+
export declare const Options: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const OptionPickerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../assets/icons/wizard/index.js');
|
|
6
6
|
require('../NormalisedImage/index.js');
|
|
7
7
|
require('../ProductWizardFootnotes/index.js');
|
|
@@ -43,7 +43,7 @@ const ProductWizard = function ProductWizard2({
|
|
|
43
43
|
updateQuantity,
|
|
44
44
|
translations
|
|
45
45
|
}) {
|
|
46
|
-
const addToCartBtnText =
|
|
46
|
+
const addToCartBtnText = React.useMemo(() => {
|
|
47
47
|
if (isVariantSoldOut) {
|
|
48
48
|
return translations.addToCartButton.soldOut;
|
|
49
49
|
}
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
export declare const AdjustButton: import("styled-components
|
|
1
|
+
export declare const AdjustButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
2
2
|
disabled?: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare const PlusAdjustButton: import("styled-components
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const PlusAdjustButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
}, never>> & string;
|
|
9
|
-
export declare const MinusAdjustButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "disabled"> & {
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const MinusAdjustButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
10
8
|
disabled?: boolean;
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
}, never
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const WizardContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
16
|
-
export declare const QuantityInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
9
|
+
}, never>;
|
|
10
|
+
export declare const AddToCartContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
export declare const WizardContainer: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
+
export declare const QuantityInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
17
13
|
disabled?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const QuantityAdjustWrap: import("styled-components
|
|
14
|
+
}, never>;
|
|
15
|
+
export declare const QuantityAdjustWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
20
16
|
$error: boolean;
|
|
21
17
|
$disabled: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare const TextWrap: import("styled-components
|
|
24
|
-
export declare const Popover: import("styled-components
|
|
25
|
-
export declare const AddToCartButton: import("styled-components
|
|
18
|
+
}, never>;
|
|
19
|
+
export declare const TextWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
+
export declare const Popover: import("styled-components").StyledComponent<({ text, textAlign, position, className, }: import("../Popover/Popover.types").PopoverProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
+
export declare const AddToCartButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
|
|
26
22
|
children?: import("react").ReactNode;
|
|
27
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null
|
|
28
|
-
children?: import("react").ReactNode;
|
|
29
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, keyof import("react").Component<any, {}, any>>;
|
|
23
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../assets/icons/payment-apple-pay.svg.js');
|
|
6
6
|
require('../../assets/icons/payment-card.svg.js');
|
|
7
7
|
require('../../assets/icons/payment-google-pay.svg.js');
|
|
@@ -33,20 +33,20 @@ const PaymentGooglePaySrcLink = typeof PaymentGooglePay__default["default"] ===
|
|
|
33
33
|
const PaymentCardSrc = {
|
|
34
34
|
src: PaymentCardSrcLink,
|
|
35
35
|
alt: "Card",
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
36
|
+
width: 26,
|
|
37
|
+
height: 21
|
|
38
38
|
};
|
|
39
39
|
const PaymentApplePaySrc = {
|
|
40
40
|
src: PaymentApplePaySrcLink,
|
|
41
41
|
alt: "Apple Pay",
|
|
42
42
|
width: 26,
|
|
43
|
-
height:
|
|
43
|
+
height: 21
|
|
44
44
|
};
|
|
45
45
|
const PaymentGooglePaySrc = {
|
|
46
46
|
src: PaymentGooglePaySrcLink,
|
|
47
47
|
alt: "Google Pay",
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
48
|
+
width: 26,
|
|
49
|
+
height: 21
|
|
50
50
|
};
|
|
51
51
|
const getPaymentIcon = type => {
|
|
52
52
|
switch (type) {
|
|
@@ -77,7 +77,7 @@ const ProductWizardFootnotes = ({
|
|
|
77
77
|
availablePaymentMethods,
|
|
78
78
|
renderImage
|
|
79
79
|
}) => {
|
|
80
|
-
const limitErrorNode =
|
|
80
|
+
const limitErrorNode = React.useMemo(() => {
|
|
81
81
|
if (limitsDisabled) {
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
@@ -101,7 +101,7 @@ const ProductWizardFootnotes = ({
|
|
|
101
101
|
}
|
|
102
102
|
return void 0;
|
|
103
103
|
}, [limitsDisabled, requiresLogin, maxRelevantLimitAddToCartQuantity, showLimitError, translations.errors.limitedToBuy, translations.errors.limitReached, translations.errors.limitErrorPer]);
|
|
104
|
-
const getCardIcons =
|
|
104
|
+
const getCardIcons = React.useCallback(() => {
|
|
105
105
|
const hasPaymentMethods = availablePaymentMethods && Object.keys(availablePaymentMethods).filter(item => {
|
|
106
106
|
return !!availablePaymentMethods[item];
|
|
107
107
|
}).length > 0;
|
|
@@ -119,7 +119,7 @@ const ProductWizardFootnotes = ({
|
|
|
119
119
|
})
|
|
120
120
|
});
|
|
121
121
|
}, [availablePaymentMethods, renderImage]);
|
|
122
|
-
const footnotes =
|
|
122
|
+
const footnotes = React.useMemo(() => /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
123
123
|
children: [getCardIcons(), translations?.footnotes?.shipping?.loading ? /* @__PURE__ */jsxRuntime.jsx(ProductWizardFootnotes_styles.SkeletonFootnote, {
|
|
124
124
|
maxWidth: 120
|
|
125
125
|
}) : translations?.footnotes?.shipping?.value && /* @__PURE__ */jsxRuntime.jsxs(ProductWizardFootnotes_styles.IconTextWrap, {
|
|
@@ -144,7 +144,7 @@ const ProductWizardFootnotes = ({
|
|
|
144
144
|
})]
|
|
145
145
|
})]
|
|
146
146
|
}), [getCardIcons, translations.footnotes.shipping?.loading, translations.footnotes.shipping.value, translations.footnotes.warranty]);
|
|
147
|
-
const hasFootnotes =
|
|
147
|
+
const hasFootnotes = React.useMemo(() => !!footnotes.props.children.filter(child => !!child).length, [footnotes.props.children]);
|
|
148
148
|
if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {
|
|
149
149
|
return null;
|
|
150
150
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWizardFootnotes.js","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 24,\n height: 25,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 19,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 30,\n height: 19,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap","FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;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AAAA,CAAAA,GAAA,CAACyC,WAAAA,CAAAA,WAAa,EAAA;QAAA,GAAG/C;MAAkB,CAAA,CAAA,EACvDI,cAAA;KACH,CAAA,EAEDE,eAAAA,UAAAA,CAAAA,GAAA,CAAA0C,6BAAA,CAAAC,YAAA,EAAA;MAAgBzC,QAAU,EAAAoB;IAAA,CAAA,CAAA;EAC7B,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ProductWizardFootnotes.js","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 26,\n height: 21,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 21,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 26,\n height: 21,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap","FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,kBACJ,GAAA,OAAOC,oBAAAA,CAAAA,SAAAA,CAAgB,KAAA,QAAA,GAAWA,oBAAAA,CAAAA,SAAAA,IAAcA,oBAAAA,CAAAA,SAAAA,CAAY,CAAAC,GAAA;AAC9D,MAAMC,sBACJ,GAAA,OAAOC,wBAAAA,CAAAA,SAAAA,CAAoB,KAAA,QAAA,GAAWA,wBAAAA,CAAAA,SAAAA,IAAkBA,wBAAAA,CAAAA,SAAAA,CAAgB,CAAAF,GAAA;AAC1E,MAAMG,uBACJ,GAAA,OAAOC,yBAAAA,CAAAA,SAAAA,CAAqB,KAAA,QAAA,GACxBA,yBAAAA,CAAAA,SAAAA,IACAA,yBAAAA,CAAAA,SAAAA,CAAiB,CAAAJ,GAAA;AAEvB,MAAMK,cAAiB,GAAA;EACrBL,GAAK,EAAAF,kBAAA;EACLQ,GAAK,EAAA,MAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAMC,kBAAqB,GAAA;EACzBT,GAAK,EAAAC,sBAAA;EACLK,G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zB,CACF;EAKA,MAAMC,YAAe,GAAAtC,KAAA,CAAAA,OAAA,CACnB,MAAM,CAAC,CAACuB,SAAA,CAAUgB,KAAM,CAAApC,QAAA,CAASU,MAAO,CAAC2B,KAAmB,IAAA,CAAC,CAACA,KAAK,CAAE,CAAAzB,MAAA,EACrE,CAACQ,SAAU,CAAAgB,KAAA,CAAMpC,QAAQ,CAAA,CAC3B;EAKA,IAAI,CAACmC,YAAA,IAAgB,CAAC5C,yBAAA,IAA6B,CAACK,cAAgB,EAAA;IAC3D,OAAA,IAAA;EACT;EAEA,OAAA,eACGyB,eAAA,CAAAiB,6BAAAA,CAAAA,IAAA,EAAA;IAAO7C,SACL;IAAAO,QAAA,EAAA,CAAAT,yBAAA,mBAEI8B,UAAA,CAAAA,IAAA,CAAAC,mBAAA,EAAA;MAAAtB,QAAA,EAAA,CAAoBR,gBAAA,IAAAM,eAAAA,UAAAA,CAAAA,GAAA,CAACyC,WAAAA,CAAAA,WAAa,EAAA;QAAA,GAAG/C;MAAkB,CAAA,CAAA,EACvDI,cAAA;KACH,CAAA,EAEDE,eAAAA,UAAAA,CAAAA,GAAA,CAAA0C,6BAAA,CAAAC,YAAA,EAAA;MAAgBzC,QAAU,EAAAoB;IAAA,CAAA,CAAA;EAC7B,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -21,20 +21,20 @@ const PaymentGooglePaySrcLink = typeof PaymentGooglePay__default === "string" ?
|
|
|
21
21
|
const PaymentCardSrc = {
|
|
22
22
|
src: PaymentCardSrcLink,
|
|
23
23
|
alt: "Card",
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
24
|
+
width: 26,
|
|
25
|
+
height: 21
|
|
26
26
|
};
|
|
27
27
|
const PaymentApplePaySrc = {
|
|
28
28
|
src: PaymentApplePaySrcLink,
|
|
29
29
|
alt: "Apple Pay",
|
|
30
30
|
width: 26,
|
|
31
|
-
height:
|
|
31
|
+
height: 21
|
|
32
32
|
};
|
|
33
33
|
const PaymentGooglePaySrc = {
|
|
34
34
|
src: PaymentGooglePaySrcLink,
|
|
35
35
|
alt: "Google Pay",
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
36
|
+
width: 26,
|
|
37
|
+
height: 21
|
|
38
38
|
};
|
|
39
39
|
const getPaymentIcon = type => {
|
|
40
40
|
switch (type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWizardFootnotes.mjs","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 24,\n height: 25,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 19,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 30,\n height: 19,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAMA,kBACJ,GAAA,OAAOC,oBAAgB,KAAA,QAAA,GAAWA,uBAAcA,oBAAY,CAAAC,GAAA;AAC9D,MAAMC,sBACJ,GAAA,OAAOC,wBAAoB,KAAA,QAAA,GAAWA,2BAAkBA,wBAAgB,CAAAF,GAAA;AAC1E,MAAMG,uBACJ,GAAA,OAAOC,yBAAqB,KAAA,QAAA,GACxBA,4BACAA,yBAAiB,CAAAJ,GAAA;AAEvB,MAAMK,cAAiB,GAAA;EACrBL,GAAK,EAAAF,kBAAA;EACLQ,GAAK,EAAA,MAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAMC,kBAAqB,GAAA;EACzBT,GAAK,EAAAC,sBAAA;EACLK,GAAK,EAAA,WAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAME,mBAAsB,GAAA;EAC1BV,GAAK,EAAAG,uBAAA;EACLG,GAAK,EAAA,YAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAMG,cAAA,GAAkBC,IAA6B,IAAA;EACnD,QAAQA,IAAM;IACZ,KAAK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AAA,CAAA;EAC7B,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ProductWizardFootnotes.mjs","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 26,\n height: 21,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 21,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 26,\n height: 21,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAMA,kBACJ,GAAA,OAAOC,oBAAgB,KAAA,QAAA,GAAWA,uBAAcA,oBAAY,CAAAC,GAAA;AAC9D,MAAMC,sBACJ,GAAA,OAAOC,wBAAoB,KAAA,QAAA,GAAWA,2BAAkBA,wBAAgB,CAAAF,GAAA;AAC1E,MAAMG,uBACJ,GAAA,OAAOC,yBAAqB,KAAA,QAAA,GACxBA,4BACAA,yBAAiB,CAAAJ,GAAA;AAEvB,MAAMK,cAAiB,GAAA;EACrBL,GAAK,EAAAF,kBAAA;EACLQ,GAAK,EAAA,MAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAMC,kBAAqB,GAAA;EACzBT,GAAK,EAAAC,sBAAA;EACLK,GAAK,EAAA,WAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAME,mBAAsB,GAAA;EAC1BV,GAAK,EAAAG,uBAAA;EACLG,GAAK,EAAA,YAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAMG,cAAA,GAAkBC,IAA6B,IAAA;EACnD,QAAQA,IAAM;IACZ,KAAK,UAAY;MAAA;QACR,OAAAH,kBAAA;MACT;IACA,KAAK,WAAa;MAAA;QACT,OAAAC,mBAAA;MACT;IACA,KAAK,MAAQ;MAAA;QACJ,OAAAL,cAAA;MACT;EACF;AACF,CAAA;AAEO,MAAMQ,yBAAyBA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F,GAAA,CAAA+B,iBAAA,EAAA;UAAkBzD,GAAK,EAAA4D,iBAAA;UAAUrD,KAAO,EAAA,EAAA;UAAIC,MAAQ,EAAA;QAAA,CAAI;MAC3D,CAAA,CAAA,EAAA,mBAECmD,YAAE,EAAF;QAAgB/B,QAAA,EAAAV,YAAA,CAAa6B,UAAUa;OAAS,CAAA;KACnD,CAAA;GAmBJ,CAAA,EAEF,CACE3B,YAAA,EACAf,YAAA,CAAa6B,UAAUG,QAAU,EAAAC,OAAA,EACjCjC,YAAA,CAAa6B,UAAUG,QAAS,CAAAI,KAAA,EAChCpC,aAAa6B,SAAU,CAAAa,QAAA,CACzB,CACF;EAKA,MAAMC,YAAe,GAAApC,OAAA,CACnB,MAAM,CAAC,CAACsB,SAAA,CAAUe,KAAM,CAAAlC,QAAA,CAASU,MAAO,CAACyB,KAAmB,IAAA,CAAC,CAACA,KAAK,CAAE,CAAAvB,MAAA,EACrE,CAACO,SAAU,CAAAe,KAAA,CAAMlC,QAAQ,CAAA,CAC3B;EAKA,IAAI,CAACiC,YAAA,IAAgB,CAAC1C,yBAAA,IAA6B,CAACK,cAAgB,EAAA;IAC3D,OAAA,IAAA;EACT;EAEA,OAAA,eACGwB,IAAA,CAAAgB,IAAA,EAAA;IAAO3C,SACL;IAAAO,QAAA,EAAA,CAAAT,yBAAA,mBAEI6B,IAAA,CAAAC,QAAA,EAAA;MAAArB,QAAA,EAAA,CAAoBR,gBAAA,IAAA,eAAAM,GAAA,CAACuC,WAAa,EAAA;QAAA,GAAG7C;MAAkB,CAAA,CAAA,EACvDI,cAAA;KACH,CAAA,EAED,eAAAE,GAAA,CAAAwC,YAAA,EAAA;MAAgBtC,QAAU,EAAAmB;IAAA,CAAA,CAAA;EAC7B,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const Wrap: import("styled-components
|
|
2
|
-
export declare const FootnoteWrap: import("styled-components
|
|
3
|
-
export declare const ErrorText: import("styled-components
|
|
4
|
-
export declare const IconTextWrap: import("styled-components
|
|
5
|
-
export declare const IconWrap: import("styled-components
|
|
6
|
-
export declare const ImageWrap: import("styled-components
|
|
7
|
-
export declare const PaymentImage: import("styled-components
|
|
8
|
-
export declare const FootnoteText: import("styled-components
|
|
9
|
-
export declare const SkeletonFootnote: import("styled-components
|
|
1
|
+
export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const FootnoteWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const ErrorText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const IconTextWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const IconWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const ImageWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const PaymentImage: import("styled-components").StyledComponent<({ motif, asset, sizes, className, margin, priority, fallbackImageSize, responsive, layout, renderImage, disableSkeleton, objectFit, disableBorderRadius, canFullscreen, onFullscreenChange, }: import("../CustomImage/CustomImage.types").CustomImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const FootnoteText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const SkeletonFootnote: import("styled-components").StyledComponent<({ className, maxWidth, }: import("../SkeletonFootnote/SkeletonFootnote").SkeletonFootnoteProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWizardFootnotes.styles.js","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { CustomImage } from \"../CustomImage\";\nimport { SkeletonFootnote as SkeletonFootnoteBase } from \"../SkeletonFootnote\";\n\nexport const Wrap = styled.div`\n display: flex;\n flex-direction: column;\n gap: 20px;\n\n margin-top: 20px;\n`;\n\nexport const FootnoteWrap = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport const ErrorText = styled.div`\n margin: 0 auto;\n font-size: ${theme.font.size14};\n color: ${theme.colors.pomegranate};\n line-height: ${theme.lineHeight.text};\n`;\n\nexport const IconTextWrap = styled.div`\n display: flex;\n align-items: flex-start;\n color: ${theme.colors.black65};\n\n
|
|
1
|
+
{"version":3,"file":"ProductWizardFootnotes.styles.js","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { CustomImage } from \"../CustomImage\";\nimport { SkeletonFootnote as SkeletonFootnoteBase } from \"../SkeletonFootnote\";\n\nexport const Wrap = styled.div`\n display: flex;\n flex-direction: column;\n gap: 20px;\n\n margin-top: 20px;\n`;\n\nexport const FootnoteWrap = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport const ErrorText = styled.div`\n margin: 0 auto;\n font-size: ${theme.font.size14};\n color: ${theme.colors.pomegranate};\n line-height: ${theme.lineHeight.text};\n`;\n\nexport const IconTextWrap = styled.div`\n display: flex;\n align-items: flex-start;\n color: ${theme.colors.black65};\n\n :not(:first-of-type) {\n margin-top: 12px;\n }\n`;\n\nexport const IconWrap = styled.div`\n min-width: 20px;\n`;\n\nexport const ImageWrap = styled.div`\n display: flex;\n gap: 8px;\n`;\n\nexport const PaymentImage = styled(CustomImage)`\n margin: 0;\n`;\n\nexport const FootnoteText = styled.div`\n font-size: ${theme.font.size14};\n line-height: ${theme.lineHeight.size20};\n margin-left: 8px;\n`;\n\nexport const SkeletonFootnote = styled(SkeletonFootnoteBase)``;\n"],"names":["Wrap","styled","div","FootnoteWrap","ErrorText","theme","font","size14","colors","pomegranate","lineHeight","text","IconTextWrap","black65","IconWrap","ImageWrap","PaymentImage","CustomImage","FootnoteText","size20","SkeletonFootnote","SkeletonFootnoteBase"],"mappings":";;;;;;;;;;;;;;;AAMO,MAAMA,OAAOC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQpB,MAAMC,eAAeF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAK5B,MAAME,YAAYH,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,eAEjBG,KAAA,CAAAA,KAAA,CAAMC,KAAKC,MAAM;AAAA,WACrBF,KAAA,CAAAA,KAAA,CAAMG,OAAOC,WAAW;AAAA,iBAClBJ,KAAA,CAAAA,KAAA,CAAMK,WAAWC,IAAI;AAAA,CAAA;AAG/B,MAAMC,eAAeX,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,WAGxBG,KAAA,CAAAA,KAAA,CAAMG,OAAOK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,WAAWb,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,CAAA;AAIxB,MAAMa,YAAYd,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnB,MAAAc,YAAA,GAAef,eAAAA,CAAAA,SAAAA,EAAOgB,WAAAA,CAAAA,WAAW,CAAA;AAAA;AAAA,CAAA;AAIvC,MAAMC,eAAejB,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA,eACpBG,KAAA,CAAAA,KAAA,CAAMC,KAAKC,MAAM;AAAA,iBACfF,KAAA,CAAAA,KAAA,CAAMK,WAAWS,MAAM;AAAA;AAAA,CAAA;AAI3B,MAAAC,gBAAA,GAAmBnB,eAAAA,CAAAA,SAAAA,EAAOoB,kBAAAA,CAAAA,gBAAoB,CAAA,EAAA;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWizardFootnotes.styles.mjs","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { CustomImage } from \"../CustomImage\";\nimport { SkeletonFootnote as SkeletonFootnoteBase } from \"../SkeletonFootnote\";\n\nexport const Wrap = styled.div`\n display: flex;\n flex-direction: column;\n gap: 20px;\n\n margin-top: 20px;\n`;\n\nexport const FootnoteWrap = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport const ErrorText = styled.div`\n margin: 0 auto;\n font-size: ${theme.font.size14};\n color: ${theme.colors.pomegranate};\n line-height: ${theme.lineHeight.text};\n`;\n\nexport const IconTextWrap = styled.div`\n display: flex;\n align-items: flex-start;\n color: ${theme.colors.black65};\n\n
|
|
1
|
+
{"version":3,"file":"ProductWizardFootnotes.styles.mjs","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { CustomImage } from \"../CustomImage\";\nimport { SkeletonFootnote as SkeletonFootnoteBase } from \"../SkeletonFootnote\";\n\nexport const Wrap = styled.div`\n display: flex;\n flex-direction: column;\n gap: 20px;\n\n margin-top: 20px;\n`;\n\nexport const FootnoteWrap = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport const ErrorText = styled.div`\n margin: 0 auto;\n font-size: ${theme.font.size14};\n color: ${theme.colors.pomegranate};\n line-height: ${theme.lineHeight.text};\n`;\n\nexport const IconTextWrap = styled.div`\n display: flex;\n align-items: flex-start;\n color: ${theme.colors.black65};\n\n :not(:first-of-type) {\n margin-top: 12px;\n }\n`;\n\nexport const IconWrap = styled.div`\n min-width: 20px;\n`;\n\nexport const ImageWrap = styled.div`\n display: flex;\n gap: 8px;\n`;\n\nexport const PaymentImage = styled(CustomImage)`\n margin: 0;\n`;\n\nexport const FootnoteText = styled.div`\n font-size: ${theme.font.size14};\n line-height: ${theme.lineHeight.size20};\n margin-left: 8px;\n`;\n\nexport const SkeletonFootnote = styled(SkeletonFootnoteBase)``;\n"],"names":["Wrap","styled","div","FootnoteWrap","ErrorText","theme","font","size14","colors","pomegranate","lineHeight","text","IconTextWrap","black65","IconWrap","ImageWrap","PaymentImage","CustomImage","FootnoteText","size20","SkeletonFootnote","SkeletonFootnoteBase"],"mappings":";;;;;;;AAMO,MAAMA,OAAOC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQpB,MAAMC,eAAeF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAK5B,MAAME,YAAYH,MAAO,CAAAC,GAAA;AAAA;AAAA,eAEjBG,KAAA,CAAMC,KAAKC,MAAM;AAAA,WACrBF,KAAA,CAAMG,OAAOC,WAAW;AAAA,iBAClBJ,KAAA,CAAMK,WAAWC,IAAI;AAAA,CAAA;AAG/B,MAAMC,eAAeX,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,WAGxBG,KAAA,CAAMG,OAAOK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,WAAWb,MAAO,CAAAC,GAAA;AAAA;AAAA,CAAA;AAIxB,MAAMa,YAAYd,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKnB,MAAAc,YAAA,GAAef,OAAOgB,WAAW,CAAA;AAAA;AAAA,CAAA;AAIvC,MAAMC,eAAejB,MAAO,CAAAC,GAAA;AAAA,eACpBG,KAAA,CAAMC,KAAKC,MAAM;AAAA,iBACfF,KAAA,CAAMK,WAAWS,MAAM;AAAA;AAAA,CAAA;AAI3B,MAAAC,gBAAA,GAAmBnB,OAAOoB,kBAAoB,CAAA,EAAA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var theme = require('../../constants/theme.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const ProgressCircle = ({
|
|
@@ -13,9 +13,9 @@ const ProgressCircle = ({
|
|
|
13
13
|
backgroundColor = theme.theme.colors.white,
|
|
14
14
|
className
|
|
15
15
|
}) => {
|
|
16
|
-
const radius =
|
|
17
|
-
const circumference =
|
|
18
|
-
const strokeDashoffset =
|
|
16
|
+
const radius = React.useMemo(() => (diameter - strokeWidth) / 2, [diameter, strokeWidth]);
|
|
17
|
+
const circumference = React.useMemo(() => radius * 2 * Math.PI, [radius]);
|
|
18
|
+
const strokeDashoffset = React.useMemo(() => circumference - (value ? value / 100 : 0) * circumference, [circumference, value]);
|
|
19
19
|
return /* @__PURE__ */jsxRuntime.jsxs("svg", {
|
|
20
20
|
className,
|
|
21
21
|
width: diameter,
|
|
@@ -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('../Button/index.js');
|
|
6
6
|
var QuantityControls_styles = require('./QuantityControls.styles.js');
|
|
7
7
|
var CartButton = require('../Button/CartButton.js');
|
|
@@ -16,15 +16,15 @@ const QuantityControls = function QuantityControls2({
|
|
|
16
16
|
cartButton,
|
|
17
17
|
allowZero
|
|
18
18
|
}) {
|
|
19
|
-
const handleOnUpdateQuantity =
|
|
19
|
+
const handleOnUpdateQuantity = React.useCallback(e => {
|
|
20
20
|
const value = Math.max(0, parseInt(e.target.value) || 0);
|
|
21
21
|
onUpdateQuantity(value);
|
|
22
22
|
}, [onUpdateQuantity]);
|
|
23
|
-
const handleOnAddToCart =
|
|
23
|
+
const handleOnAddToCart = React.useCallback(() => {
|
|
24
24
|
if (!allowZero && quantity < 1) return;
|
|
25
|
-
onAddToCart();
|
|
25
|
+
onAddToCart?.();
|
|
26
26
|
}, [allowZero, onAddToCart, quantity]);
|
|
27
|
-
const cartButtonDisabled =
|
|
27
|
+
const cartButtonDisabled = React.useMemo(() => {
|
|
28
28
|
return disabled || !allowZero && quantity < 1 || cartButton?.disabled;
|
|
29
29
|
}, [allowZero, cartButton?.disabled, disabled, quantity]);
|
|
30
30
|
return /* @__PURE__ */jsxRuntime.jsxs(QuantityControls_styles.Wrap, {
|
|
@@ -35,7 +35,7 @@ const QuantityControls = function QuantityControls2({
|
|
|
35
35
|
onUpdateQuantity: handleOnUpdateQuantity,
|
|
36
36
|
onIncreaseQuantity: () => onUpdateQuantity(quantity + 1),
|
|
37
37
|
onDecreaseQuantity: () => onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)
|
|
38
|
-
}), /* @__PURE__ */jsxRuntime.jsx(CartButton.CartButton, {
|
|
38
|
+
}), onAddToCart && /* @__PURE__ */jsxRuntime.jsx(CartButton.CartButton, {
|
|
39
39
|
"data-test-id": "add-to-cart-btn",
|
|
40
40
|
variant: "primary",
|
|
41
41
|
...cartButton,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantityControls.js","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n <CartButton\n
|
|
1
|
+
{"version":3,"file":"QuantityControls.js","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart?.();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n {onAddToCart && (\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n )}\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,KAAA,CAAAA,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,KAAAA,CAAAA,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAElBE,WAAA,IAAA;EACb,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqBC,KAAAA,CAAAA,QAAQ,MAAM;IACvC,OAAOjB,QAAa,IAAA,CAACM,SAAa,IAAAL,QAAA,GAAW,KAA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