@bytebrand/fe-ui-core 4.1.171 → 4.1.172

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.
Files changed (128) hide show
  1. package/common.ts +0 -5
  2. package/media/svg/common/arrow_breadcrumps.svg +2 -2
  3. package/media/svg/common/home.svg +8 -6
  4. package/media/svg/common/whyAutodeIconSet-F.svg +12 -8
  5. package/media/svg/common/whyAutodeIconSet-G.svg +8 -6
  6. package/media/svg/common/whyAutodeIconSet-Q.svg +15 -5
  7. package/media/svg/common/whyAutodeIconSet-R.svg +13 -8
  8. package/media/svg/infoBlocks/whyAutodeIconSet-F.svg +8 -8
  9. package/media/svg/infoBlocks/whyAutodeIconSet-G.svg +6 -7
  10. package/media/svg/infoBlocks/whyAutodeIconSet-Q.svg +11 -5
  11. package/media/svg/infoBlocks/whyAutodeIconSet-R.svg +9 -8
  12. package/package.json +1 -1
  13. package/source/components/AccordionWidget/AccordionWidget.styl +3 -0
  14. package/source/components/Alternative/DealerInfo.styl +1 -7
  15. package/source/components/Alternative/DealerInfo.tsx +38 -64
  16. package/source/components/Breadcrumbs/Breadcrumbs.styl +19 -31
  17. package/source/components/Breadcrumbs/Breadcrumbs.tsx +3 -3
  18. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.styl +18 -11
  19. package/source/components/PriceRating/PriceRating.styl +0 -1
  20. package/source/components/SearchFilters/common/RangeControlled/RangeControlled.tsx +1 -2
  21. package/source/components/SearchPage/SearchTopBar/SearchTopBar.styl +3 -13
  22. package/source/components/SearchPage/SearchTopBar/SearchTopBar.tsx +3 -3
  23. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.styl +17 -23
  24. package/source/components/VehicleDetailedSidebar/partials/Properties.styl +4 -0
  25. package/source/components/VehicleDetailedSidebar/partials/Properties.tsx +1 -1
  26. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +40 -54
  27. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +16 -38
  28. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +18 -47
  29. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +6 -13
  30. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +28 -48
  31. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +16 -50
  32. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +8 -6
  33. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +12 -31
  34. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +3 -8
  35. package/source/components/VehicleSmallCard/VehicleSmallCard.styl +19 -51
  36. package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +9 -39
  37. package/source/components/_common/Badge/Badge.styl +7 -13
  38. package/source/components/_common/Badge/Badge.tsx +1 -1
  39. package/source/components/_common/Button/Button.styled.tsx +8 -13
  40. package/source/components/_common/Button/Button.tsx +1 -1
  41. package/source/components/_common/ExpansionPanel/ExpansionPanel.tsx +4 -14
  42. package/source/components/_common/IconSVG/IconSVG.story.js +1 -1
  43. package/source/components/_common/IconSVG/IconSVGConfig.tsx +1 -90
  44. package/source/components/_common/IconSVG/SVG/CloseIconSelect.tsx +1 -1
  45. package/source/components/_common/IconSVG/SVG/common/SliderEye.tsx +3 -2
  46. package/source/components/_common/IconSVG/SVG/common/StarRoundedCorners.tsx +1 -1
  47. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/AllWheelDrive.tsx +2 -2
  48. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/FrontWheelDrive.tsx +2 -2
  49. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/RearWheelDrive.tsx +2 -2
  50. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelDiesel.tsx +14 -4
  51. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelPetrol.tsx +1 -1
  52. package/source/components/_common/IconSVG/SVG/settings/RemoveEye.tsx +1 -1
  53. package/source/components/_common/IconSVG/SVG/settings/RemoveEyeOff.tsx +1 -1
  54. package/source/components/_common/IconSVG/SVG/vehicle/CarAvailability.tsx +3 -3
  55. package/source/components/_common/IconSVG/SVG/vehicle/CheckoutChecked.tsx +2 -2
  56. package/source/components/_common/IconSVG/SVG/vehicle/Date.tsx +2 -2
  57. package/source/components/_common/IconSVG/SVG/vehicle/Door.tsx +7 -5
  58. package/source/components/_common/IconSVG/SVG/vehicle/FuelConsumption.tsx +1 -1
  59. package/source/components/_common/IconSVG/SVG/vehicle/NewCar.tsx +9 -7
  60. package/source/components/_common/IconSVG/SVG/vehicle/Ps.tsx +1 -1
  61. package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxAutomatic.tsx +2 -2
  62. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +1 -17
  63. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.tsx +4 -3
  64. package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.styled.tsx +3 -6
  65. package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.tsx +3 -28
  66. package/source/components/_common/MaterialSelect/MaterialSelect.styled.tsx +7 -0
  67. package/source/components/_common/MaterialSelect/MaterialSelect.tsx +9 -16
  68. package/source/components/_common/Modal/CookieModal.tsx +7 -10
  69. package/source/components/_common/Modal/Modal.styled.tsx +1 -2
  70. package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.styl +3 -15
  71. package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.tsx +3 -5
  72. package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.styl +1 -11
  73. package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.tsx +0 -2
  74. package/source/components/_common/TimePicker/TimePicker.styl +1 -3
  75. package/source/components/_common/TimePicker/TimePicker.tsx +2 -6
  76. package/source/components/_common/UserMenu/MaterialMenu.styled.tsx +1 -2
  77. package/source/components/_common/withStats/withStats.styl +87 -43
  78. package/source/components/_common/withStats/withStats.tsx +8 -17
  79. package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.styl +3 -7
  80. package/source/framework/constants/common.ts +3 -15
  81. package/source/framework/factories/BreadcrumbsFactory.tsx +8 -19
  82. package/source/framework/factories/FactoryTypes.d.ts +0 -1
  83. package/source/framework/types/types.ts +2 -4
  84. package/source/framework/utils/CommonUtils.ts +9 -26
  85. package/source/framework/vehiclesProps/decoratedProps.tsx +23 -19
  86. package/source/locales/data.ts +0 -2
  87. package/source/theme/priceReviewColors.styl +1 -3
  88. package/utils.ts +0 -16
  89. package/source/components/_common/IconSVG/SVG/common/AddressDashboard.tsx +0 -29
  90. package/source/components/_common/IconSVG/SVG/common/CallbackDashboard.tsx +0 -30
  91. package/source/components/_common/IconSVG/SVG/common/CloseGrey.tsx +0 -22
  92. package/source/components/_common/IconSVG/SVG/common/DashboardQuestionMark.tsx +0 -20
  93. package/source/components/_common/IconSVG/SVG/common/DeliveryDashboard.tsx +0 -25
  94. package/source/components/_common/IconSVG/SVG/common/EditPriceIcon.tsx +0 -20
  95. package/source/components/_common/IconSVG/SVG/common/HandingOverDashboard.tsx +0 -32
  96. package/source/components/_common/IconSVG/SVG/common/MenuGrey.tsx +0 -22
  97. package/source/components/_common/IconSVG/SVG/common/MyOrderIcon.tsx +0 -20
  98. package/source/components/_common/IconSVG/SVG/common/OrderReceivedDashboard.tsx +0 -27
  99. package/source/components/_common/IconSVG/SVG/common/PickupDashboard.tsx +0 -30
  100. package/source/components/_common/IconSVG/SVG/common/PreparationDashboard.tsx +0 -29
  101. package/source/components/_common/IconSVG/SVG/common/ProfileDashboard.tsx +0 -24
  102. package/source/components/_common/IconSVG/SVG/common/RegistrationDashboard.tsx +0 -31
  103. package/source/components/_common/IconSVG/SVG/flags/AT.tsx +0 -19
  104. package/source/components/_common/IconSVG/SVG/flags/BE.tsx +0 -20
  105. package/source/components/_common/IconSVG/SVG/flags/BG.tsx +0 -20
  106. package/source/components/_common/IconSVG/SVG/flags/CH.tsx +0 -22
  107. package/source/components/_common/IconSVG/SVG/flags/CZ.tsx +0 -18
  108. package/source/components/_common/IconSVG/SVG/flags/DE.tsx +0 -18
  109. package/source/components/_common/IconSVG/SVG/flags/DK.tsx +0 -18
  110. package/source/components/_common/IconSVG/SVG/flags/ES.tsx +0 -2585
  111. package/source/components/_common/IconSVG/SVG/flags/FI.tsx +0 -18
  112. package/source/components/_common/IconSVG/SVG/flags/FR.tsx +0 -20
  113. package/source/components/_common/IconSVG/SVG/flags/GB.tsx +0 -26
  114. package/source/components/_common/IconSVG/SVG/flags/HR.tsx +0 -135
  115. package/source/components/_common/IconSVG/SVG/flags/HU.tsx +0 -20
  116. package/source/components/_common/IconSVG/SVG/flags/IT.tsx +0 -20
  117. package/source/components/_common/IconSVG/SVG/flags/LI.tsx +0 -106
  118. package/source/components/_common/IconSVG/SVG/flags/LU.tsx +0 -18
  119. package/source/components/_common/IconSVG/SVG/flags/NL.tsx +0 -18
  120. package/source/components/_common/IconSVG/SVG/flags/NO.tsx +0 -20
  121. package/source/components/_common/IconSVG/SVG/flags/PL.tsx +0 -19
  122. package/source/components/_common/IconSVG/SVG/flags/RO.tsx +0 -20
  123. package/source/components/_common/IconSVG/SVG/flags/RU.tsx +0 -20
  124. package/source/components/_common/IconSVG/SVG/flags/SE.tsx +0 -20
  125. package/source/components/_common/IconSVG/SVG/flags/SI.tsx +0 -54
  126. package/source/components/_common/IconSVG/SVG/flags/SK.tsx +0 -35
  127. package/source/components/_common/IconSVG/SVG/flags/UA.tsx +0 -19
  128. package/source/components/_common/IconSVG/SVG/slider/360New.tsx +0 -20
@@ -96,7 +96,6 @@
96
96
  width: 1.5rem;
97
97
  height: auto;
98
98
  fill: $skyBlue
99
- margin-left: 5px
100
99
 
101
100
  .ourPriceBlock
102
101
  display: flex;
@@ -108,9 +107,4 @@
108
107
  cursor: pointer;
109
108
 
110
109
  .editIconBlock
111
- cursor: pointer;
112
-
113
- .editFieldWrapper
114
- display: flex
115
- align-items: center
116
-
110
+ cursor: pointer;
@@ -20,37 +20,15 @@ const DealerInfo = ({ infoSections, t, dealerPrice, link, linkName, currentSales
20
20
  const inputRef = useRef(null);
21
21
 
22
22
  const handleSubmit = () => {
23
+ setPriceUpdating(false);
23
24
  setNewPrice(Math.max(currentSalesPrice, newPrice));
24
25
  onCurrentSalesPriceChange(Math.max(currentSalesPrice, newPrice));
25
26
  };
26
27
 
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
-
42
28
  const onPriceChange = (e: any) => {
43
29
  const newPrice = +e.target.value;
44
30
  setNewPrice(Math.max(0, newPrice));
45
31
  };
46
-
47
- const onEnterSubmit = (e: any) => {
48
- if (e.key === 'Enter') {
49
- handleSubmit();
50
- setPriceUpdating(false);
51
- }
52
- };
53
-
54
32
  const ourMargin = newPrice - dealerPrice;
55
33
 
56
34
  return (
@@ -121,48 +99,44 @@ const DealerInfo = ({ infoSections, t, dealerPrice, link, linkName, currentSales
121
99
  <span>
122
100
  {t('vehicleProps:alternative.ourPrice')}
123
101
  </span>
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}
102
+ {isPriceUpdating
103
+ ? <div className={styles.ourPriceBlock}>
104
+ <input
105
+ className={styles.ourPriceInput}
106
+ type='number'
107
+ value={newPrice}
108
+ onChange={e => onPriceChange(e)}
109
+ ref={inputRef}
110
+ onBlur={handleSubmit}
158
111
  />
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>
112
+ <span className={styles.editIconBlock} onClick={handleSubmit}>
113
+ <IconSVG className={styles.editIcon} customDimensions name='editIcon'></IconSVG>
114
+ </span>
115
+ </div>
116
+ : <span onClick={
117
+ () => {
118
+ setPriceUpdating(true);
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>
166
140
  </div>
167
141
  </div>
168
142
  );
@@ -1,4 +1,5 @@
1
1
  @import '../../theme/mixins.styl'
2
+ @import '../../theme/theme.styl'
2
3
 
3
4
  .breadcrumbsWrap
4
5
  display none
@@ -7,19 +8,16 @@
7
8
  align-items: center;
8
9
  justify-content: space-between;
9
10
  display: flex;
10
- border: 1px solid rgba(76, 78, 100, 0.12);
11
+ border: 1px solid $grey-trans
11
12
  background-color: #fff;
12
13
  margin 8px 0;
13
14
  padding 0 12px;
14
15
  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;
23
21
  +media-phone-only()
24
22
  display none
25
23
  +media-tablet-landscape-down()
@@ -29,16 +27,15 @@
29
27
  width: 20px;
30
28
  height: 20px;
31
29
  font-size: 0;
32
- display: block;
30
+ display: inline-block
33
31
  position: relative
34
32
 
35
33
  .link
36
34
  display: inline-block
37
35
  position: relative
38
36
  margin-right: 20px
39
- font-size: 16px
40
- line-height: 1;
41
- color: rgba(76, 78, 100, 0.68);
37
+ font-size: 12px
38
+ color: $grey-3
42
39
  text-decoration: none
43
40
  // vertical-align: middle
44
41
 
@@ -49,16 +46,15 @@
49
46
  transform translateY(-50%)
50
47
  right: -13px
51
48
  background-image: url('../../../media/svg/common/arrow_breadcrumps.svg')
52
- width: 7px
53
- height: 10px
49
+ width: 5px
50
+ height: 8px
54
51
 
55
52
  .homeLink
56
53
  display: inline-block
57
54
  position: relative
58
55
  margin-right: 20px
59
- font-size: 16px
60
- line-height: 1;
61
- color: rgba(76, 78, 100, 0.68);
56
+ font-size: 12px
57
+ color: $grey-3
62
58
  text-decoration: none
63
59
  vertical-align: middle
64
60
 
@@ -69,9 +65,9 @@
69
65
  transform translateY(-50%)
70
66
  right: -13px
71
67
  background-image: url('../../../media/svg/common/arrow_breadcrumps.svg')
72
- width: 7px
73
- height: 10px
74
-
68
+ width: 5px
69
+ height: 8px
70
+
75
71
  &::before
76
72
  position: absolute
77
73
  content: ''
@@ -85,12 +81,11 @@
85
81
 
86
82
  .text
87
83
  display: inline-block
88
- line-height: 1;
89
- font-size: 16px
90
- color: rgba(76, 78, 100, 0.68);
84
+ font-size: 12px
85
+ color: $grey-74
91
86
 
92
87
  .active
93
- // font-weight: bold;
88
+ font-weight: bold;
94
89
 
95
90
  .back
96
91
  display: inline-block
@@ -99,7 +94,7 @@
99
94
  position relative;
100
95
  color: $grey-74
101
96
 
102
- &::before
97
+ &::before
103
98
  position: absolute
104
99
  content: ''
105
100
  z-index: 1;
@@ -116,17 +111,10 @@
116
111
  cursor: pointer
117
112
  color: $grey-74
118
113
 
119
- .breadcrumbsCDP
120
- [class*='Breadcrumbs__link'],
121
- [class*='Breadcrumbs__text']
122
- font-size: 12px;
123
- color: rgba(76, 78, 100, 0.87);
114
+ .classBreadcrumbsCDP
115
+ [class*='FirstInfoBlock__firstInfoBlock']
116
+ grid-template-columns: repeat(4, minmax(auto, 171px));
124
117
 
125
- .breadcrumbsUserDashboard
126
- display: none;
127
- .breadcrumbsMySearches
128
- height: 56px;
129
- border-radius: 8px;
130
118
  // [class*='FirstInfoBlock__container']
131
119
  // width: 100px;
132
120
  // 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, className } = BreadcrumbsConfig;
67
+ const { list, withBackBtn, classBreadcrumbsAny } = BreadcrumbsConfig;
68
68
 
69
- const stylesNewForBreadcrumbs = className ? styles[className] : '';
69
+ const stylesNewForBreadcrumbs = classBreadcrumbsAny === 'VEHICLE_DETAILS' ? styles.classBreadcrumbsCDP : '';
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, 216px))
5
+ grid-template-columns: repeat(4, minmax(auto, 179px))
6
6
 
7
7
  +media-tablet-landscape-down()
8
8
  display none
@@ -16,32 +16,38 @@
16
16
  position relative
17
17
  // width: 211px
18
18
 
19
- // &::before
20
- // content: ''
21
- // width: 1px;
22
- // background-color: $grey-d;
23
- // height: 100%;
24
- // position absolute;
25
- // left: 0;
26
- // top: 0;
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
33
35
  &:nth-of-type(2) .icon
34
36
  background-image: url('../../../../media/svg/common/whyAutodeIconSet-G.svg');
37
+ width: 22px
38
+ height: 26px
35
39
  &:nth-of-type(3) .icon
36
40
  background-image: url('../../../../media/svg/common/whyAutodeIconSet-F.svg');
41
+ width: 36px
42
+ height: 36px
37
43
  &:nth-of-type(4) .icon
38
44
  background-image: url('../../../../media/svg/common/whyAutodeIconSet-R.svg');
45
+ width: 27px
46
+ height: 27px
39
47
 
40
48
  .icon
41
49
  margin-right: 10px
42
50
  display block;
43
- width: 34px;
44
- height: 34px;
45
51
  background-repeat no-repeat
46
52
  background-position center center;
47
53
  background-size contain
@@ -52,4 +58,5 @@
52
58
  text-align center
53
59
  font-weight: 400
54
60
  color: $grey-75;
61
+ width: 57px;
55
62
  margin 0
@@ -16,7 +16,6 @@
16
16
  text-transform: uppercase
17
17
  color: $priceReviewColors[darkBackground]
18
18
  margin-bottom: 4px
19
- font-weight: bold;
20
19
 
21
20
  .segmentWrapper
22
21
  display: flex
@@ -144,6 +144,5 @@ 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 &&
148
- prevProps.t === nextProps.t;
147
+ prevProps.controls.to === nextProps.controls.to;
149
148
  });
@@ -6,6 +6,7 @@
6
6
  display: flex
7
7
  flex-direction: row
8
8
  align-items: center
9
+ padding: 5px 0
9
10
  margin-bottom: 10px;
10
11
  margin-top: 10px;
11
12
  box-sizing: border-box
@@ -45,19 +46,9 @@
45
46
  font-weight: 700
46
47
 
47
48
  .sorting
48
- min-width: 181px;
49
- max-width: 285px;
50
- height: 100%;
51
- [class*='MuiPaper-root'], [class*='MuiFormControl-root-MuiTextField-root']
52
- height: 100%
49
+ min-width: 180px;
53
50
  [class*='MuiPaper-root'], [class*='MuiOutlinedInput-root']
54
51
  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;
61
52
 
62
53
  .saveSearch
63
54
  flex-basis: 20%
@@ -65,6 +56,7 @@
65
56
  cursor: pointer
66
57
  font-size: 13px
67
58
  margin-left: auto
59
+ margin-right: 10px
68
60
  color: $skyBlue
69
61
  +media-tablet-down()
70
62
  flex-basis: unset
@@ -90,8 +82,6 @@
90
82
 
91
83
  .select
92
84
  min-width: 0
93
- height:100%
94
-
95
85
 
96
86
  +media-tablet-down()
97
87
  .sorting
@@ -74,7 +74,7 @@ class SearchTopBar extends React.Component<ISearchTopBarProps, {}> {
74
74
  />
75
75
  :
76
76
  <MaterialAutocomplete
77
- size={'small'}
77
+ size={'custom'}
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={isMobileOnly ? 'mobileSearch' : ''}
85
+ name='mobileSearch'
86
86
  disableClearable={true}
87
- label={''} />;
87
+ />;
88
88
  };
89
89
 
90
90
  render(): JSX.Element {
@@ -12,7 +12,6 @@ $color-price-new = $lightGreen
12
12
  .old
13
13
  color: $grey-3;
14
14
  font-size: 8px;
15
- margin-bottom: 1px;
16
15
 
17
16
  &::after
18
17
  content: ''
@@ -62,7 +61,7 @@ _:-ms-fullscreen, :root .old::after
62
61
  font-weight: 700
63
62
 
64
63
  .price.semimedium
65
- font-size: 20px
64
+ font-size: 18px
66
65
  font-weight: 700
67
66
 
68
67
  .price.small
@@ -84,12 +83,9 @@ _:-ms-fullscreen, :root .old::after
84
83
  transform: translateY(-7px)
85
84
  font-size: 9px
86
85
 
87
- .price.semimedium .decimals,
88
- .price.semimedium .unit
89
- display: inline-block
90
- position: relative
91
- transform: translateY(-9px)
92
- font-size: 8px
86
+ // .price.large .decimals,
87
+ // .price.large .unit
88
+ // top: 4px
93
89
 
94
90
  .price.medium .decimals,
95
91
  .price.medium .unit
@@ -100,19 +96,18 @@ _:-ms-fullscreen, :root .old::after
100
96
  top: 2px
101
97
 
102
98
  .price.semimedium .decimals,
103
- .price.semimedium .unit,
104
- .price.semimedium .sub,
105
- // top: 1px
106
- font-weight: 400
107
-
108
- .price.semimedium .postfix,
109
- .old .postfix
110
- position: absolute;
111
- top: 0;
112
- left: auto;
99
+ .price.semimedium .unit
100
+ top: 1px
113
101
 
114
- .old .postfix
115
- transform: translateX(7px);
102
+ .price.large .decimals,
103
+ .price.medium .decimals,
104
+ .price.small .decimals,
105
+ .price.large .unitMonthly,
106
+ .price.medium .unitMonthly,
107
+ .price.small .unitMonthly
108
+ position: relative
109
+ transform: translateY(-7px)
110
+ font-size: 9px
116
111
 
117
112
  .price.large .decimals
118
113
  .price.large .unitMonthly
@@ -141,9 +136,8 @@ _:-ms-fullscreen, :root .old::after
141
136
  display: block
142
137
 
143
138
  .price .sub
144
- font-size: 9px;
139
+ font-size: 8px;
145
140
  display: inline-block;
146
141
  position: relative;
147
142
  bottom: 0;
148
- left: -5px
149
- vertical-align: baseline;
143
+ left: -5px
@@ -15,6 +15,10 @@
15
15
  &:nth-child(2)
16
16
  border-top-color: transparent;
17
17
 
18
+ .propertyIcon
19
+ width: 20px;
20
+ height: 23px;
21
+
18
22
  .details
19
23
  display: flex
20
24
  flex-direction: row
@@ -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} key={index} />
89
+ <VehicleProperty {...property} className={styles.property} classNameIcon={styles.propertyIcon} key={index} />
90
90
  ))}
91
91
  </div>
92
92
  )
@@ -9,35 +9,25 @@
9
9
  height: 46px;
10
10
  box-sizing: border-box;
11
11
 
12
- &.priceItemSearch
13
- height: 44px;
14
- +media-tablet-landscape-up()
15
- height: 51px;
16
- &.priceItemBuy
17
- border-top: none;
18
- border-bottom: 1px solid rgba(76, 78, 100, 0.12);
19
- +media-tablet-landscape-up()
20
- border: none;
21
-
22
12
  &.priceItemFavorite
23
13
  height: 44px;
24
- +media-tablet-landscape-up()
25
- height: 46px;
26
- &.priceItemBuy
27
- height: 52px;
28
-
29
- &.priceItemRecently
30
- height: 44px;
31
-
32
- &.priceItemBuy
33
- border-bottom: 1px solid rgba(76, 78, 100, 0.12);
34
-
35
- &.priceItemComparable
36
- +media-tablet-landscape-up()
37
- height: 38px;
38
- [class*='semimedium__']
39
- font-size: 16px;
40
14
 
15
+ +media-phone-up()
16
+ height: 42px;
17
+ &.priceItemFavorite
18
+ height: 42px;
19
+
20
+ &:first-of-type
21
+ align-items: flex-end;
22
+ padding-bottom: 10px;
23
+ .priceItemCategory
24
+ font-size: 12px;
25
+ +media-phone-up()
26
+ font-size: 11px;
27
+
28
+ &.priceItemCategorySearch
29
+ +media-tablet-landscape-up()
30
+ font-size: 12px;
41
31
  &:nth-of-type(3), &:last-of-type
42
32
  .tooltipWrap
43
33
  &__block
@@ -51,31 +41,34 @@
51
41
  transform: rotate(180deg) translateX(3px);
52
42
 
53
43
  .priceItemBuy
54
- border-top: 1px solid rgba(76, 78, 100, 0.12);
55
-
56
- .priceItemPrice
57
- transform: translateX(-6px);
44
+ border-top: 1px solid $grey-d3
58
45
 
59
46
  .priceItemCategory
60
47
  font-size: 12px
61
- color: rgba(76, 78, 100, 0.87);
48
+ font-weight bold
49
+ color: $grey-3
62
50
  box-sizing: border-box
63
51
  padding 3px 0;
64
52
  cursor pointer;
65
53
  text-decoration none;
66
54
  margin-right: 2px
67
55
  flex-shrink: 0;
68
- position relative;
69
-
70
- &.priceItemCategoryComparable
71
- +media-tablet-landscape-up()
72
- font-size: 9px;
56
+ position relative
73
57
 
74
58
  & > span:hover
75
59
  background: rgba(196, 196, 196, 0.6);
76
60
 
77
- +media-tablet-landscape-up()
78
- font-size: 13px
61
+ +media-phone-up()
62
+ font-size: 9px;
63
+
64
+ &.priceItemCategorySearch
65
+ +media-tablet-landscape-up()
66
+ font-size: 12px;
67
+
68
+ &.priceItemCategoryFavorite
69
+ +media-tablet-landscape-up()
70
+ font-size: 13px !important;
71
+ color: rgba(76, 78, 100, 0.87);
79
72
 
80
73
  .priceItemDisable
81
74
  pointer-events: none;
@@ -87,6 +80,7 @@
87
80
  .priceNewBlock
88
81
  background-color $grey-9;
89
82
 
83
+
90
84
  .noPrice
91
85
  color: $grey-9;
92
86
  font-size: 11px;
@@ -102,27 +96,19 @@
102
96
  align-items: flex-end;
103
97
  color: inherit;
104
98
 
105
- .oldPriceWrap
106
- display: flex;
107
- font-size: 10px;
108
- align-items: center;
109
- width: 100%;
110
- justify-content: space-between;
111
-
112
- .prefixOldPrice
113
- margin: 0 8px;
114
- color: rgba(51, 51, 51, 0.83);
99
+ .largeMobilePrice
100
+ +media-phone-only()
101
+ font-size: 25px;
102
+ & > span:last-of-type
103
+ transform: translateY(-12px);
115
104
 
116
105
  .oldPrice
117
- margin-left: auto;
106
+ font-size: 10px
118
107
  & > span:last-of-type
119
108
  font-size: 8px;
120
109
  transform: translateY(-2px);
121
110
  display: inline-flex;
122
111
 
123
- .priceMtl
124
- transform: translateX(6px);
125
-
126
112
  .priceNewBlock
127
113
  flex-shrink: 0;
128
114
  width: 18px
@@ -159,5 +145,5 @@
159
145
  bottom: 5px;
160
146
 
161
147
  .tooltipWrapFavorites
162
- transform: translateY(0px);
163
- margin-left: 5px;
148
+ transform: translateY(-1px);
149
+ margin-left: 5px;