@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 +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +3 -1
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +2 -2
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +4 -0
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +0 -3
- package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +6 -1
- package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +4 -2
- package/source/components/VehicleSmallCard/VehicleSmallCard.styl +1 -1
package/package.json
CHANGED
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx
CHANGED
|
@@ -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=
|
|
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:
|
|
98
|
+
width: 100%;
|
|
99
99
|
|
|
100
100
|
+media-tablet-landscape-up()
|
|
101
101
|
width: 100%;
|
|
102
102
|
|
|
103
103
|
.btnPlusIcon
|
|
104
|
-
font-size:
|
|
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}
|
|
@@ -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.
|
|
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.
|
|
38
|
+
{ [styles.optionTitleFavorite]: vehicleComponentName === 'favorite' },
|
|
39
|
+
{ [styles.optionTitleSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' },
|
|
38
40
|
{ [styles.optionTitleIsAlternative]: combineRefAlternative }
|
|
39
41
|
);
|
|
40
42
|
|