{
  "name": "cai-ui-sdk-combobox",
  "type": "registry:ui",
  "description": "Canadian AI combobox with UI SDK filtering, selection, focus and keyboard handling",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.1",
    "@ui-sdk/react@0.1.0-beta.1"
  ],
  "files": [
    {
      "path": "components/ui/cai-ui-sdk-combobox.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n  Combobox as PrimitiveRoot,\n  ComboboxContent as PrimitiveContent,\n  ComboboxEmpty as PrimitiveEmpty,\n  ComboboxInput as PrimitiveInput,\n  ComboboxItem as PrimitiveItem,\n  ComboboxItemIndicator as PrimitiveIndicator,\n  ComboboxLabel as PrimitiveLabel,\n  ComboboxList as PrimitiveList,\n  ComboboxTrigger as PrimitiveTrigger,\n} from \"@ui-sdk/react/combobox\"\nimport { Check, ChevronsUpDown } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\n\n// The UI SDK owns interactions, selection, focus and ARIA.\n// Canadian AI owns the appearance. This does not replace the existing shadcn combobox.\nconst CaiCombobox = PrimitiveRoot\n\nfunction CaiComboboxLabel({ className, ...props }: React.ComponentProps<typeof PrimitiveLabel>) {\n  return <PrimitiveLabel data-slot=\"cai-combobox-label\" className={cn(\"text-foreground mb-1.5 block text-sm font-medium\", className)} {...props} />\n}\n\nfunction CaiComboboxInput({ className, ...props }: React.ComponentProps<typeof PrimitiveInput>) {\n  return <PrimitiveInput data-slot=\"cai-combobox-input\" className={cn(\"border-input bg-background text-foreground placeholder:text-muted-foreground focus-visible:ring-ring/50 h-10 w-full min-w-0 border px-3 text-sm outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50\", className)} {...props} />\n}\n\nfunction CaiComboboxTrigger({ className, children, ...props }: React.ComponentProps<typeof PrimitiveTrigger>) {\n  return <PrimitiveTrigger data-slot=\"cai-combobox-trigger\" className={cn(\"border-input bg-background text-foreground focus-visible:ring-ring/50 inline-flex size-10 shrink-0 items-center justify-center border outline-none focus-visible:ring-[3px] disabled:opacity-50\", className)} {...props}>{children ?? <ChevronsUpDown aria-hidden=\"true\" className=\"size-4\" />}</PrimitiveTrigger>\n}\n\nfunction CaiComboboxContent({ className, ...props }: React.ComponentProps<typeof PrimitiveContent>) {\n  return <PrimitiveContent data-slot=\"cai-combobox-content\" className={cn(\"border-border bg-popover text-popover-foreground z-50 w-[var(--ui-popup-anchor-width)] min-w-48 border p-1 shadow-md outline-none\", className)} {...props} />\n}\n\nfunction CaiComboboxList({ className, ...props }: React.ComponentProps<typeof PrimitiveList>) {\n  return <PrimitiveList data-slot=\"cai-combobox-list\" className={cn(\"max-h-72 overflow-auto p-1\", className)} {...props} />\n}\n\nfunction CaiComboboxItem({ className, ...props }: React.ComponentProps<typeof PrimitiveItem>) {\n  return <PrimitiveItem data-slot=\"cai-combobox-item\" className={cn(\"text-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50 flex min-h-9 cursor-default items-center justify-between gap-2 px-2 py-1.5 text-sm outline-none\", className)} {...props} />\n}\n\nfunction CaiComboboxItemIndicator({ children, ...props }: React.ComponentProps<typeof PrimitiveIndicator>) {\n  return <PrimitiveIndicator data-slot=\"cai-combobox-indicator\" {...props}>{children ?? <Check aria-hidden=\"true\" className=\"size-4\" />}</PrimitiveIndicator>\n}\n\nfunction CaiComboboxEmpty({ className, ...props }: React.ComponentProps<typeof PrimitiveEmpty>) {\n  return <PrimitiveEmpty data-slot=\"cai-combobox-empty\" className={cn(\"text-muted-foreground p-3 text-sm\", className)} {...props} />\n}\n\nexport { CaiCombobox, CaiComboboxLabel, CaiComboboxInput, CaiComboboxTrigger, CaiComboboxContent, CaiComboboxList, CaiComboboxItem, CaiComboboxItemIndicator, CaiComboboxEmpty }\n",
      "type": "registry:ui"
    }
  ]
}