@bytebrand/fe-ui-core 4.1.213 → 4.1.215
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/SearchFilters/filters/Fuel.tsx +2 -1
- package/source/components/SearchPageMobile/FiltersDetailed/Fuel.tsx +2 -1
- package/source/components/SearchWidgetsMobile/EngineTransDriveWidget/EngineTransDriveWidget.tsx +1 -0
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +0 -9
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +2 -1
- package/source/components/_common/MaterialSelect/MaterialSelect.tsx +3 -1
- package/source/components/_common/MaterialTooltip/MaterialTooltip.styled.tsx +3 -2
- package/source/components/_common/MaterialTooltip/MaterialTooltip.tsx +23 -7
package/package.json
CHANGED
|
@@ -54,7 +54,8 @@ class Fuel extends React.Component<IFuelProps, {}> {
|
|
|
54
54
|
items: this.getOptions(options),
|
|
55
55
|
value: values || [],
|
|
56
56
|
onChange: (values: any) => this.onDropDownChange(values),
|
|
57
|
-
multiple: true
|
|
57
|
+
multiple: true,
|
|
58
|
+
dense:true
|
|
58
59
|
};
|
|
59
60
|
|
|
60
61
|
return <MaterialSelect {...ddProps} />;
|
|
@@ -59,7 +59,8 @@ class Fuel extends React.Component<IFuelProps, {}> {
|
|
|
59
59
|
items: this.getOptions(options),
|
|
60
60
|
value: values || [],
|
|
61
61
|
onChange: (values: any) => this.onDropDownChange(values),
|
|
62
|
-
multiple: true
|
|
62
|
+
multiple: true,
|
|
63
|
+
dense:true
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
return <MaterialSelect {...ddProps} />;
|
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl
CHANGED
|
@@ -82,14 +82,6 @@
|
|
|
82
82
|
pointer-events: none;
|
|
83
83
|
.priceItemCategory
|
|
84
84
|
color: $grey-9;
|
|
85
|
-
[class*='MuiIconButton-root']
|
|
86
|
-
svg
|
|
87
|
-
circle
|
|
88
|
-
// fill: $grey-9;
|
|
89
|
-
stroke: $grey-9;
|
|
90
|
-
path
|
|
91
|
-
stroke: $grey-9;
|
|
92
|
-
fill: $grey-9;
|
|
93
85
|
|
|
94
86
|
.priceNewBlock
|
|
95
87
|
background-color $grey-9;
|
|
@@ -169,4 +161,3 @@
|
|
|
169
161
|
.tooltipWrapFavorites
|
|
170
162
|
transform: translateY(0px);
|
|
171
163
|
margin-left: 5px;
|
|
172
|
-
|
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx
CHANGED
|
@@ -106,7 +106,8 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
|
|
|
106
106
|
text={tooltipDescription}
|
|
107
107
|
// positionX={positionX}
|
|
108
108
|
// positionY={positionY}
|
|
109
|
-
icon='
|
|
109
|
+
icon='infoIcon'
|
|
110
|
+
disabled={isPriceDisable}
|
|
110
111
|
/>
|
|
111
112
|
)}
|
|
112
113
|
{isNewPriceCategory && (
|
|
@@ -36,6 +36,7 @@ export interface IVehicleModalProps {
|
|
|
36
36
|
selectClassName?: string;
|
|
37
37
|
amountOfItems?: number;
|
|
38
38
|
customDimensionsIcon?: boolean;
|
|
39
|
+
dense?:boolean;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
const ITEM_HEIGHT = isMobileOnly ? 56 : 48;
|
|
@@ -63,6 +64,7 @@ const MaterialSelect: React.FC<IVehicleModalProps> = ({
|
|
|
63
64
|
items,
|
|
64
65
|
icon,
|
|
65
66
|
customDimensionsIcon,
|
|
67
|
+
dense,
|
|
66
68
|
amountOfItems = MENU_ITEMS
|
|
67
69
|
}: IVehicleModalProps) => {
|
|
68
70
|
const [newValue, setValue] = useState('');
|
|
@@ -109,7 +111,7 @@ const MaterialSelect: React.FC<IVehicleModalProps> = ({
|
|
|
109
111
|
const setDisabled = isDisabled || isSeries;
|
|
110
112
|
if (multiple) {
|
|
111
113
|
return (
|
|
112
|
-
<MenuItem key={`${value}_${index}`} value={value}>
|
|
114
|
+
<MenuItem key={`${value}_${index}`} value={value} dense={dense}>
|
|
113
115
|
<Checkbox checked={multipleValue.indexOf(value) > -1} />
|
|
114
116
|
<ListItemText primary={label} />
|
|
115
117
|
</MenuItem>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { styled } from '@mui/system';
|
|
2
2
|
import IconSVG from '../IconSVG/IconSVG';
|
|
3
3
|
|
|
4
|
-
export const IconSvgWrapper = styled(IconSVG)({
|
|
4
|
+
export const IconSvgWrapper = styled(IconSVG)((props) => ({
|
|
5
|
+
fill: props.disabled ? '#4C4E6442' : '#4C4E648A',
|
|
5
6
|
width: '12px',
|
|
6
7
|
height: '12px'
|
|
7
|
-
});
|
|
8
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import IconButton from '@mui/material/IconButton';
|
|
3
3
|
import Tooltip, { TooltipProps, tooltipClasses } from '@mui/material/Tooltip';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
@@ -9,6 +9,7 @@ interface IMaterialTooltip {
|
|
|
9
9
|
icon?: string;
|
|
10
10
|
className?: string;
|
|
11
11
|
placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
12
|
+
disabled?: Boolean;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
const LightTooltip = styled(({ className, ...props }: TooltipProps) => (
|
|
@@ -18,18 +19,33 @@ const LightTooltip = styled(({ className, ...props }: TooltipProps) => (
|
|
|
18
19
|
[`& .${tooltipClasses.tooltip}`]: {
|
|
19
20
|
backgroundColor: theme.palette.common.white,
|
|
20
21
|
color: 'rgba(60,60,60,0.87)',
|
|
21
|
-
boxShadow: '0px 4px 10px 6px rgb(60 60 60 / 22%)',
|
|
22
22
|
border: '1px solid rgb(60 60 60 / 22%)',
|
|
23
23
|
fontSize: 11,
|
|
24
|
-
borderRadius:
|
|
24
|
+
borderRadius: 6,
|
|
25
|
+
background: '#FFFFFF',
|
|
26
|
+
boxShadow: '0px 0px 1px -2px rgba(76, 78, 100, 0.2), 0px 0px 2px rgba(76, 78, 100, 0.14), 0px 0px 5px rgba(76, 78, 100, 0.12)'
|
|
25
27
|
}
|
|
26
28
|
}));
|
|
27
29
|
|
|
28
|
-
const MaterialTooltip = ({ text,
|
|
30
|
+
const MaterialTooltip = ({ text, placement, className, disabled }: IMaterialTooltip) => {
|
|
31
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
32
|
+
|
|
33
|
+
const onHandleClick = (event: React.SyntheticEvent) => {
|
|
34
|
+
event.persist();
|
|
35
|
+
setIsOpen(!isOpen);
|
|
36
|
+
};
|
|
37
|
+
|
|
29
38
|
return (
|
|
30
|
-
<LightTooltip
|
|
31
|
-
|
|
32
|
-
|
|
39
|
+
<LightTooltip
|
|
40
|
+
open={isOpen}
|
|
41
|
+
onMouseOver={() => setIsOpen(true)}
|
|
42
|
+
onMouseLeave={() => setIsOpen(false)}
|
|
43
|
+
placement={placement}
|
|
44
|
+
title={text}
|
|
45
|
+
className={className}
|
|
46
|
+
>
|
|
47
|
+
<IconButton onTouchEnd={(e) => onHandleClick(e)}>
|
|
48
|
+
<IconSvgWrapper name={'infoIcon'} customDimensions disabled={disabled} />
|
|
33
49
|
</IconButton>
|
|
34
50
|
</LightTooltip>
|
|
35
51
|
);
|