-
Notifications
You must be signed in to change notification settings - Fork 645
feat(styled-react): add all components as exports #6612
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
Conversation
🦋 Changeset detectedLatest commit: c8c6538 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Pull Request Overview
This PR adds comprehensive component exports from @primer/react to @primer/styled-react to support the gradual removal of the sx prop from components. The change enables both automated and manual component updates as the migration progresses.
- Adds all available components from the main
@primer/reactpackage to@primer/styled-react - Includes experimental and deprecated component exports for complete coverage
- Reorganizes exports to group styled-components utilities separately from regular components
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/styled-react/src/index.ts | Adds 60+ component exports from @primer/react and reorganizes existing exports |
| packages/styled-react/src/experimental.ts | Expands from single Dialog export to 27 experimental components |
| packages/styled-react/src/deprecated.ts | Adds 11 deprecated component exports beyond the existing Octicon |
| packages/styled-react/src/tests/snapshots/exports.test.ts.snap | Updates test snapshots to reflect the new comprehensive export lists |
| .changeset/gentle-rockets-go.md | Documents the minor version change for the new component exports |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
size-limit report 📦
|
Pull Request is not mergeable
As we get ready to remove
sxfrom components, this PR adds in support for all components from@primer/reactto@primer/styled-react. This should help if we want to auto update all components or if individuals update components themselves.As
sxusage for an export goes to 0, it should be removed from@primer/styled-react