"use client"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@suphark/ui/components/ui/dialog"; import { InputGroup, InputGroupAddon } from "@suphark/ui/components/ui/input-group"; import { commandContainsFilter } from "@suphark/ui/lib/command-filter"; import { cn } from "@suphark/ui/lib/utils"; import { Command as CommandPrimitive } from "cmdk"; import { CheckIcon, SearchIcon } from "lucide-react"; import type * as React from "react"; // ตัวกรองเริ่มต้น = ต้องมีทุกคำ (แทน fuzzy ของ cmdk: "cotto" ขึ้น "Contractor") — แก้มือ 0.87.1 ตามที่ supplychain ใช้ function Command({ className, filter = commandContainsFilter, ...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} ); } 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 ( ); } // อ่านสถานะของ Command (เช่น คำที่พิมพ์) — แอปไม่ต้องติดตั้ง cmdk เอง (0.91.1) export { useCommandState } from "cmdk"; export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };