-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[v6] Add react-bootstrap theme to replace bootstrap-4 (#3638) #3974
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 2 commits
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 |
---|---|---|
|
@@ -15,6 +15,21 @@ it according to semantic versioning. For example, if your PR adds a breaking cha | |
should change the heading of the (upcoming) version to include a major version bump. | ||
|
||
--> | ||
# 6.0.0 | ||
|
||
## @rjsf/bootstrap-4 | ||
|
||
- Package has been replaced with `@rjsf/react-bootstrap`. `react-boostrap` v1 / Bootstrap 4 are no longer supported in RJSF v6. | ||
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. Also, add this to the migration guide with breaking changes? |
||
|
||
## @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 | ||
|
||
# 5.15.1 | ||
|
||
## @rjsf/core | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,13 @@ | |
"@material-ui/core": "^4.12.4", | ||
"@mui/material": "^5.14.8", | ||
"@rjsf/antd": "^5.15.0", | ||
"@rjsf/bootstrap-4": "^5.15.0", | ||
"@rjsf/chakra-ui": "^5.15.0", | ||
"@rjsf/core": "^5.15.0", | ||
"@rjsf/fluent-ui": "^5.15.0", | ||
"@rjsf/fluentui-rc": "^5.15.0", | ||
"@rjsf/material-ui": "^5.15.0", | ||
"@rjsf/mui": "^5.15.0", | ||
"@rjsf/react-bootstrap": "file:../react-bootstrap", | ||
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 lets me build the playground without releasing the theme to NPM. We can update this to the version number once we release a v6 beta. |
||
"@rjsf/semantic-ui": "^5.15.0", | ||
"@rjsf/utils": "^5.15.0", | ||
"@rjsf/validator-ajv6": "^5.15.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import { Theme as FluentUITheme } from '@rjsf/fluent-ui'; | |
import { Theme as FluentUIRCTheme } from '@rjsf/fluentui-rc'; | ||
import { Theme as SuiTheme } from '@rjsf/semantic-ui'; | ||
import { Theme as AntdTheme } from '@rjsf/antd'; | ||
import { Theme as Bootstrap4Theme } from '@rjsf/bootstrap-4'; | ||
import { Theme as BootstrapTheme } from '@rjsf/react-bootstrap'; | ||
import { Theme as ChakraUITheme } from '@rjsf/chakra-ui'; | ||
import v8Validator, { customizeValidator } from '@rjsf/validator-ajv8'; | ||
import v6Validator from '@rjsf/validator-ajv6'; | ||
|
@@ -93,10 +93,6 @@ const themes: PlaygroundProps['themes'] = { | |
stylesheet: '//cdnjs.cloudflare.com/ajax/libs/antd/4.1.4/antd.min.css', | ||
theme: AntdTheme, | ||
}, | ||
'bootstrap-4': { | ||
stylesheet: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css', | ||
theme: Bootstrap4Theme, | ||
}, | ||
'chakra-ui': { | ||
stylesheet: '', | ||
theme: ChakraUITheme, | ||
|
@@ -117,6 +113,10 @@ const themes: PlaygroundProps['themes'] = { | |
stylesheet: '', | ||
theme: MuiV5Theme, | ||
}, | ||
'react-bootstrap': { | ||
stylesheet: '//cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css', | ||
theme: BootstrapTheme, | ||
}, | ||
'semantic-ui': { | ||
stylesheet: '//cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css', | ||
theme: SuiTheme, | ||
|
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.