@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
|
require('../../Badge/index.js');
|
|
@@ -15,15 +15,15 @@ var Button$1 = require('../../Button/Button.js');
|
|
|
15
15
|
const MOBILE_BREAKPOINT = 650;
|
|
16
16
|
const TOOLTIP_CLASS_NAME = `model-compare-tooltip`;
|
|
17
17
|
const PRODUCT_HEADER_TOOLTIP_CLASSNAME = "model-compare-product-header-tooltip";
|
|
18
|
-
const PlaceholderGridItem =
|
|
18
|
+
const PlaceholderGridItem = styledComponents.styled(StickyGridItem.StickyGridItem)`
|
|
19
19
|
background: ${theme.theme.colors.white};
|
|
20
20
|
z-index: 3;
|
|
21
21
|
`;
|
|
22
|
-
const CenterPlaceholderGridItem =
|
|
22
|
+
const CenterPlaceholderGridItem = styledComponents.styled(StickyGridItem.StickyGridItem)``;
|
|
23
23
|
const HEADER_GRID_ITEM_Y_PADDING = 16;
|
|
24
24
|
const HEADER_GRID_ITEM_GAP_DESKTOP = 24;
|
|
25
25
|
const HEADER_GRID_ITEM_GAP_MOBILE = 12;
|
|
26
|
-
const ProductHeaderTooltipStyles =
|
|
26
|
+
const ProductHeaderTooltipStyles = styledComponents.createGlobalStyle`
|
|
27
27
|
.${PRODUCT_HEADER_TOOLTIP_CLASSNAME} {
|
|
28
28
|
box-shadow: 0 8px 24px 0 #00000014;
|
|
29
29
|
width: 175px;
|
|
@@ -41,13 +41,13 @@ const ProductHeaderTooltipStyles = styled.createGlobalStyle`
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
44
|
-
const ProductHeaderTooltipHoverArea =
|
|
44
|
+
const ProductHeaderTooltipHoverArea = styledComponents.styled.div`
|
|
45
45
|
position: absolute;
|
|
46
46
|
${({
|
|
47
47
|
$tooltipIsPositionedTop
|
|
48
|
-
}) => $tooltipIsPositionedTop ?
|
|
48
|
+
}) => $tooltipIsPositionedTop ? styledComponents.css`
|
|
49
49
|
bottom: 0;
|
|
50
|
-
` :
|
|
50
|
+
` : styledComponents.css`
|
|
51
51
|
top: 0;
|
|
52
52
|
`}
|
|
53
53
|
bottom: 0;
|
|
@@ -58,14 +58,14 @@ const ProductHeaderTooltipHoverArea = styled.styled.div`
|
|
|
58
58
|
}) => $width ?? 175}px;
|
|
59
59
|
height: 40px;
|
|
60
60
|
`;
|
|
61
|
-
const ProductHeaderTooltipLink =
|
|
61
|
+
const ProductHeaderTooltipLink = styledComponents.styled.a`
|
|
62
62
|
color: ${theme.theme.colors.primaryBlue};
|
|
63
63
|
|
|
64
64
|
&:hover {
|
|
65
65
|
color: ${theme.theme.colors.primaryBlue};
|
|
66
66
|
}
|
|
67
67
|
`;
|
|
68
|
-
const HeaderGridItem =
|
|
68
|
+
const HeaderGridItem = styledComponents.styled(StickyGridItem.StickyGridItem)`
|
|
69
69
|
background: ${theme.theme.colors.white};
|
|
70
70
|
display: flex;
|
|
71
71
|
flex-direction: column;
|
|
@@ -82,27 +82,27 @@ const HeaderGridItem = styled.styled(StickyGridItem.StickyGridItem)`
|
|
|
82
82
|
padding: 25px 0 0;
|
|
83
83
|
}
|
|
84
84
|
`;
|
|
85
|
-
const EmptyHeaderGridItem =
|
|
85
|
+
const EmptyHeaderGridItem = styledComponents.styled(HeaderGridItem)`
|
|
86
86
|
align-items: center;
|
|
87
87
|
justify-content: center;
|
|
88
88
|
`;
|
|
89
|
-
const EmptyHeaderEmptyProductDescription =
|
|
89
|
+
const EmptyHeaderEmptyProductDescription = styledComponents.styled.div`
|
|
90
90
|
width: 100%;
|
|
91
91
|
height: 100%;
|
|
92
92
|
|
|
93
93
|
${({
|
|
94
94
|
$headerItemsAreSticking
|
|
95
|
-
}) => $headerItemsAreSticking &&
|
|
95
|
+
}) => $headerItemsAreSticking && styledComponents.css`
|
|
96
96
|
display: none;
|
|
97
97
|
`}
|
|
98
98
|
`;
|
|
99
|
-
const HeaderGridItemContainer =
|
|
99
|
+
const HeaderGridItemContainer = styledComponents.styled.div`
|
|
100
100
|
display: flex;
|
|
101
101
|
flex-direction: column;
|
|
102
102
|
align-items: center;
|
|
103
103
|
justify-content: center;
|
|
104
104
|
`;
|
|
105
|
-
const RemoveProductButton =
|
|
105
|
+
const RemoveProductButton = styledComponents.styled.button`
|
|
106
106
|
position: absolute;
|
|
107
107
|
top: 25px;
|
|
108
108
|
right: 25px;
|
|
@@ -118,12 +118,12 @@ const RemoveProductButton = styled.styled.button`
|
|
|
118
118
|
|
|
119
119
|
${({
|
|
120
120
|
$isSmallScreen
|
|
121
|
-
}) => $isSmallScreen &&
|
|
121
|
+
}) => $isSmallScreen && styledComponents.css`
|
|
122
122
|
top: 0;
|
|
123
123
|
right: 4%;
|
|
124
124
|
`}
|
|
125
125
|
`;
|
|
126
|
-
const ProductMeta =
|
|
126
|
+
const ProductMeta = styledComponents.styled.div`
|
|
127
127
|
position: relative;
|
|
128
128
|
display: flex;
|
|
129
129
|
flex-direction: column;
|
|
@@ -141,13 +141,13 @@ const ProductMeta = styled.styled.div`
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
`;
|
|
144
|
-
const productTitleStyles =
|
|
144
|
+
const productTitleStyles = styledComponents.css`
|
|
145
145
|
font-size: 16px;
|
|
146
146
|
font-weight: 700;
|
|
147
147
|
line-height: normal;
|
|
148
148
|
letter-spacing: -0.32px;
|
|
149
149
|
`;
|
|
150
|
-
const ProductTitle =
|
|
150
|
+
const ProductTitle = styledComponents.styled.div`
|
|
151
151
|
${productTitleStyles}
|
|
152
152
|
|
|
153
153
|
color: ${theme.theme.colors.black};
|
|
@@ -156,7 +156,7 @@ const ProductTitle = styled.styled.div`
|
|
|
156
156
|
font-size: 14px;
|
|
157
157
|
}
|
|
158
158
|
`;
|
|
159
|
-
const ProductTitleLink =
|
|
159
|
+
const ProductTitleLink = styledComponents.styled.button`
|
|
160
160
|
${productTitleStyles}
|
|
161
161
|
color: ${theme.theme.colors.primaryBlue};
|
|
162
162
|
border: none;
|
|
@@ -171,7 +171,7 @@ const ProductTitleLink = styled.styled.button`
|
|
|
171
171
|
color: ${theme.theme.colors.primaryBlue};
|
|
172
172
|
}
|
|
173
173
|
`;
|
|
174
|
-
const ProductDescription =
|
|
174
|
+
const ProductDescription = styledComponents.styled.div`
|
|
175
175
|
font-size: 14px;
|
|
176
176
|
font-weight: 400;
|
|
177
177
|
line-height: normal;
|
|
@@ -190,7 +190,7 @@ const ProductDescription = styled.styled.div`
|
|
|
190
190
|
font-size: 12px;
|
|
191
191
|
}
|
|
192
192
|
`;
|
|
193
|
-
const SelectFromAboveIsStuckContainer =
|
|
193
|
+
const SelectFromAboveIsStuckContainer = styledComponents.styled.div`
|
|
194
194
|
display: none;
|
|
195
195
|
flex-direction: column;
|
|
196
196
|
height: 100%;
|
|
@@ -199,29 +199,29 @@ const SelectFromAboveIsStuckContainer = styled.styled.div`
|
|
|
199
199
|
|
|
200
200
|
${({
|
|
201
201
|
$isStuck
|
|
202
|
-
}) => $isStuck &&
|
|
202
|
+
}) => $isStuck && styledComponents.css`
|
|
203
203
|
display: flex;
|
|
204
204
|
`}
|
|
205
205
|
`;
|
|
206
|
-
const SelectFromAboveIsStuck =
|
|
206
|
+
const SelectFromAboveIsStuck = styledComponents.styled(ProductDescription)`
|
|
207
207
|
margin: 0;
|
|
208
208
|
`;
|
|
209
|
-
const ProductNote =
|
|
209
|
+
const ProductNote = styledComponents.styled.div`
|
|
210
210
|
color: ${theme.theme.colors.black45};
|
|
211
211
|
font-size: ${theme.theme.font.size10};
|
|
212
212
|
line-height: 16.8px;
|
|
213
213
|
margin-top: 6px;
|
|
214
214
|
text-align: center;
|
|
215
215
|
`;
|
|
216
|
-
const Badge =
|
|
216
|
+
const Badge = styledComponents.styled(Badge$1.Badge)`
|
|
217
217
|
margin: 10px 0 20px;
|
|
218
218
|
`;
|
|
219
|
-
const BadgeWrapper =
|
|
219
|
+
const BadgeWrapper = styledComponents.styled.div`
|
|
220
220
|
margin-top: auto;
|
|
221
221
|
display: flex;
|
|
222
222
|
gap: 10px;
|
|
223
223
|
`;
|
|
224
|
-
const PropertyTitleGridItem =
|
|
224
|
+
const PropertyTitleGridItem = styledComponents.styled(StickyGridItem.StickyGridItem)`
|
|
225
225
|
display: flex;
|
|
226
226
|
align-items: center;
|
|
227
227
|
justify-content: flex-start;
|
|
@@ -230,10 +230,10 @@ const PropertyTitleGridItem = styled.styled(StickyGridItem.StickyGridItem)`
|
|
|
230
230
|
z-index: 1;
|
|
231
231
|
overflow: hidden;
|
|
232
232
|
`;
|
|
233
|
-
const EmptyPropertyTitleGridItem =
|
|
233
|
+
const EmptyPropertyTitleGridItem = styledComponents.styled(StickyGridItem.StickyGridItem)`
|
|
234
234
|
background: ${theme.theme.colors.white};
|
|
235
235
|
`;
|
|
236
|
-
const PropertyTitleGridItemContent =
|
|
236
|
+
const PropertyTitleGridItemContent = styledComponents.styled(StickyGridItem.StickyGridItem)`
|
|
237
237
|
display: flex;
|
|
238
238
|
align-items: center;
|
|
239
239
|
justify-content: flex-start;
|
|
@@ -242,7 +242,7 @@ const PropertyTitleGridItemContent = styled.styled(StickyGridItem.StickyGridItem
|
|
|
242
242
|
gap: 8px;
|
|
243
243
|
overflow: hidden;
|
|
244
244
|
`;
|
|
245
|
-
const PropertyTitle =
|
|
245
|
+
const PropertyTitle = styledComponents.styled.div`
|
|
246
246
|
font-size: 14px;
|
|
247
247
|
font-weight: ${theme.theme.fontWeight.bold};
|
|
248
248
|
color: ${theme.theme.colors.black65};
|
|
@@ -254,12 +254,12 @@ const PropertyTitle = styled.styled.div`
|
|
|
254
254
|
line-height: 14px;
|
|
255
255
|
}
|
|
256
256
|
`;
|
|
257
|
-
const PropertyIcon =
|
|
257
|
+
const PropertyIcon = styledComponents.styled.div`
|
|
258
258
|
width: 30px;
|
|
259
259
|
height: 30px;
|
|
260
260
|
color: ${theme.theme.colors.shark};
|
|
261
261
|
`;
|
|
262
|
-
const SelectFromAboveIconCopyContainer =
|
|
262
|
+
const SelectFromAboveIconCopyContainer = styledComponents.styled.div`
|
|
263
263
|
display: flex;
|
|
264
264
|
flex-direction: column;
|
|
265
265
|
align-items: center;
|
|
@@ -267,34 +267,34 @@ const SelectFromAboveIconCopyContainer = styled.styled.div`
|
|
|
267
267
|
|
|
268
268
|
${({
|
|
269
269
|
$isStuck
|
|
270
|
-
}) => $isStuck &&
|
|
270
|
+
}) => $isStuck && styledComponents.css`
|
|
271
271
|
opacity: 0;
|
|
272
272
|
`}
|
|
273
273
|
`;
|
|
274
|
-
const ProductImage =
|
|
274
|
+
const ProductImage = styledComponents.styled.img`
|
|
275
275
|
max-width: 100%;
|
|
276
276
|
max-height: 100%;
|
|
277
277
|
object-fit: contain;
|
|
278
278
|
-webkit-user-drag: none;
|
|
279
279
|
`;
|
|
280
|
-
const ProductImageWrap =
|
|
280
|
+
const ProductImageWrap = styledComponents.styled.div`
|
|
281
281
|
height: ${({
|
|
282
282
|
height
|
|
283
283
|
}) => `${height}px`};
|
|
284
284
|
display: flex;
|
|
285
285
|
`;
|
|
286
|
-
const PropertyTooltipHoverArea =
|
|
286
|
+
const PropertyTooltipHoverArea = styledComponents.styled.div`
|
|
287
287
|
position: absolute;
|
|
288
288
|
height: 35px;
|
|
289
289
|
width: 35px;
|
|
290
290
|
top: 50%;
|
|
291
291
|
transform: translateY(-50%);
|
|
292
292
|
`;
|
|
293
|
-
const PropertyTooltip =
|
|
293
|
+
const PropertyTooltip = styledComponents.styled.div`
|
|
294
294
|
position: relative;
|
|
295
295
|
height: 20px;
|
|
296
296
|
`;
|
|
297
|
-
const PropertyTooltipContent =
|
|
297
|
+
const PropertyTooltipContent = styledComponents.styled.div`
|
|
298
298
|
color: ${theme.theme.colors.black85};
|
|
299
299
|
font-size: 12px;
|
|
300
300
|
|
|
@@ -302,16 +302,16 @@ const PropertyTooltipContent = styled.styled.div`
|
|
|
302
302
|
color: ${theme.theme.colors.primaryBlue};
|
|
303
303
|
}
|
|
304
304
|
`;
|
|
305
|
-
const TooltipIcon =
|
|
305
|
+
const TooltipIcon = styledComponents.styled(StyleableSvgImage.StyleableSvgImage)`
|
|
306
306
|
color: ${theme.theme.colors.primaryBlue};
|
|
307
307
|
`;
|
|
308
|
-
const ButtonWrap =
|
|
308
|
+
const ButtonWrap = styledComponents.styled.div`
|
|
309
309
|
padding: 16px 0;
|
|
310
310
|
display: flex;
|
|
311
311
|
align-items: center;
|
|
312
312
|
justify-content: center;
|
|
313
313
|
`;
|
|
314
|
-
const buttonStyles =
|
|
314
|
+
const buttonStyles = styledComponents.css`
|
|
315
315
|
padding: 10px 15px;
|
|
316
316
|
line-height: 20px;
|
|
317
317
|
font-weight: ${theme.theme.fontWeight.bold};
|
|
@@ -325,16 +325,16 @@ const buttonStyles = styled.css`
|
|
|
325
325
|
position: static;
|
|
326
326
|
}
|
|
327
327
|
`;
|
|
328
|
-
const Button =
|
|
328
|
+
const Button = styledComponents.styled(Button$1.Button)`
|
|
329
329
|
${buttonStyles};
|
|
330
330
|
|
|
331
331
|
${({
|
|
332
332
|
$removePointerEvents
|
|
333
|
-
}) => $removePointerEvents &&
|
|
333
|
+
}) => $removePointerEvents && styledComponents.css`
|
|
334
334
|
pointer-events: none;
|
|
335
335
|
`}
|
|
336
336
|
`;
|
|
337
|
-
const ComingSoon =
|
|
337
|
+
const ComingSoon = styledComponents.styled(Button$1.Button)`
|
|
338
338
|
${buttonStyles};
|
|
339
339
|
|
|
340
340
|
cursor: default;
|
|
@@ -345,39 +345,39 @@ const ComingSoon = styled.styled(Button$1.Button)`
|
|
|
345
345
|
color: #445178;
|
|
346
346
|
}
|
|
347
347
|
`;
|
|
348
|
-
const NotesWrap =
|
|
348
|
+
const NotesWrap = styledComponents.styled.div`
|
|
349
349
|
padding: 16px 10px 10px;
|
|
350
350
|
text-wrap: pretty;
|
|
351
351
|
display: flex;
|
|
352
352
|
flex-direction: column;
|
|
353
353
|
align-items: center;
|
|
354
354
|
`;
|
|
355
|
-
const Note =
|
|
355
|
+
const Note = styledComponents.styled.div`
|
|
356
356
|
font-size: 10px;
|
|
357
357
|
line-height: ${17 / 10};
|
|
358
358
|
color: ${theme.theme.colors.black45};
|
|
359
359
|
text-align: center;
|
|
360
360
|
`;
|
|
361
|
-
const FootnotesWrap =
|
|
361
|
+
const FootnotesWrap = styledComponents.styled.div`
|
|
362
362
|
padding: 0 0 16px;
|
|
363
363
|
display: flex;
|
|
364
364
|
flex-direction: column;
|
|
365
365
|
align-items: center;
|
|
366
366
|
`;
|
|
367
|
-
const Footnote =
|
|
367
|
+
const Footnote = styledComponents.styled.div`
|
|
368
368
|
font-size: 10px;
|
|
369
369
|
line-height: ${17 / 10};
|
|
370
370
|
color: ${theme.theme.colors.black45};
|
|
371
371
|
text-align: center;
|
|
372
372
|
`;
|
|
373
|
-
const KitIncluded =
|
|
373
|
+
const KitIncluded = styledComponents.styled.div`
|
|
374
374
|
font-size: 14px;
|
|
375
375
|
font-weight: 400;
|
|
376
376
|
letter-spacing: -0.28px;
|
|
377
377
|
line-height: 16.8px;
|
|
378
378
|
color: ${theme.theme.colors.black65};
|
|
379
379
|
`;
|
|
380
|
-
const TooltipStyles =
|
|
380
|
+
const TooltipStyles = styledComponents.createGlobalStyle`
|
|
381
381
|
.${TOOLTIP_CLASS_NAME} {
|
|
382
382
|
box-shadow: 0 8px 24px 0 #00000014;
|
|
383
383
|
max-width: ${({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompareTable.styles.js","sources":["../../../../src/components/ModelCompareV4/CompareTable/CompareTable.styles.tsx"],"sourcesContent":["import { createGlobalStyle, css, styled } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport type { LanguageDirectionType } from \"../../../contexts/MenuContext/utils\";\nimport { Badge as BadgeBase } from \"../../Badge\";\nimport { Button as ButtonBase } from \"../../Button\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { StickyGridItem } from \"./CompareTableMarkup/components/StickyGrid\";\n\nexport const MOBILE_BREAKPOINT = 650;\n\nexport const TOOLTIP_CLASS_NAME = `model-compare-tooltip`;\nexport const PRODUCT_HEADER_TOOLTIP_CLASSNAME =\n \"model-compare-product-header-tooltip\";\n\nexport const PlaceholderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n z-index: 3;\n`;\n\nexport const CenterPlaceholderGridItem = styled(StickyGridItem)``;\n\nexport const HEADER_GRID_ITEM_Y_PADDING = 16;\n\nexport const HEADER_GRID_ITEM_GAP_DESKTOP = 24;\nexport const HEADER_GRID_ITEM_GAP_MOBILE = 12;\n\nexport const ProductHeaderTooltipStyles = createGlobalStyle`\n .${PRODUCT_HEADER_TOOLTIP_CLASSNAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n width: 175px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 700;\n padding: 10px 20px;\n margin-top: -1.5px;\n background: white;\n text-align: center;\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: white;\n }\n }\n`;\n\n// This expands the hoverable area of the tooltip so users can move their mouse casually to the tooltip\nexport const ProductHeaderTooltipHoverArea = styled.div<{\n $width: number | undefined;\n $tooltipIsPositionedTop: boolean;\n}>`\n position: absolute;\n ${({ $tooltipIsPositionedTop }) =>\n $tooltipIsPositionedTop\n ? css`\n bottom: 0;\n `\n : css`\n top: 0;\n `}\n bottom: 0;\n right: 50%;\n transform: translateX(50%);\n width: ${({ $width }) => $width ?? 175}px;\n height: 40px;\n`;\n\nexport const ProductHeaderTooltipLink = styled.a`\n color: ${theme.colors.primaryBlue};\n\n &:hover {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const HeaderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n text-align: center;\n padding: ${HEADER_GRID_ITEM_Y_PADDING}px 0;\n gap: ${HEADER_GRID_ITEM_GAP_DESKTOP}px;\n position: relative;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n gap: ${HEADER_GRID_ITEM_GAP_MOBILE}px;\n /* Need this padding-top so sticky offset looks good on mobile */\n padding: 25px 0 0;\n }\n`;\n\nexport const EmptyHeaderGridItem = styled(HeaderGridItem)`\n align-items: center;\n justify-content: center;\n`;\n\nexport const EmptyHeaderEmptyProductDescription = styled.div<{\n $headerItemsAreSticking: boolean;\n}>`\n width: 100%;\n height: 100%;\n\n ${({ $headerItemsAreSticking }) =>\n $headerItemsAreSticking &&\n css`\n display: none;\n `}\n`;\n\nexport const HeaderGridItemContainer = styled.div<{ $isStuck: boolean }>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n`;\n\nexport const RemoveProductButton = styled.button<{ $isSmallScreen: boolean }>`\n position: absolute;\n top: 25px;\n right: 25px;\n background: transparent;\n border: none;\n padding: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 30px;\n color: #c2c6cb;\n\n ${({ $isSmallScreen }) =>\n $isSmallScreen &&\n css`\n top: 0;\n right: 4%;\n `}\n`;\n\nexport const ProductMeta = styled.div`\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: center;\n width: 100%;\n padding: 0 10px;\n\n @media (max-width: ${MOBILE_BREAKPOINT}px) {\n &::before {\n display: none;\n }\n &::after {\n display: none;\n }\n }\n`;\n\nconst productTitleStyles = css`\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n letter-spacing: -0.32px;\n`;\n\nexport const ProductTitle = styled.div`\n ${productTitleStyles}\n\n color: ${theme.colors.black};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 14px;\n }\n`;\n\nexport const ProductTitleLink = styled.button`\n ${productTitleStyles}\n color: ${theme.colors.primaryBlue};\n border: none;\n background: transparent;\n\n :focus,\n :hover {\n text-decoration: none;\n }\n\n :focus {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const ProductDescription = styled.div<{\n $maxWidth?: number;\n $direction: LanguageDirectionType;\n}>`\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n margin-top: 6px;\n letter-spacing: -0.24px;\n color: ${theme.colors.black65};\n max-width: ${({ $maxWidth }) => ($maxWidth ? `${$maxWidth}px` : \"auto\")};\n direction: ${({ $direction }) => $direction && `${$direction}`};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 4px auto 12px;\n font-size: 12px;\n }\n`;\n\nexport const SelectFromAboveIsStuckContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: none;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n display: flex;\n `}\n`;\n\nexport const SelectFromAboveIsStuck = styled(ProductDescription)`\n margin: 0;\n`;\n\nexport const ProductNote = styled.div`\n color: ${theme.colors.black45};\n font-size: ${theme.font.size10};\n line-height: 16.8px;\n margin-top: 6px;\n text-align: center;\n`;\n\nexport const Badge = styled(BadgeBase)`\n margin: 10px 0 20px;\n`;\n\nexport const BadgeWrapper = styled.div`\n margin-top: auto;\n display: flex;\n gap: 10px;\n`;\n\nexport const PropertyTitleGridItem = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n border-bottom: 1px solid ${theme.colors.athensGreyDark};\n background: ${theme.colors.white};\n z-index: 1;\n overflow: hidden;\n`;\n\nexport const EmptyPropertyTitleGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n`;\n\nexport const PropertyTitleGridItemContent = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding: 16px 16px 16px 8px;\n width: 100%;\n gap: 8px;\n overflow: hidden;\n`;\n\nexport const PropertyTitle = styled.div`\n font-size: 14px;\n font-weight: ${theme.fontWeight.bold};\n color: ${theme.colors.black65};\n line-height: 16.8px;\n letter-spacing: -0.28px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 12px;\n line-height: 14px;\n }\n`;\n\nexport const PropertyIcon = styled.div`\n width: 30px;\n height: 30px;\n color: ${theme.colors.shark};\n`;\n\nexport const SelectFromAboveIconCopyContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n opacity: 1;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n opacity: 0;\n `}\n`;\n\nexport const ProductImage = styled.img`\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n -webkit-user-drag: none;\n`;\n\nexport const ProductImageWrap = styled.div<{ height: number }>`\n height: ${({ height }) => `${height}px`};\n display: flex;\n`;\n\nexport const PropertyTooltipHoverArea = styled.div`\n position: absolute;\n height: 35px;\n width: 35px;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const PropertyTooltip = styled.div`\n position: relative;\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: ${theme.colors.black85};\n font-size: 12px;\n\n a {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const TooltipIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.primaryBlue};\n`;\n\nexport const ButtonWrap = styled.div`\n padding: 16px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nconst buttonStyles = css`\n padding: 10px 15px;\n line-height: 20px;\n font-weight: ${theme.fontWeight.bold};\n margin: auto;\n :focus,\n :hover {\n text-decoration: none;\n }\n\n > * {\n position: static;\n }\n`;\n\nexport const Button = styled(ButtonBase)<{ $removePointerEvents: boolean }>`\n ${buttonStyles};\n\n ${({ $removePointerEvents }) =>\n $removePointerEvents &&\n css`\n pointer-events: none;\n `}\n`;\n\n// TODO: remove if not used anywhere else in store.core\nexport const ComingSoon = styled(ButtonBase)`\n ${buttonStyles};\n\n cursor: default;\n color: #445178;\n\n :focus,\n :hover {\n color: #445178;\n }\n`;\n\nexport const NotesWrap = styled.div`\n padding: 16px 10px 10px;\n text-wrap: pretty;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Note = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const FootnotesWrap = styled.div`\n padding: 0 0 16px;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Footnote = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const KitIncluded = styled.div`\n font-size: 14px;\n font-weight: 400;\n letter-spacing: -0.28px;\n line-height: 16.8px;\n color: ${theme.colors.black65};\n`;\n\nexport const TooltipStyles = createGlobalStyle<{ maxWidth?: number }>`\n .${TOOLTIP_CLASS_NAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n max-width: ${({ maxWidth }) => maxWidth ?? 200}px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n padding: 8px 16px;\n margin-top: -1.5px;\n background: ${theme.colors.white};\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: ${theme.colors.white};\n }\n }\n`;\n"],"names":["MOBILE_BREAKPOINT","TOOLTIP_CLASS_NAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","PlaceholderGridItem","styled","StickyGridItem","theme","colors","white","CenterPlaceholderGridItem","HEADER_GRID_ITEM_Y_PADDING","HEADER_GRID_ITEM_GAP_DESKTOP","HEADER_GRID_ITEM_GAP_MOBILE","ProductHeaderTooltipStyles","createGlobalStyle","ProductHeaderTooltipHoverArea","div","$tooltipIsPositionedTop","css","$width","ProductHeaderTooltipLink","a","primaryBlue","HeaderGridItem","BREAKPOINTS","MOBILE_AND_DOWN","EmptyHeaderGridItem","EmptyHeaderEmptyProductDescription","$headerItemsAreSticking","HeaderGridItemContainer","RemoveProductButton","button","$isSmallScreen","ProductMeta","productTitleStyles","ProductTitle","black","ProductTitleLink","ProductDescription","black65","$maxWidth","$direction","SelectFromAboveIsStuckContainer","$isStuck","SelectFromAboveIsStuck","ProductNote","black45","font","size10","Badge","BadgeBase","BadgeWrapper","PropertyTitleGridItem","athensGreyDark","EmptyPropertyTitleGridItem","PropertyTitleGridItemContent","PropertyTitle","fontWeight","bold","PropertyIcon","shark","SelectFromAboveIconCopyContainer","ProductImage","img","ProductImageWrap","height","PropertyTooltipHoverArea","PropertyTooltip","PropertyTooltipContent","black85","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","ButtonBase","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","maxWidth"],"mappings":";;;;;;;;;;;;;;AAUO,MAAMA,iBAAoB,GAAA,GAAA;AAE1B,MAAMC,kBAAqB,GAAA,uBAAA;AAC3B,MAAMC,gCACX,GAAA,sCAAA;AAEW,MAAAC,mBAAA,GAAsBC,cAAOC,6BAAc,CAAA;AAAA,gBACxCC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,CAAA;AAIrB,MAAAC,yBAAA,GAA4BL,MAAAA,CAAAA,OAAOC,cAAAA,CAAAA,cAAc,CAAA,EAAA;AAEvD,MAAMK,0BAA6B,GAAA,EAAA;AAEnC,MAAMC,4BAA+B,GAAA,EAAA;AACrC,MAAMC,2BAA8B,GAAA,EAAA;AAEpC,MAAMC,0BAA6B,GAAAC,MAAA,CAAAA,iBAAA;AAAA,KACrCZ,gCAAgC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAmB9B,MAAMa,gCAAgCX,MAAO,CAAAA,MAAA,CAAAY,GAAA;AAAA;AAAA,IAKhD,CAAC;EAAEC;CAAwB,KAC3BA,uBACI,G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A,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"CompareTable.styles.js","sources":["../../../../src/components/ModelCompareV4/CompareTable/CompareTable.styles.tsx"],"sourcesContent":["import { createGlobalStyle, css, styled } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../../constants/layout\";\nimport { theme } from \"../../../constants/theme\";\nimport type { LanguageDirectionType } from \"../../../contexts/MenuContext/utils\";\nimport { Badge as BadgeBase } from \"../../Badge\";\nimport { Button as ButtonBase } from \"../../Button\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport { StickyGridItem } from \"./CompareTableMarkup/components/StickyGrid\";\n\nexport const MOBILE_BREAKPOINT = 650;\n\nexport const TOOLTIP_CLASS_NAME = `model-compare-tooltip`;\nexport const PRODUCT_HEADER_TOOLTIP_CLASSNAME =\n \"model-compare-product-header-tooltip\";\n\nexport const PlaceholderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n z-index: 3;\n`;\n\nexport const CenterPlaceholderGridItem = styled(StickyGridItem)``;\n\nexport const HEADER_GRID_ITEM_Y_PADDING = 16;\n\nexport const HEADER_GRID_ITEM_GAP_DESKTOP = 24;\nexport const HEADER_GRID_ITEM_GAP_MOBILE = 12;\n\nexport const ProductHeaderTooltipStyles = createGlobalStyle`\n .${PRODUCT_HEADER_TOOLTIP_CLASSNAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n width: 175px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 700;\n padding: 10px 20px;\n margin-top: -1.5px;\n background: white;\n text-align: center;\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: white;\n }\n }\n`;\n\n// This expands the hoverable area of the tooltip so users can move their mouse casually to the tooltip\nexport const ProductHeaderTooltipHoverArea = styled.div<{\n $width: number | undefined;\n $tooltipIsPositionedTop: boolean;\n}>`\n position: absolute;\n ${({ $tooltipIsPositionedTop }) =>\n $tooltipIsPositionedTop\n ? css`\n bottom: 0;\n `\n : css`\n top: 0;\n `}\n bottom: 0;\n right: 50%;\n transform: translateX(50%);\n width: ${({ $width }) => $width ?? 175}px;\n height: 40px;\n`;\n\nexport const ProductHeaderTooltipLink = styled.a`\n color: ${theme.colors.primaryBlue};\n\n &:hover {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const HeaderGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n text-align: center;\n padding: ${HEADER_GRID_ITEM_Y_PADDING}px 0;\n gap: ${HEADER_GRID_ITEM_GAP_DESKTOP}px;\n position: relative;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n gap: ${HEADER_GRID_ITEM_GAP_MOBILE}px;\n /* Need this padding-top so sticky offset looks good on mobile */\n padding: 25px 0 0;\n }\n`;\n\nexport const EmptyHeaderGridItem = styled(HeaderGridItem)`\n align-items: center;\n justify-content: center;\n`;\n\nexport const EmptyHeaderEmptyProductDescription = styled.div<{\n $headerItemsAreSticking: boolean;\n}>`\n width: 100%;\n height: 100%;\n\n ${({ $headerItemsAreSticking }) =>\n $headerItemsAreSticking &&\n css`\n display: none;\n `}\n`;\n\nexport const HeaderGridItemContainer = styled.div<{ $isStuck: boolean }>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n`;\n\nexport const RemoveProductButton = styled.button<{ $isSmallScreen: boolean }>`\n position: absolute;\n top: 25px;\n right: 25px;\n background: transparent;\n border: none;\n padding: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 30px;\n color: #c2c6cb;\n\n ${({ $isSmallScreen }) =>\n $isSmallScreen &&\n css`\n top: 0;\n right: 4%;\n `}\n`;\n\nexport const ProductMeta = styled.div`\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: center;\n width: 100%;\n padding: 0 10px;\n\n @media (max-width: ${MOBILE_BREAKPOINT}px) {\n &::before {\n display: none;\n }\n &::after {\n display: none;\n }\n }\n`;\n\nconst productTitleStyles = css`\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n letter-spacing: -0.32px;\n`;\n\nexport const ProductTitle = styled.div`\n ${productTitleStyles}\n\n color: ${theme.colors.black};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 14px;\n }\n`;\n\nexport const ProductTitleLink = styled.button`\n ${productTitleStyles}\n color: ${theme.colors.primaryBlue};\n border: none;\n background: transparent;\n\n :focus,\n :hover {\n text-decoration: none;\n }\n\n :focus {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const ProductDescription = styled.div<{\n $maxWidth?: number;\n $direction: LanguageDirectionType;\n}>`\n font-size: 14px;\n font-weight: 400;\n line-height: normal;\n margin-top: 6px;\n letter-spacing: -0.24px;\n color: ${theme.colors.black65};\n max-width: ${({ $maxWidth }) => ($maxWidth ? `${$maxWidth}px` : \"auto\")};\n direction: ${({ $direction }) => $direction && `${$direction}`};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 4px auto 12px;\n font-size: 12px;\n }\n`;\n\nexport const SelectFromAboveIsStuckContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: none;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n display: flex;\n `}\n`;\n\nexport const SelectFromAboveIsStuck = styled(ProductDescription)`\n margin: 0;\n`;\n\nexport const ProductNote = styled.div`\n color: ${theme.colors.black45};\n font-size: ${theme.font.size10};\n line-height: 16.8px;\n margin-top: 6px;\n text-align: center;\n`;\n\nexport const Badge = styled(BadgeBase)`\n margin: 10px 0 20px;\n`;\n\nexport const BadgeWrapper = styled.div`\n margin-top: auto;\n display: flex;\n gap: 10px;\n`;\n\nexport const PropertyTitleGridItem = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n border-bottom: 1px solid ${theme.colors.athensGreyDark};\n background: ${theme.colors.white};\n z-index: 1;\n overflow: hidden;\n`;\n\nexport const EmptyPropertyTitleGridItem = styled(StickyGridItem)`\n background: ${theme.colors.white};\n`;\n\nexport const PropertyTitleGridItemContent = styled(StickyGridItem)`\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding: 16px 16px 16px 8px;\n width: 100%;\n gap: 8px;\n overflow: hidden;\n`;\n\nexport const PropertyTitle = styled.div`\n font-size: 14px;\n font-weight: ${theme.fontWeight.bold};\n color: ${theme.colors.black65};\n line-height: 16.8px;\n letter-spacing: -0.28px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n font-size: 12px;\n line-height: 14px;\n }\n`;\n\nexport const PropertyIcon = styled.div`\n width: 30px;\n height: 30px;\n color: ${theme.colors.shark};\n`;\n\nexport const SelectFromAboveIconCopyContainer = styled.div<{\n $isStuck: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n opacity: 1;\n\n ${({ $isStuck }) =>\n $isStuck &&\n css`\n opacity: 0;\n `}\n`;\n\nexport const ProductImage = styled.img`\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n -webkit-user-drag: none;\n`;\n\nexport const ProductImageWrap = styled.div<{ height: number }>`\n height: ${({ height }) => `${height}px`};\n display: flex;\n`;\n\nexport const PropertyTooltipHoverArea = styled.div`\n position: absolute;\n height: 35px;\n width: 35px;\n top: 50%;\n transform: translateY(-50%);\n`;\n\nexport const PropertyTooltip = styled.div`\n position: relative;\n height: 20px;\n`;\n\nexport const PropertyTooltipContent = styled.div`\n color: ${theme.colors.black85};\n font-size: 12px;\n\n a {\n color: ${theme.colors.primaryBlue};\n }\n`;\n\nexport const TooltipIcon = styled(StyleableSvgImage)`\n color: ${theme.colors.primaryBlue};\n`;\n\nexport const ButtonWrap = styled.div`\n padding: 16px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nconst buttonStyles = css`\n padding: 10px 15px;\n line-height: 20px;\n font-weight: ${theme.fontWeight.bold};\n margin: auto;\n :focus,\n :hover {\n text-decoration: none;\n }\n\n > * {\n position: static;\n }\n`;\n\nexport const Button = styled(ButtonBase)<{ $removePointerEvents: boolean }>`\n ${buttonStyles};\n\n ${({ $removePointerEvents }) =>\n $removePointerEvents &&\n css`\n pointer-events: none;\n `}\n`;\n\n// TODO: remove if not used anywhere else in store.core\nexport const ComingSoon = styled(ButtonBase)`\n ${buttonStyles};\n\n cursor: default;\n color: #445178;\n\n :focus,\n :hover {\n color: #445178;\n }\n`;\n\nexport const NotesWrap = styled.div`\n padding: 16px 10px 10px;\n text-wrap: pretty;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Note = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const FootnotesWrap = styled.div`\n padding: 0 0 16px;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const Footnote = styled.div`\n font-size: 10px;\n line-height: ${17 / 10};\n color: ${theme.colors.black45};\n text-align: center;\n`;\n\nexport const KitIncluded = styled.div`\n font-size: 14px;\n font-weight: 400;\n letter-spacing: -0.28px;\n line-height: 16.8px;\n color: ${theme.colors.black65};\n`;\n\nexport const TooltipStyles = createGlobalStyle<{ maxWidth?: number }>`\n .${TOOLTIP_CLASS_NAME} {\n box-shadow: 0 8px 24px 0 #00000014;\n max-width: ${({ maxWidth }) => maxWidth ?? 200}px;\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n padding: 8px 16px;\n margin-top: -1.5px;\n background: ${theme.colors.white};\n\n &::before {\n box-shadow: 0 8px 24px 0 #00000014;\n background: ${theme.colors.white};\n }\n }\n`;\n"],"names":["MOBILE_BREAKPOINT","TOOLTIP_CLASS_NAME","PRODUCT_HEADER_TOOLTIP_CLASSNAME","PlaceholderGridItem","styled","StickyGridItem","theme","colors","white","CenterPlaceholderGridItem","HEADER_GRID_ITEM_Y_PADDING","HEADER_GRID_ITEM_GAP_DESKTOP","HEADER_GRID_ITEM_GAP_MOBILE","ProductHeaderTooltipStyles","createGlobalStyle","ProductHeaderTooltipHoverArea","div","$tooltipIsPositionedTop","css","$width","ProductHeaderTooltipLink","a","primaryBlue","HeaderGridItem","BREAKPOINTS","MOBILE_AND_DOWN","EmptyHeaderGridItem","EmptyHeaderEmptyProductDescription","$headerItemsAreSticking","HeaderGridItemContainer","RemoveProductButton","button","$isSmallScreen","ProductMeta","productTitleStyles","ProductTitle","black","ProductTitleLink","ProductDescription","black65","$maxWidth","$direction","SelectFromAboveIsStuckContainer","$isStuck","SelectFromAboveIsStuck","ProductNote","black45","font","size10","Badge","BadgeBase","BadgeWrapper","PropertyTitleGridItem","athensGreyDark","EmptyPropertyTitleGridItem","PropertyTitleGridItemContent","PropertyTitle","fontWeight","bold","PropertyIcon","shark","SelectFromAboveIconCopyContainer","ProductImage","img","ProductImageWrap","height","PropertyTooltipHoverArea","PropertyTooltip","PropertyTooltipContent","black85","TooltipIcon","StyleableSvgImage","ButtonWrap","buttonStyles","Button","ButtonBase","$removePointerEvents","ComingSoon","NotesWrap","Note","FootnotesWrap","Footnote","KitIncluded","TooltipStyles","maxWidth"],"mappings":";;;;;;;;;;;;;;AAUO,MAAMA,iBAAoB,GAAA,GAAA;AAE1B,MAAMC,kBAAqB,GAAA,uBAAA;AAC3B,MAAMC,gCACX,GAAA,sCAAA;AAEW,MAAAC,mBAAA,GAAsBC,wBAAOC,6BAAc,CAAA;AAAA,gBACxCC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,CAAA;AAIrB,MAAAC,yBAAA,GAA4BL,gBAAAA,CAAAA,OAAOC,cAAAA,CAAAA,cAAc,CAAA,EAAA;AAEvD,MAAMK,0BAA6B,GAAA,EAAA;AAEnC,MAAMC,4BAA+B,GAAA,EAAA;AACrC,MAAMC,2BAA8B,GAAA,EAAA;AAEpC,MAAMC,0BAA6B,GAAAC,gBAAA,CAAAA,iBAAA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AAOgC,OAAO;AAAA,CAAA;AAGxB,MAAM4C,aAAgB,GAAArE,gBAAA,CAAAA,iBAAA;AAAA,KACxBb,kBAAkB;AAAA;AAAA,iBAEN,CAAC;EAAEmF;CAAS,KAAMA,YAAY,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMhC9E,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;;AAAA;AAAA;AAAA,oBAIhBF,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var styledComponents = require('styled-components');
|
|
6
6
|
require('../../../../../constants/modelCompareData/assets/arrow-right.svg.js');
|
|
7
7
|
var useModelCompareTranslation = require('../../../../../constants/modelCompareData/translations/useModelCompareTranslation.js');
|
|
8
8
|
var asset = require('../../../../../utils/asset.js');
|
|
@@ -75,7 +75,7 @@ function ModelCompareOverflowScrollButton({
|
|
|
75
75
|
})
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
const Button =
|
|
78
|
+
const Button = styledComponents.styled.button`
|
|
79
79
|
color: inherit;
|
|
80
80
|
outline: none;
|
|
81
81
|
opacity: ${({
|
|
@@ -103,7 +103,7 @@ const Button = styled.styled.button`
|
|
|
103
103
|
}) => $color !== "white" ? "1px solid #eee" : "none"};
|
|
104
104
|
cursor: pointer;
|
|
105
105
|
`;
|
|
106
|
-
const Icon =
|
|
106
|
+
const Icon = styledComponents.styled.div`
|
|
107
107
|
transform: rotate(${({
|
|
108
108
|
$rotation
|
|
109
109
|
}) => $rotation}deg)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompareTableOverflowScrollButton.js","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport { styled } from \"styled-components\";\n\nimport arrowRightIcon from \"../../../../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { useModelCompareTranslation } from \"../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { imageSrc } from \"../../../../../utils/asset\";\nimport { StyleableSvgImage } from \"../../../../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nconst icon = imageSrc(arrowRightIcon);\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n isLeftButton = true,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n isLeftButton?: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const { formatMessage } = useModelCompareTranslation();\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n aria-label={\n isLeftButton\n ? formatMessage(\"commons.scrollButton.left\")\n : formatMessage(\"commons.scrollButton.right\")\n }\n $color={color}\n $rotation={rotationDegrees}\n $isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon $rotation={rotationDegrees} $arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n pointer-events: ${({ $isVisible }) => ($isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ $rotation }) => $rotation - 90}deg,\n ${({ $color }) => $color},\n transparent 20px\n );\n border-left: ${({ $color }) =>\n $color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ $rotation: number; $arrowOffset: number }>`\n transform: rotate(${({ $rotation }) => $rotation}deg)\n translateX(${({ $arrowOffset }) => $arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgb(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["icon","imageSrc","arrowRightIcon","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","isLeftButton","scrollGroupItemsRef","scrollTo","useStickyGrid","formatMessage","useModelCompareTranslation","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","$color","$rotation","$isVisible","type","onClick","children","Icon","$arrowOffset","StyleableSvgImage","width","height","src","styled","button","div"],"mappings":";;;;;;;;;;;;;;;;;;;AASA,MAAMA,IAAA,GAAOC,eAASC,kCAAc,CAAA;AAE7B,SAASC,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC,eAAA;EACAC,iBAAA;EACAC,YAAA;EACAC,cAAA;EACAC,aAAA;EACAC,YAAe,GAAA;AACjB,CASG,EAAA;EACD,MAAM;IAAEC,mBAAA;IAAqBC;EAAS,CAAA,GAAIC,qBAAc,CAAA,CAAA;EAElD,MAAA;IAAEC;EAAc,CAAA,GAAIC,qDAA2B,CAAA,CAAA;EAG/C,MAAAC,WAAA,GAAcC,KAAAA,CAAAA,YAAY,MAAM;IACpC,MAAMC,aAAgB,GAAAP,mBAAA,CAAoBQ,OAAU,GAAA,CAAC,GAAGC,SAAU,CAAAD,OAAA;IAElE,IAAI,CAACD,aAAe,EAAA;MAClB;IAAA;IAGF,MAAMG,aAAaH,aAAc,CAAAI,WAAA;IAC3B,MAAAC,iBAAA,GAAoBL,cAAcM,UAAa,GAAA,CAAA;IAC/C,MAAAC,cAAA,GAAA,CAAkBJ,aAAab,cAAkB,IAAAD,YAAA;IACvD,MAAMmB,qBAAqBC,IAAK,CAAAC,GAAA,CAC9BrB,YAAe,GAAA,CAAA,EACfoB,KAAKE,GAAI,CAAA,CAAA,EAAGF,KAAKG,KAAM,CAAAP,iBAAA,GAAoBE,cAAc,CAAC,CAC5D,CAAA;IAEA,MAAMM,iBAAiBJ,IAAK,CAAAE,GAAA,CAC1BF,IAAK,CAAAC,GAAA,CAAIF,kBAAqB,GAAApB,iBAAA,EAAmBC,YAAY,CAAA,EAC7D,CACF,CAAA;IAEA,MAAMyB,aAAaD,cAAiB,GAAAN,cAAA;IAEpCb,QAAA,CAAS;MAAEqB,IAAA,EAAMD,UAAY;MAAAE,QAAA,EAAU;KAAU,CAAA;EAAA,CAChD,EAAA,CACD5B,iBAAA,EACAK,mBAAA,EACAC,QAAA,EACAL,YAAA,EACAC,cAAA,CACD,CAAA;EAEK,MAAA2B,WAAA,GAAcC,KAAAA,CAAAA,QAAQ,MAAM;IAChC,IAAI3B,aAAe,EAAA;MACV,OAAAJ,eAAA,GAAkB,MAAM,CAAK,CAAA,GAAA,CAAA;IAAA;IAG/B,OAAA,CAAA,EAAA;EAAA,CACN,EAAA,CAACI,aAAe,EAAAJ,eAAe,CAAC,CAAA;EAGjC,sBAAAgC,UAAA,CAAAA,GAAA,CAACC,MAAA,EAAA;IACC,cACE5B,YACI,GAAAI,aAAA,CAAc,2BAA2B,CAAA,GACzCA,cAAc,4BAA4B,CAAA;IAEhDyB,MAAQ,EAAAnC,KAAA;IACRoC,SAAW,EAAAnC,eAAA;IACXoC,UAAY,EAAAtC,SAAA;IACZuC,IAAK,EAAA,QAAA;IACLC,OAAS,EAAA3B,WAAA;IAET4B,QAAC,EAAA,eAAAP,UAAA,CAAAA,GAAA,CAAAQ,IAAA,EAAA;MAAKL,SAAW,EAAAnC,eAAA;MAAiByC,cAAcX,WAC9C;MAAAS,QAAA,EAAA,eAAAP,UAAA,CAAAA,GAAA,CAACU,mCAAkB,EAAA;QAAAC,KAAA,EAAO,EAAI;QAAAC,MAAA,EAAQ,EAAI;QAAAC,GAAA,EAAKnD;OAAM;IACvD,CAAA;EAAA,CACF,CAAA;AAEJ;AAEA,MAAMuC,SAASa,
|
|
1
|
+
{"version":3,"file":"CompareTableOverflowScrollButton.js","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/CompareTableOverflowScrollButton.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport { styled } from \"styled-components\";\n\nimport arrowRightIcon from \"../../../../../constants/modelCompareData/assets/arrow-right.svg\";\nimport { useModelCompareTranslation } from \"../../../../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport { imageSrc } from \"../../../../../utils/asset\";\nimport { StyleableSvgImage } from \"../../../../StyleableSvgImage\";\nimport { useStickyGrid } from \"./StickyGrid/context\";\n\nconst icon = imageSrc(arrowRightIcon);\n\nexport function ModelCompareOverflowScrollButton({\n isVisible,\n color,\n rotationDegrees,\n onClickColumnDiff,\n totalColumns,\n totalDeadSpace,\n isSmallScreen,\n isLeftButton = true,\n}: {\n isVisible: boolean;\n color: string;\n rotationDegrees: number;\n onClickColumnDiff: number;\n totalDeadSpace: number;\n totalColumns: number;\n isSmallScreen: boolean;\n isLeftButton?: boolean;\n}) {\n const { scrollGroupItemsRef, scrollTo } = useStickyGrid();\n\n const { formatMessage } = useModelCompareTranslation();\n\n // Scroll one column on click\n const handleClick = useCallback(() => {\n const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;\n\n if (!anyScrollItem) {\n return;\n }\n\n const totalWidth = anyScrollItem.scrollWidth;\n const currentScrollLeft = anyScrollItem.scrollLeft + 1;\n const oneColumnWidth = (totalWidth - totalDeadSpace) / totalColumns;\n const currentColumnIndex = Math.min(\n totalColumns - 1,\n Math.max(0, Math.round(currentScrollLeft / oneColumnWidth)),\n );\n\n const newColumnIndex = Math.max(\n Math.min(currentColumnIndex + onClickColumnDiff, totalColumns),\n 0,\n );\n\n const offsetLeft = newColumnIndex * oneColumnWidth;\n\n scrollTo({ left: offsetLeft, behavior: \"smooth\" });\n }, [\n onClickColumnDiff,\n scrollGroupItemsRef,\n scrollTo,\n totalColumns,\n totalDeadSpace,\n ]);\n\n const arrowOffset = useMemo(() => {\n if (isSmallScreen) {\n return rotationDegrees < 180 ? -5 : 0;\n }\n\n return -15;\n }, [isSmallScreen, rotationDegrees]);\n\n return (\n <Button\n aria-label={\n isLeftButton\n ? formatMessage(\"commons.scrollButton.left\")\n : formatMessage(\"commons.scrollButton.right\")\n }\n $color={color}\n $rotation={rotationDegrees}\n $isVisible={isVisible}\n type=\"button\"\n onClick={handleClick}\n >\n <Icon $rotation={rotationDegrees} $arrowOffset={arrowOffset}>\n <StyleableSvgImage width={10} height={16} src={icon} />\n </Icon>\n </Button>\n );\n}\n\nconst Button = styled.button<{\n $isVisible: boolean;\n $rotation: number;\n $color: string;\n}>`\n color: inherit;\n outline: none;\n opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};\n pointer-events: ${({ $isVisible }) => ($isVisible ? \"auto\" : \"none\")};\n transition: opacity 0.2s;\n height: 100%;\n width: 40px;\n background: transparent;\n border: none;\n background-image: linear-gradient(\n ${({ $rotation }) => $rotation - 90}deg,\n ${({ $color }) => $color},\n transparent 20px\n );\n border-left: ${({ $color }) =>\n $color !== \"white\" ? \"1px solid #eee\" : \"none\"};\n cursor: pointer;\n`;\n\nconst Icon = styled.div<{ $rotation: number; $arrowOffset: number }>`\n transform: rotate(${({ $rotation }) => $rotation}deg)\n translateX(${({ $arrowOffset }) => $arrowOffset ?? 0}px);\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding-left: 4px;\n height: 44px;\n width: 44px;\n\n border-radius: 50%;\n background: rgb(255 255 255 / 0.8);\n box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.25);\n backdrop-filter: blur(2px);\n color: #808893;\n`;\n"],"names":["icon","imageSrc","arrowRightIcon","ModelCompareOverflowScrollButton","isVisible","color","rotationDegrees","onClickColumnDiff","totalColumns","totalDeadSpace","isSmallScreen","isLeftButton","scrollGroupItemsRef","scrollTo","useStickyGrid","formatMessage","useModelCompareTranslation","handleClick","useCallback","anyScrollItem","current","refObject","totalWidth","scrollWidth","currentScrollLeft","scrollLeft","oneColumnWidth","currentColumnIndex","Math","min","max","round","newColumnIndex","offsetLeft","left","behavior","arrowOffset","useMemo","jsx","Button","$color","$rotation","$isVisible","type","onClick","children","Icon","$arrowOffset","StyleableSvgImage","width","height","src","styled","button","div"],"mappings":";;;;;;;;;;;;;;;;;;;AASA,MAAMA,IAAA,GAAOC,eAASC,kCAAc,CAAA;AAE7B,SAASC,gCAAiCA,CAAA;EAC/CC,SAAA;EACAC,KAAA;EACAC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AAa,KAAMA,gBAAgB,CAAC;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/HeaderShadow.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var styledComponents = require('styled-components');
|
|
5
5
|
"use strict";
|
|
6
6
|
function HeaderShadow({
|
|
7
7
|
leftColumnWidth,
|
|
@@ -18,10 +18,10 @@ function HeaderShadow({
|
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
const HeaderShadowDrop =
|
|
21
|
+
const HeaderShadowDrop = styledComponents.styled.div`
|
|
22
22
|
background: linear-gradient(to bottom, rgb(23 49 73 / 0.1), transparent);
|
|
23
23
|
`;
|
|
24
|
-
const HeaderShadowWrapper =
|
|
24
|
+
const HeaderShadowWrapper = styledComponents.styled.div`
|
|
25
25
|
width: 100%;
|
|
26
26
|
height: ${({
|
|
27
27
|
$height
|
|
@@ -37,7 +37,7 @@ const HeaderShadowWrapper = styled.styled.div`
|
|
|
37
37
|
transition: opacity 0.2s;
|
|
38
38
|
overflow-x: hidden;
|
|
39
39
|
`;
|
|
40
|
-
const HeaderShadowGrid =
|
|
40
|
+
const HeaderShadowGrid = styledComponents.styled.div`
|
|
41
41
|
display: grid;
|
|
42
42
|
grid-template-columns: ${({
|
|
43
43
|
$templateColumns
|
package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/HeaderShadow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderShadow.js","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/HeaderShadow.tsx"],"sourcesContent":["import { styled } from \"styled-components\";\n\nexport function HeaderShadow({\n leftColumnWidth,\n shadowLeftColumn,\n show,\n}: {\n leftColumnWidth: number;\n shadowLeftColumn: boolean;\n show: boolean;\n}) {\n const height = 15;\n\n return (\n <HeaderShadowWrapper $height={height} $show={show}>\n <HeaderShadowGrid\n $templateColumns={\n shadowLeftColumn ? `0px 1fr` : `${leftColumnWidth}px 1fr`\n }\n >\n {/* This empty div allows us to adjust the grid of HeaderShadowGrid when the table is being horizontally scrolled. We want this so we can create the illusion that the property titles are overlapping HeaderShadowDrop */}\n <div />\n <HeaderShadowDrop />\n </HeaderShadowGrid>\n </HeaderShadowWrapper>\n );\n}\n\nconst HeaderShadowDrop = styled.div`\n background: linear-gradient(to bottom, rgb(23 49 73 / 0.1), transparent);\n`;\n\nconst HeaderShadowWrapper = styled.div<{ $height: number; $show: boolean }>`\n width: 100%;\n height: ${({ $height }) => $height}px;\n margin-bottom: ${({ $height }) => -$height}px;\n z-index: 2;\n position: relative;\n opacity: ${({ $show }) => ($show ? 1 : 0)};\n transition: opacity 0.2s;\n overflow-x: hidden;\n`;\n\nconst HeaderShadowGrid = styled.div<{ $templateColumns: string }>`\n display: grid;\n grid-template-columns: ${({ $templateColumns }) => $templateColumns};\n height: 100%;\n`;\n"],"names":["HeaderShadow","leftColumnWidth","shadowLeftColumn","show","height","jsx","HeaderShadowWrapper","$height","$show","children","jsxs","HeaderShadowGrid","$templateColumns","HeaderShadowDrop","styled","div"],"mappings":";;;;;AAEO,SAASA,YAAaA,CAAA;EAC3BC,eAAA;EACAC,gBAAA;EACAC;AACF,CAIG,EAAA;EACD,MAAMC,MAAS,GAAA,EAAA;EAEf,sBACGC,UAAA,CAAAA,GAAA,CAAAC,mBAAA,EAAA;IAAoBC,OAAS,EAAAH,MAAA;IAAQI,OAAOL,IAC3C;IAAAM,QAAA,iBAAAC,UAAA,CAAAA,IAAA,CAACC,gBAAA,EAAA;MACCC,gBACE,EAAAV,gBAAA,GAAmB,SAAY,GAAA,GAAGD,eAAe,QAAA;MAInDQ,QAAA,EAAA,CAAA,eAAAJ,UAAA,CAAAA,GAAA,CAAC,KAAI,EAAA,EAAA,CAAA,EAAA,8BACJQ,gBAAiB,EAAA,CAAA,CAAA,CAAA;IAAA,CAAA;GAEtB,CAAA;AAEJ;AAEA,MAAMA,mBAAmBC,
|
|
1
|
+
{"version":3,"file":"HeaderShadow.js","sources":["../../../../../../src/components/ModelCompareV4/CompareTable/CompareTableMarkup/components/HeaderShadow.tsx"],"sourcesContent":["import { styled } from \"styled-components\";\n\nexport function HeaderShadow({\n leftColumnWidth,\n shadowLeftColumn,\n show,\n}: {\n leftColumnWidth: number;\n shadowLeftColumn: boolean;\n show: boolean;\n}) {\n const height = 15;\n\n return (\n <HeaderShadowWrapper $height={height} $show={show}>\n <HeaderShadowGrid\n $templateColumns={\n shadowLeftColumn ? `0px 1fr` : `${leftColumnWidth}px 1fr`\n }\n >\n {/* This empty div allows us to adjust the grid of HeaderShadowGrid when the table is being horizontally scrolled. We want this so we can create the illusion that the property titles are overlapping HeaderShadowDrop */}\n <div />\n <HeaderShadowDrop />\n </HeaderShadowGrid>\n </HeaderShadowWrapper>\n );\n}\n\nconst HeaderShadowDrop = styled.div`\n background: linear-gradient(to bottom, rgb(23 49 73 / 0.1), transparent);\n`;\n\nconst HeaderShadowWrapper = styled.div<{ $height: number; $show: boolean }>`\n width: 100%;\n height: ${({ $height }) => $height}px;\n margin-bottom: ${({ $height }) => -$height}px;\n z-index: 2;\n position: relative;\n opacity: ${({ $show }) => ($show ? 1 : 0)};\n transition: opacity 0.2s;\n overflow-x: hidden;\n`;\n\nconst HeaderShadowGrid = styled.div<{ $templateColumns: string }>`\n display: grid;\n grid-template-columns: ${({ $templateColumns }) => $templateColumns};\n height: 100%;\n`;\n"],"names":["HeaderShadow","leftColumnWidth","shadowLeftColumn","show","height","jsx","HeaderShadowWrapper","$height","$show","children","jsxs","HeaderShadowGrid","$templateColumns","HeaderShadowDrop","styled","div"],"mappings":";;;;;AAEO,SAASA,YAAaA,CAAA;EAC3BC,eAAA;EACAC,gBAAA;EACAC;AACF,CAIG,EAAA;EACD,MAAMC,MAAS,GAAA,EAAA;EAEf,sBACGC,UAAA,CAAAA,GAAA,CAAAC,mBAAA,EAAA;IAAoBC,OAAS,EAAAH,MAAA;IAAQI,OAAOL,IAC3C;IAAAM,QAAA,iBAAAC,UAAA,CAAAA,IAAA,CAACC,gBAAA,EAAA;MACCC,gBACE,EAAAV,gBAAA,GAAmB,SAAY,GAAA,GAAGD,eAAe,QAAA;MAInDQ,QAAA,EAAA,CAAA,eAAAJ,UAAA,CAAAA,GAAA,CAAC,KAAI,EAAA,EAAA,CAAA,EAAA,8BACJQ,gBAAiB,EAAA,CAAA,CAAA,CAAA;IAAA,CAAA;GAEtB,CAAA;AAEJ;AAEA,MAAMA,mBAAmBC,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA,CAAA;AAIhC,MAAMT,sBAAsBQ,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA,YAEvB,CAAC;EAAER;AAAQ,CAAA,KAAMA,OAAO;AAAA,mBACjB,CAAC;EAAEA;CAAQ,KAAM,CAACA,OAAO;AAAA;AAAA;AAAA,aAG/B,CAAC;EAAEC;AAAA,CAAa,KAAAA,KAAA,GAAQ,IAAI,CAAE;AAAA;AAAA;AAAA,CAAA;AAK3C,MAAMG,mBAAmBG,gBAAO,CAAAA,MAAA,CAAAC,GAAA;AAAA;AAAA,2BAEL,CAAC;EAAEH;AAAiB,CAAA,KAAMA,gBAAgB;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
|
var layout = require('../../../../../constants/layout.js');
|
|
8
8
|
require('../../../../../constants/modelCompareData/assets/check.svg.js');
|
|
9
9
|
require('../../../../../constants/modelCompareData/assets/minus.svg.js');
|
|
@@ -130,7 +130,7 @@ function PropertyValueComponent({
|
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
const Stack =
|
|
133
|
+
const Stack = styledComponents.styled.div`
|
|
134
134
|
display: flex;
|
|
135
135
|
flex-direction: column;
|
|
136
136
|
gap: 4px;
|
|
@@ -144,12 +144,12 @@ const Stack = styled.styled.div`
|
|
|
144
144
|
font-size: 12px;
|
|
145
145
|
}
|
|
146
146
|
`;
|
|
147
|
-
const Value =
|
|
147
|
+
const Value = styledComponents.styled.div`
|
|
148
148
|
text-align: right;
|
|
149
149
|
|
|
150
150
|
${({
|
|
151
151
|
$disableOverflow
|
|
152
|
-
}) => !$disableOverflow &&
|
|
152
|
+
}) => !$disableOverflow && styledComponents.css`
|
|
153
153
|
overflow: hidden;
|
|
154
154
|
`}
|
|
155
155
|
text-overflow: ellipsis;
|
|
@@ -158,7 +158,7 @@ const Value = styled.styled.div`
|
|
|
158
158
|
div {
|
|
159
159
|
${({
|
|
160
160
|
$disableOverflow
|
|
161
|
-
}) => !$disableOverflow &&
|
|
161
|
+
}) => !$disableOverflow && styledComponents.css`
|
|
162
162
|
overflow: hidden;
|
|
163
163
|
`}
|
|
164
164
|
|
|
@@ -166,7 +166,7 @@ const Value = styled.styled.div`
|
|
|
166
166
|
}
|
|
167
167
|
`;
|
|
168
168
|
const borderStyles = `1px solid ${theme.theme.colors.athensGreyDark}`;
|
|
169
|
-
const GridItem =
|
|
169
|
+
const GridItem = styledComponents.styled(StickyGridItem.StickyGridItem)`
|
|
170
170
|
display: flex;
|
|
171
171
|
align-items: center;
|
|
172
172
|
justify-content: center;
|
|
@@ -179,11 +179,11 @@ const GridItem = styled.styled(StickyGridItem.StickyGridItem)`
|
|
|
179
179
|
|
|
180
180
|
${({
|
|
181
181
|
$isLastProduct
|
|
182
|
-
}) => $isLastProduct &&
|
|
182
|
+
}) => $isLastProduct && styledComponents.css`
|
|
183
183
|
border-right: ${borderStyles};
|
|
184
184
|
`}
|
|
185
185
|
`;
|
|
186
|
-
const InlineGridItem =
|
|
186
|
+
const InlineGridItem = styledComponents.styled(StickyGridItem.StickyGridItem)`
|
|
187
187
|
display: flex;
|
|
188
188
|
gap: 8px;
|
|
189
189
|
align-items: center;
|
|
@@ -191,20 +191,20 @@ const InlineGridItem = styled.styled(StickyGridItem.StickyGridItem)`
|
|
|
191
191
|
overflow: hidden;
|
|
192
192
|
border-bottom: 1px solid ${theme.theme.colors.athensGreyDark};
|
|
193
193
|
`;
|
|
194
|
-
const PropertyTitle =
|
|
194
|
+
const PropertyTitle = styledComponents.styled.div`
|
|
195
195
|
font-size: 14px;
|
|
196
196
|
font-weight: ${theme.theme.fontWeight.bold};
|
|
197
197
|
max-width: 45%;
|
|
198
198
|
line-height: ${17 / 14};
|
|
199
199
|
`;
|
|
200
|
-
const PropertyIcon =
|
|
200
|
+
const PropertyIcon = styledComponents.styled.div`
|
|
201
201
|
width: 30px;
|
|
202
202
|
height: 30px;
|
|
203
203
|
`;
|
|
204
|
-
const Spacer =
|
|
204
|
+
const Spacer = styledComponents.styled.div`
|
|
205
205
|
flex: 1;
|
|
206
206
|
`;
|
|
207
|
-
const BooleanWrap =
|
|
207
|
+
const BooleanWrap = styledComponents.styled.div`
|
|
208
208
|
position: relative;
|
|
209
209
|
overflow: visible;
|
|
210
210
|
|
|
@@ -215,7 +215,7 @@ const BooleanWrap = styled.styled.div`
|
|
|
215
215
|
gap: 5.5px;
|
|
216
216
|
}
|
|
217
217
|
`;
|
|
218
|
-
const BooleanAsterisks =
|
|
218
|
+
const BooleanAsterisks = styledComponents.styled.div`
|
|
219
219
|
position: absolute;
|
|
220
220
|
font-size: 14px;
|
|
221
221
|
line-height: 16.8px;
|