-
Notifications
You must be signed in to change notification settings - Fork 526
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
NewButton -> Button2 #1730
NewButton -> Button2 #1730
Conversation
🦋 Changeset detectedLatest commit: 32a4ad0 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 |
size-limit report 📦
|
@@ -7,5 +7,5 @@ | |||
|
|||
// Components | |||
export * from './ActionList2' | |||
export * from './NewButton' | |||
export * from './Button2' |
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.
thank you ❤️
src/index.ts
Outdated
export {NewButton} from './NewButton' | ||
export type {NewButtonProps} from './NewButton' | ||
export {Button2} from './Button2' | ||
export type {Button2Props} from './Button2' |
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.
should we remove this from the main bundle and only ship it in drafts
? based on this proposal
src/Button2/index.ts
Outdated
import {ButtonProps, IconButtonProps} from './types' | ||
// change this when moving to released state | ||
export type {ButtonProps as Button2Props, IconButtonProps} | ||
export const Button2 = Object.assign(Button, { |
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.
How do you feel about exporting this as Button
instead of Button2
. The scoping would happen with the import statement instead of name. See also
import {Button} from '@primer/react
and
import {Button} from '@primer/react/drafts
@pksjce This change should probably have a changeset since we want this PR to trigger a new release |
2001204
to
39e4447
Compare
3b51e92
to
c6e9419
Compare
* Rename new button stuff * Update tests * Export Button component * Change button2 storybook name * Create fuzzy-meals-explain.md
No visual changes. Just filename and component name changes.
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.