mui-custom-form 0.1.7 → 0.1.8

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 (2) hide show
  1. package/package.json +6 -7
  2. package/readme.md +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mui-custom-form",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A versatile React form component utilizing MUI components and react-hook-form.",
5
5
  "main": "dist/CustomForm.js",
6
6
  "types": "dist/CustomForm.d.ts",
@@ -28,7 +28,10 @@
28
28
  "peerDependencies": {
29
29
  "@mui/material": "5.14.2",
30
30
  "@mui/x-date-pickers": "^6.10.2",
31
- "react-hook-form": "^7.45.2"
31
+ "react-hook-form": "^7.45.2",
32
+ "date-fns": "^2.30.0",
33
+ "dayjs": "^1.11.9",
34
+ "moment": "^2.29.4"
32
35
  },
33
36
  "devDependencies": {
34
37
  "@emotion/react": "^11.11.1",
@@ -37,9 +40,5 @@
37
40
  "@types/react": "^18.2.20",
38
41
  "typescript": "^5.1.6"
39
42
  },
40
- "dependencies": {
41
- "date-fns": "^2.30.0",
42
- "dayjs": "^1.11.9",
43
- "moment": "^2.29.4"
44
- }
43
+ "dependencies": {}
45
44
  }
package/readme.md CHANGED
@@ -145,15 +145,15 @@ function MyComponent() {
145
145
  }
146
146
 
147
147
  return (
148
- <CustomForm
149
- fieldsGroups={fieldsGroups}
150
- onSubmit={formControl.handleSubmit(onSubmit, (fail) =>
151
- console.log({ fail })
152
- )}
153
- formControl={formControl}
154
- />
148
+ <CustomForm
149
+ fieldsGroups={fieldsGroups}
150
+ onSubmit={formControl.handleSubmit(onSubmit, (fail) =>
151
+ console.log({ fail })
152
+ )}
153
+ formControl={formControl}
154
+ />
155
155
  )
156
-
156
+ }
157
157
  ```
158
158
 
159
159
  ### Contribution