@ubnt/store.core 9.60.0 → 9.61.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 +133 -1
- package/lib/_virtual/_virtual_multi-entry.js +13 -10
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +13 -11
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +12 -2
- package/lib/apis/smartcat.js +27 -4
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +27 -4
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/cart-secondary.svg +5 -0
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/cart-secondary.svg.js +27 -0
- 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/assets/icons/menu/{icon-globe.svg.js → icon-location-pin.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +10 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
- package/lib/components/Button/Button.js +12 -5
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +8 -1
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +3 -1
- package/lib/components/Button/CartButton.js +11 -6
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +8 -4
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +5 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +5 -4
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +12 -12
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +12 -12
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +43 -43
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +9 -9
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.stories.d.ts +111 -0
- package/lib/components/Header/Header.styles.d.ts +7 -12
- package/lib/components/Header/Header.styles.js +10 -32
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +10 -31
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +29 -5
- package/lib/components/Header/Header.types.js +2 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +2 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +1 -0
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +47 -46
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
- package/lib/components/Header/LogoIcon/index.d.ts +1 -0
- package/lib/components/Header/LogoIcon/index.js +6 -0
- package/lib/components/Header/LogoIcon/index.js.map +1 -0
- package/lib/components/Header/LogoIcon/index.mjs +3 -0
- package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
- package/lib/components/Header/ProHeader/ProHeader.js +270 -189
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
- package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +4 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +4 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +4 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +4 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +4 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +4 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +7 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +6 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +4 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +4 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +4 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +4 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +4 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +4 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +4 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +4 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +4 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +4 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +3 -1
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +4 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +3 -3
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +3 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +3 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +5 -41
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +5 -21
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +7 -7
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +6 -6
- package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
- package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +6 -1
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
- package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- 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.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.js +0 -1
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +0 -1
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +3 -2
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +4 -2
- package/lib/constants/proStoreCategories/mapping/index.js +50 -51
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
- package/lib/constants/proStoreCategories/mapping/redirects.js +18 -3
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +18 -3
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +7 -4
- 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 -4
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +7 -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 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +55 -3
- package/lib/constants/proStoreFilters/mapping.js +140 -10
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +140 -10
- 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/helpers/index.js +1 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +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/utils/nextjs/ssr/registry.js +2 -2
- package/package.json +1 -1
- 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/close2.svg
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
3
4
|
</svg>
|
package/lib/assets/close3.svg
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
|
|
4
3
|
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="17" height="17" viewBox="0 0 17 17" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.0499 6.80268C11.0499 8.21196 9.90823 9.3544 8.4999 9.3544C7.09158 9.3544 5.9499 8.21196 5.9499 6.80268C5.9499 5.3934 7.09158 4.25095 8.4999 4.25095C9.90823 4.25095 11.0499 5.3934 11.0499 6.80268ZM10.1999 6.80268C10.1999 7.7422 9.43879 8.50383 8.4999 8.50383C7.56102 8.50383 6.7999 7.7422 6.7999 6.80268C6.7999 5.86316 7.56102 5.10152 8.4999 5.10152C9.43879 5.10152 10.1999 5.86316 10.1999 6.80268Z" fill="currentColor"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.4999 1.69922C5.68325 1.69922 3.3999 3.98411 3.3999 6.80268C3.3999 8.76181 4.31062 10.6139 5.31026 12.0638C6.31479 13.5208 7.44298 14.6203 7.94931 15.0835C8.26361 15.3711 8.73619 15.3711 9.0505 15.0835C9.55683 14.6203 10.685 13.5208 11.6895 12.0638C12.6892 10.6139 13.5999 8.76181 13.5999 6.80268C13.5999 3.98411 11.3166 1.69922 8.4999 1.69922ZM4.2499 6.80268C4.2499 4.45387 6.15269 2.54979 8.4999 2.54979C10.8471 2.54979 12.7499 4.45387 12.7499 6.80268C12.7499 8.51023 11.9489 10.1898 10.9899 11.5808C10.0506 12.9431 8.99195 13.9825 8.4999 14.4347C8.00786 13.9825 6.94916 12.9431 6.00991 11.5808C5.0509 10.1898 4.2499 8.51023 4.2499 6.80268Z" fill="currentColor"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var CartIconSecondary = require("../cart-secondary.svg");
|
|
7
|
+
function _interopDefault(e) {
|
|
8
|
+
return e && e.__esModule ? e : {
|
|
9
|
+
default: e
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
var CartIconSecondary__default = /*#__PURE__*/_interopDefault(CartIconSecondary);
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return CartIconSecondary__default["default"];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.keys(CartIconSecondary).forEach(function (k) {
|
|
20
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return CartIconSecondary[k];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=cart-secondary.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-secondary.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-secondary.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var LocationPinIcon = require("../../icon-location-pin.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var LocationPinIcon__default = /*#__PURE__*/_interopDefault(LocationPinIcon);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return LocationPinIcon__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(LocationPinIcon).forEach(function (k) {
|
|
20
20
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
|
-
return
|
|
23
|
+
return LocationPinIcon[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
//# sourceMappingURL=icon-
|
|
27
|
+
//# sourceMappingURL=icon-location-pin.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-location-pin.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-location-pin.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/lib/assets/logoUnifi.svg
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
<svg width="
|
|
1
|
+
<svg width="59" height="18" viewBox="0 0 59 18" fill="none"
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path
|
|
3
|
+
<path d="M34.6668 2.1844C34.6668 3.36186 35.6437 4.33873 36.8513 4.33873C38.0286 4.33873 39.0055 3.39189 39.0055 2.1844C39.0055 0.976868 38.0587 0 36.8513 0C35.6437 0 34.6668 1.0069 34.6668 2.1844Z" fill="currentColor"/>
|
|
4
|
+
<path d="M54.2476 2.1844C54.2476 3.36186 55.2244 4.33873 56.432 4.33873C57.6094 4.33873 58.5862 3.39189 58.5862 2.1844C58.5862 0.976868 57.6394 0 56.432 0C55.2244 0 54.2476 1.0069 54.2476 2.1844Z" fill="currentColor"/>
|
|
5
|
+
<path d="M38.7133 5.85562H34.9576V17.8594H38.7133V5.85562Z" fill="currentColor"/>
|
|
6
|
+
<path d="M52.4907 0.532516H41.8557V17.8594H45.6114V11.3138H51.3995V8.03815H45.6114V3.80814H52.4907V0.532516Z" fill="currentColor"/>
|
|
7
|
+
<path d="M58.2957 5.85562H54.54V17.8594H58.2957V5.85562Z" fill="currentColor"/>
|
|
8
|
+
<path d="M13.0968 8.03815V5.85191H15.2776V3.66939H17.46V5.85191H15.2794V8.03439H17.4619V8.72626C17.4619 9.52501 17.3943 10.4719 17.2368 11.2163C17.1506 11.6325 17.0175 12.045 16.8618 12.4425C16.7646 12.691 16.6582 12.9325 16.5443 13.1623L16.4958 13.259C16.4788 13.2921 16.4615 13.3249 16.4443 13.3575L16.4132 13.4156C16.4002 13.4399 16.387 13.464 16.3737 13.488C16.3553 13.5211 16.3369 13.5539 16.3182 13.5863C16.0574 14.0419 15.7557 14.4787 15.405 14.8894L15.3631 14.9384L15.3604 14.9417C15.2747 15.0419 15.1901 15.1408 15.0974 15.2382C14.9907 15.3525 14.8801 15.4613 14.7675 15.5681C13.3705 16.9125 11.5519 17.7525 9.64874 17.9457C9.42004 17.9681 8.96063 17.9925 8.72992 17.9925C8.6131 17.9925 8.43732 17.9863 8.26263 17.9772C8.0929 17.9683 7.92407 17.9567 7.81128 17.9457C5.90808 17.7525 4.08929 16.9125 2.69257 15.5681L2.65009 15.5263L2.64844 15.5246C2.55249 15.4307 2.45691 15.3373 2.36444 15.2382C2.25568 15.1238 2.15808 15.0075 2.05682 14.8894C1.70819 14.4787 1.40442 14.0419 1.14368 13.5863C1.08252 13.4789 1.02264 13.3676 0.9646 13.2531C0.914062 13.1535 0.864807 13.0514 0.817017 12.9475C0.78186 12.8713 0.74762 12.794 0.714294 12.7159C0.69873 12.6796 0.68335 12.6432 0.668152 12.6066L0.645447 12.5513L0.624939 12.5006L0.601868 12.4425C0.444397 12.045 0.31311 11.6325 0.225037 11.2163C0.0675659 10.4738 0 9.52501 0 8.72626V0.532516H4.36304V8.03815L4.3634 8.17635C4.36359 8.25618 4.36395 8.36105 4.36469 8.4646C4.36578 8.59772 4.36761 8.72864 4.37054 8.80128C4.38007 9.06001 4.3894 9.31316 4.41559 9.56438C4.48883 10.2394 4.63696 10.8769 4.9444 11.4188C5.0343 11.5763 5.12439 11.7263 5.23132 11.8706C5.88757 12.7462 6.88495 13.4025 8.1319 13.5863C8.28003 13.6069 8.57996 13.6257 8.72992 13.6257C8.88007 13.6257 9.17999 13.6088 9.32812 13.5863C10.5731 13.4025 11.5724 12.7462 12.2287 11.8706C12.2944 11.7833 12.3534 11.6933 12.4092 11.6013C12.4457 11.5412 12.4808 11.4803 12.5156 11.4188C12.8231 10.8769 12.9732 10.2394 13.0444 9.56438C13.0706 9.31316 13.08 9.06001 13.0893 8.80128C13.0928 8.71367 13.0946 8.54132 13.0957 8.38257L13.0966 8.1503L13.0968 8.03815Z" fill="currentColor"/>
|
|
9
|
+
<path d="M15.2776 3.66939H13.6406V2.03252H15.2776V3.66939Z" fill="currentColor"/>
|
|
10
|
+
<path d="M15.8231 0.395645H16.9144V1.48686H15.8231V0.395645Z" fill="currentColor"/>
|
|
11
|
+
<path d="M31.8168 17.8594H28.0875V10.8018C28.0875 10.8018 28.0875 10.5544 28.0838 10.4737V10.4686C28.08 10.3598 28.0761 10.2527 28.0649 10.1456C28.0349 9.85684 27.9712 9.58122 27.8381 9.34872L27.8309 9.33618L27.8282 9.33138C27.7921 9.26999 27.7571 9.2103 27.7143 9.15372C27.4312 8.77684 27.0037 8.49564 26.4675 8.41685C26.4435 8.4126 26.4102 8.40889 26.3747 8.40591L26.3331 8.40285C26.2868 8.39983 26.2412 8.39809 26.2106 8.39809C26.1731 8.39919 26.113 8.40221 26.0568 8.40642C26.0175 8.40939 25.9799 8.41296 25.9537 8.41685C25.4174 8.49564 24.988 8.77684 24.7068 9.15372C24.6965 9.16759 24.6866 9.18146 24.6771 9.19537C24.6669 9.21039 24.657 9.22545 24.6473 9.2406C24.6248 9.27594 24.6037 9.31178 24.5832 9.34872C24.4519 9.58122 24.3862 9.85684 24.3561 10.1456C24.3431 10.2544 24.3393 10.3631 24.3356 10.4737C24.3338 10.5544 24.3338 10.8018 24.3338 10.8018V17.8462H20.6025V5.84248H24.1968V6.93375C24.1968 6.93375 25.4756 5.34 28.0294 5.45247C30.3243 5.55373 31.8168 7.31625 31.8168 9.70876V17.8594Z" fill="currentColor"/>
|
|
4
12
|
</svg>
|
package/lib/assets/minus4.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15898)">
|
|
4
|
+
<path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_426_15898)">
|
|
8
|
+
<rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_426_15898">
|
|
12
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/minus5.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_406)">
|
|
4
|
+
<path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_658_406)">
|
|
8
|
+
<rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_658_406">
|
|
12
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/pause.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
3
|
+
<rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/pause2.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
3
|
+
<rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/plus5.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15903)">
|
|
4
|
+
<path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
|
|
5
|
+
<path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_426_15903)">
|
|
9
|
+
<rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_426_15903">
|
|
13
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/plus6.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_411)">
|
|
4
|
+
<path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
|
|
5
|
+
<path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_658_411)">
|
|
9
|
+
<rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_658_411">
|
|
13
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/udmPro.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmPro2.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmProMax.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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/carouselArrow.svg.js');
|
|
6
6
|
require('../StyleableSvgImage/index.js');
|
|
7
7
|
var Accordion_styles = require('./Accordion.styles.js');
|
|
@@ -28,7 +28,7 @@ const AccordionItem = function AccordionItem2({
|
|
|
28
28
|
disableHeaderPadding,
|
|
29
29
|
disableContentPadding
|
|
30
30
|
}) {
|
|
31
|
-
const [isInnerActive, setIsInnerActive] =
|
|
31
|
+
const [isInnerActive, setIsInnerActive] = React.useState(isActive);
|
|
32
32
|
return /* @__PURE__ */jsxRuntime.jsxs(Accordion_styles.AccordionSection, {
|
|
33
33
|
isActive: !showMultiple ? isActive : isInnerActive,
|
|
34
34
|
hideSeparator,
|
|
@@ -70,8 +70,8 @@ const Accordion = function Accordion2({
|
|
|
70
70
|
disableContentPadding,
|
|
71
71
|
className
|
|
72
72
|
}) {
|
|
73
|
-
const [activeIndex, setActiveIndex] =
|
|
74
|
-
|
|
73
|
+
const [activeIndex, setActiveIndex] = React.useState(typeof initialActiveIndex !== "undefined" ? initialActiveIndex : -1);
|
|
74
|
+
React.useEffect(() => {
|
|
75
75
|
if (initialActiveIndex === -1) {
|
|
76
76
|
setActiveIndex(initialActiveIndex);
|
|
77
77
|
}
|
|
@@ -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/account/no-user-avatar.png.js');
|
|
6
6
|
require('../CustomImage/index.js');
|
|
7
7
|
var Avatar_styles = require('./Avatar.styles.js');
|
|
@@ -26,7 +26,7 @@ const Avatar = function Avatar2({
|
|
|
26
26
|
size,
|
|
27
27
|
className
|
|
28
28
|
}) {
|
|
29
|
-
const width =
|
|
29
|
+
const width = React.useMemo(() => {
|
|
30
30
|
return SIZES[size] ?? SIZES.medium;
|
|
31
31
|
}, [size]);
|
|
32
32
|
const srcLink = typeof src === "string" ? src : src?.src;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../LoaderDots/index.js');
|
|
6
6
|
var Button_styles = require('./Button.styles.js');
|
|
7
7
|
var LoaderDots = require('../LoaderDots/LoaderDots.js');
|
|
8
8
|
"use strict";
|
|
9
9
|
const BUTTON_LOADING_DELAY_MS = 2e3;
|
|
10
|
-
const Button =
|
|
10
|
+
const Button = React.forwardRef(function Button2({
|
|
11
11
|
children,
|
|
12
12
|
anchor,
|
|
13
13
|
size = "medium",
|
|
@@ -18,11 +18,11 @@ const Button = react.forwardRef(function Button2({
|
|
|
18
18
|
onClick,
|
|
19
19
|
...args
|
|
20
20
|
}, ref) {
|
|
21
|
-
const [loading, setLoading] =
|
|
22
|
-
|
|
21
|
+
const [loading, setLoading] = React.useState(!!loadingInitial);
|
|
22
|
+
React.useEffect(() => {
|
|
23
23
|
setLoading(!!loadingInitial);
|
|
24
24
|
}, [loadingInitial]);
|
|
25
|
-
const onClickCustom =
|
|
25
|
+
const onClickCustom = React.useCallback(e => {
|
|
26
26
|
if (loading || disabled) {
|
|
27
27
|
e.preventDefault();
|
|
28
28
|
e.stopPropagation();
|
|
@@ -36,6 +36,12 @@ const Button = react.forwardRef(function Button2({
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}, [disabled, loading, loadAfterAction, onClick]);
|
|
39
|
+
const loaderDotsColor = React.useMemo(() => {
|
|
40
|
+
if (args.variant === "secondary") {
|
|
41
|
+
return "primaryBlue";
|
|
42
|
+
}
|
|
43
|
+
return "white";
|
|
44
|
+
}, [args.variant]);
|
|
39
45
|
return /* @__PURE__ */jsxRuntime.jsx(Button_styles.StyledButton, {
|
|
40
46
|
...args,
|
|
41
47
|
as: anchor ? "a" : void 0,
|
|
@@ -48,6 +54,7 @@ const Button = react.forwardRef(function Button2({
|
|
|
48
54
|
children: /* @__PURE__ */jsxRuntime.jsxs(Button_styles.InnerWrap, {
|
|
49
55
|
children: [loading && /* @__PURE__ */jsxRuntime.jsx(Button_styles.LoaderDotsWrap, {
|
|
50
56
|
children: /* @__PURE__ */jsxRuntime.jsx(LoaderDots.LoaderDots, {
|
|
57
|
+
color: loaderDotsColor,
|
|
51
58
|
size: size === "large" ? "large" : void 0
|
|
52
59
|
})
|
|
53
60
|
}), children]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect, useState } from \"react\";\n\nimport { LoaderDots } from \"../LoaderDots\";\nimport * as S from \"./Button.styles\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport const BUTTON_LOADING_DELAY_MS = 2000;\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement | null,\n PropsWithChildren<ButtonProps>\n>(function Button(\n {\n children,\n anchor,\n size = \"medium\",\n loading: loadingInitial,\n loadAfterAction,\n disabled,\n flush,\n onClick,\n ...args\n },\n ref,\n) {\n // #############################################################################\n // Handle loading\n // #############################################################################\n const [loading, setLoading] = useState(!!loadingInitial);\n\n // Handle external loading state change\n useEffect(() => {\n setLoading(!!loadingInitial);\n }, [loadingInitial]);\n\n // #############################################################################\n // Handle action and loading after action\n // #############################################################################\n const onClickCustom = useCallback(\n (e: MouseEvent<HTMLElement>) => {\n // Prevent action if loading or disabled\n if (loading || disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n // Call the action\n if (onClick) {\n onClick(e);\n\n // Add a delay before the next action can be triggered\n if (loadAfterAction) {\n setLoading(true);\n setTimeout(() => setLoading(false), BUTTON_LOADING_DELAY_MS);\n }\n }\n },\n [disabled, loading, loadAfterAction, onClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.StyledButton\n {...args}\n as={anchor ? \"a\" : undefined}\n disabled={disabled || loading}\n size={size}\n $flush={flush}\n $loading={loading}\n onClick={onClickCustom}\n // @ts-expect-error By using as=\"a\" we can't safely determine which to use type-wise here\n ref={ref}\n >\n <S.InnerWrap>\n {loading && (\n <S.LoaderDotsWrap>\n <LoaderDots
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect, useMemo, useState } from \"react\";\n\nimport { LoaderDots } from \"../LoaderDots\";\nimport * as S from \"./Button.styles\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport const BUTTON_LOADING_DELAY_MS = 2000;\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement | null,\n PropsWithChildren<ButtonProps>\n>(function Button(\n {\n children,\n anchor,\n size = \"medium\",\n loading: loadingInitial,\n loadAfterAction,\n disabled,\n flush,\n onClick,\n ...args\n },\n ref,\n) {\n // #############################################################################\n // Handle loading\n // #############################################################################\n const [loading, setLoading] = useState(!!loadingInitial);\n\n // Handle external loading state change\n useEffect(() => {\n setLoading(!!loadingInitial);\n }, [loadingInitial]);\n\n // #############################################################################\n // Handle action and loading after action\n // #############################################################################\n const onClickCustom = useCallback(\n (e: MouseEvent<HTMLElement>) => {\n // Prevent action if loading or disabled\n if (loading || disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n // Call the action\n if (onClick) {\n onClick(e);\n\n // Add a delay before the next action can be triggered\n if (loadAfterAction) {\n setLoading(true);\n setTimeout(() => setLoading(false), BUTTON_LOADING_DELAY_MS);\n }\n }\n },\n [disabled, loading, loadAfterAction, onClick],\n );\n\n const loaderDotsColor = useMemo(() => {\n if (args.variant === \"secondary\") {\n return \"primaryBlue\";\n }\n return \"white\";\n }, [args.variant]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.StyledButton\n {...args}\n as={anchor ? \"a\" : undefined}\n disabled={disabled || loading}\n size={size}\n $flush={flush}\n $loading={loading}\n onClick={onClickCustom}\n // @ts-expect-error By using as=\"a\" we can't safely determine which to use type-wise here\n ref={ref}\n >\n <S.InnerWrap>\n {loading && (\n <S.LoaderDotsWrap>\n <LoaderDots\n color={loaderDotsColor}\n size={size === \"large\" ? \"large\" : undefined}\n />\n </S.LoaderDotsWrap>\n )}\n {children}\n </S.InnerWrap>\n </S.StyledButton>\n );\n});\n"],"names":["BUTTON_LOADING_DELAY_MS","Button","forwardRef","Button2","children","anchor","size","loading","loadingInitial","loadAfterAction","disabled","flush","onClick","args","ref","setLoading","useState","useEffect","onClickCustom","useCallback","e","preventDefault","stopPropagation","setTimeout","loaderDotsColor","useMemo","variant","jsx","S.StyledButton","StyledButton","as","$flush","$loading","jsxs","S.InnerWrap","S.LoaderDotsWrap","LoaderDots","color"],"mappings":";;;;;;;;AAOO,MAAMA,uBAA0B,GAAA,GAAA;AAE1B,MAAAC,MAAA,GAASC,KAAAA,CAAAA,UAGpB,CAAA,SAASD,OACTE,CAAA;EACEC,QAAA;EACAC,MAAA;EACAC,IAAO,GAAA,QAAA;EACPC,OAAS,EAAAC,cAAA;EACTC,eAAA;EACAC,QAAA;EACAC,KAAA;EACAC,OAAA;EACA,GAAGC;AACL,CAAA,EACAC,GACA,EAAA;EAIA,MAAM,CAACP,OAAS,EAAAQ,UAAU,IAAIC,KAAAA,CAAAA,QAAS,CAAA,CAAC,CAACR,cAAc,CAAA;EAGvDS,KAAAA,CAAAA,SAAA,CAAU,MAAM;IACHF,UAAA,CAAA,CAAC,CAACP,cAAc,CAAA;EAAA,CAC7B,EAAG,CAACA,cAAc,CAAC,CAAA;EAKnB,MAAMU,aAAgB,GAAAC,KAAA,CAAAA,WAAA,CACnBC,CAA+B,IAAA;IAE9B,IAAIb,WAAWG,QAAU,EAAA;MACvBU,CAAA,CAAEC,cAAe,CAAA,CAAA;MACjBD,CAAA,CAAEE,eAAgB,CAAA,CAAA;MAClB;IACF;IAGA,IAAIV,OAAS,EAAA;MACXA,OAAA,CAAQQ,CAAC,CAAA;MAGT,IAAIX,eAAiB,EAAA;QACnBM,UAAA,CAAW,IAAI,CAAA;QACfQ,UAAA,CAAW,MAAMR,UAAA,CAAW,KAAK,CAAA,EAAGf,uBAAuB,CAAA;MAC7D;IACF;EACF,CAAA,EACA,CAACU,QAAA,EAAUH,OAAS,EAAAE,eAAA,EAAiBG,OAAO,CAAA,CAC9C;EAEM,MAAAY,eAAA,GAAkBC,KAAAA,CAAAA,QAAQ,MAAM;IAChC,IAAAZ,IAAA,CAAKa,YAAY,WAAa,EAAA;MACzB,OAAA,aAAA;IACT;IACO,OAAA,OAAA;EAAA,CACN,EAAA,CAACb,IAAK,CAAAa,OAAO,CAAC,CAAA;EAMf,sBAAAC,UAAA,CAAAA,GAAA,CAACC,aAAE,CAAAC,YAAA,EAAF;IACE,GAAGhB,IAAA;IACJiB,EAAA,EAAIzB,SAAS,GAAM,GAAA,KAAA,CAAA;IACnBK,UAAUA,QAAY,IAAAH,OAAA;IACtBD,IAAA;IACAyB,MAAQ,EAAApB,KAAA;IACRqB,QAAU,EAAAzB,OAAA;IACVK,OAAS,EAAAM,aAAA;IAETJ,GAAA;IAEAV,QAAA,iBAAA6B,UAAA,CAAAA,IAAA,CAACC,uBAAE,EAAF;MACE9B,QAAA,EAAA,CACCG,OAAA,mBAAAoB,UAAA,CAAAA,GAAA,CAACQ,4BAAE,EAAF;QACC/B,QAAA,EAAA,eAAAuB,UAAA,CAAAA,GAAA,CAACS,UAAA,CAAAA,UAAA,EAAA;UACCC,KAAO,EAAAb,eAAA;UACPlB,IAAA,EAAMA,IAAS,KAAA,OAAA,GAAU,OAAU,GAAA,KAAA;QAAA,CAAA;OAEvC,CAAA,EAEDF,QAAA;KACH;EAAA,CAAA,CACF;AAEJ,CAAC,CAAA;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef, useState, useEffect, useCallback } from 'react';
|
|
2
|
+
import { forwardRef, useState, useEffect, useCallback, useMemo } from 'react';
|
|
3
3
|
import '../LoaderDots/index.mjs';
|
|
4
4
|
import { StyledButton, InnerWrap, LoaderDotsWrap } from './Button.styles.mjs';
|
|
5
5
|
import { LoaderDots } from '../LoaderDots/LoaderDots.mjs';
|
|
@@ -34,6 +34,12 @@ const Button = forwardRef(function Button2({
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}, [disabled, loading, loadAfterAction, onClick]);
|
|
37
|
+
const loaderDotsColor = useMemo(() => {
|
|
38
|
+
if (args.variant === "secondary") {
|
|
39
|
+
return "primaryBlue";
|
|
40
|
+
}
|
|
41
|
+
return "white";
|
|
42
|
+
}, [args.variant]);
|
|
37
43
|
return /* @__PURE__ */jsx(StyledButton, {
|
|
38
44
|
...args,
|
|
39
45
|
as: anchor ? "a" : void 0,
|
|
@@ -46,6 +52,7 @@ const Button = forwardRef(function Button2({
|
|
|
46
52
|
children: /* @__PURE__ */jsxs(InnerWrap, {
|
|
47
53
|
children: [loading && /* @__PURE__ */jsx(LoaderDotsWrap, {
|
|
48
54
|
children: /* @__PURE__ */jsx(LoaderDots, {
|
|
55
|
+
color: loaderDotsColor,
|
|
49
56
|
size: size === "large" ? "large" : void 0
|
|
50
57
|
})
|
|
51
58
|
}), children]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect, useState } from \"react\";\n\nimport { LoaderDots } from \"../LoaderDots\";\nimport * as S from \"./Button.styles\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport const BUTTON_LOADING_DELAY_MS = 2000;\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement | null,\n PropsWithChildren<ButtonProps>\n>(function Button(\n {\n children,\n anchor,\n size = \"medium\",\n loading: loadingInitial,\n loadAfterAction,\n disabled,\n flush,\n onClick,\n ...args\n },\n ref,\n) {\n // #############################################################################\n // Handle loading\n // #############################################################################\n const [loading, setLoading] = useState(!!loadingInitial);\n\n // Handle external loading state change\n useEffect(() => {\n setLoading(!!loadingInitial);\n }, [loadingInitial]);\n\n // #############################################################################\n // Handle action and loading after action\n // #############################################################################\n const onClickCustom = useCallback(\n (e: MouseEvent<HTMLElement>) => {\n // Prevent action if loading or disabled\n if (loading || disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n // Call the action\n if (onClick) {\n onClick(e);\n\n // Add a delay before the next action can be triggered\n if (loadAfterAction) {\n setLoading(true);\n setTimeout(() => setLoading(false), BUTTON_LOADING_DELAY_MS);\n }\n }\n },\n [disabled, loading, loadAfterAction, onClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.StyledButton\n {...args}\n as={anchor ? \"a\" : undefined}\n disabled={disabled || loading}\n size={size}\n $flush={flush}\n $loading={loading}\n onClick={onClickCustom}\n // @ts-expect-error By using as=\"a\" we can't safely determine which to use type-wise here\n ref={ref}\n >\n <S.InnerWrap>\n {loading && (\n <S.LoaderDotsWrap>\n <LoaderDots
|
|
1
|
+
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { MouseEvent, PropsWithChildren } from \"react\";\nimport { forwardRef, useCallback, useEffect, useMemo, useState } from \"react\";\n\nimport { LoaderDots } from \"../LoaderDots\";\nimport * as S from \"./Button.styles\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport const BUTTON_LOADING_DELAY_MS = 2000;\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement | null,\n PropsWithChildren<ButtonProps>\n>(function Button(\n {\n children,\n anchor,\n size = \"medium\",\n loading: loadingInitial,\n loadAfterAction,\n disabled,\n flush,\n onClick,\n ...args\n },\n ref,\n) {\n // #############################################################################\n // Handle loading\n // #############################################################################\n const [loading, setLoading] = useState(!!loadingInitial);\n\n // Handle external loading state change\n useEffect(() => {\n setLoading(!!loadingInitial);\n }, [loadingInitial]);\n\n // #############################################################################\n // Handle action and loading after action\n // #############################################################################\n const onClickCustom = useCallback(\n (e: MouseEvent<HTMLElement>) => {\n // Prevent action if loading or disabled\n if (loading || disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n // Call the action\n if (onClick) {\n onClick(e);\n\n // Add a delay before the next action can be triggered\n if (loadAfterAction) {\n setLoading(true);\n setTimeout(() => setLoading(false), BUTTON_LOADING_DELAY_MS);\n }\n }\n },\n [disabled, loading, loadAfterAction, onClick],\n );\n\n const loaderDotsColor = useMemo(() => {\n if (args.variant === \"secondary\") {\n return \"primaryBlue\";\n }\n return \"white\";\n }, [args.variant]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.StyledButton\n {...args}\n as={anchor ? \"a\" : undefined}\n disabled={disabled || loading}\n size={size}\n $flush={flush}\n $loading={loading}\n onClick={onClickCustom}\n // @ts-expect-error By using as=\"a\" we can't safely determine which to use type-wise here\n ref={ref}\n >\n <S.InnerWrap>\n {loading && (\n <S.LoaderDotsWrap>\n <LoaderDots\n color={loaderDotsColor}\n size={size === \"large\" ? \"large\" : undefined}\n />\n </S.LoaderDotsWrap>\n )}\n {children}\n </S.InnerWrap>\n </S.StyledButton>\n );\n});\n"],"names":["BUTTON_LOADING_DELAY_MS","Button","forwardRef","Button2","children","anchor","size","loading","loadingInitial","loadAfterAction","disabled","flush","onClick","args","ref","setLoading","useState","useEffect","onClickCustom","useCallback","e","preventDefault","stopPropagation","setTimeout","loaderDotsColor","useMemo","variant","jsx","S.StyledButton","as","$flush","$loading","jsxs","S.InnerWrap","S.LoaderDotsWrap","LoaderDots","color"],"mappings":";;;;;;AAOO,MAAMA,uBAA0B,GAAA,GAAA;AAE1B,MAAAC,MAAA,GAASC,UAGpB,CAAA,SAASD,OACTE,CAAA;EACEC,QAAA;EACAC,MAAA;EACAC,IAAO,GAAA,QAAA;EACPC,OAAS,EAAAC,cAAA;EACTC,eAAA;EACAC,QAAA;EACAC,KAAA;EACAC,OAAA;EACA,GAAGC;AACL,CAAA,EACAC,GACA,EAAA;EAIA,MAAM,CAACP,OAAS,EAAAQ,UAAU,IAAIC,QAAS,CAAA,CAAC,CAACR,cAAc,CAAA;EAGvDS,SAAA,CAAU,MAAM;IACHF,UAAA,CAAA,CAAC,CAACP,cAAc,CAAA;EAAA,CAC7B,EAAG,CAACA,cAAc,CAAC,CAAA;EAKnB,MAAMU,aAAgB,GAAAC,WAAA,CACnBC,CAA+B,IAAA;IAE9B,IAAIb,WAAWG,QAAU,EAAA;MACvBU,CAAA,CAAEC,cAAe,CAAA,CAAA;MACjBD,CAAA,CAAEE,eAAgB,CAAA,CAAA;MAClB;IACF;IAGA,IAAIV,OAAS,EAAA;MACXA,OAAA,CAAQQ,CAAC,CAAA;MAGT,IAAIX,eAAiB,EAAA;QACnBM,UAAA,CAAW,IAAI,CAAA;QACfQ,UAAA,CAAW,MAAMR,UAAA,CAAW,KAAK,CAAA,EAAGf,uBAAuB,CAAA;MAC7D;IACF;EACF,CAAA,EACA,CAACU,QAAA,EAAUH,OAAS,EAAAE,eAAA,EAAiBG,OAAO,CAAA,CAC9C;EAEM,MAAAY,eAAA,GAAkBC,QAAQ,MAAM;IAChC,IAAAZ,IAAA,CAAKa,YAAY,WAAa,EAAA;MACzB,OAAA,aAAA;IACT;IACO,OAAA,OAAA;EAAA,CACN,EAAA,CAACb,IAAK,CAAAa,OAAO,CAAC,CAAA;EAMf,sBAAAC,GAAA,CAACC,YAAE,EAAF;IACE,GAAGf,IAAA;IACJgB,EAAA,EAAIxB,SAAS,GAAM,GAAA,KAAA,CAAA;IACnBK,UAAUA,QAAY,IAAAH,OAAA;IACtBD,IAAA;IACAwB,MAAQ,EAAAnB,KAAA;IACRoB,QAAU,EAAAxB,OAAA;IACVK,OAAS,EAAAM,aAAA;IAETJ,GAAA;IAEAV,QAAA,iBAAA4B,IAAA,CAACC,SAAE,EAAF;MACE7B,QAAA,EAAA,CACCG,OAAA,mBAAAoB,GAAA,CAACO,cAAE,EAAF;QACC9B,QAAA,EAAA,eAAAuB,GAAA,CAACQ,UAAA,EAAA;UACCC,KAAO,EAAAZ,eAAA;UACPlB,IAAA,EAAMA,IAAS,KAAA,OAAA,GAAU,OAAU,GAAA,KAAA;QAAA,CAAA;OAEvC,CAAA,EAEDF,QAAA;KACH;EAAA,CAAA,CACF;AAEJ,CAAC,CAAA;"}
|
|
@@ -13,5 +13,7 @@ export interface CartButtonProps extends ButtonProps {
|
|
|
13
13
|
* (optional) Label to display on the button. If not provided, only the icon will be displayed
|
|
14
14
|
*/
|
|
15
15
|
label?: string;
|
|
16
|
+
iconWidth?: number;
|
|
17
|
+
iconHeight?: number;
|
|
16
18
|
}
|
|
17
|
-
export declare const CartButton: ({ icon, hideIcon, preLabel, label, ...props }: CartButtonProps) => JSX.Element;
|
|
19
|
+
export declare const CartButton: ({ icon, hideIcon, preLabel, label, iconHeight, iconWidth, ...props }: CartButtonProps) => JSX.Element;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var styled = require('styled-components');
|
|
6
|
+
require('../../assets/icons/cart-secondary.svg.js');
|
|
6
7
|
require('../../assets/icons/cart.svg.js');
|
|
7
8
|
require('../../assets/icons/cartPlus.svg.js');
|
|
8
9
|
require('../StyleableSvgImage/index.js');
|
|
9
10
|
var Button = require('./Button.js');
|
|
10
11
|
var CartPlusIcon = require("../../assets/cartPlus.svg");
|
|
12
|
+
var CartIconSecondary = require("../../assets/cart-secondary.svg");
|
|
11
13
|
var CartIcon = require("../../assets/cart.svg");
|
|
12
14
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
13
15
|
function _interopDefault(e) {
|
|
@@ -17,6 +19,7 @@ function _interopDefault(e) {
|
|
|
17
19
|
}
|
|
18
20
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
19
21
|
var CartPlusIcon__default = /*#__PURE__*/_interopDefault(CartPlusIcon);
|
|
22
|
+
var CartIconSecondary__default = /*#__PURE__*/_interopDefault(CartIconSecondary);
|
|
20
23
|
var CartIcon__default = /*#__PURE__*/_interopDefault(CartIcon);
|
|
21
24
|
"use strict";
|
|
22
25
|
const ButtonStyled = styled__default["default"](Button.Button)`
|
|
@@ -73,16 +76,18 @@ const CartButton = function CartButton2({
|
|
|
73
76
|
hideIcon,
|
|
74
77
|
preLabel,
|
|
75
78
|
label,
|
|
79
|
+
iconHeight = 16,
|
|
80
|
+
iconWidth = 20,
|
|
76
81
|
...props
|
|
77
82
|
}) {
|
|
78
|
-
const Icon =
|
|
83
|
+
const Icon = React.useMemo(() => {
|
|
79
84
|
switch (icon) {
|
|
80
85
|
case "cart":
|
|
81
|
-
return CartIcon__default["default"];
|
|
86
|
+
return props.variant === "secondary" ? CartIconSecondary__default["default"] : CartIcon__default["default"];
|
|
82
87
|
case "plus":
|
|
83
88
|
return CartPlusIcon__default["default"];
|
|
84
89
|
}
|
|
85
|
-
}, [icon]);
|
|
90
|
+
}, [icon, props.variant]);
|
|
86
91
|
return /* @__PURE__ */jsxRuntime.jsx(ButtonStyled, {
|
|
87
92
|
...props,
|
|
88
93
|
label,
|
|
@@ -90,8 +95,8 @@ const CartButton = function CartButton2({
|
|
|
90
95
|
children: /* @__PURE__ */jsxRuntime.jsxs(ButtonInnerWrap, {
|
|
91
96
|
children: [!hideIcon && /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
92
97
|
src: Icon,
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
98
|
+
width: iconWidth,
|
|
99
|
+
height: iconHeight
|
|
95
100
|
}), (!!preLabel || !!label) && /* @__PURE__ */jsxRuntime.jsxs(Labels, {
|
|
96
101
|
children: [!!preLabel && /* @__PURE__ */jsxRuntime.jsx(PreLabel, {
|
|
97
102
|
children: preLabel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\n\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\n\nconst Label = styled.span<{ $forceBold?: boolean }>`\n ${({ $forceBold }) =>\n $forceBold\n ? css`\n font-weight: bold;\n `\n : undefined};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && <StyleableSvgImage src={Icon} width={
|
|
1
|
+
{"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIconSecondary from \"../../assets/icons/cart-secondary.svg\";\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n\n iconWidth?: number;\n iconHeight?: number;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\n\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\n\nconst Label = styled.span<{ $forceBold?: boolean }>`\n ${({ $forceBold }) =>\n $forceBold\n ? css`\n font-weight: bold;\n `\n : undefined};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n iconHeight = 16,\n iconWidth = 20,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return props.variant === \"secondary\" ? CartIconSecondary : CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon, props.variant]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && (\n <StyleableSvgImage src={Icon} width={iconWidth} height={iconHeight} />\n )}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $forceBold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$forceBold","CartButton","CartButton2","icon","hideIcon","iconHeight","iconWidth","props","Icon","useMemo","variant","CartIconSecondary","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAMA,YAAA,GAAeC,eAAAA,CAAAA,SAAAA,EAAOC,MAAAA,CAAAA,MAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EACF;EAOA,IAAID,KAAO,EAAA;IACF,OAAAE,UAAA;AAAA;AAAA;AAAA,OAAA;EAIT;EAGO,OAAAA,UAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;AAAA;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMC,kBAAkBL,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAASP,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA,CAAA;AAKtB,MAAME,WAAWR,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,QAAQV,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA,IACjB,CAAC;EAAEE;CAAW,KACdA,UACI,GAAAP,MAAAA,CAAAA,GAAA;AAAA;AAAA,SAAA,GAGA,KAAS,CAAA;AAAA,CAAA;AAGJ,MAAAQ,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAZ,QAAA;EACAD,KAAA;EACAc,UAAa,GAAA,EAAA;EACbC,SAAY,GAAA,EAAA;EACZ,GAAGC;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,KAAAA,CAAAA,QAAQ,MAAM;IACzB,QAAQN,IAAM;MACZ,KAAK,MAAA;QACI,OAAAI,KAAA,CAAMG,OAAY,KAAA,WAAA,GAAcC,0BAAAA,CAAAA,SAAAA,CAAoB,GAAAC,iBAAAA,CAAAA,SAAAA,CAAA;MAE7D,KAAK,MAAA;QACI,OAAAC,gCAAA;IACX;EACC,CAAA,EAAA,CAACV,IAAM,EAAAI,KAAA,CAAMG,OAAO,CAAC,CAAA;EAKxB,OAAA,8BACGtB,YAAc,EAAA;IAAA,GAAGmB;IAAOhB,KAAc;IAAAC,QAAA;IACrCsB,yCAACpB,eACE,EAAA;MAAAoB,QAAA,EAAA,CAAC,CAAAV,QAAA,kCACCW,iBAAkB,CAAAA,iBAAA,EAAA;QAAAC,GAAA,EAAKR;QAAMS,KAAO,EAAAX,SAAA;QAAWY,QAAQb;OAAY,CAAA,EAAA,CAEpE,CAAC,CAACb,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,+BACfK,MACE,EAAA;QAAAkB,QAAA,EAAA,CAAA,CAAC,CAACtB,QAAA,IAAA,eAAa2B,UAAA,CAAAA,GAAA,CAAAtB,QAAA,EAAA;UAAUiB,QAAS,EAAAtB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAA4B,UAAA,CAAAA,GAAA,CAACpB,KAAA,EAAA;UAECC,UAAA,EAAY,CAAC,CAACR,QAAA;UAEbsB,QAAA,EAAAvB;QAAA,CACH,CAAA;OAEJ,CAAA;IAEJ,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|