@bytebrand/fe-ui-core 4.2.2 → 4.2.4

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.2",
3
+ "version": "4.2.4",
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,11 +70,12 @@
70
70
  & > .consumptionCombined
71
71
  white-space: pre-line;
72
72
  grid-row: 4;
73
+ font-size: 10px;
73
74
 
74
75
  +media-tablet-landscape-up()
75
- padding-top: 2px;
76
76
  grid-auto-rows: 38px;
77
77
 
78
+ & > .consumptionCombined,
78
79
  span
79
80
  font-size: 11px;
80
81
 
@@ -150,10 +150,9 @@
150
150
  padding: 0 16px;
151
151
 
152
152
  +media-tablet-landscape-up()
153
- grid-template-columns: 120px 1fr;
153
+ grid-template-columns: 112px 1fr;
154
154
  border: 1px solid rgba(76, 78, 100, 0.12);
155
155
  border-radius: 10px;
156
- padding-bottom: 15px;
157
156
  margin-bottom: 0;
158
157
 
159
158
  &.vehicleWrapMyVeicles