You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made @rjsf/material-ui only be for Material UI 4 (#2949)
- Deleted the `MuiComponentContext`, `MuiForm5`, `Theme5` and `ThemeCommon` directories (moving the contents of `ThemeCommon/index.js` directly into `Theme`)
- Deleted the `MaterialUIContext` and `MaterialUIContextProps` files and everything in `Theme.tsx` that related to them
- Replaced all fetching of the Material UI components from the `useMuiComponent()` hook with actual imports from `@material-ui/core` and `@material-ui/icons`
- Deleted the `tests/mui-5` directory and fixed up the tests to work with the simple `Form`
- Regenerated the `package-lock.json` file with node-16
- Added the `cs-check`, `cs-format` and `lint` scripts along with `lint-staged` to the `package.json` file
- Copied the `.eslintrc` file from `core`
- This involved adding `@typescript-eslint`, `eslint` and `eslint-plugin-*`
- Ran `eslint --fix` and `cs-format` over the `src` and `test` directories to fix the build
Copy file name to clipboardExpand all lines: packages/material-ui/README.md
+9-109Lines changed: 9 additions & 109 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
<h3align="center">@rjsf/material-ui</h3>
15
15
16
16
<palign="center">
17
-
Material UI 4 and 5 themes, fields and widgets for <ahref="https://github.com/rjsf-team/react-jsonschema-form/"><code>react-jsonschema-form</code></a>.
17
+
Material UI 4 theme, fields and widgets for <ahref="https://github.com/rjsf-team/react-jsonschema-form/"><code>react-jsonschema-form</code></a>.
18
18
<br />
19
19
<ahref="https://react-jsonschema-form.readthedocs.io/en/latest/"><strong>Explore the docs »</strong></a>
// Make modifications to the theme with your own fields and widgets
111
-
112
-
constForm=withTheme(Theme);
113
-
```
114
-
115
-
### Typescript configuration adjustments
116
-
117
-
If you are using Typescript you may have to update your `tsconfig.json` file in to avoid problems with import aliasing.
118
-
119
-
If you are experiencing an error that is similar to `TS2307: Cannot find module '@rjsf/material-ui/v4' or its corresponding type declarations.` you can add the following:
// Make modifications to the theme with your own fields and widgets
161
94
162
95
constForm=withTheme(Theme);
163
96
```
164
97
165
-
### Typescript configuration adjustments
166
-
167
-
If you are using Typescript you may have to update your `tsconfig.json` file in to avoid problems with import aliasing.
168
-
169
-
If you are experiencing an error that is similar to `TS2307: Cannot find module '@rjsf/material-ui/v5' or its corresponding type declarations.` you can add the following:
0 commit comments