'use client'; import { Button, Tree as AriaTree, TreeItem as AriaTreeItem, TreeItemContent as AriaTreeItemContent, type TreeItemContentProps, type TreeItemContentRenderProps, type TreeItemProps as AriaTreeItemProps, type TreeProps, TreeLoadMoreItem as AriaTreeLoadMoreItem, type TreeLoadMoreItemProps, TreeSection as AriaTreeSection, TreeHeader as AriaTreeHeader } from 'react-aria-components/Tree'; import {ChevronRight, GripVertical} from 'lucide-react'; import {Checkbox} from './Checkbox'; import {ProgressCircle} from './ProgressCircle'; import './Tree.css'; export function Tree(props: TreeProps) { return ; } export function TreeItemContent( props: Omit & {children?: React.ReactNode} ) { return ( {({selectionBehavior, selectionMode, allowsDragging}: TreeItemContentRenderProps) => ( <> {allowsDragging && ( )} {selectionBehavior === 'toggle' && selectionMode !== 'none' && ( )} {props.children} )} ); } export interface TreeItemProps extends Partial { title?: React.ReactNode; } export function TreeItem(props: TreeItemProps) { let textValue = typeof props.title === 'string' ? props.title : ''; return ( {props.title != null ? ( <> {props.title} {props.children} ) : ( props.children )} ); } export function TreeLoadMoreItem(props: TreeLoadMoreItemProps) { return ( ); } export function TreeSection(props: React.ComponentProps) { return ; } export function TreeHeader(props: React.ComponentProps) { return ; }