@ubnt/store.core 11.21.0-beta.0 → 11.21.0-beta.2
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 +8 -0
- package/lib/assets/ai-dslr.jpg +0 -0
- package/lib/assets/ai-dslr2.jpg +0 -0
- package/lib/assets/ai-lpr.jpg +0 -0
- package/lib/assets/ai-lpr2.jpg +0 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/ai-turret.jpg +0 -0
- package/lib/assets/ai-turret2.jpg +0 -0
- package/lib/assets/g2-reader-pro.jpg +0 -0
- package/lib/assets/g2-reader-pro2.jpg +0 -0
- package/lib/assets/g3-reader-flex.jpg +0 -0
- package/lib/assets/g3-reader-flex2.jpg +0 -0
- package/lib/assets/g3-starter-kit-pro.jpg +0 -0
- package/lib/assets/g3-starter-kit-pro2.jpg +0 -0
- package/lib/assets/g4-instant.jpg +0 -0
- package/lib/assets/g4-instant2.jpg +0 -0
- package/lib/assets/g5-bullet.jpg +0 -0
- package/lib/assets/g5-bullet2.jpg +0 -0
- package/lib/assets/intercom.jpg +0 -0
- package/lib/assets/intercom2.jpg +0 -0
- package/lib/components/Accordion/Accordion.styles.js +12 -12
- package/lib/components/Accordion/Accordion.styles.js.map +1 -1
- package/lib/components/Avatar/Avatar.styles.js +3 -3
- package/lib/components/Avatar/Avatar.styles.js.map +1 -1
- package/lib/components/BackInStock/BackInStock.styles.js +8 -8
- package/lib/components/BackInStock/BackInStock.styles.js.map +1 -1
- package/lib/components/Badge/Badge.styles.js +18 -18
- package/lib/components/Badge/Badge.styles.js.map +1 -1
- package/lib/components/Button/Button.styles.js +30 -30
- package/lib/components/Button/Button.styles.js.map +1 -1
- package/lib/components/Button/CartButton.styles.js +12 -12
- package/lib/components/Button/CartButton.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +17 -17
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +10 -10
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/CardSection/Card/Card.styles.js +18 -18
- package/lib/components/CardSection/Card/Card.styles.js.map +1 -1
- package/lib/components/CardSection/CardSection.styles.js +5 -5
- package/lib/components/CardSection/CardSection.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +21 -21
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.styles.js +8 -8
- package/lib/components/Checkbox/Checkbox.styles.js.map +1 -1
- package/lib/components/Container/Container.styles.js +8 -8
- package/lib/components/Container/Container.styles.js.map +1 -1
- package/lib/components/CustomImage/CustomImage.styles.js +21 -21
- package/lib/components/CustomImage/CustomImage.styles.js.map +1 -1
- package/lib/components/Explore/Explore.js +2 -2
- package/lib/components/Explore/Explore.js.map +1 -1
- package/lib/components/Explore/Explore.styles.js +26 -26
- package/lib/components/Explore/Explore.styles.js.map +1 -1
- package/lib/components/Footer/Footer.styles.js +31 -31
- package/lib/components/Footer/Footer.styles.js.map +1 -1
- package/lib/components/GradientButton/GradientButton.styles.js +5 -5
- package/lib/components/GradientButton/GradientButton.styles.js.map +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.styles.js +5 -5
- package/lib/components/GridGallery/GridModal/GridModal.styles.js.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.styles.js +10 -10
- package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
- package/lib/components/Header/AccountFrame/Mobile/Mobile.styles.js +4 -4
- package/lib/components/Header/AccountFrame/Mobile/Mobile.styles.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.styles.js +8 -8
- package/lib/components/Header/AccountMenu/AccountMenu.styles.js.map +1 -1
- package/lib/components/Header/CartIcon/CartIcon.styles.js +3 -3
- package/lib/components/Header/CartIcon/CartIcon.styles.js.map +1 -1
- package/lib/components/Header/CartModal/Empty/Empty.styles.js +2 -2
- package/lib/components/Header/CartModal/Empty/Empty.styles.js.map +1 -1
- package/lib/components/Header/CartModalV2/CartModal.styles.js +21 -21
- package/lib/components/Header/CartModalV2/CartModal.styles.js.map +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.styles.js +13 -13
- package/lib/components/Header/CartModalV2/Item/Item.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.js +38 -38
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js +14 -14
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.styles.js +4 -4
- package/lib/components/Header/LanguageFrame/Mobile/Mobile.styles.js.map +1 -1
- package/lib/components/Header/LogoIcon/LogoIcon.js +2 -2
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +19 -19
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MicrositeMobileMenu/MicrositeMobileMenu.styles.js +16 -16
- package/lib/components/Header/MicrositeMobileMenu/MicrositeMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.styles.js +20 -20
- package/lib/components/Header/Navigation/Carousel/Carousel.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +23 -23
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js +23 -23
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Overlay/Overlay.styles.js +4 -4
- package/lib/components/Header/Overlay/Overlay.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.js +53 -53
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeaderMobileMenu/ProHeaderMobileMenu.styles.js +13 -18
- package/lib/components/Header/ProHeader/ProHeaderMobileMenu/ProHeaderMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeaderMobileMenu/ProHeaderMobileMenu.styles.mjs +4 -3
- package/lib/components/Header/ProHeader/ProHeaderMobileMenu/ProHeaderMobileMenu.styles.mjs.map +1 -1
- package/lib/components/HeroVideo/HeroVideo.styles.js +7 -7
- package/lib/components/HeroVideo/HeroVideo.styles.js.map +1 -1
- package/lib/components/ImageCarousel/ImageCarousel.styles.js +35 -35
- package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
- package/lib/components/ImageSequence/ImageSequence.styles.js +9 -9
- package/lib/components/ImageSequence/ImageSequence.styles.js.map +1 -1
- package/lib/components/InputSelect/InputSelect.styles.js +5 -5
- package/lib/components/InputSelect/InputSelect.styles.js.map +1 -1
- package/lib/components/LearnMoreLink/LearnMoreLink.styles.js +2 -2
- package/lib/components/LearnMoreLink/LearnMoreLink.styles.js.map +1 -1
- package/lib/components/Loader/Loader.styles.js +11 -11
- package/lib/components/Loader/Loader.styles.js.map +1 -1
- package/lib/components/Loader/Spinner/Spinner.styles.js +4 -4
- package/lib/components/Loader/Spinner/Spinner.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js +2 -2
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.styles.js +9 -9
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.styles.js.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.js +30 -30
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.js.map +1 -1
- package/lib/components/MicrositeBanner/MicrositeBanner.styles.js +12 -12
- package/lib/components/MicrositeBanner/MicrositeBanner.styles.js.map +1 -1
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js +3 -3
- package/lib/components/MicrositeBuyButton/MicrositeBuyButton.js.map +1 -1
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.styles.js +6 -6
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.styles.js.map +1 -1
- package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.js +8 -8
- package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.js.map +1 -1
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js +15 -15
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.styles.js.map +1 -1
- package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.styles.js +11 -11
- package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.styles.js.map +1 -1
- package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.js +13 -13
- package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.js.map +1 -1
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js +23 -23
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +41 -41
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +18 -18
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.styles.js +44 -44
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/_components/SubNavigation/SubNavigation.styles.js +18 -18
- package/lib/components/MicrositeHeader/components/HeaderContent/_components/SubNavigation/SubNavigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.styles.js +23 -23
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.js +18 -18
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.js +26 -26
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.js.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.styles.js +40 -40
- package/lib/components/MicrositeHero/MicrositeHero.styles.js.map +1 -1
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.styles.js +6 -6
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.styles.js.map +1 -1
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.js +35 -35
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.js.map +1 -1
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.js +15 -15
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.js.map +1 -1
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js +13 -13
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.styles.js.map +1 -1
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.js +7 -7
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.js.map +1 -1
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.styles.js +2 -2
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.styles.js.map +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.js +18 -18
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.js.map +1 -1
- package/lib/components/Microsites/MicrositeProductPage.styles.js +9 -9
- package/lib/components/Microsites/MicrositeProductPage.styles.js.map +1 -1
- package/lib/components/MobileModal/MobileModal.styles.js +10 -10
- package/lib/components/MobileModal/MobileModal.styles.js.map +1 -1
- package/lib/components/Modal/Modal.styles.js +2 -2
- package/lib/components/Modal/Modal.styles.js.map +1 -1
- package/lib/components/ModelCompareV3/HeaderShadow.js +4 -4
- package/lib/components/ModelCompareV3/HeaderShadow.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +12 -12
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.js +32 -32
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +8 -8
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js.map +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js.map +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js.map +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +3 -3
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js.map +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +4 -4
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js.map +1 -1
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.js +3 -3
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js +50 -50
- package/lib/components/ModelCompareV4/CompareTable/CompareTable.styles.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/HeaderShadow.js +4 -4
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/HeaderShadow.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/PropertyValueGridItem.js +13 -13
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/PropertyValueGridItem.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGrid.js +2 -2
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGrid.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridBody.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridHeader.js +3 -3
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridHeader.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridItem.js +4 -4
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridItem.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridOverlay.js +3 -3
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/StickyGrid/StickyGridOverlay.js.map +1 -1
- package/lib/components/ModelCompareV4/ModelCompareV4.styles.js +3 -3
- package/lib/components/ModelCompareV4/ModelCompareV4.styles.js.map +1 -1
- package/lib/components/ModelCompareV4/ProductList/ProductList.styles.js +37 -37
- package/lib/components/ModelCompareV4/ProductList/ProductList.styles.js.map +1 -1
- package/lib/components/ModelCompareV4/ProductList/components/ButtonGroup/ButtonGroup.styles.js +7 -7
- package/lib/components/ModelCompareV4/ProductList/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.js +4 -4
- package/lib/components/ModelCompareV4/ProductList/components/ScrollButton/ScrollButton.styles.js.map +1 -1
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.js +14 -14
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.js.map +1 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +11 -11
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.styles.js +3 -3
- package/lib/components/QuantityControls/QuantityControls.styles.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.styles.js +10 -10
- package/lib/components/QuantityInput/QuantityInput.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.styles.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +10 -10
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +16 -16
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.js +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/OptionSelectSection.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/OptionSelectSection.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/Part.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/Part.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.styles.js +8 -8
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.styles.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/DesignCenterBanner/DesignCenterBanner.styles.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/DesignCenterBanner/DesignCenterBanner.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.styles.js +8 -8
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.styles.js +17 -17
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PortItem/PortItem.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PortItem/PortItem.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.styles.js +16 -16
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/ValueTile.js +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/ValueTile.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.styles.js +4 -4
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js +3 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -1
- package/lib/components/Reveal/Reveal.styles.js +4 -4
- package/lib/components/Reveal/Reveal.styles.js.map +1 -1
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.styles.js +5 -5
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.styles.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.js +31 -31
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +8 -8
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Modal/Modal.styles.js +17 -17
- package/lib/components/Search/Modal/Modal.styles.js.map +1 -1
- package/lib/components/SkeletonLoader/SkeletonCircleLoader/SkeletonCircleLoader.styles.js +3 -3
- package/lib/components/SkeletonLoader/SkeletonCircleLoader/SkeletonCircleLoader.styles.js.map +1 -1
- package/lib/components/SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader.styles.js +4 -4
- package/lib/components/SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader.styles.js.map +1 -1
- package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.styles.js +11 -11
- package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.styles.js.map +1 -1
- package/lib/components/StaticModal/StaticModal.styles.js +3 -3
- package/lib/components/StaticModal/StaticModal.styles.js.map +1 -1
- package/lib/components/StorybookUtils/StoryButtonColumn.js +2 -2
- package/lib/components/StorybookUtils/StoryButtonColumn.js.map +1 -1
- package/lib/components/StorybookUtils/StoryButtonRow.js +2 -2
- package/lib/components/StorybookUtils/StoryButtonRow.js.map +1 -1
- package/lib/components/StorybookUtils/StorySection.js +3 -3
- package/lib/components/StorybookUtils/StorySection.js.map +1 -1
- package/lib/components/StorybookUtils/StoryVariants.js +5 -5
- package/lib/components/StorybookUtils/StoryVariants.js.map +1 -1
- package/lib/components/StorybookUtils/StoryWrapper.js +2 -2
- package/lib/components/StorybookUtils/StoryWrapper.js.map +1 -1
- package/lib/components/StyleableSvgImage/StyleableSvgImage.js +2 -2
- package/lib/components/StyleableSvgImage/StyleableSvgImage.js.map +1 -1
- package/lib/components/Toggle/Toggle.styles.js +4 -4
- package/lib/components/Toggle/Toggle.styles.js.map +1 -1
- package/lib/components/Tooltip/Tooltip.styles.js +3 -3
- package/lib/components/Tooltip/Tooltip.styles.js.map +1 -1
- package/lib/components/UICare/UICare.styles.js +13 -13
- package/lib/components/UICare/UICare.styles.js.map +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.js +29 -29
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.js.map +1 -1
- package/lib/constants/mixin.js +3 -3
- package/lib/constants/mixin.js.map +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-lpr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/g3-starter-kit-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-lpr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit-pro.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-starter-kit-pro.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiLpr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiLpr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiTurret.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiTurret.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/efg.js +2 -2
- package/lib/constants/modelCompareData/data/products/efg.js.map +1 -1
- package/lib/constants/modelCompareData/data/products/express.js +2 -2
- package/lib/constants/modelCompareData/data/products/express.js.map +1 -1
- package/lib/constants/modelCompareData/data/products/express7.js +2 -2
- package/lib/constants/modelCompareData/data/products/express7.js.map +1 -1
- package/lib/constants/modelCompareData/data/products/g2ReaderPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g2ReaderPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3ReaderFlex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKitPro.js +2 -2
- package/lib/constants/modelCompareData/data/products/g3StarterKitPro.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.js +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.js +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/theta.js +2 -2
- package/lib/constants/modelCompareData/data/products/theta.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/ucgUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/ucgUltra.js.map +1 -1
- package/lib/constants/modelCompareData/data/products/udr.js +5 -5
- package/lib/constants/modelCompareData/data/products/udr.js.map +1 -1
- package/lib/constants/modelCompareData/data/products/uispSwitch.js +2 -2
- package/lib/constants/modelCompareData/data/products/uispSwitch.js.map +1 -1
- package/lib/constants/modelCompareData/data/products/uispSwitchPlus.js +2 -2
- package/lib/constants/modelCompareData/data/products/uispSwitchPlus.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var styledComponents = require('styled-components');
|
|
4
4
|
var layout = require('../../constants/layout.js');
|
|
5
5
|
var theme = require('../../constants/theme.js');
|
|
6
6
|
var types = require('../../contexts/MenuContext/types.js');
|
|
@@ -26,7 +26,7 @@ const HEADER_GAP_SIZE_ICONS = 15;
|
|
|
26
26
|
const HEADER_ICON_SIZE = 16;
|
|
27
27
|
const HEADER_ACCOUNT_ICON_SIZE = 24;
|
|
28
28
|
const HEADER_BUTTON_SIZE = 32;
|
|
29
|
-
const cssStickyEmbedHeader =
|
|
29
|
+
const cssStickyEmbedHeader = styledComponents.css`
|
|
30
30
|
left: 0;
|
|
31
31
|
position: sticky;
|
|
32
32
|
padding-top: env(safe-area-inset-top);
|
|
@@ -37,17 +37,17 @@ const cssStickyEmbedHeader = styled.css`
|
|
|
37
37
|
backdrop-filter: blur(4px);
|
|
38
38
|
background-color: rgb(255 255 255 / 0.9);
|
|
39
39
|
`;
|
|
40
|
-
const Container =
|
|
40
|
+
const Container = styledComponents.styled(Container$1.Container)`
|
|
41
41
|
@media ${layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {
|
|
42
42
|
padding: 0;
|
|
43
43
|
}
|
|
44
44
|
`;
|
|
45
|
-
const Anchor =
|
|
45
|
+
const Anchor = styledComponents.styled.a`
|
|
46
46
|
text-decoration: none;
|
|
47
47
|
`;
|
|
48
|
-
const SvgIcon =
|
|
49
|
-
const CartIcon =
|
|
50
|
-
const IconWrap =
|
|
48
|
+
const SvgIcon = styledComponents.styled(StyleableSvgImage.StyleableSvgImage)``;
|
|
49
|
+
const CartIcon = styledComponents.styled(CartIcon$1.CartIcon)``;
|
|
50
|
+
const IconWrap = styledComponents.styled.div`
|
|
51
51
|
position: relative;
|
|
52
52
|
display: flex;
|
|
53
53
|
justify-content: center;
|
|
@@ -72,7 +72,7 @@ const IconWrap = styled.styled.div`
|
|
|
72
72
|
|
|
73
73
|
${({
|
|
74
74
|
$hideOnMobile
|
|
75
|
-
}) => $hideOnMobile &&
|
|
75
|
+
}) => $hideOnMobile && styledComponents.css`
|
|
76
76
|
@media ${layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {
|
|
77
77
|
display: none;
|
|
78
78
|
}
|
|
@@ -80,13 +80,13 @@ const IconWrap = styled.styled.div`
|
|
|
80
80
|
|
|
81
81
|
${({
|
|
82
82
|
$hideOnDesktop
|
|
83
|
-
}) => $hideOnDesktop &&
|
|
83
|
+
}) => $hideOnDesktop && styledComponents.css`
|
|
84
84
|
@media ${layout.BREAKPOINTS.TOP_NAV_MOBILE_UP} {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
|
87
87
|
`}
|
|
88
88
|
`;
|
|
89
|
-
const IconsWrap =
|
|
89
|
+
const IconsWrap = styledComponents.styled.div`
|
|
90
90
|
display: flex;
|
|
91
91
|
align-items: center;
|
|
92
92
|
margin-left: -6px;
|
|
@@ -96,7 +96,7 @@ const IconsWrap = styled.styled.div`
|
|
|
96
96
|
margin-right: ${HEADER_GAP_SIZE_SMALL - 6}px;
|
|
97
97
|
}
|
|
98
98
|
`;
|
|
99
|
-
const MenuItemWrap =
|
|
99
|
+
const MenuItemWrap = styledComponents.styled.div`
|
|
100
100
|
display: flex;
|
|
101
101
|
flex-direction: row;
|
|
102
102
|
height: ${HEADER_HEIGHT}px;
|
|
@@ -113,18 +113,18 @@ const MenuItemWrap = styled.styled.div`
|
|
|
113
113
|
|
|
114
114
|
${({
|
|
115
115
|
$hideOnMobile
|
|
116
|
-
}) => $hideOnMobile &&
|
|
116
|
+
}) => $hideOnMobile && styledComponents.css`
|
|
117
117
|
@media ${layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {
|
|
118
118
|
display: none;
|
|
119
119
|
}
|
|
120
120
|
`}
|
|
121
121
|
`;
|
|
122
|
-
const MenuItemLabel =
|
|
122
|
+
const MenuItemLabel = styledComponents.styled.div`
|
|
123
123
|
display: flex;
|
|
124
124
|
align-items: center;
|
|
125
125
|
gap: 4px;
|
|
126
126
|
`;
|
|
127
|
-
const LogoIconWrap =
|
|
127
|
+
const LogoIconWrap = styledComponents.styled.div`
|
|
128
128
|
display: flex;
|
|
129
129
|
justify-content: center;
|
|
130
130
|
align-items: center;
|
|
@@ -136,11 +136,11 @@ const LogoIconWrap = styled.styled.div`
|
|
|
136
136
|
|
|
137
137
|
${({
|
|
138
138
|
$burger
|
|
139
|
-
}) => $burger &&
|
|
139
|
+
}) => $burger && styledComponents.css`
|
|
140
140
|
margin-left: ${HEADER_GAP_SIZE_SMALL}px;
|
|
141
141
|
`}
|
|
142
142
|
`;
|
|
143
|
-
const SiteTitleWrap =
|
|
143
|
+
const SiteTitleWrap = styledComponents.styled.div`
|
|
144
144
|
align-items: center;
|
|
145
145
|
color: #212327;
|
|
146
146
|
display: flex;
|
|
@@ -150,7 +150,7 @@ const SiteTitleWrap = styled.styled.div`
|
|
|
150
150
|
line-height: 28px;
|
|
151
151
|
white-space: nowrap;
|
|
152
152
|
`;
|
|
153
|
-
const ContinueShoppingButton =
|
|
153
|
+
const ContinueShoppingButton = styledComponents.styled(Button.Button)`
|
|
154
154
|
height: ${HEADER_HEIGHT}px;
|
|
155
155
|
color: #50565e;
|
|
156
156
|
font-size: 12px;
|
|
@@ -166,10 +166,10 @@ const ContinueShoppingButton = styled.styled(Button.Button)`
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
`;
|
|
169
|
-
const BackIconWrap =
|
|
169
|
+
const BackIconWrap = styledComponents.styled.div`
|
|
170
170
|
margin-right: 4px;
|
|
171
171
|
`;
|
|
172
|
-
const MenuItemsWrap =
|
|
172
|
+
const MenuItemsWrap = styledComponents.styled.div`
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-flow: row nowrap;
|
|
175
175
|
align-items: center;
|
|
@@ -178,7 +178,7 @@ const MenuItemsWrap = styled.styled.div`
|
|
|
178
178
|
/* Not sure why is the overflow hidden here. In one of the storybook cases it caused clipping. */
|
|
179
179
|
/* overflow: hidden; */
|
|
180
180
|
`;
|
|
181
|
-
const LeftWrap =
|
|
181
|
+
const LeftWrap = styledComponents.styled.div`
|
|
182
182
|
display: flex;
|
|
183
183
|
flex-grow: 1;
|
|
184
184
|
flex-direction: row;
|
|
@@ -186,7 +186,7 @@ const LeftWrap = styled.styled.div`
|
|
|
186
186
|
|
|
187
187
|
${({
|
|
188
188
|
$static
|
|
189
|
-
}) => !$static &&
|
|
189
|
+
}) => !$static && styledComponents.css`
|
|
190
190
|
@media ${layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {
|
|
191
191
|
position: absolute;
|
|
192
192
|
left: 50%;
|
|
@@ -194,14 +194,14 @@ const LeftWrap = styled.styled.div`
|
|
|
194
194
|
}
|
|
195
195
|
`}
|
|
196
196
|
`;
|
|
197
|
-
const ModalWrap =
|
|
197
|
+
const ModalWrap = styledComponents.styled(Container)`
|
|
198
198
|
flex: 0;
|
|
199
199
|
margin: 0 auto;
|
|
200
200
|
z-index: ${theme.theme.zIndex.header - 1};
|
|
201
201
|
|
|
202
202
|
${({
|
|
203
203
|
$fullWidth
|
|
204
|
-
}) => $fullWidth &&
|
|
204
|
+
}) => $fullWidth && styledComponents.css`
|
|
205
205
|
padding: 0;
|
|
206
206
|
`}
|
|
207
207
|
|
|
@@ -209,7 +209,7 @@ const ModalWrap = styled.styled(Container)`
|
|
|
209
209
|
position: relative;
|
|
210
210
|
}
|
|
211
211
|
`;
|
|
212
|
-
const ModalInnerWrap =
|
|
212
|
+
const ModalInnerWrap = styledComponents.styled.div`
|
|
213
213
|
position: absolute;
|
|
214
214
|
top: ${({
|
|
215
215
|
$top
|
|
@@ -223,13 +223,13 @@ const ModalInnerWrap = styled.styled.div`
|
|
|
223
223
|
}) => {
|
|
224
224
|
switch ($modal) {
|
|
225
225
|
case types.ModalId.Support:
|
|
226
|
-
return
|
|
226
|
+
return styledComponents.css`
|
|
227
227
|
right: 106px;
|
|
228
228
|
`;
|
|
229
229
|
case types.ModalId.Cart:
|
|
230
230
|
case types.ModalId.Account:
|
|
231
231
|
case types.ModalId.CartPreview:
|
|
232
|
-
return
|
|
232
|
+
return styledComponents.css`
|
|
233
233
|
${$isLeft ? "left" : "right"}: ${$pro ? 0 : 32}px;
|
|
234
234
|
|
|
235
235
|
@media ${layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {
|
|
@@ -241,21 +241,21 @@ const ModalInnerWrap = styled.styled.div`
|
|
|
241
241
|
}
|
|
242
242
|
}}
|
|
243
243
|
`;
|
|
244
|
-
const InnerLeftWrap =
|
|
244
|
+
const InnerLeftWrap = styledComponents.styled.div`
|
|
245
245
|
display: flex;
|
|
246
246
|
flex: 1;
|
|
247
247
|
justify-content: ${({
|
|
248
248
|
$center
|
|
249
249
|
}) => $center ? "center" : "unset"};
|
|
250
250
|
`;
|
|
251
|
-
const LinkItem =
|
|
251
|
+
const LinkItem = styledComponents.styled(MenuItem.MenuItem)`
|
|
252
252
|
margin: 0 6px;
|
|
253
253
|
|
|
254
254
|
@media ${layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {
|
|
255
255
|
display: none;
|
|
256
256
|
}
|
|
257
257
|
`;
|
|
258
|
-
const SearchTabWrap =
|
|
258
|
+
const SearchTabWrap = styledComponents.styled.div`
|
|
259
259
|
display: block;
|
|
260
260
|
width: 100%;
|
|
261
261
|
max-width: 680px;
|
|
@@ -268,20 +268,20 @@ const SearchTabWrap = styled.styled.div`
|
|
|
268
268
|
*/
|
|
269
269
|
${({
|
|
270
270
|
hide
|
|
271
|
-
}) => hide &&
|
|
271
|
+
}) => hide && styledComponents.css`
|
|
272
272
|
opacity: 0;
|
|
273
273
|
position: absolute;
|
|
274
274
|
top: -9999px;
|
|
275
275
|
left: -9999px;
|
|
276
276
|
`}
|
|
277
277
|
`;
|
|
278
|
-
const StorePickerModalWrap =
|
|
278
|
+
const StorePickerModalWrap = styledComponents.styled.div`
|
|
279
279
|
position: absolute;
|
|
280
280
|
left: 64px;
|
|
281
281
|
top: 50px;
|
|
282
282
|
z-index: ${theme.theme.zIndex.modal};
|
|
283
283
|
`;
|
|
284
|
-
const SkeletonCircleLoader =
|
|
284
|
+
const SkeletonCircleLoader = styledComponents.styled(SkeletonCircleLoader$1.SkeletonCircleLoader)`
|
|
285
285
|
margin: 0;
|
|
286
286
|
|
|
287
287
|
/**
|
|
@@ -290,20 +290,20 @@ const SkeletonCircleLoader = styled.styled(SkeletonCircleLoader$1.SkeletonCircle
|
|
|
290
290
|
*/
|
|
291
291
|
${({
|
|
292
292
|
$overrideWidth
|
|
293
|
-
}) => $overrideWidth &&
|
|
293
|
+
}) => $overrideWidth && styledComponents.css`
|
|
294
294
|
width: ${$overrideWidth}px;
|
|
295
295
|
`}
|
|
296
296
|
`;
|
|
297
|
-
const Wrap =
|
|
297
|
+
const Wrap = styledComponents.styled.div`
|
|
298
298
|
position: relative;
|
|
299
299
|
`;
|
|
300
|
-
const HeaderWrap =
|
|
300
|
+
const HeaderWrap = styledComponents.styled.div`
|
|
301
301
|
position: relative;
|
|
302
302
|
height: ${({
|
|
303
303
|
noWrapHeight
|
|
304
304
|
}) => noWrapHeight ? "0" : `${HEADER_HEIGHT}px`};
|
|
305
305
|
`;
|
|
306
|
-
const Header =
|
|
306
|
+
const Header = styledComponents.styled.header`
|
|
307
307
|
z-index: ${theme.theme.zIndex.header};
|
|
308
308
|
position: ${({
|
|
309
309
|
$sticky
|
|
@@ -329,7 +329,7 @@ const Header = styled.styled.header`
|
|
|
329
329
|
$transparent
|
|
330
330
|
}) => $transparent ? "none" : theme.theme.colors.menu.base[$motif]};
|
|
331
331
|
`;
|
|
332
|
-
const AvatarWrap =
|
|
332
|
+
const AvatarWrap = styledComponents.styled.div`
|
|
333
333
|
align-items: center;
|
|
334
334
|
border: 1px solid #006fff;
|
|
335
335
|
box-shadow: none;
|
|
@@ -352,7 +352,7 @@ const AvatarWrap = styled.styled.div`
|
|
|
352
352
|
object-fit: cover;
|
|
353
353
|
}
|
|
354
354
|
`;
|
|
355
|
-
const SrContainer =
|
|
355
|
+
const SrContainer = styledComponents.styled.div`
|
|
356
356
|
position: absolute;
|
|
357
357
|
width: 1px;
|
|
358
358
|
height: 1px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.styles.js","sources":["../../../src/components/Header/Header.styles.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { css, styled } from \"styled-components\";\n\nimport { BREAKPOINTS, CUSTOM_WIDTH } from \"../../constants/layout\";\nimport { theme } from \"../../constants/theme\";\nimport { ModalId } from \"../../contexts/MenuContext/types\";\nimport { Button } from \"../Button\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { WrapPadding } from \"../Container/Container.styles\";\nimport { SkeletonCircleLoader as SkeletonCircleLoaderBase } from \"../SkeletonLoader\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { CartIcon as CartIconBase } from \"./CartIcon\";\nimport { MenuItem } from \"./MenuItem\";\n\nexport const HEADER_HEIGHT = 48;\n\nexport const HEADER_GAP_SIZE = 20;\nexport const HEADER_GAP_SIZE_NARROW = 10;\nexport const HEADER_GAP_SIZE_SMALL = 16;\nexport const HEADER_GAP_SIZE_ICONS = 15;\n\nexport const HEADER_ICON_SIZE = 16;\nexport const HEADER_ACCOUNT_ICON_SIZE = 24;\n\nexport const HEADER_BUTTON_SIZE = 32;\n\n// #############################################################################\n// Mixins\n// #############################################################################\nexport const cssStickyEmbedHeader = css`\n left: 0;\n position: sticky;\n padding-top: env(safe-area-inset-top);\n right: 0;\n top: 0;\n z-index: ${theme.zIndex.header};\n\n backdrop-filter: blur(4px);\n background-color: rgb(255 255 255 / 0.9);\n`;\n\n// #############################################################################\n// Components\n// #############################################################################\n\nexport const Container = styled(ContainerBase)`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n padding: 0;\n }\n`;\n\nexport const Anchor = styled.a`\n text-decoration: none;\n`;\n\nexport const SvgIcon = styled(StyleableSvgImage)``;\n\nexport const CartIcon = styled(CartIconBase)``;\n\nexport const IconWrap = styled.div<{\n $motif: Motif;\n $hideOnMobile?: boolean;\n $hideOnDesktop?: boolean;\n}>`\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: ${HEADER_BUTTON_SIZE}px;\n width: ${HEADER_BUTTON_SIZE}px;\n cursor: pointer;\n\n /* Enforce svg color, disabling hover color change */\n ${SvgIcon},\n ${CartIcon} {\n color: ${({ $motif }) => theme.colors.menu.text[$motif]};\n }\n\n &:hover {\n color: ${({ $motif }) => theme.colors.menu.active[$motif]};\n }\n\n ${({ $hideOnMobile }) =>\n $hideOnMobile &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n display: none;\n }\n `}\n\n ${({ $hideOnDesktop }) =>\n $hideOnDesktop &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_UP} {\n display: none;\n }\n `}\n`;\n\nexport const IconsWrap = styled.div`\n display: flex;\n align-items: center;\n margin-left: -6px;\n margin-right: -5px;\n\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n margin-right: ${HEADER_GAP_SIZE_SMALL - 6}px;\n }\n`;\n\nexport const MenuItemWrap = styled.div<{\n $narrow?: boolean;\n $hideOnMobile?: boolean;\n}>`\n display: flex;\n flex-direction: row;\n height: ${HEADER_HEIGHT}px;\n gap: ${({ $narrow }) =>\n $narrow ? HEADER_GAP_SIZE_NARROW : HEADER_GAP_SIZE}px;\n margin-left: ${HEADER_GAP_SIZE}px;\n\n /* HACK hardcoded breakpoint based on actual item widths and spacings */\n @media (max-width: ${CUSTOM_WIDTH.TOP_NAV_DESKTOP_COMPACT}px) {\n gap: ${HEADER_GAP_SIZE_SMALL}px;\n margin-left: ${HEADER_GAP_SIZE_SMALL}px;\n }\n\n ${({ $hideOnMobile }) =>\n $hideOnMobile &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n display: none;\n }\n `}\n`;\n\nexport const MenuItemLabel = styled.div`\n display: flex;\n align-items: center;\n gap: 4px;\n`;\n\ntype LogoIconWrapProps = {\n $motif: Motif;\n $burger?: boolean;\n};\nexport const LogoIconWrap = styled.div<LogoIconWrapProps>`\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n height: ${HEADER_HEIGHT}px;\n color: ${({ $motif }) => theme.colors.menu.text[$motif]};\n\n ${({ $burger }) =>\n $burger &&\n css`\n margin-left: ${HEADER_GAP_SIZE_SMALL}px;\n `}\n`;\n\nexport const SiteTitleWrap = styled.div`\n align-items: center;\n color: #212327;\n display: flex;\n font-size: 20px;\n font-weight: 700;\n height: ${HEADER_HEIGHT}px;\n line-height: 28px;\n white-space: nowrap;\n`;\n\nexport const ContinueShoppingButton = styled(Button)<{\n $motif: Motif;\n}>`\n height: ${HEADER_HEIGHT}px;\n color: #50565e;\n font-size: 12px;\n line-height: ${16 / 12};\n padding: 8px 4px;\n\n /* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */\n @media (hover: hover) {\n &:hover {\n color: ${({ $motif }) => theme.colors.menu.active[$motif]};\n }\n }\n`;\n\nexport const BackIconWrap = styled.div`\n margin-right: 4px;\n`;\n\nexport const MenuItemsWrap = styled.div`\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-content: space-between;\n\n /* Not sure why is the overflow hidden here. In one of the storybook cases it caused clipping. */\n /* overflow: hidden; */\n`;\n\nexport const LeftWrap = styled.div<{ $static?: boolean }>`\n display: flex;\n flex-grow: 1;\n flex-direction: row;\n align-items: center;\n\n ${({ $static }) =>\n !$static &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n `}\n`;\n\nexport const ModalWrap = styled(Container)<{\n $fullWidth?: boolean;\n}>`\n flex: 0;\n margin: 0 auto;\n z-index: ${theme.zIndex.header - 1};\n\n ${({ $fullWidth }) =>\n $fullWidth &&\n css`\n padding: 0;\n `}\n\n ${WrapPadding} {\n position: relative;\n }\n`;\n\nexport const ModalInnerWrap = styled.div<{\n $modal: ModalId;\n $pro?: boolean;\n $isLeft?: boolean;\n $top?: number;\n}>`\n position: absolute;\n top: ${({ $top }) => $top ?? 10}px;\n z-index: ${theme.zIndex.modal};\n\n ${({ $modal, $pro, $isLeft }) => {\n switch ($modal) {\n case ModalId.Support:\n return css`\n right: 106px;\n `;\n\n case ModalId.Cart:\n case ModalId.Account:\n case ModalId.CartPreview:\n return css`\n ${$isLeft ? \"left\" : \"right\"}: ${$pro ? 0 : 32}px;\n\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n ${$isLeft ? \"left\" : \"right\"}: 10px;\n }\n `;\n\n default:\n return;\n }\n }}\n`;\n\nexport const InnerLeftWrap = styled.div<{ $center: boolean }>`\n display: flex;\n flex: 1;\n justify-content: ${({ $center }) => ($center ? \"center\" : \"unset\")};\n`;\n\nexport const LinkItem = styled(MenuItem)`\n margin: 0 6px;\n\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n display: none;\n }\n`;\n\nexport const SearchTabWrap = styled.div<{ hide: boolean }>`\n display: block;\n width: 100%;\n max-width: 680px;\n margin: 0 8px;\n\n /**\n * * hack: search tab hidden with opacity ad position, so search input can be referenced (searchInputRef)\n * * and focus can be triggered on the search input onClick\n * @see https://css-tricks.com/comparing-various-ways-to-hide-things-in-css/#aa-method-4-the-position-property\n */\n ${({ hide }) =>\n hide &&\n css`\n opacity: 0;\n position: absolute;\n top: -9999px;\n left: -9999px;\n `}\n`;\n\nexport const StorePickerModalWrap = styled.div`\n position: absolute;\n left: 64px;\n top: 50px;\n z-index: ${theme.zIndex.modal};\n`;\n\nexport const SkeletonCircleLoader = styled(SkeletonCircleLoaderBase)<{\n $overrideWidth?: number;\n}>`\n margin: 0;\n\n /**\n * * This overrides width that is set by diameter prop.\n * If used and is different than set diameter, the circle might not be perfectly round.\n */\n ${({ $overrideWidth }) =>\n $overrideWidth &&\n css`\n width: ${$overrideWidth}px;\n `}\n`;\n\nexport const Wrap = styled.div`\n position: relative;\n`;\n\nexport const HeaderWrap = styled.div<{\n noWrapHeight?: boolean;\n}>`\n position: relative;\n height: ${({ noWrapHeight }) => (noWrapHeight ? \"0\" : `${HEADER_HEIGHT}px`)};\n`;\n\nexport const Header = styled.header<{\n $motif: Motif;\n $sticky?: boolean;\n $transparent?: boolean;\n $stickyPadding?: string;\n}>`\n z-index: ${theme.zIndex.header};\n position: ${({ $sticky }) => ($sticky ? \"fixed\" : \"static\")};\n top: 0;\n width: ${({ $stickyPadding }) =>\n $stickyPadding ? `calc(100% - ${$stickyPadding})` : \"100%\"};\n height: ${HEADER_HEIGHT}px;\n background-color: ${({ $motif, $transparent }) =>\n $transparent\n ? theme.colors.menu.transparent[$motif]\n : theme.colors.menu.base[$motif]};\n\n backdrop-filter: ${({ $transparent }) =>\n $transparent ? \"blur(4px)\" : \"none\"};\n\n /* HACK to fix the white border glitch, quick solution */\n box-shadow: 0 0 0 1px\n ${({ $motif, $transparent }) =>\n $transparent ? \"none\" : theme.colors.menu.base[$motif]};\n`;\n\nexport const AvatarWrap = styled.div`\n align-items: center;\n border: 1px solid #006fff;\n box-shadow: none;\n cursor: pointer;\n display: flex;\n height: 24px;\n justify-content: center;\n margin-bottom: 0;\n outline: 1px solid #006fff;\n overflow: hidden;\n width: 24px;\n background: #ededf0;\n border-radius: 50%;\n\n img {\n height: 24px;\n min-height: 24px;\n min-width: 24px;\n width: 24px;\n object-fit: cover;\n }\n`;\n\nexport const SrContainer = styled.div`\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n`;\n"],"names":["HEADER_HEIGHT","HEADER_GAP_SIZE","HEADER_GAP_SIZE_NARROW","HEADER_GAP_SIZE_SMALL","HEADER_GAP_SIZE_ICONS","HEADER_ICON_SIZE","HEADER_ACCOUNT_ICON_SIZE","HEADER_BUTTON_SIZE","cssStickyEmbedHeader","css","theme","zIndex","header","Container","styled","ContainerBase","BREAKPOINTS","TOP_NAV_MOBILE_AND_DOWN","Anchor","a","SvgIcon","StyleableSvgImage","CartIcon","CartIconBase","IconWrap","div","$motif","colors","menu","text","active","$hideOnMobile","$hideOnDesktop","TOP_NAV_MOBILE_UP","IconsWrap","MenuItemWrap","$narrow","CUSTOM_WIDTH","TOP_NAV_DESKTOP_COMPACT","MenuItemLabel","LogoIconWrap","$burger","SiteTitleWrap","ContinueShoppingButton","Button","BackIconWrap","MenuItemsWrap","LeftWrap","$static","ModalWrap","$fullWidth","WrapPadding","ModalInnerWrap","$top","modal","$modal","$pro","$isLeft","ModalId","Support","Cart","Account","CartPreview","InnerLeftWrap","$center","LinkItem","MenuItem","SearchTabWrap","hide","StorePickerModalWrap","SkeletonCircleLoader","SkeletonCircleLoaderBase","$overrideWidth","Wrap","HeaderWrap","noWrapHeight","Header","$sticky","$stickyPadding","$transparent","transparent","base","AvatarWrap","SrContainer"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcO,MAAMA,aAAgB,GAAA,EAAA;AAEtB,MAAMC,eAAkB,GAAA,EAAA;AACxB,MAAMC,sBAAyB,GAAA,EAAA;AAC/B,MAAMC,qBAAwB,GAAA,EAAA;AAC9B,MAAMC,qBAAwB,GAAA,EAAA;AAE9B,MAAMC,gBAAmB,GAAA,EAAA;AACzB,MAAMC,wBAA2B,GAAA,EAAA;AAEjC,MAAMC,kBAAqB,GAAA,EAAA;AAK3B,MAA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A,MAAA,CAAAW,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"Header.styles.js","sources":["../../../src/components/Header/Header.styles.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { css, styled } from \"styled-components\";\n\nimport { BREAKPOINTS, CUSTOM_WIDTH } from \"../../constants/layout\";\nimport { theme } from \"../../constants/theme\";\nimport { ModalId } from \"../../contexts/MenuContext/types\";\nimport { Button } from \"../Button\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { WrapPadding } from \"../Container/Container.styles\";\nimport { SkeletonCircleLoader as SkeletonCircleLoaderBase } from \"../SkeletonLoader\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { CartIcon as CartIconBase } from \"./CartIcon\";\nimport { MenuItem } from \"./MenuItem\";\n\nexport const HEADER_HEIGHT = 48;\n\nexport const HEADER_GAP_SIZE = 20;\nexport const HEADER_GAP_SIZE_NARROW = 10;\nexport const HEADER_GAP_SIZE_SMALL = 16;\nexport const HEADER_GAP_SIZE_ICONS = 15;\n\nexport const HEADER_ICON_SIZE = 16;\nexport const HEADER_ACCOUNT_ICON_SIZE = 24;\n\nexport const HEADER_BUTTON_SIZE = 32;\n\n// #############################################################################\n// Mixins\n// #############################################################################\nexport const cssStickyEmbedHeader = css`\n left: 0;\n position: sticky;\n padding-top: env(safe-area-inset-top);\n right: 0;\n top: 0;\n z-index: ${theme.zIndex.header};\n\n backdrop-filter: blur(4px);\n background-color: rgb(255 255 255 / 0.9);\n`;\n\n// #############################################################################\n// Components\n// #############################################################################\n\nexport const Container = styled(ContainerBase)`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n padding: 0;\n }\n`;\n\nexport const Anchor = styled.a`\n text-decoration: none;\n`;\n\nexport const SvgIcon = styled(StyleableSvgImage)``;\n\nexport const CartIcon = styled(CartIconBase)``;\n\nexport const IconWrap = styled.div<{\n $motif: Motif;\n $hideOnMobile?: boolean;\n $hideOnDesktop?: boolean;\n}>`\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: ${HEADER_BUTTON_SIZE}px;\n width: ${HEADER_BUTTON_SIZE}px;\n cursor: pointer;\n\n /* Enforce svg color, disabling hover color change */\n ${SvgIcon},\n ${CartIcon} {\n color: ${({ $motif }) => theme.colors.menu.text[$motif]};\n }\n\n &:hover {\n color: ${({ $motif }) => theme.colors.menu.active[$motif]};\n }\n\n ${({ $hideOnMobile }) =>\n $hideOnMobile &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n display: none;\n }\n `}\n\n ${({ $hideOnDesktop }) =>\n $hideOnDesktop &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_UP} {\n display: none;\n }\n `}\n`;\n\nexport const IconsWrap = styled.div`\n display: flex;\n align-items: center;\n margin-left: -6px;\n margin-right: -5px;\n\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n margin-right: ${HEADER_GAP_SIZE_SMALL - 6}px;\n }\n`;\n\nexport const MenuItemWrap = styled.div<{\n $narrow?: boolean;\n $hideOnMobile?: boolean;\n}>`\n display: flex;\n flex-direction: row;\n height: ${HEADER_HEIGHT}px;\n gap: ${({ $narrow }) =>\n $narrow ? HEADER_GAP_SIZE_NARROW : HEADER_GAP_SIZE}px;\n margin-left: ${HEADER_GAP_SIZE}px;\n\n /* HACK hardcoded breakpoint based on actual item widths and spacings */\n @media (max-width: ${CUSTOM_WIDTH.TOP_NAV_DESKTOP_COMPACT}px) {\n gap: ${HEADER_GAP_SIZE_SMALL}px;\n margin-left: ${HEADER_GAP_SIZE_SMALL}px;\n }\n\n ${({ $hideOnMobile }) =>\n $hideOnMobile &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n display: none;\n }\n `}\n`;\n\nexport const MenuItemLabel = styled.div`\n display: flex;\n align-items: center;\n gap: 4px;\n`;\n\ntype LogoIconWrapProps = {\n $motif: Motif;\n $burger?: boolean;\n};\nexport const LogoIconWrap = styled.div<LogoIconWrapProps>`\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n height: ${HEADER_HEIGHT}px;\n color: ${({ $motif }) => theme.colors.menu.text[$motif]};\n\n ${({ $burger }) =>\n $burger &&\n css`\n margin-left: ${HEADER_GAP_SIZE_SMALL}px;\n `}\n`;\n\nexport const SiteTitleWrap = styled.div`\n align-items: center;\n color: #212327;\n display: flex;\n font-size: 20px;\n font-weight: 700;\n height: ${HEADER_HEIGHT}px;\n line-height: 28px;\n white-space: nowrap;\n`;\n\nexport const ContinueShoppingButton = styled(Button)<{\n $motif: Motif;\n}>`\n height: ${HEADER_HEIGHT}px;\n color: #50565e;\n font-size: 12px;\n line-height: ${16 / 12};\n padding: 8px 4px;\n\n /* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */\n @media (hover: hover) {\n &:hover {\n color: ${({ $motif }) => theme.colors.menu.active[$motif]};\n }\n }\n`;\n\nexport const BackIconWrap = styled.div`\n margin-right: 4px;\n`;\n\nexport const MenuItemsWrap = styled.div`\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-content: space-between;\n\n /* Not sure why is the overflow hidden here. In one of the storybook cases it caused clipping. */\n /* overflow: hidden; */\n`;\n\nexport const LeftWrap = styled.div<{ $static?: boolean }>`\n display: flex;\n flex-grow: 1;\n flex-direction: row;\n align-items: center;\n\n ${({ $static }) =>\n !$static &&\n css`\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n `}\n`;\n\nexport const ModalWrap = styled(Container)<{\n $fullWidth?: boolean;\n}>`\n flex: 0;\n margin: 0 auto;\n z-index: ${theme.zIndex.header - 1};\n\n ${({ $fullWidth }) =>\n $fullWidth &&\n css`\n padding: 0;\n `}\n\n ${WrapPadding} {\n position: relative;\n }\n`;\n\nexport const ModalInnerWrap = styled.div<{\n $modal: ModalId;\n $pro?: boolean;\n $isLeft?: boolean;\n $top?: number;\n}>`\n position: absolute;\n top: ${({ $top }) => $top ?? 10}px;\n z-index: ${theme.zIndex.modal};\n\n ${({ $modal, $pro, $isLeft }) => {\n switch ($modal) {\n case ModalId.Support:\n return css`\n right: 106px;\n `;\n\n case ModalId.Cart:\n case ModalId.Account:\n case ModalId.CartPreview:\n return css`\n ${$isLeft ? \"left\" : \"right\"}: ${$pro ? 0 : 32}px;\n\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n ${$isLeft ? \"left\" : \"right\"}: 10px;\n }\n `;\n\n default:\n return;\n }\n }}\n`;\n\nexport const InnerLeftWrap = styled.div<{ $center: boolean }>`\n display: flex;\n flex: 1;\n justify-content: ${({ $center }) => ($center ? \"center\" : \"unset\")};\n`;\n\nexport const LinkItem = styled(MenuItem)`\n margin: 0 6px;\n\n @media ${BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN} {\n display: none;\n }\n`;\n\nexport const SearchTabWrap = styled.div<{ hide: boolean }>`\n display: block;\n width: 100%;\n max-width: 680px;\n margin: 0 8px;\n\n /**\n * * hack: search tab hidden with opacity ad position, so search input can be referenced (searchInputRef)\n * * and focus can be triggered on the search input onClick\n * @see https://css-tricks.com/comparing-various-ways-to-hide-things-in-css/#aa-method-4-the-position-property\n */\n ${({ hide }) =>\n hide &&\n css`\n opacity: 0;\n position: absolute;\n top: -9999px;\n left: -9999px;\n `}\n`;\n\nexport const StorePickerModalWrap = styled.div`\n position: absolute;\n left: 64px;\n top: 50px;\n z-index: ${theme.zIndex.modal};\n`;\n\nexport const SkeletonCircleLoader = styled(SkeletonCircleLoaderBase)<{\n $overrideWidth?: number;\n}>`\n margin: 0;\n\n /**\n * * This overrides width that is set by diameter prop.\n * If used and is different than set diameter, the circle might not be perfectly round.\n */\n ${({ $overrideWidth }) =>\n $overrideWidth &&\n css`\n width: ${$overrideWidth}px;\n `}\n`;\n\nexport const Wrap = styled.div`\n position: relative;\n`;\n\nexport const HeaderWrap = styled.div<{\n noWrapHeight?: boolean;\n}>`\n position: relative;\n height: ${({ noWrapHeight }) => (noWrapHeight ? \"0\" : `${HEADER_HEIGHT}px`)};\n`;\n\nexport const Header = styled.header<{\n $motif: Motif;\n $sticky?: boolean;\n $transparent?: boolean;\n $stickyPadding?: string;\n}>`\n z-index: ${theme.zIndex.header};\n position: ${({ $sticky }) => ($sticky ? \"fixed\" : \"static\")};\n top: 0;\n width: ${({ $stickyPadding }) =>\n $stickyPadding ? `calc(100% - ${$stickyPadding})` : \"100%\"};\n height: ${HEADER_HEIGHT}px;\n background-color: ${({ $motif, $transparent }) =>\n $transparent\n ? theme.colors.menu.transparent[$motif]\n : theme.colors.menu.base[$motif]};\n\n backdrop-filter: ${({ $transparent }) =>\n $transparent ? \"blur(4px)\" : \"none\"};\n\n /* HACK to fix the white border glitch, quick solution */\n box-shadow: 0 0 0 1px\n ${({ $motif, $transparent }) =>\n $transparent ? \"none\" : theme.colors.menu.base[$motif]};\n`;\n\nexport const AvatarWrap = styled.div`\n align-items: center;\n border: 1px solid #006fff;\n box-shadow: none;\n cursor: pointer;\n display: flex;\n height: 24px;\n justify-content: center;\n margin-bottom: 0;\n outline: 1px solid #006fff;\n overflow: hidden;\n width: 24px;\n background: #ededf0;\n border-radius: 50%;\n\n img {\n height: 24px;\n min-height: 24px;\n min-width: 24px;\n width: 24px;\n object-fit: cover;\n }\n`;\n\nexport const SrContainer = styled.div`\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n`;\n"],"names":["HEADER_HEIGHT","HEADER_GAP_SIZE","HEADER_GAP_SIZE_NARROW","HEADER_GAP_SIZE_SMALL","HEADER_GAP_SIZE_ICONS","HEADER_ICON_SIZE","HEADER_ACCOUNT_ICON_SIZE","HEADER_BUTTON_SIZE","cssStickyEmbedHeader","css","theme","zIndex","header","Container","styled","ContainerBase","BREAKPOINTS","TOP_NAV_MOBILE_AND_DOWN","Anchor","a","SvgIcon","StyleableSvgImage","CartIcon","CartIconBase","IconWrap","div","$motif","colors","menu","text","active","$hideOnMobile","$hideOnDesktop","TOP_NAV_MOBILE_UP","IconsWrap","MenuItemWrap","$narrow","CUSTOM_WIDTH","TOP_NAV_DESKTOP_COMPACT","MenuItemLabel","LogoIconWrap","$burger","SiteTitleWrap","ContinueShoppingButton","Button","BackIconWrap","MenuItemsWrap","LeftWrap","$static","ModalWrap","$fullWidth","WrapPadding","ModalInnerWrap","$top","modal","$modal","$pro","$isLeft","ModalId","Support","Cart","Account","CartPreview","InnerLeftWrap","$center","LinkItem","MenuItem","SearchTabWrap","hide","StorePickerModalWrap","SkeletonCircleLoader","SkeletonCircleLoaderBase","$overrideWidth","Wrap","HeaderWrap","noWrapHeight","Header","$sticky","$stickyPadding","$transparent","transparent","base","AvatarWrap","SrContainer"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcO,MAAMA,aAAgB,GAAA,EAAA;AAEtB,MAAMC,eAAkB,GAAA,EAAA;AACxB,MAAMC,sBAAyB,GAAA,EAAA;AAC/B,MAAMC,qBAAwB,GAAA,EAAA;AAC9B,MAAMC,qBAAwB,GAAA,EAAA;AAE9B,MAAMC,gBAAmB,GAAA,EAAA;AACzB,MAAMC,wBAA2B,GAAA,EAAA;AAEjC,MAAMC,kBAAqB,GAAA,EAAA;AAK3B,MAAMC,oBAAuB,GAAAC,gBAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMvBC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,MAAM;;AAAA;AAAA;AAAA,CAAA;AAUnB,MAAAC,SAAA,GAAYC,wBAAOC,qBAAa,CAAA;AAAA,WAClCC,MAAAA,CAAAA,YAAYC,uBAAuB;A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
-
var
|
|
3
|
+
var styledComponents = require('styled-components');
|
|
4
4
|
var theme = require('../../../constants/theme.js');
|
|
5
5
|
require('../../Button/index.js');
|
|
6
6
|
var Button = require('../../Button/Button.js');
|
|
7
7
|
"use strict";
|
|
8
|
-
const ButtonWrap =
|
|
8
|
+
const ButtonWrap = styledComponents.styled.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
width: 100%;
|
|
12
12
|
align-items: center;
|
|
13
13
|
row-gap: 16px;
|
|
14
14
|
`;
|
|
15
|
-
const HeadingContainer =
|
|
15
|
+
const HeadingContainer = styledComponents.styled.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
justify-content: space-between;
|
|
18
18
|
`;
|
|
19
|
-
const Close =
|
|
19
|
+
const Close = styledComponents.styled.div`
|
|
20
20
|
cursor: pointer;
|
|
21
21
|
|
|
22
22
|
> div {
|
|
23
23
|
background-color: #50565e !important;
|
|
24
24
|
}
|
|
25
25
|
`;
|
|
26
|
-
const Heading =
|
|
26
|
+
const Heading = styledComponents.styled.h1`
|
|
27
27
|
margin: 0 0 32px;
|
|
28
28
|
font-size: 28px;
|
|
29
29
|
font-weight: 600;
|
|
30
30
|
letter-spacing: 0;
|
|
31
31
|
color: #212427;
|
|
32
32
|
`;
|
|
33
|
-
const LanguageGrid =
|
|
33
|
+
const LanguageGrid = styledComponents.styled.div`
|
|
34
34
|
display: grid;
|
|
35
35
|
grid-auto-flow: column;
|
|
36
36
|
grid-auto-columns: 230px;
|
|
37
37
|
grid-template-rows: repeat(8, auto);
|
|
38
38
|
column-gap: 16px;
|
|
39
39
|
`;
|
|
40
|
-
const CustomLinkButton =
|
|
40
|
+
const CustomLinkButton = styledComponents.styled(Button.Button)`
|
|
41
41
|
line-height: 1;
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
@@ -50,7 +50,7 @@ const CustomLinkButton = styled.styled(Button.Button)`
|
|
|
50
50
|
|
|
51
51
|
${({
|
|
52
52
|
$active
|
|
53
|
-
}) => $active &&
|
|
53
|
+
}) => $active && styledComponents.css`
|
|
54
54
|
color: ${theme.theme.colors.primaryBlue};
|
|
55
55
|
border-radius: 4px;
|
|
56
56
|
`}
|
|
@@ -58,18 +58,18 @@ const CustomLinkButton = styled.styled(Button.Button)`
|
|
|
58
58
|
${({
|
|
59
59
|
$isOriginalPicker,
|
|
60
60
|
$active
|
|
61
|
-
}) => !$isOriginalPicker && $active &&
|
|
61
|
+
}) => !$isOriginalPicker && $active && styledComponents.css`
|
|
62
62
|
background-color: #f9f9fa;
|
|
63
63
|
`}
|
|
64
64
|
|
|
65
65
|
${({
|
|
66
66
|
$isOriginalPicker,
|
|
67
67
|
$isEnglish
|
|
68
|
-
}) => $isOriginalPicker && $isEnglish &&
|
|
68
|
+
}) => $isOriginalPicker && $isEnglish && styledComponents.css`
|
|
69
69
|
order: -1;
|
|
70
70
|
`}
|
|
71
71
|
`;
|
|
72
|
-
const LanguageKey =
|
|
72
|
+
const LanguageKey = styledComponents.styled.div`
|
|
73
73
|
font-variant: all-petite-caps;
|
|
74
74
|
font-weight: 700;
|
|
75
75
|
text-align: left;
|
|
@@ -77,13 +77,13 @@ const LanguageKey = styled.styled.div`
|
|
|
77
77
|
white-space: nowrap;
|
|
78
78
|
align-self: center;
|
|
79
79
|
`;
|
|
80
|
-
const LanguageValue =
|
|
80
|
+
const LanguageValue = styledComponents.styled.div`
|
|
81
81
|
font-family: ${theme.theme.fontFamily.default};
|
|
82
82
|
&:focus-visible {
|
|
83
83
|
color: ${theme.theme.colors.primaryBlue};
|
|
84
84
|
}
|
|
85
85
|
`;
|
|
86
|
-
const CustomButton =
|
|
86
|
+
const CustomButton = styledComponents.styled(Button.Button)`
|
|
87
87
|
display: flex;
|
|
88
88
|
align-items: center;
|
|
89
89
|
justify-content: center;
|
|
@@ -95,7 +95,7 @@ const CustomButton = styled.styled(Button.Button)`
|
|
|
95
95
|
color: ${theme.theme.colors.primaryBlue};
|
|
96
96
|
`}
|
|
97
97
|
`;
|
|
98
|
-
const Frame =
|
|
98
|
+
const Frame = styledComponents.styled.div`
|
|
99
99
|
padding: 16px;
|
|
100
100
|
`;
|
|
101
101
|
exports.ButtonWrap = ButtonWrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageFrame.styles.js","sources":["../../../../src/components/Header/LanguageFrame/LanguageFrame.styles.tsx"],"sourcesContent":["import { css, styled } from \"styled-components\";\n\nimport { theme } from \"../../../constants/theme\";\nimport { Button } from \"../../Button\";\n\nexport const ButtonWrap = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n row-gap: 16px;\n`;\n\nexport const HeadingContainer = styled.div`\n display: flex;\n justify-content: space-between;\n`;\n\nexport const Close = styled.div`\n cursor: pointer;\n\n > div {\n background-color: #50565e !important;\n }\n`;\n\nexport const Heading = styled.h1`\n margin: 0 0 32px;\n font-size: 28px;\n font-weight: 600;\n letter-spacing: 0;\n color: #212427;\n`;\n\nexport const LanguageGrid = styled.div`\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: 230px;\n grid-template-rows: repeat(8, auto);\n column-gap: 16px;\n`;\n\nexport const CustomLinkButton = styled(Button)<{\n $active: boolean;\n $isOriginalPicker: boolean;\n $isEnglish: boolean;\n}>`\n line-height: 1;\n display: flex;\n align-items: center;\n height: 28px;\n color: #50565e;\n\n &:hover {\n color: ${theme.colors.black50};\n }\n\n ${({ $active }) =>\n $active &&\n css`\n color: ${theme.colors.primaryBlue};\n border-radius: 4px;\n `}\n\n ${({ $isOriginalPicker, $active }) =>\n !$isOriginalPicker &&\n $active &&\n css`\n background-color: #f9f9fa;\n `}\n\n${({ $isOriginalPicker, $isEnglish }) =>\n $isOriginalPicker &&\n $isEnglish &&\n css`\n order: -1;\n `}\n`;\n\nexport const LanguageKey = styled.div`\n font-variant: all-petite-caps;\n font-weight: 700;\n text-align: left;\n margin-right: 6px;\n white-space: nowrap;\n align-self: center;\n`;\n\nexport const LanguageValue = styled.div`\n font-family: ${theme.fontFamily.default};\n &:focus-visible {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const CustomButton = styled(Button)<{\n $active: boolean;\n}>`\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n\n ${({ $active }) =>\n $active &&\n `\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const Frame = styled.div`\n padding: 16px;\n`;\n"],"names":["ButtonWrap","styled","div","HeadingContainer","Close","Heading","h1","LanguageGrid","CustomLinkButton","Button","theme","colors","black50","$active","css","primaryBlue","$isOriginalPicker","$isEnglish","LanguageKey","LanguageValue","fontFamily","default","CustomButton","Frame"],"mappings":";;;;;;;AAKO,MAAMA,aAAaC,
|
|
1
|
+
{"version":3,"file":"LanguageFrame.styles.js","sources":["../../../../src/components/Header/LanguageFrame/LanguageFrame.styles.tsx"],"sourcesContent":["import { css, styled } from \"styled-components\";\n\nimport { theme } from \"../../../constants/theme\";\nimport { Button } from \"../../Button\";\n\nexport const ButtonWrap = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n row-gap: 16px;\n`;\n\nexport const HeadingContainer = styled.div`\n display: flex;\n justify-content: space-between;\n`;\n\nexport const Close = styled.div`\n cursor: pointer;\n\n > div {\n background-color: #50565e !important;\n }\n`;\n\nexport const Heading = styled.h1`\n margin: 0 0 32px;\n font-size: 28px;\n font-weight: 600;\n letter-spacing: 0;\n color: #212427;\n`;\n\nexport const LanguageGrid = styled.div`\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: 230px;\n grid-template-rows: repeat(8, auto);\n column-gap: 16px;\n`;\n\nexport const CustomLinkButton = styled(Button)<{\n $active: boolean;\n $isOriginalPicker: boolean;\n $isEnglish: boolean;\n}>`\n line-height: 1;\n display: flex;\n align-items: center;\n height: 28px;\n color: #50565e;\n\n &:hover {\n color: ${theme.colors.black50};\n }\n\n ${({ $active }) =>\n $active &&\n css`\n color: ${theme.colors.primaryBlue};\n border-radius: 4px;\n `}\n\n ${({ $isOriginalPicker, $active }) =>\n !$isOriginalPicker &&\n $active &&\n css`\n background-color: #f9f9fa;\n `}\n\n${({ $isOriginalPicker, $isEnglish }) =>\n $isOriginalPicker &&\n $isEnglish &&\n css`\n order: -1;\n `}\n`;\n\nexport const LanguageKey = styled.div`\n font-variant: all-petite-caps;\n font-weight: 700;\n text-align: left;\n margin-right: 6px;\n white-space: nowrap;\n align-self: center;\n`;\n\nexport const LanguageValue = styled.div`\n font-family: ${theme.fontFamily.default};\n &:focus-visible {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const CustomButton = styled(Button)<{\n $active: boolean;\n}>`\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n\n ${({ $active }) =>\n $active &&\n `\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const Frame = styled.div`\n padding: 16px;\n`;\n"],"names":["ButtonWrap","styled","div","HeadingContainer","Close","Heading","h1","LanguageGrid","CustomLinkButton","Button","theme","colors","black50","$active","css","primaryBlue","$isOriginalPicker","$isEnglish","LanguageKey","LanguageValue","fontFamily","default","CustomButton","Frame"],"mappings":";;;;;;;AAKO,MAAMA,aAAaC,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQ1B,MAAMC,mBAAmBF,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKhC,MAAME,QAAQH,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;;AAAA;AAAA;AAAA;AAAA,CAAA;AAQrB,MAAMG,UAAUJ,gBAAO,CAAAA,MAAA,CAAAK,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQvB,MAAMC,eAAeN,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQtB,MAAAM,gBAAA,GAAmBP,wBAAOQ,aAAM,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA,aAYhCC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,OAAO;AAAA;;AAAA,IAG7B,CAAC;EAAEC;CAAQ,KACXA,OACA,IAAAC,gBAAA,CAAAA,GAAA;AAAA,eACWJ,KAAA,CAAAA,KAAA,CAAMC,OAAOI,WAAW;AAAA;AAAA,KAElC;;AAAA,IAED,CAAC;EAAEC,iBAAA;EAAmBH;AACtB,CAAA,KAAA,CAACG,qBACDH,OACA,IAAAC,gBAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;;AAAA,EAEH,CAAC;EAAEE,iBAAA;EAAmBC;AAAW,CAAA,KAC/BD,qBACAC,UACA,IAAAH,gBAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMI,cAAcjB,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS3B,MAAMiB,gBAAgBlB,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA,iBACnBQ,KAAA,CAAAA,KAAA,CAAMU,WAAWC,OAAO;AAAA;AAAA,aAE5BX,KAAA,CAAAA,KAAA,CAAMC,OAAOI,WAAW;AAAA;AAAA,CAAA;AAIxB,MAAAO,YAAA,GAAerB,wBAAOQ,aAAM,CAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,IAQrC,CAAC;EAAEI;AAAQ,CAAA,KACXA,OACA,IAAA;AAAA,eACWH,KAAA,CAAAA,KAAA,CAAMC,OAAOI,WAAW;AAAA,GACpC;AAAA,CAAA;AAGI,MAAMQ,QAAQtB,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA,CAAA;;;;;;;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var styledComponents = require('styled-components');
|
|
4
4
|
var theme = require('../../../../constants/theme.js');
|
|
5
5
|
"use strict";
|
|
6
|
-
const Wrap =
|
|
6
|
+
const Wrap = styledComponents.styled.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
align-items: center;
|
|
10
10
|
gap: 12px;
|
|
11
11
|
`;
|
|
12
|
-
const ButtonGroup =
|
|
12
|
+
const ButtonGroup = styledComponents.styled.div`
|
|
13
13
|
width: 100%;
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
@@ -24,7 +24,7 @@ const ButtonGroup = styled.styled.div`
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
|
-
const CustomerWrap =
|
|
27
|
+
const CustomerWrap = styledComponents.styled.div`
|
|
28
28
|
width: 100%;
|
|
29
29
|
margin-bottom: 20px;
|
|
30
30
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mobile.styles.js","sources":["../../../../../src/components/Header/LanguageFrame/Mobile/Mobile.styles.ts"],"sourcesContent":["import { styled } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\n\nexport const Wrap = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n`;\n\nexport const ButtonGroup = styled.div`\n width: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border-radius: 6px;\n\n > * {\n border-radius: 0;\n\n &:not(:last-child) {\n border-bottom: 1px solid ${theme.colors.athensGreyDark};\n }\n }\n`;\n\nexport const CustomerWrap = styled.div`\n width: 100%;\n margin-bottom: 20px;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n"],"names":["Wrap","styled","div","ButtonGroup","theme","colors","athensGreyDark","CustomerWrap"],"mappings":";;;;;AAIO,MAAMA,OAAOC,
|
|
1
|
+
{"version":3,"file":"Mobile.styles.js","sources":["../../../../../src/components/Header/LanguageFrame/Mobile/Mobile.styles.ts"],"sourcesContent":["import { styled } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\n\nexport const Wrap = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n`;\n\nexport const ButtonGroup = styled.div`\n width: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border-radius: 6px;\n\n > * {\n border-radius: 0;\n\n &:not(:last-child) {\n border-bottom: 1px solid ${theme.colors.athensGreyDark};\n }\n }\n`;\n\nexport const CustomerWrap = styled.div`\n width: 100%;\n margin-bottom: 20px;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n"],"names":["Wrap","styled","div","ButtonGroup","theme","colors","athensGreyDark","CustomerWrap"],"mappings":";;;;;AAIO,MAAMA,OAAOC,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOpB,MAAMC,cAAcF,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA,iCAWDE,KAAA,CAAAA,KAAA,CAAMC,OAAOC,cAAc;AAAA;AAAA;AAAA,CAAA;AAKrD,MAAMC,eAAeN,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
|
-
var
|
|
6
|
+
var styledComponents = require('styled-components');
|
|
7
7
|
require('../../../constants/icons/index.js');
|
|
8
8
|
var layout = require('../../../constants/layout.js');
|
|
9
9
|
require('../../../types/index.js');
|
|
@@ -36,7 +36,7 @@ const HEADER_LOGOS = {
|
|
|
36
36
|
aspectRatio: 17.86 / 18
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
const StyleableSvgImage =
|
|
39
|
+
const StyleableSvgImage = styledComponents.styled(StyleableSvgImage$1.StyleableSvgImage)`
|
|
40
40
|
background-color: #212427;
|
|
41
41
|
`;
|
|
42
42
|
const HeaderLogoIcon = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoIcon.js","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useMedia } from \"react-use\";\nimport { styled } from \"styled-components\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage as StyleableSvgImageBase } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n height?: number;\n}\n\nconst HEADER_LOGOS = {\n [ProductLine.Unifi]: {\n src: icons.header.logoUnifi,\n aspectRatio: 59 / 18,\n },\n [ProductLine.Uisp]: {\n src: icons.header.logoUisp,\n aspectRatio: 56.5 / 18,\n },\n default: {\n src: icons.header.logo,\n aspectRatio: 17.86 / 18,\n },\n} as const;\n\nconst StyleableSvgImage = styled(StyleableSvgImageBase)`\n background-color: #212427;\n`;\n\nexport const HeaderLogoIcon = ({\n productLine,\n height = 16,\n}: HeaderLogoIconProps) => {\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const commonProps = useMemo(\n () => (isMobile ? { $active: false } : {}),\n [isMobile],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={HEADER_LOGOS[productLine].src}\n width={height * HEADER_LOGOS[productLine].aspectRatio}\n height={height}\n {...commonProps}\n />\n );\n default:\n return (\n <StyleableSvgImage\n src={HEADER_LOGOS.default.src}\n width={height * HEADER_LOGOS.default.aspectRatio}\n height={height}\n {...commonProps}\n />\n );\n }\n};\n"],"names":["HEADER_LOGOS","ProductLine","Unifi","src","icons.header.logoUnifi","aspectRatio","Uisp","icons.header.logoUisp","default","icons.header.logo","StyleableSvgImage","styled","StyleableSvgImageBase","HeaderLogoIcon","productLine","height","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","commonProps","useMemo","$active","jsx","width"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAMA,YAAe,GAAA;EACnB,CAACC,SAAAA,CAAAA,WAAY,CAAAC,KAAK,GAAG;IACnBC,GAAA,EAAKC,kBAAa,CAAA,SAAA,CAAA;IAClBC,aAAa,EAAK,GAAA;EACpB,CAAA;EACA,CAACJ,SAAAA,CAAAA,WAAY,CAAAK,IAAI,GAAG;IAClBH,GAAA,EAAKI,iCAAa,CAAA,SAAA,CAAA;IAClBF,aAAa,IAAO,GAAA;EACtB,CAAA;EACAG,OAAS,EAAA;IACPL,GAAA,EAAKM,iCAAa,CAAA,SAAA,CAAA;IAClBJ,aAAa,KAAQ,GAAA;EAAA;AAEzB,CAAA;AAEA,MAAMK,iBAAA,GAAoBC,
|
|
1
|
+
{"version":3,"file":"LogoIcon.js","sources":["../../../../src/components/Header/LogoIcon/LogoIcon.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { useMedia } from \"react-use\";\nimport { styled } from \"styled-components\";\n\nimport * as icons from \"../../../constants/icons\";\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport type { Nullish } from \"../../../types\";\nimport { ProductLine } from \"../../../types\";\nimport { StyleableSvgImage as StyleableSvgImageBase } from \"../../StyleableSvgImage\";\n\ninterface HeaderLogoIconProps {\n productLine: Nullish<ProductLine>;\n height?: number;\n}\n\nconst HEADER_LOGOS = {\n [ProductLine.Unifi]: {\n src: icons.header.logoUnifi,\n aspectRatio: 59 / 18,\n },\n [ProductLine.Uisp]: {\n src: icons.header.logoUisp,\n aspectRatio: 56.5 / 18,\n },\n default: {\n src: icons.header.logo,\n aspectRatio: 17.86 / 18,\n },\n} as const;\n\nconst StyleableSvgImage = styled(StyleableSvgImageBase)`\n background-color: #212427;\n`;\n\nexport const HeaderLogoIcon = ({\n productLine,\n height = 16,\n}: HeaderLogoIconProps) => {\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const commonProps = useMemo(\n () => (isMobile ? { $active: false } : {}),\n [isMobile],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n switch (productLine) {\n case ProductLine.Unifi:\n case ProductLine.Uisp:\n return (\n <StyleableSvgImage\n src={HEADER_LOGOS[productLine].src}\n width={height * HEADER_LOGOS[productLine].aspectRatio}\n height={height}\n {...commonProps}\n />\n );\n default:\n return (\n <StyleableSvgImage\n src={HEADER_LOGOS.default.src}\n width={height * HEADER_LOGOS.default.aspectRatio}\n height={height}\n {...commonProps}\n />\n );\n }\n};\n"],"names":["HEADER_LOGOS","ProductLine","Unifi","src","icons.header.logoUnifi","aspectRatio","Uisp","icons.header.logoUisp","default","icons.header.logo","StyleableSvgImage","styled","StyleableSvgImageBase","HeaderLogoIcon","productLine","height","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","commonProps","useMemo","$active","jsx","width"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAMA,YAAe,GAAA;EACnB,CAACC,SAAAA,CAAAA,WAAY,CAAAC,KAAK,GAAG;IACnBC,GAAA,EAAKC,kBAAa,CAAA,SAAA,CAAA;IAClBC,aAAa,EAAK,GAAA;EACpB,CAAA;EACA,CAACJ,SAAAA,CAAAA,WAAY,CAAAK,IAAI,GAAG;IAClBH,GAAA,EAAKI,iCAAa,CAAA,SAAA,CAAA;IAClBF,aAAa,IAAO,GAAA;EACtB,CAAA;EACAG,OAAS,EAAA;IACPL,GAAA,EAAKM,iCAAa,CAAA,SAAA,CAAA;IAClBJ,aAAa,KAAQ,GAAA;EAAA;AAEzB,CAAA;AAEA,MAAMK,iBAAA,GAAoBC,wBAAOC,qCAAqB,CAAA;AAAA;AAAA,CAAA;AAI/C,MAAMC,iBAAiBA,CAAC;EAC7BC,WAAA;EACAC,MAAS,GAAA;AACX,CAA2B,KAAA;EACzB,MAAMC,QAAW,GAAAC,QAAA,CAAAA,QAA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