"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 "./dialog"; import { MagnifyingGlassIcon, CheckIcon } from "@phosphor-icons/react"; import { ScrollFade } from "../primitives"; const commandWindowFrameClassName = "floating-popup-surface overflow-hidden rounded-3xl border popup-text-xs-plus text-[color:var(--popover-foreground)]"; const CommandWindowFrame = React.forwardRef>( ({ className, ...props }, ref) => { return (
); }, ); CommandWindowFrame.displayName = "CommandWindowFrame"; function Command({ className, ...props }: React.ComponentProps) { return ( ); } function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = false, ...props }: Omit, "children"> & { title?: string; description?: string; className?: string; showCloseButton?: boolean; children: React.ReactNode; }) { return ( {title} {description} {children} ); } const CommandInput = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { leadingVisual?: React.ReactNode; } >(({ className, leadingVisual, ...props }, ref) => { return ( ); }); CommandInput.displayName = CommandPrimitive.Input.displayName; const CommandTextInput = React.forwardRef< HTMLInputElement, React.ComponentPropsWithoutRef<"input"> & { leadingVisual?: React.ReactNode; typography?: "default" | "popup"; } >(({ className, leadingVisual, typography = "popup", ...props }, ref) => { return ( ); }); CommandTextInput.displayName = "CommandTextInput"; function CommandList({ className, scrollFade = false, scrollFadeClassName, scrollFadeContainerClassName, scrollFadeWatch = [], ...props }: React.ComponentProps & { scrollFade?: boolean; scrollFadeClassName?: string; scrollFadeContainerClassName?: string; scrollFadeWatch?: readonly unknown[]; }) { const commandList = ( ); if (!scrollFade) { return commandList; } return ( {commandList} ); } function CommandEmpty({ className, ...props }: React.ComponentProps) { return ( ); } function CommandGroup({ className, ...props }: React.ComponentProps) { return ( ); } function CommandSeparator({ className, ...props }: React.ComponentProps) { return ( ); } function CommandItem({ active = false, className, children, tintIconsOnSelect = true, ...props }: React.ComponentProps & { active?: boolean; tintIconsOnSelect?: boolean; }) { return ( {children} ); } function CommandShortcut({ className, ...props }: React.ComponentProps<"span">) { return ( ); } export { Command, CommandDialog, CommandInput, CommandTextInput, CommandList, CommandWindowFrame, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };