@bytebrand/fe-ui-core 4.1.209 → 4.1.211
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.styl +7 -1
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +7 -3
- package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.styl +2 -3
- package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +4 -0
- package/source/components/_common/MaterialTooltip/MaterialTooltip.styled.tsx +0 -1
- package/source/components/_common/MaterialTooltip/MaterialTooltip.tsx +7 -4
- package/source/locales/data.ts +1 -0
package/package.json
CHANGED
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl
CHANGED
|
@@ -84,8 +84,13 @@
|
|
|
84
84
|
color: $grey-9;
|
|
85
85
|
[class*='MuiIconButton-root']
|
|
86
86
|
svg
|
|
87
|
+
circle
|
|
88
|
+
// fill: $grey-9;
|
|
89
|
+
stroke: $grey-9;
|
|
87
90
|
path
|
|
91
|
+
stroke: $grey-9;
|
|
88
92
|
fill: $grey-9;
|
|
93
|
+
|
|
89
94
|
.priceNewBlock
|
|
90
95
|
background-color $grey-9;
|
|
91
96
|
|
|
@@ -163,4 +168,5 @@
|
|
|
163
168
|
|
|
164
169
|
.tooltipWrapFavorites
|
|
165
170
|
transform: translateY(0px);
|
|
166
|
-
margin-left: 5px;
|
|
171
|
+
margin-left: 5px;
|
|
172
|
+
|
|
@@ -3,7 +3,6 @@ import styles from './VehiclePrice.styl';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import VehiclePriceItem from '../VechiclePriceItem/VechiclePriceItem';
|
|
5
5
|
import { IBuy, ILeasing, IFinancing, ICommonFinancing } from '../../../../framework/types/types';
|
|
6
|
-
import { Hidden } from 'react-grid-system';
|
|
7
6
|
import { isMobileOnly } from 'react-device-detect';
|
|
8
7
|
import Button from '../../../../components/_common/Button/Button';
|
|
9
8
|
import CheckboxMaterial from '../../../../components/_common/CheckboxMaterial/CheckboxMaterial';
|
|
@@ -30,6 +29,7 @@ export interface IVehiclePriceSectionProps {
|
|
|
30
29
|
target?: string;
|
|
31
30
|
rel?: string;
|
|
32
31
|
iconName?: string;
|
|
32
|
+
priceSubMtl?: string | null;
|
|
33
33
|
mainImageId?: string;
|
|
34
34
|
showCompareCheckboxes?: boolean;
|
|
35
35
|
toRound?: boolean;
|
|
@@ -63,6 +63,8 @@ interface IPriceData {
|
|
|
63
63
|
isTotal?: boolean;
|
|
64
64
|
isNewPriceCategory?: boolean;
|
|
65
65
|
positionY?: any;
|
|
66
|
+
priceSub?: string | null;
|
|
67
|
+
prefixOldPrice?: string | null;
|
|
66
68
|
postfix?: any;
|
|
67
69
|
title?: string;
|
|
68
70
|
margin?: number;
|
|
@@ -98,6 +100,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
98
100
|
routeObj,
|
|
99
101
|
toggleCarToCompare,
|
|
100
102
|
toCompare,
|
|
103
|
+
priceSubMtl,
|
|
101
104
|
classButton,
|
|
102
105
|
onRemoveClick,
|
|
103
106
|
showCompareCheckboxes,
|
|
@@ -133,6 +136,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
133
136
|
{ [styles.vehiclePriceTitleLanding]: vehicleComponentName === 'landing' },
|
|
134
137
|
{ [styles.vehiclePriceTitleSearch]: vehicleComponentName === 'search' || 'myVehicles' }
|
|
135
138
|
);
|
|
139
|
+
|
|
136
140
|
const priceItemsGlobal = [
|
|
137
141
|
{
|
|
138
142
|
perMonthOld: oldMonthlyInstallment,
|
|
@@ -140,7 +144,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
140
144
|
title: t('vehicleProps:title.financing'),
|
|
141
145
|
prefixOldPrice: vehicleComponentName === 'search' && !isMobileOnly && t('vehicleProps:value.prefixOldPrice'),
|
|
142
146
|
postfix: '3',
|
|
143
|
-
priceSub:
|
|
147
|
+
priceSub: priceSubMtl,
|
|
144
148
|
tooltipDescription: !combineRefAlternative && t('vehicleProps:title.financingDescription')
|
|
145
149
|
},
|
|
146
150
|
{
|
|
@@ -150,7 +154,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
150
154
|
postfix: '1,3',
|
|
151
155
|
isPriceDisable: !isLeasingActive,
|
|
152
156
|
title: t('vehicleProps:title.leasing'),
|
|
153
|
-
priceSub:
|
|
157
|
+
priceSub: priceSubMtl,
|
|
154
158
|
tooltipDescription: !combineRefAlternative && t('vehicleProps:title.leasingDescription')
|
|
155
159
|
}
|
|
156
160
|
];
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
&.wrapTitlesFavorite
|
|
32
32
|
display: flex;
|
|
33
33
|
+media-tablet-landscape-up()
|
|
34
|
-
display:
|
|
34
|
+
display: flex;
|
|
35
35
|
&.wrapTitlesRecently
|
|
36
36
|
display: flex;
|
|
37
37
|
|
|
@@ -77,8 +77,7 @@
|
|
|
77
77
|
font-size: 12px;
|
|
78
78
|
margin-left: 8px;
|
|
79
79
|
+media-tablet-landscape-up()
|
|
80
|
-
margin-left:
|
|
81
|
-
margin-top: 3px;
|
|
80
|
+
margin-left: 8px;
|
|
82
81
|
&.optionTitleRecently
|
|
83
82
|
font-size: 12px;
|
|
84
83
|
margin-left: 8px;
|
|
@@ -59,6 +59,7 @@ interface IVehicleSmallCardProps {
|
|
|
59
59
|
modificationDate?: string;
|
|
60
60
|
baseUrl?: string;
|
|
61
61
|
offerSource?: string;
|
|
62
|
+
priceSubMtl?: string | null;
|
|
62
63
|
ownerName?: string;
|
|
63
64
|
className?: string;
|
|
64
65
|
percentage?: number;
|
|
@@ -114,6 +115,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
114
115
|
url,
|
|
115
116
|
target,
|
|
116
117
|
rel,
|
|
118
|
+
priceSubMtl,
|
|
117
119
|
onContainerClick,
|
|
118
120
|
onAddOfferToMainSlideClick,
|
|
119
121
|
isDealer,
|
|
@@ -230,6 +232,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
230
232
|
vehicleComponentName,
|
|
231
233
|
classButton,
|
|
232
234
|
linkTag,
|
|
235
|
+
priceSubMtl,
|
|
233
236
|
onAddOfferToMainSlideClick,
|
|
234
237
|
isDealerSuperAdmin,
|
|
235
238
|
onDetailsClick,
|
|
@@ -354,6 +357,7 @@ VehicleSmallCard.defaultProps = {
|
|
|
354
357
|
showSlider: false,
|
|
355
358
|
isDealerSuperAdmin: false,
|
|
356
359
|
showCompareCheckboxes: false,
|
|
360
|
+
priceSubMtl: null,
|
|
357
361
|
slider: {},
|
|
358
362
|
stats: {},
|
|
359
363
|
title: {},
|
|
@@ -14,15 +14,18 @@ interface IMaterialTooltip {
|
|
|
14
14
|
const LightTooltip = styled(({ className, ...props }: TooltipProps) => (
|
|
15
15
|
<Tooltip {...props} classes={{ popper: className }} />
|
|
16
16
|
))(({ theme }) => ({
|
|
17
|
+
zIndex: 10000,
|
|
17
18
|
[`& .${tooltipClasses.tooltip}`]: {
|
|
18
19
|
backgroundColor: theme.palette.common.white,
|
|
19
|
-
color: 'rgba(
|
|
20
|
-
boxShadow:
|
|
21
|
-
|
|
20
|
+
color: 'rgba(60,60,60,0.87)',
|
|
21
|
+
boxShadow: '0px 4px 10px 6px rgb(60 60 60 / 22%)',
|
|
22
|
+
border: '1px solid rgb(60 60 60 / 22%)',
|
|
23
|
+
fontSize: 11,
|
|
24
|
+
borderRadius: 4
|
|
22
25
|
}
|
|
23
26
|
}));
|
|
24
27
|
|
|
25
|
-
const MaterialTooltip = ({ text, icon = '
|
|
28
|
+
const MaterialTooltip = ({ text, icon = 'InfoTransparent', placement, className }: IMaterialTooltip) => {
|
|
26
29
|
return (
|
|
27
30
|
<LightTooltip placement={placement} title={text} className={className}>
|
|
28
31
|
<IconButton>
|
package/source/locales/data.ts
CHANGED
|
@@ -55,6 +55,7 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
55
55
|
co2: `${vehicleOption.co2} g/km `,
|
|
56
56
|
na: 'N/A',
|
|
57
57
|
priceSub: '/mtl.',
|
|
58
|
+
priceSubMtl: '/mtl.',
|
|
58
59
|
prefixOldPrice: 'ab',
|
|
59
60
|
vehicleOwners: `${vehicleOption.vehicleOwners} Fahrzeughalter`,
|
|
60
61
|
vehicleOwners_plural: `${count} Fahrzeughalter`,
|