@etsoo/materialui 1.3.29 → 1.3.30
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/lib/IntInputField.js +2 -2
- package/package.json +12 -12
- package/src/IntInputField.tsx +2 -2
package/lib/IntInputField.js
CHANGED
|
@@ -87,7 +87,7 @@ export const IntInputField = React.forwardRef((props, ref) => {
|
|
|
87
87
|
if (localValue == null)
|
|
88
88
|
return;
|
|
89
89
|
const value = NumberUtils.parse(localValue);
|
|
90
|
-
if (
|
|
90
|
+
if (value == null)
|
|
91
91
|
return;
|
|
92
92
|
if (value <= min)
|
|
93
93
|
setValue(undefined, "SUB");
|
|
@@ -102,7 +102,7 @@ export const IntInputField = React.forwardRef((props, ref) => {
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
const value = NumberUtils.parse(localValue);
|
|
105
|
-
if (
|
|
105
|
+
if (value == null)
|
|
106
106
|
return;
|
|
107
107
|
if (value >= max)
|
|
108
108
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.30",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"@emotion/css": "^11.11.2",
|
|
51
51
|
"@emotion/react": "^11.11.1",
|
|
52
52
|
"@emotion/styled": "^11.11.0",
|
|
53
|
-
"@etsoo/appscript": "^1.4.
|
|
54
|
-
"@etsoo/notificationbase": "^1.1.
|
|
55
|
-
"@etsoo/react": "^1.7.
|
|
56
|
-
"@etsoo/shared": "^1.2.
|
|
57
|
-
"@mui/icons-material": "^5.14.
|
|
58
|
-
"@mui/material": "^5.14.
|
|
59
|
-
"@mui/x-data-grid": "^6.
|
|
53
|
+
"@etsoo/appscript": "^1.4.62",
|
|
54
|
+
"@etsoo/notificationbase": "^1.1.30",
|
|
55
|
+
"@etsoo/react": "^1.7.20",
|
|
56
|
+
"@etsoo/shared": "^1.2.18",
|
|
57
|
+
"@mui/icons-material": "^5.14.15",
|
|
58
|
+
"@mui/material": "^5.14.15",
|
|
59
|
+
"@mui/x-data-grid": "^6.17.0",
|
|
60
60
|
"@types/pica": "^9.0.3",
|
|
61
61
|
"@types/pulltorefreshjs": "^0.1.6",
|
|
62
|
-
"@types/react": "^18.2.
|
|
62
|
+
"@types/react": "^18.2.33",
|
|
63
63
|
"@types/react-avatar-editor": "^13.0.1",
|
|
64
64
|
"@types/react-dom": "^18.2.14",
|
|
65
65
|
"@types/react-input-mask": "^3.0.4",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"@babel/runtime-corejs3": "^7.23.2",
|
|
85
85
|
"@testing-library/jest-dom": "^6.1.4",
|
|
86
86
|
"@testing-library/react": "^14.0.0",
|
|
87
|
-
"@types/jest": "^29.5.
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
89
|
-
"@typescript-eslint/parser": "^6.
|
|
87
|
+
"@types/jest": "^29.5.7",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
89
|
+
"@typescript-eslint/parser": "^6.9.1",
|
|
90
90
|
"jest": "^29.7.0",
|
|
91
91
|
"jest-environment-jsdom": "^29.7.0",
|
|
92
92
|
"typescript": "^5.2.2"
|
package/src/IntInputField.tsx
CHANGED
|
@@ -203,7 +203,7 @@ export const IntInputField = React.forwardRef<
|
|
|
203
203
|
if (localValue == null) return;
|
|
204
204
|
|
|
205
205
|
const value = NumberUtils.parse(localValue);
|
|
206
|
-
if (
|
|
206
|
+
if (value == null) return;
|
|
207
207
|
|
|
208
208
|
if (value <= min) setValue(undefined, "SUB");
|
|
209
209
|
else setValue(value - step, "SUB");
|
|
@@ -221,7 +221,7 @@ export const IntInputField = React.forwardRef<
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
const value = NumberUtils.parse(localValue);
|
|
224
|
-
if (
|
|
224
|
+
if (value == null) return;
|
|
225
225
|
|
|
226
226
|
if (value >= max) return;
|
|
227
227
|
else setValue(value + step, "ADD");
|