@ubnt/store.core 9.40.0-alpha.1 → 9.40.0-alpha.12
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 +44 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/arrow-icon-tertiary.svg +3 -0
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/building-bridge.jpg +0 -0
- package/lib/assets/building-bridge2.jpg +0 -0
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/close4.svg +2 -2
- package/lib/assets/e7.png +0 -0
- package/lib/assets/g4-instant.jpg +0 -0
- package/lib/assets/g4-instant2.jpg +0 -0
- package/lib/assets/g5-dome.jpg +0 -0
- package/lib/assets/g5-dome2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-turret-ultra.jpg +0 -0
- package/lib/assets/g5-turret-ultra2.jpg +0 -0
- package/lib/assets/industrial2.jpg +0 -0
- package/lib/assets/industrial3.jpg +0 -0
- package/lib/assets/integrations.svg +1 -1
- package/lib/assets/interior-design.svg +2 -2
- package/lib/assets/interior-design2.svg +2 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/ptz2.svg +2 -2
- package/lib/assets/ptz3.svg +2 -2
- package/lib/assets/wifiE7.svg +3 -0
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
- package/lib/components/Compare/Compare.styles.d.ts +1 -1
- package/lib/components/CompareChart/CompareChart.styles.d.ts +2 -2
- package/lib/components/CustomImage/CustomImage.styles.d.ts +1 -1
- package/lib/components/Explore/Explore.styles.d.ts +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Gallery/GalleryControls/GalleryControls.styles.d.ts +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +2 -2
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +1 -1
- package/lib/components/Header/Header.styles.js +3 -7
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +3 -7
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +8 -3
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +8 -3
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -0
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js +14 -11
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs +14 -11
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +1 -0
- package/lib/components/Hero/Hero.styles.d.ts +1 -1
- package/lib/components/ImageCarousel/ImageCarousel.styles.d.ts +2 -2
- package/lib/components/LandingPage/Cards/Card/Card.styles.d.ts +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.d.ts +1 -1
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.styles.d.ts +1 -1
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/HeaderContent/_components/SubNavigation/SubNavigation.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.js +1 -0
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.js.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.mjs +1 -0
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.styles.d.ts +3 -3
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.styles.js +11 -6
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.styles.mjs +11 -6
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.js +33 -2
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.js.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.mjs +28 -3
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +12 -3
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.js +127 -68
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.mjs +126 -70
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/assets/arrow-icon-tertiary.svg.js +27 -0
- package/lib/components/MicrositeHeader/components/SiteMapColumns/assets/arrow-icon-tertiary.svg.js.map +1 -0
- package/lib/components/MicrositeHeader/components/SiteMapColumns/assets/arrow-icon-tertiary.svg.mjs +3 -0
- package/lib/components/MicrositeHeader/components/SiteMapColumns/assets/arrow-icon-tertiary.svg.mjs.map +1 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.d.ts +1 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.js +7 -5
- package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.js.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.mjs +7 -5
- package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js +24 -8
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.mjs +24 -9
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.d.ts +13 -5
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.js +76 -33
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.mjs +73 -34
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.js +27 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.js.map +1 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.mjs +3 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.mjs.map +1 -0
- package/lib/components/MicrositeHero/MicrositeHero.styles.d.ts +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.d.ts +3 -3
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.d.ts +1 -1
- package/lib/components/ModelCompareV4/CompareTable.d.ts +4 -3
- package/lib/components/ModelCompareV4/CompareTable.js +13 -13
- package/lib/components/ModelCompareV4/CompareTable.js.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable.mjs +13 -13
- package/lib/components/ModelCompareV4/CompareTable.mjs.map +1 -1
- package/lib/components/ModelCompareV4/CompareTable.styles.d.ts +1 -1
- package/lib/components/ModelCompareV4/EmptyState.js +1 -0
- package/lib/components/ModelCompareV4/EmptyState.js.map +1 -1
- package/lib/components/ModelCompareV4/EmptyState.mjs +1 -0
- package/lib/components/ModelCompareV4/EmptyState.mjs.map +1 -1
- package/lib/components/ModelCompareV4/ModelComparePropertyValueGridItem.js +19 -2
- package/lib/components/ModelCompareV4/ModelComparePropertyValueGridItem.js.map +1 -1
- package/lib/components/ModelCompareV4/ModelComparePropertyValueGridItem.mjs +20 -3
- package/lib/components/ModelCompareV4/ModelComparePropertyValueGridItem.mjs.map +1 -1
- package/lib/components/ModelCompareV4/ModelCompareV4.d.ts +0 -1
- package/lib/components/ModelCompareV4/ModelCompareV4.js +8 -6
- package/lib/components/ModelCompareV4/ModelCompareV4.js.map +1 -1
- package/lib/components/ModelCompareV4/ModelCompareV4.mjs +9 -6
- package/lib/components/ModelCompareV4/ModelCompareV4.mjs.map +1 -1
- package/lib/components/ModelCompareV4/ProductList.d.ts +6 -5
- package/lib/components/ModelCompareV4/ProductList.js +49 -42
- package/lib/components/ModelCompareV4/ProductList.js.map +1 -1
- package/lib/components/ModelCompareV4/ProductList.mjs +49 -42
- package/lib/components/ModelCompareV4/ProductList.mjs.map +1 -1
- package/lib/components/ModelCompareV4/ProductList.styles.d.ts +5 -3
- package/lib/components/ModelCompareV4/ProductList.styles.js +7 -5
- package/lib/components/ModelCompareV4/ProductList.styles.js.map +1 -1
- package/lib/components/ModelCompareV4/ProductList.styles.mjs +7 -5
- package/lib/components/ModelCompareV4/ProductList.styles.mjs.map +1 -1
- package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.d.ts +1 -1
- package/lib/components/ProductCard/ProductCard.styles.d.ts +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.styles.d.ts +1 -1
- package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.styles.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.d.ts +1 -1
- package/lib/components/StyleableSvgImage/StyleableSvgImage.d.ts +1 -1
- package/lib/components/StyleableSvgImage/StyleableSvgImage.js +8 -3
- package/lib/components/StyleableSvgImage/StyleableSvgImage.js.map +1 -1
- package/lib/components/StyleableSvgImage/StyleableSvgImage.mjs +8 -3
- package/lib/components/StyleableSvgImage/StyleableSvgImage.mjs.map +1 -1
- package/lib/components/StyleableSvgImage/StyleableSvgImage.types.d.ts +1 -0
- package/lib/components/TabinationButtons/TabinationButtons.styles.d.ts +1 -1
- package/lib/components/VariantSelector/CheckBox/CheckBox.styles.d.ts +2 -2
- package/lib/components/VariantSelector/VariantSelector.styles.d.ts +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.styles.d.ts +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/constants/icons/menu/index.d.ts +1 -0
- package/lib/constants/icons/menu/index.js +9 -0
- package/lib/constants/icons/menu/index.js.map +1 -1
- package/lib/constants/icons/menu/index.mjs +2 -0
- package/lib/constants/icons/menu/index.mjs.map +1 -1
- package/lib/constants/icons/menu/wifiE7.svg.js +27 -0
- package/lib/constants/icons/menu/wifiE7.svg.js.map +1 -0
- package/lib/constants/icons/menu/wifiE7.svg.mjs +3 -0
- package/lib/constants/icons/menu/wifiE7.svg.mjs.map +1 -0
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge.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/Compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.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/Switching/industrial.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/close.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/close.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/interior-design.svg.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/compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.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/assets/product-list-assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/ptz.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/ptz.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/ptz.svg.mjs +2 -2
- package/lib/constants/modelCompareData/data/CloudGateways.js +4 -3
- package/lib/constants/modelCompareData/data/CloudGateways.js.map +1 -1
- package/lib/constants/modelCompareData/data/CloudGateways.mjs +4 -3
- package/lib/constants/modelCompareData/data/CloudGateways.mjs.map +1 -1
- package/lib/constants/modelCompareData/data/CloudGatewaysCompact.js +90 -11
- package/lib/constants/modelCompareData/data/CloudGatewaysCompact.js.map +1 -1
- package/lib/constants/modelCompareData/data/CloudGatewaysCompact.mjs +77 -11
- package/lib/constants/modelCompareData/data/CloudGatewaysCompact.mjs.map +1 -1
- package/lib/constants/modelCompareData/data/Dome.js +1 -1
- package/lib/constants/modelCompareData/data/Dome.js.map +1 -1
- package/lib/constants/modelCompareData/data/Dome.mjs +1 -1
- package/lib/constants/modelCompareData/data/Dome.mjs.map +1 -1
- package/lib/constants/modelCompareData/data/DreamMachineConsole.js +86 -8
- package/lib/constants/modelCompareData/data/DreamMachineConsole.js.map +1 -1
- package/lib/constants/modelCompareData/data/DreamMachineConsole.mjs +73 -8
- package/lib/constants/modelCompareData/data/DreamMachineConsole.mjs.map +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/interiorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/ptz.js +1 -1
- package/lib/constants/modelCompareData/data/product-list-groups/ptz.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/buildingBridge.js +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridge.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/g5Dome.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/industrial.js +2 -2
- package/lib/constants/modelCompareData/data/products/industrial.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/types.d.ts +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/theme.js +4 -1
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +4 -1
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/e7.png.js +27 -0
- package/lib/contexts/MicrositeMenuContext/assets/e7.png.js.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/e7.png.mjs +3 -0
- package/lib/contexts/MicrositeMenuContext/assets/e7.png.mjs.map +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.js +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs +1 -0
- package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.js +20 -0
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +18 -0
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +9 -5
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +9 -5
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +2 -2
- package/package.json +1 -1
|
@@ -5,7 +5,6 @@ import '../../constants/modelCompareData/assets/plus.svg.mjs';
|
|
|
5
5
|
import { useModelCompareTranslation } from '../../constants/modelCompareData/translations/useModelCompareTranslation.mjs';
|
|
6
6
|
import { imageSrc } from '../../utils/asset.mjs';
|
|
7
7
|
import '../StyleableSvgImage/index.mjs';
|
|
8
|
-
import { SELECTED_PRODUCTS_LIMIT } from './ModelCompareV4.mjs';
|
|
9
8
|
import { Product as Product$1, Image, DescriptionButtonContainer, Name, Description, Button, ButtonIcon, ButtonCopy, ProductGroups as ProductGroups$1, ProductGroupLabelContainer, ProductGroupLabel, ProductGroupLabelLineContainer, ProductGroupLabelLine, GroupTabsContainer, GroupTabs, GroupTab, GroupTabCopy, Wrapper, Container, ProductGroupProductListContainer, ProductList as ProductList$1 } from './ProductList.styles.mjs';
|
|
10
9
|
import plusIcon__default from "../../assets/plus.svg";
|
|
11
10
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
@@ -16,18 +15,18 @@ const allProductGroups = products => {
|
|
|
16
15
|
const groupProducts = products => {
|
|
17
16
|
const result = [];
|
|
18
17
|
let current = {
|
|
19
|
-
|
|
18
|
+
productListGroup: null,
|
|
20
19
|
span: 0
|
|
21
20
|
};
|
|
22
|
-
for (const
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
21
|
+
for (const productListGroup of allProductGroups(products)) {
|
|
22
|
+
const productListGroupId = productListGroup?.id ?? null;
|
|
23
|
+
if (productListGroupId === (current.productListGroup?.id ?? null)) {
|
|
25
24
|
current.span++;
|
|
26
25
|
continue;
|
|
27
26
|
}
|
|
28
27
|
result.push(current);
|
|
29
28
|
current = {
|
|
30
|
-
|
|
29
|
+
productListGroup,
|
|
31
30
|
span: 1
|
|
32
31
|
};
|
|
33
32
|
}
|
|
@@ -50,13 +49,14 @@ const Product = ({
|
|
|
50
49
|
playAnimation,
|
|
51
50
|
setPlayAnimation,
|
|
52
51
|
hasBeenObserved,
|
|
53
|
-
productListGroupsDontExist
|
|
52
|
+
productListGroupsDontExist,
|
|
53
|
+
selectedProductsLimit
|
|
54
54
|
}) => {
|
|
55
55
|
const {
|
|
56
56
|
formatMessage
|
|
57
57
|
} = useModelCompareTranslation();
|
|
58
58
|
const isSelected = selectedProducts.some(product => product.productId === id);
|
|
59
|
-
const isDisabled = !isSelected && selectedProducts.length ===
|
|
59
|
+
const isDisabled = !isSelected && selectedProducts.length === selectedProductsLimit;
|
|
60
60
|
useEffect(() => {
|
|
61
61
|
if (hasBeenObserved) {
|
|
62
62
|
setPlayAnimation(true);
|
|
@@ -115,21 +115,21 @@ const ProductGroups = ({
|
|
|
115
115
|
return /* @__PURE__ */jsx(ProductGroups$1, {
|
|
116
116
|
$columns: products.length,
|
|
117
117
|
children: groupedGroups.map(({
|
|
118
|
-
|
|
118
|
+
productListGroup,
|
|
119
119
|
span
|
|
120
|
-
}) =>
|
|
120
|
+
}) => productListGroup ? /* @__PURE__ */jsxs(ProductGroupLabelContainer, {
|
|
121
121
|
$span: span,
|
|
122
122
|
children: [/* @__PURE__ */jsxs(ProductGroupLabel, {
|
|
123
|
-
id:
|
|
124
|
-
$isActive: playAnimation && activeGroups.some(group => group ===
|
|
125
|
-
children: [formatMessage(
|
|
123
|
+
id: productListGroup.id,
|
|
124
|
+
$isActive: playAnimation && activeGroups.some(group => group === productListGroup.id),
|
|
125
|
+
children: [formatMessage(productListGroup?.title), " ", formatMessage("productList.series")]
|
|
126
126
|
}), /* @__PURE__ */jsx(ProductGroupLabelLineContainer, {
|
|
127
127
|
children: /* @__PURE__ */jsx(ProductGroupLabelLine, {
|
|
128
|
-
$isActive: activeGroups.some(group => group ===
|
|
128
|
+
$isActive: activeGroups.some(group => group === productListGroup.id),
|
|
129
129
|
$playAnimation: playAnimation
|
|
130
130
|
})
|
|
131
131
|
})]
|
|
132
|
-
},
|
|
132
|
+
}, productListGroup.id) : null)
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
const ProductList = ({
|
|
@@ -138,9 +138,10 @@ const ProductList = ({
|
|
|
138
138
|
setSelectedProducts,
|
|
139
139
|
hasBeenObserved,
|
|
140
140
|
showProductListGroups,
|
|
141
|
-
|
|
141
|
+
toggleableTable,
|
|
142
142
|
selectedGroups,
|
|
143
|
-
setSelectedGroups
|
|
143
|
+
setSelectedGroups,
|
|
144
|
+
selectedProductsLimit
|
|
144
145
|
}) => {
|
|
145
146
|
const groupedGroups = groupProducts(products);
|
|
146
147
|
const {
|
|
@@ -148,7 +149,7 @@ const ProductList = ({
|
|
|
148
149
|
} = useModelCompareTranslation();
|
|
149
150
|
const containerRef = useRef(null);
|
|
150
151
|
const productListRef = useRef(null);
|
|
151
|
-
const firstProductGroup = groupedGroups[0]?.
|
|
152
|
+
const firstProductGroup = groupedGroups[0]?.productListGroup?.id;
|
|
152
153
|
const [activeGroups, setActiveGroups] = useState([firstProductGroup]);
|
|
153
154
|
const [playAnimation, setPlayAnimation] = useState(false);
|
|
154
155
|
const isHovering = useHoverDirty(containerRef);
|
|
@@ -164,12 +165,12 @@ const ProductList = ({
|
|
|
164
165
|
}
|
|
165
166
|
}, [selectedGroups]);
|
|
166
167
|
const processedProducts = useMemo(() => {
|
|
167
|
-
if (
|
|
168
|
-
return products.filter(product => selectedGroups.some(selectedGroup => selectedGroup === product.
|
|
168
|
+
if (toggleableTable) {
|
|
169
|
+
return products.filter(product => selectedGroups.some(selectedGroup => selectedGroup === product.productListGroup?.id));
|
|
169
170
|
} else {
|
|
170
171
|
return products;
|
|
171
172
|
}
|
|
172
|
-
}, [products, selectedGroups,
|
|
173
|
+
}, [products, selectedGroups, toggleableTable]);
|
|
173
174
|
let dragStartingPosition;
|
|
174
175
|
let scrollAmount;
|
|
175
176
|
const dragHandler = event => {
|
|
@@ -182,10 +183,12 @@ const ProductList = ({
|
|
|
182
183
|
document.removeEventListener("mousemove", dragHandler);
|
|
183
184
|
};
|
|
184
185
|
const mouseDownHandler = event => {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
if (event.buttons === 1) {
|
|
187
|
+
dragStartingPosition = event.clientX;
|
|
188
|
+
setIsDragging(true);
|
|
189
|
+
document.addEventListener("mousemove", dragHandler);
|
|
190
|
+
document.addEventListener("mouseup", mouseUpHandler);
|
|
191
|
+
}
|
|
189
192
|
};
|
|
190
193
|
useEffectOnce(() => {
|
|
191
194
|
let isScrolling;
|
|
@@ -199,7 +202,8 @@ const ProductList = ({
|
|
|
199
202
|
});
|
|
200
203
|
const tabClickHandler = ({
|
|
201
204
|
groupId,
|
|
202
|
-
isSelected
|
|
205
|
+
isSelected,
|
|
206
|
+
unRemovableTab
|
|
203
207
|
}) => {
|
|
204
208
|
const groupHasBeenUnselected = selectedGroups.some(group => group === groupId);
|
|
205
209
|
const initialScrollPosition = containerRef.current.scrollLeft;
|
|
@@ -208,7 +212,7 @@ const ProductList = ({
|
|
|
208
212
|
return currentScrollPosition === initialScrollPosition;
|
|
209
213
|
};
|
|
210
214
|
let element;
|
|
211
|
-
if (
|
|
215
|
+
if (toggleableTable) {
|
|
212
216
|
setTimeout(() => {
|
|
213
217
|
element = document.getElementById(groupId);
|
|
214
218
|
}, 25);
|
|
@@ -221,7 +225,7 @@ const ProductList = ({
|
|
|
221
225
|
}, 26);
|
|
222
226
|
const newGroupsList = selectedGroups.filter(group => group !== groupId);
|
|
223
227
|
if (groupHasBeenUnselected) {
|
|
224
|
-
if (selectedGroups.length > 1) {
|
|
228
|
+
if (selectedGroups.length > 1 && unRemovableTab !== groupId) {
|
|
225
229
|
setSelectedGroups(prev => isSelected ? newGroupsList : [...prev, groupId]);
|
|
226
230
|
setActiveGroups(prev => isSelected ? newGroupsList : [...prev, groupId]);
|
|
227
231
|
setSelectedProducts(prev => prev.filter(product => product.groupId !== groupId));
|
|
@@ -237,7 +241,7 @@ const ProductList = ({
|
|
|
237
241
|
setSelectedGroups(prev => isSelected ? newGroupsList : [...prev, groupId]);
|
|
238
242
|
setActiveGroups(prev => isSelected ? newGroupsList : [...prev, groupId]);
|
|
239
243
|
}
|
|
240
|
-
} else if (!
|
|
244
|
+
} else if (!toggleableTable) {
|
|
241
245
|
setPlayAnimation(false);
|
|
242
246
|
setActiveGroups([groupId]);
|
|
243
247
|
element = document.getElementById(groupId);
|
|
@@ -256,26 +260,28 @@ const ProductList = ({
|
|
|
256
260
|
const GroupTabs$1 = () => {
|
|
257
261
|
return /* @__PURE__ */jsx(GroupTabsContainer, {
|
|
258
262
|
children: /* @__PURE__ */jsx(GroupTabs, {
|
|
263
|
+
$isToggleableTable: toggleableTable,
|
|
259
264
|
children: groupedGroups.map(({
|
|
260
|
-
|
|
261
|
-
}) =>
|
|
262
|
-
$isActive: activeGroups.some(group => group ===
|
|
263
|
-
$
|
|
265
|
+
productListGroup
|
|
266
|
+
}) => productListGroup ? /* @__PURE__ */jsxs(GroupTab, {
|
|
267
|
+
$isActive: activeGroups.some(group => group === productListGroup.id),
|
|
268
|
+
$isToggleableTable: toggleableTable,
|
|
264
269
|
onClick: () => {
|
|
265
|
-
const isSelected = selectedGroups.some(product => product ===
|
|
270
|
+
const isSelected = selectedGroups.some(product => product === productListGroup.id);
|
|
266
271
|
tabClickHandler({
|
|
267
|
-
groupId:
|
|
268
|
-
isSelected
|
|
272
|
+
groupId: productListGroup.id,
|
|
273
|
+
isSelected,
|
|
274
|
+
unRemovableTab: groupedGroups[0]?.productListGroup?.id
|
|
269
275
|
});
|
|
270
276
|
},
|
|
271
277
|
children: [/* @__PURE__ */jsx(StyleableSvgImage, {
|
|
272
|
-
src:
|
|
273
|
-
width:
|
|
274
|
-
height:
|
|
278
|
+
src: productListGroup.icon.src,
|
|
279
|
+
width: productListGroup.icon.width,
|
|
280
|
+
height: productListGroup.icon.height
|
|
275
281
|
}), /* @__PURE__ */jsx(GroupTabCopy, {
|
|
276
|
-
children: formatMessage(
|
|
282
|
+
children: formatMessage(productListGroup.title)
|
|
277
283
|
})]
|
|
278
|
-
},
|
|
284
|
+
}, productListGroup.id) : null)
|
|
279
285
|
})
|
|
280
286
|
});
|
|
281
287
|
};
|
|
@@ -318,7 +324,8 @@ const ProductList = ({
|
|
|
318
324
|
playAnimation,
|
|
319
325
|
setPlayAnimation,
|
|
320
326
|
hasBeenObserved,
|
|
321
|
-
productListGroupsDontExist: !showProductListGroups
|
|
327
|
+
productListGroupsDontExist: !showProductListGroups,
|
|
328
|
+
selectedProductsLimit
|
|
322
329
|
}, product.id);
|
|
323
330
|
})
|
|
324
331
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductList.mjs","sources":["../../../src/components/ModelCompareV4/ProductList.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport type { Dispatch, SetStateAction } from \"react\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport { useEffectOnce, useHoverDirty } from \"react-use\";\n\nimport plusIcon from \"../../constants/modelCompareData/assets/plus.svg\";\nimport { useModelCompareTranslation } from \"../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type {\n ProductGroup,\n ProductGroupId,\n ProductId,\n Product as ProductType,\n SelectedProduct,\n TranslationKey,\n} from \"../../constants/modelCompareData/types\";\nimport { imageSrc } from \"../../utils/asset\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { SELECTED_PRODUCTS_LIMIT } from \"./ModelCompareV4\";\nimport * as S from \"./ProductList.styles\";\n\n// #############################################################################\n// Build Product Groups\n// #############################################################################\n\nconst allProductGroups = (products: ProductType[]) => {\n return products.map((p) => p.productListGroup ?? null);\n};\n\nconst groupProducts = (products: ProductType[]) => {\n const result: { productGroup: ProductGroup | null; span: number }[] = [];\n\n let current: (typeof result)[number] = {\n productGroup: null,\n span: 0,\n };\n\n // sets the amount of columns a product group should span\n for (const productGroup of allProductGroups(products)) {\n const productGroupId = productGroup?.id ?? null;\n if (productGroupId === (current.productGroup?.id ?? null)) {\n current.span++;\n continue;\n }\n result.push(current);\n current = { productGroup, span: 1 };\n }\n if (current.span) {\n result.push(current);\n }\n\n return result.filter((x) => !!x.span);\n};\n\n// #############################################################################\n// Product\n// #############################################################################\n\nconst Product = ({\n id,\n groupId,\n image,\n name,\n description,\n selectedProducts,\n setSelectedProducts,\n groupIsActive,\n groupIndex,\n groupLength,\n playAnimation,\n setPlayAnimation,\n hasBeenObserved,\n productListGroupsDontExist,\n}: {\n id: ProductId;\n groupId: ProductGroupId;\n image: {\n src: StaticImageData | string;\n width: number;\n height: number;\n };\n name: TranslationKey;\n description?: TranslationKey;\n selectedProducts: SelectedProduct[];\n setSelectedProducts: Dispatch<SetStateAction<SelectedProduct[]>>;\n groupIsActive: boolean;\n groupIndex: number;\n groupLength: number;\n playAnimation: boolean;\n setPlayAnimation: Dispatch<SetStateAction<boolean>>;\n hasBeenObserved: boolean;\n productListGroupsDontExist: boolean;\n}) => {\n const { formatMessage } = useModelCompareTranslation();\n const isSelected = selectedProducts.some(\n (product) => product.productId === id,\n );\n const isDisabled =\n !isSelected && selectedProducts.length === SELECTED_PRODUCTS_LIMIT;\n\n useEffect(() => {\n if (hasBeenObserved) {\n setPlayAnimation(true);\n }\n }, [hasBeenObserved, setPlayAnimation]);\n\n return (\n <S.Product\n $productListGroupsDontExist={productListGroupsDontExist}\n $isActive={groupIsActive}\n $groupIndex={groupIndex}\n $groupLength={groupLength}\n $playAnimation={playAnimation}\n $hasBeenObserved={hasBeenObserved}\n >\n {image.src && (\n <S.Image\n src={imageSrc(image.src)}\n alt={name}\n width={image.width}\n height={image.height}\n />\n )}\n <S.DescriptionButtonContainer>\n <S.Name>{formatMessage(name)}</S.Name>\n {description && (\n <S.Description>{formatMessage(description)}</S.Description>\n )}\n\n <S.Button\n $isSelected={isSelected}\n $disabled={isDisabled}\n type=\"button\"\n disabled={isDisabled}\n onClick={() => {\n const newProductList = selectedProducts.filter(\n (product) => product.productId !== id,\n );\n setSelectedProducts((prev) =>\n isSelected\n ? newProductList\n : [...prev, { productId: id, groupId: groupId }],\n );\n }}\n >\n <S.ButtonIcon\n $isSelected={isSelected}\n src={plusIcon}\n width={20}\n height={20}\n />\n <S.ButtonCopy>\n {isSelected\n ? formatMessage(\"productList.button.active\")\n : formatMessage(\"productList.button.inactive\")}\n </S.ButtonCopy>\n </S.Button>\n </S.DescriptionButtonContainer>\n </S.Product>\n );\n};\n\n// #############################################################################\n// Product Groups\n// #############################################################################\n\nconst ProductGroups = ({\n products,\n activeGroups,\n playAnimation,\n}: {\n products: ProductType[];\n activeGroups: ProductId[] | ProductGroupId[];\n playAnimation: boolean;\n}) => {\n const groupedGroups = groupProducts(products);\n\n const { formatMessage } = useModelCompareTranslation();\n\n return (\n <S.ProductGroups $columns={products.length}>\n {groupedGroups.map(({ productGroup, span }) =>\n productGroup ? (\n <S.ProductGroupLabelContainer key={productGroup.id} $span={span}>\n <S.ProductGroupLabel\n id={productGroup.id}\n $isActive={\n playAnimation &&\n activeGroups.some((group) => group === productGroup.id)\n }\n >\n {formatMessage(productGroup?.title)}{\" \"}\n {formatMessage(\"productList.series\")}\n </S.ProductGroupLabel>\n <S.ProductGroupLabelLineContainer>\n <S.ProductGroupLabelLine\n $isActive={activeGroups.some(\n (group) => group === productGroup.id,\n )}\n $playAnimation={playAnimation}\n />\n </S.ProductGroupLabelLineContainer>\n </S.ProductGroupLabelContainer>\n ) : null,\n )}\n </S.ProductGroups>\n );\n};\n\n// #############################################################################\n// Product List\n// #############################################################################\n\nexport const ProductList = ({\n products,\n selectedProducts,\n setSelectedProducts,\n hasBeenObserved,\n showProductListGroups,\n togglableTable,\n selectedGroups,\n setSelectedGroups,\n}: {\n products: ProductType[];\n selectedProducts: SelectedProduct[];\n setSelectedProducts: Dispatch<SetStateAction<SelectedProduct[]>>;\n selectedGroups: ProductGroupId[];\n setSelectedGroups: Dispatch<SetStateAction<ProductGroupId[]>>;\n hasBeenObserved: boolean;\n showProductListGroups: boolean;\n togglableTable: boolean;\n}) => {\n const groupedGroups = groupProducts(products);\n const { formatMessage } = useModelCompareTranslation();\n\n const containerRef = useRef<HTMLDivElement>(null);\n const productListRef = useRef<HTMLDivElement>(null);\n\n const firstProductGroup = groupedGroups[0]?.productGroup\n ?.id as ProductGroupId;\n\n const [activeGroups, setActiveGroups] = useState<ProductGroupId[]>([\n firstProductGroup,\n ]);\n const [playAnimation, setPlayAnimation] = useState(false);\n const isHovering = useHoverDirty(containerRef);\n const [isDragging, setIsDragging] = useState(false);\n const [overflowExists, setOverflowExists] = useState(true);\n const [endPosition, setEndPosition] = useState<number>(0);\n\n useEffect(() => {\n const refsExist = containerRef.current && productListRef.current;\n if (\n refsExist &&\n containerRef.current?.getBoundingClientRect().width <\n productListRef.current?.getBoundingClientRect().width\n ) {\n setOverflowExists(true);\n } else {\n setOverflowExists(false);\n }\n }, [selectedGroups]);\n\n const processedProducts = useMemo(() => {\n if (togglableTable) {\n return products.filter((product) =>\n selectedGroups.some(\n (selectedGroup) => selectedGroup === product.productGroup?.id,\n ),\n );\n } else {\n return products;\n }\n }, [products, selectedGroups, togglableTable]);\n\n // #############################################################################\n // Drag Logic\n // #############################################################################\n let dragStartingPosition: number;\n let scrollAmount: number;\n\n const dragHandler = (event: MouseEvent) => {\n scrollAmount = dragStartingPosition - event.clientX;\n containerRef.current?.scrollTo(endPosition + scrollAmount, 0);\n };\n\n const mouseUpHandler = () => {\n setIsDragging(false);\n setEndPosition(containerRef.current?.scrollLeft as number);\n document.removeEventListener(\"mousemove\", dragHandler);\n };\n\n const mouseDownHandler = (event: React.MouseEvent<Element, MouseEvent>) => {\n dragStartingPosition = event.clientX;\n setIsDragging(true);\n document.addEventListener(\"mousemove\", dragHandler);\n document.addEventListener(\"mouseup\", mouseUpHandler);\n };\n\n useEffectOnce(() => {\n let isScrolling: NodeJS.Timeout;\n (containerRef.current as HTMLDivElement).addEventListener(\n \"scroll\",\n function () {\n window.clearTimeout(isScrolling);\n\n // if scrolling occurs, animations are played after scrolling has completed\n // if scrolling occurs, the container's end position is track in state after scrolling has completed\n isScrolling = setTimeout(function () {\n setPlayAnimation(true);\n setEndPosition(containerRef.current?.scrollLeft as number);\n }, 150);\n },\n );\n });\n\n // #############################################################################\n // Click to Scroll Logic\n // #############################################################################\n\n const tabClickHandler = ({\n groupId,\n isSelected,\n }: {\n groupId: ProductGroupId;\n isSelected: boolean;\n }) => {\n const groupHasBeenUnselected = selectedGroups.some(\n (group) => group === groupId,\n );\n\n const initialScrollPosition = (containerRef.current as HTMLDivElement)\n .scrollLeft;\n\n const checkForScroll = () => {\n const currentScrollPosition = (containerRef.current as HTMLDivElement)\n .scrollLeft;\n\n return currentScrollPosition === initialScrollPosition;\n };\n\n let element: HTMLDivElement;\n\n // logic that handles instances of ModelCompareV4 where togglableTable is set to true\n if (togglableTable) {\n // gives the app some time to set the value of `element`\n setTimeout(() => {\n element = document.getElementById(groupId) as HTMLDivElement;\n }, 25);\n\n // scroll to element after the value of `element` has been set\n setTimeout(() => {\n element?.scrollIntoView({\n behavior: \"smooth\",\n inline: \"start\",\n block: \"nearest\",\n });\n }, 26);\n\n const newGroupsList = selectedGroups.filter((group) => group !== groupId);\n if (groupHasBeenUnselected) {\n // prevents users from having an empty state\n if (selectedGroups.length > 1) {\n setSelectedGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n setActiveGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n // removes selected products that belong to an unselected product group\n setSelectedProducts((prev) =>\n prev.filter((product) => product.groupId !== groupId),\n );\n }\n\n // left aligns the scroll container when only one selected group is rendered (2 at the time of clicking)\n if (selectedGroups.length === 2) {\n containerRef.current?.scroll({\n left: -9999,\n behavior: \"smooth\",\n });\n }\n }\n\n if (!groupHasBeenUnselected) {\n setSelectedGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n setActiveGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n }\n // logic that handles instances of ModelCompareV4 where togglableTable is set to false\n } else if (!togglableTable) {\n setPlayAnimation(false);\n setActiveGroups([groupId]);\n element = document.getElementById(groupId) as HTMLDivElement;\n // setActiveGroups([groupId]);\n element?.scrollIntoView({\n behavior: \"smooth\",\n inline: \"start\",\n block: \"nearest\",\n });\n\n // if no scroll occurs animations are played\n setTimeout(() => {\n if (checkForScroll()) {\n setPlayAnimation(true);\n }\n }, 150);\n }\n };\n\n // #############################################################################\n // Group Tabs\n // #############################################################################\n\n const GroupTabs = () => {\n return (\n <S.GroupTabsContainer>\n <S.GroupTabs>\n {groupedGroups.map(({ productGroup }) =>\n productGroup ? (\n <S.GroupTab\n key={productGroup.id}\n $isActive={activeGroups.some(\n (group) => group === productGroup.id,\n )}\n $isTogglableTable={togglableTable}\n onClick={() => {\n const isSelected = selectedGroups.some(\n (product) => product === productGroup.id,\n );\n tabClickHandler({\n groupId: productGroup.id as ProductGroupId,\n isSelected: isSelected,\n });\n }}\n >\n <StyleableSvgImage\n src={productGroup.icon.src}\n width={productGroup.icon.width}\n height={productGroup.icon.height}\n />\n <S.GroupTabCopy>\n {formatMessage(productGroup.title)}\n </S.GroupTabCopy>\n </S.GroupTab>\n ) : null,\n )}\n </S.GroupTabs>\n </S.GroupTabsContainer>\n );\n };\n\n return (\n <S.Wrapper>\n {showProductListGroups && <GroupTabs />}\n <S.Container ref={containerRef} $isHovering={isHovering}>\n <S.ProductGroupProductListContainer>\n {showProductListGroups && (\n <ProductGroups\n products={processedProducts}\n activeGroups={activeGroups}\n playAnimation={playAnimation}\n />\n )}\n\n <S.ProductList\n $columns={processedProducts.length}\n $isDragging={isDragging}\n $overflowExists={overflowExists}\n $productListGroupsDontExist={!showProductListGroups}\n onMouseDown={(event) => mouseDownHandler(event)}\n onMouseUp={mouseUpHandler}\n ref={productListRef}\n >\n {processedProducts.map((product) => {\n const groupIsActive = activeGroups.some(\n (group) => group === product.productListGroup?.id,\n );\n\n const productListGroup = products.filter((product) =>\n activeGroups.some(\n (group) => group === product.productListGroup?.id,\n ),\n );\n\n const groupIndex = productListGroup.findIndex(\n (item) => item.id === product.id,\n );\n\n return (\n <Product\n key={product.id}\n groupIndex={groupIndex}\n groupLength={productListGroup.length}\n id={product?.id as ProductId}\n groupId={product.productGroup?.id as ProductGroupId}\n image={\n product.productListImage ?? { src: \"\", width: 0, height: 0 }\n }\n name={product.title}\n description={product.description}\n selectedProducts={selectedProducts}\n setSelectedProducts={setSelectedProducts}\n // If the table isn't showing product list groups, then all of the cards need to be active\n groupIsActive={groupIsActive || !showProductListGroups}\n playAnimation={playAnimation}\n setPlayAnimation={setPlayAnimation}\n hasBeenObserved={hasBeenObserved}\n productListGroupsDontExist={!showProductListGroups}\n />\n );\n })}\n </S.ProductList>\n </S.ProductGroupProductListContainer>\n </S.Container>\n </S.Wrapper>\n );\n};\n"],"names":["allProductGroups","products","map","p","productListGroup","groupProducts","result","current","productGroup","span","productGroupId","id","push","filter","x","Product","groupId","image","name","description","selectedProducts","setSelectedProducts","groupIsActive","groupIndex","groupLength","playAnimation","setPlayAnimation","hasBeenObserved","productListGroupsDontExist","formatMessage","useModelCompareTranslation","isSelected","some","product","productId","isDisabled","length","SELECTED_PRODUCTS_LIMIT","useEffect","jsxs","S.Product","$productListGroupsDontExist","$isActive","$groupIndex","$groupLength","$playAnimation","$hasBeenObserved","children","src","jsx","S.Image","imageSrc","alt","width","height","S.DescriptionButtonContainer","S.Name","S.Description","S.Button","$isSelected","$disabled","type","disabled","onClick","newProductList","prev","S.ButtonIcon","plusIcon","S.ButtonCopy","ProductGroups","activeGroups","groupedGroups","S.ProductGroups","$columns","S.ProductGroupLabelContainer","$span","S.ProductGroupLabel","group","title","S.ProductGroupLabelLineContainer","S.ProductGroupLabelLine","ProductList","showProductListGroups","togglableTable","selectedGroups","setSelectedGroups","containerRef","useRef","productListRef","firstProductGroup","setActiveGroups","useState","isHovering","useHoverDirty","isDragging","setIsDragging","overflowExists","setOverflowExists","endPosition","setEndPosition","refsExist","getBoundingClientRect","processedProducts","useMemo","selectedGroup","dragStartingPosition","scrollAmount","dragHandler","event","clientX","scrollTo","mouseUpHandler","scrollLeft","document","removeEventListener","mouseDownHandler","addEventListener","useEffectOnce","isScrolling","window","clearTimeout","setTimeout","tabClickHandler","groupHasBeenUnselected","initialScrollPosition","checkForScroll","currentScrollPosition","element","getElementById","scrollIntoView","behavior","inline","block","newGroupsList","scroll","left","GroupTabs","GroupTabs$1","S.GroupTabsContainer","S.GroupTabs","S.GroupTab","$isTogglableTable","StyleableSvgImage","icon","S.GroupTabCopy","S.Wrapper","S.Container","ref","$isHovering","S.ProductGroupProductListContainer","S.ProductList","$isDragging","$overflowExists","onMouseDown","onMouseUp","findIndex","item","productListImage"],"mappings":";;;;;;;;;;;;AAwBA,MAAMA,gBAAA,GAAoBC,QAA4B,IAAA;EACpD,OAAOA,SAASC,GAAI,CAACC,CAAM,IAAAA,CAAA,CAAEC,oBAAoB,IAAI,CAAA;AACvD,CAAA;AAEA,MAAMC,aAAA,GAAiBJ,QAA4B,IAAA;EACjD,MAAMK,SAAgE,EAAC;EAEvE,IAAIC,OAAmC,GAAA;IACrCC,YAAc,EAAA,IAAA;IACdC,IAAM,EAAA;EAAA,CACR;EAGW,KAAA,MAAAD,YAAA,IAAgBR,gBAAiB,CAAAC,QAAQ,CAAG,EAAA;IAC/C,MAAAS,cAAA,GAAiBF,cAAcG,EAAM,IAAA,IAAA;IAC3C,IAAID,cAAoB,MAAAH,OAAA,CAAQC,YAAc,EAAAG,EAAA,IAAM,IAAO,CAAA,EAAA;MACjDJ,OAAA,CAAAE,IAAA,EAAA;MACR;IACF;IACAH,MAAA,CAAOM,KAAKL,OAAO,CAAA;IACTA,OAAA,GAAA;MAAEC,YAAc;MAAAC,IAAA,EAAM;IAAE,CAAA;EACpC;EACA,IAAIF,QAAQE,IAAM,EAAA;IAChBH,MAAA,CAAOM,KAAKL,OAAO,CAAA;EACrB;EAEA,OAAOD,OAAOO,MAAO,CAACC,KAAM,CAAC,CAACA,EAAEL,IAAI,CAAA;AACtC,CAAA;AAMA,MAAMM,UAAUA,CAAC;EACfJ,EAAA;EACAK,OAAA;EACAC,KAAA;EACAC,IA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OAAS,EAAAtB,EAAA;cACbK,OAAA,EAASiB,QAAQzB,YAAc,EAAAG,EAAA;cAC/BM,KAAA,EACEgB,QAAQ4H,gBAAoB,IAAA;gBAAE7G,KAAK,EAAI;gBAAAK,KAAA,EAAO,CAAG;gBAAAC,MAAA,EAAQ;cAAE,CAAA;cAE7DpC,MAAMe,OAAQ,CAAA6C,KAAA;cACd3D,aAAac,OAAQ,CAAAd,WAAA;cACrBC,gBAAA;cACAC,mBAAA;cAEAC,aAAA,EAAeA,iBAAiB,CAAC4D,qBAAA;cACjCzD,aAAA;cACAC,gBAAA;cACAC,eAAA;cACAC,4BAA4B,CAACsD;YAAA,CAAA,EAjBxBjD,OAAQ,CAAAtB,EAAA,CAkBf;UAAA,CAEH;QAAA,CACH,CAAA;MAAA,CACF;IACF,CAAA,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ProductList.mjs","sources":["../../../src/components/ModelCompareV4/ProductList.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport type { Dispatch, SetStateAction } from \"react\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport { useEffectOnce, useHoverDirty } from \"react-use\";\n\nimport plusIcon from \"../../constants/modelCompareData/assets/plus.svg\";\nimport { useModelCompareTranslation } from \"../../constants/modelCompareData/translations/useModelCompareTranslation\";\nimport type {\n ProductId,\n ProductListGroup,\n ProductListGroupId,\n Product as ProductType,\n SelectedProduct,\n TranslationKey,\n} from \"../../constants/modelCompareData/types\";\nimport { imageSrc } from \"../../utils/asset\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductList.styles\";\n\n// #############################################################################\n// Build Product Groups\n// #############################################################################\n\nconst allProductGroups = (products: ProductType[]) => {\n return products.map((p) => (p.productListGroup as ProductListGroup) ?? null);\n};\n\nconst groupProducts = (products: ProductType[]) => {\n const result: { productListGroup: ProductListGroup | null; span: number }[] =\n [];\n\n let current: (typeof result)[number] = {\n productListGroup: null,\n span: 0,\n };\n\n // sets the amount of columns a product group should span\n for (const productListGroup of allProductGroups(products)) {\n const productListGroupId = productListGroup?.id ?? null;\n if (productListGroupId === (current.productListGroup?.id ?? null)) {\n current.span++;\n continue;\n }\n result.push(current);\n current = { productListGroup, span: 1 };\n }\n if (current.span) {\n result.push(current);\n }\n\n return result.filter((x) => !!x.span);\n};\n\n// #############################################################################\n// Product\n// #############################################################################\n\nconst Product = ({\n id,\n groupId,\n image,\n name,\n description,\n selectedProducts,\n setSelectedProducts,\n groupIsActive,\n groupIndex,\n groupLength,\n playAnimation,\n setPlayAnimation,\n hasBeenObserved,\n productListGroupsDontExist,\n selectedProductsLimit,\n}: {\n id: ProductId;\n groupId: ProductListGroupId;\n image: {\n src: StaticImageData | string;\n width: number;\n height: number;\n };\n name: TranslationKey;\n description?: TranslationKey;\n selectedProducts: SelectedProduct[];\n setSelectedProducts: Dispatch<SetStateAction<SelectedProduct[]>>;\n groupIsActive: boolean;\n groupIndex: number;\n groupLength: number;\n playAnimation: boolean;\n setPlayAnimation: Dispatch<SetStateAction<boolean>>;\n hasBeenObserved: boolean;\n productListGroupsDontExist: boolean;\n selectedProductsLimit: number;\n}) => {\n const { formatMessage } = useModelCompareTranslation();\n const isSelected = selectedProducts.some(\n (product) => product.productId === id,\n );\n const isDisabled =\n !isSelected && selectedProducts.length === selectedProductsLimit;\n\n useEffect(() => {\n if (hasBeenObserved) {\n setPlayAnimation(true);\n }\n }, [hasBeenObserved, setPlayAnimation]);\n\n return (\n <S.Product\n $productListGroupsDontExist={productListGroupsDontExist}\n $isActive={groupIsActive}\n $groupIndex={groupIndex}\n $groupLength={groupLength}\n $playAnimation={playAnimation}\n $hasBeenObserved={hasBeenObserved}\n >\n {image.src && (\n <S.Image\n src={imageSrc(image.src)}\n alt={name}\n width={image.width}\n height={image.height}\n />\n )}\n <S.DescriptionButtonContainer>\n <S.Name>{formatMessage(name)}</S.Name>\n {description && (\n <S.Description>{formatMessage(description)}</S.Description>\n )}\n\n <S.Button\n $isSelected={isSelected}\n $disabled={isDisabled}\n type=\"button\"\n disabled={isDisabled}\n onClick={() => {\n const newProductList = selectedProducts.filter(\n (product) => product.productId !== id,\n );\n setSelectedProducts((prev) =>\n isSelected\n ? newProductList\n : [...prev, { productId: id, groupId: groupId }],\n );\n }}\n >\n <S.ButtonIcon\n $isSelected={isSelected}\n src={plusIcon}\n width={20}\n height={20}\n />\n <S.ButtonCopy>\n {isSelected\n ? formatMessage(\"productList.button.active\")\n : formatMessage(\"productList.button.inactive\")}\n </S.ButtonCopy>\n </S.Button>\n </S.DescriptionButtonContainer>\n </S.Product>\n );\n};\n\n// #############################################################################\n// Product Groups\n// #############################################################################\n\nconst ProductGroups = ({\n products,\n activeGroups,\n playAnimation,\n}: {\n products: ProductType[];\n activeGroups: ProductId[] | ProductListGroupId[];\n playAnimation: boolean;\n}) => {\n const groupedGroups = groupProducts(products);\n\n const { formatMessage } = useModelCompareTranslation();\n\n return (\n <S.ProductGroups $columns={products.length}>\n {groupedGroups.map(({ productListGroup, span }) =>\n productListGroup ? (\n <S.ProductGroupLabelContainer key={productListGroup.id} $span={span}>\n <S.ProductGroupLabel\n id={productListGroup.id}\n $isActive={\n playAnimation &&\n activeGroups.some((group) => group === productListGroup.id)\n }\n >\n {formatMessage(productListGroup?.title)}{\" \"}\n {formatMessage(\"productList.series\")}\n </S.ProductGroupLabel>\n <S.ProductGroupLabelLineContainer>\n <S.ProductGroupLabelLine\n $isActive={activeGroups.some(\n (group) => group === productListGroup.id,\n )}\n $playAnimation={playAnimation}\n />\n </S.ProductGroupLabelLineContainer>\n </S.ProductGroupLabelContainer>\n ) : null,\n )}\n </S.ProductGroups>\n );\n};\n\n// #############################################################################\n// Product List\n// #############################################################################\n\nexport const ProductList = ({\n products,\n selectedProducts,\n setSelectedProducts,\n hasBeenObserved,\n showProductListGroups,\n toggleableTable,\n selectedGroups,\n setSelectedGroups,\n selectedProductsLimit,\n}: {\n products: ProductType[];\n selectedProducts: SelectedProduct[];\n setSelectedProducts: Dispatch<SetStateAction<SelectedProduct[]>>;\n selectedGroups: ProductListGroupId[];\n setSelectedGroups: Dispatch<SetStateAction<ProductListGroupId[]>>;\n hasBeenObserved: boolean;\n showProductListGroups: boolean;\n toggleableTable: boolean;\n selectedProductsLimit: number;\n}) => {\n const groupedGroups = groupProducts(products);\n const { formatMessage } = useModelCompareTranslation();\n\n const containerRef = useRef<HTMLDivElement>(null);\n const productListRef = useRef<HTMLDivElement>(null);\n\n const firstProductGroup = groupedGroups[0]?.productListGroup\n ?.id as ProductListGroupId;\n\n const [activeGroups, setActiveGroups] = useState<ProductListGroupId[]>([\n firstProductGroup,\n ]);\n const [playAnimation, setPlayAnimation] = useState(false);\n const isHovering = useHoverDirty(containerRef);\n const [isDragging, setIsDragging] = useState(false);\n const [overflowExists, setOverflowExists] = useState(true);\n const [endPosition, setEndPosition] = useState<number>(0);\n\n useEffect(() => {\n const refsExist = containerRef.current && productListRef.current;\n if (\n refsExist &&\n containerRef.current?.getBoundingClientRect().width <\n productListRef.current?.getBoundingClientRect().width\n ) {\n setOverflowExists(true);\n } else {\n setOverflowExists(false);\n }\n }, [selectedGroups]);\n\n const processedProducts = useMemo(() => {\n if (toggleableTable) {\n return products.filter((product) =>\n selectedGroups.some(\n (selectedGroup) => selectedGroup === product.productListGroup?.id,\n ),\n );\n } else {\n return products;\n }\n }, [products, selectedGroups, toggleableTable]);\n\n // #############################################################################\n // Drag Logic\n // #############################################################################\n let dragStartingPosition: number;\n let scrollAmount: number;\n\n const dragHandler = (event: MouseEvent) => {\n scrollAmount = dragStartingPosition - event.clientX;\n containerRef.current?.scrollTo(endPosition + scrollAmount, 0);\n };\n\n const mouseUpHandler = () => {\n setIsDragging(false);\n setEndPosition(containerRef.current?.scrollLeft as number);\n document.removeEventListener(\"mousemove\", dragHandler);\n };\n\n const mouseDownHandler = (event: React.MouseEvent<Element, MouseEvent>) => {\n if (event.buttons === 1) {\n dragStartingPosition = event.clientX;\n setIsDragging(true);\n document.addEventListener(\"mousemove\", dragHandler);\n document.addEventListener(\"mouseup\", mouseUpHandler);\n }\n };\n\n useEffectOnce(() => {\n let isScrolling: NodeJS.Timeout;\n (containerRef.current as HTMLDivElement).addEventListener(\n \"scroll\",\n function () {\n window.clearTimeout(isScrolling);\n\n // if scrolling occurs, animations are played after scrolling has completed\n // if scrolling occurs, the container's end position is track in state after scrolling has completed\n isScrolling = setTimeout(function () {\n setPlayAnimation(true);\n setEndPosition(containerRef.current?.scrollLeft as number);\n }, 150);\n },\n );\n });\n\n // #############################################################################\n // Click to Scroll Logic\n // #############################################################################\n\n const tabClickHandler = ({\n groupId,\n isSelected,\n unRemovableTab,\n }: {\n groupId: ProductListGroupId;\n isSelected: boolean;\n unRemovableTab: ProductListGroupId;\n }) => {\n const groupHasBeenUnselected = selectedGroups.some(\n (group) => group === groupId,\n );\n\n const initialScrollPosition = (containerRef.current as HTMLDivElement)\n .scrollLeft;\n\n const checkForScroll = () => {\n const currentScrollPosition = (containerRef.current as HTMLDivElement)\n .scrollLeft;\n\n return currentScrollPosition === initialScrollPosition;\n };\n\n let element: HTMLDivElement;\n\n // #############################################################################\n // logic that handles instances of ModelCompareV4 where toggleableTable is set to true\n // #############################################################################\n\n if (toggleableTable) {\n // gives the app some time to set the value of `element`\n setTimeout(() => {\n element = document.getElementById(groupId) as HTMLDivElement;\n }, 25);\n\n // scroll to element after the value of `element` has been set\n setTimeout(() => {\n element?.scrollIntoView({\n behavior: \"smooth\",\n inline: \"start\",\n block: \"nearest\",\n });\n }, 26);\n\n const newGroupsList = selectedGroups.filter((group) => group !== groupId);\n if (groupHasBeenUnselected) {\n // prevents users from having an empty state\n if (selectedGroups.length > 1 && unRemovableTab !== groupId) {\n setSelectedGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n setActiveGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n // removes selected products that belong to an unselected product group\n setSelectedProducts((prev) =>\n prev.filter((product) => product.groupId !== groupId),\n );\n }\n\n // left aligns the scroll container when only one selected group is rendered (2 at the time of clicking)\n if (selectedGroups.length === 2) {\n containerRef.current?.scroll({\n left: -9999,\n behavior: \"smooth\",\n });\n }\n }\n\n if (!groupHasBeenUnselected) {\n setSelectedGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n setActiveGroups((prev) =>\n isSelected ? newGroupsList : [...prev, groupId],\n );\n }\n // #############################################################################\n // logic that handles instances of ModelCompareV4 where toggleableTable is set to false\n // #############################################################################\n } else if (!toggleableTable) {\n setPlayAnimation(false);\n setActiveGroups([groupId]);\n element = document.getElementById(groupId) as HTMLDivElement;\n // setActiveGroups([groupId]);\n element?.scrollIntoView({\n behavior: \"smooth\",\n inline: \"start\",\n block: \"nearest\",\n });\n\n // if no scroll occurs animations are played\n setTimeout(() => {\n if (checkForScroll()) {\n setPlayAnimation(true);\n }\n }, 150);\n }\n };\n\n // #############################################################################\n // Group Tabs\n // #############################################################################\n\n const GroupTabs = () => {\n return (\n <S.GroupTabsContainer>\n <S.GroupTabs $isToggleableTable={toggleableTable}>\n {groupedGroups.map(({ productListGroup }) =>\n productListGroup ? (\n <S.GroupTab\n key={productListGroup.id}\n $isActive={activeGroups.some(\n (group) => group === productListGroup.id,\n )}\n $isToggleableTable={toggleableTable}\n onClick={() => {\n const isSelected = selectedGroups.some(\n (product) => product === productListGroup.id,\n );\n tabClickHandler({\n groupId: productListGroup.id as ProductListGroupId,\n isSelected: isSelected,\n unRemovableTab: groupedGroups[0]?.productListGroup\n ?.id as ProductListGroupId,\n });\n }}\n >\n <StyleableSvgImage\n src={productListGroup.icon.src}\n width={productListGroup.icon.width}\n height={productListGroup.icon.height}\n />\n <S.GroupTabCopy>\n {formatMessage(productListGroup.title)}\n </S.GroupTabCopy>\n </S.GroupTab>\n ) : null,\n )}\n </S.GroupTabs>\n </S.GroupTabsContainer>\n );\n };\n\n return (\n <S.Wrapper>\n {showProductListGroups && <GroupTabs />}\n <S.Container ref={containerRef} $isHovering={isHovering}>\n <S.ProductGroupProductListContainer>\n {showProductListGroups && (\n <ProductGroups\n products={processedProducts}\n activeGroups={activeGroups}\n playAnimation={playAnimation}\n />\n )}\n\n <S.ProductList\n $columns={processedProducts.length}\n $isDragging={isDragging}\n $overflowExists={overflowExists}\n $productListGroupsDontExist={!showProductListGroups}\n onMouseDown={(event) => mouseDownHandler(event)}\n onMouseUp={mouseUpHandler}\n ref={productListRef}\n >\n {processedProducts.map((product) => {\n const groupIsActive = activeGroups.some(\n (group) => group === product.productListGroup?.id,\n );\n\n const productListGroup = products.filter((product) =>\n activeGroups.some(\n (group) => group === product.productListGroup?.id,\n ),\n );\n\n const groupIndex = productListGroup.findIndex(\n (item) => item.id === product.id,\n );\n\n return (\n <Product\n key={product.id}\n groupIndex={groupIndex}\n groupLength={productListGroup.length}\n id={product?.id as ProductId}\n groupId={product.productGroup?.id as ProductListGroupId}\n image={\n product.productListImage ?? { src: \"\", width: 0, height: 0 }\n }\n name={product.title}\n description={product.description}\n selectedProducts={selectedProducts}\n setSelectedProducts={setSelectedProducts}\n // If the table isn't showing product list groups, then all of the cards need to be active\n groupIsActive={groupIsActive || !showProductListGroups}\n playAnimation={playAnimation}\n setPlayAnimation={setPlayAnimation}\n hasBeenObserved={hasBeenObserved}\n productListGroupsDontExist={!showProductListGroups}\n selectedProductsLimit={selectedProductsLimit}\n />\n );\n })}\n </S.ProductList>\n </S.ProductGroupProductListContainer>\n </S.Container>\n </S.Wrapper>\n );\n};\n"],"names":["allProductGroups","products","map","p","productListGroup","groupProducts","result","current","span","productListGroupId","id","push","filter","x","Product","groupId","image","name","description","selectedProducts","setSelectedProducts","groupIsActive","groupIndex","groupLength","playAnimation","setPlayAnimation","hasBeenObserved","productListGroupsDontExist","selectedProductsLimit","formatMessage","useModelCompareTranslation","isSelected","some","product","productId","isDisabled","length","useEffect","jsxs","S.Product","$productListGroupsDontExist","$isActive","$groupIndex","$groupLength","$playAnimation","$hasBeenObserved","children","src","jsx","S.Image","imageSrc","alt","width","height","S.DescriptionButtonContainer","S.Name","S.Description","S.Button","$isSelected","$disabled","type","disabled","onClick","newProductList","prev","S.ButtonIcon","plusIcon","S.ButtonCopy","ProductGroups","activeGroups","groupedGroups","S.ProductGroups","$columns","S.ProductGroupLabelContainer","$span","S.ProductGroupLabel","group","title","S.ProductGroupLabelLineContainer","S.ProductGroupLabelLine","ProductList","showProductListGroups","toggleableTable","selectedGroups","setSelectedGroups","containerRef","useRef","productListRef","firstProductGroup","setActiveGroups","useState","isHovering","useHoverDirty","isDragging","setIsDragging","overflowExists","setOverflowExists","endPosition","setEndPosition","refsExist","getBoundingClientRect","processedProducts","useMemo","selectedGroup","dragStartingPosition","scrollAmount","dragHandler","event","clientX","scrollTo","mouseUpHandler","scrollLeft","document","removeEventListener","mouseDownHandler","buttons","addEventListener","useEffectOnce","isScrolling","window","clearTimeout","setTimeout","tabClickHandler","unRemovableTab","groupHasBeenUnselected","initialScrollPosition","checkForScroll","currentScrollPosition","element","getElementById","scrollIntoView","behavior","inline","block","newGroupsList","scroll","left","GroupTabs","GroupTabs$1","S.GroupTabsContainer","S.GroupTabs","$isToggleableTable","S.GroupTab","StyleableSvgImage","icon","S.GroupTabCopy","S.Wrapper","S.Container","ref","$isHovering","S.ProductGroupProductListContainer","S.ProductList","$isDragging","$overflowExists","onMouseDown","onMouseUp","findIndex","item","productGroup","productListImage"],"mappings":";;;;;;;;;;;AAuBA,MAAMA,gBAAA,GAAoBC,QAA4B,IAAA;EACpD,OAAOA,SAASC,GAAI,CAACC,CAAO,IAAAA,CAAA,CAAEC,oBAAyC,IAAI,CAAA;AAC7E,CAAA;AAEA,MAAMC,aAAA,GAAiBJ,QAA4B,IAAA;EACjD,MAAMK,SACJ,EAAC;EAEH,IAAIC,OAAmC,GAAA;IACrCH,gBAAkB,EAAA,IAAA;IAClBI,IAAM,EAAA;EAAA,CACR;EAGW,KAAA,MAAAJ,gBAAA,IAAoBJ,gBAAiB,CAAAC,QAAQ,CAAG,EAAA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cACAC,4BAA4B,CAACsD,qBAAA;cAC7BrD;YAAA,CAAA,EAlBKK,OAAQ,CAAAvB,EAAA,CAmBf;UAAA,CAEH;QAAA,CACH,CAAA;MAAA,CACF;IACF,CAAA,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -4,10 +4,12 @@ export declare const Container: import("styled-components").StyledComponent<"div
|
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const ProductGroupProductListContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const GroupTabsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export declare const GroupTabs: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
|
+
export declare const GroupTabs: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
8
|
+
$isToggleableTable: boolean;
|
|
9
|
+
}, never>;
|
|
8
10
|
export declare const GroupTab: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
9
11
|
$isActive: boolean;
|
|
10
|
-
$
|
|
12
|
+
$isToggleableTable: boolean;
|
|
11
13
|
}, never>;
|
|
12
14
|
export declare const GroupTabCopy: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
13
15
|
export declare const ProductGroups: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
@@ -42,7 +44,7 @@ export declare const Image: import("styled-components").StyledComponent<"img", i
|
|
|
42
44
|
export declare const DescriptionButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
43
45
|
export declare const Name: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
44
46
|
export declare const Description: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
45
|
-
export declare const ButtonIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
|
47
|
+
export declare const ButtonIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, $active, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
|
46
48
|
$isSelected: boolean;
|
|
47
49
|
}, never>;
|
|
48
50
|
export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
@@ -107,12 +107,12 @@ const GroupTab = styled__default["default"].button`
|
|
|
107
107
|
display: flex;
|
|
108
108
|
align-items: center;
|
|
109
109
|
gap: 6px;
|
|
110
|
-
background:
|
|
110
|
+
background: ${({
|
|
111
|
+
$isToggleableTable
|
|
112
|
+
}) => $isToggleableTable ? `${theme.theme.colors.white}` : "transparent"};
|
|
111
113
|
border: none;
|
|
112
114
|
border-radius: 6px;
|
|
113
|
-
color:
|
|
114
|
-
$isTogglableTable
|
|
115
|
-
}) => $isTogglableTable ? "#bababa" : "#676f79"};
|
|
115
|
+
color: #676f79;
|
|
116
116
|
padding: 4px 12px;
|
|
117
117
|
cursor: pointer;
|
|
118
118
|
font-size: 14px;
|
|
@@ -126,7 +126,9 @@ const GroupTab = styled__default["default"].button`
|
|
|
126
126
|
color: ${theme.theme.colors.primaryBlue};
|
|
127
127
|
`}
|
|
128
128
|
`;
|
|
129
|
-
const GroupTabCopy = styled__default["default"].span
|
|
129
|
+
const GroupTabCopy = styled__default["default"].span`
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
`;
|
|
130
132
|
const ProductGroups = styled__default["default"].div`
|
|
131
133
|
min-width: 100%;
|
|
132
134
|
display: grid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductList.styles.js","sources":["../../../src/components/ModelCompareV4/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n $isTogglableTable: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: transparent;\n border: none;\n border-radius: 6px;\n color: ${({ $isTogglableTable }) =>\n $isTogglableTable ? \"#bababa\" : \"#676f79\"};\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span``;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{ $isActive: boolean }>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation }) =>\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $productListGroupsDontExist: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n\n ${({ $productListGroupsDontExist }) =>\n $productListGroupsDontExist &&\n css`\n padding-top: 20px;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productListGroupsDontExist: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({ $productListGroupsDontExist, $hasBeenObserved }) =>\n $productListGroupsDontExist &&\n $hasBeenObserved &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productListGroupsDontExist,\n }) =>\n !$productListGroupsDontExist &&\n $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n flex-grow: 1;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed;\n &:hover {\n background: unset;\n }\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isTogglableTable","$isActive","white","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","$productListGroupsDontExist","Product","$hasBeenObserved","$groupIndex","$groupLength","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","dodgerblue","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AMC,OAAO6C,UAAU;AAAA;AAAA,KAExC;AAAA;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAArC,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAKC;AAAA,CAAA;AAGE,MAAMsC,aAAa1C,eAAO,CAAA,SAAA,CAAA,CAAAc,IAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ProductList.styles.js","sources":["../../../src/components/ModelCompareV4/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div<{ $isToggleableTable: boolean }>`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n $isToggleableTable: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: ${({ $isToggleableTable }) =>\n $isToggleableTable ? `${theme.colors.white}` : \"transparent\"};\n border: none;\n border-radius: 6px;\n color: #676f79;\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span`\n white-space: nowrap;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{ $isActive: boolean }>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation }) =>\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $productListGroupsDontExist: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n\n ${({ $productListGroupsDontExist }) =>\n $productListGroupsDontExist &&\n css`\n padding-top: 20px;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productListGroupsDontExist: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({ $productListGroupsDontExist, $hasBeenObserved }) =>\n $productListGroupsDontExist &&\n $hasBeenObserved &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productListGroupsDontExist,\n }) =>\n !$productListGroupsDontExist &&\n $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n flex-grow: 1;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed;\n &:hover {\n background: unset;\n }\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isToggleableTable","white","$isActive","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","$productListGroupsDontExist","Product","$hasBeenObserved","$groupIndex","$groupLength","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","dodgerblue","$disabled","ButtonCopy"],"mappings":";;;;;;;;;;;;;AAKA,MAAMA,eAAkB,GAAA,EAAA;AAExB,MAAMC,oBAAuB,GAAAC,MAAAA,CAAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,MAAAA,CAAAA,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAU9C,MAAMC,6BAAgC,GAAA,KAAA;AAGtC,MAAMC,4BAA+B,GAAA,IAAA;AAE9B,MAAMC,UAAUC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKvB,MAAMC,YAAYF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAelBX,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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A;AAAA;AAAA,IAE9C,CAAC;EAAEC;CAAY,KACfA,WACA,IAAAlC,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMmC,SAASvC,eAAO,CAAA,SAAA,CAAA,CAAAS,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAqBzB,CAAC;EAAE6B;CAAY,KACfA,WACA,IAAAlC,MAAAA,CAAAA,GAAA;AAAA,oBACgBV,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA,0BAClBF,KAAA,CAAAA,KAAA,CAAMC,OAAOC,WAAW;AAAA,eACnCF,KAAA,CAAAA,KAAA,CAAMC,OAAOgB,KAAK;AAAA;AAAA;AAAA,sBAGXjB,KAAA,CAAAA,KAAA,CAAMC,OAAO6C,UAAU;AAAA;AAAA,KAExC;AAAA;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAArC,MAAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAKC;AAAA,CAAA;AAGE,MAAMsC,aAAa1C,eAAO,CAAA,SAAA,CAAA,CAAAc,IAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -99,12 +99,12 @@ const GroupTab = styled.button`
|
|
|
99
99
|
display: flex;
|
|
100
100
|
align-items: center;
|
|
101
101
|
gap: 6px;
|
|
102
|
-
background:
|
|
102
|
+
background: ${({
|
|
103
|
+
$isToggleableTable
|
|
104
|
+
}) => $isToggleableTable ? `${theme.colors.white}` : "transparent"};
|
|
103
105
|
border: none;
|
|
104
106
|
border-radius: 6px;
|
|
105
|
-
color:
|
|
106
|
-
$isTogglableTable
|
|
107
|
-
}) => $isTogglableTable ? "#bababa" : "#676f79"};
|
|
107
|
+
color: #676f79;
|
|
108
108
|
padding: 4px 12px;
|
|
109
109
|
cursor: pointer;
|
|
110
110
|
font-size: 14px;
|
|
@@ -118,7 +118,9 @@ const GroupTab = styled.button`
|
|
|
118
118
|
color: ${theme.colors.primaryBlue};
|
|
119
119
|
`}
|
|
120
120
|
`;
|
|
121
|
-
const GroupTabCopy = styled.span
|
|
121
|
+
const GroupTabCopy = styled.span`
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
`;
|
|
122
124
|
const ProductGroups = styled.div`
|
|
123
125
|
min-width: 100%;
|
|
124
126
|
display: grid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductList.styles.mjs","sources":["../../../src/components/ModelCompareV4/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n $isTogglableTable: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: transparent;\n border: none;\n border-radius: 6px;\n color: ${({ $isTogglableTable }) =>\n $isTogglableTable ? \"#bababa\" : \"#676f79\"};\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span``;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{ $isActive: boolean }>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation }) =>\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $productListGroupsDontExist: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n\n ${({ $productListGroupsDontExist }) =>\n $productListGroupsDontExist &&\n css`\n padding-top: 20px;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productListGroupsDontExist: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({ $productListGroupsDontExist, $hasBeenObserved }) =>\n $productListGroupsDontExist &&\n $hasBeenObserved &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productListGroupsDontExist,\n }) =>\n !$productListGroupsDontExist &&\n $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n flex-grow: 1;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed;\n &:hover {\n background: unset;\n }\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isTogglableTable","$isActive","white","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","$productListGroupsDontExist","Product","$hasBeenObserved","$groupIndex","$groupLength","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","dodgerblue","$disabled","ButtonCopy"],"mappings":";;;;;AAKA,MAAMA,eAAkB,GAAA,EAAA;AAExB,MAAMC,oBAAuB,GAAAC,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAU9C,MAAMC,6BAAgC,GAAA,KAAA;AAGtC,MAAMC,4BAA+B,GAAA,IAAA;AAE9B,MAAMC,UAAUC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKvB,MAAMC,YAAYF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAelBX,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAgBrBI,KAAA,CAAMC,OAAOC,WAAW;AAAA,QACxBF,KAAA,CAAMC,OAAO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AA;AAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ProductList.styles.mjs","sources":["../../../src/components/ModelCompareV4/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div<{ $isToggleableTable: boolean }>`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n $isToggleableTable: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: ${({ $isToggleableTable }) =>\n $isToggleableTable ? `${theme.colors.white}` : \"transparent\"};\n border: none;\n border-radius: 6px;\n color: #676f79;\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span`\n white-space: nowrap;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{ $isActive: boolean }>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation }) =>\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $productListGroupsDontExist: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n\n ${({ $productListGroupsDontExist }) =>\n $productListGroupsDontExist &&\n css`\n padding-top: 20px;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productListGroupsDontExist: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({ $productListGroupsDontExist, $hasBeenObserved }) =>\n $productListGroupsDontExist &&\n $hasBeenObserved &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productListGroupsDontExist,\n }) =>\n !$productListGroupsDontExist &&\n $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n flex-grow: 1;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed;\n &:hover {\n background: unset;\n }\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isToggleableTable","white","$isActive","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","$productListGroupsDontExist","Product","$hasBeenObserved","$groupIndex","$groupLength","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","dodgerblue","$disabled","ButtonCopy"],"mappings":";;;;;AAKA,MAAMA,eAAkB,GAAA,EAAA;AAExB,MAAMC,oBAAuB,GAAAC,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAU9C,MAAMC,6BAAgC,GAAA,KAAA;AAGtC,MAAMC,4BAA+B,GAAA,IAAA;AAE9B,MAAMC,UAAUC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKvB,MAAMC,YAAYF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAelBX,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAgBrBI,KAAA,CAAMC,OAAOC,WAAW;AAAA,QACxBF,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA,MAI1B,CAAC;EAAEO;CAAY,KACfA,WACA,IAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAKMV,KAAA,CAAMC,OAAOC,WAAW;AAAA,YACxBF,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA,OAG7B;AAAA;AAAA,CAAA;AAIA,MAAMS,mCAAmCL,MAAO,CAAAC,GAA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;AAAA,CAAA;AAKrB,MAAMC,6BAA6BjC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAU1C,MAAMiC,OAAOlC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAWpB,MAAMkC,cAAcnC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAUrB,MAAAmC,UAAA,GAAapC,OAAOqC,iBAAiB,CAAA;AAAA;AAAA,IAE9C,CAAC;EAAEC;CAAY,KACfA,WACA,IAAAlC,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMmC,SAASvC,MAAO,CAAAS,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAqBzB,CAAC;EAAE6B;CAAY,KACfA,WACA,IAAAlC,GAAA;AAAA,oBACgBV,KAAA,CAAMC,OAAOC,WAAW;AAAA,0BAClBF,KAAA,CAAMC,OAAOC,WAAW;AAAA,eACnCF,KAAA,CAAMC,OAAOgB,KAAK;AAAA;AAAA;AAAA,sBAGXjB,KAAA,CAAMC,OAAO6C,UAAU;AAAA;AAAA,KAExC;AAAA;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAArC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAKC;AAAA,CAAA;AAGE,MAAMsC,aAAa1C,MAAO,CAAAc,IAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -4,4 +4,4 @@ export declare const PriceRangeSliderInputContainer: import("styled-components")
|
|
|
4
4
|
export declare const PriceRangeSliderInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const PriceRangeSliderWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const SliderThumb: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export declare const SliderThumbIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const SliderThumbIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, $active, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -3,7 +3,7 @@ export declare const PRODUCT_IMAGE_SIZE_MOBILE = 134;
|
|
|
3
3
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const MetaAnchor: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const PreviouslyPurchasedStar: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const PreviouslyPurchasedStar: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, $active, }: import("../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const CustomImage: import("styled-components").StyledComponent<({ motif, asset, sizes, className, margin, priority, fallbackImageSize, responsive, layout, renderImage, disableSkeleton, objectFit, disableBorderRadius, canFullscreen, onFullscreenChange, }: import("../CustomImage/CustomImage.types").CustomImageProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
8
8
|
export declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
9
|
export declare const Sku: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|