@redsift/design-system 10.6.4 → 10.6.5-muiv5

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.
Files changed (3) hide show
  1. package/index.js +10 -2
  2. package/index.js.map +1 -1
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -19812,7 +19812,7 @@ const NumberField = /*#__PURE__*/forwardRef((props, ref) => {
19812
19812
  maxValue,
19813
19813
  minValue,
19814
19814
  onBlur: onBlurProps,
19815
- onChange,
19815
+ onChange: propsOnChange,
19816
19816
  onFocus: onFocusProps,
19817
19817
  onFocusChange,
19818
19818
  onKeyDown,
@@ -19842,7 +19842,7 @@ const NumberField = /*#__PURE__*/forwardRef((props, ref) => {
19842
19842
  onKeyUp,
19843
19843
  value,
19844
19844
  defaultValue,
19845
- onChange
19845
+ onChange: propsOnChange
19846
19846
  };
19847
19847
  const theme = useTheme(propsTheme);
19848
19848
  const {
@@ -19916,6 +19916,14 @@ const NumberField = /*#__PURE__*/forwardRef((props, ref) => {
19916
19916
  gap: "0",
19917
19917
  width: "100%"
19918
19918
  }), /*#__PURE__*/React__default.createElement("input", _extends$1({}, propsInputProps, inputProps, {
19919
+ onChange: event => {
19920
+ if (propsOnChange) {
19921
+ propsOnChange(Number(event.target.value));
19922
+ } else {
19923
+ var _inputProps$onChange;
19924
+ (_inputProps$onChange = inputProps.onChange) === null || _inputProps$onChange === void 0 ? void 0 : _inputProps$onChange.call(inputProps, event);
19925
+ }
19926
+ },
19919
19927
  onBlur: event => {
19920
19928
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
19921
19929
  onBlurProps === null || onBlurProps === void 0 ? void 0 : onBlurProps(event);