@dmsi/wedgekit-react 0.0.1085 → 0.0.1087

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.
@@ -1412,10 +1412,6 @@ var Stepper = (_a) => {
1412
1412
  const cleanedValue2 = rawValue === "." ? "0." : rawValue.replace(/^0+(\d)/, "$1");
1413
1413
  const nextValue2 = parseFloat(cleanedValue2) || 0;
1414
1414
  const isIntermediate = rawValue.includes(".") && (rawValue.endsWith(".") || /0$/.test(rawValue));
1415
- const greaterThanMaximum2 = max != null && nextValue2 > max;
1416
- if (greaterThanMaximum2) {
1417
- return;
1418
- }
1419
1415
  setDisplayValue(
1420
1416
  isIntermediate ? cleanedValue2 : String(nextValue2)
1421
1417
  );
@@ -1428,16 +1424,13 @@ var Stepper = (_a) => {
1428
1424
  }
1429
1425
  const cleanedValue = rawValue.replace(/^0+/, "") || "0";
1430
1426
  const nextValue = parseInt(cleanedValue, 10);
1431
- const greaterThanMaximum = max != null && nextValue > max;
1432
- if (greaterThanMaximum) {
1433
- return;
1434
- }
1435
1427
  setDisplayValue(cleanedValue);
1436
1428
  userInputRef.current = true;
1437
1429
  setValue(nextValue);
1438
1430
  },
1439
1431
  onBlur: () => {
1440
1432
  setDisplayValue(String(value));
1433
+ userInputRef.current = false;
1441
1434
  onBlur == null ? void 0 : onBlur();
1442
1435
  },
1443
1436
  error,
@@ -174,10 +174,6 @@ var Stepper = (_a) => {
174
174
  const cleanedValue2 = rawValue === "." ? "0." : rawValue.replace(/^0+(\d)/, "$1");
175
175
  const nextValue2 = parseFloat(cleanedValue2) || 0;
176
176
  const isIntermediate = rawValue.includes(".") && (rawValue.endsWith(".") || /0$/.test(rawValue));
177
- const greaterThanMaximum2 = max != null && nextValue2 > max;
178
- if (greaterThanMaximum2) {
179
- return;
180
- }
181
177
  setDisplayValue(
182
178
  isIntermediate ? cleanedValue2 : String(nextValue2)
183
179
  );
@@ -190,16 +186,13 @@ var Stepper = (_a) => {
190
186
  }
191
187
  const cleanedValue = rawValue.replace(/^0+/, "") || "0";
192
188
  const nextValue = parseInt(cleanedValue, 10);
193
- const greaterThanMaximum = max != null && nextValue > max;
194
- if (greaterThanMaximum) {
195
- return;
196
- }
197
189
  setDisplayValue(cleanedValue);
198
190
  userInputRef.current = true;
199
191
  setValue(nextValue);
200
192
  },
201
193
  onBlur: () => {
202
194
  setDisplayValue(String(value));
195
+ userInputRef.current = false;
203
196
  onBlur == null ? void 0 : onBlur();
204
197
  },
205
198
  error,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmsi/wedgekit-react",
3
3
  "private": false,
4
- "version": "0.0.1085",
4
+ "version": "0.0.1087",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup",