"use client"; import { Dialog as CommandDialogPrimitive } from "@base-ui/react/dialog"; import { SearchIcon } from "lucide-react"; import type * as React from "react"; import { cn } from "~/lib/utils"; import { Autocomplete, AutocompleteCollection, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompleteListHeading, AutocompleteListVirtualized, } from "~/components/ui/autocomplete"; import { DIALOG_BACKDROP_CLASS, DIALOG_POPUP_CLASS } from "~/components/ui/dialog-styles"; import { Button } from "~/components/ui/button"; const CommandDialog = CommandDialogPrimitive.Root; const CommandDialogPortal = CommandDialogPrimitive.Portal; function CommandDialogTrigger(props: CommandDialogPrimitive.Trigger.Props) { return ; } function CommandDialogBackdrop({ className, ...props }: CommandDialogPrimitive.Backdrop.Props) { return ( ); } function CommandDialogViewport({ className, ...props }: CommandDialogPrimitive.Viewport.Props) { return ( ); } function CommandDialogPopup({ className, children, onBackdropPointerDown, ...props }: CommandDialogPrimitive.Popup.Props & { onBackdropPointerDown?: React.PointerEventHandler; }) { return ( {children} ); } function Command({ autoHighlight = "always", keepHighlight = true, ...props }: React.ComponentProps) { return ( ); } function CommandInput({ className, placeholder, ...props }: React.ComponentProps) { return (
} {...props} />
); } function CommandList({ className, ...props }: React.ComponentProps) { return ( ); } // Pair with a LegendList child; the list owns scrolling and spacing. function CommandListVirtualized({ className, ...props }: React.ComponentProps) { return ( ); } function CommandListHeading({ className, ...props }: React.ComponentProps) { return ( ); } function CommandPanel({ className, ...props }: React.ComponentProps<"div">) { return (
); } function CommandGroup({ className, ...props }: React.ComponentProps) { return ; } function CommandGroupLabel({ className, ...props }: React.ComponentProps) { return ( ); } function CommandCollection({ ...props }: React.ComponentProps) { return ; } // Pass `active` when the palette tracks the highlighted row itself; the // primitive's hover and keyboard highlight are then ignored so the two never // disagree, and the row shows the active surface instead. function CommandItem({ className, active, ...props }: React.ComponentProps & { active?: boolean }) { return ( ); } function CommandShortcut({ className, ...props }: React.ComponentProps<"kbd">) { return ( ); } function CommandFooter({ className, ...props }: React.ComponentProps<"div">) { return (
); } function CommandFooterAction({ className, ...props }: Omit, "size" | "variant">) { return (