"use client" import * as React from "react" import { cn } from "cn" import { Button as ButtonPrimitive, composeRenderProps, Header as HeaderPrimitive, ListBoxItem as ListBoxItemPrimitive, ListBox as ListBoxPrimitive, ListBoxSection as ListBoxSectionPrimitive, Popover as PopoverPrimitive, SearchField, Select as SelectPrimitive, SelectValue as SelectValuePrimitive, Separator as SeparatorPrimitive, type ListBoxProps, type SearchFieldProps, type ListBoxSectionProps as SelectGroupProps, type SelectProps, type SelectValueProps, } from "react-aria-components" import { InputGroup, InputGroupAddon, InputGroupInput, } from "@/registry/bases/aria/ui/input-group" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" function Select({ className, ...props }: SelectProps) { return ( ) } function SelectGroup({ className, ...props }: SelectGroupProps) { return ( ) } function SelectValue({ className, children, ...props }: SelectValueProps) { return ( {typeof children === "function" ? children : ({ selectedItems, selectedText, defaultChildren }) => selectedItems.length > 1 ? selectedText : defaultChildren} ) } function SelectTrigger({ className, size = "default", children, ...props }: Omit, "children"> & { children?: React.ReactNode size?: "sm" | "default" }) { return ( {children} ) } function SelectContent({ className, children, placement = "bottom", offset = 4, crossOffset = 0, ...props }: Omit< React.ComponentProps, "className" | "children" > & { className?: string children?: React.ReactNode }) { return ( {children} ) } function SelectPopover({ className, children, placement = "bottom start", offset = 4, crossOffset = 0, ...props }: Omit< React.ComponentProps, "className" | "children" > & { className?: string children?: React.ReactNode }) { return ( {children} ) } function SelectList({ className, ...props }: ListBoxProps) { return ( ) } function SelectInput({ className, ...props }: SearchFieldProps) { return ( ) } function SelectLabel({ className, ...props }: React.ComponentProps) { return ( ) } function SelectItem({ className, children, ...props }: React.ComponentProps) { return ( {composeRenderProps(children, (children, { isSelected }) => ( <> {children} {isSelected ? ( ) : null} ))} ) } function SelectSeparator({ className, ...props }: React.ComponentProps) { return ( ) } function SelectEmpty({ className, ...props }: React.ComponentProps<"div">) { return (
) } export { Select, SelectContent, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectList, SelectPopover, SelectSeparator, SelectTrigger, SelectValue, SelectEmpty, }