-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add Mantine theme - rjsf-v6 #4560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a0d9aa5
50947b5
7e11b8d
3b54a43
54560d2
693f1ce
ba5c186
b6b1db5
1f7263c
8477f72
2ac5c01
1c8f1c5
1ff38f4
63a4491
756c38b
1b5e0b6
6b62a77
db34b88
5055c14
702e6a9
c7b0277
001cf25
4e79a89
12ee9b1
9fd21da
035a9f5
4309e0d
1586146
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ body: | |
- core | ||
- daisyui | ||
- fluentui-rc | ||
- mantine | ||
- mui | ||
- react-bootstrap | ||
- semantic-ui | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ body: | |
- core | ||
- daisyui | ||
- fluentui-rc | ||
- mantine | ||
- mui | ||
- react-bootstrap | ||
- semantic-ui | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ body: | |
- core | ||
- daisyui | ||
- fluentui-rc | ||
- mantine | ||
- mui | ||
- react-bootstrap | ||
- semantic-ui | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ name: "CodeQL" | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: [ "main", "rjsf-v6" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: [ "main", "rjsf-v6" ] | ||
Comment on lines
+16
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can revert these changes now that the |
||
schedule: | ||
- cron: '19 2 * * 1' | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you revert this file and then add a line for
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file was deleted, go ahead and remove it |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
<!-- | ||
|
||
INSTRUCTIONS: | ||
|
||
For each PR, add a changelog entry that describes what your PR does. Add it to the heading | ||
for the appropriate package it modifies and include it in this format: | ||
- [Description] ([Link to PR]) | ||
|
||
If your PR affects multiple packages, list it multiple times under headings for each package. | ||
If it affects more general things such as dependency updates or non-package-specific changes, | ||
add it under a "Dev / docs / playground" section. | ||
|
||
You should also update the heading of the latest (upcoming) version if your PR change merits | ||
it according to semantic versioning. For example, if your PR adds a breaking change, then you | ||
should change the heading of the (upcoming) version to include a major version bump. | ||
|
||
--> | ||
# 6.0.0-beta.1 | ||
|
||
## @rjsf/antd | ||
|
||
- BREAKING CHANGE: Refactored `ArrayFieldItemTemplate` to use the new `ArrayFieldItemButtonsTemplate` | ||
- Updated the `ArrayFieldTemplate`, `ObjectFieldTemplate`, and `WrapIfAdditionalTemplate` to a unique id using the `buttonId()` function and adding consistent marker classes | ||
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme | ||
- BREAKING CHANGE: Removed support for version 4 of `antd` | ||
- Updated `ArrayFieldItemTemplate` to replace `Button.Group` with `Space.Compact` since `Button.Group` is deprecated in `antd` version 5 | ||
- Upgraded to `@ant-design/icon@5` | ||
|
||
## @rjsf/chakra-ui | ||
|
||
- BREAKING CHANGE: Refactored `ArrayFieldItemTemplate` to use the new `ArrayFieldItemButtonsTemplate` | ||
- Updated the `ArrayFieldTemplate`, `ObjectFieldTemplate`, and `WrapIfAdditionalTemplate` to a unique id using the `buttonId()` function and adding consistent marker classes | ||
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme | ||
|
||
## @rjsf/core | ||
|
||
- BREAKING CHANGE: Updated `ArrayField` to provide the `buttonsProps` to the `ArrayFieldItemTemplateType` | ||
- Added `ArrayFieldItemButtonsTemplate` component as a refactor of all the common buttons code from all the `ArrayFieldItemTemplate` implementations, adding a unique id using the `buttonId()` function | ||
- Refactored `ArrayFieldItemTemplate` to use the new `ArrayFieldItemButtonsTemplate` | ||
- Updated the `ArrayFieldTemplate`, `ObjectFieldTemplate`, and `WrapIfAdditionalTemplate` to a unique id using the `buttonId()` function and adding consistent marker classes | ||
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme | ||
- Implemented the new `LayoutGridField`, `LayoutMultiSchemaField` and `LayoutHeaderField` fields, adding them to the `fields` list | ||
|
||
## @rjsf/daisyui | ||
|
||
- Added new theme! | ||
|
||
## @rjsf/fluent-ui | ||
|
||
- BREAKING CHANGE: Deleted this theme in favor of `fluentui-rc` | ||
|
||
## @rjsf/fluentui-rc | ||
|
||
- BREAKING CHANGE: Refactored `ArrayFieldItemTemplate` to use the new `ArrayFieldItemButtonsTemplate` | ||
- Updated the `ArrayFieldTemplate`, `ObjectFieldTemplate`, and `WrapIfAdditionalTemplate` to a unique id using the `buttonId()` function and adding consistent marker classes | ||
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme | ||
|
||
## @rjsf/mui | ||
|
||
- BREAKING CHANGE: Refactored `ArrayFieldItemTemplate` to use the new `ArrayFieldItemButtonsTemplate` | ||
- Updated the `ArrayFieldTemplate`, `ObjectFieldTemplate`, and `WrapIfAdditionalTemplate` to a unique id using the `buttonId()` function and adding consistent marker classes | ||
- Updated the theme to use `Grid2` instead of the deprecated `Grid` | ||
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme | ||
|
||
## @rjsf/semantic-ui | ||
|
||
- BREAKING CHANGE: Refactored `ArrayFieldItemTemplate` to use the new `ArrayFieldItemButtonsTemplate` | ||
- Updated the `ArrayFieldTemplate`, `ObjectFieldTemplate`, and `WrapIfAdditionalTemplate` to a unique id using the `buttonId()` function and adding consistent marker classes | ||
- Implemented the `GridTemplate` component, adding it to the `templates` for the theme | ||
|
||
## @rjsf/shadcn | ||
|
||
- Added new theme! | ||
|
||
## @rjsf/utils | ||
|
||
- BREAKING CHANGE: Refactored the `ArrayFieldItemTemplateType` to extract out all the button related props to `ArrayFieldItemButtonsTemplateType`, adding `buttonsProps: ArrayFieldItemButtonsTemplateType` as a new prop | ||
- Also created a deprecated alias type `ArrayFieldTemplateItemType` that points to `ArrayFieldItemTemplateType` for backwards compatibility | ||
- Added new `GridTemplateProps` type | ||
- BREAKING CHANGE: Added two the following new, required props to `TemplatesType`: | ||
- `ArrayFieldItemButtonsTemplate: ComponentType<ArrayFieldItemButtonsTemplateType<T, S, F>>;` | ||
- `GridTemplate: ComponentType<GridTemplateProps>` | ||
- BREAKING CHANGE: Updated the `SchemaUtilsType` to add new validator-based functions to the interface | ||
- Added the following new non-validator utility functions: | ||
- `buttonId<T>(id: IdSchema<T> | string, btn: 'add' | 'copy' | 'moveDown' | 'moveUp' | 'remove')`: used to generate consistent ids for RJSF buttons | ||
- `getTestIds(): TestIdShape`: Returns an object of test IDs that can only be used in test mode, helpful for writing unit tests for React components | ||
- `hashObject(object: unknown): string`: Stringifies an `object` and returns the hash of the resulting string | ||
- `hashString(string: string): string`: Hashes a string into hex format | ||
- `lookupFromFormContext<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(regOrFc: Registry<T, S, F> | Registry<T, S, F>['formContext'], toLookup: string, fallback?: unknown)`: Given a React JSON Schema Form registry or formContext object, return the value associated with `toLookup` | ||
- Added the following new validator-based utility functions: | ||
- `findFieldInSchema<T = undefined, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(validator: ValidatorType<T, S, F>, rootSchema: S, path: string | string[], schema: S, formData?: T, experimental_customMergeAllOf?: Experimental_CustomMergeAllOf<S>): FoundFieldType<S>`: Finds the field specified by the `path` within the root or recursed `schema` | ||
- `findSelectedOptionInXxxOf<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(validator: ValidatorType<T, S, F>, rootSchema: S, schema: S, fallbackField: string,xxx: 'anyOf' | 'oneOf', formData?: T, experimental_customMergeAllOf?: Experimental_CustomMergeAllOf<S>): S | undefined`: Finds the option that matches the selector field in the `schema` or undefined if nothing is selected | ||
- `getFromSchema<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(validator: ValidatorType<T, S, F>, rootSchema: S, schema: S, path: string | string[], defaultValue: T | S, experimental_customMergeAllOf?: Experimental_CustomMergeAllOf<S>): T | S`: Helper that acts like lodash's `get` but additionally retrieves `$ref`s as needed to get the path for schemas | ||
- Exported a `browser` version of the libraries with a browser-safe version of `getTestIds()` | ||
|
||
## @rjsf/validator-ajv6 | ||
|
||
- BREAKING CHANGE: This deprecated validator has been removed | ||
|
||
## Dev / docs / playground | ||
|
||
- Updated the playground to remove `fluent-ui` theme | ||
- Updated the `custom-templates.md` documentation for the changes to the `ArrayFieldTemplateItem` and add the two new templates | ||
- Updated the `utility-functions.md` documentation to add the `buttonId()` function | ||
- Added the `v6.x upgrade guide.md` documentation | ||
- Updated the `playground` to add a `Layout Grid` example and made the selected example now be part of the shared export | ||
- Replaced Lerna with Nx, updated all lerna commands to use the Nx CLI | ||
|
||
# 6.0.0-alpha.0 | ||
|
||
## @rjsf/bootstrap-4 | ||
|
||
- BREAKING CHANGE: Package has been replaced with `@rjsf/react-bootstrap`. `react-boostrap` v1 / Bootstrap 4 are no longer supported in RJSF v6. | ||
|
||
## @rjsf/material-ui | ||
|
||
- BREAKING CHANGE: Removed `@rjsf/material-ui` package. Material UI v4 (`@material-ui/core`) has been deprecated since September 2021. To use Material UI v5 (`@mui/core`) with RJSF, please use the `@rjsf/mui` theme instead. | ||
|
||
## @rjsf/react-bootstrap | ||
|
||
- Added new package to replace `@rjsf/bootstrap-4` | ||
- `react-bootstrap` peer dependency bumped to `^2.0.0`, corresponding to Bootstrap 5 | ||
- CheckboxesWidget: Remove deprecated prop `custom` | ||
- IconButton: Remove deprecated `block` prop | ||
- RangeWidget: Use `FormRange` component | ||
- SelectWidget: Use new FormSelect component, remove `bsPrefix` prop to achieve correct styling | ||
|
||
## Dev / docs / playground | ||
|
||
- Updated the playground to remove `material-ui-4` theme and replace the `bootstrap-4` theme with `react-bootstrap` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can revert these changes now that the
rjsf-v6
branch is merged and deleted