Skip to content
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

[v6] Add react-bootstrap theme to replace bootstrap-4 (#3638) #3974

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

nickgros
Copy link
Contributor

Fixes #3638

  • Add react-bootstrap package and use react-bootstrap v2, 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

  • I'm updating documentation

  • I'm adding or updating code

    • I've added and/or updated tests. I've run npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature

    • I've updated the playground with an example use of the feature

"@rjsf/chakra-ui": "^5.14.2",
"@rjsf/core": "^5.14.2",
"@rjsf/fluent-ui": "^5.14.2",
"@rjsf/fluentui-rc": "^5.14.2",
"@rjsf/material-ui": "^5.14.2",
"@rjsf/mui": "^5.14.2",
"@rjsf/react-bootstrap": "file:../react-bootstrap",
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

@nickgros nickgros marked this pull request as draft November 25, 2023 16:34
@nickgros
Copy link
Contributor Author

Converting to draft until we get CI working for rjsf-v6 branch

@heath-freenome
Copy link
Member

@nickgros I guess the first thing we need to do is create the long-lived branch

@nickgros nickgros mentioned this pull request Dec 1, 2023
 - Add react-bootstrap package and use react-bootstrap v2, 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
@nickgros nickgros marked this pull request as ready for review December 8, 2023 20:11
CHANGELOG.md Outdated
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 6.0.0
# 6.0.0-beta.1


### Built With

- [react-jsonschema-form](https://github.com/mozilla-services/react-jsonschema-form/)
- [Bootstrap-4](https://getbootstrap.com/docs/4.0/)
- [Bootstrap-5](https://getbootstrap.com/docs/4.0/)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this to 5

"version": "5.15.0",
"main": "dist/index.js",
"module": "lib/index.js",
"typings": "lib/index.d.ts",
"description": "Bootstrap 4 theme, fields and widgets for react-jsonschema-form",
"description": "Bootstrap 5 theme, fields and widgets for react-jsonschema-form, powered by react-bootstrap",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider calling this React Bootstrap theme

Comment on lines 85 to 86
"bootstrap-5",
"rjsf-bootstrap-5"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add react-bootstrap, rjsf-react-bootstrap


## @rjsf/bootstrap-4

- Package has been replaced with `@rjsf/react-bootstrap`. `react-boostrap` v1 / Bootstrap 4 are no longer supported in RJSF v6.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, add this to the migration guide with breaking changes?

@heath-freenome heath-freenome mentioned this pull request Jan 5, 2024
8 tasks
@nickgros nickgros merged commit c456252 into rjsf-team:rjsf-v6 Jan 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants