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

Reimplement #2369 in both material ui themes #3068

Merged

Conversation

heath-freenome
Copy link
Member

@heath-freenome heath-freenome commented Aug 29, 2022

Reasons for making this change

Fixes #2368, #2557

  • Updated the BaseInputTemplate in both @rjsf/material-ui and @rjsf/mui to add the examples implementation from "examples" implementation for material-ui #2369
  • Implemented examples in the antd, fluent-ui and semantic-ui theme in a similar manner
  • Added the schema.examples tests in the Form.test.tsx
  • Fixed playground by adding the missing source-map-loader
  • Provided updated package-lock.json for the semantic-ui package
  • Updated the CHANGELOG.md file to add these as well as semantic-ui changes

Checklist

  • 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

Screen Shot 2022-08-29 at 1 07 46 PM

Screen Shot 2022-08-29 at 1 08 02 PM

Screen Shot 2022-08-29 at 12 09 26 PM

Screen Shot 2022-08-29 at 12 09 40 PM

Screen Shot 2022-08-29 at 1 08 12 PM

- Updated the `BaseInputTemplate` in both `@rjsf/material-ui` and `@rjsf/mui` to add the examples implementation from rjsf-team#2369
- Added the `schema.examples` tests in the `Form.test.tsx`
…ious commit

- Commit the `semantic-ui` lock file since it was updated on my install
  - Updated tests accordingly
- Also added `source-map-loader` to `playground` dev dependencies to fix playground
@heath-freenome heath-freenome force-pushed the reimplement-2369-to-fix-2368 branch from c6bea91 to 8e88cd3 Compare August 29, 2022 20:15
@heath-freenome heath-freenome merged commit 9c9488b into rjsf-team:master Aug 29, 2022
@heath-freenome heath-freenome deleted the reimplement-2369-to-fix-2368 branch August 29, 2022 20:44
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.

Examples for string types only works for default & bootstrap themes
2 participants