@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.3",
3
+ "version": "4.2.5",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -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 ? numberWithDot(from) : null,
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 ? numberWithDot(to) : null,
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))
@@ -70,12 +70,10 @@
70
70
  & > .consumptionCombined
71
71
  white-space: pre-line;
72
72
  grid-row: 4;
73
- font-size: 10px;
74
73
 
75
74
  +media-tablet-landscape-up()
76
75
  grid-auto-rows: 38px;
77
76
 
78
- & > .consumptionCombined,
79
77
  span
80
78
  font-size: 11px;
81
79
 
@@ -31,6 +31,9 @@
31
31
  &.vehiclePriceSectionRecently
32
32
  padding: 1px 10px 0 10px
33
33
 
34
+ &.vehiclePriceTitleMain
35
+ padding: 0 10px
36
+
34
37
  .vehiclePriceTitle
35
38
  color: rgba(76, 78, 100, 0.87);
36
39
  display flex;
@@ -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' || vehicleComponentName === 'main' }
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: 112px 1fr;
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;