@bytebrand/fe-ui-core 4.2.3 → 4.2.5
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/common/RangeControlled/RangeControlled.tsx +4 -2
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +0 -2
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +3 -0
- package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +2 -1
- package/source/components/VehicleSmallCard/VehicleSmallCard.styl +1 -6
package/package.json
CHANGED
|
@@ -115,9 +115,11 @@ const RangeControlled = ({
|
|
|
115
115
|
};
|
|
116
116
|
const { from = 0, to = 0 } = controls;
|
|
117
117
|
|
|
118
|
+
const transformValue = (value: number) => name === 'FIRST_REGISTRATION' ? value : numberWithDot(value); // skip dot appying for FIRST_REGISTRATION
|
|
119
|
+
|
|
118
120
|
const fromProps = {
|
|
119
121
|
size: 'custom',
|
|
120
|
-
value:from ?
|
|
122
|
+
value: from ? transformValue(from) : null,
|
|
121
123
|
label: `${t('filters.from')} ${unit ? unit : '€'}`,
|
|
122
124
|
onChange: (value: any) => onDropDownChange('from', value),
|
|
123
125
|
items: getOptions(sliceLessThan(getDropdownRange(name), to))
|
|
@@ -125,7 +127,7 @@ const RangeControlled = ({
|
|
|
125
127
|
|
|
126
128
|
const toProps = {
|
|
127
129
|
size: 'custom',
|
|
128
|
-
value:to ?
|
|
130
|
+
value:to ? transformValue(to) : null,
|
|
129
131
|
label: `${t('filters.to')} ${unit ? unit : '€'}`,
|
|
130
132
|
onChange: (value: any) => onDropDownChange('to', value),
|
|
131
133
|
items: getOptions(sliceMoreThan(getDropdownRange(name), from))
|
|
@@ -126,7 +126,8 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
|
|
|
126
126
|
styles.vehiclePriceSection,
|
|
127
127
|
{ [styles.vehiclePriceSectionSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' },
|
|
128
128
|
{ [styles.vehiclePriceSectionFavorite]: vehicleComponentName === 'favorite' },
|
|
129
|
-
{ [styles.vehiclePriceSectionRecently]: vehicleComponentName === 'recently' || vehicleComponentName === 'landing'
|
|
129
|
+
{ [styles.vehiclePriceSectionRecently]: vehicleComponentName === 'recently' || vehicleComponentName === 'landing' }
|
|
130
|
+
{ [styles.vehiclePriceTitleMain]: vehicleComponentName === 'main' }
|
|
130
131
|
);
|
|
131
132
|
|
|
132
133
|
const vehiclePriceTitleClassName = classnames(
|
|
@@ -131,11 +131,6 @@
|
|
|
131
131
|
|
|
132
132
|
&.vehicleWrapMain
|
|
133
133
|
box-sizing: border-box;
|
|
134
|
-
grid-template-areas:
|
|
135
|
-
'title title'\
|
|
136
|
-
'image image'\
|
|
137
|
-
'info price'\
|
|
138
|
-
'seoText seoText'
|
|
139
134
|
grid-template-columns: 55% 45%;
|
|
140
135
|
border: 1px solid #DFDFDF;
|
|
141
136
|
margin-bottom: 5px;
|
|
@@ -150,7 +145,7 @@
|
|
|
150
145
|
padding: 0 16px;
|
|
151
146
|
|
|
152
147
|
+media-tablet-landscape-up()
|
|
153
|
-
grid-template-columns:
|
|
148
|
+
grid-template-columns: 120px 1fr;
|
|
154
149
|
border: 1px solid rgba(76, 78, 100, 0.12);
|
|
155
150
|
border-radius: 10px;
|
|
156
151
|
margin-bottom: 0;
|