@sheinx/hooks 3.9.13-beta.9 → 3.9.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"use-input-number.d.ts","sourceRoot":"","sources":["use-input-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D,QAAA,MAAM,eAAe,UAAW,gBAAgB;;;;;;;;CAwL/C,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"use-input-number.d.ts","sourceRoot":"","sources":["use-input-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D,QAAA,MAAM,eAAe,UAAW,gBAAgB;;;;;;;;CA2L/C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -171,14 +171,17 @@ var useNumberFormat = function useNumberFormat(props) {
171
171
  }
172
172
  num = commonFormat(num);
173
173
  onChange === null || onChange === void 0 || onChange(num);
174
+ return num;
174
175
  };
175
176
  var handlePlus = (0, _usePersistFn.default)(function () {
176
177
  if (disabled) return;
177
- changeValue(step);
178
+ var num = changeValue(step);
179
+ if (num !== undefined) setInternalInputValue(getStringValue(num));
178
180
  });
179
181
  var handleMinus = (0, _usePersistFn.default)(function () {
180
182
  if (disabled) return;
181
- changeValue(-step);
183
+ var num = changeValue(-step);
184
+ if (num !== undefined) setInternalInputValue(getStringValue(num));
182
185
  });
183
186
  return _objectSpread(_objectSpread({}, (0, _useInputFormat.default)({
184
187
  value: inernalInputValue,
@@ -1 +1 @@
1
- {"version":3,"file":"use-input-number.d.ts","sourceRoot":"","sources":["use-input-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D,QAAA,MAAM,eAAe,UAAW,gBAAgB;;;;;;;;CAwL/C,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"use-input-number.d.ts","sourceRoot":"","sources":["use-input-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D,QAAA,MAAM,eAAe,UAAW,gBAAgB;;;;;;;;CA2L/C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -162,14 +162,17 @@ var useNumberFormat = function useNumberFormat(props) {
162
162
  }
163
163
  num = commonFormat(num);
164
164
  onChange === null || onChange === void 0 || onChange(num);
165
+ return num;
165
166
  };
166
167
  var handlePlus = usePersistFn(function () {
167
168
  if (disabled) return;
168
- changeValue(step);
169
+ var num = changeValue(step);
170
+ if (num !== undefined) setInternalInputValue(getStringValue(num));
169
171
  });
170
172
  var handleMinus = usePersistFn(function () {
171
173
  if (disabled) return;
172
- changeValue(-step);
174
+ var num = changeValue(-step);
175
+ if (num !== undefined) setInternalInputValue(getStringValue(num));
173
176
  });
174
177
  return _objectSpread(_objectSpread({}, useInputFormat({
175
178
  value: inernalInputValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.9.13-beta.9",
3
+ "version": "3.9.13",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",