Skip to content

Commit

Permalink
feat: add ButtonBase to experimental (#5099)
Browse files Browse the repository at this point in the history
* chore: exit prerelease mode

* feat: add ButtonBase to experimental

* chore: add changeset

* Revert "chore: exit prerelease mode"

This reverts commit 5418eb5.

* test: update snapshots

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Oct 10, 2024
1 parent 2a3c473 commit cb21a38
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-seahorses-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Add ButtonBase to `@primer/react/experimental` to help with wildcard import interop
2 changes: 2 additions & 0 deletions packages/react/src/Button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ import {LinkButton} from './LinkButton'
export type {ButtonProps, IconButtonProps} from './types'
export {IconButton, LinkButton}
export {ButtonComponent as Button} from './Button'
export {ButtonBase} from './ButtonBase'
export type {ButtonBaseProps} from './ButtonBase'
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ exports[`@primer/react should not update exports without a semver change 1`] = `
"type BreadcrumbsItemProps",
"type BreadcrumbsProps",
"Button",
"ButtonBase",
"type ButtonBaseProps",
"ButtonGroup",
"type ButtonGroupProps",
"type ButtonProps",
Expand Down Expand Up @@ -259,6 +261,8 @@ exports[`@primer/react/experimental should not update exports without a semver c
"type BannerProps",
"Blankslate",
"type BlankslateProps",
"ButtonBase",
"type ButtonBaseProps",
"type ChildrenPropTypes",
"type Column",
"createColumnHelper",
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
export {Blankslate} from '../Blankslate'
export type {BlankslateProps} from '../Blankslate'

export {ButtonBase} from '../Button'
export type {ButtonBaseProps} from '../Button'

export {Banner} from '../Banner'
export type {BannerProps} from '../Banner'

Expand Down

0 comments on commit cb21a38

Please sign in to comment.