@bytebrand/fe-ui-core 4.8.26 → 4.8.27
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/.editorconfig +10 -10
- package/.husky/pre-push +4 -4
- package/.storybook/addons.js +4 -4
- package/.storybook/config.js +64 -64
- package/.storybook/postcss.config.js +6 -6
- package/.storybook/preview-head.html +9 -9
- package/.storybook/webpack.config.js +130 -130
- package/__tests__/components/Checkout/OrderOverviewItem/OrderOverviewItem.test.tsx +42 -42
- package/__tests__/components/Checkout/PaymentTypeCard/PaymentTypeCard.test.tsx +49 -49
- package/__tests__/components/Checkout/RadioGroup.test.tsx +95 -95
- package/__tests__/components/Checkout/ServiceCardWrapper.test.tsx +53 -53
- package/__tests__/components/Checkout/Switcher.test.tsx +43 -43
- package/__tests__/components/UserDasboardPage/sections/CheckoutSection/CheckoutSection.test.tsx +613 -613
- package/__tests__/components/UserDasboardPage/sections/FavoriteSection/FavoriteSection.test.tsx +335 -335
- package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/AdditionalOrderInfo.test.tsx +127 -127
- package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCar.test.tsx +58 -58
- package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCard.test.tsx +74 -74
- package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusSection.test.tsx +62 -62
- package/__tests__/components/UserDasboardPage/sections/RequestedCarsSection/RequestedCarsSection.test.tsx +117 -117
- package/__tests__/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.test.tsx +58 -58
- package/__tests__/components/VehicleSmallCard/VehicleInfo.test.tsx +87 -87
- package/__tests__/components/VehicleSmallCard/VehicleTitle.test.tsx +90 -90
- package/__tests__/components/_common/Badge/Badge.test.tsx +15 -15
- package/__tests__/components/_common/IconSVG/IconSVG.test.tsx +22 -22
- package/__tests__/components/_common/Image/Image.test.tsx +82 -82
- package/__tests__/components/_common/MaterialAutocomplete/MaterialAutocomplete.test.tsx +48 -48
- package/__tests__/components/_common/MaterialDatePicker/MaterialDatePicker.test.tsx +54 -54
- package/__tests__/components/_common/MaterialField/MaterialField.test.tsx +58 -58
- package/__tests__/components/_common/StarButton/StarButton.test.tsx +45 -45
- package/__tests__/mockedData/financingConfig.js +201 -201
- package/__tests__/mockedData/mockedPendingRequestedCar.js +68 -68
- package/__tests__/utils/CommonUtils/addPrefixToKeys.test.ts +18 -18
- package/__tests__/utils/CommonUtils/arrToObj.test.js +32 -32
- package/__tests__/utils/CommonUtils/checkRangeValuesOnEqual.test.ts +16 -16
- package/__tests__/utils/CommonUtils/fixNumber.test.ts +19 -19
- package/__tests__/utils/CommonUtils/formatMileage.test.ts +8 -8
- package/__tests__/utils/CommonUtils/getChipFilterValue.test.ts +22 -22
- package/__tests__/utils/CommonUtils/getFormattedNumber.test.ts +18 -18
- package/__tests__/utils/CommonUtils/getFormattedPrice.test.ts +19 -19
- package/__tests__/utils/CommonUtils/getGroupValuesForQuery.test.ts +51 -51
- package/__tests__/utils/CommonUtils/getOfferSliders.test.ts +63 -63
- package/__tests__/utils/CommonUtils/getPriceRating.test.ts +26 -26
- package/__tests__/utils/CommonUtils/getPriceRatingConfig.test.ts +33 -33
- package/__tests__/utils/CommonUtils/preloadNearbyImages.test.ts +8 -8
- package/__tests__/utils/CommonUtils/sliceLessThan.test.ts +23 -23
- package/__tests__/utils/CommonUtils/sliceMoreThan.test.ts +23 -23
- package/common.ts +164 -164
- package/feWpComponents.ts +25 -25
- package/index.ts +4 -4
- package/jest.config.js +43 -43
- package/landing.ts +38 -38
- package/media/images/advantages/advantage_cart.svg +4 -4
- package/media/images/advantages/advantage_check.svg +4 -4
- package/media/images/advantages/advantage_like.svg +10 -10
- package/media/images/advantages/advantage_secure.svg +6 -6
- package/media/images/check-blue.svg +40 -40
- package/media/images/raiting-star.svg +3 -3
- package/media/images/raiting-stars-min.svg +7 -7
- package/media/images/refresh-button.svg +49 -49
- package/media/images/slider-arrow-big.svg +11 -11
- package/media/images/user-icon.svg +16 -16
- package/media/locales/de/promoSlider.json +25 -25
- package/media/locales/en/promoSlider.json +25 -25
- package/media/svg/common/arrow_breadcrumps.svg +3 -3
- package/media/svg/common/home.svg +8 -8
- package/media/svg/common/whyAutodeIconSet-F.svg +9 -9
- package/media/svg/common/whyAutodeIconSet-G.svg +8 -8
- package/media/svg/common/whyAutodeIconSet-Q.svg +6 -6
- package/media/svg/common/whyAutodeIconSet-R.svg +9 -9
- package/media/svg/infoBlocks/whyAutodeIconSet-F.svg +9 -9
- package/media/svg/infoBlocks/whyAutodeIconSet-G.svg +8 -8
- package/media/svg/infoBlocks/whyAutodeIconSet-Q.svg +6 -6
- package/media/svg/infoBlocks/whyAutodeIconSet-R.svg +9 -9
- package/media/svg/usp/icon1.svg +16 -16
- package/media/svg/usp/icon2.svg +13 -13
- package/media/svg/usp/icon3.svg +10 -10
- package/media/svg/usp/icon4.svg +14 -14
- package/package.json +117 -118
- package/profile.ts +1 -1
- package/setupTests.js +7 -7
- package/source/components/AccardionSection/AccardionSection.styl +45 -45
- package/source/components/AccardionSection/AccardionSection.tsx +56 -56
- package/source/components/AccordionWidget/AccordionWidget.styl +208 -208
- package/source/components/AccordionWidget/AccordionWidget.tsx +216 -216
- package/source/components/AdvantageItem/AdvantageItem.story.js +23 -23
- package/source/components/AdvantageItem/AdvantageItem.styl +47 -47
- package/source/components/AdvantageItem/AdvantageItem.tsx +26 -26
- package/source/components/Alternative/Dealer.story.js +31 -31
- package/source/components/Alternative/Dealer.story.styl +2 -2
- package/source/components/Alternative/DealerInfo.styl +116 -116
- package/source/components/Alternative/DealerInfo.tsx +171 -171
- package/source/components/Breadcrumbs/Breadcrumbs.story.js +40 -40
- package/source/components/Breadcrumbs/Breadcrumbs.styl +136 -136
- package/source/components/Breadcrumbs/Breadcrumbs.tsx +93 -93
- package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.story.js +45 -45
- package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.styl +54 -54
- package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.tsx +17 -17
- package/source/components/Checkout/CheckoutStepper/CheckoutStepper.styl +34 -34
- package/source/components/Checkout/CheckoutStepper/CheckoutStepper.tsx +69 -69
- package/source/components/Checkout/CheckoutStepper/CheckoutStepperClasses.js +173 -173
- package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.js +243 -243
- package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.styl +20 -20
- package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.styl +36 -36
- package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.tsx +53 -53
- package/source/components/Checkout/RadioCards/AdditionalServiceCard/ServiceCardWrapper.styl +201 -201
- package/source/components/Checkout/RadioCards/AdditionalServiceCard/ServiceCardWrapper.tsx +212 -212
- package/source/components/Checkout/RadioCards/ContentCard/AdditionalServiceContent.styl +30 -30
- package/source/components/Checkout/RadioCards/ContentCard/AdditionalServiceContent.tsx +62 -62
- package/source/components/Checkout/RadioCards/ContentCard/VehicleDeliveryContent.styl +73 -73
- package/source/components/Checkout/RadioCards/ContentCard/VehicleDeliveryContent.tsx +61 -61
- package/source/components/Checkout/RadioCards/PaymentTypeCard/PaymentTypeCard.styl +193 -193
- package/source/components/Checkout/RadioCards/PaymentTypeCard/PaymentTypeCard.tsx +181 -181
- package/source/components/Checkout/RadioCards/RadioCheckout.styl +158 -158
- package/source/components/Checkout/RadioCards/RadioCheckout.tsx +178 -178
- package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.js +105 -105
- package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.styl +37 -37
- package/source/components/Checkout/Switcher/Switcher.story.js +41 -41
- package/source/components/Checkout/Switcher/Switcher.story.styl +1 -1
- package/source/components/Checkout/Switcher/Switcher.styled.tsx +53 -53
- package/source/components/Checkout/Switcher/Switcher.tsx +48 -48
- package/source/components/CompactSearchWidget/CompactSearchFields/CompactSearchFields.styl +176 -176
- package/source/components/CompactSearchWidget/CompactSearchFields/CompactSearchFields.tsx +477 -477
- package/source/components/CompactSearchWidget/CompactSearchWidget.story.js +187 -187
- package/source/components/CompactSearchWidget/CompactSearchWidget.styl +43 -43
- package/source/components/CompactSearchWidget/CompactSearchWidget.tsx +165 -165
- package/source/components/ContactForm/ContactForm.story.js +93 -93
- package/source/components/ContactForm/ContactForm.styl +260 -260
- package/source/components/ContactForm/ContactForm.tsx +588 -588
- package/source/components/ContactForm/WpContactForm.tsx +287 -287
- package/source/components/ContactInfo/ContactInfo.story.js +58 -58
- package/source/components/ContactInfo/ContactInfo.styl +22 -22
- package/source/components/ContactInfo/ContactInfo.tsx +161 -161
- package/source/components/ContactInfo/TemporaryTranslation.ts +11 -11
- package/source/components/CustomerQuote/CustomerQuote.story.js +41 -41
- package/source/components/CustomerQuote/CustomerQuote.styl +79 -79
- package/source/components/CustomerQuote/CustomerQuote.tsx +68 -68
- package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.js +73 -73
- package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.styl +4 -4
- package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.styl +46 -46
- package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.tsx +79 -79
- package/source/components/CustomerQuotesSlider/SliderArrow.tsx +20 -20
- package/source/components/FormattedNumber/FormattedNumber.story.js +114 -114
- package/source/components/FormattedNumber/FormattedNumber.styl +1 -1
- package/source/components/FormattedNumber/FormattedNumber.tsx +90 -90
- package/source/components/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.styl +7 -7
- package/source/components/ImageSettings/EditableOptionsTable/CustomCheckbox/CustomCheckbox.tsx +30 -30
- package/source/components/ImageSettings/EditableOptionsTable/EditableOptionsTable.styl +122 -122
- package/source/components/ImageSettings/EditableOptionsTable/EditableOptionsTable.tsx +199 -199
- package/source/components/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.styl +3 -3
- package/source/components/ImageSettings/EditableOptionsTable/ImageIcon/ImageIcon.tsx +15 -15
- package/source/components/ImageSettings/OptionsTable/OptionsTable.styl +47 -47
- package/source/components/ImageSettings/OptionsTable/OptionsTable.tsx +122 -122
- package/source/components/ImageSettings/PricePlan/PricePlan.styl +63 -63
- package/source/components/ImageSettings/PricePlan/PricePlan.tsx +32 -32
- package/source/components/ImageSettings/index.ts +42 -42
- package/source/components/ImageSettings/story.js +1212 -1212
- package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlock.styl +33 -33
- package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlock.tsx +48 -48
- package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.styl +66 -66
- package/source/components/InfoBlocks/FirstInfoBlock/FirstInfoBlockItem/FirstInfoBlockItem.tsx +21 -21
- package/source/components/InfoBlocks/InfoBlockWrapper/InfoBlockWrapper.styl +41 -41
- package/source/components/InfoBlocks/InfoBlockWrapper/InfoBlockWrapper.tsx +45 -45
- package/source/components/InfoBlocks/InfoBlockWrapper.story.js +101 -101
- package/source/components/InfoBlocks/InfoBlockWrapper.story.styl +45 -45
- package/source/components/InfoBlocks/PricingToolBlock/PricingTool.styl +6 -6
- package/source/components/InfoBlocks/PricingToolBlock/PricingTool.tsx +29 -29
- package/source/components/InfoBlocks/PricingToolBlock/PricingToolBlock.styl +45 -45
- package/source/components/InfoBlocks/PricingToolBlock/PricingToolBlock.tsx +81 -81
- package/source/components/InfoBlocks/ServicesBlock/ServiceBlockItem.styl +47 -47
- package/source/components/InfoBlocks/ServicesBlock/ServiceBlockItem.tsx +25 -25
- package/source/components/OfferDetailedSection/OfferDetailedSection.styl +31 -31
- package/source/components/OfferDetailedSection/OfferDetailedSection.tsx +100 -100
- package/source/components/OfferDetailedSection/partials/PanelConfig.styl +131 -131
- package/source/components/OfferDetailedSection/partials/PanelConfig.tsx +121 -121
- package/source/components/OfferPanel/AboAccordion/AboAccordion.styl +24 -24
- package/source/components/OfferPanel/AboAccordion/AboAccordion.tsx +128 -128
- package/source/components/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.styl +11 -11
- package/source/components/OfferPanel/AboAccordion/AboColorOptions/AboColorOptions.tsx +35 -35
- package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.story.js +97 -97
- package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.styl +20 -20
- package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.tsx +25 -25
- package/source/components/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.styl +13 -13
- package/source/components/OfferPanel/AboAccordion/AboIncludedServices/AboIncludedServices.tsx +39 -39
- package/source/components/OfferPanel/MuiOfferPeriod/MuiOfferPeriod.theme.tsx +25 -25
- package/source/components/OfferPanel/MuiOfferPeriod/MuiOfferPeriod.tsx +73 -73
- package/source/components/OfferPanel/OfferCheckboxGroup/CheckboxContainer.tsx +140 -140
- package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +120 -120
- package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.tsx +24 -24
- package/source/components/OfferPanel/OfferPanel.story.js +139 -139
- package/source/components/OfferPanel/OfferPanel.styl +193 -193
- package/source/components/OfferPanel/OfferPanel.tsx +81 -81
- package/source/components/OfferPanel/OfferPeriod/OfferPeriod.styl +24 -24
- package/source/components/OfferPanel/OfferPeriod/OfferPeriod.tsx +45 -45
- package/source/components/OfferPanel/RangeGroup/RangeGroup.story.js +35 -35
- package/source/components/OfferPanel/RangeGroup/RangeGroup.story.styl +2 -2
- package/source/components/OfferPanel/RangeGroup/RangeGroup.tsx +39 -39
- package/source/components/PriceRating/PriceRating.story.js +39 -39
- package/source/components/PriceRating/PriceRating.story.styl +1 -1
- package/source/components/PriceRating/PriceRating.styl +47 -47
- package/source/components/PriceRating/PriceRating.tsx +64 -64
- package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.js +78 -78
- package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.styl +11 -11
- package/source/components/PriceRatingDetailed/PriceRatingDetailed.styl +120 -120
- package/source/components/PriceRatingDetailed/PriceRatingDetailed.tsx +191 -191
- package/source/components/RateSearchValue/RateSearchValue.story.js +78 -78
- package/source/components/RateSearchValue/RateSearchValue.story.styl +1 -1
- package/source/components/RateSearchValue/RateSearchValue.styl +22 -22
- package/source/components/RateSearchValue/RateSearchValue.tsx +55 -55
- package/source/components/RateSearchWidget/RateSearchWidget.story.js +57 -57
- package/source/components/RateSearchWidget/RateSearchWidget.story.styl +12 -12
- package/source/components/RateSearchWidget/RateSearchWidget.styl +106 -106
- package/source/components/RateSearchWidget/RateSearchWidget.tsx +163 -163
- package/source/components/SearchFilters/FiltersFactory.story.js +273 -273
- package/source/components/SearchFilters/FiltersFactory.tsx +85 -85
- package/source/components/SearchFilters/Slider.styl +66 -66
- package/source/components/SearchFilters/common/Color/Color.styl +29 -29
- package/source/components/SearchFilters/common/Color/Color.tsx +60 -60
- package/source/components/SearchFilters/common/FilterBlock/FilterBlock.styl +39 -39
- package/source/components/SearchFilters/common/FilterBlock/FilterBlock.styled.tsx +28 -28
- package/source/components/SearchFilters/common/FilterBlock/FilterBlock.tsx +54 -54
- package/source/components/SearchFilters/common/FilterBlock/FilterBlockFactory.tsx +151 -151
- package/source/components/SearchFilters/common/RangeControlled/RangeControlled.tsx +155 -155
- package/source/components/SearchFilters/filters/AlternativeID.styl +98 -98
- package/source/components/SearchFilters/filters/AlternativeID.tsx +67 -67
- package/source/components/SearchFilters/filters/Consumption.styl +41 -41
- package/source/components/SearchFilters/filters/Consumption.tsx +52 -52
- package/source/components/SearchFilters/filters/Cost.styl +43 -43
- package/source/components/SearchFilters/filters/Cost.tsx +112 -112
- package/source/components/SearchFilters/filters/CubicCapacity.styl +30 -30
- package/source/components/SearchFilters/filters/CubicCapacity.tsx +134 -134
- package/source/components/SearchFilters/filters/Damaged.styl +1 -1
- package/source/components/SearchFilters/filters/Damaged.tsx +40 -40
- package/source/components/SearchFilters/filters/Doors.styl +18 -18
- package/source/components/SearchFilters/filters/Doors.tsx +113 -113
- package/source/components/SearchFilters/filters/DriveType.styl +22 -22
- package/source/components/SearchFilters/filters/DriveType.tsx +72 -72
- package/source/components/SearchFilters/filters/EmissionClass.tsx +35 -35
- package/source/components/SearchFilters/filters/EmissionSticker.styl +46 -46
- package/source/components/SearchFilters/filters/EmissionSticker.tsx +52 -52
- package/source/components/SearchFilters/filters/FirstRegistration.tsx +96 -96
- package/source/components/SearchFilters/filters/Fuel.styl +27 -27
- package/source/components/SearchFilters/filters/Fuel.tsx +75 -75
- package/source/components/SearchFilters/filters/Highlights.styl +38 -38
- package/source/components/SearchFilters/filters/Highlights.tsx +69 -69
- package/source/components/SearchFilters/filters/ImagesCount.tsx +66 -66
- package/source/components/SearchFilters/filters/InteriorColor.styl +29 -29
- package/source/components/SearchFilters/filters/InteriorColor.tsx +71 -71
- package/source/components/SearchFilters/filters/InteriorMaterial.styl +28 -28
- package/source/components/SearchFilters/filters/InteriorMaterial.tsx +72 -72
- package/source/components/SearchFilters/filters/MakeModel.styl +106 -106
- package/source/components/SearchFilters/filters/MakeModel.tsx +164 -164
- package/source/components/SearchFilters/filters/Mileage.tsx +108 -108
- package/source/components/SearchFilters/filters/OwnerID.styl +14 -14
- package/source/components/SearchFilters/filters/OwnerID.tsx +65 -65
- package/source/components/SearchFilters/filters/Owners.styl +23 -23
- package/source/components/SearchFilters/filters/Owners.tsx +72 -72
- package/source/components/SearchFilters/filters/Power.tsx +176 -176
- package/source/components/SearchFilters/filters/PriceDifference.tsx +67 -67
- package/source/components/SearchFilters/filters/Rate.styl +34 -34
- package/source/components/SearchFilters/filters/Rate.tsx +53 -53
- package/source/components/SearchFilters/filters/Seats.styl +31 -31
- package/source/components/SearchFilters/filters/Seats.tsx +53 -53
- package/source/components/SearchFilters/filters/StateOptions.styl +16 -16
- package/source/components/SearchFilters/filters/StateOptions.tsx +57 -57
- package/source/components/SearchFilters/filters/StateOptionsNew.styl +23 -23
- package/source/components/SearchFilters/filters/StateOptionsNew.tsx +72 -72
- package/source/components/SearchFilters/filters/Transmission.styl +20 -20
- package/source/components/SearchFilters/filters/Transmission.tsx +71 -71
- package/source/components/SearchFilters/filters/commonFilters.styl +93 -93
- package/source/components/SearchPage/ChipFilter/ChipFilter.styl +45 -45
- package/source/components/SearchPage/ChipFilter/ChipFilter.tsx +21 -21
- package/source/components/SearchPage/DropDown/DropDown.styl +99 -99
- package/source/components/SearchPage/DropDown/DropDown.tsx +52 -52
- package/source/components/SearchPage/DropDown/MultiDropDown.tsx +84 -84
- package/source/components/SearchPage/DropDown/index.ts +8 -8
- package/source/components/SearchPage/Filters/HistogramSlider.styl +77 -77
- package/source/components/SearchPage/Filters/MakeModel/MakeModel.story.js +11 -11
- package/source/components/SearchPage/Filters/MakeModel/MakeModel.styl +95 -95
- package/source/components/SearchPage/Filters/MakeModel/MakeModel.tsx +152 -152
- package/source/components/SearchPage/Pagination/Pagination.styl +95 -95
- package/source/components/SearchPage/Pagination/Pagination.tsx +89 -89
- package/source/components/SearchPage/SearchChips/SearchChips.styl +52 -52
- package/source/components/SearchPage/SearchChips/SearchChips.tsx +76 -76
- package/source/components/SearchPage/SearchTopBar/SearchTopBar.styl +109 -109
- package/source/components/SearchPage/SearchTopBar/SearchTopBar.tsx +116 -116
- package/source/components/SearchPageMobile/FiltersContainer/FiltersContainer.styl +44 -44
- package/source/components/SearchPageMobile/FiltersContainer/FiltersContainer.tsx +162 -162
- package/source/components/SearchPageMobile/FiltersDetailed/BodyType.styl +47 -47
- package/source/components/SearchPageMobile/FiltersDetailed/BodyType.tsx +85 -85
- package/source/components/SearchPageMobile/FiltersDetailed/Consumption.styl +48 -48
- package/source/components/SearchPageMobile/FiltersDetailed/Consumption.tsx +76 -76
- package/source/components/SearchPageMobile/FiltersDetailed/Doors.styl +52 -52
- package/source/components/SearchPageMobile/FiltersDetailed/Doors.tsx +103 -103
- package/source/components/SearchPageMobile/FiltersDetailed/FirstRegistration.tsx +69 -69
- package/source/components/SearchPageMobile/FiltersDetailed/Fuel.styl +31 -31
- package/source/components/SearchPageMobile/FiltersDetailed/Fuel.tsx +83 -83
- package/source/components/SearchPageMobile/FiltersDetailed/HistogramSlider.styl +100 -100
- package/source/components/SearchPageMobile/FiltersDetailed/MakeModel.styl +95 -95
- package/source/components/SearchPageMobile/FiltersDetailed/MakeModel.tsx +171 -171
- package/source/components/SearchPageMobile/FiltersDetailed/MakeModelExclude.styl +112 -112
- package/source/components/SearchPageMobile/FiltersDetailed/MakeModelExclude.tsx +122 -122
- package/source/components/SearchPageMobile/FiltersDetailed/Mileage.tsx +80 -80
- package/source/components/SearchPageMobile/FiltersDetailed/Power.tsx +116 -116
- package/source/components/SearchPageMobile/FiltersDetailed/Price.tsx +129 -129
- package/source/components/SearchPageMobile/FiltersDetailed/Rate.tsx +252 -252
- package/source/components/SearchPageMobile/FiltersDetailed/Seats.styl +41 -41
- package/source/components/SearchPageMobile/FiltersDetailed/Seats.tsx +85 -85
- package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.js +834 -834
- package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.styl +40 -40
- package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.styl +37 -37
- package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.tsx +130 -130
- package/source/components/SearchWidget/ColorWidget/BodyColorWidget.styl +54 -54
- package/source/components/SearchWidget/ColorWidget/BodyColorWidget.tsx +122 -122
- package/source/components/SearchWidget/DriveTransmissionWidget/DriveTransmissionWidget.styl +17 -17
- package/source/components/SearchWidget/DriveTransmissionWidget/DriveTransmissionWidget.tsx +36 -36
- package/source/components/SearchWidget/EnvironmentWidget/DetailedEnvironmentWidget.styl +25 -25
- package/source/components/SearchWidget/EnvironmentWidget/DetailedEnvironmentWidget.tsx +126 -126
- package/source/components/SearchWidget/EnvironmentWidget/EnvironmentWidget.styl +54 -54
- package/source/components/SearchWidget/EnvironmentWidget/EnvironmentWidget.tsx +173 -173
- package/source/components/SearchWidget/HighlightsWidget/HighlightsWidget.styl +39 -39
- package/source/components/SearchWidget/HighlightsWidget/HighlightsWidget.tsx +99 -99
- package/source/components/SearchWidget/InteriorWidget/DetailedInteriorWidget.tsx +44 -44
- package/source/components/SearchWidget/InteriorWidget/InteriorWidget.styl +28 -28
- package/source/components/SearchWidget/InteriorWidget/InteriorWidget.tsx +42 -42
- package/source/components/SearchWidget/OfferDetalisWidget/OfferDetailsWidgetMobile.tsx +59 -59
- package/source/components/SearchWidget/SearchWidget.story.js +191 -191
- package/source/components/SearchWidget/SearchWidget.story.styl +5 -5
- package/source/components/SearchWidget/SearchWidget.styl +196 -196
- package/source/components/SearchWidget/SearchWidget.tsx +208 -208
- package/source/components/SearchWidget/StateWidget/StateWidget.styl +57 -57
- package/source/components/SearchWidget/StateWidget/StateWidget.tsx +106 -106
- package/source/components/SearchWidget/SuperAdminWidget/SuperAdminWidget.styl +10 -10
- package/source/components/SearchWidget/SuperAdminWidget/SuperAdminWidget.tsx +64 -64
- package/source/components/SearchWidget/partials/BuyCar/BuyCar.styl +19 -19
- package/source/components/SearchWidget/partials/BuyCar/BuyCar.tsx +162 -162
- package/source/components/SearchWidget/partials/DropDown/DropDown.styl +70 -70
- package/source/components/SearchWidget/partials/DropDown/DropDown.tsx +36 -36
- package/source/components/SearchWidget/partials/DropDown/MultiDropDown.tsx +76 -76
- package/source/components/SearchWidget/partials/DropDown/index.ts +7 -7
- package/source/components/SearchWidget/partials/DropDownGroup/DropDownGroup.styl +48 -48
- package/source/components/SearchWidget/partials/DropDownGroup/DropDownGroup.tsx +101 -101
- package/source/components/SearchWidget/partials/FastSearch/FastSearch.tsx +55 -55
- package/source/components/SearchWidget/partials/MakerFilter/MakerFilter.styl +8 -8
- package/source/components/SearchWidget/partials/MakerFilter/MakerFilter.tsx +69 -69
- package/source/components/SearchWidget/partials/PanelFilter/Item.tsx +43 -43
- package/source/components/SearchWidget/partials/PanelFilter/PanelFilter.styl +32 -32
- package/source/components/SearchWidget/partials/PanelFilter/PanelFilter.tsx +53 -53
- package/source/components/SearchWidget/partials/TabPanel/TabPanel.tsx +29 -29
- package/source/components/SearchWidget/partials/Tabs/Tab.tsx +20 -20
- package/source/components/SearchWidget/partials/Tabs/Tabs.styl +27 -27
- package/source/components/SearchWidget/partials/Tabs/Tabs.tsx +69 -69
- package/source/components/SearchWidget/partials/Tabs/index.ts +7 -7
- package/source/components/SearchWidgetsMobile/BasicDataWidgetMobile/BasicDataWidgetMobile.styl +91 -91
- package/source/components/SearchWidgetsMobile/BasicDataWidgetMobile/BasicDataWidgetMobile.tsx +219 -219
- package/source/components/SearchWidgetsMobile/EngineTransDriveWidget/EngineTransDriveWidget.styl +47 -47
- package/source/components/SearchWidgetsMobile/EngineTransDriveWidget/EngineTransDriveWidget.tsx +126 -126
- package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidget.styl +62 -62
- package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidget.styled.tsx +38 -38
- package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidget.tsx +294 -294
- package/source/components/SearchWidgetsMobile/EquipmentsWidget/EquipmentsWidgetCategory.tsx +50 -50
- package/source/components/SearchWidgetsMobile/HighlightsWidgetMobile/HighlightsWidgetMobile.styl +50 -50
- package/source/components/SearchWidgetsMobile/HighlightsWidgetMobile/HighlightsWidgetMobile.tsx +96 -96
- package/source/components/SearchWidgetsMobile/InteriorWidget/InteriorWidget.styl +30 -30
- package/source/components/SearchWidgetsMobile/InteriorWidget/InteriorWidget.tsx +33 -33
- package/source/components/SearchWidgetsMobile/InteriorWidget/InteriorWidgetMobile.tsx +44 -44
- package/source/components/SearchWidgetsMobile/SafetyWidget/SafetyWidget.styl +45 -45
- package/source/components/SearchWidgetsMobile/SafetyWidget/SafetyWidget.tsx +149 -149
- package/source/components/SearchWidgetsMobile/StateWidget/StateWidget.styl +59 -59
- package/source/components/SearchWidgetsMobile/StateWidget/StateWidget.tsx +172 -172
- package/source/components/SearchWidgetsMobile/index.ts +18 -18
- package/source/components/Stepper/Step/Step.styl +46 -46
- package/source/components/Stepper/Step/Step.tsx +44 -44
- package/source/components/Stepper/Stepper.story.js +119 -119
- package/source/components/Stepper/Stepper.story.styl +41 -41
- package/source/components/Stepper/Stepper.styl +10 -10
- package/source/components/Stepper/Stepper.tsx +68 -68
- package/source/components/Stepper/StepsDivider/StepsDivider.styl +15 -15
- package/source/components/Stepper/StepsDivider/StepsDivider.tsx +23 -23
- package/source/components/Theme.story.js +36 -36
- package/source/components/Theme.story.styl +85 -85
- package/source/components/TickerText/TickerText.story.js +17 -17
- package/source/components/TickerText/TickerText.styl +43 -43
- package/source/components/TickerText/TickerText.tsx +24 -24
- package/source/components/UserDashboardPage/sections/CheckoutSection/CheckoutSection.styl +38 -38
- package/source/components/UserDashboardPage/sections/CheckoutSection/CheckoutSection.tsx +120 -120
- package/source/components/UserDashboardPage/sections/FavoriteSection/FavoriteSection.styl +21 -21
- package/source/components/UserDashboardPage/sections/FavoriteSection/FavoriteSection.tsx +84 -84
- package/source/components/UserDashboardPage/sections/OrderStatusSection/AdditionalOrderInfo.styl +100 -100
- package/source/components/UserDashboardPage/sections/OrderStatusSection/AdditionalOrderInfo.tsx +90 -90
- package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusCar.tsx +149 -149
- package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusCard.styl +53 -53
- package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusCard.tsx +41 -41
- package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.story.js +95 -95
- package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.styl +166 -166
- package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.tsx +263 -263
- package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.story.js +97 -97
- package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.styl +144 -144
- package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.tsx +124 -124
- package/source/components/UserDashboardPage/sections/RequestedCarsSection/SupportSection.styl +46 -46
- package/source/components/UserDashboardPage/sections/RequestedCarsSection/SupportSection.tsx +32 -32
- package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.styl +10 -10
- package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.tsx +44 -44
- package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.story.js +247 -247
- package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.styl +148 -148
- package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.tsx +163 -163
- package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.story.js +30 -30
- package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.styl +49 -49
- package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.tsx +55 -55
- package/source/components/VehicleCompared/ComparePrice/ComparePrice.story.js +18 -18
- package/source/components/VehicleCompared/ComparePrice/ComparePrice.styl +17 -17
- package/source/components/VehicleCompared/ComparePrice/ComparePrice.tsx +33 -33
- package/source/components/VehicleCompared/CompareTitle/CompareTitle.story.js +19 -19
- package/source/components/VehicleCompared/CompareTitle/CompareTitle.styl +38 -38
- package/source/components/VehicleCompared/CompareTitle/CompareTitle.tsx +32 -32
- package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.story.js +44 -44
- package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.styl +36 -36
- package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.tsx +175 -175
- package/source/components/VehicleDetailedSidebar/partials/Price.styl +27 -27
- package/source/components/VehicleDetailedSidebar/partials/Price.tsx +41 -41
- package/source/components/VehicleDetailedSidebar/partials/PriceContent.styl +123 -123
- package/source/components/VehicleDetailedSidebar/partials/PriceContent.tsx +128 -128
- package/source/components/VehicleDetailedSidebar/partials/Properties.styl +53 -53
- package/source/components/VehicleDetailedSidebar/partials/Properties.tsx +117 -117
- package/source/components/VehicleDetailedSidebar/partials/Title.styl +35 -35
- package/source/components/VehicleDetailedSidebar/partials/Title.tsx +33 -33
- package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.story.js +120 -120
- package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.styl +146 -146
- package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.tsx +376 -376
- package/source/components/VehicleDetailedSlider/partials/MobileStast.tsx +61 -61
- package/source/components/VehicleDetailedSlider/partials/MobileStats.styl +71 -71
- package/source/components/VehicleDetailedSlider/partials/PriceData.styl +50 -50
- package/source/components/VehicleDetailedSlider/partials/PriceData.tsx +44 -44
- package/source/components/VehicleDetailedSlider/partials/Stats.styl +80 -80
- package/source/components/VehicleDetailedSlider/partials/Stats.tsx +62 -62
- package/source/components/VehicleDetailedSlider/partials/Title.styl +44 -44
- package/source/components/VehicleDetailedSlider/partials/Title.tsx +36 -36
- package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.story.js +42 -42
- package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.styl +298 -298
- package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.tsx +201 -201
- package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.story.js +62 -62
- package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.styl +263 -263
- package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.tsx +141 -141
- package/source/components/VehiclePromoSlider/VehiclePromoSlider.story.js +42 -42
- package/source/components/VehiclePromoSlider/VehiclePromoSlider.styl +122 -122
- package/source/components/VehiclePromoSlider/VehiclePromoSlider.tsx +111 -111
- package/source/components/VehiclePromoSlider/cars.js +220 -220
- package/source/components/VehicleSmallCard/SeoText/SeoText.styl +8 -8
- package/source/components/VehicleSmallCard/SeoText/SeoText.tsx +16 -16
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +162 -162
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +190 -190
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +218 -218
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +161 -161
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +164 -164
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +288 -288
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +29 -29
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +34 -34
- package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +135 -135
- package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +91 -91
- package/source/components/VehicleSmallCard/VehicleSmallCard.story.js +412 -412
- package/source/components/VehicleSmallCard/VehicleSmallCard.story.styl +55 -55
- package/source/components/VehicleSmallCard/VehicleSmallCard.styl +244 -244
- package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +405 -404
- package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.js +199 -199
- package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.styl +40 -40
- package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.styl +150 -150
- package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.tsx +185 -185
- package/source/components/_common/Accordion/Accordion.story.js +36 -36
- package/source/components/_common/Accordion/Accordion.styl +2 -2
- package/source/components/_common/Accordion/Accordion.tsx +132 -132
- package/source/components/_common/Accordion/AccordionTitle/AccordionTitle.styl +49 -49
- package/source/components/_common/Accordion/AccordionTitle/AccordionTitle.tsx +33 -33
- package/source/components/_common/AccordionWrapper/AccordionItem/AccordionItem.styl +34 -34
- package/source/components/_common/AccordionWrapper/AccordionItem/AccordionItem.tsx +64 -64
- package/source/components/_common/AccordionWrapper/AccordionWrapper.tsx +34 -34
- package/source/components/_common/Badge/Badge.story.js +27 -27
- package/source/components/_common/Badge/Badge.story.styl +5 -5
- package/source/components/_common/Badge/Badge.styl +44 -44
- package/source/components/_common/Badge/Badge.tsx +25 -25
- package/source/components/_common/BodyTypeIcons/Audi.tsx +9 -9
- package/source/components/_common/BodyTypeIcons/Bmw.tsx +860 -860
- package/source/components/_common/BodyTypeIcons/Ford.tsx +31 -31
- package/source/components/_common/BodyTypeIcons/IconsConfig.tsx +44 -44
- package/source/components/_common/BodyTypeIcons/IconsConfigCompact.tsx +30 -30
- package/source/components/_common/BodyTypeIcons/Mazda.tsx +44 -44
- package/source/components/_common/BodyTypeIcons/MercedesBenz.tsx +38 -38
- package/source/components/_common/BodyTypeIcons/Opel.tsx +19 -19
- package/source/components/_common/BodyTypeIcons/Search.tsx +19 -19
- package/source/components/_common/BodyTypeIcons/SelectorCategoryCombi.tsx +68 -68
- package/source/components/_common/BodyTypeIcons/SelectorCategoryCompact.tsx +20 -20
- package/source/components/_common/BodyTypeIcons/SelectorCategoryConvertible.tsx +68 -68
- package/source/components/_common/BodyTypeIcons/SelectorCategoryCoupe.tsx +60 -60
- package/source/components/_common/BodyTypeIcons/SelectorCategoryMinibus.tsx +64 -64
- package/source/components/_common/BodyTypeIcons/SelectorCategorySedan.tsx +69 -69
- package/source/components/_common/BodyTypeIcons/SelectorCategorySuv.tsx +77 -77
- package/source/components/_common/BodyTypeIcons/SelectorCategoryTransporter.tsx +68 -68
- package/source/components/_common/BodyTypeIcons/SelectorCategoryVan.tsx +72 -72
- package/source/components/_common/BodyTypeIcons/Volkswagen.tsx +330 -330
- package/source/components/_common/BodyTypeIcons/index.ts +17 -17
- package/source/components/_common/Bubble/Bubble.story.js +52 -52
- package/source/components/_common/Bubble/Bubble.styl +53 -53
- package/source/components/_common/Bubble/Bubble.tsx +37 -37
- package/source/components/_common/Button/Button.story.js +52 -52
- package/source/components/_common/Button/Button.story.styl +5 -5
- package/source/components/_common/Button/Button.styl +12 -12
- package/source/components/_common/Button/Button.styled.tsx +51 -51
- package/source/components/_common/Button/Button.tsx +79 -79
- package/source/components/_common/ButtonOld/Button.story.js +54 -54
- package/source/components/_common/ButtonOld/Button.story.styl +5 -5
- package/source/components/_common/ButtonOld/Button.styl +65 -65
- package/source/components/_common/ButtonOld/Button.tsx +84 -84
- package/source/components/_common/Checkbox/Checkbox.story.js +85 -85
- package/source/components/_common/Checkbox/Checkbox.story.styl +14 -14
- package/source/components/_common/Checkbox/Checkbox.styl +119 -119
- package/source/components/_common/Checkbox/Checkbox.tsx +151 -151
- package/source/components/_common/Checkbox/FormCheckbox.styl +22 -22
- package/source/components/_common/Checkbox/FormCheckbox.tsx +86 -86
- package/source/components/_common/Checkbox/index.js +4 -4
- package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.js +126 -126
- package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.styl +14 -14
- package/source/components/_common/CheckboxMaterial/CheckboxMaterial.styl +155 -155
- package/source/components/_common/CheckboxMaterial/CheckboxMaterial.tsx +210 -210
- package/source/components/_common/Chip/Chip.story.js +43 -43
- package/source/components/_common/Chip/Chip.styl +69 -69
- package/source/components/_common/Chip/Chip.tsx +38 -38
- package/source/components/_common/ChipList/ChipList.story.js +36 -36
- package/source/components/_common/ChipList/ChipList.styl +80 -80
- package/source/components/_common/ChipList/ChipList.tsx +58 -58
- package/source/components/_common/Co2Widget/CO2Efficiency.styl +219 -219
- package/source/components/_common/Co2Widget/CO2Efficiency.tsx +93 -93
- package/source/components/_common/Divider/Divider.styl +8 -8
- package/source/components/_common/Divider/Divider.tsx +16 -16
- package/source/components/_common/DoorSelector/DoorSelector.styl +35 -35
- package/source/components/_common/DoorSelector/DoorSelector.tsx +39 -39
- package/source/components/_common/DropDown/DropDown.story.js +35 -35
- package/source/components/_common/DropDown/DropDown.styl +129 -129
- package/source/components/_common/DropDown/DropDown.tsx +111 -111
- package/source/components/_common/DropDown/DropDownComponents.tsx +53 -53
- package/source/components/_common/DropDown/DropDownGroup.styl +20 -20
- package/source/components/_common/DropDown/DropDownGroup.tsx +136 -136
- package/source/components/_common/DropDown/FormDropDown.styl +35 -35
- package/source/components/_common/DropDown/FormDropDown.tsx +53 -53
- package/source/components/_common/DropDown/MultiDropDown.tsx +84 -84
- package/source/components/_common/DropDown/index.ts +7 -7
- package/source/components/_common/ExpandablePanel/ExpandablePanel.story.js +41 -41
- package/source/components/_common/ExpandablePanel/ExpandablePanel.styl +19 -19
- package/source/components/_common/ExpandablePanel/ExpandablePanel.tsx +88 -88
- package/source/components/_common/ExpansionPanel/ExpansionPanel.styl +36 -36
- package/source/components/_common/ExpansionPanel/ExpansionPanel.styled.tsx +28 -28
- package/source/components/_common/ExpansionPanel/ExpansionPanel.tsx +99 -99
- package/source/components/_common/FilterLabel/FilterLabel.styl +25 -25
- package/source/components/_common/FilterLabel/FilterLabel.tsx +27 -27
- package/source/components/_common/Histogram/Histogram.story.js +51 -51
- package/source/components/_common/IconContainer/IconContainer.styl +23 -23
- package/source/components/_common/IconContainer/IconContainer.tsx +34 -34
- package/source/components/_common/IconSVG/IconSVG.story.js +21 -21
- package/source/components/_common/IconSVG/IconSVG.story.styl +25 -25
- package/source/components/_common/IconSVG/IconSVG.tsx +30 -30
- package/source/components/_common/IconSVG/IconSVGConfig.tsx +768 -768
- package/source/components/_common/IconSVG/SVG/AboPartner.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/ArrowQuotes.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/CloseIcon.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/CloseIconSelect.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/ClosedLockIcon.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/DealerCheckIcon.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/DealerPopoverMail.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/DealerPopoverPhone.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/GrayPhoneIcon.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/InternetIcon.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/WhiteEnvelopeIcon.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/bodyType/Cabrio.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/bodyType/Coupe.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/bodyType/Minibus.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/bodyType/Other.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/bodyType/Sedan.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryCombi.tsx +68 -68
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryCompact.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryConvertible.tsx +68 -68
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryCoupe.tsx +60 -60
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryMinibus.tsx +64 -64
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryOther.tsx +60 -60
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategorySedan.tsx +69 -69
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategorySuv.tsx +77 -77
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryTransporter.tsx +68 -68
- package/source/components/_common/IconSVG/SVG/bodyType/SelectorCategoryVan.tsx +72 -72
- package/source/components/_common/IconSVG/SVG/bodyType/Small.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/bodyType/Suv.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/bodyType/Van.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/bodyType/Wagon.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/common/AddIcon.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/AddPlus.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/AddressDashboard.tsx +29 -29
- package/source/components/_common/IconSVG/SVG/common/AddressIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/ArrowDetailedAccordionBlue.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/common/ArrowDownBlue.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/ArrowSelect.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/common/ArrowStepDown.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/Autocheck.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/AutodeLogo.tsx +36 -36
- package/source/components/_common/IconSVG/SVG/common/Avatar.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/BellGray.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/BigInfoTransparent.tsx +13 -13
- package/source/components/_common/IconSVG/SVG/common/Browse.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/Calendar.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/common/CallbackDashboard.tsx +30 -30
- package/source/components/_common/IconSVG/SVG/common/Camera.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/Car.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/CarBody.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/CarFront.tsx +43 -43
- package/source/components/_common/IconSVG/SVG/common/CarInspectionCheck.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme0.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme1.tsx +53 -53
- package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme2.tsx +52 -52
- package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme3.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme4.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme5.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/CarInspectionScheme6.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/CarInspectionSchemeGeneral copy.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/common/CarInspectionSchemeGeneral.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/common/CheckBlue.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/CheckGreen.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/CheckMark.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/CheckWhite.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/Chevron.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/CircledCheckmark.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/common/Clock.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/Close.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/CloseGrey.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/ContactEmail.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/ContactPhone.tsx +28 -28
- package/source/components/_common/IconSVG/SVG/common/CopyIcon copy.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/CopyIcon.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/CopyIconForDealer.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/DashboardIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/DashboardQuestionMark.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/DealersIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/DeleteCircle.tsx +31 -31
- package/source/components/_common/IconSVG/SVG/common/DeleteV1Icon.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/DeliveryDashboard.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/common/DeliveryMail.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/common/Discount100De.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/Discount100En.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/Discount66De.tsx +28 -28
- package/source/components/_common/IconSVG/SVG/common/Discount66En.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/DoneIcon.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/EditCircle.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/EditPriceIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/EuroCurrency.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/Export.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/Eye.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/EyeCatch.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/FavoritesIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/FilterRange.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/FilterToolBlack.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/common/FlagDe.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/FlagEn.tsx +43 -43
- package/source/components/_common/IconSVG/SVG/common/GrayEnvelopeIcon.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/HamburgerMenuIcon.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/HandingOverDashboard.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/ImageSettingsIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/Info.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/InfoIcon.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/InfoTransparent.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/LogoutIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/MagnifyingGlass.tsx +31 -31
- package/source/components/_common/IconSVG/SVG/common/MenuArrow.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/MenuGrey.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/MobileDeLogo.tsx +108 -108
- package/source/components/_common/IconSVG/SVG/common/MyOrderIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/MyVehiclesIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/NewFlagDe.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/common/NewFlagEn.tsx +34 -34
- package/source/components/_common/IconSVG/SVG/common/OrderReceivedDashboard.tsx +27 -27
- package/source/components/_common/IconSVG/SVG/common/Package.tsx +30 -30
- package/source/components/_common/IconSVG/SVG/common/Phone.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/PhoneGrey.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/PickupDashboard.tsx +30 -30
- package/source/components/_common/IconSVG/SVG/common/Picture.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/common/Pictures.tsx +32 -32
- package/source/components/_common/IconSVG/SVG/common/Plus.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/PlusNew.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/PreparationDashboard.tsx +29 -29
- package/source/components/_common/IconSVG/SVG/common/ProfileDashboard.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/common/ProfileIcon.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/Question.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/QuestionBold.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/common/RegistrationDashboard.tsx +31 -31
- package/source/components/_common/IconSVG/SVG/common/SavedSearchsIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/Search.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/common/SearchGrey.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/SettingPenIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/Share.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/ShoppingCart.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/SliderArrow.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/SliderEye.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/SortUpDownArrows.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/Speedometer.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/common/Star.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/StarNew.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/common/StarOutline.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/StarRoundedCorners.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/Stats.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/Step1.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/Step2.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/Step3.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/SupportCallbackIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/Telephone.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/Time.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/Timetable.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/common/Trash.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/TrashRed.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/common/Upload.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/common/UserGrey.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/common/UserProfileIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/ValidateFailure.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/ValidateSuccess.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/WarningTriangle.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/common/WhiteArrowUp.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/WhiteKey.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/common/WhitePeople.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/common/WhiteTick.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/flags/AT.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/flags/BE.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/BG.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/CH.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/flags/CZ.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/flags/DE.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/flags/DK.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/flags/ES.tsx +2585 -2585
- package/source/components/_common/IconSVG/SVG/flags/FI.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/flags/FR.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/GB.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/flags/HR.tsx +135 -135
- package/source/components/_common/IconSVG/SVG/flags/HU.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/IT.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/LI.tsx +106 -106
- package/source/components/_common/IconSVG/SVG/flags/LU.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/flags/NL.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/flags/NO.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/PL.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/flags/RO.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/RU.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/SE.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/flags/SI.tsx +54 -54
- package/source/components/_common/IconSVG/SVG/flags/SK.tsx +34 -34
- package/source/components/_common/IconSVG/SVG/flags/UA.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/infoBlocks/14DaysReturnPolicy.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/infoBlocks/AlertInfo.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/infoBlocks/Autocheck.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/infoBlocks/CheckTheStory.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/infoBlocks/CustomerServiceWhite.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/infoBlocks/Guarantee.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/infoBlocks/OrderWhite.tsx +13 -13
- package/source/components/_common/IconSVG/SVG/infoBlocks/PriceGuarantee.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/infoBlocks/PriceGuaranteeWhite.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/infoBlocks/TransportAndDelivery.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/infoBlocks/Warranty.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/popower/Mail.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/popower/Phone.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/popower/Schedule.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/AAllWheelDrive.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/AllWheelDrive.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/FrontWheelDrive.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/OtherWheelDrive.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/RearWheelDrive.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelDiesel.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelElectrical.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelElectricalDiesel.tsx +34 -34
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelElectricalPetrol.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelEthanol.tsx +53 -53
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelHydrogen.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelLpg.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelNaturalGas.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelOther.tsx +28 -28
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelPetrol.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/settings/Account.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/settings/DataUsage.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/settings/MarketResearch.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/settings/Newsletter.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/settings/RemoveEye.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/settings/RemoveEyeOff.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/settings/Security.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/settings/Warning.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/slider/360.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/slider/360New.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/slider/Checked.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/slider/DiscountRibbon.tsx +51 -51
- package/source/components/_common/IconSVG/SVG/slider/DiscountRibbonMobile.tsx +47 -47
- package/source/components/_common/IconSVG/SVG/slider/DiscountRibbonNew.tsx +29 -29
- package/source/components/_common/IconSVG/SVG/slider/Easy.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/slider/Fullscreen.tsx +16 -16
- package/source/components/_common/IconSVG/SVG/slider/FullscreenWindow.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/slider/Safe.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/slider/ToBuy.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/slider/YoutubeButton.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/slider/ZoomIn.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/slider/ZoomOut.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/social/AndroidLogo.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/social/Apple.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/social/FacebookF.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/social/GooglePlusG.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/social/Instagram.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/social/Pinterest.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/social/SharingInterface.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/social/Twitter.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/social/Youtube.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/vehicle/AboIcon.tsx +11 -11
- package/source/components/_common/IconSVG/SVG/vehicle/Abs.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/AirCond.tsx +34 -34
- package/source/components/_common/IconSVG/SVG/vehicle/Airbag.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/AuxiliaryHeating.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/vehicle/Bluetooth.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/vehicle/BuyIcon.tsx +15 -15
- package/source/components/_common/IconSVG/SVG/vehicle/CarAvailability.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/vehicle/CarInspectionCheck.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/CarInspectionCross.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/CheckoutChecked.tsx +15 -15
- package/source/components/_common/IconSVG/SVG/vehicle/Co2.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/CruiseControl.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/vehicle/Date.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/Delivery.tsx +12 -12
- package/source/components/_common/IconSVG/SVG/vehicle/Diesel.tsx +28 -28
- package/source/components/_common/IconSVG/SVG/vehicle/Display.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/vehicle/Done.tsx +11 -11
- package/source/components/_common/IconSVG/SVG/vehicle/Door.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/vehicle/DoubleDone.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/vehicle/EditIcon.tsx +11 -11
- package/source/components/_common/IconSVG/SVG/vehicle/EmergencyBrakeAssistant.tsx +27 -27
- package/source/components/_common/IconSVG/SVG/vehicle/Eps.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/Esp.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/FinancingIcon.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/vehicle/FuelConsumption.tsx +20 -20
- package/source/components/_common/IconSVG/SVG/vehicle/Fueling.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/vehicle/FullDrive.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/GasElectric.tsx +28 -28
- package/source/components/_common/IconSVG/SVG/vehicle/HandsFreePhoneSystem.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/Kw.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/vehicle/LastCrawledAt.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/vehicle/LeasingIcon.tsx +14 -14
- package/source/components/_common/IconSVG/SVG/vehicle/Led.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/LightSensor.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/vehicle/LinkAlternative.tsx +15 -15
- package/source/components/_common/IconSVG/SVG/vehicle/Location.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/vehicle/MinusIcon.tsx +11 -11
- package/source/components/_common/IconSVG/SVG/vehicle/Mirror.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/vehicle/Navigation.tsx +27 -27
- package/source/components/_common/IconSVG/SVG/vehicle/NewCar.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/NoImage.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/vehicle/Owner.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/vehicle/PanoramicRoof.tsx +23 -23
- package/source/components/_common/IconSVG/SVG/vehicle/ParkingAssistants.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/PickYourself.tsx +18 -18
- package/source/components/_common/IconSVG/SVG/vehicle/PlusIcon.tsx +11 -11
- package/source/components/_common/IconSVG/SVG/vehicle/Power.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/Ps.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/vehicle/Question.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/Seats.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/SeatsHeating.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxAutomatic.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxManualShift.tsx +19 -19
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxOther.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxSemiAutomatic.tsx +30 -30
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeAlcantara.tsx +225 -225
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeFabric.tsx +29 -29
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeFullLeather.tsx +29 -29
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeOther.tsx +26 -26
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypePartLeather.tsx +142 -142
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeSyntheticLeather.tsx +27 -27
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorInteriorTypeVelours.tsx +39 -39
- package/source/components/_common/IconSVG/SVG/vehicle/Shield.tsx +39 -39
- package/source/components/_common/IconSVG/SVG/vehicle/Speedometer.tsx +17 -17
- package/source/components/_common/IconSVG/SVG/vehicle/StartStopSystem.tsx +30 -30
- package/source/components/_common/IconSVG/SVG/vehicle/Stop.tsx +25 -25
- package/source/components/_common/IconSVG/SVG/vehicle/TickMark.tsx +21 -21
- package/source/components/_common/IconSVG/SVG/vehicle/TrafficSignRecognition.tsx +29 -29
- package/source/components/_common/IconSVG/SVG/vehicle/TrailerCoupling.tsx +24 -24
- package/source/components/_common/IconSVG/SVG/vehicle/Transmission.tsx +27 -27
- package/source/components/_common/IconSVG/SVG/vehicle/Wheel.tsx +43 -43
- package/source/components/_common/IconSVG/SVG/vehicle/Wipers.tsx +22 -22
- package/source/components/_common/IconSVG/SVG/vehicle/Wrench.tsx +17 -17
- package/source/components/_common/Image/Image.story.js +142 -142
- package/source/components/_common/Image/Image.story.styl +18 -18
- package/source/components/_common/Image/Image.styl +109 -109
- package/source/components/_common/Image/Image.tsx +302 -302
- package/source/components/_common/ImagesSet/ImagesSet.story.js +34 -34
- package/source/components/_common/ImagesSet/ImagesSet.story.styl +3 -3
- package/source/components/_common/ImagesSet/ImagesSet.styl +27 -27
- package/source/components/_common/ImagesSet/ImagesSet.tsx +76 -76
- package/source/components/_common/Loader/Loader.story.js +21 -21
- package/source/components/_common/Loader/Loader.styl +39 -39
- package/source/components/_common/Loader/Loader.tsx +32 -32
- package/source/components/_common/MagnifyGlass/MagnifyGlass.styl +33 -33
- package/source/components/_common/MagnifyGlass/MagnifyGlass.tsx +213 -213
- package/source/components/_common/MaterialAccordion/MaterialAccordion.tsx +141 -141
- package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.story.js +49 -49
- package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +71 -71
- package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.tsx +40 -40
- package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.styled.tsx +204 -204
- package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.tsx +248 -248
- package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.js +45 -45
- package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.styl +5 -5
- package/source/components/_common/MaterialDatePicker/MaterialDatePicker.styled.tsx +20 -20
- package/source/components/_common/MaterialDatePicker/MaterialDatePicker.tsx +112 -112
- package/source/components/_common/MaterialField/MaterialField.story.js +87 -87
- package/source/components/_common/MaterialField/MaterialField.story.styl +33 -33
- package/source/components/_common/MaterialField/MaterialField.styled.tsx +52 -52
- package/source/components/_common/MaterialField/MaterialField.tsx +132 -132
- package/source/components/_common/MaterialSelect/MaterialSelect.story.js +52 -52
- package/source/components/_common/MaterialSelect/MaterialSelect.story.styl +5 -5
- package/source/components/_common/MaterialSelect/MaterialSelect.styled.tsx +123 -123
- package/source/components/_common/MaterialSelect/MaterialSelect.tsx +222 -222
- package/source/components/_common/MaterialStepButton/MaterialStepButton.story.js +47 -47
- package/source/components/_common/MaterialStepButton/MaterialStepButton.story.styl +5 -5
- package/source/components/_common/MaterialStepButton/MaterialStepButton.styl +32 -32
- package/source/components/_common/MaterialStepButton/MaterialStepButton.tsx +61 -61
- package/source/components/_common/MaterialSwitch/MaterialSwitch.story.js +17 -17
- package/source/components/_common/MaterialSwitch/MaterialSwitch.styled.tsx +5 -5
- package/source/components/_common/MaterialSwitch/MaterialSwitch.tsx +37 -37
- package/source/components/_common/MaterialTooltip/MaterialTooltip.story.js +10 -10
- package/source/components/_common/MaterialTooltip/MaterialTooltip.styled.tsx +24 -24
- package/source/components/_common/MaterialTooltip/MaterialTooltip.tsx +87 -87
- package/source/components/_common/Modal/CookieModal.tsx +49 -49
- package/source/components/_common/Modal/Modal.story.js +37 -37
- package/source/components/_common/Modal/Modal.styled.tsx +15 -15
- package/source/components/_common/Modal/Modal.tsx +24 -24
- package/source/components/_common/Modal/ModalsConfig.tsx +23 -23
- package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.styl +86 -86
- package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.tsx +184 -184
- package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.styl +66 -66
- package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.tsx +51 -51
- package/source/components/_common/Modal/modals/TestModal.tsx +7 -7
- package/source/components/_common/MuiDropDown/MuiDropDown.tsx +93 -93
- package/source/components/_common/MuiGroupedSelect/MuiGroupedSelect.story.js +21 -21
- package/source/components/_common/MuiGroupedSelect/MuiGroupedSelect.tsx +87 -87
- package/source/components/_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styl +119 -119
- package/source/components/_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper.styled.tsx +23 -23
- package/source/components/_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper.tsx +122 -122
- package/source/components/_common/PropertySelector/PSGroup.story.js +93 -93
- package/source/components/_common/PropertySelector/PSGroup.story.styl +25 -25
- package/source/components/_common/PropertySelector/PSGroup.styl +5 -5
- package/source/components/_common/PropertySelector/PSGroup.tsx +98 -98
- package/source/components/_common/PropertySelector/PropertySelector.styl +139 -139
- package/source/components/_common/PropertySelector/PropertySelector.tsx +100 -100
- package/source/components/_common/PropertySelector/ProperySelector.story.js +83 -83
- package/source/components/_common/Radio/FormRadioGroup.story.js +28 -28
- package/source/components/_common/Radio/FormRadioGroup.story.styl +2 -2
- package/source/components/_common/Radio/FormRadioGroup.styl +22 -22
- package/source/components/_common/Radio/FormRadioGroup.tsx +77 -77
- package/source/components/_common/Radio/Radio.story.js +54 -54
- package/source/components/_common/Radio/Radio.styl +115 -115
- package/source/components/_common/Radio/Radio.tsx +141 -141
- package/source/components/_common/Radio/RadioGroup.story.js +90 -90
- package/source/components/_common/Radio/RadioGroup.story.styl +39 -39
- package/source/components/_common/Radio/RadioGroup.styl +5 -5
- package/source/components/_common/Radio/RadioGroup.tsx +65 -65
- package/source/components/_common/Range/Range.story.js +46 -46
- package/source/components/_common/Range/Range.story.styl +4 -4
- package/source/components/_common/Range/Range.styl +71 -71
- package/source/components/_common/Range/Range.tsx +87 -87
- package/source/components/_common/Skeleton/SkeletonItem.styl +80 -80
- package/source/components/_common/Skeleton/SkeletonItem.tsx +80 -80
- package/source/components/_common/Skeleton/SkeletonSearchItem.styl +123 -123
- package/source/components/_common/Skeleton/SkeletonSearchItem.tsx +92 -92
- package/source/components/_common/Slider/Slider.styl +2 -2
- package/source/components/_common/Slider/Slider.tsx +130 -130
- package/source/components/_common/SliderArrow/SliderArrow.story.js +18 -18
- package/source/components/_common/SliderArrow/SliderArrow.styl +32 -32
- package/source/components/_common/SliderArrow/SliderArrow.tsx +36 -36
- package/source/components/_common/StarButton/StarButton.styl +39 -39
- package/source/components/_common/StarButton/StarButton.tsx +31 -31
- package/source/components/_common/Tabs/TabPanel.tsx +28 -28
- package/source/components/_common/Tabs/Tabs.story.js +55 -55
- package/source/components/_common/Tabs/Tabs.styl +40 -40
- package/source/components/_common/Tabs/Tabs.tsx +44 -44
- package/source/components/_common/TextAreaField/TextAreaField.styl +47 -47
- package/source/components/_common/TextAreaField/TextAreaField.tsx +74 -74
- package/source/components/_common/TextField/TextField.styl +37 -37
- package/source/components/_common/TextField/TextField.tsx +77 -77
- package/source/components/_common/TimePicker/TimePicker.story.js +37 -37
- package/source/components/_common/TimePicker/TimePicker.styl +22 -22
- package/source/components/_common/TimePicker/TimePicker.tsx +155 -155
- package/source/components/_common/Tooltip/Tooltip.story.js +28 -28
- package/source/components/_common/Tooltip/Tooltip.styl +117 -117
- package/source/components/_common/Tooltip/Tooltip.tsx +62 -62
- package/source/components/_common/UserMenu/MaterialMenu.story.js +73 -73
- package/source/components/_common/UserMenu/MaterialMenu.styled.tsx +84 -84
- package/source/components/_common/UserMenu/MaterialMenu.tsx +101 -101
- package/source/components/_common/UserMenu/MaterialMenuItem.tsx +76 -76
- package/source/components/_common/UserMenu/NestedMenu.tsx +59 -59
- package/source/components/_common/Usp/Usp.styl +78 -78
- package/source/components/_common/Usp/Usp.tsx +30 -30
- package/source/components/_common/VehicleSlider/VehicleSlider.story.js +99 -99
- package/source/components/_common/VehicleSlider/VehicleSlider.styl +62 -62
- package/source/components/_common/VehicleSlider/VehicleSlider.tsx +125 -125
- package/source/components/_common/VehicleSlider/VehicleSliderForSRL.tsx +175 -174
- package/source/components/_common/withLabel/withLabel.story.js +62 -62
- package/source/components/_common/withLabel/withLabel.styl +33 -33
- package/source/components/_common/withLabel/withLabel.tsx +44 -44
- package/source/components/_common/withPopover/withPopover.story.js +48 -48
- package/source/components/_common/withPopover/withPopover.story.styl +53 -53
- package/source/components/_common/withPopover/withPopover.styl +3 -3
- package/source/components/_common/withPopover/withPopover.tsx +88 -88
- package/source/components/_common/withStats/withStats.story.js +75 -75
- package/source/components/_common/withStats/withStats.styl +153 -153
- package/source/components/_common/withStats/withStats.tsx +182 -182
- package/source/components/containers/DasboardSection/DashboardSection.styl +14 -14
- package/source/components/containers/DasboardSection/DashboardSection.tsx +23 -23
- package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.styl +67 -67
- package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.tsx +463 -463
- package/source/framework/DataTransformers.ts +86 -86
- package/source/framework/constants/RateSearchWidget.ts +15 -15
- package/source/framework/constants/Search.ts +290 -290
- package/source/framework/constants/SearchWidget.ts +108 -108
- package/source/framework/constants/app.ts +223 -223
- package/source/framework/constants/cars.ts +36 -36
- package/source/framework/constants/common.ts +126 -123
- package/source/framework/constants/data.ts +52 -52
- package/source/framework/constants/filters.ts +11 -11
- package/source/framework/constants/highlights.ts +165 -165
- package/source/framework/constants/price.ts +9 -9
- package/source/framework/constants/queryBuilder.ts +4 -4
- package/source/framework/constants/selectors.ts +38 -38
- package/source/framework/constants.ts +131 -131
- package/source/framework/data.ts +6 -6
- package/source/framework/factories/BreadcrumbsFactory.tsx +285 -285
- package/source/framework/factories/FactoryTypes.d.ts +30 -30
- package/source/framework/factories/FilterFactory.ts +364 -364
- package/source/framework/factories/ModalsFactory.tsx +11 -11
- package/source/framework/hooks/useModal.ts +13 -13
- package/source/framework/schemes/AggregationScheme.ts +73 -73
- package/source/framework/types/types.ts +370 -370
- package/source/framework/utils/CommonUtils.ts +645 -645
- package/source/framework/utils/CookieUtils.ts +61 -61
- package/source/framework/utils/DateUtils.ts +101 -101
- package/source/framework/utils/FiltersUtils.ts +234 -234
- package/source/framework/utils/RequestUtils.ts +20 -20
- package/source/framework/utils/StyledComponent.ts +2 -2
- package/source/framework/vehiclesProps/cbdSelectors.ts +117 -117
- package/source/framework/vehiclesProps/decoratedLightProps.tsx +481 -481
- package/source/framework/vehiclesProps/decoratedProps.tsx +1690 -1690
- package/source/framework/vehiclesProps/equipment.ts +129 -129
- package/source/framework/vehiclesProps/highlights.ts +54 -54
- package/source/framework/vehiclesProps/vehicleDetails.ts +426 -426
- package/source/globals.d.ts +18 -18
- package/source/locales/SearchDetailedPage.ts +205 -205
- package/source/locales/SearchPage.ts +224 -224
- package/source/locales/cbd.ts +719 -719
- package/source/locales/common.ts +109 -109
- package/source/locales/data.ts +1112 -1112
- package/source/locales/priceRating.ts +10 -10
- package/source/locales/sortingOptions.ts +21 -21
- package/source/theme/colors.styl +46 -46
- package/source/theme/mixins.styl +93 -93
- package/source/theme/priceReviewColors.styl +12 -12
- package/source/theme/selector_colors.styl +61 -61
- package/source/theme/slider.global.styl +3 -3
- package/source/theme/theme.styl +136 -136
- package/tsconfig.json +65 -65
- package/tslint.json +38 -38
- package/utils.ts +59 -59
|
@@ -1,477 +1,477 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom';
|
|
3
|
-
import _get from 'lodash/get';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
|
|
6
|
-
import BodyTypeIcons from '../../_common/BodyTypeIcons/IconsConfigCompact';
|
|
7
|
-
import FormattedNumber from '../../FormattedNumber/FormattedNumber';
|
|
8
|
-
import {
|
|
9
|
-
DropDown, MultiDropDown, DropDownGroup, SingleValueWithIcon,
|
|
10
|
-
PlaceholderWithIcon, MultiValueWithBodyType
|
|
11
|
-
} from '../../_common/DropDown';
|
|
12
|
-
import {
|
|
13
|
-
MANUFACTURER, MODEL, FIRST_REGISTRATION, FIRST_REGISTRATION_OPTIONS, BODY_TYPE,
|
|
14
|
-
MILEAGE, MILEAGE_OPTIONS, MILEAGE_UNIT, PRICE, PRICE_OPTIONS, PRICE_UNIT, RATE, TEMP_LOCAL, TO_KEY, FROM_KEY, MAX_MOBILE_WIDTH,
|
|
15
|
-
MODAL_WRAPPER_ID, RATE_DEFAULT, RATE_DEFAULT_CONTROLS
|
|
16
|
-
} from '../../../framework/constants/SearchWidget';
|
|
17
|
-
import { checkRangeValuesOnEqual } from '../../../framework/utils/CommonUtils';
|
|
18
|
-
// import { IDropDownProps } from '../../_common/DropDown/DropDown';
|
|
19
|
-
import { IRangeGroupProps } from '../../_common/DropDown/DropDownGroup';
|
|
20
|
-
|
|
21
|
-
import RadioGroup from '../../_common/Radio/RadioGroup';
|
|
22
|
-
import { default as RadioButton } from '../../_common/Radio/Radio';
|
|
23
|
-
import RateSearchValue from '../../RateSearchValue/RateSearchValue';
|
|
24
|
-
import RateSearchWidget from '../../RateSearchWidget/RateSearchWidget';
|
|
25
|
-
|
|
26
|
-
import MagnifyingGlass from '../../../components/_common/IconSVG/SVG/common/MagnifyingGlass';
|
|
27
|
-
import Calendar from '../../../components/_common/IconSVG/SVG/common/Calendar';
|
|
28
|
-
import Speedometer from '../../../components/_common/IconSVG/SVG/common/Speedometer';
|
|
29
|
-
import EuroCurrency from '../../../components/_common/IconSVG/SVG/common/EuroCurrency';
|
|
30
|
-
import CarFront from '../../../components/_common/IconSVG/SVG/common/CarFront';
|
|
31
|
-
|
|
32
|
-
import styles from './CompactSearchFields.styl';
|
|
33
|
-
|
|
34
|
-
const colourStyles = {
|
|
35
|
-
option: (styles: any, props: any) => {
|
|
36
|
-
const { data, isDisabled, isSelected, isFocused } = props;
|
|
37
|
-
const { isSeries = false } = data;
|
|
38
|
-
|
|
39
|
-
return {
|
|
40
|
-
...styles,
|
|
41
|
-
fontSize: isDisabled || isSeries ? '13px' : '14px',
|
|
42
|
-
fontWeight: isDisabled || isSeries ? 'bold' : 'normal',
|
|
43
|
-
color: isDisabled || isSeries ? '#1f1f1f' : isSelected || isFocused ? '#ffffff' : '#333333',
|
|
44
|
-
textTransform: isDisabled || isSeries ? 'uppercase' : 'none',
|
|
45
|
-
backgroundColor: isDisabled || isSeries ? '#e8e8e8' : isFocused ? '#005CCB' : '#fff',
|
|
46
|
-
pointerEvents: isDisabled || data.value === 'default' ? 'none' : isSeries ? 'auto' : 'auto'
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const t = (phrase: string, options: any = {}) => {
|
|
52
|
-
const { value } = options;
|
|
53
|
-
|
|
54
|
-
const dictionary: any = {
|
|
55
|
-
title: 'Ratendetails anpassen',
|
|
56
|
-
months: 'Monate',
|
|
57
|
-
monthlyInstallment: 'Monatsrate (€)',
|
|
58
|
-
monthlyInstallmentFrom: 'Monatsrate von (€)',
|
|
59
|
-
monthlyInstallmentTo: 'Monatsrate bis (€)',
|
|
60
|
-
firstInstallment: 'Anzahlung',
|
|
61
|
-
paybackPeriod: 'Laufzeit',
|
|
62
|
-
any: 'beliebig',
|
|
63
|
-
|
|
64
|
-
firstInstallmentPlaceholder: 'Anzahlung',
|
|
65
|
-
monthlyInstallmentFromPlaceholder: 'Monatsrate von',
|
|
66
|
-
monthlyInstallmentToPlaceholder: 'Monatsrate bis',
|
|
67
|
-
paybackPeriodPlaceholder: 'Laufzeit',
|
|
68
|
-
|
|
69
|
-
apply: 'Anwenden',
|
|
70
|
-
abort: 'abbrechen',
|
|
71
|
-
|
|
72
|
-
monthlyInstallmentLabel: 'Monatsrate:',
|
|
73
|
-
defaultValue: 'beliebig, 60 Monate',
|
|
74
|
-
monthlyInstallmentFromValue: `ab ${value} €`,
|
|
75
|
-
monthlyInstallmentToValue: `bis ${value} €`,
|
|
76
|
-
paybackPeriodValue: `${value} Monate`,
|
|
77
|
-
firstInstallmentValue: `${value} € Anzahlung`
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
return dictionary[phrase];
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export interface ICompactSearchFieldsProps {
|
|
84
|
-
manufacturers?: any;
|
|
85
|
-
models?: any;
|
|
86
|
-
bodyTypes?: string[];
|
|
87
|
-
filters?: any;
|
|
88
|
-
modelsLoading?: boolean;
|
|
89
|
-
isDealerWPpage?: boolean;
|
|
90
|
-
costType?: string;
|
|
91
|
-
contrastMode: boolean;
|
|
92
|
-
|
|
93
|
-
rateWidgetIsOpened?: boolean;
|
|
94
|
-
rateWidgetPosition?: 'left' | 'right';
|
|
95
|
-
rateWidgetIsModal?: boolean;
|
|
96
|
-
rateWidgetClassName?: string;
|
|
97
|
-
|
|
98
|
-
onFilterChange?: (value: any, name: string) => void;
|
|
99
|
-
onCostTypeChange: (event: React.SyntheticEvent, value: string) => void;
|
|
100
|
-
onRateWidgetOpen: () => void;
|
|
101
|
-
onRateWidgetClose: () => void;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const isMobile = process.browser ? window.innerWidth < MAX_MOBILE_WIDTH : false;
|
|
105
|
-
|
|
106
|
-
class CompactSearchFields extends React.Component<ICompactSearchFieldsProps, {}> {
|
|
107
|
-
private modalWrapper: HTMLElement = null;
|
|
108
|
-
|
|
109
|
-
static readonly defaultProps = {
|
|
110
|
-
rateWidgetIsModal: false,
|
|
111
|
-
isDealerWPpage: false
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
componentDidMount() {
|
|
115
|
-
this.modalWrapper = document.createElement('div');
|
|
116
|
-
this.modalWrapper.id = MODAL_WRAPPER_ID;
|
|
117
|
-
document.body.appendChild(this.modalWrapper);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
componentDidUpdate() {
|
|
121
|
-
const { rateWidgetIsOpened, rateWidgetIsModal } = this.props;
|
|
122
|
-
if (rateWidgetIsModal) {
|
|
123
|
-
if (rateWidgetIsOpened) {
|
|
124
|
-
this.modalWrapper.classList.add(styles.modalWrapper);
|
|
125
|
-
document.body.classList.add(styles.body);
|
|
126
|
-
} else {
|
|
127
|
-
this.modalWrapper.classList.remove(styles.modalWrapper);
|
|
128
|
-
document.body.classList.remove(styles.body);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
componentWillUnmount() {
|
|
134
|
-
if (!!this.modalWrapper) {
|
|
135
|
-
document.body.removeChild(this.modalWrapper);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
onFilterChange = (value: any, name: string) => {
|
|
140
|
-
const { onFilterChange } = this.props;
|
|
141
|
-
onFilterChange(value, name);
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
onRateWidgetChange = (value: any) => {
|
|
145
|
-
const { onFilterChange } = this.props;
|
|
146
|
-
|
|
147
|
-
onFilterChange(value, RATE);
|
|
148
|
-
this.onRateWidgetClose();
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
onRateWidgetOpen = () => {
|
|
152
|
-
if (this.props.rateWidgetIsModal) {
|
|
153
|
-
this.modalWrapper.classList.add(styles.modalWrapper);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
this.props.onRateWidgetOpen();
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
onRateWidgetClose = () => {
|
|
160
|
-
if (this.props.rateWidgetIsModal) {
|
|
161
|
-
this.modalWrapper.classList.remove(styles.modalWrapper);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
this.props.onRateWidgetClose();
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
getLabel = (option: string, title: string): React.ReactNode => {
|
|
168
|
-
const Icon: any = BodyTypeIcons[option];
|
|
169
|
-
return (
|
|
170
|
-
<span className={styles.icon} key={title}>
|
|
171
|
-
<span className={styles.icon__desc}>{`${TEMP_LOCAL[title][option]}`}</span>
|
|
172
|
-
<Icon className={styles.icon__svg} />
|
|
173
|
-
</span>
|
|
174
|
-
);
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
getFormattedLabel = (name: string, option: number | string, unit?: string): React.ReactNode => {
|
|
178
|
-
if (name !== FIRST_REGISTRATION) {
|
|
179
|
-
return (
|
|
180
|
-
<span key={name}>
|
|
181
|
-
<FormattedNumber value={+option} numbersAfterDot={0} />
|
|
182
|
-
{unit ? ` ${unit}` : false}
|
|
183
|
-
</span>
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return `${option} ${unit ? unit : ''}`;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
getValue = (name: string, value: string) => ({
|
|
191
|
-
value,
|
|
192
|
-
label: name === BODY_TYPE ? `${TEMP_LOCAL[name][value]}` : value
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
getOptions = (name: string, options: any, unit?: string) =>
|
|
196
|
-
options.map((option: string) => ({
|
|
197
|
-
value: option,
|
|
198
|
-
label: name === BODY_TYPE ? this.getLabel(option, name) : this.getFormattedLabel(name, option, unit)
|
|
199
|
-
}));
|
|
200
|
-
|
|
201
|
-
isValidNumericOption = (inputValue: any): boolean => !!inputValue.trim() && !isNaN(inputValue.trim());
|
|
202
|
-
|
|
203
|
-
isValidTextOption = (inputValue: any): boolean => !!inputValue.trim();
|
|
204
|
-
|
|
205
|
-
renderRateWidget = () => {
|
|
206
|
-
const { filters, rateWidgetPosition, rateWidgetIsModal, rateWidgetClassName } = this.props;
|
|
207
|
-
const isRateDefault = checkRangeValuesOnEqual(RATE_DEFAULT, filters[RATE]);
|
|
208
|
-
const widgetValues = isRateDefault ? RATE_DEFAULT_CONTROLS : filters[RATE];
|
|
209
|
-
|
|
210
|
-
const rateSearchWidgetProps = {
|
|
211
|
-
...widgetValues,
|
|
212
|
-
t,
|
|
213
|
-
onAbort: this.onRateWidgetClose,
|
|
214
|
-
onApply: this.onRateWidgetChange,
|
|
215
|
-
className: classNames(
|
|
216
|
-
styles.rateSearchWidget, rateWidgetClassName,
|
|
217
|
-
styles[rateWidgetIsModal ? 'modal' : rateWidgetPosition]
|
|
218
|
-
)
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
if (!rateWidgetIsModal) {
|
|
222
|
-
return <RateSearchWidget {...rateSearchWidgetProps} />;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (this.modalWrapper) {
|
|
226
|
-
return ReactDOM.createPortal(<RateSearchWidget {...rateSearchWidgetProps} />, this.modalWrapper);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
return null;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
renderContent = () => {
|
|
233
|
-
const { manufacturers, models, bodyTypes, filters, modelsLoading,
|
|
234
|
-
costType, rateWidgetIsOpened, contrastMode, onCostTypeChange, onRateWidgetOpen, isDealerWPpage
|
|
235
|
-
} = this.props;
|
|
236
|
-
const isRateSelected = costType === 'rate';
|
|
237
|
-
|
|
238
|
-
const baseCompactDropdownProps = {
|
|
239
|
-
styles: colourStyles,
|
|
240
|
-
isClearable: true,
|
|
241
|
-
scrollToInputOnFocus: isMobile
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
const makeProps = {
|
|
245
|
-
...baseCompactDropdownProps,
|
|
246
|
-
isCreatable: false,
|
|
247
|
-
isClearable: true,
|
|
248
|
-
name: MANUFACTURER,
|
|
249
|
-
value: filters[MANUFACTURER],
|
|
250
|
-
options: manufacturers,
|
|
251
|
-
placeholder: 'Marke auswählen',
|
|
252
|
-
components: {
|
|
253
|
-
SingleValue: SingleValueWithIcon('magnifyingGlass', MagnifyingGlass),
|
|
254
|
-
Placeholder: PlaceholderWithIcon('magnifyingGlass', MagnifyingGlass)
|
|
255
|
-
},
|
|
256
|
-
className: classNames(
|
|
257
|
-
styles.compactWidgetDropdown,
|
|
258
|
-
styles.gridAreaMake,
|
|
259
|
-
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
260
|
-
),
|
|
261
|
-
onChange: (value: any) => this.onFilterChange(value, MANUFACTURER)
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
const modelProps = {
|
|
265
|
-
...baseCompactDropdownProps,
|
|
266
|
-
isCreatable: false,
|
|
267
|
-
isClearable: true,
|
|
268
|
-
name: MODEL,
|
|
269
|
-
value: filters[MODEL],
|
|
270
|
-
options: models,
|
|
271
|
-
placeholder: 'Modell auswählen',
|
|
272
|
-
components: {
|
|
273
|
-
SingleValue: SingleValueWithIcon('magnifyingGlass', MagnifyingGlass),
|
|
274
|
-
Placeholder: PlaceholderWithIcon('magnifyingGlass', MagnifyingGlass)
|
|
275
|
-
},
|
|
276
|
-
className: classNames(
|
|
277
|
-
styles.compactWidgetDropdown,
|
|
278
|
-
styles.gridAreaModel,
|
|
279
|
-
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
280
|
-
),
|
|
281
|
-
onChange: (value: any) => this.onFilterChange(value, MODEL),
|
|
282
|
-
isLoading: modelsLoading
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
const bodyTypeProps = {
|
|
286
|
-
...baseCompactDropdownProps,
|
|
287
|
-
name: BODY_TYPE,
|
|
288
|
-
className: classNames(
|
|
289
|
-
styles.compactWidgetDropdown,
|
|
290
|
-
styles.gridAreaBodyType,
|
|
291
|
-
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
292
|
-
),
|
|
293
|
-
// value: filters[BODY_TYPE] ? filters[BODY_TYPE].map((value: any) => this.getValue(BODY_TYPE, value)) : '',
|
|
294
|
-
// double check on filters. Wrong object-array may arrive
|
|
295
|
-
value: filters[BODY_TYPE] && Array.isArray(filters[BODY_TYPE])
|
|
296
|
-
? filters[BODY_TYPE].map((value: any) => this.getValue(BODY_TYPE, value))
|
|
297
|
-
: filters[BODY_TYPE] && filters[BODY_TYPE].value && Array.isArray(filters[BODY_TYPE].value)
|
|
298
|
-
? filters[BODY_TYPE].value.map((value: any) => this.getValue(BODY_TYPE, value))
|
|
299
|
-
: '',
|
|
300
|
-
|
|
301
|
-
options: this.getOptions(BODY_TYPE, bodyTypes),
|
|
302
|
-
components: {
|
|
303
|
-
Placeholder: PlaceholderWithIcon('carFront', CarFront),
|
|
304
|
-
MultiValue: MultiValueWithBodyType(BodyTypeIcons)
|
|
305
|
-
},
|
|
306
|
-
placeholder: 'Karosserieform auswählen',
|
|
307
|
-
onChange: (value: any) => {
|
|
308
|
-
if (!value) {
|
|
309
|
-
this.onFilterChange(null, BODY_TYPE);
|
|
310
|
-
return;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
const isMultiValue = value.map((value: any) => value.value);
|
|
314
|
-
this.onFilterChange(isMultiValue, BODY_TYPE);
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
const firstRegistrationProps = {
|
|
319
|
-
...baseCompactDropdownProps,
|
|
320
|
-
isCreatable: true,
|
|
321
|
-
formatCreateLabel: (inputValue: any) => `${inputValue}`,
|
|
322
|
-
name: FIRST_REGISTRATION,
|
|
323
|
-
value: filters[FIRST_REGISTRATION],
|
|
324
|
-
options: this.getOptions(FIRST_REGISTRATION, FIRST_REGISTRATION_OPTIONS),
|
|
325
|
-
placeholder: 'EZ von',
|
|
326
|
-
components: {
|
|
327
|
-
SingleValue: SingleValueWithIcon('calendar', Calendar),
|
|
328
|
-
Placeholder: PlaceholderWithIcon('calendar', Calendar)
|
|
329
|
-
},
|
|
330
|
-
className: classNames(
|
|
331
|
-
styles.compactWidgetDropdown,
|
|
332
|
-
styles.gridAreaFirstRegistration,
|
|
333
|
-
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
334
|
-
),
|
|
335
|
-
onChange: (value: any) => this.onFilterChange(value, FIRST_REGISTRATION),
|
|
336
|
-
isValidNewOption: this.isValidNumericOption,
|
|
337
|
-
onBlur: (_event: React.FocusEvent<HTMLElement>, inputValue: any) => {
|
|
338
|
-
if (this.isValidNumericOption(inputValue)) {
|
|
339
|
-
this.onFilterChange({ value: inputValue, label: inputValue }, FIRST_REGISTRATION);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
const millageProps = {
|
|
345
|
-
...baseCompactDropdownProps,
|
|
346
|
-
isCreatable: true,
|
|
347
|
-
formatCreateLabel: (inputValue: any) => `${inputValue} km`,
|
|
348
|
-
name: MILEAGE,
|
|
349
|
-
value: filters[MILEAGE],
|
|
350
|
-
options: this.getOptions(MILEAGE, MILEAGE_OPTIONS, MILEAGE_UNIT),
|
|
351
|
-
placeholder: 'Kilometer bis',
|
|
352
|
-
components: {
|
|
353
|
-
SingleValue: SingleValueWithIcon('speedometer', Speedometer),
|
|
354
|
-
Placeholder: PlaceholderWithIcon('speedometer', Speedometer)
|
|
355
|
-
},
|
|
356
|
-
className: classNames(
|
|
357
|
-
styles.compactWidgetDropdown,
|
|
358
|
-
styles.gridAreaMileage,
|
|
359
|
-
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
360
|
-
),
|
|
361
|
-
onChange: (value: any) => {
|
|
362
|
-
this.onFilterChange(
|
|
363
|
-
value ? {
|
|
364
|
-
value: +value.value,
|
|
365
|
-
label: this.getFormattedLabel(MILEAGE, value.value, MILEAGE_UNIT)
|
|
366
|
-
} : false,
|
|
367
|
-
MILEAGE);
|
|
368
|
-
},
|
|
369
|
-
isValidNewOption: this.isValidNumericOption,
|
|
370
|
-
onBlur: (_event: React.FocusEvent<HTMLElement>, inputValue: any) => {
|
|
371
|
-
if (this.isValidNumericOption(inputValue)) {
|
|
372
|
-
this.onFilterChange(
|
|
373
|
-
{ value: +inputValue, label: this.getFormattedLabel(MILEAGE, inputValue, MILEAGE_UNIT) },
|
|
374
|
-
MILEAGE
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
const priceProps: IRangeGroupProps = {
|
|
381
|
-
isClearable: true,
|
|
382
|
-
isCreatable: true,
|
|
383
|
-
dropdownClassName: classNames(styles.compactWidgetDropdown, styles.gridAreaPrice),
|
|
384
|
-
styles: colourStyles,
|
|
385
|
-
name: PRICE,
|
|
386
|
-
value: filters[PRICE],
|
|
387
|
-
options: PRICE_OPTIONS,
|
|
388
|
-
unit: PRICE_UNIT,
|
|
389
|
-
placeholders: ['Preis von', 'Preis bis'],
|
|
390
|
-
components: [
|
|
391
|
-
{
|
|
392
|
-
SingleValue: SingleValueWithIcon('euroCurrency', EuroCurrency),
|
|
393
|
-
Placeholder: PlaceholderWithIcon('euroCurrency', EuroCurrency)
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
SingleValue: SingleValueWithIcon('euroCurrency', EuroCurrency),
|
|
397
|
-
Placeholder: PlaceholderWithIcon('euroCurrency', EuroCurrency)
|
|
398
|
-
}
|
|
399
|
-
],
|
|
400
|
-
fromProps: {
|
|
401
|
-
formatCreateLabel: (inputValue: any) => `${inputValue}`,
|
|
402
|
-
// only allow to create new numeric options
|
|
403
|
-
isValidNewOption: this.isValidNumericOption,
|
|
404
|
-
scrollToInputOnFocus: isMobile,
|
|
405
|
-
onBlur: (_event: React.SyntheticEvent<HTMLInputElement>, inputValue: any) => {
|
|
406
|
-
if (this.isValidNumericOption(inputValue)) {
|
|
407
|
-
this.onFilterChange({ ..._get(this, ['props', 'filters', PRICE], {}), [FROM_KEY]: inputValue }, PRICE);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
toProps: {
|
|
412
|
-
formatCreateLabel: (inputValue: any) => `${inputValue}`,
|
|
413
|
-
// only allow to create new numeric options`
|
|
414
|
-
isValidNewOption: this.isValidNumericOption,
|
|
415
|
-
scrollToInputOnFocus: isMobile,
|
|
416
|
-
onBlur: (_event: React.SyntheticEvent<HTMLInputElement>, inputValue: any) => {
|
|
417
|
-
if (this.isValidNumericOption(inputValue)) {
|
|
418
|
-
this.onFilterChange({ ..._get(this, ['props', 'filters', PRICE], {}), [TO_KEY]: inputValue }, PRICE);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
onChange: this.onFilterChange
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
const radioGroupProps = {
|
|
426
|
-
value: costType,
|
|
427
|
-
name: 'COST_TYPE',
|
|
428
|
-
containerClassName: classNames(styles.radioGroup, styles.gridAreaRadioGroup),
|
|
429
|
-
childClassName: styles.radioGroupChild,
|
|
430
|
-
wrapperClassname: classNames({ [styles.contrastMode]: contrastMode }),
|
|
431
|
-
onChange: onCostTypeChange
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
const RateSearchValueProps = {
|
|
435
|
-
...filters[RATE],
|
|
436
|
-
t,
|
|
437
|
-
className: classNames(styles.rateSearchValue, styles.gridAreaRateSearchValue),
|
|
438
|
-
showLabel: true,
|
|
439
|
-
onClick: this.onRateWidgetOpen
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
const changeRateLinkProps = {
|
|
443
|
-
className: classNames(styles.changeRateLink, styles.gridAreaRateLink, { [styles.contrastMode]: contrastMode }),
|
|
444
|
-
onClick: onRateWidgetOpen
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
return (
|
|
448
|
-
<>
|
|
449
|
-
<DropDown {...makeProps} />
|
|
450
|
-
<DropDown {...modelProps} />
|
|
451
|
-
<MultiDropDown {...bodyTypeProps} />
|
|
452
|
-
<DropDown {...firstRegistrationProps} />
|
|
453
|
-
<DropDown {...millageProps} />
|
|
454
|
-
{!isDealerWPpage && (
|
|
455
|
-
<>
|
|
456
|
-
<RadioGroup {...radioGroupProps}>
|
|
457
|
-
<RadioButton label='Rate' value='rate' />
|
|
458
|
-
<RadioButton label='Preis' value='price' />
|
|
459
|
-
</RadioGroup>
|
|
460
|
-
{isRateSelected ? <span {...changeRateLinkProps}>{'ändern'}</span> : null}
|
|
461
|
-
{isRateSelected
|
|
462
|
-
? <RateSearchValue {...RateSearchValueProps} />
|
|
463
|
-
: <DropDownGroup {...priceProps} />
|
|
464
|
-
}
|
|
465
|
-
{rateWidgetIsOpened ? this.renderRateWidget() : null}
|
|
466
|
-
</>
|
|
467
|
-
)}
|
|
468
|
-
</>
|
|
469
|
-
);
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
render() {
|
|
473
|
-
return this.renderContent();
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
export default CompactSearchFields;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import _get from 'lodash/get';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
|
|
6
|
+
import BodyTypeIcons from '../../_common/BodyTypeIcons/IconsConfigCompact';
|
|
7
|
+
import FormattedNumber from '../../FormattedNumber/FormattedNumber';
|
|
8
|
+
import {
|
|
9
|
+
DropDown, MultiDropDown, DropDownGroup, SingleValueWithIcon,
|
|
10
|
+
PlaceholderWithIcon, MultiValueWithBodyType
|
|
11
|
+
} from '../../_common/DropDown';
|
|
12
|
+
import {
|
|
13
|
+
MANUFACTURER, MODEL, FIRST_REGISTRATION, FIRST_REGISTRATION_OPTIONS, BODY_TYPE,
|
|
14
|
+
MILEAGE, MILEAGE_OPTIONS, MILEAGE_UNIT, PRICE, PRICE_OPTIONS, PRICE_UNIT, RATE, TEMP_LOCAL, TO_KEY, FROM_KEY, MAX_MOBILE_WIDTH,
|
|
15
|
+
MODAL_WRAPPER_ID, RATE_DEFAULT, RATE_DEFAULT_CONTROLS
|
|
16
|
+
} from '../../../framework/constants/SearchWidget';
|
|
17
|
+
import { checkRangeValuesOnEqual } from '../../../framework/utils/CommonUtils';
|
|
18
|
+
// import { IDropDownProps } from '../../_common/DropDown/DropDown';
|
|
19
|
+
import { IRangeGroupProps } from '../../_common/DropDown/DropDownGroup';
|
|
20
|
+
|
|
21
|
+
import RadioGroup from '../../_common/Radio/RadioGroup';
|
|
22
|
+
import { default as RadioButton } from '../../_common/Radio/Radio';
|
|
23
|
+
import RateSearchValue from '../../RateSearchValue/RateSearchValue';
|
|
24
|
+
import RateSearchWidget from '../../RateSearchWidget/RateSearchWidget';
|
|
25
|
+
|
|
26
|
+
import MagnifyingGlass from '../../../components/_common/IconSVG/SVG/common/MagnifyingGlass';
|
|
27
|
+
import Calendar from '../../../components/_common/IconSVG/SVG/common/Calendar';
|
|
28
|
+
import Speedometer from '../../../components/_common/IconSVG/SVG/common/Speedometer';
|
|
29
|
+
import EuroCurrency from '../../../components/_common/IconSVG/SVG/common/EuroCurrency';
|
|
30
|
+
import CarFront from '../../../components/_common/IconSVG/SVG/common/CarFront';
|
|
31
|
+
|
|
32
|
+
import styles from './CompactSearchFields.styl';
|
|
33
|
+
|
|
34
|
+
const colourStyles = {
|
|
35
|
+
option: (styles: any, props: any) => {
|
|
36
|
+
const { data, isDisabled, isSelected, isFocused } = props;
|
|
37
|
+
const { isSeries = false } = data;
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
...styles,
|
|
41
|
+
fontSize: isDisabled || isSeries ? '13px' : '14px',
|
|
42
|
+
fontWeight: isDisabled || isSeries ? 'bold' : 'normal',
|
|
43
|
+
color: isDisabled || isSeries ? '#1f1f1f' : isSelected || isFocused ? '#ffffff' : '#333333',
|
|
44
|
+
textTransform: isDisabled || isSeries ? 'uppercase' : 'none',
|
|
45
|
+
backgroundColor: isDisabled || isSeries ? '#e8e8e8' : isFocused ? '#005CCB' : '#fff',
|
|
46
|
+
pointerEvents: isDisabled || data.value === 'default' ? 'none' : isSeries ? 'auto' : 'auto'
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const t = (phrase: string, options: any = {}) => {
|
|
52
|
+
const { value } = options;
|
|
53
|
+
|
|
54
|
+
const dictionary: any = {
|
|
55
|
+
title: 'Ratendetails anpassen',
|
|
56
|
+
months: 'Monate',
|
|
57
|
+
monthlyInstallment: 'Monatsrate (€)',
|
|
58
|
+
monthlyInstallmentFrom: 'Monatsrate von (€)',
|
|
59
|
+
monthlyInstallmentTo: 'Monatsrate bis (€)',
|
|
60
|
+
firstInstallment: 'Anzahlung',
|
|
61
|
+
paybackPeriod: 'Laufzeit',
|
|
62
|
+
any: 'beliebig',
|
|
63
|
+
|
|
64
|
+
firstInstallmentPlaceholder: 'Anzahlung',
|
|
65
|
+
monthlyInstallmentFromPlaceholder: 'Monatsrate von',
|
|
66
|
+
monthlyInstallmentToPlaceholder: 'Monatsrate bis',
|
|
67
|
+
paybackPeriodPlaceholder: 'Laufzeit',
|
|
68
|
+
|
|
69
|
+
apply: 'Anwenden',
|
|
70
|
+
abort: 'abbrechen',
|
|
71
|
+
|
|
72
|
+
monthlyInstallmentLabel: 'Monatsrate:',
|
|
73
|
+
defaultValue: 'beliebig, 60 Monate',
|
|
74
|
+
monthlyInstallmentFromValue: `ab ${value} €`,
|
|
75
|
+
monthlyInstallmentToValue: `bis ${value} €`,
|
|
76
|
+
paybackPeriodValue: `${value} Monate`,
|
|
77
|
+
firstInstallmentValue: `${value} € Anzahlung`
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
return dictionary[phrase];
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export interface ICompactSearchFieldsProps {
|
|
84
|
+
manufacturers?: any;
|
|
85
|
+
models?: any;
|
|
86
|
+
bodyTypes?: string[];
|
|
87
|
+
filters?: any;
|
|
88
|
+
modelsLoading?: boolean;
|
|
89
|
+
isDealerWPpage?: boolean;
|
|
90
|
+
costType?: string;
|
|
91
|
+
contrastMode: boolean;
|
|
92
|
+
|
|
93
|
+
rateWidgetIsOpened?: boolean;
|
|
94
|
+
rateWidgetPosition?: 'left' | 'right';
|
|
95
|
+
rateWidgetIsModal?: boolean;
|
|
96
|
+
rateWidgetClassName?: string;
|
|
97
|
+
|
|
98
|
+
onFilterChange?: (value: any, name: string) => void;
|
|
99
|
+
onCostTypeChange: (event: React.SyntheticEvent, value: string) => void;
|
|
100
|
+
onRateWidgetOpen: () => void;
|
|
101
|
+
onRateWidgetClose: () => void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const isMobile = process.browser ? window.innerWidth < MAX_MOBILE_WIDTH : false;
|
|
105
|
+
|
|
106
|
+
class CompactSearchFields extends React.Component<ICompactSearchFieldsProps, {}> {
|
|
107
|
+
private modalWrapper: HTMLElement = null;
|
|
108
|
+
|
|
109
|
+
static readonly defaultProps = {
|
|
110
|
+
rateWidgetIsModal: false,
|
|
111
|
+
isDealerWPpage: false
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
componentDidMount() {
|
|
115
|
+
this.modalWrapper = document.createElement('div');
|
|
116
|
+
this.modalWrapper.id = MODAL_WRAPPER_ID;
|
|
117
|
+
document.body.appendChild(this.modalWrapper);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
componentDidUpdate() {
|
|
121
|
+
const { rateWidgetIsOpened, rateWidgetIsModal } = this.props;
|
|
122
|
+
if (rateWidgetIsModal) {
|
|
123
|
+
if (rateWidgetIsOpened) {
|
|
124
|
+
this.modalWrapper.classList.add(styles.modalWrapper);
|
|
125
|
+
document.body.classList.add(styles.body);
|
|
126
|
+
} else {
|
|
127
|
+
this.modalWrapper.classList.remove(styles.modalWrapper);
|
|
128
|
+
document.body.classList.remove(styles.body);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
componentWillUnmount() {
|
|
134
|
+
if (!!this.modalWrapper) {
|
|
135
|
+
document.body.removeChild(this.modalWrapper);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
onFilterChange = (value: any, name: string) => {
|
|
140
|
+
const { onFilterChange } = this.props;
|
|
141
|
+
onFilterChange(value, name);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
onRateWidgetChange = (value: any) => {
|
|
145
|
+
const { onFilterChange } = this.props;
|
|
146
|
+
|
|
147
|
+
onFilterChange(value, RATE);
|
|
148
|
+
this.onRateWidgetClose();
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
onRateWidgetOpen = () => {
|
|
152
|
+
if (this.props.rateWidgetIsModal) {
|
|
153
|
+
this.modalWrapper.classList.add(styles.modalWrapper);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
this.props.onRateWidgetOpen();
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
onRateWidgetClose = () => {
|
|
160
|
+
if (this.props.rateWidgetIsModal) {
|
|
161
|
+
this.modalWrapper.classList.remove(styles.modalWrapper);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
this.props.onRateWidgetClose();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
getLabel = (option: string, title: string): React.ReactNode => {
|
|
168
|
+
const Icon: any = BodyTypeIcons[option];
|
|
169
|
+
return (
|
|
170
|
+
<span className={styles.icon} key={title}>
|
|
171
|
+
<span className={styles.icon__desc}>{`${TEMP_LOCAL[title][option]}`}</span>
|
|
172
|
+
<Icon className={styles.icon__svg} />
|
|
173
|
+
</span>
|
|
174
|
+
);
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
getFormattedLabel = (name: string, option: number | string, unit?: string): React.ReactNode => {
|
|
178
|
+
if (name !== FIRST_REGISTRATION) {
|
|
179
|
+
return (
|
|
180
|
+
<span key={name}>
|
|
181
|
+
<FormattedNumber value={+option} numbersAfterDot={0} />
|
|
182
|
+
{unit ? ` ${unit}` : false}
|
|
183
|
+
</span>
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return `${option} ${unit ? unit : ''}`;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
getValue = (name: string, value: string) => ({
|
|
191
|
+
value,
|
|
192
|
+
label: name === BODY_TYPE ? `${TEMP_LOCAL[name][value]}` : value
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
getOptions = (name: string, options: any, unit?: string) =>
|
|
196
|
+
options.map((option: string) => ({
|
|
197
|
+
value: option,
|
|
198
|
+
label: name === BODY_TYPE ? this.getLabel(option, name) : this.getFormattedLabel(name, option, unit)
|
|
199
|
+
}));
|
|
200
|
+
|
|
201
|
+
isValidNumericOption = (inputValue: any): boolean => !!inputValue.trim() && !isNaN(inputValue.trim());
|
|
202
|
+
|
|
203
|
+
isValidTextOption = (inputValue: any): boolean => !!inputValue.trim();
|
|
204
|
+
|
|
205
|
+
renderRateWidget = () => {
|
|
206
|
+
const { filters, rateWidgetPosition, rateWidgetIsModal, rateWidgetClassName } = this.props;
|
|
207
|
+
const isRateDefault = checkRangeValuesOnEqual(RATE_DEFAULT, filters[RATE]);
|
|
208
|
+
const widgetValues = isRateDefault ? RATE_DEFAULT_CONTROLS : filters[RATE];
|
|
209
|
+
|
|
210
|
+
const rateSearchWidgetProps = {
|
|
211
|
+
...widgetValues,
|
|
212
|
+
t,
|
|
213
|
+
onAbort: this.onRateWidgetClose,
|
|
214
|
+
onApply: this.onRateWidgetChange,
|
|
215
|
+
className: classNames(
|
|
216
|
+
styles.rateSearchWidget, rateWidgetClassName,
|
|
217
|
+
styles[rateWidgetIsModal ? 'modal' : rateWidgetPosition]
|
|
218
|
+
)
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
if (!rateWidgetIsModal) {
|
|
222
|
+
return <RateSearchWidget {...rateSearchWidgetProps} />;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (this.modalWrapper) {
|
|
226
|
+
return ReactDOM.createPortal(<RateSearchWidget {...rateSearchWidgetProps} />, this.modalWrapper);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
renderContent = () => {
|
|
233
|
+
const { manufacturers, models, bodyTypes, filters, modelsLoading,
|
|
234
|
+
costType, rateWidgetIsOpened, contrastMode, onCostTypeChange, onRateWidgetOpen, isDealerWPpage
|
|
235
|
+
} = this.props;
|
|
236
|
+
const isRateSelected = costType === 'rate';
|
|
237
|
+
|
|
238
|
+
const baseCompactDropdownProps = {
|
|
239
|
+
styles: colourStyles,
|
|
240
|
+
isClearable: true,
|
|
241
|
+
scrollToInputOnFocus: isMobile
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
const makeProps = {
|
|
245
|
+
...baseCompactDropdownProps,
|
|
246
|
+
isCreatable: false,
|
|
247
|
+
isClearable: true,
|
|
248
|
+
name: MANUFACTURER,
|
|
249
|
+
value: filters[MANUFACTURER],
|
|
250
|
+
options: manufacturers,
|
|
251
|
+
placeholder: 'Marke auswählen',
|
|
252
|
+
components: {
|
|
253
|
+
SingleValue: SingleValueWithIcon('magnifyingGlass', MagnifyingGlass),
|
|
254
|
+
Placeholder: PlaceholderWithIcon('magnifyingGlass', MagnifyingGlass)
|
|
255
|
+
},
|
|
256
|
+
className: classNames(
|
|
257
|
+
styles.compactWidgetDropdown,
|
|
258
|
+
styles.gridAreaMake,
|
|
259
|
+
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
260
|
+
),
|
|
261
|
+
onChange: (value: any) => this.onFilterChange(value, MANUFACTURER)
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
const modelProps = {
|
|
265
|
+
...baseCompactDropdownProps,
|
|
266
|
+
isCreatable: false,
|
|
267
|
+
isClearable: true,
|
|
268
|
+
name: MODEL,
|
|
269
|
+
value: filters[MODEL],
|
|
270
|
+
options: models,
|
|
271
|
+
placeholder: 'Modell auswählen',
|
|
272
|
+
components: {
|
|
273
|
+
SingleValue: SingleValueWithIcon('magnifyingGlass', MagnifyingGlass),
|
|
274
|
+
Placeholder: PlaceholderWithIcon('magnifyingGlass', MagnifyingGlass)
|
|
275
|
+
},
|
|
276
|
+
className: classNames(
|
|
277
|
+
styles.compactWidgetDropdown,
|
|
278
|
+
styles.gridAreaModel,
|
|
279
|
+
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
280
|
+
),
|
|
281
|
+
onChange: (value: any) => this.onFilterChange(value, MODEL),
|
|
282
|
+
isLoading: modelsLoading
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
const bodyTypeProps = {
|
|
286
|
+
...baseCompactDropdownProps,
|
|
287
|
+
name: BODY_TYPE,
|
|
288
|
+
className: classNames(
|
|
289
|
+
styles.compactWidgetDropdown,
|
|
290
|
+
styles.gridAreaBodyType,
|
|
291
|
+
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
292
|
+
),
|
|
293
|
+
// value: filters[BODY_TYPE] ? filters[BODY_TYPE].map((value: any) => this.getValue(BODY_TYPE, value)) : '',
|
|
294
|
+
// double check on filters. Wrong object-array may arrive
|
|
295
|
+
value: filters[BODY_TYPE] && Array.isArray(filters[BODY_TYPE])
|
|
296
|
+
? filters[BODY_TYPE].map((value: any) => this.getValue(BODY_TYPE, value))
|
|
297
|
+
: filters[BODY_TYPE] && filters[BODY_TYPE].value && Array.isArray(filters[BODY_TYPE].value)
|
|
298
|
+
? filters[BODY_TYPE].value.map((value: any) => this.getValue(BODY_TYPE, value))
|
|
299
|
+
: '',
|
|
300
|
+
|
|
301
|
+
options: this.getOptions(BODY_TYPE, bodyTypes),
|
|
302
|
+
components: {
|
|
303
|
+
Placeholder: PlaceholderWithIcon('carFront', CarFront),
|
|
304
|
+
MultiValue: MultiValueWithBodyType(BodyTypeIcons)
|
|
305
|
+
},
|
|
306
|
+
placeholder: 'Karosserieform auswählen',
|
|
307
|
+
onChange: (value: any) => {
|
|
308
|
+
if (!value) {
|
|
309
|
+
this.onFilterChange(null, BODY_TYPE);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
const isMultiValue = value.map((value: any) => value.value);
|
|
314
|
+
this.onFilterChange(isMultiValue, BODY_TYPE);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const firstRegistrationProps = {
|
|
319
|
+
...baseCompactDropdownProps,
|
|
320
|
+
isCreatable: true,
|
|
321
|
+
formatCreateLabel: (inputValue: any) => `${inputValue}`,
|
|
322
|
+
name: FIRST_REGISTRATION,
|
|
323
|
+
value: filters[FIRST_REGISTRATION],
|
|
324
|
+
options: this.getOptions(FIRST_REGISTRATION, FIRST_REGISTRATION_OPTIONS),
|
|
325
|
+
placeholder: 'EZ von',
|
|
326
|
+
components: {
|
|
327
|
+
SingleValue: SingleValueWithIcon('calendar', Calendar),
|
|
328
|
+
Placeholder: PlaceholderWithIcon('calendar', Calendar)
|
|
329
|
+
},
|
|
330
|
+
className: classNames(
|
|
331
|
+
styles.compactWidgetDropdown,
|
|
332
|
+
styles.gridAreaFirstRegistration,
|
|
333
|
+
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
334
|
+
),
|
|
335
|
+
onChange: (value: any) => this.onFilterChange(value, FIRST_REGISTRATION),
|
|
336
|
+
isValidNewOption: this.isValidNumericOption,
|
|
337
|
+
onBlur: (_event: React.FocusEvent<HTMLElement>, inputValue: any) => {
|
|
338
|
+
if (this.isValidNumericOption(inputValue)) {
|
|
339
|
+
this.onFilterChange({ value: inputValue, label: inputValue }, FIRST_REGISTRATION);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
const millageProps = {
|
|
345
|
+
...baseCompactDropdownProps,
|
|
346
|
+
isCreatable: true,
|
|
347
|
+
formatCreateLabel: (inputValue: any) => `${inputValue} km`,
|
|
348
|
+
name: MILEAGE,
|
|
349
|
+
value: filters[MILEAGE],
|
|
350
|
+
options: this.getOptions(MILEAGE, MILEAGE_OPTIONS, MILEAGE_UNIT),
|
|
351
|
+
placeholder: 'Kilometer bis',
|
|
352
|
+
components: {
|
|
353
|
+
SingleValue: SingleValueWithIcon('speedometer', Speedometer),
|
|
354
|
+
Placeholder: PlaceholderWithIcon('speedometer', Speedometer)
|
|
355
|
+
},
|
|
356
|
+
className: classNames(
|
|
357
|
+
styles.compactWidgetDropdown,
|
|
358
|
+
styles.gridAreaMileage,
|
|
359
|
+
{ [styles.horizontalFieldHeight]: isDealerWPpage }
|
|
360
|
+
),
|
|
361
|
+
onChange: (value: any) => {
|
|
362
|
+
this.onFilterChange(
|
|
363
|
+
value ? {
|
|
364
|
+
value: +value.value,
|
|
365
|
+
label: this.getFormattedLabel(MILEAGE, value.value, MILEAGE_UNIT)
|
|
366
|
+
} : false,
|
|
367
|
+
MILEAGE);
|
|
368
|
+
},
|
|
369
|
+
isValidNewOption: this.isValidNumericOption,
|
|
370
|
+
onBlur: (_event: React.FocusEvent<HTMLElement>, inputValue: any) => {
|
|
371
|
+
if (this.isValidNumericOption(inputValue)) {
|
|
372
|
+
this.onFilterChange(
|
|
373
|
+
{ value: +inputValue, label: this.getFormattedLabel(MILEAGE, inputValue, MILEAGE_UNIT) },
|
|
374
|
+
MILEAGE
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
const priceProps: IRangeGroupProps = {
|
|
381
|
+
isClearable: true,
|
|
382
|
+
isCreatable: true,
|
|
383
|
+
dropdownClassName: classNames(styles.compactWidgetDropdown, styles.gridAreaPrice),
|
|
384
|
+
styles: colourStyles,
|
|
385
|
+
name: PRICE,
|
|
386
|
+
value: filters[PRICE],
|
|
387
|
+
options: PRICE_OPTIONS,
|
|
388
|
+
unit: PRICE_UNIT,
|
|
389
|
+
placeholders: ['Preis von', 'Preis bis'],
|
|
390
|
+
components: [
|
|
391
|
+
{
|
|
392
|
+
SingleValue: SingleValueWithIcon('euroCurrency', EuroCurrency),
|
|
393
|
+
Placeholder: PlaceholderWithIcon('euroCurrency', EuroCurrency)
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
SingleValue: SingleValueWithIcon('euroCurrency', EuroCurrency),
|
|
397
|
+
Placeholder: PlaceholderWithIcon('euroCurrency', EuroCurrency)
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
fromProps: {
|
|
401
|
+
formatCreateLabel: (inputValue: any) => `${inputValue}`,
|
|
402
|
+
// only allow to create new numeric options
|
|
403
|
+
isValidNewOption: this.isValidNumericOption,
|
|
404
|
+
scrollToInputOnFocus: isMobile,
|
|
405
|
+
onBlur: (_event: React.SyntheticEvent<HTMLInputElement>, inputValue: any) => {
|
|
406
|
+
if (this.isValidNumericOption(inputValue)) {
|
|
407
|
+
this.onFilterChange({ ..._get(this, ['props', 'filters', PRICE], {}), [FROM_KEY]: inputValue }, PRICE);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
toProps: {
|
|
412
|
+
formatCreateLabel: (inputValue: any) => `${inputValue}`,
|
|
413
|
+
// only allow to create new numeric options`
|
|
414
|
+
isValidNewOption: this.isValidNumericOption,
|
|
415
|
+
scrollToInputOnFocus: isMobile,
|
|
416
|
+
onBlur: (_event: React.SyntheticEvent<HTMLInputElement>, inputValue: any) => {
|
|
417
|
+
if (this.isValidNumericOption(inputValue)) {
|
|
418
|
+
this.onFilterChange({ ..._get(this, ['props', 'filters', PRICE], {}), [TO_KEY]: inputValue }, PRICE);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
onChange: this.onFilterChange
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
const radioGroupProps = {
|
|
426
|
+
value: costType,
|
|
427
|
+
name: 'COST_TYPE',
|
|
428
|
+
containerClassName: classNames(styles.radioGroup, styles.gridAreaRadioGroup),
|
|
429
|
+
childClassName: styles.radioGroupChild,
|
|
430
|
+
wrapperClassname: classNames({ [styles.contrastMode]: contrastMode }),
|
|
431
|
+
onChange: onCostTypeChange
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
const RateSearchValueProps = {
|
|
435
|
+
...filters[RATE],
|
|
436
|
+
t,
|
|
437
|
+
className: classNames(styles.rateSearchValue, styles.gridAreaRateSearchValue),
|
|
438
|
+
showLabel: true,
|
|
439
|
+
onClick: this.onRateWidgetOpen
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
const changeRateLinkProps = {
|
|
443
|
+
className: classNames(styles.changeRateLink, styles.gridAreaRateLink, { [styles.contrastMode]: contrastMode }),
|
|
444
|
+
onClick: onRateWidgetOpen
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
return (
|
|
448
|
+
<>
|
|
449
|
+
<DropDown {...makeProps} />
|
|
450
|
+
<DropDown {...modelProps} />
|
|
451
|
+
<MultiDropDown {...bodyTypeProps} />
|
|
452
|
+
<DropDown {...firstRegistrationProps} />
|
|
453
|
+
<DropDown {...millageProps} />
|
|
454
|
+
{!isDealerWPpage && (
|
|
455
|
+
<>
|
|
456
|
+
<RadioGroup {...radioGroupProps}>
|
|
457
|
+
<RadioButton label='Rate' value='rate' />
|
|
458
|
+
<RadioButton label='Preis' value='price' />
|
|
459
|
+
</RadioGroup>
|
|
460
|
+
{isRateSelected ? <span {...changeRateLinkProps}>{'ändern'}</span> : null}
|
|
461
|
+
{isRateSelected
|
|
462
|
+
? <RateSearchValue {...RateSearchValueProps} />
|
|
463
|
+
: <DropDownGroup {...priceProps} />
|
|
464
|
+
}
|
|
465
|
+
{rateWidgetIsOpened ? this.renderRateWidget() : null}
|
|
466
|
+
</>
|
|
467
|
+
)}
|
|
468
|
+
</>
|
|
469
|
+
);
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
render() {
|
|
473
|
+
return this.renderContent();
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export default CompactSearchFields;
|