@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
@@ -5,15 +5,17 @@
5
5
  box-sizing: border-box;
6
6
  font-size: 12px
7
7
  line-height: 1;
8
- color: rgba(76, 78, 100, 0.87);
8
+ color: $grey-3
9
9
  align-items: center;
10
- border-bottom: 1px solid rgba(76, 78, 100, 0.12);
10
+ border-bottom: 1px solid $grey-d
11
+
12
+ +media-phone-up()
13
+ font-size: 11px
11
14
 
12
15
  .carIcon
13
- width: 28px;
14
- height: 30px;
15
- margin-right: 5px
16
+ max-width: 16px;
17
+ margin-right: 6px
16
18
  flex-shrink: 0
17
19
 
18
- +media-tablet-landscape-up()
20
+ +media-phone-up()
19
21
  margin-right: 10px
@@ -2,22 +2,21 @@
2
2
 
3
3
  .infoSection
4
4
  position: relative
5
+ display: flex
5
6
  align-items: center;
6
7
  box-sizing: border-box
7
- display: block
8
- padding: 10px 30px 10px 16px
9
- +media-tablet-landscape-up()
10
- padding: 6px;
11
- display: flex
8
+ padding: 7px 6px;
9
+
10
+ +media-phone-only()
11
+ display: block
12
+ padding: 10px 30px 10px 10px
13
+
12
14
  &.infoSectionSearch
13
15
  +media-tablet-landscape-up()
14
16
  padding 0;
15
17
  &.infoSectionMyVehicles
16
18
  +media-phone-only()
17
19
  display: flex
18
- &.infoSectionRecently
19
- +media-tablet-landscape-down()
20
- padding: 12px 30px 12px 16px
21
20
 
22
21
  .wrapTitles
23
22
  display flex;
@@ -26,14 +25,8 @@
26
25
  display block
27
26
  &.wrapTitlesSearch
28
27
  display block
29
- +media-tablet-landscape-up()
30
- display flex
31
- &.wrapTitlesFavorite
32
- display: flex;
33
- +media-tablet-landscape-up()
34
- display: block;
35
- &.wrapTitlesRecently
36
- display: flex;
28
+ & p
29
+ margin: 0;
37
30
 
38
31
  .manufacturerModel
39
32
  font-size: 16px
@@ -55,7 +48,7 @@
55
48
  margin 0
56
49
  max-width: 88vw
57
50
 
58
- +media-tablet-landscape-up()
51
+ +media-phone-up()
59
52
  margin: 0 0 -1px 3px
60
53
  max-width: 100%;
61
54
 
@@ -68,25 +61,13 @@
68
61
  truncate();
69
62
 
70
63
  &.optionTitleSearch
71
- font-size: 12px;
72
- margin-top: 3px;
73
- +media-tablet-landscape-up()
74
- margin-left: 8px;
75
- margin-top: 0;
76
- &.optionTitleFavorite
77
- font-size: 12px;
78
- margin-left: 8px;
79
- +media-tablet-landscape-up()
80
- margin-left: -3px;
81
- margin-top: 3px;
82
- &.optionTitleRecently
83
- font-size: 12px;
84
- margin-left: 8px;
64
+ font-size: 14px;
85
65
  &.optionTitleIsAlternative
86
66
  overflow: hidden;
87
67
  max-width: 260px;
88
68
 
89
69
  .sponsored
70
+ font-family: 'Arial Fett', 'Arial Standard', 'Arial'
90
71
  font-weight: 700
91
72
  font-style: normal
92
73
  font-size: 10px
@@ -24,22 +24,17 @@ const VehicleTitle: React.FC<IVehicleTitleProps> = ({
24
24
 
25
25
  const infoSectionClassName = classnames(
26
26
  styles.infoSection,
27
- { [styles.infoSectionSearch]: vehicleComponentName === 'search' },
28
- { [styles.infoSectionRecently]: vehicleComponentName === 'recently' },
27
+ { [styles.infoSectionSearch]: vehicleComponentName === 'search' || 'favorite' },
29
28
  { [styles.infoSectionMyVehicles]: vehicleComponentName === 'myVehicles' }
30
29
  );
31
30
 
32
31
  const wrapTitlesClassName = classnames(
33
32
  styles.wrapTitles,
34
- { [styles.wrapTitlesFavorite]: vehicleComponentName === 'favorite' },
35
- { [styles.wrapTitlesRecently]: vehicleComponentName === 'recently' },
36
- { [styles.wrapTitlesSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' }
33
+ { [styles.wrapTitlesSearch]: vehicleComponentName === 'search' || 'myVehicles' || 'favorite' }
37
34
  );
38
35
  const optionTitleClassName = classnames(
39
36
  styles.optionTitle,
40
- { [styles.optionTitleFavorite]: vehicleComponentName === 'favorite' },
41
- { [styles.optionTitleRecently]: vehicleComponentName === 'recently' },
42
- { [styles.optionTitleSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' },
37
+ { [styles.optionTitleSearch]: vehicleComponentName === 'search' || 'myVehicles' || 'favorite' },
43
38
  { [styles.optionTitleIsAlternative]: combineRefAlternative }
44
39
  );
45
40
 
@@ -7,8 +7,8 @@
7
7
  display: grid;
8
8
 
9
9
  +media-tablet-landscape-up()
10
- border-radius: 10px;
11
- border: 1px solid rgba(76, 78, 100, 0.12)
10
+ border-radius: 3px;
11
+ border: 1px solid $grey-e
12
12
 
13
13
  &.disableBorder
14
14
  border-bottom: 0;
@@ -27,14 +27,14 @@
27
27
  border-bottom: 6px solid $skyBlue;
28
28
 
29
29
  +media-tablet-landscape-up()
30
- border: 1px solid rgba(76, 78, 100, 0.12);
30
+ border: 1px solid $grey-e;
31
31
  grid-template-columns: 112px 1fr;
32
32
 
33
33
  &.vehicleWrapComparable
34
34
  min-width: 230px
35
35
  margin: 0 4px
36
36
  border-radius 3px
37
- border: 1px solid rgba(76, 78, 100, 0.12);
37
+ border: 1px solid $grey-e
38
38
  grid-template-columns: 100px 1fr;
39
39
 
40
40
  +media-tablet-down()
@@ -50,7 +50,7 @@
50
50
  &.vehicleWrapMain
51
51
  grid-template-columns: 112px 1fr;
52
52
  border-radius 3px
53
- border: 1px solid rgba(76, 78, 100, 0.12);
53
+ border: 1px solid $grey-e
54
54
 
55
55
  +media-phone-only()
56
56
  grid-template-columns: 155px 1fr;
@@ -61,18 +61,13 @@
61
61
  'image image'\
62
62
  'info price'\
63
63
  'seoText seoText'
64
- grid-template-columns: 55% 45%;
65
- border-bottom: 1px solid #DFDFDF;
66
- border-top: 1px solid #DFDFDF;
67
- margin-bottom: 5px;
68
- padding-bottom: 8px;
64
+ grid-template-columns: 50% 50%;
65
+ border-bottom: 6px solid $skyBlue;
69
66
  +media-tablet-landscape-up()
70
- height: 252px;
71
- box-sizing: border-box;
72
- border: 1px solid rgba(76, 78, 100, 0.12);
67
+ border: 1px solid $grey-e;
73
68
  padding: 10px;
74
69
  grid-gap: 10px 15px;
75
- grid-template-columns: 260px 1fr 189px;
70
+ grid-template-columns: 260px 1fr 169px;
76
71
  grid-template-areas:
77
72
  'title title price'\
78
73
  'image info price'
@@ -83,11 +78,12 @@
83
78
  'image image'\
84
79
  'info price'\
85
80
  'seoText seoText'
86
- grid-template-columns: 160px 1fr;
87
- border: 1px solid rgba(76, 78, 100, 0.12);
81
+ grid-template-columns: 155px 1fr;
82
+ border: 1px solid $grey-e;
88
83
  border-radius: 10px;
89
84
  padding-bottom: 15px;
90
85
  +media-tablet-landscape-up()
86
+ border: 1px solid $grey-e;
91
87
  padding: 10px;
92
88
  grid-gap: 10px 15px;
93
89
  grid-template-columns: 260px 1fr 245px;
@@ -95,30 +91,6 @@
95
91
  'title title price'\
96
92
  'image info price'
97
93
 
98
- &.vehicleWrapRecently
99
- box-sizing: border-box;
100
- grid-template-areas:
101
- 'title title'\
102
- 'image image'\
103
- 'info price'\
104
- 'seoText seoText'
105
- grid-template-columns: 160px 1fr;
106
- border: 1px solid rgba(76, 78, 100, 0.12);
107
- border-radius: 10px;
108
- padding-bottom: 15px;
109
-
110
- & [class*='withStats__topWrapper']
111
- left: 16px;
112
- right: 16px;
113
-
114
- & [class*='withStats__controls']
115
- padding: 0 16px;
116
-
117
- +media-tablet-up()
118
- max-width: 98%;
119
- +media-tablet-landscape-up()
120
- max-width: 346px;
121
-
122
94
  &.vehicleWrapMyVeicles
123
95
  grid-template-areas:
124
96
  'title title'\
@@ -130,7 +102,7 @@
130
102
  grid-template-columns: 50% 50%;
131
103
  border-bottom: 6px solid $skyBlue;
132
104
  +media-tablet-landscape-up()
133
- border: 1px solid rgba(76, 78, 100, 0.12);
105
+ border: 1px solid $grey-e;
134
106
  padding: 10px;
135
107
  grid-gap: 0 15px;
136
108
  grid-template-columns: 260px 1fr 169px 236px;
@@ -171,6 +143,8 @@
171
143
  text-decoration: none;
172
144
  display: block;
173
145
 
146
+ .gridAreaImage
147
+
174
148
  .gridAreaTitle
175
149
  grid-area: title;
176
150
  max-width: 100%;
@@ -198,15 +172,9 @@
198
172
  &:first-of-type
199
173
  color: $skyBlue;
200
174
 
175
+ .svgIcon
176
+ margin-right: 10px;
177
+
201
178
  .isFirstReferenceCar
202
179
  border: 1px solid $skyBlue !important;
203
- background-color: #005CCB0D;
204
- justify-content: space-between;
205
- margin-top: 5px;
206
-
207
- & > div
208
- display flex
209
- align-items: center
210
-
211
- &:first-of-type
212
- color: $skyBlue;
180
+ background-color: #005CCB0D;
@@ -3,7 +3,7 @@ import classnames from 'classnames';
3
3
  import _get from 'lodash/get';
4
4
  import LazyLoad from 'react-lazyload';
5
5
  import withLabel from '../_common/withLabel/withLabel';
6
- import withStats, { IStatsWrapperProps } from '../_common/withStats/withStats';
6
+ import withStats, { IStatsWrapperProps, IStatsData } from '../_common/withStats/withStats';
7
7
  import Image from '../_common/Image/Image';
8
8
  import IconSVG from '../_common/IconSVG/IconSVG';
9
9
  import VehicleSlider from '../_common/VehicleSlider/VehicleSlider';
@@ -32,16 +32,16 @@ interface IVehicleSmallCardProps {
32
32
  t?: (key: string, options?: object) => string;
33
33
  i18nPrefixForPriceRating?: string;
34
34
  language?: string;
35
- vehicleComponentName?: 'comparable' | 'landing' | 'search' | 'main' | 'myVehicles' | 'favorite' | 'recently';
35
+ vehicleComponentName?: 'comparable' | 'landing' | 'search' | 'main' | 'myVehicles' | 'favorite';
36
36
  isTop?: boolean;
37
37
  isDealer?: boolean;
38
38
  isDealerSuperAdmin?: boolean;
39
39
  isReferenceSearch?: boolean;
40
- dashboardButtonText?: string;
41
40
  showNewLabel?: boolean;
42
41
  CircularProgressbar?: any;
43
42
  slider?: IVehicleSliderProps | IVehicleSliderForSRLProps;
44
43
  stats?: IStatsWrapperProps;
44
+ statsData?: IStatsData;
45
45
  title?: IVehicleTitleProps;
46
46
  info?: IVehicleInfo;
47
47
  location?: IVehicleLocation;
@@ -53,7 +53,6 @@ interface IVehicleSmallCardProps {
53
53
  offer?: object;
54
54
  price?: IPrice;
55
55
  seoText?: string;
56
- classButton?: string;
57
56
  mainImageId?: string;
58
57
  crawledAt?: string;
59
58
  modificationDate?: string;
@@ -70,8 +69,6 @@ interface IVehicleSmallCardProps {
70
69
  children?: ReactNode;
71
70
  showSlider?: boolean;
72
71
  showOfferBtn?: boolean;
73
- hasInteriorExteriorPhoto?: boolean;
74
- showCompareCheckboxes?: boolean;
75
72
  showFavoriteStar?: boolean;
76
73
  minimizeData?: boolean;
77
74
  onContainerClick?: (event?: any) => void;
@@ -94,6 +91,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
94
91
  vehicleComponentName,
95
92
  i18nPrefixForPriceRating,
96
93
  stats,
94
+ statsData,
97
95
  compareProps,
98
96
  title,
99
97
  info,
@@ -101,7 +99,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
101
99
  consumption,
102
100
  environmentEmissions,
103
101
  isReferenceSearch,
104
- showCompareCheckboxes,
105
102
  CircularProgressbar,
106
103
  engineData,
107
104
  offer,
@@ -112,8 +109,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
112
109
  language,
113
110
  className,
114
111
  url,
115
- target,
116
- rel,
117
112
  onContainerClick,
118
113
  onAddOfferToMainSlideClick,
119
114
  isDealer,
@@ -135,9 +130,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
135
130
  iconName,
136
131
  showSlider,
137
132
  percentage,
138
- classButton,
139
- hasInteriorExteriorPhoto,
140
- dashboardButtonText,
141
133
  showOfferBtn = false,
142
134
  showFavoriteStar = true,
143
135
  minimizeData = false,
@@ -162,7 +154,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
162
154
  { [styles.vehicleWrapComparable]: vehicleComponentName === 'comparable' },
163
155
  { [styles.vehicleWrapMyVeicles]: vehicleComponentName === 'myVehicles' },
164
156
  { [styles.vehicleWrapFavorite]: vehicleComponentName === 'favorite' },
165
- { [styles.vehicleWrapRecently]: vehicleComponentName === 'recently' },
166
157
  { [styles.topVehicle]: isTop },
167
158
  { [styles.disableBorder]: minimizeData },
168
159
  { [styles.isFirstReferenceCar]: isReferenceSearch && index === 0 && currentPage === 1 },
@@ -172,7 +163,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
172
163
  const decoratedSliderProps = {
173
164
  t,
174
165
  id,
175
- hasInteriorExteriorPhoto,
176
166
  ...label,
177
167
  ...stats,
178
168
  ...slider,
@@ -195,9 +185,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
195
185
  combineRefAlternative
196
186
  };
197
187
 
198
- const routeObj = linkTag !== 'a'
199
- ? { to: { pathname: url, state: { mainImageId, mainImageUrl: src, carId: id, isSavedCheckout: showOfferBtn, ...title } } }
200
- : '';
188
+ const routeObj = linkTag !== 'a' ? { to: { pathname: url, state: { mainImageUrl: src } } } : '';
201
189
 
202
190
  const vehicleInfoProps = {
203
191
  t,
@@ -212,8 +200,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
212
200
  linkTag,
213
201
  routeObj,
214
202
  url,
215
- target,
216
- rel,
217
203
  engineData,
218
204
  ...price,
219
205
  ...info
@@ -223,12 +209,8 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
223
209
  t,
224
210
  id,
225
211
  url,
226
- target,
227
- rel,
228
212
  iconName,
229
- dashboardButtonText,
230
213
  vehicleComponentName,
231
- classButton,
232
214
  linkTag,
233
215
  onAddOfferToMainSlideClick,
234
216
  isDealerSuperAdmin,
@@ -239,7 +221,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
239
221
  combineRefAlternative,
240
222
  typeAlternative,
241
223
  isAlternative,
242
- showCompareCheckboxes,
243
224
  ...price,
244
225
  ...compareProps
245
226
  };
@@ -260,17 +241,13 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
260
241
  t,
261
242
  price,
262
243
  showNewLabel,
263
- ...stats
244
+ statsData
264
245
  };
265
246
 
266
247
  const linkBaseUrl = (e: MouseEvent<HTMLImageElement>) => {
267
248
  e.preventDefault();
268
249
  if (baseUrl) window.open(baseUrl, '_blank');
269
250
  };
270
- const showComponentLikeSlider = vehicleComponentName === 'search' ||
271
- vehicleComponentName === 'myVehicles' ||
272
- vehicleComponentName === 'favorite' ||
273
- vehicleComponentName === 'recently';
274
251
  return (
275
252
  <section className={wrapperClassName} onClick={onContainerClick} id={id}>
276
253
  {createElement(linkTag, {
@@ -278,9 +255,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
278
255
  ...routeObj,
279
256
  className: `${styles.redirectClassLink} ${styles.gridAreaTitle}`,
280
257
  onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
281
- href: url,
282
- target,
283
- rel
258
+ href: url
284
259
  })}
285
260
 
286
261
  {createElement(linkTag, {
@@ -288,7 +263,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
288
263
  <>
289
264
  {showSlider ? (
290
265
  <>
291
- {showComponentLikeSlider ? (
266
+ {vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' || vehicleComponentName === 'favorite' ? (
292
267
  <>
293
268
  <DecoratedSliderForSRL {...decoratedSliderProps} />
294
269
  {renderIDInfo && isDealer ? renderIDInfo() : null}
@@ -331,9 +306,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
331
306
  ...routeObj,
332
307
  className: `${styles.redirectClassLink} ${styles.gridAreaImage}`,
333
308
  onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
334
- href: url,
335
- target,
336
- rel
309
+ href: url
337
310
  })}
338
311
  <VehicleInfo {...vehicleInfoProps} />
339
312
  <VehiclePrice {...vehiclePriceProps} />
@@ -353,7 +326,6 @@ VehicleSmallCard.defaultProps = {
353
326
  isTop: false,
354
327
  showSlider: false,
355
328
  isDealerSuperAdmin: false,
356
- showCompareCheckboxes: false,
357
329
  slider: {},
358
330
  stats: {},
359
331
  title: {},
@@ -379,7 +351,6 @@ export default memo(VehicleSmallCard, (props, nextProps) => { // shouldComponent
379
351
  financing: { monthlyInstallment, annualMileage, withFinalInstallment },
380
352
  leasing: { monthlyInstallment: lMonthlyInstallment }
381
353
  },
382
- stats: { statsData },
383
354
  isCarInFavorite,
384
355
  compareProps,
385
356
  children
@@ -391,7 +362,6 @@ export default memo(VehicleSmallCard, (props, nextProps) => { // shouldComponent
391
362
  && withFinalInstallment === nextProps.price.financing.withFinalInstallment
392
363
  && lMonthlyInstallment === nextProps.price.leasing.monthlyInstallment
393
364
  && isCarInFavorite === nextProps.isCarInFavorite
394
- && statsData === nextProps.stats.statsData
395
365
  && _get(compareProps, 'toCompare') === _get(compareProps, 'nextProps.toCompare')
396
366
  && children === nextProps.children;
397
367
  });
@@ -1,13 +1,13 @@
1
1
  @import '../../../theme/theme.styl'
2
2
 
3
- $badge-height = 24px
3
+ $badge-height = 19px
4
4
  $badge-width = 40px
5
5
  $badge-border-width = 1px
6
6
 
7
7
  .badge
8
8
  display: inline-block
9
- border-radius: 16px
10
- padding: 0 10px
9
+ border-radius: 3px
10
+ padding: 0 5px
11
11
  box-sizing: border-box
12
12
  text-align: center
13
13
  width: auto
@@ -17,12 +17,10 @@ $badge-border-width = 1px
17
17
  border-style: solid
18
18
  border-color: transparent
19
19
  vertical-align: middle
20
+ font-family: 'ArialMT', 'Arial'
20
21
  font-weight: 400
21
- font-size: 13px
22
- display: flex;
23
- align-items: center;
24
- line-height: 1;
25
- justify-content: center;
22
+ font-size: 12px
23
+ line-height: $badge-height - $badge-border-width * 2
26
24
 
27
25
  .white
28
26
  background-color: white
@@ -30,12 +28,8 @@ $badge-border-width = 1px
30
28
  .grey
31
29
  background-color: $grey-c
32
30
  .green
33
- background-color: $lightGreen
31
+ background-color: $green
34
32
  color: white
35
33
  .blue
36
34
  background-color: $primary
37
35
  color: white
38
-
39
- .red
40
- color: #fff;
41
- background-color: #E60000;
@@ -3,7 +3,7 @@ import classnames from 'classnames';
3
3
 
4
4
  import styles from './Badge.styl';
5
5
 
6
- export type TBadgeType = 'white' | 'gray' | 'green' | 'blue' | 'red';
6
+ export type TBadgeType = 'white' | 'gray' | 'green' | 'blue';
7
7
 
8
8
  export interface IBadgeProps {
9
9
  children: any;
@@ -2,11 +2,13 @@ export const useStyles = {
2
2
  position: 'relative',
3
3
  display: 'inline-block',
4
4
  margin: 0,
5
+ backgroundColor: '#999',
5
6
  minHeight: 28,
6
7
  minWidth: 140,
7
8
  lineHeight: '26px',
8
9
  fontSize: 14,
9
10
  padding: '0 10px',
11
+ color: 'white',
10
12
  cursor: 'pointer',
11
13
  boxSizing: 'border-box',
12
14
  transition: 'all 0.2s ease-in-out',
@@ -26,7 +28,7 @@ export const useStyles = {
26
28
  backgroundColor: 'red'
27
29
  },
28
30
  '&.MuiButton-outlinedPrimary:not(.Mui-disabled)': {
29
- border: '1px solid #666CFF80',
31
+ border: '1px solid #005ccb',
30
32
  background: 'transparent',
31
33
  color: '#005ccb'
32
34
  },
@@ -34,18 +36,11 @@ export const useStyles = {
34
36
  background: 'transparent',
35
37
  color: '#005ccb'
36
38
  },
37
- '&.MuiButton-textError:not(.Mui-disabled)': {
38
- color: '#E60000'
39
- },
40
- '&.MuiButton-outlinedError:not(.Mui-disabled)': {
41
- color: '#E60000',
42
- borderColor: '#FF4D4980'
43
- },
44
- ['&.MuiButton-outlinedError:not(.Mui-disabled):hover, &.MuiButton-textError:not(.Mui-disabled):hover']: {
45
- backgroundColor: 'rgba(255, 77, 73, 0.05)'
39
+ '&.MuiButton-textSecondary:not(.Mui-disabled)': {
40
+ background: 'transparent',
41
+ color: '#FF0266'
46
42
  },
47
- '&.Mui-disabled.MuiButton-containedPrimary': {
48
- backgroundColor: 'transparent',
49
- border: '1px solid #4C4E641F'
43
+ '&.Mui-disabled': {
44
+ backgroundColor: 'rgba(0, 0, 0, 0.12) !important'
50
45
  }
51
46
  };
@@ -7,7 +7,7 @@ import styles from './Button.styl';
7
7
  import Loader from '../Loader/Loader';
8
8
 
9
9
  export type variantType = 'contained' | 'outlined' | 'text';
10
- export type variantColor = 'primary' | 'secondary' | 'error';
10
+ export type variantColor = 'primary' | 'secondary';
11
11
  export type ButtonHTMLType = 'button' | 'reset' | 'submit';
12
12
 
13
13
  export interface IButtonProps {
@@ -22,10 +22,6 @@ export interface IExpansionPanelProps {
22
22
  expandedClassName?: string;
23
23
  arrowIconClassName?: string;
24
24
  expanded?: string | boolean;
25
- vehiclesComparedCount?: number;
26
- widthCompareBlock?: number;
27
- isCompare?: boolean;
28
- accordionSummaryClassName?: string;
29
25
  accordionClassName?: string;
30
26
  }
31
27
 
@@ -49,19 +45,15 @@ class ExpansionPanel extends React.Component<IExpansionPanelProps> {
49
45
  reactScrollName,
50
46
  reactScrollClassName,
51
47
  defaultExpanded,
52
- accordionSummaryClassName,
53
48
  subTitleClassName,
54
49
  onChange,
55
50
  expanded,
56
- accordionClassName,
57
- vehiclesComparedCount,
58
- widthCompareBlock,
59
- isCompare = false
51
+ accordionClassName
60
52
  } = this.props;
61
53
 
62
54
  const scrollElementClassName = classnames(reactScrollClassName);
63
55
  const subtitleCombinedClassName = classnames(styles.subTitle, subTitleClassName);
64
- const widthForTitle = `${vehiclesComparedCount * widthCompareBlock}px`;
56
+
65
57
  return (
66
58
  <ConditionalWrapper
67
59
  condition={reactScrollName}
@@ -70,16 +62,14 @@ class ExpansionPanel extends React.Component<IExpansionPanelProps> {
70
62
  <ThemeProvider theme={Theme}>
71
63
  <Accordion
72
64
  defaultExpanded={defaultExpanded}
73
- onChange={isCompare ? onChange : onChange && onChange(reactScrollName)}
74
- expanded={isCompare ? expanded : expanded && (expanded === reactScrollName)}
65
+ onChange={onChange && onChange(reactScrollName)}
66
+ expanded={expanded && (expanded === reactScrollName)}
75
67
  className={accordionClassName}
76
68
  >
77
69
  <AccordionSummary
78
70
  expandIcon={<IconSVG name={'arrowSelect'} className={styles.icon} customDimensions />}
79
71
  aria-controls={title}
80
- className={accordionSummaryClassName}
81
72
  id={title}
82
- sx={isCompare && { width: widthForTitle }}
83
73
  >
84
74
  <span>
85
75
  {title}
@@ -13,7 +13,7 @@ storiesOf('_Common_UI', module)
13
13
  <div style={{display: 'flex', flexWrap: 'wrap'}}>
14
14
  {iconNames.map((name) => (
15
15
  <div style={{width: '250px', margin: '10px', padding: '10px', border: '1px solid black', display: 'flex', justifyContent: 'space-between', alignItems: 'center'}}>
16
- <IconSVG customDimensions name={name}/>
16
+ <IconSVG name={name}/>
17
17
  <div> - {name}</div>
18
18
  </div>
19
19
  ))}