-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[base] Refactor the compound components building blocks #36400
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
5a5c21a
Few fixes and additions to useListbox
michaldudak fac8a2b
Redesign unstyled Tabs to work with context
michaldudak 4cf59ea
Extract useListItem to a separate file
michaldudak ce1aeac
Clean up useListbox
michaldudak ec17fdd
Rename useListbox to useList
michaldudak 56c6416
Use the new building blocks in MenuUnstyled
michaldudak db53bd0
Use the new building blocks in SelectUnstyled
michaldudak 319985b
Decouple the controllableReducer from the List
michaldudak 5db7fae
Docs and cleanup of useList
michaldudak 776be3e
Rename defaultListboxReducer to listReducer
michaldudak 2da76ad
API docs
michaldudak 34fa5ac
Do not require compound subcomponents to have a defined value
michaldudak 8967e16
Sync ids between tabs and tab panels
michaldudak f266cd6
Fix errors in Joy
michaldudak b30051a
joy-ui: add GroupListContext
siriwatknp 1a31ee2
Fix all the tests
michaldudak cb3742f
Docs and demos
michaldudak 78be657
Include inaccessible elements in tests
michaldudak af31a7f
Name the TabsListUnstyled function
michaldudak 35ca76f
Remove controlled open prop from Select implementations
michaldudak 5ddbe6f
Make Joy's Option value mandatory
michaldudak 23fb884
Update Joy Select demo to restore the previous look
michaldudak 54b7875
Update the description of the tabs API
michaldudak 6bcb725
Don't try to focus a closed menu's item
michaldudak 7f5c9c5
Revert unrelated changes
michaldudak ff4bf70
Remove old code and update demos
michaldudak b97ed12
Restart CI
michaldudak c1305f6
Merge remote-tracking branch 'upstream/master' into tabs-with-context
michaldudak e9a6afe
Docs + small changes
michaldudak 6999645
Rename TValue to something more meaningful
michaldudak 422e0bf
Revert useLatest
michaldudak 15c8ae1
Wrap useStateChangeDetection's parameters in an object
michaldudak 10ace6d
listReducer keyboard navigation tests and fixes
michaldudak 091cd3a
Do not focus a disabled first item after initially populating the opt…
michaldudak d46eb12
Configurable pageSize in useList
michaldudak 3c7faf4
Small changes
michaldudak 843e882
Highlight selected item in Select
michaldudak 85878a2
Extract reducers and add a few tests
michaldudak e3528fb
Open the Joy Select when clicked on the root element
michaldudak 8e14f71
Docs and tests
michaldudak d18aee7
Simplify action addon (do not require a ref)
michaldudak f8da22a
Remove the unnecessary setState action (and simplify many generics)
michaldudak 1a05c79
Simplify, rename and explain the action addon concept
michaldudak f7448ad
Remove redundant return values from useList
michaldudak b9e76dd
Add comments in useList
michaldudak a4227d4
Fix unnecessary rerendering of options
michaldudak 3af4d0c
Merge branch 'master' into tabs-with-context
michaldudak b074464
Finx linter violation
michaldudak 430ccad
Change MD3 tabs to use null instead of false
michaldudak bba8c16
Docs
michaldudak 6070647
Change selectionLimit to selectionMode
michaldudak 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
Oops, something went wrong.
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 think it may be easier to understand if we have an explicit
isOpen
state instead of setting and resetting theanchorEl
.All the menu demos (and Joy templates) use the same pattern.