Skip to content

Conversation

@joshblack
Copy link
Member

As we get ready to remove sx from components, this PR adds in support for all components from @primer/react to @primer/styled-react. This should help if we want to auto update all components or if individuals update components themselves.

As sx usage for an export goes to 0, it should be removed from @primer/styled-react

@joshblack joshblack requested review from Copilot and jonrohan August 15, 2025 18:26
@joshblack joshblack requested a review from a team as a code owner August 15, 2025 18:26
@changeset-bot
Copy link

changeset-bot bot commented Aug 15, 2025

🦋 Changeset detected

Latest commit: c8c6538

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/styled-react Minor

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

@github-actions github-actions bot added the staff Author is a staff member label Aug 15, 2025
Copy link
Contributor

Copilot AI left a 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/react package 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.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 15, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 90.2 KB (0%)
packages/react/dist/browser.umd.js 90.47 KB (0%)

@github-actions github-actions bot requested a deployment to storybook-preview-6612 August 21, 2025 17:17 Abandoned
@joshblack joshblack enabled auto-merge August 21, 2025 19:52
@joshblack joshblack added this pull request to the merge queue Aug 21, 2025
auto-merge was automatically disabled August 21, 2025 20:06

Pull Request is not mergeable

Merged via the queue into main with commit 7ad9b81 Aug 21, 2025
42 of 43 checks passed
@joshblack joshblack deleted the feat/add-all-components-to-styled-react branch August 21, 2025 20:07
@primer primer bot mentioned this pull request Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants