@bytebrand/fe-ui-core 4.1.172 → 4.1.174
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/common.ts +5 -0
- package/media/svg/common/arrow_breadcrumps.svg +2 -2
- package/media/svg/common/home.svg +6 -8
- package/media/svg/common/whyAutodeIconSet-F.svg +8 -12
- package/media/svg/common/whyAutodeIconSet-G.svg +6 -8
- package/media/svg/common/whyAutodeIconSet-Q.svg +5 -15
- package/media/svg/common/whyAutodeIconSet-R.svg +8 -13
- package/media/svg/infoBlocks/whyAutodeIconSet-F.svg +8 -8
- package/media/svg/infoBlocks/whyAutodeIconSet-G.svg +7 -6
- package/media/svg/infoBlocks/whyAutodeIconSet-Q.svg +5 -11
- package/media/svg/infoBlocks/whyAutodeIconSet-R.svg +8 -9
- package/package.json +1 -1
- package/source/components/AccordionWidget/AccordionWidget.styl +0 -3
- package/source/components/AccordionWidget/AccordionWidget.tsx +1 -3
- package/source/components/Alternative/DealerInfo.styl +7 -1
- package/source/components/Alternative/DealerInfo.tsx +64 -38
- package/source/components/Breadcrumbs/Breadcrumbs.styl +31 -19
- package/source/components/Breadcrumbs/Breadcrumbs.tsx +3 -3
- package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.styl +11 -18
- package/source/components/PriceRating/PriceRating.styl +1 -0
- package/source/components/SearchFilters/common/RangeControlled/RangeControlled.tsx +2 -1
- package/source/components/SearchPage/SearchTopBar/SearchTopBar.styl +13 -3
- package/source/components/SearchPage/SearchTopBar/SearchTopBar.tsx +3 -3
- package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.styl +23 -17
- package/source/components/VehicleDetailedSidebar/partials/Properties.styl +0 -4
- package/source/components/VehicleDetailedSidebar/partials/Properties.tsx +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +54 -40
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +38 -16
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +47 -18
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +13 -6
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +48 -28
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +50 -16
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +6 -8
- package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +31 -12
- package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +8 -3
- package/source/components/VehicleSmallCard/VehicleSmallCard.styl +51 -19
- package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +39 -9
- package/source/components/_common/Badge/Badge.styl +13 -7
- package/source/components/_common/Badge/Badge.tsx +1 -1
- package/source/components/_common/Button/Button.styled.tsx +13 -8
- package/source/components/_common/Button/Button.tsx +1 -1
- package/source/components/_common/ExpansionPanel/ExpansionPanel.tsx +14 -4
- package/source/components/_common/IconSVG/IconSVG.story.js +1 -1
- package/source/components/_common/IconSVG/IconSVGConfig.tsx +90 -1
- package/source/components/_common/IconSVG/SVG/CloseIconSelect.tsx +1 -1
- package/source/components/_common/IconSVG/SVG/common/AddressDashboard.tsx +29 -0
- package/source/components/_common/IconSVG/SVG/common/CallbackDashboard.tsx +30 -0
- package/source/components/_common/IconSVG/SVG/common/CloseGrey.tsx +22 -0
- package/source/components/_common/IconSVG/SVG/common/DashboardQuestionMark.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/common/DeliveryDashboard.tsx +25 -0
- package/source/components/_common/IconSVG/SVG/common/EditPriceIcon.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/common/HandingOverDashboard.tsx +32 -0
- package/source/components/_common/IconSVG/SVG/common/MenuGrey.tsx +22 -0
- package/source/components/_common/IconSVG/SVG/common/MyOrderIcon.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/common/OrderReceivedDashboard.tsx +27 -0
- package/source/components/_common/IconSVG/SVG/common/PickupDashboard.tsx +30 -0
- package/source/components/_common/IconSVG/SVG/common/PreparationDashboard.tsx +29 -0
- package/source/components/_common/IconSVG/SVG/common/ProfileDashboard.tsx +24 -0
- package/source/components/_common/IconSVG/SVG/common/RegistrationDashboard.tsx +31 -0
- package/source/components/_common/IconSVG/SVG/common/SliderEye.tsx +2 -3
- package/source/components/_common/IconSVG/SVG/common/StarRoundedCorners.tsx +1 -1
- package/source/components/_common/IconSVG/SVG/flags/AT.tsx +19 -0
- package/source/components/_common/IconSVG/SVG/flags/BE.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/BG.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/CH.tsx +22 -0
- package/source/components/_common/IconSVG/SVG/flags/CZ.tsx +18 -0
- package/source/components/_common/IconSVG/SVG/flags/DE.tsx +18 -0
- package/source/components/_common/IconSVG/SVG/flags/DK.tsx +18 -0
- package/source/components/_common/IconSVG/SVG/flags/ES.tsx +2585 -0
- package/source/components/_common/IconSVG/SVG/flags/FI.tsx +18 -0
- package/source/components/_common/IconSVG/SVG/flags/FR.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/GB.tsx +26 -0
- package/source/components/_common/IconSVG/SVG/flags/HR.tsx +135 -0
- package/source/components/_common/IconSVG/SVG/flags/HU.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/IT.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/LI.tsx +106 -0
- package/source/components/_common/IconSVG/SVG/flags/LU.tsx +18 -0
- package/source/components/_common/IconSVG/SVG/flags/NL.tsx +18 -0
- package/source/components/_common/IconSVG/SVG/flags/NO.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/PL.tsx +19 -0
- package/source/components/_common/IconSVG/SVG/flags/RO.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/RU.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/SE.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/flags/SI.tsx +54 -0
- package/source/components/_common/IconSVG/SVG/flags/SK.tsx +35 -0
- package/source/components/_common/IconSVG/SVG/flags/UA.tsx +19 -0
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/AllWheelDrive.tsx +2 -2
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/FrontWheelDrive.tsx +2 -2
- package/source/components/_common/IconSVG/SVG/searchWidgets/drive/RearWheelDrive.tsx +2 -2
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelDiesel.tsx +4 -14
- package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelPetrol.tsx +1 -1
- package/source/components/_common/IconSVG/SVG/settings/RemoveEye.tsx +1 -1
- package/source/components/_common/IconSVG/SVG/settings/RemoveEyeOff.tsx +1 -1
- package/source/components/_common/IconSVG/SVG/slider/360New.tsx +20 -0
- package/source/components/_common/IconSVG/SVG/vehicle/CarAvailability.tsx +3 -3
- package/source/components/_common/IconSVG/SVG/vehicle/CheckoutChecked.tsx +2 -2
- package/source/components/_common/IconSVG/SVG/vehicle/Date.tsx +2 -2
- package/source/components/_common/IconSVG/SVG/vehicle/Door.tsx +5 -7
- package/source/components/_common/IconSVG/SVG/vehicle/FuelConsumption.tsx +1 -1
- package/source/components/_common/IconSVG/SVG/vehicle/NewCar.tsx +7 -9
- package/source/components/_common/IconSVG/SVG/vehicle/Ps.tsx +1 -1
- package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxAutomatic.tsx +2 -2
- package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +17 -1
- package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.tsx +3 -4
- package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.styled.tsx +6 -3
- package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.tsx +28 -3
- package/source/components/_common/MaterialSelect/MaterialSelect.styled.tsx +0 -7
- package/source/components/_common/MaterialSelect/MaterialSelect.tsx +16 -9
- package/source/components/_common/Modal/CookieModal.tsx +10 -7
- package/source/components/_common/Modal/Modal.styled.tsx +2 -1
- package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.styl +15 -3
- package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.tsx +5 -3
- package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.styl +11 -1
- package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.tsx +2 -0
- package/source/components/_common/TimePicker/TimePicker.styl +3 -1
- package/source/components/_common/TimePicker/TimePicker.tsx +6 -2
- package/source/components/_common/UserMenu/MaterialMenu.styled.tsx +2 -1
- package/source/components/_common/withStats/withStats.styl +43 -87
- package/source/components/_common/withStats/withStats.tsx +17 -8
- package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.styl +7 -3
- package/source/framework/constants/common.ts +15 -3
- package/source/framework/factories/BreadcrumbsFactory.tsx +19 -8
- package/source/framework/factories/FactoryTypes.d.ts +1 -0
- package/source/framework/types/types.ts +4 -2
- package/source/framework/utils/CommonUtils.ts +26 -9
- package/source/framework/vehiclesProps/decoratedProps.tsx +19 -23
- package/source/framework/vehiclesProps/equipment.ts +4 -3
- package/source/locales/data.ts +2 -0
- package/source/theme/priceReviewColors.styl +3 -1
- package/utils.ts +16 -0
|
@@ -81,14 +81,12 @@ class AccordionWidget extends React.Component<IAccardionSectionProps, IAccardion
|
|
|
81
81
|
|
|
82
82
|
renderExtendTable = (data: IEquipmentProps[] = [], header: string): React.ReactNode => {
|
|
83
83
|
const { t } = this.props;
|
|
84
|
-
|
|
85
84
|
return (
|
|
86
85
|
<div className= {classnames(styles.table, styles.tableMaxWitdth)}>
|
|
87
86
|
<h3 className={styles.tableName}>{header}</h3>
|
|
88
87
|
{data.map(({ title, icon, value = {} }, i) => {
|
|
89
88
|
const filteredKeys = Object.keys(value).filter(key => key !== 'selector_unknown' && value[key]);
|
|
90
89
|
if (filteredKeys.length === 0) return null;
|
|
91
|
-
|
|
92
90
|
return (
|
|
93
91
|
<div key={i} className={classnames(styles.tr, styles.trGrid)}>
|
|
94
92
|
<div className={styles.th}>
|
|
@@ -98,7 +96,7 @@ class AccordionWidget extends React.Component<IAccardionSectionProps, IAccardion
|
|
|
98
96
|
<div className={styles.tdContent}>
|
|
99
97
|
{filteredKeys.map((prop: string) => (
|
|
100
98
|
<div className={styles.wrapChecked} key={prop}>
|
|
101
|
-
<IconSVG name={'checkBlue'} className={styles.cellCheckIcon} customDimensions />
|
|
99
|
+
<IconSVG name={prop.startsWith('extras_trailerCoupling') ? 'search_trailerHitch' : 'checkBlue'} className={styles.cellCheckIcon} customDimensions />
|
|
102
100
|
<span className={styles.checkedItem}>{t(`cbd:${prop}`)}</span>
|
|
103
101
|
</div>
|
|
104
102
|
))}
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
width: 1.5rem;
|
|
97
97
|
height: auto;
|
|
98
98
|
fill: $skyBlue
|
|
99
|
+
margin-left: 5px
|
|
99
100
|
|
|
100
101
|
.ourPriceBlock
|
|
101
102
|
display: flex;
|
|
@@ -107,4 +108,9 @@
|
|
|
107
108
|
cursor: pointer;
|
|
108
109
|
|
|
109
110
|
.editIconBlock
|
|
110
|
-
cursor: pointer;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
|
|
113
|
+
.editFieldWrapper
|
|
114
|
+
display: flex
|
|
115
|
+
align-items: center
|
|
116
|
+
|
|
@@ -20,15 +20,37 @@ const DealerInfo = ({ infoSections, t, dealerPrice, link, linkName, currentSales
|
|
|
20
20
|
const inputRef = useRef(null);
|
|
21
21
|
|
|
22
22
|
const handleSubmit = () => {
|
|
23
|
-
setPriceUpdating(false);
|
|
24
23
|
setNewPrice(Math.max(currentSalesPrice, newPrice));
|
|
25
24
|
onCurrentSalesPriceChange(Math.max(currentSalesPrice, newPrice));
|
|
26
25
|
};
|
|
27
26
|
|
|
27
|
+
const handlePriceUpdating = () => {
|
|
28
|
+
if (isPriceUpdating) {
|
|
29
|
+
handleSubmit();
|
|
30
|
+
setPriceUpdating(false);
|
|
31
|
+
} else if (!isPriceUpdating) {
|
|
32
|
+
setPriceUpdating(true);
|
|
33
|
+
setTimeout(
|
|
34
|
+
() => {
|
|
35
|
+
inputRef.current.focus();
|
|
36
|
+
},
|
|
37
|
+
200
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
28
42
|
const onPriceChange = (e: any) => {
|
|
29
43
|
const newPrice = +e.target.value;
|
|
30
44
|
setNewPrice(Math.max(0, newPrice));
|
|
31
45
|
};
|
|
46
|
+
|
|
47
|
+
const onEnterSubmit = (e: any) => {
|
|
48
|
+
if (e.key === 'Enter') {
|
|
49
|
+
handleSubmit();
|
|
50
|
+
setPriceUpdating(false);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
32
54
|
const ourMargin = newPrice - dealerPrice;
|
|
33
55
|
|
|
34
56
|
return (
|
|
@@ -99,44 +121,48 @@ const DealerInfo = ({ infoSections, t, dealerPrice, link, linkName, currentSales
|
|
|
99
121
|
<span>
|
|
100
122
|
{t('vehicleProps:alternative.ourPrice')}
|
|
101
123
|
</span>
|
|
102
|
-
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
<div className={styles.editFieldWrapper}>
|
|
125
|
+
{isPriceUpdating
|
|
126
|
+
? <div className={styles.ourPriceBlock}>
|
|
127
|
+
<input
|
|
128
|
+
className={styles.ourPriceInput}
|
|
129
|
+
type='number'
|
|
130
|
+
value={newPrice}
|
|
131
|
+
onChange={e => onPriceChange(e)}
|
|
132
|
+
ref={inputRef}
|
|
133
|
+
onBlur={handleSubmit}
|
|
134
|
+
onKeyPress={onEnterSubmit}
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
137
|
+
: <span onClick={
|
|
138
|
+
() => {
|
|
139
|
+
setPriceUpdating(true);
|
|
140
|
+
setTimeout(
|
|
141
|
+
() => {
|
|
142
|
+
inputRef.current.focus();
|
|
143
|
+
},
|
|
144
|
+
200
|
|
145
|
+
);
|
|
146
|
+
}}
|
|
147
|
+
>
|
|
148
|
+
<VehicleFormattedPrice
|
|
149
|
+
className={classnames(styles.price, styles.ourPrice)}
|
|
150
|
+
numbersAfterDot={0}
|
|
151
|
+
price={newPrice}
|
|
152
|
+
unit='€'
|
|
153
|
+
isNew={true}
|
|
154
|
+
numberContainerClassName={styles.numberContainer}
|
|
155
|
+
unitWrapperClassName={styles.unitWrapper}
|
|
156
|
+
unitClassName={styles.unit}
|
|
157
|
+
monthlyClassName={styles.monthly}
|
|
111
158
|
/>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
setTimeout(
|
|
120
|
-
() => {
|
|
121
|
-
inputRef.current.focus();
|
|
122
|
-
},
|
|
123
|
-
200
|
|
124
|
-
);
|
|
125
|
-
}}
|
|
126
|
-
>
|
|
127
|
-
<VehicleFormattedPrice
|
|
128
|
-
className={classnames(styles.price, styles.ourPrice)}
|
|
129
|
-
numbersAfterDot={0}
|
|
130
|
-
price={newPrice}
|
|
131
|
-
unit='€'
|
|
132
|
-
isNew={true}
|
|
133
|
-
numberContainerClassName={styles.numberContainer}
|
|
134
|
-
unitWrapperClassName={styles.unitWrapper}
|
|
135
|
-
unitClassName={styles.unit}
|
|
136
|
-
monthlyClassName={styles.monthly}
|
|
137
|
-
/>
|
|
138
|
-
</span>}
|
|
139
|
-
</span>
|
|
159
|
+
</span>
|
|
160
|
+
}
|
|
161
|
+
<span className={styles.editIconBlock} onClick={handlePriceUpdating}>
|
|
162
|
+
<IconSVG className={styles.editIcon} customDimensions name='editPriceIcon'></IconSVG>
|
|
163
|
+
</span>
|
|
164
|
+
</div>
|
|
165
|
+
</span>
|
|
140
166
|
</div>
|
|
141
167
|
</div>
|
|
142
168
|
);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@import '../../theme/mixins.styl'
|
|
2
|
-
@import '../../theme/theme.styl'
|
|
3
2
|
|
|
4
3
|
.breadcrumbsWrap
|
|
5
4
|
display none
|
|
@@ -8,16 +7,19 @@
|
|
|
8
7
|
align-items: center;
|
|
9
8
|
justify-content: space-between;
|
|
10
9
|
display: flex;
|
|
11
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid rgba(76, 78, 100, 0.12);
|
|
12
11
|
background-color: #fff;
|
|
13
12
|
margin 8px 0;
|
|
14
13
|
padding 0 12px;
|
|
15
14
|
height: 44px;
|
|
15
|
+
border-radius: 6px;
|
|
16
16
|
|
|
17
17
|
.breadcrumbs
|
|
18
18
|
padding-right: 15px;
|
|
19
19
|
box-sizing: border-box
|
|
20
20
|
flex-shrink: 0;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
21
23
|
+media-phone-only()
|
|
22
24
|
display none
|
|
23
25
|
+media-tablet-landscape-down()
|
|
@@ -27,15 +29,16 @@
|
|
|
27
29
|
width: 20px;
|
|
28
30
|
height: 20px;
|
|
29
31
|
font-size: 0;
|
|
30
|
-
display:
|
|
32
|
+
display: block;
|
|
31
33
|
position: relative
|
|
32
34
|
|
|
33
35
|
.link
|
|
34
36
|
display: inline-block
|
|
35
37
|
position: relative
|
|
36
38
|
margin-right: 20px
|
|
37
|
-
font-size:
|
|
38
|
-
|
|
39
|
+
font-size: 16px
|
|
40
|
+
line-height: 1;
|
|
41
|
+
color: rgba(76, 78, 100, 0.68);
|
|
39
42
|
text-decoration: none
|
|
40
43
|
// vertical-align: middle
|
|
41
44
|
|
|
@@ -46,15 +49,16 @@
|
|
|
46
49
|
transform translateY(-50%)
|
|
47
50
|
right: -13px
|
|
48
51
|
background-image: url('../../../media/svg/common/arrow_breadcrumps.svg')
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
52
|
+
width: 7px
|
|
53
|
+
height: 10px
|
|
51
54
|
|
|
52
55
|
.homeLink
|
|
53
56
|
display: inline-block
|
|
54
57
|
position: relative
|
|
55
58
|
margin-right: 20px
|
|
56
|
-
font-size:
|
|
57
|
-
|
|
59
|
+
font-size: 16px
|
|
60
|
+
line-height: 1;
|
|
61
|
+
color: rgba(76, 78, 100, 0.68);
|
|
58
62
|
text-decoration: none
|
|
59
63
|
vertical-align: middle
|
|
60
64
|
|
|
@@ -65,9 +69,9 @@
|
|
|
65
69
|
transform translateY(-50%)
|
|
66
70
|
right: -13px
|
|
67
71
|
background-image: url('../../../media/svg/common/arrow_breadcrumps.svg')
|
|
68
|
-
width:
|
|
69
|
-
height:
|
|
70
|
-
|
|
72
|
+
width: 7px
|
|
73
|
+
height: 10px
|
|
74
|
+
|
|
71
75
|
&::before
|
|
72
76
|
position: absolute
|
|
73
77
|
content: ''
|
|
@@ -81,11 +85,12 @@
|
|
|
81
85
|
|
|
82
86
|
.text
|
|
83
87
|
display: inline-block
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
line-height: 1;
|
|
89
|
+
font-size: 16px
|
|
90
|
+
color: rgba(76, 78, 100, 0.68);
|
|
86
91
|
|
|
87
92
|
.active
|
|
88
|
-
font-weight: bold;
|
|
93
|
+
// font-weight: bold;
|
|
89
94
|
|
|
90
95
|
.back
|
|
91
96
|
display: inline-block
|
|
@@ -94,7 +99,7 @@
|
|
|
94
99
|
position relative;
|
|
95
100
|
color: $grey-74
|
|
96
101
|
|
|
97
|
-
&::before
|
|
102
|
+
&::before
|
|
98
103
|
position: absolute
|
|
99
104
|
content: ''
|
|
100
105
|
z-index: 1;
|
|
@@ -111,10 +116,17 @@
|
|
|
111
116
|
cursor: pointer
|
|
112
117
|
color: $grey-74
|
|
113
118
|
|
|
114
|
-
.
|
|
115
|
-
[class*='
|
|
116
|
-
|
|
119
|
+
.breadcrumbsCDP
|
|
120
|
+
[class*='Breadcrumbs__link'],
|
|
121
|
+
[class*='Breadcrumbs__text']
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
color: rgba(76, 78, 100, 0.87);
|
|
117
124
|
|
|
125
|
+
.breadcrumbsUserDashboard
|
|
126
|
+
display: none;
|
|
127
|
+
.breadcrumbsMySearches
|
|
128
|
+
height: 56px;
|
|
129
|
+
border-radius: 8px;
|
|
118
130
|
// [class*='FirstInfoBlock__container']
|
|
119
131
|
// width: 100px;
|
|
120
132
|
// margin 0 auto;
|
|
@@ -64,9 +64,9 @@ class Breadcrumbs extends React.PureComponent<IBreadcrumbsProps> {
|
|
|
64
64
|
? BreadcrumbsFactory[page]({ t, ...pageProps })
|
|
65
65
|
: BreadcrumbsFactory['DEFAULT']();
|
|
66
66
|
|
|
67
|
-
const { list, withBackBtn, classBreadcrumbsAny } = BreadcrumbsConfig;
|
|
67
|
+
const { list, withBackBtn, classBreadcrumbsAny, className } = BreadcrumbsConfig;
|
|
68
68
|
|
|
69
|
-
const stylesNewForBreadcrumbs =
|
|
69
|
+
const stylesNewForBreadcrumbs = className ? styles[className] : '';
|
|
70
70
|
|
|
71
71
|
const infoBlockProps = { infoBlockData, t };
|
|
72
72
|
|
|
@@ -75,7 +75,7 @@ class Breadcrumbs extends React.PureComponent<IBreadcrumbsProps> {
|
|
|
75
75
|
<div className={styles.breadcrumbs}>
|
|
76
76
|
<span className={styles.homeLink}><a href='/search'></a></span>
|
|
77
77
|
{list && list.length ? this.renderList(list) : false}
|
|
78
|
-
{withBackBtn ? this.renderGoBackButton() : false}
|
|
78
|
+
{/* {withBackBtn ? this.renderGoBackButton() : false} */}
|
|
79
79
|
</div>
|
|
80
80
|
{classBreadcrumbsAny ? <FirstInfoBlock {...infoBlockProps} /> : ''}
|
|
81
81
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.firstInfoBlock
|
|
4
4
|
display grid
|
|
5
|
-
grid-template-columns: repeat(4, minmax(auto,
|
|
5
|
+
grid-template-columns: repeat(4, minmax(auto, 216px))
|
|
6
6
|
|
|
7
7
|
+media-tablet-landscape-down()
|
|
8
8
|
display none
|
|
@@ -16,38 +16,32 @@
|
|
|
16
16
|
position relative
|
|
17
17
|
// width: 211px
|
|
18
18
|
|
|
19
|
-
&::before
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
// &::before
|
|
20
|
+
// content: ''
|
|
21
|
+
// width: 1px;
|
|
22
|
+
// background-color: $grey-d;
|
|
23
|
+
// height: 100%;
|
|
24
|
+
// position absolute;
|
|
25
|
+
// left: 0;
|
|
26
|
+
// top: 0;
|
|
27
27
|
|
|
28
28
|
&:last-of-type
|
|
29
29
|
width: 179px
|
|
30
30
|
|
|
31
31
|
&:nth-of-type(1) .icon
|
|
32
32
|
background-image: url('../../../../media/svg/common/whyAutodeIconSet-Q.svg');
|
|
33
|
-
width: 34px
|
|
34
|
-
height: 34px
|
|
35
33
|
&:nth-of-type(2) .icon
|
|
36
34
|
background-image: url('../../../../media/svg/common/whyAutodeIconSet-G.svg');
|
|
37
|
-
width: 22px
|
|
38
|
-
height: 26px
|
|
39
35
|
&:nth-of-type(3) .icon
|
|
40
36
|
background-image: url('../../../../media/svg/common/whyAutodeIconSet-F.svg');
|
|
41
|
-
width: 36px
|
|
42
|
-
height: 36px
|
|
43
37
|
&:nth-of-type(4) .icon
|
|
44
38
|
background-image: url('../../../../media/svg/common/whyAutodeIconSet-R.svg');
|
|
45
|
-
width: 27px
|
|
46
|
-
height: 27px
|
|
47
39
|
|
|
48
40
|
.icon
|
|
49
41
|
margin-right: 10px
|
|
50
42
|
display block;
|
|
43
|
+
width: 34px;
|
|
44
|
+
height: 34px;
|
|
51
45
|
background-repeat no-repeat
|
|
52
46
|
background-position center center;
|
|
53
47
|
background-size contain
|
|
@@ -58,5 +52,4 @@
|
|
|
58
52
|
text-align center
|
|
59
53
|
font-weight: 400
|
|
60
54
|
color: $grey-75;
|
|
61
|
-
width: 57px;
|
|
62
55
|
margin 0
|
|
@@ -144,5 +144,6 @@ const RangeControlled = ({
|
|
|
144
144
|
|
|
145
145
|
export default memo(RangeControlled, (prevProps: any, nextProps: any) => {
|
|
146
146
|
return prevProps.controls.from === nextProps.controls.from &&
|
|
147
|
-
prevProps.controls.to === nextProps.controls.to
|
|
147
|
+
prevProps.controls.to === nextProps.controls.to &&
|
|
148
|
+
prevProps.t === nextProps.t;
|
|
148
149
|
});
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
display: flex
|
|
7
7
|
flex-direction: row
|
|
8
8
|
align-items: center
|
|
9
|
-
padding: 5px 0
|
|
10
9
|
margin-bottom: 10px;
|
|
11
10
|
margin-top: 10px;
|
|
12
11
|
box-sizing: border-box
|
|
@@ -46,9 +45,19 @@
|
|
|
46
45
|
font-weight: 700
|
|
47
46
|
|
|
48
47
|
.sorting
|
|
49
|
-
min-width:
|
|
48
|
+
min-width: 181px;
|
|
49
|
+
max-width: 285px;
|
|
50
|
+
height: 100%;
|
|
51
|
+
[class*='MuiPaper-root'], [class*='MuiFormControl-root-MuiTextField-root']
|
|
52
|
+
height: 100%
|
|
50
53
|
[class*='MuiPaper-root'], [class*='MuiOutlinedInput-root']
|
|
51
54
|
font-size: 14px !important
|
|
55
|
+
height: 100%
|
|
56
|
+
[class*='MuiOutlinedInput-input']
|
|
57
|
+
padding: 5.5px 30px 7.5px 6px !important
|
|
58
|
+
+media-tablet-landscape-down()
|
|
59
|
+
min-width: 150px;
|
|
60
|
+
max-width: 199px;
|
|
52
61
|
|
|
53
62
|
.saveSearch
|
|
54
63
|
flex-basis: 20%
|
|
@@ -56,7 +65,6 @@
|
|
|
56
65
|
cursor: pointer
|
|
57
66
|
font-size: 13px
|
|
58
67
|
margin-left: auto
|
|
59
|
-
margin-right: 10px
|
|
60
68
|
color: $skyBlue
|
|
61
69
|
+media-tablet-down()
|
|
62
70
|
flex-basis: unset
|
|
@@ -82,6 +90,8 @@
|
|
|
82
90
|
|
|
83
91
|
.select
|
|
84
92
|
min-width: 0
|
|
93
|
+
height:100%
|
|
94
|
+
|
|
85
95
|
|
|
86
96
|
+media-tablet-down()
|
|
87
97
|
.sorting
|
|
@@ -74,7 +74,7 @@ class SearchTopBar extends React.Component<ISearchTopBarProps, {}> {
|
|
|
74
74
|
/>
|
|
75
75
|
:
|
|
76
76
|
<MaterialAutocomplete
|
|
77
|
-
size={'
|
|
77
|
+
size={'small'}
|
|
78
78
|
freeSolo={false}
|
|
79
79
|
disabled={!resultsCount}
|
|
80
80
|
className={styles.select}
|
|
@@ -82,9 +82,9 @@ class SearchTopBar extends React.Component<ISearchTopBarProps, {}> {
|
|
|
82
82
|
placeholder={t('sortingPlaceholder')}
|
|
83
83
|
items={translatedSortingOptions}
|
|
84
84
|
onChange={onSortChange}
|
|
85
|
-
name='mobileSearch'
|
|
85
|
+
name={isMobileOnly ? 'mobileSearch' : ''}
|
|
86
86
|
disableClearable={true}
|
|
87
|
-
/>;
|
|
87
|
+
label={''} />;
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
render(): JSX.Element {
|
|
@@ -12,6 +12,7 @@ $color-price-new = $lightGreen
|
|
|
12
12
|
.old
|
|
13
13
|
color: $grey-3;
|
|
14
14
|
font-size: 8px;
|
|
15
|
+
margin-bottom: 1px;
|
|
15
16
|
|
|
16
17
|
&::after
|
|
17
18
|
content: ''
|
|
@@ -61,7 +62,7 @@ _:-ms-fullscreen, :root .old::after
|
|
|
61
62
|
font-weight: 700
|
|
62
63
|
|
|
63
64
|
.price.semimedium
|
|
64
|
-
font-size:
|
|
65
|
+
font-size: 20px
|
|
65
66
|
font-weight: 700
|
|
66
67
|
|
|
67
68
|
.price.small
|
|
@@ -83,9 +84,12 @@ _:-ms-fullscreen, :root .old::after
|
|
|
83
84
|
transform: translateY(-7px)
|
|
84
85
|
font-size: 9px
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
.price.semimedium .decimals,
|
|
88
|
+
.price.semimedium .unit
|
|
89
|
+
display: inline-block
|
|
90
|
+
position: relative
|
|
91
|
+
transform: translateY(-9px)
|
|
92
|
+
font-size: 8px
|
|
89
93
|
|
|
90
94
|
.price.medium .decimals,
|
|
91
95
|
.price.medium .unit
|
|
@@ -96,18 +100,19 @@ _:-ms-fullscreen, :root .old::after
|
|
|
96
100
|
top: 2px
|
|
97
101
|
|
|
98
102
|
.price.semimedium .decimals,
|
|
99
|
-
.price.semimedium .unit
|
|
100
|
-
|
|
103
|
+
.price.semimedium .unit,
|
|
104
|
+
.price.semimedium .sub,
|
|
105
|
+
// top: 1px
|
|
106
|
+
font-weight: 400
|
|
101
107
|
|
|
102
|
-
.price.
|
|
103
|
-
.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
transform:
|
|
110
|
-
font-size: 9px
|
|
108
|
+
.price.semimedium .postfix,
|
|
109
|
+
.old .postfix
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
left: auto;
|
|
113
|
+
|
|
114
|
+
.old .postfix
|
|
115
|
+
transform: translateX(7px);
|
|
111
116
|
|
|
112
117
|
.price.large .decimals
|
|
113
118
|
.price.large .unitMonthly
|
|
@@ -136,8 +141,9 @@ _:-ms-fullscreen, :root .old::after
|
|
|
136
141
|
display: block
|
|
137
142
|
|
|
138
143
|
.price .sub
|
|
139
|
-
font-size:
|
|
144
|
+
font-size: 9px;
|
|
140
145
|
display: inline-block;
|
|
141
146
|
position: relative;
|
|
142
147
|
bottom: 0;
|
|
143
|
-
left: -5px
|
|
148
|
+
left: -5px
|
|
149
|
+
vertical-align: baseline;
|
|
@@ -86,7 +86,7 @@ const Properties: React.FunctionComponent<IPropertiesProps> = ({ t, car, decorat
|
|
|
86
86
|
children: (
|
|
87
87
|
<div className={`${styles.tabContentPadding} ${styles.tabContentOverviewPadding}`}>
|
|
88
88
|
{mainProperties.map((property: any, index: number) => (
|
|
89
|
-
<VehicleProperty {...property} className={styles.property}
|
|
89
|
+
<VehicleProperty {...property} className={styles.property} key={index} />
|
|
90
90
|
))}
|
|
91
91
|
</div>
|
|
92
92
|
)
|