Commit Graph

9 Commits

Author SHA1 Message Date
Ryan Gossiaux
e16e27f04e Handle dynamically adding items in list components: Radio Group, Tabs, Listbox, Menu
Fixes #29

Upstream Headless UI handles this for Radio Group but not for the others. I didn't see any reason why not to implement this for the other ones too.
2021-12-31 11:46:00 -10:00
Ryan Gossiaux
0996de1e6e Add test data to Tab components 2021-12-29 10:32:28 -10:00
Ryan Gossiaux
70c68d00fe Tab: fix aria-controls
When porting, I thought I was being clever by just using ids instead of refs in $api.panels
But I didn't notice that the refs let you distinguish those panels which are rendered from those which are not.
My implementation had aria-controls= set for all tabs, even when their panels were not in the DOM.
2021-12-28 16:51:36 -10:00
Ryan Gossiaux
a7e8be2c14 Add type=button handling
Fixes #22
2021-12-22 13:07:16 -08:00
Ryan Gossiaux
b973fa6fe2 Move Tabs to <Render>
This is the last component to move to <Render>!
2021-12-20 23:19:31 -08:00
Ryan Gossiaux
305dc1543f $api?. => $api. when possible
Now that this stuff has all been cleaned up with useXContext functions
2021-12-18 23:56:37 -08:00
Ryan Gossiaux
c5ed870827 Assorted fixes
Type fixes, support a couple more classes as functions for the examples, and switch TabPanels to registering ids instead of refs
2021-12-17 14:22:19 -08:00
Ryan Gossiaux
82b138f0ae Run prettier over everything and fix some imports 2021-12-13 18:22:16 -08:00
Ryan Gossiaux
db9ec57065 Initial commit with files
Still need to fix the imports
2021-12-13 17:13:47 -08:00