-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add material-ui theme #1420
Add material-ui theme #1420
Conversation
Related to issue rjsf-team#1222
material-ui/LICENSE
Outdated
@@ -0,0 +1,21 @@ | |||
MIT License |
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.
Thanks! I'm not too familiar with having code with multiple licenses in a single project, so I have a question. Does the inclusion of the MIT license mean that:
- the entire project is still Apache 2 licensed, and this MIT license is just the permission notice for using the MIT-licensed rjsf-material-ui theme in the first place, or
- all code in this folder
material-ui
is MIT licensed, and everything else in react-jsonschema-form is Apache-2 licensed, or - all code added in this PR is MIT licensed, and everything else in react-jsonschema-form (including future contributions to the
material-ui
folder) is Apache-2 licensed?
Just want to figure out what exactly adding this license would mean for the project.
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.
Mmm, I'm not sure, but I think the option 2
.
To do the thing easier, I'm going to delete de license and leave al project with Apache 2 license 👍
This is according to PR conversation
Thanks. Let's use this PR to discuss how best to integrate the material ui theme, and future themes, into rjsf. I think, first, it would be good to move "material-ui" into a "themes" folder first, so we have a clear location of where to put future themes. Option 1 - one packageKeep the material ui theme within react-jsonschema-form. Then, to use the material ui form, it would involve:
Benefits:
Drawbacks:
Option 2 - multiple packagesPublish @rjsf/material-ui as its own npm package, which has react-jsonschema-form (maybe later renamed @rjsf/core?) as a peer dependency. This is more like what this PR has now. To use the form, one would do:
We would use fixed/locked mode with lerna to publish packages. Benefits:
Drawbacks:
I'm leaning towards Option 2 (what we currently have in the PR) here, but just wanted to lay out my thoughts so we thoroughly consider both options. What do you think -- anything I missed? |
@@ -0,0 +1,15 @@ | |||
{ |
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.
Also, do we need the examples directory? Could we potentially merge this with the playground?
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.
Yes, of course. This isn't necessary when we have separate the core between themes.
So sorry for the delay with this response, but I didn't time to see this. |
@agustin107 can you move the theme into a |
Great! Yes of course. |
Thanks! |
@agustin107 @epicfaace This is wonderful! How we can make use of this?
or
or
|
@agentmilindu I'm working on setting this up in #1641 |
Reasons for making this change
Add the capability to use ´rjsf´ with the theme of ´material-ui´.
According to issue #1222.
Checklist