-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Button][base] Drop component
prop
#36677
Merged
Merged
Changes from 4 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
c955845
[ButtonUnstyled] Drop `component` prop
mnajdova 8e7ebda
docs:typescript:formatted
mnajdova 615cfaf
Fix lint issues
mnajdova 3b88d2d
Fix tests related to the changes of the conformance test suite
mnajdova 42c3a54
Use React.ButtonHTMLAttributes
mnajdova abb7d98
remove ButtonUnstyledTypeMap usages
mnajdova 7eecd8a
Merge branch 'master' into base/remove-component-prop
michaldudak aced6ee
Created a Base UI version of OverridableComponent
michaldudak b96cc6f
Merge remote-tracking branch 'upstream/master' into base/remove-compo…
michaldudak 1aca46b
revert some test changes, cleanup code
mnajdova ee4fdb7
Rename the OverridableComponent to PolymorphicComponent
mnajdova f49956d
Fixed regressions in names
mnajdova c709d0c
update the spec tests
mnajdova d61f431
Fix lint issues
mnajdova d86107a
Update packages/mui-base/src/ButtonUnstyled/ButtonUnstyled.spec.tsx
mnajdova e0cc64d
Docs updates on the genric usage
mnajdova 10cca14
update button and overriding component structure docs
samuelsycamore 83aaa1e
Merge branch 'master' into base/remove-component-prop
mnajdova aa50cdc
Merge branch 'base/remove-component-prop' of https://github.com/mnajd…
mnajdova 0c78312
prettier
mnajdova 5c8d684
docs:api
mnajdova 641bd26
fix some issues
mnajdova 27e0da1
fix wrong path separators
mnajdova cb62291
One more fix
mnajdova 4ebe89f
more changes
mnajdova 41845e6
Remove occurrences of unstyled from button doc
hbjORbj 814df7c
update button api docs
hbjORbj 253450a
remove old files
mnajdova 8c7a61e
Merge branch 'base/remove-component-prop' of https://github.com/mnajd…
mnajdova 920a682
address comments
hbjORbj 508a008
use single quote
hbjORbj 2bb9245
prettier
hbjORbj fbfbd3c
remove unstyled from overriding component structure doc
hbjORbj 9ce855e
add 1 more ts test
hbjORbj e089918
resolve merge conflict
hbjORbj b7d62fb
Merge branch 'master' into base/remove-component-prop
hbjORbj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/data/base/components/button/UnstyledButtonsSpan.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<CustomButton component="span">Button</CustomButton> | ||
<CustomButton component="span" disabled> | ||
<CustomButton slots={{ root: 'span' }}>Button</CustomButton> | ||
<CustomButton slots={{ root: 'span' }} disabled> | ||
Disabled | ||
</CustomButton> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I wonder if the ButtonUnstyled definition shouldn't be
function ButtonUnstyled(props: ButtonUnstyledProps, forwardedRef: React.ForwardedRef<any>)
(without the generics). This way, we get strongly typed props inside the component definition. Nothing would change with the exported definition as we cast it to PloymorphicComponent anyway.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.
I like the explicitness that we have now. We can open a separate issue for this and see what other things I guess. It's anyway internal change