Skip to content
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: add ButtonBase to experimental #5099

Merged
merged 6 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading