react-mui-form-validator 1.5.7 → 1.6.0
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/Readme.md +5 -6
- package/package.json +18 -14
package/Readme.md
CHANGED
|
@@ -13,8 +13,6 @@ npm install react-mui-form-validator
|
|
|
13
13
|
|
|
14
14
|
Some rules can accept extra parameter, example:
|
|
15
15
|
|
|
16
|
-
TextField
|
|
17
|
-
|
|
18
16
|
```javascript
|
|
19
17
|
<MuiTextField
|
|
20
18
|
{...someProps}
|
|
@@ -47,10 +45,7 @@ export default function App(props: any) {
|
|
|
47
45
|
return (
|
|
48
46
|
<div>
|
|
49
47
|
<h3>Example Sign In</h3>
|
|
50
|
-
<MuiForm
|
|
51
|
-
onSubmit={handleSubmit}
|
|
52
|
-
onError={(errors: any) => console.log(errors)}
|
|
53
|
-
>
|
|
48
|
+
<MuiForm onSubmit={handleSubmit}>
|
|
54
49
|
<MuiTextField
|
|
55
50
|
name="email"
|
|
56
51
|
label="Email"
|
|
@@ -70,3 +65,7 @@ export default function App(props: any) {
|
|
|
70
65
|
);
|
|
71
66
|
}
|
|
72
67
|
```
|
|
68
|
+
|
|
69
|
+
## Authors
|
|
70
|
+
|
|
71
|
+
- [@blencm](https://www.github.com/blencm)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-mui-form-validator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Validator for forms designed with material-ui components.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"react",
|
|
19
|
-
"
|
|
19
|
+
"react-forms",
|
|
20
|
+
"mui-form",
|
|
20
21
|
"mui-validator",
|
|
21
|
-
"material-ui",
|
|
22
|
-
"form",
|
|
23
22
|
"form-validator",
|
|
24
|
-
"validator"
|
|
23
|
+
"validator",
|
|
24
|
+
"validations",
|
|
25
|
+
"mui-form-validator",
|
|
26
|
+
"react-validator",
|
|
27
|
+
"react-mui-form-validator",
|
|
28
|
+
"react-form-validator"
|
|
25
29
|
],
|
|
26
30
|
"author": "Blencm",
|
|
27
31
|
"license": "MIT",
|
|
@@ -40,17 +44,17 @@
|
|
|
40
44
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.2.0"
|
|
41
45
|
},
|
|
42
46
|
"devDependencies": {
|
|
43
|
-
"@babel/preset-env": "^7.23.
|
|
44
|
-
"@babel/preset-flow": "^7.
|
|
45
|
-
"@babel/preset-react": "^7.
|
|
47
|
+
"@babel/preset-env": "^7.23.3",
|
|
48
|
+
"@babel/preset-flow": "^7.23.3",
|
|
49
|
+
"@babel/preset-react": "^7.23.3",
|
|
46
50
|
"@jest/globals": "^29.7.0",
|
|
47
51
|
"@mui/material": "^5.14.17",
|
|
48
|
-
"@testing-library/react": "^14.
|
|
49
|
-
"@types/node": "^20.
|
|
50
|
-
"@types/react": "^18.2.
|
|
51
|
-
"@types/react-dom": "^18.2.
|
|
52
|
-
"@types/react-lifecycles-compat": "^3.0.
|
|
53
|
-
"@types/react-test-renderer": "^18.0.
|
|
52
|
+
"@testing-library/react": "^14.1.0",
|
|
53
|
+
"@types/node": "^20.9.0",
|
|
54
|
+
"@types/react": "^18.2.37",
|
|
55
|
+
"@types/react-dom": "^18.2.15",
|
|
56
|
+
"@types/react-lifecycles-compat": "^3.0.4",
|
|
57
|
+
"@types/react-test-renderer": "^18.0.6",
|
|
54
58
|
"babel-jest": "^29.7.0",
|
|
55
59
|
"jest": "^29.7.0",
|
|
56
60
|
"mui-tel-input": "4.0.1",
|