"use client"; import * as React from "react"; import { Command as CommandPrimitive } from "cmdk"; import { cn } from "@/lib/utils"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { InputGroup, InputGroupAddon } from "@/components/ui/input-group"; import { SearchIcon, CheckIcon } from "lucide-react"; function Command({ className, ...props }: React.ComponentProps) { return ( ); } /** * `title` / `description` render a visually hidden header **inside** the popup, for command * dialogs whose own content carries no `DialogTitle`. Omit both when `children` already render * a `DialogTitle` — Base UI keeps a single `titleElementId` per dialog * (`store.useSyncedValueWithCleanup('titleElementId', id)`), so two mounted titles fight over * the popup's `aria-labelledby` and unmount order decides which one wins. * * The header must stay inside `DialogContent`. Rendered as a sibling of it (as shadcn upstream * does) it is NOT portalled: it lands inline in the page, and because `sr-only` is * `position: absolute` with no offsets and usually no positioned ancestor, its static position * can fall outside the viewport and grow the DOCUMENT's scroll area — a stray page-wide * scrollbar with no visible cause. See the `relative` note in RoundPageContainer. */ function CommandDialog({ title, description, children, className, showCloseButton = false, ...props }: Omit, "children"> & { title?: string; description?: string; className?: string; showCloseButton?: boolean; children: React.ReactNode; }) { return ( {(title || description) && ( {title && {title}} {description && {description}} )} {children} ); } function CommandInput({ className, ...props }: React.ComponentProps) { return (
); } function CommandList({ className, ...props }: React.ComponentProps) { return ( ); } function CommandEmpty({ className, ...props }: React.ComponentProps) { return ( ); } function CommandGroup({ className, ...props }: React.ComponentProps) { return ( ); } function CommandSeparator({ className, ...props }: React.ComponentProps) { return ( ); } function CommandItem({ className, children, ...props }: React.ComponentProps) { return ( {children} ); } function CommandShortcut({ className, ...props }: React.ComponentProps<"span">) { return ( ); } export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };