@commercetools-uikit/number-input 18.4.0 → 19.0.0

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.
@@ -65,7 +65,8 @@ const NumberInput = props => {
65
65
  "aria-readonly": props.isReadOnly,
66
66
  contentEditable: !props.isReadOnly,
67
67
  "aria-invalid": props['aria-invalid'],
68
- "aria-errormessage": props['aria-errormessage']
68
+ "aria-errormessage": props['aria-errormessage'],
69
+ onWheel: e => e.currentTarget.blur()
69
70
  }))
70
71
  });
71
72
  };
@@ -111,7 +112,7 @@ NumberInput.hasFractionDigits = number => {
111
112
  var NumberInput$1 = NumberInput;
112
113
 
113
114
  // NOTE: This string will be replaced on build time with the package version.
114
- var version = "18.4.0";
115
+ var version = "19.0.0";
115
116
 
116
117
  exports["default"] = NumberInput$1;
117
118
  exports.version = version;
@@ -62,7 +62,8 @@ const NumberInput = props => {
62
62
  "aria-readonly": props.isReadOnly,
63
63
  contentEditable: !props.isReadOnly,
64
64
  "aria-invalid": props['aria-invalid'],
65
- "aria-errormessage": props['aria-errormessage']
65
+ "aria-errormessage": props['aria-errormessage'],
66
+ onWheel: e => e.currentTarget.blur()
66
67
  }))
67
68
  });
68
69
  };
@@ -87,7 +88,7 @@ NumberInput.hasFractionDigits = number => {
87
88
  var NumberInput$1 = NumberInput;
88
89
 
89
90
  // NOTE: This string will be replaced on build time with the package version.
90
- var version = "18.4.0";
91
+ var version = "19.0.0";
91
92
 
92
93
  exports["default"] = NumberInput$1;
93
94
  exports.version = version;
@@ -47,7 +47,8 @@ const NumberInput = props => {
47
47
  "aria-readonly": props.isReadOnly,
48
48
  contentEditable: !props.isReadOnly,
49
49
  "aria-invalid": props['aria-invalid'],
50
- "aria-errormessage": props['aria-errormessage']
50
+ "aria-errormessage": props['aria-errormessage'],
51
+ onWheel: e => e.currentTarget.blur()
51
52
  }))
52
53
  });
53
54
  };
@@ -93,6 +94,6 @@ NumberInput.hasFractionDigits = number => {
93
94
  var NumberInput$1 = NumberInput;
94
95
 
95
96
  // NOTE: This string will be replaced on build time with the package version.
96
- var version = "18.4.0";
97
+ var version = "19.0.0";
97
98
 
98
99
  export { NumberInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/number-input",
3
3
  "description": "A controlled input component for numbers with validation states.",
4
- "version": "18.4.0",
4
+ "version": "19.0.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "18.4.0",
25
- "@commercetools-uikit/design-system": "18.4.0",
26
- "@commercetools-uikit/input-utils": "18.4.0",
27
- "@commercetools-uikit/utils": "18.4.0",
24
+ "@commercetools-uikit/constraints": "19.0.0",
25
+ "@commercetools-uikit/design-system": "19.0.0",
26
+ "@commercetools-uikit/input-utils": "19.0.0",
27
+ "@commercetools-uikit/utils": "19.0.0",
28
28
  "@emotion/react": "^11.10.5",
29
29
  "@emotion/styled": "^11.10.5",
30
30
  "prop-types": "15.8.1"