-
Notifications
You must be signed in to change notification settings - Fork 129
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
feat(cli): add prop codemods #600
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sumup-oss/circuit-ui/q2bucdfr2 |
ba03c6c
to
028ce29
Compare
Codecov Report
@@ Coverage Diff @@
## alpha #600 +/- ##
=======================================
Coverage 94.26% 94.26%
=======================================
Files 136 136
Lines 2198 2198
Branches 631 631
=======================================
Hits 2072 2072
Misses 103 103
Partials 23 23 |
feature/codemods
feature/codemods feature/codemods
feature/codemods
feature/codemods
feature/codemods
028ce29
to
1ef67a3
Compare
🎉 This PR is included in version 2.0.0-alpha.23 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Follow-up to #596.
Purpose
Circuit UI v2 comes with a lot of breaking changes — most small and component-specific, but together they add up to a lot of manual work for the users. We can automate these changes with codemods, small scripts that modify the source code automatically.
This PR focuses on prop related codemods. Other codemods will come in follow-up PRs.
Approach and changes
onChange
props for RadioButton and Switchas
prop for Heading, SubHeading, Text, and InputonChange
andchecked
props for Selectorref
prop for InputDefinition of done