@bytebrand/fe-ui-core 4.1.58 → 4.1.60
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/PriceRating/PriceRating.styl +1 -0
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +11 -9
- package/source/components/_common/UserMenu/MaterialMenu.styled.tsx +6 -3
- package/source/components/_common/UserMenu/MaterialMenu.tsx +8 -2
- package/source/theme/priceReviewColors.styl +7 -7
package/package.json
CHANGED
|
@@ -90,9 +90,11 @@
|
|
|
90
90
|
+media-tablet-landscape-up()
|
|
91
91
|
grid-auto-rows: 36px;
|
|
92
92
|
|
|
93
|
-
& .priceRatingSegmentWrapSRL
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
& .priceRatingSegmentWrapSRL
|
|
94
|
+
gap: 2px;
|
|
95
|
+
& > div
|
|
96
|
+
width: 13px;
|
|
97
|
+
height: 12px;
|
|
96
98
|
|
|
97
99
|
& .priceRatingSRL span
|
|
98
100
|
font-size: 10px;
|
|
@@ -140,9 +142,9 @@
|
|
|
140
142
|
border: none;
|
|
141
143
|
|
|
142
144
|
& .carIconSearch
|
|
143
|
-
width:
|
|
144
|
-
height:
|
|
145
|
-
max-width:
|
|
145
|
+
width: 30px;
|
|
146
|
+
height: 30px;
|
|
147
|
+
max-width: 28px;
|
|
146
148
|
|
|
147
149
|
& .priceRatingSRL
|
|
148
150
|
margin: auto;
|
|
@@ -176,9 +178,9 @@
|
|
|
176
178
|
border: none;
|
|
177
179
|
|
|
178
180
|
& .carIconSearch
|
|
179
|
-
width:
|
|
180
|
-
height:
|
|
181
|
-
max-width:
|
|
181
|
+
width: 30px;
|
|
182
|
+
height: 30px;
|
|
183
|
+
max-width: 28px;
|
|
182
184
|
|
|
183
185
|
& .priceRatingSRL
|
|
184
186
|
margin: auto;
|
|
@@ -22,7 +22,7 @@ export const Theme = createTheme({
|
|
|
22
22
|
root: {
|
|
23
23
|
overflow: 'visible',
|
|
24
24
|
boxShadow: '0px 2px 8px rgba(0,0,0,0.32)',
|
|
25
|
-
marginTop:
|
|
25
|
+
marginTop: '10px',
|
|
26
26
|
borderRadius: '10px'
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -62,9 +62,12 @@ export const AmountBlock = styled('span')({
|
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
export const HeaderComponent = styled('div')({
|
|
65
|
-
cursor: 'pointer'
|
|
65
|
+
cursor: 'pointer',
|
|
66
|
+
height: '100%'
|
|
66
67
|
});
|
|
67
68
|
|
|
68
69
|
export const FlexContainer = styled('div')({
|
|
69
|
-
display: 'flex'
|
|
70
|
+
display: 'flex',
|
|
71
|
+
height: '35px',
|
|
72
|
+
alignItems: 'center'
|
|
70
73
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import Menu from '@mui/material/Menu';
|
|
3
3
|
import ListItem from './MaterialMenuItem';
|
|
4
4
|
import { ThemeProvider } from '@mui/material/styles';
|
|
@@ -40,7 +40,13 @@ const MaterialMenu = ({ menuItems, headerComponent, onChange, isLang, containerC
|
|
|
40
40
|
<ThemeProvider theme={Theme}>
|
|
41
41
|
<div className={containerClassname}>
|
|
42
42
|
<HeaderComponent
|
|
43
|
-
onClick={
|
|
43
|
+
onClick={(e) => {
|
|
44
|
+
if (anchorEl) {
|
|
45
|
+
handleClose();
|
|
46
|
+
} else {
|
|
47
|
+
handleClick(e);
|
|
48
|
+
}
|
|
49
|
+
}}
|
|
44
50
|
>
|
|
45
51
|
{headerComponent && headerComponent}
|
|
46
52
|
{(isLang && !!value) &&
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
$priceReviewColors = {
|
|
3
|
-
noRating:
|
|
4
|
-
darkBackground:
|
|
5
|
-
highPrice:
|
|
6
|
-
increasedPrice:
|
|
7
|
-
fairPrice:
|
|
8
|
-
goodPrice:
|
|
9
|
-
topPrice:
|
|
3
|
+
noRating: rgba(76, 78, 100, 0.22)
|
|
4
|
+
darkBackground: rgba(76, 78, 100, 0.22)
|
|
5
|
+
highPrice: rgba(226, 108, 0, 1)
|
|
6
|
+
increasedPrice: rgba(237, 157, 55, 1)
|
|
7
|
+
fairPrice: rgba(173, 208, 66, 1)
|
|
8
|
+
goodPrice: rgba(102, 212, 102, 1)
|
|
9
|
+
topPrice: rgba(0, 184, 0, 1)
|
|
10
10
|
}
|