@bytebrand/fe-ui-core 4.1.1 → 4.1.2

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.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -52,7 +52,8 @@ const Mileage = ({ controls, onChange, onChangeControls, t, values, options }: I
52
52
  values: transformValues(values),
53
53
  onChange: (value: string, name: string) => {
54
54
  onChange(name, value);
55
- onChangeControls(name, RANGE_FILTERS_DEFAULT_CONTROLS);
55
+ onChangeControls(name, value);
56
+ // onChangeControls(name, RANGE_FILTERS_DEFAULT_CONTROLS);
56
57
  }
57
58
  };
58
59
 
@@ -99,5 +100,7 @@ const Mileage = ({ controls, onChange, onChangeControls, t, values, options }: I
99
100
  export default memo(Mileage, (prevProps: any, nextProps: any) => {
100
101
  return prevProps.controls.from === nextProps.controls.from &&
101
102
  prevProps.controls.to === nextProps.controls.to &&
102
- prevProps.t === nextProps.t
103
+ prevProps.t === nextProps.t &&
104
+ prevProps.values === nextProps.values
105
+
103
106
  });
@@ -73,7 +73,8 @@ class Power extends React.Component<IPowerProps, {}> {
73
73
  this.tempValues = value;
74
74
 
75
75
  onChange(name, { ...value, type });
76
- onChangeControls(this.name, { ...RANGE_FILTERS_DEFAULT_CONTROLS, type });
76
+ onChangeControls(this.name, { ...value, type });
77
+ // onChangeControls(this.name, { ...RANGE_FILTERS_DEFAULT_CONTROLS, type });
77
78
  }
78
79
  };
79
80
 
@@ -14,14 +14,15 @@ export const useStyles = {
14
14
  transition: 'all 0.2s ease-in-out',
15
15
  textDecoration: 'none',
16
16
  textTransform: 'none',
17
- borderRadius: 3,
17
+ borderRadius: 4,
18
18
  outline: 'none',
19
19
  userSelect: 'none',
20
20
  whiteSpace: 'nowrap',
21
21
  overflow: 'hidden',
22
22
  textOverflow: 'ellipsis',
23
23
  '&.MuiButton-containedPrimary': {
24
- backgroundColor: '#005ccb'
24
+ backgroundColor: '#005ccb',
25
+ borderRadius: '4px !important'
25
26
  },
26
27
  '&.MuiButton-containedSecondary': {
27
28
  backgroundColor: 'red'