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
Fix 3296 by adjusting buttons location for the array field toolbar (rjsf-team#4859)
* Fix 3296 by adjusting buttons location for the array field toolbar
Fixedrjsf-team#3296 by updating `ArrayFieldItemTemplateProps` to add `displayLabel` and `hasDescription` and using them in the themes to adjust buttons location
- In `@rjsf/utils`, updated `ArrayFieldItemTemplateProps` to add `displayLabel` and `hasDescription` flags
- In `@rjsf/core`, updated `ArrayField` to compute and pass `displayLabel` and `hasDescription` flags
- Updated `ArrayFieldItemTemplate` to use `displayLabel` and `hasDescription` to adjust buttons location
- Also fixed bug where `StringField` was not using the `title` passed to it as found in `mantine` theme
- In `@rjsf/antd`, updated `ArrayFieldItemTemplate` and `ArrayFieldTemplate` to adjust sizes and buttons location using `displayLabel` and `hasDescription`
- In `@rjsf/chakra-ui`, updated snapshots due to `StringField` fix
- In `@rjsf/daisyui`, updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`
- Also updated `WrapIfAdditionalTemplate` and `BaseInputTemplate` to make the inputs full width
- Also updated `FieldTemplate` to render the `description` which was missing in the theme
- In `@rjsf/fluentui-rc`, updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel`
- Also updated `WrapIfAdditionalTemplate` to add `flexGrow` to allow the array item fields to grow properly for non-container elements
- In `@rjsf/mantine`, updated `utils.ts` to add `label` to the cleanup fields to filter it from the `uiOptions`
- Also updated `BaseInputTemplate` to display `description` which was missing in the theme
- Also updated `ArrayFieldTitleTemplate` to support the `optionalData`
- In `@rjsf/mui`, updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`
- In `@rjsf/primereact`, updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel`
- In `@rjsf/react-bootstrap`, updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`
- Also, updated `ArrayFieldTemplate` to improve it's responsiveness in relation to the `ArrayFieldItemTemplate` changes
- In `@rjsf/semantic-ui`, updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`
- In `@rjsf/shadcn`, updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`
- Also updated `ArrayFieldTemplate` to add `justify-end` to the `AddButton` rendering
- Updated all snapshots due to above changes
- Updated `uiSchema.md` in the docs to document the new `enableMarkdownInHelp` flag from previous PR
- Updated the `CHANGELOG.md` accordingly
* Update packages/mantine/src/templates/BaseInputTemplate.tsx
* - Updated snapshots
* - Restored space in `classNames` that was accidentally removed
Copy file name to clipboardExpand all lines: CHANGELOG.md
+37-16Lines changed: 37 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,55 +20,76 @@ should change the heading of the (upcoming) version to include a major version b
20
20
## @rjsf/antd
21
21
22
22
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
23
+
- Updated `ArrayFieldItemTemplate` and `ArrayFieldTemplate` to adjust sizes and buttons location using `displayLabel` and `hasDescription`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
23
24
24
-
## @rjsf/antd
25
-
26
-
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
27
-
28
-
## @rjsf/antd
25
+
## @rjsf/chakra-ui
29
26
30
27
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
31
28
32
-
## @rjsf/mui
29
+
## @rjsf/core
33
30
34
-
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
31
+
- Added new `RichHelp` component for use in all the themes for help rendering, fixing [#4601](https://github.com/rjsf-team/react-jsonschema-form/issues/4601)
32
+
- Updated `ArrayField` to compute and pass `displayLabel` and `hasDescription` to the rendered `ArrayFieldItemTemplate` to support fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
33
+
- Updated `StringField` to extract the `title` from the props and pass it down to the widget if provided
34
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
35
+
- Updated `AddButton` to improve it's responsiveness in relation to the `ArrayFieldItemTemplate` changes
35
36
36
-
## @rjsf/shadcn
37
+
## @rjsf/daisyui
37
38
38
39
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
40
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
41
+
- Updated `WrapIfAdditionalTemplate` to add `flexGrow` and `BaseInputTemplate` to add `w-full` to allow the array item fields to grow properly
42
+
- Updated `FieldTemplate` to render the `description` which was missing in the theme
39
43
40
-
## @rjsf/primereact
44
+
## @rjsf/fluentui-rc
41
45
42
46
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
47
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
48
+
- Updated `WrapIfAdditionalTemplate` to add `flexGrow` to allow the array item fields to grow properly for non-container elements
43
49
44
-
## @rjsf/react-bootstrap
50
+
## @rjsf/mantine
45
51
46
52
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
53
+
- Updated `utils.ts` to add `label` to the cleanup fields to filter it from the `uiOptions`
54
+
- Updated `BaseInputTemplate` to display `description` which was missing in the theme
55
+
- Updated `ArrayFieldTitleTemplate` to support the `optionalData`
47
56
48
-
## @rjsf/semantic-ui
57
+
## @rjsf/mui
49
58
50
59
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
60
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
51
61
52
-
## @rjsf/daisyui
62
+
## @rjsf/primereact
53
63
54
64
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
65
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
55
66
56
-
## @rjsf/fluentui-rc
67
+
## @rjsf/react-bootstrap
57
68
58
69
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
70
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
71
+
- Updated `ArrayFieldTemplate` to improve it's responsiveness in relation to the `ArrayFieldItemTemplate` changes
59
72
60
-
## @rjsf/chakra-ui
73
+
## @rjsf/semantic-ui
61
74
62
75
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
76
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
63
77
64
-
## @rjsf/mantine
78
+
## @rjsf/shadcn
65
79
66
80
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
81
+
- Updated `ArrayFieldItemTemplate` to adjust buttons location using `displayLabel` and `hasDescription`, fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
82
+
- Updated `ArrayFieldTemplate` to add `justify-end` to the `AddButton` rendering
67
83
68
84
## @rjsf/utils
69
85
70
-
- Added support for rendering `ui:help` as markdown via new `ui:enableMarkdownInHelp` flag in `FieldHelpTemplate`
86
+
- Added new `enableMarkdownInHelp` to the `GlobalUISchemaOptions` type, fixing [#4601](https://github.com/rjsf-team/react-jsonschema-form/issues/4601)
87
+
- Added new `displayLabel` and `hasDescription` flags in the `ArrayFieldItemTemplateProps` to support fixing [#3296](https://github.com/rjsf-team/react-jsonschema-form/issues/3296)
88
+
- Updated the three hooks to add `use client` directive to support NextJS builds
89
+
90
+
## Dev / docs / playground
71
91
92
+
- Updated `uiSchema.md` in the docs to document the new `enableMarkdownInHelp` flag
0 commit comments