'use client'; import { ListBox as AriaListBox, ListBoxItem as AriaListBoxItem, ListBoxSection as AriaListBoxSection, ListBoxLoadMoreItem as AriaListBoxLoadMoreItem, Header, type ListBoxItemProps, type ListBoxLoadMoreItemProps, type ListBoxProps, type ListBoxSectionProps } from 'react-aria-components/ListBox'; import {composeRenderProps} from 'react-aria-components/composeRenderProps'; import {Check} from 'lucide-react'; import {Text} from './Content'; import {ProgressCircle} from './ProgressCircle'; import './ListBox.css'; export function ListBox({children, ...props}: ListBoxProps) { return {children}; } export function ListBoxItem(props: ListBoxItemProps) { let textValue = props.textValue || (typeof props.children === 'string' ? props.children : undefined); return ( {composeRenderProps(props.children, children => typeof children === 'string' ? {children} : children )} ); } export function ListBoxSection(props: ListBoxSectionProps) { return ; } export function ListBoxLoadMoreItem(props: ListBoxLoadMoreItemProps) { return ( ); } export function DropdownListBox(props: ListBoxProps) { return ; } export function DropdownItem(props: ListBoxItemProps) { let textValue = props.textValue || (typeof props.children === 'string' ? props.children : undefined); return ( {composeRenderProps(props.children, (children, {isSelected}) => ( <> {isSelected && } {typeof children === 'string' ? {children} : children} ))} ); } export {Text, Header};