@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,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
|
|
4
|
+
import { getFormattedPrice } from '../../utils/CommonUtils';
|
|
5
|
+
|
|
6
|
+
import styles from './RateSearchValue.styl';
|
|
7
|
+
|
|
8
|
+
interface IRateSearchValueProps {
|
|
9
|
+
t?: (phrase: string, options?: any) => string;
|
|
10
|
+
i18nPrefix?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
showLabel?: boolean;
|
|
13
|
+
|
|
14
|
+
monthlyInstallmentFrom?: any;
|
|
15
|
+
monthlyInstallmentTo?: any;
|
|
16
|
+
firstInstallment?: number;
|
|
17
|
+
paybackPeriod?: number;
|
|
18
|
+
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const RateSearchValue: React.FC<IRateSearchValueProps> = (props) => {
|
|
24
|
+
const { t, i18nPrefix, className, showLabel, onClick, monthlyInstallmentFrom, monthlyInstallmentTo, firstInstallment, paybackPeriod } = props;
|
|
25
|
+
const rowValues: any = { monthlyInstallmentFrom, monthlyInstallmentTo, firstInstallment, paybackPeriod };
|
|
26
|
+
const wrapperClassName = classnames(styles.RateSearchValue, className);
|
|
27
|
+
|
|
28
|
+
const transformValue = (name: string, value: any) => {
|
|
29
|
+
return Number(value) ? t(`${i18nPrefix}${name}Value`, { value: getFormattedPrice(Number(value), '$,.0f') }) : null;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const monthlyInstallmentValues = Number(monthlyInstallmentFrom) || Number(monthlyInstallmentTo)
|
|
33
|
+
? ['monthlyInstallmentFrom', 'monthlyInstallmentTo'].map((item: string) => transformValue(item, rowValues[item]))
|
|
34
|
+
: [t(`${i18nPrefix}any`)];
|
|
35
|
+
const otherValues = ['firstInstallment', 'paybackPeriod'].map((item: string) => transformValue(item, rowValues[item]));
|
|
36
|
+
const values = [...monthlyInstallmentValues, ...otherValues].filter((item: any) => !!item);
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<div onClick={onClick} className={wrapperClassName}>
|
|
40
|
+
{showLabel
|
|
41
|
+
? <strong className={styles.label}>{t(`${i18nPrefix}monthlyInstallmentLabel`)}</strong>
|
|
42
|
+
: null
|
|
43
|
+
}
|
|
44
|
+
<span>{values.length > 1 ? values.join(', ') : t(`${i18nPrefix}defaultValue`)}</span>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
RateSearchValue.defaultProps = {
|
|
50
|
+
t: (phrase: string) => phrase,
|
|
51
|
+
i18nPrefix: '',
|
|
52
|
+
showLabel: true
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default RateSearchValue;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@import '../legacy-theme/theme.styl'
|
|
2
|
+
|
|
3
|
+
.wrapper
|
|
4
|
+
position: relative
|
|
5
|
+
box-sizing: border-box
|
|
6
|
+
padding: 12px 18px
|
|
7
|
+
background-color: white
|
|
8
|
+
font-family: 'Arial Fett', 'Arial Standard', 'Arial'
|
|
9
|
+
border-radius: 10px
|
|
10
|
+
border: 1px solid $grey-e
|
|
11
|
+
width: 100%
|
|
12
|
+
box-shadow: 0px 2px 10px rgba(76, 78, 100, 0.22);
|
|
13
|
+
&:before
|
|
14
|
+
display: none
|
|
15
|
+
position: absolute
|
|
16
|
+
content: ''
|
|
17
|
+
background-color: white
|
|
18
|
+
width: 16px
|
|
19
|
+
height: 16px
|
|
20
|
+
transform: rotate(45deg)
|
|
21
|
+
|
|
22
|
+
:global
|
|
23
|
+
.react-select__control
|
|
24
|
+
height: auto !important
|
|
25
|
+
min-height: 36px !important
|
|
26
|
+
border-radius: 0 !important
|
|
27
|
+
|
|
28
|
+
.react-select__menu
|
|
29
|
+
.react-select__option.react-select__option--is-focused:not(.react-select__option--is-disabled)
|
|
30
|
+
background-color: $primary8
|
|
31
|
+
color: $grey-3
|
|
32
|
+
box-shadow: none
|
|
33
|
+
|
|
34
|
+
.react-select__option.react-select__option--is-selected:not(.react-select__option--is-disabled)
|
|
35
|
+
background-color: $skyBlue
|
|
36
|
+
color: white
|
|
37
|
+
|
|
38
|
+
.react-select__value-container
|
|
39
|
+
padding: 0 5px
|
|
40
|
+
|
|
41
|
+
.react-select__placeholder
|
|
42
|
+
color: $grey-ae
|
|
43
|
+
|
|
44
|
+
.header
|
|
45
|
+
display: flex
|
|
46
|
+
justify-content: space-between
|
|
47
|
+
align-items: center
|
|
48
|
+
// margin-bottom: 18px
|
|
49
|
+
font-size: 20px
|
|
50
|
+
& svg
|
|
51
|
+
cursor: pointer
|
|
52
|
+
|
|
53
|
+
.title
|
|
54
|
+
margin: 0
|
|
55
|
+
font-size: 14px
|
|
56
|
+
color: #4C4E64DE
|
|
57
|
+
line-height: 32px
|
|
58
|
+
|
|
59
|
+
.dropDownLabel
|
|
60
|
+
display: block;
|
|
61
|
+
width: 100%
|
|
62
|
+
margin-top: 16px
|
|
63
|
+
|
|
64
|
+
.caption
|
|
65
|
+
display: block
|
|
66
|
+
margin-bottom: 9px
|
|
67
|
+
font-size: 14px
|
|
68
|
+
font-weight: bold
|
|
69
|
+
|
|
70
|
+
.dropdown
|
|
71
|
+
margin-bottom: 20px
|
|
72
|
+
|
|
73
|
+
.actionsWrapper
|
|
74
|
+
margin-top: 16px;
|
|
75
|
+
display: flex
|
|
76
|
+
gap: 10px;
|
|
77
|
+
justify-content: space-evenly
|
|
78
|
+
align-items: center
|
|
79
|
+
|
|
80
|
+
.dropdownsWrap
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: 10px;
|
|
84
|
+
|
|
85
|
+
.applyButton
|
|
86
|
+
width: 96px
|
|
87
|
+
min-width: 96px
|
|
88
|
+
height: 30px
|
|
89
|
+
cursor: pointer
|
|
90
|
+
border-radius: 8px
|
|
91
|
+
box-sizing: border-box
|
|
92
|
+
|
|
93
|
+
.abortButton
|
|
94
|
+
display inline-block
|
|
95
|
+
margin-left: 15px
|
|
96
|
+
cursor: pointer
|
|
97
|
+
font-size: 13px;
|
|
98
|
+
line-height: 22px;
|
|
99
|
+
letter-spacing: 0.46px;
|
|
100
|
+
text-transform: capitalize;
|
|
101
|
+
color: #9E9E9E;
|
|
102
|
+
|
|
103
|
+
.twoColumnWrapper
|
|
104
|
+
display: flex
|
|
105
|
+
justify-content: space-between
|
|
106
|
+
align-items: flex-end
|
|
107
|
+
flex-wrap: wrap
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
|
|
4
|
+
import { FIRST_INSTALLMENT_FIX, MONTHLY_INSTALLMENT_FIX, PAYBACK_PERIOD_FIX } from '../../constants/RateSearchWidget';
|
|
5
|
+
|
|
6
|
+
import MaterialAutocomplete from '../MdSelect/MdSelect';
|
|
7
|
+
import Button from '../Button/Button';
|
|
8
|
+
import { numberWithDot } from '../../utils/CommonUtils';
|
|
9
|
+
import styles from './RateSearchWidget.styl';
|
|
10
|
+
|
|
11
|
+
interface IRateSearchWidgetProps {
|
|
12
|
+
t?: (phrase: string, options?: any) => string;
|
|
13
|
+
i18nPrefix?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
simpleMode?: boolean;
|
|
16
|
+
|
|
17
|
+
monthlyInstallmentFrom?: string | number;
|
|
18
|
+
monthlyInstallmentTo?: string | number;
|
|
19
|
+
firstInstallment?: number;
|
|
20
|
+
paybackPeriod?: number;
|
|
21
|
+
|
|
22
|
+
onAbort: () => void;
|
|
23
|
+
onApply: (state: any) => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface IRateSearchWidgetState {
|
|
27
|
+
monthlyInstallmentFrom?: string | number;
|
|
28
|
+
monthlyInstallmentTo?: string | number;
|
|
29
|
+
firstInstallment?: number;
|
|
30
|
+
paybackPeriod?: number;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class RateSearchWidget extends React.Component<IRateSearchWidgetProps, IRateSearchWidgetState> {
|
|
35
|
+
static readonly defaultProps = {
|
|
36
|
+
t: (phrase: string) => phrase,
|
|
37
|
+
i18nPrefix: '',
|
|
38
|
+
simpleMode: true
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
constructor(props: IRateSearchWidgetProps) {
|
|
42
|
+
super(props);
|
|
43
|
+
|
|
44
|
+
const { firstInstallment, monthlyInstallmentFrom, monthlyInstallmentTo, paybackPeriod } = props;
|
|
45
|
+
|
|
46
|
+
this.state = {
|
|
47
|
+
firstInstallment,
|
|
48
|
+
paybackPeriod,
|
|
49
|
+
monthlyInstallmentFrom: !!monthlyInstallmentFrom ? monthlyInstallmentFrom : 'any',
|
|
50
|
+
monthlyInstallmentTo: !!monthlyInstallmentTo ? monthlyInstallmentTo : 'any'
|
|
51
|
+
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
getFormattedLabel = (option: number | string, units?: string): React.ReactNode => {
|
|
56
|
+
const { t, i18nPrefix } = this.props;
|
|
57
|
+
if (Number.isFinite(+option)) {
|
|
58
|
+
return `${numberWithDot(option)} ${units ? ` ${units}` : false}`;
|
|
59
|
+
}
|
|
60
|
+
return t(`${i18nPrefix}${option}`);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
getValue = (value: any, units: string) => {
|
|
64
|
+
if (value === null || value === undefined) return null; // tslint:disable-line
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
value: `${value}`,
|
|
68
|
+
label: this.getFormattedLabel(value, units)
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
onDropDownChange = (name: string, value: any) => {
|
|
73
|
+
this.setState({ [name]: value });
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
onApplyClick = () => {
|
|
77
|
+
const { onApply } = this.props;
|
|
78
|
+
onApply(this.state);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
renderDropDowns = () => {
|
|
82
|
+
const { t, i18nPrefix, simpleMode } = this.props;
|
|
83
|
+
const dropdownConfig: any = {
|
|
84
|
+
monthlyInstallmentFrom: {
|
|
85
|
+
defaultValue: t(`${i18nPrefix}any`),
|
|
86
|
+
units: '€',
|
|
87
|
+
options: MONTHLY_INSTALLMENT_FIX,
|
|
88
|
+
disableClearable: true,
|
|
89
|
+
label: simpleMode ? '' : 'monthlyInstallment'
|
|
90
|
+
},
|
|
91
|
+
monthlyInstallmentTo: {
|
|
92
|
+
defaultValue: t(`${i18nPrefix}any`),
|
|
93
|
+
units: '€',
|
|
94
|
+
options: MONTHLY_INSTALLMENT_FIX,
|
|
95
|
+
disableClearable: true,
|
|
96
|
+
label: simpleMode ? 'monthlyInstallmentTo' : ''
|
|
97
|
+
},
|
|
98
|
+
firstInstallment: {
|
|
99
|
+
defaultValue: '0',
|
|
100
|
+
units: '€',
|
|
101
|
+
options: FIRST_INSTALLMENT_FIX,
|
|
102
|
+
disableClearable: true,
|
|
103
|
+
label: 'firstInstallment'
|
|
104
|
+
},
|
|
105
|
+
paybackPeriod: {
|
|
106
|
+
defaultValue: '60',
|
|
107
|
+
disableClearable: true,
|
|
108
|
+
units: t(`${i18nPrefix}months`),
|
|
109
|
+
options: PAYBACK_PERIOD_FIX,
|
|
110
|
+
label: 'paybackPeriod'
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const dropdowns = simpleMode
|
|
115
|
+
? ['monthlyInstallmentTo', 'firstInstallment', 'paybackPeriod']
|
|
116
|
+
: ['monthlyInstallmentFrom', 'monthlyInstallmentTo', 'firstInstallment', 'paybackPeriod'];
|
|
117
|
+
|
|
118
|
+
return dropdowns.map((name: string) => {
|
|
119
|
+
const { defaultValue, units, options, label, ...rest } = dropdownConfig[name];
|
|
120
|
+
|
|
121
|
+
const dropDownProps = {
|
|
122
|
+
size: 'custom',
|
|
123
|
+
value: this.state[name] === 'any' ? t(`${i18nPrefix}${this.state[name]}`) : numberWithDot(this.state[name]),
|
|
124
|
+
label: t(`${i18nPrefix}${name}Placeholder`),
|
|
125
|
+
items: options.map((value: any) => this.getValue(value, units)),
|
|
126
|
+
onChange: (value: any) => this.onDropDownChange(name, value),
|
|
127
|
+
...rest
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return (
|
|
131
|
+
<label key={name} className={styles.dropDownLabel}>
|
|
132
|
+
{/* <strong className={styles.caption}>{label ? t(`${i18nPrefix}${label}`) : ''}</strong> */}
|
|
133
|
+
<MaterialAutocomplete {...dropDownProps} />
|
|
134
|
+
</label>
|
|
135
|
+
);
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
render() {
|
|
140
|
+
const { t, i18nPrefix, simpleMode, className, onAbort } = this.props;
|
|
141
|
+
const wrapperClassName = classnames(styles.wrapper, className);
|
|
142
|
+
|
|
143
|
+
return (
|
|
144
|
+
<div className={wrapperClassName}>
|
|
145
|
+
<div className={styles.header}>
|
|
146
|
+
<h3 className={styles.title}>{t(`${i18nPrefix}title`)}</h3>
|
|
147
|
+
{/* <div onClick={onAbort}>
|
|
148
|
+
<IconSVG name='deleteCircle' customDimensions />
|
|
149
|
+
</div> */}
|
|
150
|
+
</div>
|
|
151
|
+
<div className={classnames(styles.dropdownsWrap, { [styles.twoColumnWrapper]: !simpleMode })}>
|
|
152
|
+
{this.renderDropDowns()}
|
|
153
|
+
</div>
|
|
154
|
+
<div className={styles.actionsWrapper}>
|
|
155
|
+
<span onClick={onAbort} className={styles.abortButton}>{t(`${i18nPrefix}abort`)}</span>
|
|
156
|
+
<Button color='primary' onClick={this.onApplyClick} className={styles.applyButton}>{t(`${i18nPrefix}apply`)}</Button>
|
|
157
|
+
</div>
|
|
158
|
+
</div >
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export default RateSearchWidget;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import '../legacy-theme/mixins.styl'
|
|
2
|
+
|
|
3
|
+
.container
|
|
4
|
+
display flex
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
+media-phone-only()
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
padding: 17px 0
|
|
10
|
+
align-items: center;
|
|
11
|
+
|
|
12
|
+
& + &
|
|
13
|
+
border-top: 1px solid rgba(196, 196, 196, 0.3);
|
|
14
|
+
|
|
15
|
+
.icon
|
|
16
|
+
margin 0 auto
|
|
17
|
+
width: 64px
|
|
18
|
+
height: 64px
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
|
|
21
|
+
+media-phone-only()
|
|
22
|
+
width: 82px
|
|
23
|
+
height: 82px
|
|
24
|
+
order: 3;
|
|
25
|
+
margin-left: auto;
|
|
26
|
+
margin-left: 30px;
|
|
27
|
+
|
|
28
|
+
.title
|
|
29
|
+
font-size: 16px
|
|
30
|
+
margin-top: 15px;
|
|
31
|
+
margin-bottom: 10px
|
|
32
|
+
text-align center
|
|
33
|
+
color: $grey-3a;
|
|
34
|
+
+media-phone-only()
|
|
35
|
+
margin-top: 0;
|
|
36
|
+
text-align: left
|
|
37
|
+
|
|
38
|
+
.textContent
|
|
39
|
+
line-height: 20px
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
text-align: justify;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
color: $grey-54;
|
|
44
|
+
|
|
45
|
+
+media-phone-only()
|
|
46
|
+
max-width: 246px;
|
|
47
|
+
margin 0
|
|
48
|
+
line-height: 14px;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import styles from './ServiceBlockItem.styl';
|
|
3
|
+
|
|
4
|
+
import IconSVG from '../../iconsvg/IconSVG';
|
|
5
|
+
|
|
6
|
+
interface IInfoBlockItemProps {
|
|
7
|
+
iconSrc?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
content?: string;
|
|
10
|
+
iconBgColor?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const ServiceBlockItem: React.FunctionComponent<IInfoBlockItemProps> = ({ iconSrc, title, content }) => {
|
|
14
|
+
return(
|
|
15
|
+
<div className={styles.container}>
|
|
16
|
+
<IconSVG name={iconSrc} className={styles.icon} customDimensions />
|
|
17
|
+
<div className={styles.content}>
|
|
18
|
+
<h3 className={styles.title}>{title}</h3>
|
|
19
|
+
<p className={styles.textContent}>{content}</p>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default ServiceBlockItem;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@import '../legacy-theme/theme.styl'
|
|
2
|
+
|
|
3
|
+
[class*='MuiSkeleton-rectangular']
|
|
4
|
+
height: inherit !important
|
|
5
|
+
|
|
6
|
+
.vehicle
|
|
7
|
+
background-color #fff
|
|
8
|
+
border-radius: 3px;
|
|
9
|
+
position: relative
|
|
10
|
+
&:before
|
|
11
|
+
content: ''
|
|
12
|
+
position: absolute
|
|
13
|
+
left: 0
|
|
14
|
+
right: 0
|
|
15
|
+
bottom: 0
|
|
16
|
+
top: 0
|
|
17
|
+
z-index: 222
|
|
18
|
+
border: 1px solid #e8e8e8
|
|
19
|
+
|
|
20
|
+
.infoSection
|
|
21
|
+
display: flex
|
|
22
|
+
align-items: center
|
|
23
|
+
padding: 7px 6px
|
|
24
|
+
|
|
25
|
+
.circle
|
|
26
|
+
margin-left: auto
|
|
27
|
+
width: 22px
|
|
28
|
+
height: 22px
|
|
29
|
+
|
|
30
|
+
.circleMin
|
|
31
|
+
flex-shrink: 0
|
|
32
|
+
width: 16px
|
|
33
|
+
height: 16px
|
|
34
|
+
margin-right: 10px
|
|
35
|
+
|
|
36
|
+
.figure
|
|
37
|
+
height: 193px
|
|
38
|
+
@media (max-width: 575.98px)
|
|
39
|
+
height: 65vw
|
|
40
|
+
|
|
41
|
+
.vehicleData
|
|
42
|
+
display: flex
|
|
43
|
+
|
|
44
|
+
.vehicleInfo
|
|
45
|
+
width: 112px
|
|
46
|
+
box-sizing: border-box
|
|
47
|
+
padding: 9px 7px 14px 11px
|
|
48
|
+
flex-shrink: 0
|
|
49
|
+
|
|
50
|
+
@media (max-width: 575.98px)
|
|
51
|
+
width: 50%
|
|
52
|
+
|
|
53
|
+
.vehiclePriceSection
|
|
54
|
+
padding: 13px 12px 12px 8px
|
|
55
|
+
border-left: 1px solid #d7d7d7
|
|
56
|
+
width: 100%
|
|
57
|
+
|
|
58
|
+
@media (max-width: 575.98px)
|
|
59
|
+
width: 50%
|
|
60
|
+
|
|
61
|
+
.carProp
|
|
62
|
+
height: 35px
|
|
63
|
+
display: flex
|
|
64
|
+
align-items: center
|
|
65
|
+
border-bottom: 1px solid #d7d7d7
|
|
66
|
+
|
|
67
|
+
.carPropLast
|
|
68
|
+
border-bottom: 0
|
|
69
|
+
|
|
70
|
+
.carPropLastItem
|
|
71
|
+
width: 90%
|
|
72
|
+
margin: 0 auto
|
|
73
|
+
|
|
74
|
+
.priceItem
|
|
75
|
+
display: flex
|
|
76
|
+
height: 40px
|
|
77
|
+
justify-content: space-between
|
|
78
|
+
align-items: center
|
|
79
|
+
|
|
80
|
+
.seoText
|
|
81
|
+
padding: 10px
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import Skeleton from '../../ui/Skeleton';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import styled from './SkeletonItem.styl';
|
|
6
|
+
|
|
7
|
+
export interface ISkeletonItem {
|
|
8
|
+
className?: string;
|
|
9
|
+
animation?: 'pulse' | 'wave' | false;
|
|
10
|
+
variant?: 'text' | 'rectangular' | 'circular';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const SkeletonItem: React.FC<ISkeletonItem> = ({ animation }) => {
|
|
14
|
+
return (
|
|
15
|
+
<div className={styled.vehicle}>
|
|
16
|
+
<div className={styled.infoSection}>
|
|
17
|
+
<Skeleton animation={animation} variant='text' width={'80%'} />
|
|
18
|
+
<Skeleton animation={animation} variant='circular' className={styled.circle} />
|
|
19
|
+
</div>
|
|
20
|
+
<div className={styled.figure}>
|
|
21
|
+
<Skeleton animation={animation} variant='rectangular' className={styled.root} />
|
|
22
|
+
</div>
|
|
23
|
+
<div className={styled.vehicleData}>
|
|
24
|
+
<div className={styled.vehicleInfo}>
|
|
25
|
+
<div className={styled.carProp}>
|
|
26
|
+
<Skeleton animation={animation} variant='circular' className={styled.circleMin} />
|
|
27
|
+
<Skeleton animation={animation} variant='text' width={'100%'} />
|
|
28
|
+
</div>
|
|
29
|
+
<div className={styled.carProp}>
|
|
30
|
+
<Skeleton animation={animation} variant='circular' className={styled.circleMin} />
|
|
31
|
+
<Skeleton animation={animation} variant='text' width={'100%'} />
|
|
32
|
+
</div>
|
|
33
|
+
<div className={styled.carProp}>
|
|
34
|
+
<Skeleton animation={animation} variant='circular' className={styled.circleMin} />
|
|
35
|
+
<Skeleton animation={animation} variant='text' width={'100%'} />
|
|
36
|
+
</div>
|
|
37
|
+
<div className={styled.carProp}>
|
|
38
|
+
<Skeleton animation={animation} variant='circular' className={styled.circleMin} />
|
|
39
|
+
<Skeleton animation={animation} variant='text' width={'100%'} />
|
|
40
|
+
</div>
|
|
41
|
+
<div className={clsx(styled.carProp, styled.carPropLast)}>
|
|
42
|
+
<Skeleton animation={animation} variant='text' className={styled.carPropLastItem} />
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div className={styled.vehiclePriceSection}>
|
|
47
|
+
<Skeleton animation={animation} variant='text' width={'50%'} />
|
|
48
|
+
<div className={styled.priceItem}>
|
|
49
|
+
<Skeleton animation={animation} variant='text' width={'70%'} />
|
|
50
|
+
<Skeleton animation={animation} variant='circular' className={styled.circle} />
|
|
51
|
+
</div>
|
|
52
|
+
<div className={styled.priceItem}>
|
|
53
|
+
<Skeleton animation={animation} variant='text' width={'70%'} />
|
|
54
|
+
<Skeleton animation={animation} variant='circular' className={styled.circle} />
|
|
55
|
+
</div>
|
|
56
|
+
<div className={styled.priceItem}>
|
|
57
|
+
<Skeleton animation={animation} variant='text' width={'70%'} />
|
|
58
|
+
<Skeleton animation={animation} variant='circular' className={styled.circle} />
|
|
59
|
+
</div>
|
|
60
|
+
<div className={styled.priceItem}>
|
|
61
|
+
<Skeleton animation={animation} variant='text' width={'70%'} />
|
|
62
|
+
<Skeleton animation={animation} variant='circular' className={styled.circle} />
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div className={styled.seoText}>
|
|
67
|
+
<Skeleton animation={animation} variant='text' width={'100%'} />
|
|
68
|
+
<Skeleton animation={animation} variant='text' width={'95%'} />
|
|
69
|
+
<Skeleton animation={animation} variant='text' width={'90%'} />
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
SkeletonItem.defaultProps = {
|
|
76
|
+
animation: 'wave',
|
|
77
|
+
variant: 'rectangular'
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export default SkeletonItem;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import '../legacy-theme/mixins.styl'
|
|
2
|
+
|
|
3
|
+
.parking
|
|
4
|
+
position: relative
|
|
5
|
+
display: flex
|
|
6
|
+
justify-content: center
|
|
7
|
+
align-items: center
|
|
8
|
+
height: 28px
|
|
9
|
+
width: 28px
|
|
10
|
+
padding: 10px
|
|
11
|
+
|
|
12
|
+
.userButton
|
|
13
|
+
display: inline-block
|
|
14
|
+
font-size: 22px
|
|
15
|
+
cursor: pointer
|
|
16
|
+
background-size: cover
|
|
17
|
+
|
|
18
|
+
.userButton.favorite
|
|
19
|
+
fill: white
|
|
20
|
+
stroke: $skyBlue
|
|
21
|
+
stroke-width: 5px
|
|
22
|
+
&.active
|
|
23
|
+
fill: $skyBlue
|
|
24
|
+
|
|
25
|
+
.userButton.favorite:hover
|
|
26
|
+
fill: $skyBlue
|
|
27
|
+
|
|
28
|
+
.count
|
|
29
|
+
position: absolute
|
|
30
|
+
top: 3px
|
|
31
|
+
left: 30px
|
|
32
|
+
z-index: $zIndex-fixed
|
|
33
|
+
padding: 3px 6px
|
|
34
|
+
border-radius: 50%
|
|
35
|
+
background-color: $primary
|
|
36
|
+
font-family: 'Arial-BoldMT', 'Arial Bold', 'Arial'
|
|
37
|
+
font-weight: 700
|
|
38
|
+
font-size: 10px
|
|
39
|
+
color: white
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
|
|
4
|
+
import IconSVG from '../../iconsvg/IconSVG';
|
|
5
|
+
|
|
6
|
+
import styles from './StarButton.styl';
|
|
7
|
+
|
|
8
|
+
interface IStarButton {
|
|
9
|
+
className?: string;
|
|
10
|
+
amountOfFavorite?: number;
|
|
11
|
+
isFavorite?: boolean;
|
|
12
|
+
customContainer?: string;
|
|
13
|
+
|
|
14
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const StarButton: React.FunctionComponent<IStarButton> = ({ onClick, amountOfFavorite, className, isFavorite, customContainer }) => {
|
|
18
|
+
const classContainer = classnames(className, { [styles.parking]: amountOfFavorite });
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div className={customContainer ? customContainer : classContainer }>
|
|
22
|
+
<IconSVG name='star'
|
|
23
|
+
className={classnames(styles.userButton, styles.favorite, { [styles.active]: isFavorite })}
|
|
24
|
+
onClick={onClick}
|
|
25
|
+
customDimensions />
|
|
26
|
+
{amountOfFavorite ? <span className={styles.count}>{amountOfFavorite}</span> : false}
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default StarButton;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface ITabPanelProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
index: any;
|
|
7
|
+
value: any;
|
|
8
|
+
}
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
export default function TabPanel(props: ITabPanelProps) {
|
|
11
|
+
const { children, value, index, className, ...other } = props;
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div
|
|
15
|
+
role='tabpanel'
|
|
16
|
+
className={className}
|
|
17
|
+
hidden={value !== index}
|
|
18
|
+
id={`simple-tabpanel-${index}`}
|
|
19
|
+
aria-labelledby={`simple-tab-${index}`}
|
|
20
|
+
{...other}
|
|
21
|
+
>
|
|
22
|
+
{value === index && (
|
|
23
|
+
<>
|
|
24
|
+
{children}
|
|
25
|
+
</>
|
|
26
|
+
)}
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.wrapper
|
|
2
|
+
display: grid
|
|
3
|
+
grid-column-gap: 16px
|
|
4
|
+
grid-template-areas: 'day time'
|
|
5
|
+
grid-template-columns: repeat(2, 1fr);
|
|
6
|
+
|
|
7
|
+
.dayForm
|
|
8
|
+
grid-area: day;
|
|
9
|
+
width: 100%
|
|
10
|
+
[class*='MuiSelect-select']
|
|
11
|
+
padding-right: 0 !important
|
|
12
|
+
|
|
13
|
+
.timeForm
|
|
14
|
+
grid-area: time;
|
|
15
|
+
width: 100%
|
|
16
|
+
[class*='MuiSelect-select']
|
|
17
|
+
padding-right: 0 !important
|
|
18
|
+
|
|
19
|
+
.selectIcon
|
|
20
|
+
width: 21px
|
|
21
|
+
height: auto
|
|
22
|
+
max-width: none !important
|
|
23
|
+
padding-right: 10px
|