Skip to content

Major update adda new Form components and fixes SRR issues #260

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

Merged
merged 5 commits into from
Apr 18, 2022

Conversation

stuarthendren
Copy link
Contributor

Adds Form and FormControl components.
Updates ThemeProvider for SSR
Add new ComponentsProvider to wrap all providers.

Started with an update to dependencies and the required fixes.
This required significant work in
the dev support (tests/stories).
Changes in components now require some global Providers so a new
component provider has been added to wrap them all together.

BREAKING CHANGE: It is now reccommended that you wrap the application with `ComponentsProvider`
replacing the `ThemeProvider`. This includes all required components.

fix #253
For both Menu and ContextMenu
Extracts common styles to utilities

fix #250
The Theme provider uses window and causes issues if SRR. This should now fail safe. And separate
options are available to use the themes server side.

fix #249
As to fix the usage with other link providers such as ReactRouter by using the simpler Radix
asChild approach over the Stiches `as`. Also exposes the component parts so easier to make your own.

BREAKING CHANGE: Users of Link `as` prop should change to `asChild` and nest the component with any
of it's own props.

fix #256
 Adds helpers to simplify the creation of Forms.
 Form, FormButton, FormControl FormControlHelp
 These are form framework/lib independent.

 Required updates to the input types to support the API.

 fix #248
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

81.7% 81.7% Coverage
0.0% 0.0% Duplication

@stuarthendren stuarthendren merged commit e438fba into main Apr 18, 2022
@stuarthendren stuarthendren deleted the sh/upgrade branch April 18, 2022 15:26
@commitd-bot
Copy link
Contributor

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants