@rjsf/mui 6.0.0-beta.8 → 6.0.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 +14 -14
- package/dist/{index.js → index.cjs} +176 -103
- package/dist/index.cjs.map +7 -0
- package/dist/mui.esm.js +175 -102
- package/dist/mui.esm.js.map +4 -4
- package/dist/mui.umd.js +125 -62
- package/lib/AddButton/AddButton.js +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +3 -3
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +5 -5
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +7 -8
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +3 -3
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.js +6 -6
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js +6 -6
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.js +1 -1
- package/lib/ErrorList/ErrorList.js +7 -7
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js +5 -5
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +3 -3
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.js +4 -4
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/GridTemplate/GridTemplate.d.ts +1 -1
- package/lib/GridTemplate/GridTemplate.js +3 -3
- package/lib/GridTemplate/GridTemplate.js.map +1 -1
- package/lib/IconButton/IconButton.js +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +2 -0
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js +8 -0
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js.map +1 -0
- package/lib/MultiSchemaFieldTemplate/index.d.ts +2 -0
- package/lib/MultiSchemaFieldTemplate/index.js +3 -0
- package/lib/MultiSchemaFieldTemplate/index.js.map +1 -0
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +6 -5
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +10 -0
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +22 -0
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -0
- package/lib/OptionalDataControlsTemplate/index.d.ts +2 -0
- package/lib/OptionalDataControlsTemplate/index.js +3 -0
- package/lib/OptionalDataControlsTemplate/index.js.map +1 -0
- package/lib/RadioWidget/RadioWidget.d.ts +1 -1
- package/lib/RadioWidget/RadioWidget.js +7 -7
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.js +2 -2
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.d.ts +1 -1
- package/lib/SelectWidget/SelectWidget.js +4 -4
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.js +2 -2
- package/lib/Templates/Templates.js +4 -0
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/TitleField/TitleField.d.ts +1 -1
- package/lib/TitleField/TitleField.js +10 -5
- package/lib/TitleField/TitleField.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +4 -5
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -26
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +10 -10
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +27 -21
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +6 -7
- package/src/CheckboxWidget/CheckboxWidget.tsx +6 -6
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +3 -2
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +2 -2
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +2 -2
- package/src/FieldTemplate/FieldTemplate.tsx +6 -4
- package/src/GridTemplate/GridTemplate.tsx +4 -4
- package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +20 -0
- package/src/MultiSchemaFieldTemplate/index.ts +2 -0
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +20 -16
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +43 -0
- package/src/OptionalDataControlsTemplate/index.ts +2 -0
- package/src/RadioWidget/RadioWidget.tsx +4 -3
- package/src/RangeWidget/RangeWidget.tsx +1 -1
- package/src/SelectWidget/SelectWidget.tsx +3 -3
- package/src/Templates/Templates.ts +4 -0
- package/src/TitleField/TitleField.tsx +12 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +14 -16
- package/dist/index.js.map +0 -7
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<h3 align="center">@rjsf/mui</h3>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
Material UI
|
|
17
|
+
Material UI theme, fields and widgets for <a href="https://github.com/rjsf-team/react-jsonschema-form/"><code>react-jsonschema-form</code></a>.
|
|
18
18
|
<br />
|
|
19
19
|
<a href="https://rjsf-team.github.io/react-jsonschema-form/docs/"><strong>Explore the docs »</strong></a>
|
|
20
20
|
<br />
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
- [Prerequisites](#prerequisites)
|
|
39
39
|
- [Installation](#installation)
|
|
40
40
|
- [Usage](#usage)
|
|
41
|
-
- [Material UI version
|
|
41
|
+
- [Material UI version 7](#material-ui-version-7)
|
|
42
42
|
- [Roadmap](#roadmap)
|
|
43
43
|
- [Contributing](#contributing)
|
|
44
44
|
- [Contact](#contact)
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
|
|
48
48
|
## About The Project
|
|
49
49
|
|
|
50
|
-
[![@rjsf/mui Screen Shot][product-screenshot]](https://rjsf-team.github.io/@rjsf/mui)
|
|
51
|
-
|
|
52
50
|
Exports `MUI` version 5 theme, fields, and widgets for `react-jsonschema-form`.
|
|
53
51
|
|
|
52
|
+
[<img src="./screenshot.png" alt="product-screenshot" width="800" />](https://rjsf-team.github.io/@rjsf/mui)
|
|
53
|
+
|
|
54
54
|
### Built With
|
|
55
55
|
|
|
56
56
|
- [react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form/)
|
|
57
|
-
- [Material UI
|
|
57
|
+
- [Material UI 7](https://mui.com/)
|
|
58
58
|
- [TypeScript](https://www.typescriptlang.org/)
|
|
59
59
|
|
|
60
60
|
<!-- GETTING STARTED -->
|
|
@@ -63,15 +63,15 @@ Exports `MUI` version 5 theme, fields, and widgets for `react-jsonschema-form`.
|
|
|
63
63
|
|
|
64
64
|
### Prerequisites
|
|
65
65
|
|
|
66
|
-
NOTE: Material UI
|
|
66
|
+
NOTE: Material UI 7 requires React 18, so you will need to upgrade
|
|
67
67
|
|
|
68
|
-
- `@mui/material`
|
|
69
|
-
- `@mui/icons-material`
|
|
70
|
-
- `@emotion/react`
|
|
71
|
-
- `@emotion/styled`
|
|
72
|
-
- `@rjsf/core >=
|
|
73
|
-
- `@rjsf/utils >=
|
|
74
|
-
- `@rjsf/validator-ajv8 >=
|
|
68
|
+
- `@mui/material >= 7`
|
|
69
|
+
- `@mui/icons-material >= 7`
|
|
70
|
+
- `@emotion/react >= 11`
|
|
71
|
+
- `@emotion/styled >= 11`
|
|
72
|
+
- `@rjsf/core >= 6`
|
|
73
|
+
- `@rjsf/utils >= 6`
|
|
74
|
+
- `@rjsf/validator-ajv8 >= 6`
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
yarn add @mui/material @mui/icons-material @emotion/react @emotion/styled @rjsf/core @rjsf/utils @rjsf/validator-ajv8
|
|
@@ -87,7 +87,7 @@ yarn add @rjsf/mui
|
|
|
87
87
|
|
|
88
88
|
## Usage
|
|
89
89
|
|
|
90
|
-
### Material UI version
|
|
90
|
+
### Material UI version 7
|
|
91
91
|
|
|
92
92
|
```js
|
|
93
93
|
import Form from '@rjsf/mui';
|