@bytebrand/fe-ui-core-autobahn 1.0.0
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/assets/autode-logo.svg +7 -0
- package/cards/CarCard.tsx +174 -0
- package/cards/CarRow.tsx +182 -0
- package/cards/cardParts.tsx +489 -0
- package/cards/index.ts +35 -0
- package/cards/types.ts +114 -0
- package/chrome/Footer.tsx +189 -0
- package/chrome/TopBar.tsx +405 -0
- package/chrome/index.ts +20 -0
- package/chrome/svg.d.ts +11 -0
- package/compat/AccardionSection/AccardionSection.styl +45 -0
- package/compat/AccardionSection/AccardionSection.tsx +56 -0
- package/compat/AccordionWidget/AccordionWidget.styl +221 -0
- package/compat/AccordionWidget/AccordionWidget.tsx +257 -0
- package/compat/AccordionWrapper/AccordionItem/AccordionItem.styl +34 -0
- package/compat/AccordionWrapper/AccordionItem/AccordionItem.tsx +64 -0
- package/compat/AccordionWrapper/AccordionWrapper.tsx +34 -0
- package/compat/AdvantageItem/AdvantageItem.styl +47 -0
- package/compat/AdvantageItem/AdvantageItem.tsx +26 -0
- package/compat/Alternative/DealerInfo.styl +116 -0
- package/compat/Alternative/DealerInfo.tsx +171 -0
- package/compat/Badge/Badge.styl +44 -0
- package/compat/Badge/Badge.tsx +25 -0
- package/compat/BodyTypeIcons/Audi.tsx +9 -0
- package/compat/BodyTypeIcons/Bmw.tsx +860 -0
- package/compat/BodyTypeIcons/Ford.tsx +31 -0
- package/compat/BodyTypeIcons/IconsConfig.tsx +44 -0
- package/compat/BodyTypeIcons/IconsConfigCompact.tsx +30 -0
- package/compat/BodyTypeIcons/Mazda.tsx +44 -0
- package/compat/BodyTypeIcons/MercedesBenz.tsx +38 -0
- package/compat/BodyTypeIcons/Opel.tsx +19 -0
- package/compat/BodyTypeIcons/Search.tsx +19 -0
- package/compat/BodyTypeIcons/SelectorCategoryCombi.tsx +68 -0
- package/compat/BodyTypeIcons/SelectorCategoryCompact.tsx +20 -0
- package/compat/BodyTypeIcons/SelectorCategoryConvertible.tsx +68 -0
- package/compat/BodyTypeIcons/SelectorCategoryCoupe.tsx +60 -0
- package/compat/BodyTypeIcons/SelectorCategoryMinibus.tsx +64 -0
- package/compat/BodyTypeIcons/SelectorCategorySedan.tsx +69 -0
- package/compat/BodyTypeIcons/SelectorCategorySuv.tsx +77 -0
- package/compat/BodyTypeIcons/SelectorCategoryTransporter.tsx +68 -0
- package/compat/BodyTypeIcons/SelectorCategoryVan.tsx +72 -0
- package/compat/BodyTypeIcons/Volkswagen.tsx +330 -0
- package/compat/BodyTypeIcons/index.ts +17 -0
- package/compat/Button/Button.tsx +65 -0
- package/compat/ButtonOld/Button.styl +65 -0
- package/compat/ButtonOld/Button.tsx +84 -0
- package/compat/Checkbox/Checkbox.styl +120 -0
- package/compat/Checkbox/Checkbox.tsx +151 -0
- package/compat/Checkbox/FormCheckbox.styl +22 -0
- package/compat/Checkbox/FormCheckbox.tsx +86 -0
- package/compat/Co2Widget/CO2Efficiency.styl +219 -0
- package/compat/Co2Widget/CO2Efficiency.tsx +93 -0
- package/compat/ContactInfo/ContactInfo.styl +22 -0
- package/compat/ContactInfo/ContactInfo.tsx +161 -0
- package/compat/ContactInfo/TemporaryTranslation.ts +11 -0
- package/compat/CookieModal/CookieModal.tsx +49 -0
- package/compat/CookieModal/Modal.tsx +43 -0
- package/compat/CookieModal/ModalsConfig.tsx +23 -0
- package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.styl +87 -0
- package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.tsx +184 -0
- package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.styl +67 -0
- package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.tsx +51 -0
- package/compat/CookieModal/modals/TestModal.tsx +7 -0
- package/compat/CookieModal/useModal.ts +13 -0
- package/compat/CustomerQuote/CustomerQuote.styl +80 -0
- package/compat/CustomerQuote/CustomerQuote.tsx +68 -0
- package/compat/CustomerQuotesSlider/CustomerQuotesSlider.styl +46 -0
- package/compat/CustomerQuotesSlider/CustomerQuotesSlider.tsx +79 -0
- package/compat/CustomerQuotesSlider/SliderArrow.tsx +20 -0
- package/compat/CustomerQuotesSlider/slider.global.styl +2 -0
- package/compat/ExpansionPanel/ExpansionPanel.tsx +68 -0
- package/compat/FirstInfoBlock/FirstInfoBlock.styl +33 -0
- package/compat/FirstInfoBlock/FirstInfoBlock.tsx +49 -0
- package/compat/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.styl +66 -0
- package/compat/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.tsx +21 -0
- package/compat/FormattedNumber/FormattedNumber.styl +2 -0
- package/compat/FormattedNumber/FormattedNumber.tsx +90 -0
- package/compat/IconContainer/IconContainer.styl +23 -0
- package/compat/IconContainer/IconContainer.tsx +34 -0
- package/compat/Image/Image.styl +109 -0
- package/compat/Image/Image.tsx +302 -0
- package/compat/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.styl +7 -0
- package/compat/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.tsx +30 -0
- package/compat/ImageSettings/EditableOptionsTable/EditableOptionsTable.styl +122 -0
- package/compat/ImageSettings/EditableOptionsTable/EditableOptionsTable.tsx +199 -0
- package/compat/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.styl +3 -0
- package/compat/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.tsx +15 -0
- package/compat/ImageSettings/OptionsTable/OptionsTable.styl +47 -0
- package/compat/ImageSettings/OptionsTable/OptionsTable.tsx +122 -0
- package/compat/ImageSettings/PricePlan/PricePlan.styl +63 -0
- package/compat/ImageSettings/PricePlan/PricePlan.tsx +32 -0
- package/compat/ImageSettings/index.ts +42 -0
- package/compat/ImagesSet/ImagesSet.styl +28 -0
- package/compat/ImagesSet/ImagesSet.tsx +76 -0
- package/compat/InfoBlockWrapper/InfoBlockWrapper.styl +41 -0
- package/compat/InfoBlockWrapper/InfoBlockWrapper.tsx +46 -0
- package/compat/Loader/Loader.styl +39 -0
- package/compat/Loader/Loader.tsx +32 -0
- package/compat/MagnifyGlass/MagnifyGlass.styl +33 -0
- package/compat/MagnifyGlass/MagnifyGlass.tsx +213 -0
- package/compat/MdAccordionGroup/MdAccordionGroup.tsx +53 -0
- package/compat/MdCheckbox/MdCheckbox.tsx +69 -0
- package/compat/MdField/MdField.tsx +100 -0
- package/compat/MdSelect/MdSelect.tsx +103 -0
- package/compat/MdSwitch/MdSwitch.tsx +29 -0
- package/compat/MdTabs/MdTabs.tsx +47 -0
- package/compat/MdTooltip/MdTooltip.tsx +31 -0
- package/compat/OfferDetailedSection/OfferDetailedSection.styl +31 -0
- package/compat/OfferDetailedSection/OfferDetailedSection.tsx +100 -0
- package/compat/OfferDetailedSection/partials/PanelConfig.styl +132 -0
- package/compat/OfferDetailedSection/partials/PanelConfig.tsx +121 -0
- package/compat/OfferPanel/AboAccordion/AboAccordion.styl +25 -0
- package/compat/OfferPanel/AboAccordion/AboAccordion.tsx +128 -0
- package/compat/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.styl +12 -0
- package/compat/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.tsx +35 -0
- package/compat/OfferPanel/AboAccordion/AboFaq/AboFaq.styl +21 -0
- package/compat/OfferPanel/AboAccordion/AboFaq/AboFaq.tsx +25 -0
- package/compat/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.styl +14 -0
- package/compat/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.tsx +39 -0
- package/compat/OfferPanel/MuiOfferPeriod/MuiOfferPeriod.tsx +42 -0
- package/compat/OfferPanel/OfferCheckboxGroup/CheckboxContainer.tsx +140 -0
- package/compat/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +144 -0
- package/compat/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.tsx +23 -0
- package/compat/OfferPanel/OfferPanel.styl +194 -0
- package/compat/OfferPanel/OfferPanel.tsx +81 -0
- package/compat/OfferPanel/OfferPeriod/OfferPeriod.styl +25 -0
- package/compat/OfferPanel/OfferPeriod/OfferPeriod.tsx +45 -0
- package/compat/OfferPanel/RangeGroup/RangeGroup.tsx +39 -0
- package/compat/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styl +120 -0
- package/compat/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styled.tsx +33 -0
- package/compat/OfferRequestButtonWrapper/OfferRequestButtonWrapper.tsx +122 -0
- package/compat/PriceRating/PriceRating.styl +47 -0
- package/compat/PriceRating/PriceRating.tsx +64 -0
- package/compat/PriceRatingDetailed/PriceRatingDetailed.styl +120 -0
- package/compat/PriceRatingDetailed/PriceRatingDetailed.tsx +191 -0
- package/compat/PricingToolBlock/PricingTool.styl +7 -0
- package/compat/PricingToolBlock/PricingTool.tsx +29 -0
- package/compat/Radio/Radio.styl +115 -0
- package/compat/Radio/Radio.tsx +141 -0
- package/compat/Radio/RadioGroup.styl +5 -0
- package/compat/Radio/RadioGroup.tsx +65 -0
- package/compat/Range/Range.tsx +79 -0
- package/compat/RateSearchValue/RateSearchValue.styl +22 -0
- package/compat/RateSearchValue/RateSearchValue.tsx +55 -0
- package/compat/RateSearchWidget/RateSearchWidget.styl +107 -0
- package/compat/RateSearchWidget/RateSearchWidget.tsx +163 -0
- package/compat/ServiceBlockItem/ServiceBlockItem.styl +48 -0
- package/compat/ServiceBlockItem/ServiceBlockItem.tsx +25 -0
- package/compat/SkeletonItem/SkeletonItem.styl +81 -0
- package/compat/SkeletonItem/SkeletonItem.tsx +80 -0
- package/compat/StarButton/StarButton.styl +39 -0
- package/compat/StarButton/StarButton.tsx +31 -0
- package/compat/TabPanel/TabPanel.tsx +29 -0
- package/compat/TimePicker/TimePicker.styl +23 -0
- package/compat/TimePicker/TimePicker.tsx +156 -0
- package/compat/Tooltip/Tooltip.styl +117 -0
- package/compat/Tooltip/Tooltip.tsx +63 -0
- package/compat/Usp/Usp.styl +78 -0
- package/compat/Usp/Usp.tsx +30 -0
- package/compat/Usp/uspTranslate.ts +12 -0
- package/compat/VehicleDetailedSidebar/VehicleDetailedSidebar.styl +37 -0
- package/compat/VehicleDetailedSidebar/VehicleDetailedSidebar.tsx +178 -0
- package/compat/VehicleDetailedSidebar/partials/Price.styl +27 -0
- package/compat/VehicleDetailedSidebar/partials/Price.tsx +41 -0
- package/compat/VehicleDetailedSidebar/partials/PriceContent.styl +124 -0
- package/compat/VehicleDetailedSidebar/partials/PriceContent.tsx +128 -0
- package/compat/VehicleDetailedSidebar/partials/Properties.styl +58 -0
- package/compat/VehicleDetailedSidebar/partials/Properties.tsx +155 -0
- package/compat/VehicleDetailedSidebar/partials/Title.styl +35 -0
- package/compat/VehicleDetailedSidebar/partials/Title.tsx +33 -0
- package/compat/VehicleDetailedSlider/VehicleDetailedSlider.styl +147 -0
- package/compat/VehicleDetailedSlider/VehicleDetailedSlider.tsx +382 -0
- package/compat/VehicleDetailedSlider/partials/MobileStast.tsx +61 -0
- package/compat/VehicleDetailedSlider/partials/MobileStats.styl +71 -0
- package/compat/VehicleDetailedSlider/partials/PriceData.styl +51 -0
- package/compat/VehicleDetailedSlider/partials/PriceData.tsx +67 -0
- package/compat/VehicleDetailedSlider/partials/Stats.styl +80 -0
- package/compat/VehicleDetailedSlider/partials/Stats.tsx +62 -0
- package/compat/VehicleDetailedSlider/partials/Title.styl +45 -0
- package/compat/VehicleDetailedSlider/partials/Title.tsx +36 -0
- package/compat/VehicleFormattedPrice/VehicleFormattedPrice.styl +149 -0
- package/compat/VehicleFormattedPrice/VehicleFormattedPrice.tsx +163 -0
- package/compat/VehicleSlider/VehicleSlider.styl +63 -0
- package/compat/VehicleSlider/VehicleSlider.tsx +125 -0
- package/compat/VehicleSlider/VehicleSliderForSRL.tsx +175 -0
- package/compat/VehicleSmallCard/SeoText/SeoText.styl +8 -0
- package/compat/VehicleSmallCard/SeoText/SeoText.tsx +16 -0
- package/compat/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +204 -0
- package/compat/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +199 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +273 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +179 -0
- package/compat/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +165 -0
- package/compat/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +299 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +33 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +35 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +136 -0
- package/compat/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +91 -0
- package/compat/VehicleSmallCard/VehicleSmallCard.styl +310 -0
- package/compat/VehicleSmallCard/VehicleSmallCard.tsx +448 -0
- package/compat/index.ts +77 -0
- package/compat/legacy-theme/mixins.styl +93 -0
- package/compat/legacy-theme/priceReviewColors.styl +12 -0
- package/compat/legacy-theme/slider.global.styl +5 -0
- package/compat/legacy-theme/theme.styl +136 -0
- package/compat/withLabel/withLabel.styl +33 -0
- package/compat/withLabel/withLabel.tsx +44 -0
- package/compat/withStats/withStats.styl +174 -0
- package/compat/withStats/withStats.tsx +238 -0
- package/constants/RateSearchWidget.ts +15 -0
- package/constants/Search.ts +290 -0
- package/constants/SearchWidget.ts +108 -0
- package/constants/app.ts +223 -0
- package/constants/common.ts +127 -0
- package/constants/core.ts +131 -0
- package/constants/highlights.ts +165 -0
- package/constants/price.ts +9 -0
- package/constants/selectors.ts +38 -0
- package/constants.ts +91 -0
- package/data/DataTransformers.ts +88 -0
- package/data/fieldMapping.ts +342 -0
- package/data/toAutobahnCar.ts +442 -0
- package/iconsvg/IconSVG.tsx +30 -0
- package/iconsvg/IconSVGConfig.tsx +768 -0
- package/iconsvg/SVG/AboPartner.tsx +16 -0
- package/iconsvg/SVG/ArrowQuotes.tsx +22 -0
- package/iconsvg/SVG/CloseIcon.tsx +17 -0
- package/iconsvg/SVG/CloseIconSelect.tsx +18 -0
- package/iconsvg/SVG/ClosedLockIcon.tsx +18 -0
- package/iconsvg/SVG/DealerCheckIcon.tsx +18 -0
- package/iconsvg/SVG/DealerPopoverMail.tsx +21 -0
- package/iconsvg/SVG/DealerPopoverPhone.tsx +21 -0
- package/iconsvg/SVG/GrayPhoneIcon.tsx +22 -0
- package/iconsvg/SVG/InternetIcon.tsx +18 -0
- package/iconsvg/SVG/WhiteEnvelopeIcon.tsx +21 -0
- package/iconsvg/SVG/bodyType/Cabrio.tsx +23 -0
- package/iconsvg/SVG/bodyType/Coupe.tsx +22 -0
- package/iconsvg/SVG/bodyType/Minibus.tsx +22 -0
- package/iconsvg/SVG/bodyType/Other.tsx +25 -0
- package/iconsvg/SVG/bodyType/Sedan.tsx +22 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryCombi.tsx +68 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryCompact.tsx +20 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryConvertible.tsx +68 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryCoupe.tsx +60 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryMinibus.tsx +64 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryOther.tsx +60 -0
- package/iconsvg/SVG/bodyType/SelectorCategorySedan.tsx +69 -0
- package/iconsvg/SVG/bodyType/SelectorCategorySuv.tsx +77 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryTransporter.tsx +68 -0
- package/iconsvg/SVG/bodyType/SelectorCategoryVan.tsx +72 -0
- package/iconsvg/SVG/bodyType/Small.tsx +23 -0
- package/iconsvg/SVG/bodyType/Suv.tsx +23 -0
- package/iconsvg/SVG/bodyType/Van.tsx +23 -0
- package/iconsvg/SVG/bodyType/Wagon.tsx +23 -0
- package/iconsvg/SVG/common/AddIcon.tsx +16 -0
- package/iconsvg/SVG/common/AddPlus.tsx +16 -0
- package/iconsvg/SVG/common/AddressDashboard.tsx +29 -0
- package/iconsvg/SVG/common/AddressIcon.tsx +20 -0
- package/iconsvg/SVG/common/ArrowDetailedAccordionBlue.tsx +26 -0
- package/iconsvg/SVG/common/ArrowDownBlue.tsx +21 -0
- package/iconsvg/SVG/common/ArrowSelect.tsx +23 -0
- package/iconsvg/SVG/common/ArrowStepDown.tsx +18 -0
- package/iconsvg/SVG/common/Autocheck.tsx +19 -0
- package/iconsvg/SVG/common/AutodeLogo.tsx +36 -0
- package/iconsvg/SVG/common/Avatar.tsx +17 -0
- package/iconsvg/SVG/common/BellGray.tsx +19 -0
- package/iconsvg/SVG/common/BigInfoTransparent.tsx +13 -0
- package/iconsvg/SVG/common/Browse.tsx +20 -0
- package/iconsvg/SVG/common/Calendar.tsx +24 -0
- package/iconsvg/SVG/common/CallbackDashboard.tsx +30 -0
- package/iconsvg/SVG/common/Camera.tsx +17 -0
- package/iconsvg/SVG/common/Car.tsx +16 -0
- package/iconsvg/SVG/common/CarBody.tsx +19 -0
- package/iconsvg/SVG/common/CarFront.tsx +43 -0
- package/iconsvg/SVG/common/CarInspectionCheck.tsx +21 -0
- package/iconsvg/SVG/common/CarInspectionScheme0.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme1.tsx +53 -0
- package/iconsvg/SVG/common/CarInspectionScheme2.tsx +52 -0
- package/iconsvg/SVG/common/CarInspectionScheme3.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme4.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme5.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionScheme6.tsx +32 -0
- package/iconsvg/SVG/common/CarInspectionSchemeGeneral copy.tsx +24 -0
- package/iconsvg/SVG/common/CarInspectionSchemeGeneral.tsx +24 -0
- package/iconsvg/SVG/common/CheckBlue.tsx +18 -0
- package/iconsvg/SVG/common/CheckGreen.tsx +22 -0
- package/iconsvg/SVG/common/CheckMark.tsx +16 -0
- package/iconsvg/SVG/common/CheckWhite.tsx +19 -0
- package/iconsvg/SVG/common/Chevron.tsx +17 -0
- package/iconsvg/SVG/common/CircledCheckmark.tsx +25 -0
- package/iconsvg/SVG/common/Clock.tsx +18 -0
- package/iconsvg/SVG/common/Close.tsx +19 -0
- package/iconsvg/SVG/common/CloseGrey.tsx +22 -0
- package/iconsvg/SVG/common/ContactEmail.tsx +21 -0
- package/iconsvg/SVG/common/ContactPhone.tsx +28 -0
- package/iconsvg/SVG/common/CopyIcon copy.tsx +22 -0
- package/iconsvg/SVG/common/CopyIcon.tsx +22 -0
- package/iconsvg/SVG/common/CopyIconForDealer.tsx +21 -0
- package/iconsvg/SVG/common/DashboardIcon.tsx +20 -0
- package/iconsvg/SVG/common/DashboardQuestionMark.tsx +20 -0
- package/iconsvg/SVG/common/DealersIcon.tsx +20 -0
- package/iconsvg/SVG/common/DeleteCircle.tsx +31 -0
- package/iconsvg/SVG/common/DeleteV1Icon.tsx +18 -0
- package/iconsvg/SVG/common/DeliveryDashboard.tsx +25 -0
- package/iconsvg/SVG/common/DeliveryMail.tsx +24 -0
- package/iconsvg/SVG/common/Discount100De.tsx +18 -0
- package/iconsvg/SVG/common/Discount100En.tsx +19 -0
- package/iconsvg/SVG/common/Discount66De.tsx +28 -0
- package/iconsvg/SVG/common/Discount66En.tsx +20 -0
- package/iconsvg/SVG/common/DoneIcon.tsx +18 -0
- package/iconsvg/SVG/common/EditCircle.tsx +32 -0
- package/iconsvg/SVG/common/EditPriceIcon.tsx +20 -0
- package/iconsvg/SVG/common/EuroCurrency.tsx +18 -0
- package/iconsvg/SVG/common/Export.tsx +20 -0
- package/iconsvg/SVG/common/Eye.tsx +17 -0
- package/iconsvg/SVG/common/EyeCatch.tsx +19 -0
- package/iconsvg/SVG/common/FavoritesIcon.tsx +20 -0
- package/iconsvg/SVG/common/FilterRange.tsx +16 -0
- package/iconsvg/SVG/common/FilterToolBlack.tsx +23 -0
- package/iconsvg/SVG/common/FlagDe.tsx +21 -0
- package/iconsvg/SVG/common/FlagEn.tsx +43 -0
- package/iconsvg/SVG/common/GrayEnvelopeIcon.tsx +19 -0
- package/iconsvg/SVG/common/HamburgerMenuIcon.tsx +18 -0
- package/iconsvg/SVG/common/HandingOverDashboard.tsx +32 -0
- package/iconsvg/SVG/common/ImageSettingsIcon.tsx +20 -0
- package/iconsvg/SVG/common/Info.tsx +16 -0
- package/iconsvg/SVG/common/InfoIcon.tsx +17 -0
- package/iconsvg/SVG/common/InfoTransparent.tsx +18 -0
- package/iconsvg/SVG/common/LogoutIcon.tsx +20 -0
- package/iconsvg/SVG/common/MagnifyingGlass.tsx +31 -0
- package/iconsvg/SVG/common/MenuArrow.tsx +16 -0
- package/iconsvg/SVG/common/MenuGrey.tsx +22 -0
- package/iconsvg/SVG/common/MobileDeLogo.tsx +108 -0
- package/iconsvg/SVG/common/MyOrderIcon.tsx +20 -0
- package/iconsvg/SVG/common/MyVehiclesIcon.tsx +20 -0
- package/iconsvg/SVG/common/NewFlagDe.tsx +25 -0
- package/iconsvg/SVG/common/NewFlagEn.tsx +34 -0
- package/iconsvg/SVG/common/OrderReceivedDashboard.tsx +27 -0
- package/iconsvg/SVG/common/Package.tsx +30 -0
- package/iconsvg/SVG/common/Phone.tsx +18 -0
- package/iconsvg/SVG/common/PhoneGrey.tsx +22 -0
- package/iconsvg/SVG/common/PickupDashboard.tsx +30 -0
- package/iconsvg/SVG/common/Picture.tsx +24 -0
- package/iconsvg/SVG/common/Pictures.tsx +32 -0
- package/iconsvg/SVG/common/Plus.tsx +16 -0
- package/iconsvg/SVG/common/PlusNew.tsx +16 -0
- package/iconsvg/SVG/common/PreparationDashboard.tsx +29 -0
- package/iconsvg/SVG/common/ProfileDashboard.tsx +24 -0
- package/iconsvg/SVG/common/ProfileIcon.tsx +17 -0
- package/iconsvg/SVG/common/Question.tsx +19 -0
- package/iconsvg/SVG/common/QuestionBold.tsx +25 -0
- package/iconsvg/SVG/common/RegistrationDashboard.tsx +31 -0
- package/iconsvg/SVG/common/SavedSearchsIcon.tsx +20 -0
- package/iconsvg/SVG/common/Search.tsx +19 -0
- package/iconsvg/SVG/common/SearchGrey.tsx +22 -0
- package/iconsvg/SVG/common/SettingPenIcon.tsx +20 -0
- package/iconsvg/SVG/common/Share.tsx +16 -0
- package/iconsvg/SVG/common/ShoppingCart.tsx +18 -0
- package/iconsvg/SVG/common/SliderArrow.tsx +21 -0
- package/iconsvg/SVG/common/SliderEye.tsx +17 -0
- package/iconsvg/SVG/common/SortUpDownArrows.tsx +18 -0
- package/iconsvg/SVG/common/Speedometer.tsx +23 -0
- package/iconsvg/SVG/common/Star.tsx +20 -0
- package/iconsvg/SVG/common/StarNew.tsx +16 -0
- package/iconsvg/SVG/common/StarOutline.tsx +20 -0
- package/iconsvg/SVG/common/StarRoundedCorners.tsx +18 -0
- package/iconsvg/SVG/common/Stats.tsx +17 -0
- package/iconsvg/SVG/common/Step1.tsx +21 -0
- package/iconsvg/SVG/common/Step2.tsx +20 -0
- package/iconsvg/SVG/common/Step3.tsx +21 -0
- package/iconsvg/SVG/common/SupportCallbackIcon.tsx +20 -0
- package/iconsvg/SVG/common/Telephone.tsx +22 -0
- package/iconsvg/SVG/common/Time.tsx +17 -0
- package/iconsvg/SVG/common/Timetable.tsx +18 -0
- package/iconsvg/SVG/common/Trash.tsx +22 -0
- package/iconsvg/SVG/common/TrashRed.tsx +23 -0
- package/iconsvg/SVG/common/Upload.tsx +17 -0
- package/iconsvg/SVG/common/UserGrey.tsx +22 -0
- package/iconsvg/SVG/common/UserProfileIcon.tsx +20 -0
- package/iconsvg/SVG/common/ValidateFailure.tsx +21 -0
- package/iconsvg/SVG/common/ValidateSuccess.tsx +21 -0
- package/iconsvg/SVG/common/WarningTriangle.tsx +20 -0
- package/iconsvg/SVG/common/WhiteArrowUp.tsx +21 -0
- package/iconsvg/SVG/common/WhiteKey.tsx +21 -0
- package/iconsvg/SVG/common/WhitePeople.tsx +23 -0
- package/iconsvg/SVG/common/WhiteTick.tsx +19 -0
- package/iconsvg/SVG/flags/AT.tsx +19 -0
- package/iconsvg/SVG/flags/BE.tsx +20 -0
- package/iconsvg/SVG/flags/BG.tsx +20 -0
- package/iconsvg/SVG/flags/CH.tsx +22 -0
- package/iconsvg/SVG/flags/CZ.tsx +18 -0
- package/iconsvg/SVG/flags/DE.tsx +18 -0
- package/iconsvg/SVG/flags/DK.tsx +18 -0
- package/iconsvg/SVG/flags/ES.tsx +2585 -0
- package/iconsvg/SVG/flags/FI.tsx +18 -0
- package/iconsvg/SVG/flags/FR.tsx +20 -0
- package/iconsvg/SVG/flags/GB.tsx +26 -0
- package/iconsvg/SVG/flags/HR.tsx +135 -0
- package/iconsvg/SVG/flags/HU.tsx +20 -0
- package/iconsvg/SVG/flags/IT.tsx +20 -0
- package/iconsvg/SVG/flags/LI.tsx +106 -0
- package/iconsvg/SVG/flags/LU.tsx +18 -0
- package/iconsvg/SVG/flags/NL.tsx +18 -0
- package/iconsvg/SVG/flags/NO.tsx +20 -0
- package/iconsvg/SVG/flags/PL.tsx +19 -0
- package/iconsvg/SVG/flags/RO.tsx +20 -0
- package/iconsvg/SVG/flags/RU.tsx +20 -0
- package/iconsvg/SVG/flags/SE.tsx +20 -0
- package/iconsvg/SVG/flags/SI.tsx +54 -0
- package/iconsvg/SVG/flags/SK.tsx +34 -0
- package/iconsvg/SVG/flags/UA.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/14DaysReturnPolicy.tsx +18 -0
- package/iconsvg/SVG/infoBlocks/AlertInfo.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/Autocheck.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/CheckTheStory.tsx +22 -0
- package/iconsvg/SVG/infoBlocks/CustomerServiceWhite.tsx +16 -0
- package/iconsvg/SVG/infoBlocks/Guarantee.tsx +16 -0
- package/iconsvg/SVG/infoBlocks/OrderWhite.tsx +13 -0
- package/iconsvg/SVG/infoBlocks/PriceGuarantee.tsx +19 -0
- package/iconsvg/SVG/infoBlocks/PriceGuaranteeWhite.tsx +17 -0
- package/iconsvg/SVG/infoBlocks/TransportAndDelivery.tsx +21 -0
- package/iconsvg/SVG/infoBlocks/Warranty.tsx +23 -0
- package/iconsvg/SVG/popower/Mail.tsx +18 -0
- package/iconsvg/SVG/popower/Phone.tsx +19 -0
- package/iconsvg/SVG/popower/Schedule.tsx +18 -0
- package/iconsvg/SVG/searchWidgets/drive/AAllWheelDrive.tsx +26 -0
- package/iconsvg/SVG/searchWidgets/drive/AllWheelDrive.tsx +26 -0
- package/iconsvg/SVG/searchWidgets/drive/FrontWheelDrive.tsx +25 -0
- package/iconsvg/SVG/searchWidgets/drive/OtherWheelDrive.tsx +26 -0
- package/iconsvg/SVG/searchWidgets/drive/RearWheelDrive.tsx +25 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelDiesel.tsx +18 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelElectrical.tsx +19 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelElectricalDiesel.tsx +34 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelElectricalPetrol.tsx +20 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelEthanol.tsx +53 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelHydrogen.tsx +24 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelLpg.tsx +24 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelNaturalGas.tsx +23 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelOther.tsx +28 -0
- package/iconsvg/SVG/searchWidgets/fuel/FuelPetrol.tsx +18 -0
- package/iconsvg/SVG/settings/Account.tsx +17 -0
- package/iconsvg/SVG/settings/DataUsage.tsx +17 -0
- package/iconsvg/SVG/settings/MarketResearch.tsx +17 -0
- package/iconsvg/SVG/settings/Newsletter.tsx +17 -0
- package/iconsvg/SVG/settings/RemoveEye.tsx +17 -0
- package/iconsvg/SVG/settings/RemoveEyeOff.tsx +17 -0
- package/iconsvg/SVG/settings/Security.tsx +17 -0
- package/iconsvg/SVG/settings/Warning.tsx +17 -0
- package/iconsvg/SVG/slider/360.tsx +23 -0
- package/iconsvg/SVG/slider/360New.tsx +20 -0
- package/iconsvg/SVG/slider/Checked.tsx +19 -0
- package/iconsvg/SVG/slider/DiscountRibbon.tsx +51 -0
- package/iconsvg/SVG/slider/DiscountRibbonMobile.tsx +47 -0
- package/iconsvg/SVG/slider/DiscountRibbonNew.tsx +29 -0
- package/iconsvg/SVG/slider/Easy.tsx +19 -0
- package/iconsvg/SVG/slider/Fullscreen.tsx +16 -0
- package/iconsvg/SVG/slider/FullscreenWindow.tsx +23 -0
- package/iconsvg/SVG/slider/Safe.tsx +19 -0
- package/iconsvg/SVG/slider/ToBuy.tsx +19 -0
- package/iconsvg/SVG/slider/YoutubeButton.tsx +26 -0
- package/iconsvg/SVG/slider/ZoomIn.tsx +21 -0
- package/iconsvg/SVG/slider/ZoomOut.tsx +21 -0
- package/iconsvg/SVG/social/AndroidLogo.tsx +18 -0
- package/iconsvg/SVG/social/Apple.tsx +19 -0
- package/iconsvg/SVG/social/FacebookF.tsx +19 -0
- package/iconsvg/SVG/social/GooglePlusG.tsx +19 -0
- package/iconsvg/SVG/social/Instagram.tsx +17 -0
- package/iconsvg/SVG/social/Pinterest.tsx +19 -0
- package/iconsvg/SVG/social/SharingInterface.tsx +21 -0
- package/iconsvg/SVG/social/Twitter.tsx +19 -0
- package/iconsvg/SVG/social/Youtube.tsx +19 -0
- package/iconsvg/SVG/vehicle/AboIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/Abs.tsx +24 -0
- package/iconsvg/SVG/vehicle/AirCond.tsx +34 -0
- package/iconsvg/SVG/vehicle/Airbag.tsx +21 -0
- package/iconsvg/SVG/vehicle/AuxiliaryHeating.tsx +23 -0
- package/iconsvg/SVG/vehicle/Bluetooth.tsx +22 -0
- package/iconsvg/SVG/vehicle/BuyIcon.tsx +15 -0
- package/iconsvg/SVG/vehicle/CarAvailability.tsx +22 -0
- package/iconsvg/SVG/vehicle/CarInspectionCheck.tsx +21 -0
- package/iconsvg/SVG/vehicle/CarInspectionCross.tsx +21 -0
- package/iconsvg/SVG/vehicle/CheckoutChecked.tsx +15 -0
- package/iconsvg/SVG/vehicle/Co2.tsx +24 -0
- package/iconsvg/SVG/vehicle/CruiseControl.tsx +25 -0
- package/iconsvg/SVG/vehicle/Date.tsx +21 -0
- package/iconsvg/SVG/vehicle/Delivery.tsx +12 -0
- package/iconsvg/SVG/vehicle/Diesel.tsx +28 -0
- package/iconsvg/SVG/vehicle/Display.tsx +25 -0
- package/iconsvg/SVG/vehicle/Done.tsx +11 -0
- package/iconsvg/SVG/vehicle/Door.tsx +19 -0
- package/iconsvg/SVG/vehicle/DoubleDone.tsx +18 -0
- package/iconsvg/SVG/vehicle/EditIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/EmergencyBrakeAssistant.tsx +27 -0
- package/iconsvg/SVG/vehicle/Eps.tsx +24 -0
- package/iconsvg/SVG/vehicle/Esp.tsx +24 -0
- package/iconsvg/SVG/vehicle/FinancingIcon.tsx +20 -0
- package/iconsvg/SVG/vehicle/FuelConsumption.tsx +20 -0
- package/iconsvg/SVG/vehicle/Fueling.tsx +22 -0
- package/iconsvg/SVG/vehicle/FullDrive.tsx +24 -0
- package/iconsvg/SVG/vehicle/GasElectric.tsx +28 -0
- package/iconsvg/SVG/vehicle/HandsFreePhoneSystem.tsx +24 -0
- package/iconsvg/SVG/vehicle/Kw.tsx +23 -0
- package/iconsvg/SVG/vehicle/LastCrawledAt.tsx +22 -0
- package/iconsvg/SVG/vehicle/LeasingIcon.tsx +14 -0
- package/iconsvg/SVG/vehicle/Led.tsx +24 -0
- package/iconsvg/SVG/vehicle/LightSensor.tsx +22 -0
- package/iconsvg/SVG/vehicle/LinkAlternative.tsx +15 -0
- package/iconsvg/SVG/vehicle/Location.tsx +17 -0
- package/iconsvg/SVG/vehicle/MinusIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/Mirror.tsx +19 -0
- package/iconsvg/SVG/vehicle/Navigation.tsx +27 -0
- package/iconsvg/SVG/vehicle/NewCar.tsx +21 -0
- package/iconsvg/SVG/vehicle/NoImage.tsx +17 -0
- package/iconsvg/SVG/vehicle/Owner.tsx +18 -0
- package/iconsvg/SVG/vehicle/PanoramicRoof.tsx +23 -0
- package/iconsvg/SVG/vehicle/ParkingAssistants.tsx +24 -0
- package/iconsvg/SVG/vehicle/PickYourself.tsx +18 -0
- package/iconsvg/SVG/vehicle/PlusIcon.tsx +11 -0
- package/iconsvg/SVG/vehicle/Power.tsx +21 -0
- package/iconsvg/SVG/vehicle/Ps.tsx +19 -0
- package/iconsvg/SVG/vehicle/Question.tsx +24 -0
- package/iconsvg/SVG/vehicle/Seats.tsx +21 -0
- package/iconsvg/SVG/vehicle/SeatsHeating.tsx +26 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxAutomatic.tsx +24 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxManualShift.tsx +19 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxOther.tsx +24 -0
- package/iconsvg/SVG/vehicle/SelectorGearboxSemiAutomatic.tsx +30 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeAlcantara.tsx +225 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeFabric.tsx +29 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeFullLeather.tsx +29 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeOther.tsx +26 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypePartLeather.tsx +142 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeSyntheticLeather.tsx +27 -0
- package/iconsvg/SVG/vehicle/SelectorInteriorTypeVelours.tsx +39 -0
- package/iconsvg/SVG/vehicle/Shield.tsx +39 -0
- package/iconsvg/SVG/vehicle/Speedometer.tsx +17 -0
- package/iconsvg/SVG/vehicle/StartStopSystem.tsx +30 -0
- package/iconsvg/SVG/vehicle/Stop.tsx +25 -0
- package/iconsvg/SVG/vehicle/TickMark.tsx +21 -0
- package/iconsvg/SVG/vehicle/TrafficSignRecognition.tsx +29 -0
- package/iconsvg/SVG/vehicle/TrailerCoupling.tsx +24 -0
- package/iconsvg/SVG/vehicle/Transmission.tsx +27 -0
- package/iconsvg/SVG/vehicle/Wheel.tsx +43 -0
- package/iconsvg/SVG/vehicle/Wipers.tsx +22 -0
- package/iconsvg/SVG/vehicle/Wrench.tsx +17 -0
- package/iconsvg/index.ts +7 -0
- package/index.ts +18 -0
- package/locales/de/autobahn.json +671 -0
- package/locales/en/autobahn.json +671 -0
- package/locales/legacy/SearchDetailedPage.ts +205 -0
- package/locales/legacy/cbd.ts +719 -0
- package/locales/legacy/common.ts +109 -0
- package/locales/legacy/data.ts +1118 -0
- package/locales/legacy/priceRating.ts +10 -0
- package/locales/legacy/sortingOptions.ts +21 -0
- package/media/images/question.svg +1 -0
- package/media/images/raiting-stars-min.svg +7 -0
- package/media/images/refresh-button.svg +49 -0
- package/media/images/searchWidget/selector_emissionSticker_green.png +0 -0
- package/media/images/searchWidget/selector_emissionSticker_red.png +0 -0
- package/media/images/searchWidget/selector_emissionSticker_yellow.png +0 -0
- package/media/images/slider-arrow-new.svg +1 -0
- package/media/images/user-icon.svg +16 -0
- package/media/svg/common/eye.svg +1 -0
- package/media/svg/common/star.svg +1 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-F.svg +9 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-G.svg +8 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-Q.svg +6 -0
- package/media/svg/infoBlocks/whyAutodeIconSet-R.svg +9 -0
- package/media/svg/usp/icon1.svg +16 -0
- package/media/svg/usp/icon2.svg +13 -0
- package/media/svg/usp/icon3.svg +10 -0
- package/media/svg/usp/icon4.svg +14 -0
- package/package.json +30 -0
- package/schemes/AggregationScheme.ts +73 -0
- package/searchFilters/filterOptions.ts +119 -0
- package/searchFilters/filterProps.ts +35 -0
- package/searchFilters/index.ts +15 -0
- package/theme/autobahn.css +25 -0
- package/theme/colors_and_type.css +113 -0
- package/theme/md3.css +2034 -0
- package/types/types.ts +374 -0
- package/types.ts +8 -0
- package/ui/Accordion.tsx +134 -0
- package/ui/Button.tsx +62 -0
- package/ui/CardCarousel.tsx +133 -0
- package/ui/Chip.tsx +29 -0
- package/ui/DatePicker.tsx +145 -0
- package/ui/Dropdown.tsx +205 -0
- package/ui/FileUpload.tsx +154 -0
- package/ui/FormCheckbox.tsx +79 -0
- package/ui/FormDropdown.tsx +327 -0
- package/ui/FormField.tsx +88 -0
- package/ui/FormRadio.tsx +93 -0
- package/ui/FormRadioGroup.tsx +106 -0
- package/ui/Icon.tsx +391 -0
- package/ui/IconButton.tsx +44 -0
- package/ui/Modal.tsx +187 -0
- package/ui/Pagination.tsx +140 -0
- package/ui/Price.tsx +25 -0
- package/ui/PriceEvalBar.tsx +48 -0
- package/ui/SaveChip.tsx +34 -0
- package/ui/Segmented.tsx +48 -0
- package/ui/Skeleton.tsx +75 -0
- package/ui/Spec.tsx +24 -0
- package/ui/Stars.tsx +29 -0
- package/ui/StatChip.tsx +21 -0
- package/ui/Stepper.tsx +106 -0
- package/ui/Switch.tsx +65 -0
- package/ui/Table.tsx +156 -0
- package/ui/Textarea.tsx +58 -0
- package/ui/index.ts +88 -0
- package/utils/CommonUtils.ts +649 -0
- package/utils/DateUtils.ts +101 -0
- package/utils/index.ts +74 -0
- package/utils/power.ts +11 -0
- package/utils/query.ts +21 -0
- package/vdp/FinanceCalculator.tsx +465 -0
- package/vdp/VdpModules.tsx +1490 -0
- package/vdp/VdpViewer.tsx +139 -0
- package/vdp/index.ts +75 -0
- package/vdp/types.ts +197 -0
- package/vehiclesProps/cbdSelectors.ts +117 -0
- package/vehiclesProps/decoratedLightProps.tsx +572 -0
- package/vehiclesProps/decoratedProps.tsx +1746 -0
- package/vehiclesProps/equipment.ts +129 -0
- package/vehiclesProps/vehicleDetails.ts +428 -0
- package/widgets/SearchBox.tsx +256 -0
- package/widgets/index.ts +5 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import React, { memo, FunctionComponent, ReactNode, MouseEvent, createElement } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import _get from 'lodash/get';
|
|
4
|
+
import getCardDecoratedProps from '../../vehiclesProps/decoratedLightProps';
|
|
5
|
+
import LazyLoad from 'react-lazyload';
|
|
6
|
+
import withLabel from '../withLabel/withLabel';
|
|
7
|
+
import withStats, { IStatsWrapperProps } from '../withStats/withStats';
|
|
8
|
+
import Image from '../Image/Image';
|
|
9
|
+
import IconSVG from '../../iconsvg/IconSVG';
|
|
10
|
+
import VehicleSlider from '../VehicleSlider/VehicleSlider';
|
|
11
|
+
import VehicleSliderForSRL from '../VehicleSlider/VehicleSliderForSRL';
|
|
12
|
+
import VehicleTitle from './VehicleData/VehicleTitle/VehicleTitle';
|
|
13
|
+
import SeoText from './SeoText/SeoText';
|
|
14
|
+
import VehicleInfo from './VehicleData/VehicleInfo/VehicleInfo';
|
|
15
|
+
import VehiclePrice from './VehicleData/VehiclePrice/VehiclePrice';
|
|
16
|
+
import { PLACEHOLDER_IMAGE_SMALL_URL } from '../../constants/common';
|
|
17
|
+
import {
|
|
18
|
+
IVehicleInfo,
|
|
19
|
+
IPrice,
|
|
20
|
+
IVehicleLocation,
|
|
21
|
+
IVehicleTitleProps,
|
|
22
|
+
IVehicleSliderProps,
|
|
23
|
+
IVehicleSliderForSRLProps,
|
|
24
|
+
IVehicleCompareProps
|
|
25
|
+
} from '../../types/types';
|
|
26
|
+
import { vehicleProps } from '../../locales/legacy/data';
|
|
27
|
+
import styles from './VehicleSmallCard.styl';
|
|
28
|
+
|
|
29
|
+
const DecoratedSlider = withLabel(withStats(VehicleSlider));
|
|
30
|
+
const DecoratedSliderForSRL = withStats(VehicleSliderForSRL);
|
|
31
|
+
const ImageWithStats = withStats(Image);
|
|
32
|
+
|
|
33
|
+
interface IVehicleSmallCardProps {
|
|
34
|
+
t?: (key: string, options?: object) => string;
|
|
35
|
+
i18nPrefixForPriceRating?: string;
|
|
36
|
+
language?: string;
|
|
37
|
+
vehicleComponentName?: 'comparable' | 'landing' | 'search' | 'main' | 'myVehicles' | 'favorite' | 'recently';
|
|
38
|
+
isTop?: boolean;
|
|
39
|
+
isDealerSuperAdmin?: boolean;
|
|
40
|
+
isReferenceSearch?: boolean;
|
|
41
|
+
dashboardButtonText?: string;
|
|
42
|
+
showNewLabel?: boolean;
|
|
43
|
+
disableDownPaymentLocalStorage?: boolean;
|
|
44
|
+
CircularProgressbar?: any;
|
|
45
|
+
slider?: IVehicleSliderProps | IVehicleSliderForSRLProps;
|
|
46
|
+
stats?: IStatsWrapperProps;
|
|
47
|
+
title?: IVehicleTitleProps;
|
|
48
|
+
info?: IVehicleInfo;
|
|
49
|
+
location?: IVehicleLocation;
|
|
50
|
+
compareProps?: IVehicleCompareProps;
|
|
51
|
+
environmentEmissions?: object;
|
|
52
|
+
consumption?: object;
|
|
53
|
+
engineData?: object;
|
|
54
|
+
isCarInFavorite?: boolean;
|
|
55
|
+
offer?: object;
|
|
56
|
+
price?: IPrice;
|
|
57
|
+
seoText?: string;
|
|
58
|
+
classButton?: string;
|
|
59
|
+
mainImageId?: string;
|
|
60
|
+
target?: string;
|
|
61
|
+
rel?: string;
|
|
62
|
+
crawledAt?: string;
|
|
63
|
+
modificationDate?: string;
|
|
64
|
+
baseUrl?: string;
|
|
65
|
+
offerSource?: string;
|
|
66
|
+
priceSubMtl?: string | null;
|
|
67
|
+
ownerName?: string;
|
|
68
|
+
className?: string;
|
|
69
|
+
id?: string;
|
|
70
|
+
linkTag?: string;
|
|
71
|
+
src?: string;
|
|
72
|
+
url?: string;
|
|
73
|
+
iconName?: string;
|
|
74
|
+
children?: ReactNode;
|
|
75
|
+
showSlider?: boolean;
|
|
76
|
+
showOfferBtn?: boolean;
|
|
77
|
+
hasInteriorExteriorPhoto?: boolean;
|
|
78
|
+
showCompareCheckboxes?: boolean;
|
|
79
|
+
showFavoriteStar?: boolean;
|
|
80
|
+
minimizeData?: boolean;
|
|
81
|
+
onContainerClick?: (event?: any) => void;
|
|
82
|
+
renderIDInfo?: () => React.ReactNode;
|
|
83
|
+
renderVehicleStatus?: () => React.ReactNode;
|
|
84
|
+
onFavoriteClick?: (event?: any) => void;
|
|
85
|
+
onDetailsClick(id: string): void;
|
|
86
|
+
onAddOfferToMainSlideClick?: (id: string, mainImageId: string, price: number, financingConfig: any) => void;
|
|
87
|
+
isAlternative?: boolean;
|
|
88
|
+
typeAlternative?: string;
|
|
89
|
+
index?: number;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
93
|
+
const {
|
|
94
|
+
t = (phrase: string) => _get(vehicleProps(props), phrase.replace(':', '.'), phrase),
|
|
95
|
+
isTop,
|
|
96
|
+
slider,
|
|
97
|
+
vehicleComponentName,
|
|
98
|
+
i18nPrefixForPriceRating,
|
|
99
|
+
stats,
|
|
100
|
+
compareProps,
|
|
101
|
+
title,
|
|
102
|
+
info,
|
|
103
|
+
location,
|
|
104
|
+
consumption,
|
|
105
|
+
environmentEmissions,
|
|
106
|
+
isReferenceSearch,
|
|
107
|
+
showCompareCheckboxes,
|
|
108
|
+
CircularProgressbar,
|
|
109
|
+
engineData,
|
|
110
|
+
offer,
|
|
111
|
+
price,
|
|
112
|
+
seoText,
|
|
113
|
+
showNewLabel,
|
|
114
|
+
disableDownPaymentLocalStorage,
|
|
115
|
+
linkTag = 'a',
|
|
116
|
+
language,
|
|
117
|
+
className,
|
|
118
|
+
url,
|
|
119
|
+
target,
|
|
120
|
+
rel,
|
|
121
|
+
priceSubMtl,
|
|
122
|
+
onContainerClick,
|
|
123
|
+
onAddOfferToMainSlideClick,
|
|
124
|
+
isDealerSuperAdmin,
|
|
125
|
+
mainImageId,
|
|
126
|
+
onFavoriteClick,
|
|
127
|
+
isCarInFavorite,
|
|
128
|
+
onDetailsClick,
|
|
129
|
+
renderIDInfo,
|
|
130
|
+
renderVehicleStatus,
|
|
131
|
+
src,
|
|
132
|
+
crawledAt,
|
|
133
|
+
modificationDate,
|
|
134
|
+
baseUrl,
|
|
135
|
+
offerSource,
|
|
136
|
+
ownerName,
|
|
137
|
+
id,
|
|
138
|
+
children,
|
|
139
|
+
iconName,
|
|
140
|
+
showSlider,
|
|
141
|
+
classButton,
|
|
142
|
+
hasInteriorExteriorPhoto,
|
|
143
|
+
dashboardButtonText,
|
|
144
|
+
showOfferBtn = false,
|
|
145
|
+
showFavoriteStar = true,
|
|
146
|
+
minimizeData = false,
|
|
147
|
+
isAlternative = false,
|
|
148
|
+
typeAlternative,
|
|
149
|
+
index
|
|
150
|
+
} = props;
|
|
151
|
+
|
|
152
|
+
const combineRefAlternative = isAlternative || isReferenceSearch;
|
|
153
|
+
|
|
154
|
+
// ADV-88: on the narrow landing/main recommendation cards the long plug-in consumption line
|
|
155
|
+
// doesn't fit the slim `info` column — render it as its own full-width row below the price
|
|
156
|
+
// block (under "Zum Angebot") instead, and suppress it inside VehicleInfo to avoid duplication.
|
|
157
|
+
// ADV-88: ANY plug-in hybrid (new or used) carries the long weighted+discharged consumption/CO2
|
|
158
|
+
// line — externalise it to a full-width row so it doesn't overflow the narrow info column. Gated
|
|
159
|
+
// on hybridPlugin only, no condition check.
|
|
160
|
+
// ADV-88: "is a hybrid car" is determined by fuel type (hybrid electric + diesel/petrol), not hybridPlugin.
|
|
161
|
+
const cardFuel = consumption ? (consumption as any).fuel : undefined;
|
|
162
|
+
const isPlugin = cardFuel === 'selector_fuel_hybridElectricalDiesel'
|
|
163
|
+
|| cardFuel === 'selector_fuel_hybridElectricalPetrol';
|
|
164
|
+
const externalizeConsumption = isPlugin
|
|
165
|
+
&& (vehicleComponentName === 'landing' || vehicleComponentName === 'main'
|
|
166
|
+
|| vehicleComponentName === 'search' || vehicleComponentName === 'comparable'
|
|
167
|
+
|| vehicleComponentName === 'favorite');
|
|
168
|
+
let pluginConsumptionNode: ReactNode = null;
|
|
169
|
+
if (externalizeConsumption) {
|
|
170
|
+
const decoCar = {
|
|
171
|
+
consumption,
|
|
172
|
+
environmentEmissions,
|
|
173
|
+
engineData,
|
|
174
|
+
mainData: { condition: _get(info, 'condition') }
|
|
175
|
+
};
|
|
176
|
+
const deco = getCardDecoratedProps(decoCar, t, language) as any;
|
|
177
|
+
pluginConsumptionNode = _get(deco, 'consumptionCombinedAlternateView.value', null);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const label = {
|
|
181
|
+
labelVisible: isTop,
|
|
182
|
+
labelWrapperClassName: styles.labelWrapper
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
const wrapperClassName = classnames(
|
|
186
|
+
styles.vehicle,
|
|
187
|
+
{ [styles.vehicleWrapLanding]: vehicleComponentName === 'landing' },
|
|
188
|
+
{ [styles.vehicleWrapMain]: vehicleComponentName === 'main' },
|
|
189
|
+
{ [styles.vehicleWrapSearch]: vehicleComponentName === 'search' },
|
|
190
|
+
{ [styles.vehicleWrapComparable]: vehicleComponentName === 'comparable' },
|
|
191
|
+
{ [styles.vehicleWrapMyVeicles]: vehicleComponentName === 'myVehicles' },
|
|
192
|
+
{ [styles.vehicleWrapFavorite]: vehicleComponentName === 'favorite' },
|
|
193
|
+
{ [styles.vehicleWrapRecently]: vehicleComponentName === 'recently' },
|
|
194
|
+
{ [styles.vehicleWrapNewPlugin]: externalizeConsumption },
|
|
195
|
+
{ [styles.topVehicle]: isTop },
|
|
196
|
+
{ [styles.disableBorder]: minimizeData },
|
|
197
|
+
{ [styles.isFirstReferenceCar]: isReferenceSearch && index === 0 },
|
|
198
|
+
className
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
const decoratedSliderProps = {
|
|
202
|
+
t,
|
|
203
|
+
id,
|
|
204
|
+
hasInteriorExteriorPhoto,
|
|
205
|
+
...label,
|
|
206
|
+
...stats,
|
|
207
|
+
...slider,
|
|
208
|
+
price,
|
|
209
|
+
showNewLabel,
|
|
210
|
+
CircularProgressbar,
|
|
211
|
+
isReferenceSearch,
|
|
212
|
+
isAlternative,
|
|
213
|
+
typeAlternative,
|
|
214
|
+
showDownPayment: !!(offer as any)?.showDownPayment,
|
|
215
|
+
disableDownPaymentLocalStorage,
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const favoriteProps = {
|
|
219
|
+
...title,
|
|
220
|
+
id,
|
|
221
|
+
vehicleComponentName,
|
|
222
|
+
renderVehicleStatus,
|
|
223
|
+
isCarInFavorite,
|
|
224
|
+
onFavoriteClick,
|
|
225
|
+
showFavoriteStar,
|
|
226
|
+
combineRefAlternative
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
const routeObj = linkTag !== 'a'
|
|
230
|
+
? { to: { pathname: url, state: { mainImageId, mainImageUrl: src, carId: id, isSavedCheckout: showOfferBtn, ...title } } }
|
|
231
|
+
: '';
|
|
232
|
+
|
|
233
|
+
const vehicleInfoProps = {
|
|
234
|
+
t,
|
|
235
|
+
combineRefAlternative,
|
|
236
|
+
environmentEmissions,
|
|
237
|
+
i18nPrefixForPriceRating,
|
|
238
|
+
vehicleComponentName,
|
|
239
|
+
location,
|
|
240
|
+
consumption,
|
|
241
|
+
offer,
|
|
242
|
+
language,
|
|
243
|
+
linkTag,
|
|
244
|
+
routeObj,
|
|
245
|
+
url,
|
|
246
|
+
target,
|
|
247
|
+
rel,
|
|
248
|
+
engineData,
|
|
249
|
+
suppressConsumption: externalizeConsumption,
|
|
250
|
+
...price,
|
|
251
|
+
...info
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const vehiclePriceProps = {
|
|
255
|
+
t,
|
|
256
|
+
id,
|
|
257
|
+
url,
|
|
258
|
+
target,
|
|
259
|
+
rel,
|
|
260
|
+
iconName,
|
|
261
|
+
dashboardButtonText,
|
|
262
|
+
vehicleComponentName,
|
|
263
|
+
classButton,
|
|
264
|
+
linkTag,
|
|
265
|
+
priceSubMtl,
|
|
266
|
+
onAddOfferToMainSlideClick,
|
|
267
|
+
isDealerSuperAdmin,
|
|
268
|
+
onDetailsClick,
|
|
269
|
+
mainImageId,
|
|
270
|
+
routeObj,
|
|
271
|
+
showOfferBtn,
|
|
272
|
+
combineRefAlternative,
|
|
273
|
+
typeAlternative,
|
|
274
|
+
isAlternative,
|
|
275
|
+
showCompareCheckboxes,
|
|
276
|
+
// ADV-88: hide the "monatlich z.B." price-column header on exactly the cards that show
|
|
277
|
+
// the externalised consumption row (new plug-in hybrids) so the price column rises.
|
|
278
|
+
suppressMonthlyFrom: externalizeConsumption && !!pluginConsumptionNode,
|
|
279
|
+
...price,
|
|
280
|
+
...compareProps
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
const lazyLoadProps = {
|
|
284
|
+
once: true,
|
|
285
|
+
offset: 500
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
const imageProps = {
|
|
289
|
+
src,
|
|
290
|
+
width: '100%',
|
|
291
|
+
ratioW: 4,
|
|
292
|
+
ratioH: 3
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
const statsProps = {
|
|
296
|
+
t,
|
|
297
|
+
price,
|
|
298
|
+
showNewLabel,
|
|
299
|
+
showDownPayment: !!(offer as any)?.showDownPayment,
|
|
300
|
+
disableDownPaymentLocalStorage,
|
|
301
|
+
...stats
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
const linkBaseUrl = (e: MouseEvent<HTMLImageElement>) => {
|
|
305
|
+
e.preventDefault();
|
|
306
|
+
if (baseUrl) window.open(baseUrl, '_blank');
|
|
307
|
+
};
|
|
308
|
+
const showComponentLikeSlider = vehicleComponentName === 'search' ||
|
|
309
|
+
vehicleComponentName === 'myVehicles' ||
|
|
310
|
+
vehicleComponentName === 'favorite' ||
|
|
311
|
+
vehicleComponentName === 'recently';
|
|
312
|
+
return (
|
|
313
|
+
<section className={wrapperClassName} onClick={onContainerClick} id={id}>
|
|
314
|
+
<>
|
|
315
|
+
{createElement(linkTag, {
|
|
316
|
+
children: <VehicleTitle {...favoriteProps} />,
|
|
317
|
+
...routeObj,
|
|
318
|
+
target,
|
|
319
|
+
rel,
|
|
320
|
+
className: `${styles.redirectClassLink} ${styles.gridAreaTitle}`,
|
|
321
|
+
// ADV-116: opening a CDP from a card defaults to the Financing tab.
|
|
322
|
+
onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
|
|
323
|
+
href: url
|
|
324
|
+
})}
|
|
325
|
+
|
|
326
|
+
{createElement(linkTag, {
|
|
327
|
+
children: (
|
|
328
|
+
<>
|
|
329
|
+
{showSlider ? (
|
|
330
|
+
<>
|
|
331
|
+
{showComponentLikeSlider ? (
|
|
332
|
+
<>
|
|
333
|
+
<DecoratedSliderForSRL {...decoratedSliderProps} />
|
|
334
|
+
{renderIDInfo ? renderIDInfo() : null}
|
|
335
|
+
{combineRefAlternative && (
|
|
336
|
+
<div className={styles.wrapAlternativeData}>
|
|
337
|
+
<div>
|
|
338
|
+
{offerSource || ownerName ? (
|
|
339
|
+
<>
|
|
340
|
+
<IconSVG className={styles.svgIcon} name='linkAlternative' />
|
|
341
|
+
<span onClick={(e: MouseEvent<HTMLImageElement>) => linkBaseUrl(e)}>
|
|
342
|
+
{!typeAlternative ? ownerName : t(`cbd:${offerSource}`)}
|
|
343
|
+
</span>
|
|
344
|
+
</>
|
|
345
|
+
) : ''}
|
|
346
|
+
</div>
|
|
347
|
+
{crawledAt || modificationDate ? (
|
|
348
|
+
<div>
|
|
349
|
+
<IconSVG className={styles.svgIcon} name='lastCrawledAt' />
|
|
350
|
+
<span>
|
|
351
|
+
{!typeAlternative ? modificationDate : crawledAt}
|
|
352
|
+
</span>
|
|
353
|
+
</div>
|
|
354
|
+
) : ''}
|
|
355
|
+
</div>
|
|
356
|
+
)}
|
|
357
|
+
</>
|
|
358
|
+
) : (
|
|
359
|
+
<figure className={styles.figure}>
|
|
360
|
+
<DecoratedSlider {...decoratedSliderProps} />
|
|
361
|
+
</figure>
|
|
362
|
+
)}
|
|
363
|
+
</>
|
|
364
|
+
) : (
|
|
365
|
+
<LazyLoad {...lazyLoadProps}>
|
|
366
|
+
<ImageWithStats {...imageProps} {...statsProps} />
|
|
367
|
+
</LazyLoad>
|
|
368
|
+
)}
|
|
369
|
+
</>
|
|
370
|
+
),
|
|
371
|
+
...routeObj,
|
|
372
|
+
target,
|
|
373
|
+
rel,
|
|
374
|
+
className: `${styles.redirectClassLink} ${styles.gridAreaImage}`,
|
|
375
|
+
// ADV-116: opening a CDP from a card defaults to the Financing tab.
|
|
376
|
+
onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
|
|
377
|
+
href: url
|
|
378
|
+
})}
|
|
379
|
+
<VehicleInfo {...vehicleInfoProps} />
|
|
380
|
+
<VehiclePrice {...vehiclePriceProps} />
|
|
381
|
+
{externalizeConsumption && pluginConsumptionNode ? (
|
|
382
|
+
<div className={styles.gridAreaConsumption}>{pluginConsumptionNode}</div>
|
|
383
|
+
) : null}
|
|
384
|
+
{seoText ? (
|
|
385
|
+
<a className={`${styles.redirectClassLink} ${styles.gridAreaSeoText}`} href={url}>
|
|
386
|
+
<SeoText seoText={seoText} />
|
|
387
|
+
</a>
|
|
388
|
+
) : null
|
|
389
|
+
}
|
|
390
|
+
{children}
|
|
391
|
+
</>
|
|
392
|
+
</section>
|
|
393
|
+
);
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
VehicleSmallCard.defaultProps = {
|
|
397
|
+
vehicleComponentName: 'landing',
|
|
398
|
+
isTop: false,
|
|
399
|
+
showSlider: false,
|
|
400
|
+
isDealerSuperAdmin: false,
|
|
401
|
+
showCompareCheckboxes: false,
|
|
402
|
+
priceSubMtl: null,
|
|
403
|
+
slider: {},
|
|
404
|
+
stats: {},
|
|
405
|
+
title: {},
|
|
406
|
+
info: {},
|
|
407
|
+
crawledAt: 'N/A',
|
|
408
|
+
baseUrl: '',
|
|
409
|
+
typeAlternative: '',
|
|
410
|
+
offerSource: '',
|
|
411
|
+
src: PLACEHOLDER_IMAGE_SMALL_URL,
|
|
412
|
+
environmentEmissions: null,
|
|
413
|
+
language: 'en',
|
|
414
|
+
consumption: null,
|
|
415
|
+
showNewLabel: false,
|
|
416
|
+
isCarInFavorite: false,
|
|
417
|
+
onContainerClick: () => { },
|
|
418
|
+
onDetailsClick: () => { }
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
// export default VehicleSmallCard;
|
|
422
|
+
export default memo(VehicleSmallCard, (props, nextProps) => { // shouldComponentUpdate
|
|
423
|
+
const {
|
|
424
|
+
t,
|
|
425
|
+
price: {
|
|
426
|
+
financing: { monthlyInstallment, annualMileage, withFinalInstallment },
|
|
427
|
+
leasing: { monthlyInstallment: lMonthlyInstallment }
|
|
428
|
+
},
|
|
429
|
+
stats: { statsData },
|
|
430
|
+
isCarInFavorite,
|
|
431
|
+
compareProps,
|
|
432
|
+
children,
|
|
433
|
+
slider: {
|
|
434
|
+
images
|
|
435
|
+
}
|
|
436
|
+
} = props;
|
|
437
|
+
|
|
438
|
+
return t === nextProps.t
|
|
439
|
+
&& monthlyInstallment === nextProps.price.financing.monthlyInstallment
|
|
440
|
+
&& annualMileage === nextProps.price.financing.annualMileage
|
|
441
|
+
&& withFinalInstallment === nextProps.price.financing.withFinalInstallment
|
|
442
|
+
&& lMonthlyInstallment === nextProps.price.leasing.monthlyInstallment
|
|
443
|
+
&& isCarInFavorite === nextProps.isCarInFavorite
|
|
444
|
+
&& statsData === nextProps.stats.statsData
|
|
445
|
+
&& _get(compareProps, 'toCompare') === _get(compareProps, 'nextProps.toCompare')
|
|
446
|
+
&& children === nextProps.children
|
|
447
|
+
&& images === nextProps.slider.images;
|
|
448
|
+
});
|
package/compat/index.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// @bytebrand/fe-ui-core-autobahn/compat — DESIGN-NEUTRAL LEGACY COMPONENTS,
|
|
2
|
+
// moved verbatim out of @bytebrand/fe-ui-core before its deletion.
|
|
3
|
+
//
|
|
4
|
+
// These are NOT md3 primitives: they render their own markup with co-located
|
|
5
|
+
// .styl (compiled by each consumer's bundler, CSS-modules, no theme injection)
|
|
6
|
+
// and have NO @mui dependency. They exist so the last MUI-free pieces of the
|
|
7
|
+
// legacy design keep one single source. New code should use the md3 kit from
|
|
8
|
+
// the package root (`ui/`, `cards/`, …) instead.
|
|
9
|
+
//
|
|
10
|
+
// NOTE: deliberately NOT re-exported from the package root index.ts — several
|
|
11
|
+
// names (FormCheckbox, Tooltip, …) would clash with the md3 primitives in ui/.
|
|
12
|
+
// Import via `@bytebrand/fe-ui-core-autobahn/compat`.
|
|
13
|
+
|
|
14
|
+
export { default as Loader } from './Loader/Loader';
|
|
15
|
+
export { default as Image } from './Image/Image';
|
|
16
|
+
export { default as FormattedNumber } from './FormattedNumber/FormattedNumber';
|
|
17
|
+
export { default as VehicleFormattedPrice } from './VehicleFormattedPrice/VehicleFormattedPrice';
|
|
18
|
+
export { default as InfoBlockWrapper } from './InfoBlockWrapper/InfoBlockWrapper';
|
|
19
|
+
export { default as ContactInfo } from './ContactInfo/ContactInfo';
|
|
20
|
+
export { default as ButtonOld } from './ButtonOld/Button';
|
|
21
|
+
|
|
22
|
+
export { default as Checkbox } from './Checkbox/Checkbox';
|
|
23
|
+
export { default as FormCheckbox } from './Checkbox/FormCheckbox';
|
|
24
|
+
export { default as Tooltip } from './Tooltip/Tooltip';
|
|
25
|
+
export { default as Radio } from './Radio/Radio';
|
|
26
|
+
// legacy alias kept from fe-ui-core's common barrel (RadioButton === Radio)
|
|
27
|
+
export { default as RadioButton } from './Radio/Radio';
|
|
28
|
+
export { default as RadioGroup } from './Radio/RadioGroup';
|
|
29
|
+
|
|
30
|
+
export { default as AdvantageItem } from './AdvantageItem/AdvantageItem';
|
|
31
|
+
export { default as ImagesSet } from './ImagesSet/ImagesSet';
|
|
32
|
+
export { default as Usp } from './Usp/Usp';
|
|
33
|
+
export { default as CustomerQuote } from './CustomerQuote/CustomerQuote';
|
|
34
|
+
export { default as CustomerQuotesSlider } from './CustomerQuotesSlider/CustomerQuotesSlider';
|
|
35
|
+
export { default as PriceRating } from './PriceRating/PriceRating';
|
|
36
|
+
export { default as PriceRatingDetailed } from './PriceRatingDetailed/PriceRatingDetailed';
|
|
37
|
+
export { default as PricingToolBlock } from './PricingToolBlock/PricingTool';
|
|
38
|
+
export { default as ServiceBlockItem } from './ServiceBlockItem/ServiceBlockItem';
|
|
39
|
+
export { default as VehicleFirstInfoBlock } from './FirstInfoBlock/FirstInfoBlock';
|
|
40
|
+
export { default as SkeletonItem } from './SkeletonItem/SkeletonItem';
|
|
41
|
+
export { default as TabPanel } from './TabPanel/TabPanel';
|
|
42
|
+
|
|
43
|
+
// legacy composites moved verbatim (their MUI leaves swapped to the md3
|
|
44
|
+
// adapters below — see each component's header).
|
|
45
|
+
export { default as VehicleSmallCard } from './VehicleSmallCard/VehicleSmallCard';
|
|
46
|
+
export { default as VehicleDetailedSlider } from './VehicleDetailedSlider/VehicleDetailedSlider';
|
|
47
|
+
export { default as VehicleDetailedSidebar } from './VehicleDetailedSidebar/VehicleDetailedSidebar';
|
|
48
|
+
export { default as RateSearchWidget } from './RateSearchWidget/RateSearchWidget';
|
|
49
|
+
export { default as RateSearchValue } from './RateSearchValue/RateSearchValue';
|
|
50
|
+
export { default as AccardionSection } from './AccardionSection/AccardionSection';
|
|
51
|
+
export { default as OfferDetailedSection } from './OfferDetailedSection/OfferDetailedSection';
|
|
52
|
+
export { default as OfferPanel } from './OfferPanel/OfferPanel';
|
|
53
|
+
export { default as OfferPeriod } from './OfferPanel/OfferPeriod/OfferPeriod';
|
|
54
|
+
export { default as MuiOfferPeriod } from './OfferPanel/MuiOfferPeriod/MuiOfferPeriod';
|
|
55
|
+
export { default as RangeGroup } from './OfferPanel/RangeGroup/RangeGroup';
|
|
56
|
+
export { default as OfferCheckboxGroup } from './OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup';
|
|
57
|
+
export { default as CheckboxContainer } from './OfferPanel/OfferCheckboxGroup/CheckboxContainer';
|
|
58
|
+
export { default as CookieModal } from './CookieModal/CookieModal';
|
|
59
|
+
export { default as ExpansionPanel } from './ExpansionPanel/ExpansionPanel';
|
|
60
|
+
|
|
61
|
+
// image-settings admin tooling (fe-main ImageSettingsPage only)
|
|
62
|
+
export * from './ImageSettings';
|
|
63
|
+
|
|
64
|
+
// ── md3 ADAPTERS (not verbatim legacy) — drop-in replacements for the deleted
|
|
65
|
+
// MUI form controls, rendering the md3 `.mfield`/Dropdown markup instead. ──
|
|
66
|
+
export { default as MdField } from './MdField/MdField';
|
|
67
|
+
export { default as MdSelect } from './MdSelect/MdSelect';
|
|
68
|
+
export { default as MdCheckbox } from './MdCheckbox/MdCheckbox';
|
|
69
|
+
export { default as MdTooltip } from './MdTooltip/MdTooltip';
|
|
70
|
+
export { default as MdTabs } from './MdTabs/MdTabs';
|
|
71
|
+
export { default as MdSwitch } from './MdSwitch/MdSwitch';
|
|
72
|
+
export { default as MdAccordionGroup } from './MdAccordionGroup/MdAccordionGroup';
|
|
73
|
+
export { default as Button } from './Button/Button';
|
|
74
|
+
export { default as Range } from './Range/Range';
|
|
75
|
+
// TimePicker is the legacy scheduling widget kept verbatim; its two inner
|
|
76
|
+
// selects now render through MdSelect (its only MUI dependency).
|
|
77
|
+
export { default as TimePicker } from './TimePicker/TimePicker';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@import './theme.styl'
|
|
2
|
+
|
|
3
|
+
// to prevent applying both "up" and "down" media queries
|
|
4
|
+
// when device width is equal to exact max-width && min-width value
|
|
5
|
+
// https://www.w3.org/TR/mediaqueries-4/#mq-min-max
|
|
6
|
+
// (keep in mind that solution from CSS spec is not yet widely supported)
|
|
7
|
+
// 0.02px offset is a solution from Bootstrap 4
|
|
8
|
+
$upperBoundOffset = 0.02
|
|
9
|
+
|
|
10
|
+
container(padding = false)
|
|
11
|
+
width: 100%
|
|
12
|
+
max-width: 1100px
|
|
13
|
+
margin: 0 auto
|
|
14
|
+
padding: 0
|
|
15
|
+
if padding
|
|
16
|
+
padding: 0 7.5px
|
|
17
|
+
box-sizing: border-box
|
|
18
|
+
|
|
19
|
+
truncate()
|
|
20
|
+
white-space nowrap
|
|
21
|
+
overflow hidden
|
|
22
|
+
-ms-text-overflow ellipsis
|
|
23
|
+
text-overflow ellipsis
|
|
24
|
+
|
|
25
|
+
borderRadius(color = rgba(#000, .1))
|
|
26
|
+
border-top: 1px solid color;
|
|
27
|
+
border-bottom: 1px solid color;
|
|
28
|
+
|
|
29
|
+
+media-phone-up()
|
|
30
|
+
border: 1px solid color;
|
|
31
|
+
border-radius: 2px;
|
|
32
|
+
|
|
33
|
+
strikethrough()
|
|
34
|
+
position absolute
|
|
35
|
+
content ''
|
|
36
|
+
top: 50%
|
|
37
|
+
left: 0
|
|
38
|
+
display: inline-block
|
|
39
|
+
width: 100%
|
|
40
|
+
height: 1px
|
|
41
|
+
background-color $grey-3
|
|
42
|
+
transform: rotate(170deg)
|
|
43
|
+
|
|
44
|
+
media-phone-up()
|
|
45
|
+
@media all and (min-width: $phoneMax )
|
|
46
|
+
{block}
|
|
47
|
+
|
|
48
|
+
media-phone-only()
|
|
49
|
+
@media all and (max-width: $phoneMax - $upperBoundOffset)
|
|
50
|
+
{block}
|
|
51
|
+
|
|
52
|
+
media-tablet-up()
|
|
53
|
+
@media all and (min-width: $tablet)// and (min-height: $tablet)// -- set mobile layout for high resolution in a landscape mode ACF-3974
|
|
54
|
+
{block}
|
|
55
|
+
|
|
56
|
+
media-tablet-up-rectangular()
|
|
57
|
+
@media all and (min-width: $tablet)
|
|
58
|
+
{block}
|
|
59
|
+
|
|
60
|
+
// media-tablet-down()
|
|
61
|
+
// @media all and (max-width: $tablet - $upperBoundOffset)
|
|
62
|
+
// {block}
|
|
63
|
+
media-tablet-down()
|
|
64
|
+
@media only screen and (max-device-width: $phoneMaxLandscape) and (max-device-height: $phoneMaxLandscape)
|
|
65
|
+
{block}
|
|
66
|
+
|
|
67
|
+
media-tablet-landscape-up()
|
|
68
|
+
@media all and (min-width: $tabletLandscape)
|
|
69
|
+
{block}
|
|
70
|
+
|
|
71
|
+
media-tablet-landscape-down()
|
|
72
|
+
@media all and (max-width: $tabletLandscape - $upperBoundOffset)
|
|
73
|
+
{block}
|
|
74
|
+
|
|
75
|
+
media-desktop-up()
|
|
76
|
+
@media all and (min-width: $desktop)
|
|
77
|
+
{block}
|
|
78
|
+
|
|
79
|
+
media-desktop-down()
|
|
80
|
+
@media all and (max-width: $desktop - $upperBoundOffset)
|
|
81
|
+
{block}
|
|
82
|
+
|
|
83
|
+
media-big-desktop-up()
|
|
84
|
+
@media all and (min-width: $desktopBig)
|
|
85
|
+
{block}
|
|
86
|
+
|
|
87
|
+
media-landscape()
|
|
88
|
+
@media (orientation: landscape)
|
|
89
|
+
{block}
|
|
90
|
+
|
|
91
|
+
media-portrait()
|
|
92
|
+
@media (orientation: portrait)
|
|
93
|
+
{block}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
$priceReviewColors = {
|
|
3
|
+
noRating: rgba(76, 78, 100, 0.22)
|
|
4
|
+
darkBackground: rgba(76, 78, 100, 0.22)
|
|
5
|
+
highPrice: rgba(226, 108, 0, 1)
|
|
6
|
+
increasedPrice: rgba(237, 157, 55, 1)
|
|
7
|
+
fairPrice: rgba(173, 208, 66, 1)
|
|
8
|
+
goodPrice: rgba(102, 212, 102, 1)
|
|
9
|
+
topPrice: rgba(31, 193, 31, 1)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Verbatim copy of the legacy fe-ui-core source/theme/slider.global.styl:
|
|
2
|
+
// the slick-carousel base + theme CSS the legacy slider components rely on.
|
|
3
|
+
// Imported from consumer .styl files (e.g. fe-landing VehiclePromoSlider.styl).
|
|
4
|
+
@import '~slick-carousel/slick/slick.css';
|
|
5
|
+
@import '~slick-carousel/slick/slick-theme.css';
|