@@ -17,23 +17,22 @@ import {
17
17
TreeItemProps as RACTreeItemProps ,
18
18
TreeProps as RACTreeProps ,
19
19
TreeItemRenderProps ,
20
- TreeRenderProps ,
21
20
UNSTABLE_Tree ,
22
21
UNSTABLE_TreeItem ,
23
22
UNSTABLE_TreeItemContent ,
24
23
useContextProps
25
24
} from 'react-aria-components' ;
26
25
import { Checkbox , IconContext , Text , TextContext } from '@react-spectrum/s2' ;
27
26
import Chevron from '../ui-icons/Chevron' ;
27
+ import { colorMix , lightDark , style } from '../style' with { type : 'macro' } ;
28
28
import { DOMRef , Key } from '@react-types/shared' ;
29
- import { colorMix , focusRing , lightDark , style } from '../style' with { type : 'macro' } ;
30
29
import { isAndroid } from '@react-aria/utils' ;
30
+ import { raw } from '../style/style-macro' ;
31
31
import React , { createContext , forwardRef , isValidElement , JSXElementConstructor , ReactElement , useContext , useRef } from 'react' ;
32
32
import { StylesPropWithHeight , UnsafeStyles } from './style-utils' ;
33
33
import { useButton } from '@react-aria/button' ;
34
34
import { useDOMRef } from '@react-spectrum/utils' ;
35
35
import { useLocale } from '@react-aria/i18n' ;
36
- import { raw } from '../style/style-macro' ;
37
36
38
37
interface S2TreeProps {
39
38
isDetached ?: boolean ,
@@ -231,7 +230,7 @@ export const TreeViewItem = <T extends object>(props: TreeViewItemProps<T>) => {
231
230
let content ;
232
231
let nestedRows ;
233
232
let { renderer} = useTreeRendererContext ( ) ;
234
- let { isDetached} = useContext ( InternalTreeContext ) ;
233
+ // let {isDetached} = useContext(InternalTreeContext);
235
234
// TODO alternative api is that we have a separate prop for the TreeItems contents and expect the child to then be
236
235
// a nested tree item
237
236
@@ -266,7 +265,7 @@ export const TreeViewItem = <T extends object>(props: TreeViewItemProps<T>) => {
266
265
isLink : ! ! href
267
266
} ) + ( renderProps . isFocusVisible && ' ' + raw ( '&:before { content: ""; display: inline-block; position: sticky; inset-inline-start: 0; width: 3px; height: 100%; margin-inline-end: -3px; margin-block-end: 1px; z-index: 3; background-color: var(--rowFocusIndicatorColor)' ) ) } >
268
267
< UNSTABLE_TreeItemContent >
269
- { ( { isExpanded, hasChildRows, selectionMode, selectionBehavior, isDisabled, isSelected , isFocusVisible } ) => (
268
+ { ( { isExpanded, hasChildRows, selectionMode, selectionBehavior, isDisabled} ) => (
270
269
< div className = { treeCellGrid ( { isDisabled} ) } >
271
270
{ selectionMode !== 'none' && selectionBehavior === 'toggle' && (
272
271
// TODO: add transition?
0 commit comments