@abgov/react-components 4.17.0-alpha.10 → 4.17.0-alpha.11

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": "@abgov/react-components",
3
- "version": "4.17.0-alpha.10",
3
+ "version": "4.17.0-alpha.11",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -2849,25 +2849,25 @@ function GoAInputNumber(_a) {
2849
2849
  props = __rest(_a, ["min", "max", "value"]);
2850
2850
 
2851
2851
  const onNumberChange = (name, value) => {
2852
- props.onChange(name, parseInt(value));
2852
+ props.onChange(name, parseFloat(value));
2853
2853
  };
2854
2854
 
2855
2855
  const onFocus = (name, value) => {
2856
2856
  var _a;
2857
2857
 
2858
- (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, name, parseInt(value));
2858
+ (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, name, parseFloat(value));
2859
2859
  };
2860
2860
 
2861
2861
  const onBlur = (name, value) => {
2862
2862
  var _a;
2863
2863
 
2864
- (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, name, parseInt(value));
2864
+ (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, name, parseFloat(value));
2865
2865
  };
2866
2866
 
2867
2867
  const onKeyPress = (name, value, key) => {
2868
2868
  var _a;
2869
2869
 
2870
- (_a = props.onKeyPress) === null || _a === void 0 ? void 0 : _a.call(props, name, parseInt(value), key);
2870
+ (_a = props.onKeyPress) === null || _a === void 0 ? void 0 : _a.call(props, name, parseFloat(value), key);
2871
2871
  };
2872
2872
 
2873
2873
  return jsx(GoAInput, Object.assign({}, props, {
@@ -2842,25 +2842,25 @@
2842
2842
  props = __rest(_a, ["min", "max", "value"]);
2843
2843
 
2844
2844
  var onNumberChange = function onNumberChange(name, value) {
2845
- props.onChange(name, parseInt(value));
2845
+ props.onChange(name, parseFloat(value));
2846
2846
  };
2847
2847
 
2848
2848
  var onFocus = function onFocus(name, value) {
2849
2849
  var _a;
2850
2850
 
2851
- (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, name, parseInt(value));
2851
+ (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, name, parseFloat(value));
2852
2852
  };
2853
2853
 
2854
2854
  var onBlur = function onBlur(name, value) {
2855
2855
  var _a;
2856
2856
 
2857
- (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, name, parseInt(value));
2857
+ (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, name, parseFloat(value));
2858
2858
  };
2859
2859
 
2860
2860
  var onKeyPress = function onKeyPress(name, value, key) {
2861
2861
  var _a;
2862
2862
 
2863
- (_a = props.onKeyPress) === null || _a === void 0 ? void 0 : _a.call(props, name, parseInt(value), key);
2863
+ (_a = props.onKeyPress) === null || _a === void 0 ? void 0 : _a.call(props, name, parseFloat(value), key);
2864
2864
  };
2865
2865
 
2866
2866
  return jsxRuntime.jsx(GoAInput, __assign({}, props, {