@bytebrand/fe-ui-core 4.1.40 → 4.1.42
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 +26 -14
- package/source/components/PriceRating/PriceRating.tsx +6 -5
- package/source/components/VehicleDetailedSidebar/partials/PriceContent.styl +0 -5
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +6 -0
- package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +1 -0
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +1 -17
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +14 -5
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +1 -1
- package/source/components/VehicleSmallCard/VehicleSmallCard.styl +6 -2
package/package.json
CHANGED
|
@@ -4,29 +4,38 @@
|
|
|
4
4
|
|
|
5
5
|
.wrapper
|
|
6
6
|
text-align: center
|
|
7
|
-
white-space: nowrap
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
position: relative;
|
|
8
9
|
width: 100%
|
|
9
10
|
|
|
10
11
|
.pointer
|
|
11
12
|
cursor: pointer
|
|
12
13
|
|
|
13
14
|
.label
|
|
14
|
-
|
|
15
|
-
font-family: $font-style-arial
|
|
16
|
-
font-size: 8px
|
|
17
|
-
line-height: 1;
|
|
15
|
+
font-size: 12px
|
|
18
16
|
text-transform: uppercase
|
|
19
17
|
font-weight: bold
|
|
20
|
-
color: $priceReviewColors[darkBackground]
|
|
21
|
-
margin-bottom: 2px
|
|
22
|
-
|
|
23
|
-
+media-phone-only()
|
|
24
|
-
font-size: 10px
|
|
25
|
-
margin-bottom: 6px;
|
|
18
|
+
color: $priceReviewColors[darkBackground];
|
|
26
19
|
|
|
27
20
|
.segmentWrapper
|
|
28
|
-
display: flex
|
|
29
|
-
|
|
21
|
+
display: flex;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
align-items: center;
|
|
24
|
+
height: 30px;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
border-radius: 4px;
|
|
27
|
+
position: relative;
|
|
28
|
+
border: 1px solid $priceReviewColors[darkBackground];
|
|
29
|
+
&:before
|
|
30
|
+
content: '';
|
|
31
|
+
height: inherit;
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
border-radius: 4px 0px 0px 4px;
|
|
36
|
+
width: 12px;
|
|
37
|
+
background-color: $priceReviewColors[darkBackground];
|
|
38
|
+
z-index: 2;
|
|
30
39
|
|
|
31
40
|
.segment
|
|
32
41
|
display: inline-block
|
|
@@ -49,10 +58,13 @@
|
|
|
49
58
|
|
|
50
59
|
for colorName in $priceReviewColors
|
|
51
60
|
$color = $priceReviewColors[colorName]
|
|
61
|
+
$backgroundColor = $priceReviewColors[colorName]
|
|
52
62
|
if $color == $priceReviewColors.noRating
|
|
53
63
|
$color = $priceReviewColors[darkBackground]
|
|
54
64
|
$backgroundColor = $priceReviewColors[colorName]
|
|
55
65
|
.{colorName}
|
|
56
66
|
color: $color
|
|
57
67
|
.{colorName}Background
|
|
58
|
-
|
|
68
|
+
border-color: $backgroundColor
|
|
69
|
+
&:before
|
|
70
|
+
background-color: $backgroundColor
|
|
@@ -20,7 +20,7 @@ export interface IPriceRatingProps {
|
|
|
20
20
|
const PriceRating: React.SFC<IPriceRatingProps> = ({ t, rating, className, darkBackground, i18nPrefix, classLabel, classSegmentWrapper, onClick }) => {
|
|
21
21
|
const ratingCode = (rating > 0 && rating < priceRatings.length) ? rating : 0;
|
|
22
22
|
const ratingName = priceRatings[ratingCode];
|
|
23
|
-
|
|
23
|
+
console.log('ratingName', ratingName);
|
|
24
24
|
const onWrapperClick = (event: React.SyntheticEvent<HTMLDivElement>) => {
|
|
25
25
|
if (typeof onClick === 'function') {
|
|
26
26
|
onClick(event);
|
|
@@ -46,10 +46,11 @@ const PriceRating: React.SFC<IPriceRatingProps> = ({ t, rating, className, darkB
|
|
|
46
46
|
className={classnames(styles.wrapper, className, { [styles.pointer]: typeof onClick === 'function' })}
|
|
47
47
|
onClick={onWrapperClick}
|
|
48
48
|
>
|
|
49
|
-
<
|
|
50
|
-
{
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
<div className={classnames(styles.segmentWrapper, styles[`${ratingName}Background`], classSegmentWrapper)}>
|
|
50
|
+
<span className={classnames(styles.label, styles[ratingName], classLabel)}>
|
|
51
|
+
{t(`${i18nPrefix}${ratingName}`)}
|
|
52
|
+
</span>
|
|
53
|
+
</div>
|
|
53
54
|
</div>
|
|
54
55
|
);
|
|
55
56
|
};
|
package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx
CHANGED
|
@@ -66,6 +66,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
|
|
|
66
66
|
|
|
67
67
|
const stylesItem = classnames(
|
|
68
68
|
styles.priceItem,
|
|
69
|
+
{ [styles.priceItemFavorite]: vehicleComponentName === 'favorite' },
|
|
69
70
|
{ [styles.priceItemDisable]: isPriceDisable },
|
|
70
71
|
{ [styles.priceItemBuy]: isTotal },
|
|
71
72
|
);
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
& > div:last-of-type
|
|
21
21
|
width: 100%;
|
|
22
22
|
max-width: 142px;
|
|
23
|
-
margin: 0 auto;
|
|
24
23
|
display flex
|
|
25
24
|
flex-direction: column;
|
|
26
25
|
justify-content: center;
|
|
@@ -153,29 +152,14 @@
|
|
|
153
152
|
max-width: 25%;
|
|
154
153
|
|
|
155
154
|
&.vehiclePropertiesFavorite
|
|
156
|
-
grid-template-columns: 1fr
|
|
155
|
+
grid-template-columns: 1fr;
|
|
157
156
|
display: grid;
|
|
158
157
|
grid-auto-rows: 44px;
|
|
159
158
|
|
|
160
159
|
& > .consumptionCombined
|
|
161
160
|
white-space: pre-line;
|
|
162
|
-
grid-column: 1 / span 2;
|
|
163
161
|
grid-row: 4;
|
|
164
162
|
|
|
165
|
-
& > .location
|
|
166
|
-
grid-column: 1 / span 2;
|
|
167
|
-
|
|
168
|
-
+media-tablet-landscape-up()
|
|
169
|
-
height: 30px;
|
|
170
|
-
margin-top: auto;
|
|
171
|
-
border: none;
|
|
172
|
-
|
|
173
|
-
& > div:last-of-type
|
|
174
|
-
grid-column: 1 / span 2;
|
|
175
|
-
|
|
176
|
-
&::after
|
|
177
|
-
height: calc(100% - 20px);
|
|
178
|
-
|
|
179
163
|
+media-tablet-landscape-up()
|
|
180
164
|
grid-template-columns: 1fr 1fr 1fr;
|
|
181
165
|
margin-top: -13px;
|
|
@@ -119,7 +119,7 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
|
|
|
119
119
|
{vehicleComponentName === 'favorite' ? (
|
|
120
120
|
<>
|
|
121
121
|
<Visible xs sm md>
|
|
122
|
-
{renderProperty(
|
|
122
|
+
{renderProperty(getMainPropertiesForComparableCars)}
|
|
123
123
|
</Visible>
|
|
124
124
|
<Hidden xs sm md>
|
|
125
125
|
{renderProperty(getMainPropertiesForFavorite, vehicleComponentName)}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
border-left: 1px solid $grey-d
|
|
20
20
|
|
|
21
21
|
&.vehiclePriceSectionFavorite
|
|
22
|
+
padding: 0 10px 0 10px
|
|
22
23
|
+media-tablet-landscape-up()
|
|
23
24
|
flex-shrink: 0;
|
|
24
25
|
padding: 0 5px 0 15px;
|
|
@@ -69,25 +70,33 @@
|
|
|
69
70
|
.wrapHandleCompare
|
|
70
71
|
display: flex;
|
|
71
72
|
gap: 8px;
|
|
72
|
-
|
|
73
|
+
border-top: 1px solid $grey-d3;
|
|
74
|
+
padding-top: 15px;
|
|
75
|
+
|
|
76
|
+
+media-tablet-landscape-up()
|
|
77
|
+
margin-top: 19px;
|
|
78
|
+
padding-top: 0;
|
|
79
|
+
border: none;
|
|
73
80
|
|
|
74
81
|
.btnCompareRemove
|
|
75
82
|
min-width: 50px !important;
|
|
76
|
-
height:
|
|
83
|
+
height: 30px;
|
|
77
84
|
border: 1px solid #BA1A1A !important;
|
|
78
85
|
|
|
79
86
|
.btnCarToCompare
|
|
80
87
|
display: flex;
|
|
81
|
-
height:
|
|
88
|
+
height: 30px;
|
|
82
89
|
align-items: center;
|
|
83
90
|
text-transform uppercase !important
|
|
84
91
|
width: 100%;
|
|
92
|
+
min-width: auto !important;
|
|
93
|
+
max-width: 100% !important;
|
|
85
94
|
|
|
86
95
|
.btnPlusIcon
|
|
87
96
|
font-size: 26px;
|
|
88
97
|
margin-right: 10px;
|
|
89
|
-
line-height:
|
|
98
|
+
line-height: 26px;
|
|
90
99
|
|
|
91
100
|
.btnText
|
|
92
101
|
position: relative;
|
|
93
|
-
top: -
|
|
102
|
+
top: -2px;
|
|
@@ -241,7 +241,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
241
241
|
</Button>
|
|
242
242
|
<Button className={styles.btnCarToCompare} variant='outlined' onClick={toggleCarToCompare}>
|
|
243
243
|
<span className={styles.btnPlusIcon}>{!toCompare ? '+' : '-'}</span>
|
|
244
|
-
<span className={styles.btnText}>{t('FavoritesPage:
|
|
244
|
+
<span className={styles.btnText}>{t('FavoritesPage:compare')}</span>
|
|
245
245
|
</Button>
|
|
246
246
|
</div>
|
|
247
247
|
)}
|
|
@@ -78,8 +78,12 @@
|
|
|
78
78
|
'image image'\
|
|
79
79
|
'info price'\
|
|
80
80
|
'seoText seoText'
|
|
81
|
-
grid-template-columns:
|
|
82
|
-
border
|
|
81
|
+
grid-template-columns: 155px 1fr;
|
|
82
|
+
border: 1px solid $grey-e;
|
|
83
|
+
border-radius: 10px;
|
|
84
|
+
// border-bottom: 6px solid $skyBlue;
|
|
85
|
+
margin: 10px;
|
|
86
|
+
padding-bottom: 15px;
|
|
83
87
|
+media-tablet-landscape-up()
|
|
84
88
|
border: 1px solid $grey-e;
|
|
85
89
|
padding: 10px;
|