@bytebrand/fe-ui-core 4.1.94 → 4.1.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.94",
3
+ "version": "4.1.95",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -10,6 +10,7 @@ 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;
@@ -57,6 +58,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
57
58
  margin,
58
59
  isAlternativeText,
59
60
  vehicleComponentName,
61
+ priceSub,
60
62
  isTotal = false,
61
63
  showAboIcon = false,
62
64
  isPriceDisable = false,
@@ -125,7 +127,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
125
127
  className={styles.priceMtl}
126
128
  isNew={isStrikeShown}
127
129
  size='semimedium'
128
- sub='/mtl.'
130
+ sub={priceSub}
129
131
  />
130
132
  )}
131
133
  </>
@@ -95,13 +95,13 @@
95
95
  height: 30px;
96
96
  font-size: 13px !important;
97
97
  min-width: auto !important;
98
- width: 100px;
98
+ width: 100%;
99
99
 
100
100
  +media-tablet-landscape-up()
101
101
  width: 100%;
102
102
 
103
103
  .btnPlusIcon
104
- font-size: 12px;
104
+ font-size: 13px;
105
105
  margin-right: 5px;
106
106
 
107
107
  +media-tablet-landscape-up()
@@ -125,6 +125,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
125
125
  perMonthCurrent: monthlyInstallment,
126
126
  title: t('vehicleProps:title.financing'),
127
127
  postfix: '3',
128
+ priceSub: t('vehicleProps:value.priceSub'),
128
129
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.financingDescription')
129
130
  },
130
131
  {
@@ -133,6 +134,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
133
134
  postfix: '1,3',
134
135
  isPriceDisable: !isLeasingActive,
135
136
  title: t('vehicleProps:title.leasing'),
137
+ priceSub: t('vehicleProps:value.priceSub'),
136
138
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.leasingDescription')
137
139
  }
138
140
  ];
@@ -180,6 +182,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
180
182
  const ListPrices = priceData.map((
181
183
  {
182
184
  title,
185
+ priceSub,
183
186
  totalCurrent,
184
187
  tooltipDescription,
185
188
  perMonthOld,
@@ -205,6 +208,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
205
208
  showAboIcon={showAboIcon}
206
209
  totalOld={highestPriceExtra}
207
210
  isTotal={isTotal}
211
+ priceSub={priceSub}
208
212
  positionY={positionY}
209
213
  url={url}
210
214
  isStrikeShown={isStrikeShown}
@@ -9,9 +9,6 @@
9
9
  align-items: center;
10
10
  border-bottom: 1px solid rgba(76, 78, 100, 0.12);
11
11
 
12
- +media-phone-up()
13
- font-size: 11px
14
-
15
12
  .carIcon
16
13
  width: 30px;
17
14
  height: 30px;
@@ -27,6 +27,9 @@
27
27
  display block
28
28
  & p
29
29
  margin: 0;
30
+ &.wrapTitlesFavorite
31
+ display: flex;
32
+
30
33
 
31
34
  .manufacturerModel
32
35
  font-size: 16px
@@ -63,12 +66,14 @@
63
66
  &.optionTitleSearch
64
67
  font-size: 12px;
65
68
  margin-top: 2px;
69
+ &.optionTitleFavorite
70
+ font-size: 12px;
71
+ margin-left: 8px;
66
72
  &.optionTitleIsAlternative
67
73
  overflow: hidden;
68
74
  max-width: 260px;
69
75
 
70
76
  .sponsored
71
- font-family: 'Arial Fett', 'Arial Standard', 'Arial'
72
77
  font-weight: 700
73
78
  font-style: normal
74
79
  font-size: 10px
@@ -30,11 +30,13 @@ const VehicleTitle: React.FC<IVehicleTitleProps> = ({
30
30
 
31
31
  const wrapTitlesClassName = classnames(
32
32
  styles.wrapTitles,
33
- { [styles.wrapTitlesSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' || vehicleComponentName === 'favorite' }
33
+ { [styles.wrapTitlesFavorite]: vehicleComponentName === 'favorite' },
34
+ { [styles.wrapTitlesSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' }
34
35
  );
35
36
  const optionTitleClassName = classnames(
36
37
  styles.optionTitle,
37
- { [styles.optionTitleSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' || vehicleComponentName === 'favorite' },
38
+ { [styles.optionTitleFavorite]: vehicleComponentName === 'favorite' },
39
+ { [styles.optionTitleSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' },
38
40
  { [styles.optionTitleIsAlternative]: combineRefAlternative }
39
41
  );
40
42
 
@@ -78,7 +78,7 @@
78
78
  'image image'\
79
79
  'info price'\
80
80
  'seoText seoText'
81
- grid-template-columns: 170px 1fr;
81
+ grid-template-columns: 160px 1fr;
82
82
  border: 1px solid rgba(76, 78, 100, 0.12);
83
83
  border-radius: 10px;
84
84
  padding-bottom: 15px;