@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.
Files changed (130) hide show
  1. package/common.ts +5 -0
  2. package/media/svg/common/arrow_breadcrumps.svg +2 -2
  3. package/media/svg/common/home.svg +6 -8
  4. package/media/svg/common/whyAutodeIconSet-F.svg +8 -12
  5. package/media/svg/common/whyAutodeIconSet-G.svg +6 -8
  6. package/media/svg/common/whyAutodeIconSet-Q.svg +5 -15
  7. package/media/svg/common/whyAutodeIconSet-R.svg +8 -13
  8. package/media/svg/infoBlocks/whyAutodeIconSet-F.svg +8 -8
  9. package/media/svg/infoBlocks/whyAutodeIconSet-G.svg +7 -6
  10. package/media/svg/infoBlocks/whyAutodeIconSet-Q.svg +5 -11
  11. package/media/svg/infoBlocks/whyAutodeIconSet-R.svg +8 -9
  12. package/package.json +1 -1
  13. package/source/components/AccordionWidget/AccordionWidget.styl +0 -3
  14. package/source/components/AccordionWidget/AccordionWidget.tsx +1 -3
  15. package/source/components/Alternative/DealerInfo.styl +7 -1
  16. package/source/components/Alternative/DealerInfo.tsx +64 -38
  17. package/source/components/Breadcrumbs/Breadcrumbs.styl +31 -19
  18. package/source/components/Breadcrumbs/Breadcrumbs.tsx +3 -3
  19. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.styl +11 -18
  20. package/source/components/PriceRating/PriceRating.styl +1 -0
  21. package/source/components/SearchFilters/common/RangeControlled/RangeControlled.tsx +2 -1
  22. package/source/components/SearchPage/SearchTopBar/SearchTopBar.styl +13 -3
  23. package/source/components/SearchPage/SearchTopBar/SearchTopBar.tsx +3 -3
  24. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.styl +23 -17
  25. package/source/components/VehicleDetailedSidebar/partials/Properties.styl +0 -4
  26. package/source/components/VehicleDetailedSidebar/partials/Properties.tsx +1 -1
  27. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +54 -40
  28. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +38 -16
  29. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +47 -18
  30. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +13 -6
  31. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +48 -28
  32. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +50 -16
  33. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +6 -8
  34. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +31 -12
  35. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +8 -3
  36. package/source/components/VehicleSmallCard/VehicleSmallCard.styl +51 -19
  37. package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +39 -9
  38. package/source/components/_common/Badge/Badge.styl +13 -7
  39. package/source/components/_common/Badge/Badge.tsx +1 -1
  40. package/source/components/_common/Button/Button.styled.tsx +13 -8
  41. package/source/components/_common/Button/Button.tsx +1 -1
  42. package/source/components/_common/ExpansionPanel/ExpansionPanel.tsx +14 -4
  43. package/source/components/_common/IconSVG/IconSVG.story.js +1 -1
  44. package/source/components/_common/IconSVG/IconSVGConfig.tsx +90 -1
  45. package/source/components/_common/IconSVG/SVG/CloseIconSelect.tsx +1 -1
  46. package/source/components/_common/IconSVG/SVG/common/AddressDashboard.tsx +29 -0
  47. package/source/components/_common/IconSVG/SVG/common/CallbackDashboard.tsx +30 -0
  48. package/source/components/_common/IconSVG/SVG/common/CloseGrey.tsx +22 -0
  49. package/source/components/_common/IconSVG/SVG/common/DashboardQuestionMark.tsx +20 -0
  50. package/source/components/_common/IconSVG/SVG/common/DeliveryDashboard.tsx +25 -0
  51. package/source/components/_common/IconSVG/SVG/common/EditPriceIcon.tsx +20 -0
  52. package/source/components/_common/IconSVG/SVG/common/HandingOverDashboard.tsx +32 -0
  53. package/source/components/_common/IconSVG/SVG/common/MenuGrey.tsx +22 -0
  54. package/source/components/_common/IconSVG/SVG/common/MyOrderIcon.tsx +20 -0
  55. package/source/components/_common/IconSVG/SVG/common/OrderReceivedDashboard.tsx +27 -0
  56. package/source/components/_common/IconSVG/SVG/common/PickupDashboard.tsx +30 -0
  57. package/source/components/_common/IconSVG/SVG/common/PreparationDashboard.tsx +29 -0
  58. package/source/components/_common/IconSVG/SVG/common/ProfileDashboard.tsx +24 -0
  59. package/source/components/_common/IconSVG/SVG/common/RegistrationDashboard.tsx +31 -0
  60. package/source/components/_common/IconSVG/SVG/common/SliderEye.tsx +2 -3
  61. package/source/components/_common/IconSVG/SVG/common/StarRoundedCorners.tsx +1 -1
  62. package/source/components/_common/IconSVG/SVG/flags/AT.tsx +19 -0
  63. package/source/components/_common/IconSVG/SVG/flags/BE.tsx +20 -0
  64. package/source/components/_common/IconSVG/SVG/flags/BG.tsx +20 -0
  65. package/source/components/_common/IconSVG/SVG/flags/CH.tsx +22 -0
  66. package/source/components/_common/IconSVG/SVG/flags/CZ.tsx +18 -0
  67. package/source/components/_common/IconSVG/SVG/flags/DE.tsx +18 -0
  68. package/source/components/_common/IconSVG/SVG/flags/DK.tsx +18 -0
  69. package/source/components/_common/IconSVG/SVG/flags/ES.tsx +2585 -0
  70. package/source/components/_common/IconSVG/SVG/flags/FI.tsx +18 -0
  71. package/source/components/_common/IconSVG/SVG/flags/FR.tsx +20 -0
  72. package/source/components/_common/IconSVG/SVG/flags/GB.tsx +26 -0
  73. package/source/components/_common/IconSVG/SVG/flags/HR.tsx +135 -0
  74. package/source/components/_common/IconSVG/SVG/flags/HU.tsx +20 -0
  75. package/source/components/_common/IconSVG/SVG/flags/IT.tsx +20 -0
  76. package/source/components/_common/IconSVG/SVG/flags/LI.tsx +106 -0
  77. package/source/components/_common/IconSVG/SVG/flags/LU.tsx +18 -0
  78. package/source/components/_common/IconSVG/SVG/flags/NL.tsx +18 -0
  79. package/source/components/_common/IconSVG/SVG/flags/NO.tsx +20 -0
  80. package/source/components/_common/IconSVG/SVG/flags/PL.tsx +19 -0
  81. package/source/components/_common/IconSVG/SVG/flags/RO.tsx +20 -0
  82. package/source/components/_common/IconSVG/SVG/flags/RU.tsx +20 -0
  83. package/source/components/_common/IconSVG/SVG/flags/SE.tsx +20 -0
  84. package/source/components/_common/IconSVG/SVG/flags/SI.tsx +54 -0
  85. package/source/components/_common/IconSVG/SVG/flags/SK.tsx +35 -0
  86. package/source/components/_common/IconSVG/SVG/flags/UA.tsx +19 -0
  87. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/AllWheelDrive.tsx +2 -2
  88. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/FrontWheelDrive.tsx +2 -2
  89. package/source/components/_common/IconSVG/SVG/searchWidgets/drive/RearWheelDrive.tsx +2 -2
  90. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelDiesel.tsx +4 -14
  91. package/source/components/_common/IconSVG/SVG/searchWidgets/fuel/FuelPetrol.tsx +1 -1
  92. package/source/components/_common/IconSVG/SVG/settings/RemoveEye.tsx +1 -1
  93. package/source/components/_common/IconSVG/SVG/settings/RemoveEyeOff.tsx +1 -1
  94. package/source/components/_common/IconSVG/SVG/slider/360New.tsx +20 -0
  95. package/source/components/_common/IconSVG/SVG/vehicle/CarAvailability.tsx +3 -3
  96. package/source/components/_common/IconSVG/SVG/vehicle/CheckoutChecked.tsx +2 -2
  97. package/source/components/_common/IconSVG/SVG/vehicle/Date.tsx +2 -2
  98. package/source/components/_common/IconSVG/SVG/vehicle/Door.tsx +5 -7
  99. package/source/components/_common/IconSVG/SVG/vehicle/FuelConsumption.tsx +1 -1
  100. package/source/components/_common/IconSVG/SVG/vehicle/NewCar.tsx +7 -9
  101. package/source/components/_common/IconSVG/SVG/vehicle/Ps.tsx +1 -1
  102. package/source/components/_common/IconSVG/SVG/vehicle/SelectorGearboxAutomatic.tsx +2 -2
  103. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +17 -1
  104. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.tsx +3 -4
  105. package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.styled.tsx +6 -3
  106. package/source/components/_common/MaterialAutocomplete/MaterialAutocomplete.tsx +28 -3
  107. package/source/components/_common/MaterialSelect/MaterialSelect.styled.tsx +0 -7
  108. package/source/components/_common/MaterialSelect/MaterialSelect.tsx +16 -9
  109. package/source/components/_common/Modal/CookieModal.tsx +10 -7
  110. package/source/components/_common/Modal/Modal.styled.tsx +2 -1
  111. package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.styl +15 -3
  112. package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.tsx +5 -3
  113. package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.styl +11 -1
  114. package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.tsx +2 -0
  115. package/source/components/_common/TimePicker/TimePicker.styl +3 -1
  116. package/source/components/_common/TimePicker/TimePicker.tsx +6 -2
  117. package/source/components/_common/UserMenu/MaterialMenu.styled.tsx +2 -1
  118. package/source/components/_common/withStats/withStats.styl +43 -87
  119. package/source/components/_common/withStats/withStats.tsx +17 -8
  120. package/source/components/containers/SearchPage/FiltersContainer/FiltersContainer.styl +7 -3
  121. package/source/framework/constants/common.ts +15 -3
  122. package/source/framework/factories/BreadcrumbsFactory.tsx +19 -8
  123. package/source/framework/factories/FactoryTypes.d.ts +1 -0
  124. package/source/framework/types/types.ts +4 -2
  125. package/source/framework/utils/CommonUtils.ts +26 -9
  126. package/source/framework/vehiclesProps/decoratedProps.tsx +19 -23
  127. package/source/framework/vehiclesProps/equipment.ts +4 -3
  128. package/source/locales/data.ts +2 -0
  129. package/source/theme/priceReviewColors.styl +3 -1
  130. package/utils.ts +16 -0
@@ -9,25 +9,35 @@
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
+
12
22
  &.priceItemFavorite
13
23
  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;
14
40
 
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;
31
41
  &:nth-of-type(3), &:last-of-type
32
42
  .tooltipWrap
33
43
  &__block
@@ -41,34 +51,31 @@
41
51
  transform: rotate(180deg) translateX(3px);
42
52
 
43
53
  .priceItemBuy
44
- border-top: 1px solid $grey-d3
54
+ border-top: 1px solid rgba(76, 78, 100, 0.12);
55
+
56
+ .priceItemPrice
57
+ transform: translateX(-6px);
45
58
 
46
59
  .priceItemCategory
47
60
  font-size: 12px
48
- font-weight bold
49
- color: $grey-3
61
+ color: rgba(76, 78, 100, 0.87);
50
62
  box-sizing: border-box
51
63
  padding 3px 0;
52
64
  cursor pointer;
53
65
  text-decoration none;
54
66
  margin-right: 2px
55
67
  flex-shrink: 0;
56
- position relative
68
+ position relative;
69
+
70
+ &.priceItemCategoryComparable
71
+ +media-tablet-landscape-up()
72
+ font-size: 9px;
57
73
 
58
74
  & > span:hover
59
75
  background: rgba(196, 196, 196, 0.6);
60
76
 
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);
77
+ +media-tablet-landscape-up()
78
+ font-size: 13px
72
79
 
73
80
  .priceItemDisable
74
81
  pointer-events: none;
@@ -80,7 +87,6 @@
80
87
  .priceNewBlock
81
88
  background-color $grey-9;
82
89
 
83
-
84
90
  .noPrice
85
91
  color: $grey-9;
86
92
  font-size: 11px;
@@ -96,19 +102,27 @@
96
102
  align-items: flex-end;
97
103
  color: inherit;
98
104
 
99
- .largeMobilePrice
100
- +media-phone-only()
101
- font-size: 25px;
102
- & > span:last-of-type
103
- transform: translateY(-12px);
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);
104
115
 
105
116
  .oldPrice
106
- font-size: 10px
117
+ margin-left: auto;
107
118
  & > span:last-of-type
108
119
  font-size: 8px;
109
120
  transform: translateY(-2px);
110
121
  display: inline-flex;
111
122
 
123
+ .priceMtl
124
+ transform: translateX(6px);
125
+
112
126
  .priceNewBlock
113
127
  flex-shrink: 0;
114
128
  width: 18px
@@ -145,5 +159,5 @@
145
159
  bottom: 5px;
146
160
 
147
161
  .tooltipWrapFavorites
148
- transform: translateY(-1px);
149
- margin-left: 5px;
162
+ transform: translateY(0px);
163
+ margin-left: 5px;
@@ -10,21 +10,25 @@ import { IPrice } from '../../../../framework/types/types';
10
10
  export interface IVehiclePriceItemProps {
11
11
  priceTitle: string;
12
12
  tooltipDescription?: string;
13
+ priceSub?: string;
13
14
  price?: IPrice;
14
15
  isTotal: Boolean;
15
16
  isNewPriceCategory: Boolean;
16
17
  showAboIcon: Boolean;
17
18
  isPriceDisable: Boolean;
18
19
  isAlternativeText?: string;
19
- vehicleComponentName?: 'comparable' | 'landing' | 'search' | 'main' | 'myVehicles' | 'favorite';
20
+ vehicleComponentName?: 'comparable' | 'landing' | 'search' | 'main' | 'myVehicles' | 'favorite' | 'recently';
20
21
  perMonthCurrent?: number;
21
22
  iconName?: string;
23
+ prefixOldPrice?: string;
22
24
  perMonthOld?: number;
23
25
  totalCurrent?: number;
24
26
  totalOld?: number;
25
27
  positionX?: string;
26
28
  positionY?: string;
27
29
  url?: string;
30
+ target?: string;
31
+ rel?: string;
28
32
  routeObj?: any;
29
33
  linkTag?: string;
30
34
  isStrikeShown?: boolean;
@@ -44,6 +48,8 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
44
48
  perMonthCurrent,
45
49
  perMonthOld,
46
50
  url,
51
+ target,
52
+ rel,
47
53
  totalOld,
48
54
  totalCurrent,
49
55
  tooltipDescription,
@@ -54,9 +60,11 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
54
60
  linkTag,
55
61
  routeObj,
56
62
  combineRefAlternative,
63
+ prefixOldPrice,
57
64
  margin,
58
65
  isAlternativeText,
59
66
  vehicleComponentName,
67
+ priceSub,
60
68
  isTotal = false,
61
69
  showAboIcon = false,
62
70
  isPriceDisable = false,
@@ -67,6 +75,9 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
67
75
  const stylesItem = classnames(
68
76
  styles.priceItem,
69
77
  { [styles.priceItemFavorite]: vehicleComponentName === 'favorite' },
78
+ { [styles.priceItemSearch]: vehicleComponentName === 'search' },
79
+ { [styles.priceItemRecently]: vehicleComponentName === 'recently' },
80
+ { [styles.priceItemComparable]: vehicleComponentName === 'comparable' || vehicleComponentName === 'landing' || vehicleComponentName === 'main' },
70
81
  { [styles.priceItemDisable]: isPriceDisable },
71
82
  { [styles.priceItemBuy]: isTotal }
72
83
  );
@@ -74,8 +85,9 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
74
85
  const priceItemCategoryClassName = classnames(
75
86
  styles.priceItemCategory,
76
87
  { [styles.priceItemCategorySearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' },
77
- { [styles.priceItemCategoryFavorite]: vehicleComponentName === 'favorite' }
88
+ { [styles.priceItemCategoryComparable]: vehicleComponentName === 'comparable' || vehicleComponentName === 'landing' || vehicleComponentName === 'main' }
78
89
  );
90
+
79
91
  return (
80
92
  <div className={stylesItem}>
81
93
  {React.createElement(linkTag, {
@@ -83,15 +95,17 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
83
95
  ...routeObj,
84
96
  onClick: this.routeToActiveTab,
85
97
  className: priceItemCategoryClassName,
86
- href: url
98
+ href: url,
99
+ target,
100
+ rel
87
101
  })}
88
102
  {tooltipDescription && (
89
103
  <Tooltip
90
- tooltipClassName={vehicleComponentName === 'favorite' ? styles.tooltipWrapFavorites : ''}
104
+ tooltipClassName={styles.tooltipWrapFavorites}
91
105
  description={tooltipDescription}
92
106
  positionX={positionX}
93
107
  positionY={positionY}
94
- iconName={vehicleComponentName === 'favorite' ? 'infoIcon' : iconName}
108
+ iconName={'infoIcon'}
95
109
  />
96
110
  )}
97
111
  {isNewPriceCategory && (
@@ -105,13 +119,17 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
105
119
  {!isPriceDisable ? (
106
120
  <>
107
121
  {isStrikeShown && perMonthOld && (
108
- <VehicleFormattedPrice
109
- numbersAfterDot={0}
110
- className={styles.oldPrice}
111
- price={perMonthOld}
112
- isOld
113
- disableStyles
114
- />
122
+ <div className={styles.oldPriceWrap}>
123
+ {prefixOldPrice && <span className={styles.prefixOldPrice}>{prefixOldPrice}</span>}
124
+ <VehicleFormattedPrice
125
+ numbersAfterDot={0}
126
+ className={styles.oldPrice}
127
+ price={perMonthOld}
128
+ size='semimedium'
129
+ isOld
130
+ disableStyles
131
+ />
132
+ </div>
115
133
  )}
116
134
 
117
135
  {perMonthCurrent && (
@@ -119,9 +137,10 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
119
137
  numbersAfterDot={0}
120
138
  price={perMonthCurrent}
121
139
  postfix={postfix}
140
+ className={styles.priceMtl}
122
141
  isNew={isStrikeShown}
123
- className={styles.largeMobilePrice}
124
- size={vehicleComponentName === 'search' && !isMobileOnly ? 'semimedium' : 'small'}
142
+ size='semimedium'
143
+ sub={priceSub}
125
144
  />
126
145
  )}
127
146
  </>
@@ -135,6 +154,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
135
154
  className={styles.oldPrice}
136
155
  price={totalOld}
137
156
  postfix={isStrikeShown ? '2' : ''}
157
+ size='semimedium'
138
158
  isOld
139
159
  disableStyles
140
160
  />
@@ -145,7 +165,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
145
165
  price={totalCurrent}
146
166
  isNew={isStrikeShown}
147
167
  toRound={false}
148
- size={vehicleComponentName === 'search' && !isMobileOnly ? 'semimedium' : 'small'}
168
+ size='semimedium'
149
169
  afterCommaClassName={styles.priceAfterComma}
150
170
  postfix={postfix}
151
171
  />
@@ -155,7 +175,9 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
155
175
  ...routeObj,
156
176
  onClick: this.routeToActiveTab,
157
177
  className: styles.priceItemPrice,
158
- href: url
178
+ href: url,
179
+ target,
180
+ rel
159
181
  })}
160
182
  </div>
161
183
  );
@@ -2,7 +2,7 @@
2
2
 
3
3
  .vehicleInfo
4
4
  box-sizing: border-box
5
- padding: 8px 7px 14px 11px
5
+ padding: 8px 7px 14px 7px
6
6
  flex-shrink: 0;
7
7
  display: grid;
8
8
  text-align: left;
@@ -17,9 +17,6 @@
17
17
  +media-tablet-landscape-down()
18
18
  padding: 0 10px;
19
19
 
20
- & > div:last-of-type
21
- margin: auto;
22
-
23
20
  &::after
24
21
  content: '';
25
22
  position absolute;
@@ -27,7 +24,7 @@
27
24
  width: 1px;
28
25
  height: calc(100% - 10px);
29
26
  top: 10px;
30
- background-color $grey-d3;
27
+ background-color rgba(76, 78, 100, 0.12);
31
28
 
32
29
  +media-phone-up()
33
30
  height: calc(100% - 20px);
@@ -51,11 +48,24 @@
51
48
  grid-auto-rows: 36px;
52
49
  grid-template-columns: 100%;
53
50
 
51
+ span
52
+ font-size: 11px;
53
+
54
54
  & > .consumptionCombined,
55
55
  & > div:last-of-type
56
56
  grid-column: auto;
57
57
  grid-row: auto;
58
-
58
+
59
+ & .priceRatingSegmentWrapSRL
60
+ gap: 2px;
61
+ & > div
62
+ width: 13px;
63
+ height: 12px;
64
+
65
+ & .priceRatingSRL span
66
+ font-size: 8px;
67
+ margin-bottom: 2px;
68
+
59
69
  &.vehiclePropertiesMain
60
70
  grid-auto-rows: 44px;
61
71
  grid-template-columns: 100%;
@@ -68,9 +78,25 @@
68
78
  +media-phone-up()
69
79
  grid-auto-rows: 38px;
70
80
 
81
+ & > .consumptionCombined span
82
+ font-size: 8px
83
+
71
84
  +media-tablet-landscape-up()
72
85
  grid-auto-rows: 36px;
73
86
 
87
+ span
88
+ font-size: 11px;
89
+
90
+ & .priceRatingSegmentWrapSRL
91
+ gap: 2px;
92
+ & > div
93
+ width: 13px;
94
+ height: 12px;
95
+
96
+ & .priceRatingSRL span
97
+ font-size: 8px;
98
+ margin-bottom: 2px;
99
+
74
100
  &.vehiclePropertiesComparable
75
101
  grid-template-columns: 100%;
76
102
  grid-auto-rows: 40px;
@@ -84,12 +110,15 @@
84
110
  +media-phone-up()
85
111
  grid-auto-rows: 38px;
86
112
 
87
- & > .consumptionCombined
113
+ & > .consumptionCombined span
88
114
  font-size: 8px
89
115
 
90
116
  +media-tablet-landscape-up()
91
117
  grid-auto-rows: 36px;
92
118
 
119
+ span
120
+ font-size: 11px;
121
+
93
122
  & .priceRatingSegmentWrapSRL
94
123
  gap: 2px;
95
124
  & > div
@@ -97,7 +126,7 @@
97
126
  height: 12px;
98
127
 
99
128
  & .priceRatingSRL span
100
- font-size: 10px;
129
+ font-size: 8px;
101
130
  margin-bottom: 2px;
102
131
 
103
132
  &.vehiclePropertiesSearch,
@@ -141,11 +170,6 @@
141
170
  & > .offerAvailability
142
171
  border: none;
143
172
 
144
- & .carIconSearch
145
- width: 30px;
146
- height: 30px;
147
- max-width: 28px;
148
-
149
173
  & .priceRatingSRL
150
174
  margin: auto;
151
175
 
@@ -177,14 +201,19 @@
177
201
  & + div
178
202
  border: none;
179
203
 
180
- & .carIconSearch
181
- width: 30px;
182
- height: 30px;
183
- max-width: 28px;
184
-
185
204
  & .priceRatingSRL
186
205
  margin: auto;
187
206
 
207
+ &.vehiclePropertiesRecently
208
+ grid-template-columns: 1fr;
209
+ display: grid;
210
+ grid-auto-rows: 44px;
211
+ padding: 0 10px;
212
+
213
+ & > .consumptionCombined
214
+ white-space: pre-line;
215
+ grid-row: 4;
216
+
188
217
  &.vehiclePropertiesMyVehicles
189
218
  &::after
190
219
  +media-tablet-landscape-down()
@@ -27,6 +27,8 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
27
27
  currentSalesPrice,
28
28
  language,
29
29
  url,
30
+ target,
31
+ rel,
30
32
  regDate,
31
33
  linkTag,
32
34
  routeObj,
@@ -78,7 +80,7 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
78
80
  icon: decoratedProps[prop].icon,
79
81
  description: decoratedProps[prop].value,
80
82
  className: styles[decoratedProps[prop].name],
81
- classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite') && styles.carIconSearch
83
+ classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently') && styles.carIconSearch
82
84
  }));
83
85
 
84
86
  return mainPropertiesList.map((property: any, index: number) => (
@@ -94,15 +96,18 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
94
96
  { [styles.vehiclePropertiesSearch]: vehicleComponentName === 'search' },
95
97
  { [styles.vehiclePropertiesFavorite]: vehicleComponentName === 'favorite' },
96
98
  { [styles.vehiclePropertiesMyVehicles]: vehicleComponentName === 'myVehicles' },
99
+ { [styles.vehiclePropertiesRecently]: vehicleComponentName === 'recently' },
97
100
  { [styles.vehiclePropertiesIsAlternative]: combineRefAlternative },
98
101
  );
99
102
 
103
+ const conditionForRating = vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently';
104
+
100
105
  return (
101
106
  <>
102
107
  {React.createElement(linkTag, {
103
108
  children: (
104
109
  <>
105
- {vehicleComponentName === 'comparable' ? renderProperty(getMainPropertiesForComparableCars) : ''}
110
+ {vehicleComponentName === 'comparable' || vehicleComponentName === 'recently' ? renderProperty(getMainPropertiesForComparableCars) : ''}
106
111
  {vehicleComponentName === 'main' ? renderProperty(getMainPropertiesForLandingCars) : ''}
107
112
  {vehicleComponentName === 'landing' ? (
108
113
  <>
@@ -130,16 +135,18 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
130
135
  t={t}
131
136
  i18nPrefix={i18nPrefixForPriceRating ? `${i18nPrefixForPriceRating}priceRating.` : 'priceRating.'}
132
137
  rating={getPriceRating(currentSalesPrice, mlCurrentSalesPricePredicted)}
133
- className={`${styles.priceRating} ${vehicleComponentName === 'search' || 'myVehicles' || 'favorite' ? styles.priceRatingSRL : ''}`}
134
- classLabel={vehicleComponentName === 'search' || 'myVehicles' || 'favorite' ? styles.priceRatingLabelSRL : ''}
135
- classSegmentWrapper={vehicleComponentName === 'search' || 'myVehicles' || 'favorite' ? styles.priceRatingSegmentWrapSRL : ''}
138
+ className={`${styles.priceRating} ${conditionForRating ? styles.priceRatingSRL : ''}`}
139
+ classLabel={conditionForRating ? styles.priceRatingLabelSRL : ''}
140
+ classSegmentWrapper={conditionForRating ? styles.priceRatingSegmentWrapSRL : ''}
136
141
  />
137
142
  </>
138
143
  ),
139
144
  ...routeObj,
140
145
  className: wrapClasses,
141
146
  onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
142
- href: url
147
+ href: url,
148
+ target,
149
+ rel
143
150
  })}
144
151
  </>
145
152
  );
@@ -13,34 +13,51 @@
13
13
  padding: 13px 12px 0 8px
14
14
 
15
15
  &.vehiclePriceSectionSearch
16
+ padding: 0 10px;
16
17
  +media-tablet-landscape-up()
17
18
  flex-shrink: 0;
18
- padding: 0 5px 0 15px;
19
- border-left: 1px solid $grey-d
19
+ padding: 24px 5px 0 15px;
20
+ border-left: 1px solid rgba(76, 78, 100, 0.12)
20
21
 
21
22
  &.vehiclePriceSectionFavorite
22
- padding: 0 10px 0 10px
23
+ padding: 1px 10px 0 10px
23
24
  +media-tablet-landscape-up()
25
+ margin-top: -1px;
24
26
  flex-shrink: 0;
25
27
  padding: 0 5px 0 15px;
26
- border-left: 1px solid $grey-d
28
+ border-left: 1px solid rgba(76, 78, 100, 0.12)
27
29
  gap: 3px;
28
30
 
31
+ &.vehiclePriceSectionRecently
32
+ padding: 1px 10px 0 10px
33
+
29
34
  .vehiclePriceTitle
30
- color: $grey-3
31
- display block;
35
+ color: rgba(76, 78, 100, 0.87);
36
+ display flex;
37
+ align-items: center;
32
38
  flex-shrink: 0;
33
39
  font-size: 11px;
34
40
  height: 20px;
35
41
 
36
- +media-phone-up()
42
+ +media-tablet-landscape-up()
37
43
  font-size 10px
38
44
  height: 12px;
39
45
 
40
46
  &.vehiclePriceTitleSearch
47
+ font-size: 12px;
48
+ height: 44px;
49
+
50
+ &.vehiclePriceTitleFavorite
51
+ font-size: 12px;
52
+ height: 42px;
53
+
41
54
  +media-tablet-landscape-up()
42
- font-size: 11px;
43
- height: 20px;
55
+ font-size: 13px;
56
+ height: 46px;
57
+
58
+ &.vehiclePriceTitleRecently
59
+ font-size: 12px;
60
+ height: 42px;
44
61
 
45
62
  .addOfferButton
46
63
  white-space: normal
@@ -51,30 +68,34 @@
51
68
  width: 100%
52
69
  height: 40px
53
70
  font-size: 16px
54
- margin-top: 5px !important;
71
+ margin-top: 8px !important;
55
72
  font-weight bold !important;
56
73
  border-radius: 0 !important;
57
- text-transform: uppercase !important
58
74
 
59
75
  .isAlternativeButton
60
76
  background-color: $alternative !important
61
77
 
62
78
  .wrapCheckbox
63
- height: 42px;
64
- & > div
65
- order: 1;
79
+ min-height: 42px !important;
80
+ justify-content: space-between !important;
81
+ margin-left: 0 !important;
82
+
66
83
  & span
67
- margin: 0 !important;
68
84
  color: rgba(76, 78, 100, 0.87);
85
+ font-size: 12px;
86
+
87
+ +media-tablet-landscape-up()
88
+ font-size: 13px;
69
89
 
70
90
  .wrapHandleCompare
71
91
  display: flex;
72
92
  gap: 8px;
73
- border-top: 1px solid $grey-d3;
93
+ border-top: 1px solid rgba(76, 78, 100, 0.12);
74
94
  padding-top: 15px;
95
+ justify-content: center;
75
96
 
76
97
  +media-tablet-landscape-up()
77
- margin-top: 19px;
98
+ margin-top: 12px;
78
99
  padding-top: 0;
79
100
  border: none;
80
101
 
@@ -85,19 +106,18 @@
85
106
  display: flex !important;
86
107
 
87
108
  .btnCarToCompare
88
- display: flex;
109
+ display: flex !important;
89
110
  height: 30px;
90
- align-items: center;
91
- text-transform uppercase !important
92
- width: 100%;
111
+ font-size: 13px !important;
93
112
  min-width: auto !important;
94
- max-width: 100% !important;
113
+ width: 100%;
114
+
115
+ +media-tablet-landscape-up()
116
+ width: 100%;
95
117
 
96
118
  .btnPlusIcon
97
- font-size: 26px;
98
- margin-right: 10px;
99
- line-height: 26px;
119
+ font-size: 13px;
120
+ margin-right: 5px;
100
121
 
101
- .btnText
102
- position: relative;
103
- top: -2px;
122
+ +media-tablet-landscape-up()
123
+ margin-right: 10px;