Open
Conversation
Headless treeview with 9 sub-components: Root, List, Item, Activator, Content, Cue, Group, Checkbox, Indicator. Built on createNested for tree state management with selection, open/close, and activation. Exposes --v0-treeview-depth CSS custom property on each item for consumer-driven indentation. Cue self-hides on leaf nodes via hasContent signal from Content. Indicator follows existing CheckboxIndicator pattern with data-state visibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…gister Ticket select/unselect/toggle were pointing to createGroup's non-cascade versions. Override them after group.register() so TreeviewCheckbox clicks propagate to descendants and update ancestor mixed states.
Settings panel demonstrates activation, functional toggles/selects, disabled categories, depth indentation via CSS variable, and recursive rendering. Removes file-explorer and selection live examples.
…rops Also fix generate-api.ts to extract @example tags in the ts-morph fallback path used by components with external types files.
|
commit: |
Create reusable useRovingFocus composable for roving tabindex pattern with linear and grid navigation modes. Wire into Treeview for full WAI-ARIA tree keyboard nav: arrows, Home/End, Enter, Space, *. - useRovingFocus: manages focusedId, isTabbable, step with disabled skip, optional circular nav, orientation + grid (columns) support - createNested: add el to NestedTicket, add visibleItems() for depth-first traversal of open nodes - TreeviewList: creates roving focus, handles all tree keyboard mappings including ArrowRight/Left for expand/collapse/parent - TreeviewItem: captures el ref, consumes roving for tabindex - TreeviewActivator/Checkbox: remove independent tabindex (now -1), keyboard handling moved to tree container level
Add renderless Treeview.Checkbox with cascade selection to the basic example. Demonstrates keyboard Space to toggle selection alongside arrow key navigation and Enter to expand/collapse.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
createNestedcomposable@examplesnippets for all propsgenerate-api.tsto extract props and examples from externaltypes.tsfiles via ts-morph fallbackSub-components
Treeview.RootTreeview.Listrole="tree"andaria-multiselectableTreeview.ItemTreeview.ActivatorTreeview.ContentTreeview.CueTreeview.CheckboxTreeview.IndicatorTreeview.Grouprole="group"wrapperTreeview.SelectAllTest plan
/components/disclosure/treeview