{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "combobox",
  "title": "Combobox",
  "description": "The list unfolds from the field, rows cascade in and one highlight glides between options.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.2",
    "@ui-sdk/react@0.1.0-beta.2"
  ],
  "registryDependencies": [
    "@keyframery/motion"
  ],
  "files": [
    {
      "path": "registry/components/keyframery/primitives/combobox.tsx",
      "content": "\"use client\"\n\n/* Animated drop-in for `@ui-sdk/react/combobox`: same parts, same props. Swap the import and keep your code.\n   This file adds motion only. Colours, radii, shadows and spacing stay yours.\n\n   - Content: Unfold from the field (scale 0.86, 6px blur, 8px toward the field, spring in, quick out).\n   - Items: Cascade in one after another as the list opens.\n   - List: Glide, one highlight that springs from row to row (CSS anchor positioning).\n   - Clear button and chips: pop in. Trigger, clear and chip remove: Press. */\n\nimport {\n  ComboboxChip as ComboboxChipPart,\n  ComboboxChipRemove as ComboboxChipRemovePart,\n  ComboboxClear as ComboboxClearPart,\n  ComboboxContent as ComboboxContentPart,\n  ComboboxCreate as ComboboxCreatePart,\n  ComboboxItem as ComboboxItemPart,\n  ComboboxList as ComboboxListPart,\n  ComboboxSelectAll as ComboboxSelectAllPart,\n  ComboboxTrigger as ComboboxTriggerPart,\n} from \"@ui-sdk/react/combobox\"\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport * from \"@ui-sdk/react/combobox\"\n\nconst press =\n  \"transition-[scale,color,background-color,opacity] duration-[calc(200ms*var(--kf-speed,1))] ease-pop active:scale-[0.9] motion-reduce:transition-none!\"\n\n/* Rows that cascade while the content they sit in has its starting style, and that anchor the\n   gliding highlight while highlighted. Only opacity, translate and filter carry the delay. */\nconst row = cn(\n  \"transition-[opacity,translate,filter] duration-[calc(420ms*var(--kf-speed,1))] ease-spring [transition-delay:calc((min(sibling-index(),10)-1)*calc(32ms*var(--kf-speed,1)))]\",\n  \"group-data-starting-style/kf-content:translate-y-2 group-data-starting-style/kf-content:opacity-0 group-data-starting-style/kf-content:blur-[4px]\",\n  \"group-data-ending-style/kf-content:[transition-delay:0ms]\",\n  \"group-data-starting-style/kf-content:transition-none\",\n  \"data-highlighted:[anchor-name:--kf-hl]\",\n  \"motion-reduce:transition-none!\",\n)\n\nfunction ComboboxContent({ className, ...props }: React.ComponentProps<typeof ComboboxContentPart>) {\n  return (\n    <ComboboxContentPart\n      className={cn(\n        \"group/kf-content origin-(--transform-origin) transition-[opacity,scale,translate,filter] duration-[calc(380ms*var(--kf-speed,1))] ease-spring\",\n        \"data-starting-style:scale-[0.86] data-starting-style:opacity-0 data-starting-style:blur-[6px]\",\n        \"data-[side=bottom]:data-starting-style:-translate-y-2 data-[side=top]:data-starting-style:translate-y-2\",\n        \"data-[side=left]:data-starting-style:translate-x-2 data-[side=right]:data-starting-style:-translate-x-2\",\n        \"data-ending-style:scale-[0.96] data-ending-style:opacity-0 data-ending-style:blur-[2px] data-ending-style:duration-[calc(150ms*var(--kf-speed,1))] data-ending-style:ease-house\",\n        \"motion-reduce:transition-none!\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/* The list carries the highlight: a `::before` that follows whichever row is highlighted. Its\n   neutral surface follows the text colour; give `before:bg-…` in className to change it. */\nfunction ComboboxList({ className, ...props }: React.ComponentProps<typeof ComboboxListPart>) {\n  return (\n    <ComboboxListPart\n      className={cn(\n        \"relative isolate [anchor-scope:--kf-hl]\",\n        \"before:pointer-events-none before:absolute before:-z-10 before:bg-[color-mix(in_oklch,currentColor_9%,transparent)] before:opacity-0\",\n        \"before:[position-anchor:--kf-hl] before:top-[anchor(top)] before:right-[anchor(right)] before:bottom-[anchor(bottom)] before:left-[anchor(left)]\",\n        \"before:transition-[top,right,bottom,left,opacity] before:duration-[calc(260ms*var(--kf-speed,1))] before:ease-spring\",\n        \"has-[[data-highlighted]]:before:opacity-100\",\n        \"motion-reduce:before:transition-none!\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxItem<T = string>({ className, ...props }: React.ComponentProps<typeof ComboboxItemPart<T>>) {\n  return <ComboboxItemPart<T> className={cn(row, className)} {...props} />\n}\n\nfunction ComboboxCreate({ className, ...props }: React.ComponentProps<typeof ComboboxCreatePart>) {\n  return <ComboboxCreatePart className={cn(row, className)} {...props} />\n}\n\nfunction ComboboxSelectAll({ className, ...props }: React.ComponentProps<typeof ComboboxSelectAllPart>) {\n  return <ComboboxSelectAllPart className={cn(row, className)} {...props} />\n}\n\nfunction ComboboxTrigger({ className, ...props }: React.ComponentProps<typeof ComboboxTriggerPart>) {\n  return (\n    <ComboboxTriggerPart\n      className={cn(\n        press,\n        \"[&_svg]:transition-[rotate] [&_svg]:duration-[calc(420ms*var(--kf-speed,1))] [&_svg]:ease-spring data-open:[&_svg]:rotate-180 motion-reduce:[&_svg]:transition-none\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/* Only in the page while there is text, so it pops in from its starting style. */\nfunction ComboboxClear({ className, ...props }: React.ComponentProps<typeof ComboboxClearPart>) {\n  return (\n    <ComboboxClearPart\n      className={cn(press, \"duration-[calc(360ms*var(--kf-speed,1))] starting:scale-50 starting:opacity-0\", className)}\n      {...props}\n    />\n  )\n}\n\n/* A chip pops in when its value is added. */\nfunction ComboboxChip<T = string>({ className, ...props }: React.ComponentProps<typeof ComboboxChipPart<T>>) {\n  return (\n    <ComboboxChipPart<T>\n      className={cn(\n        \"transition-[scale,opacity] duration-[calc(380ms*var(--kf-speed,1))] ease-pop starting:scale-50 starting:opacity-0 motion-reduce:transition-none!\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxChipRemove({ className, ...props }: React.ComponentProps<typeof ComboboxChipRemovePart>) {\n  return <ComboboxChipRemovePart className={cn(press, className)} {...props} />\n}\n\nexport {\n  ComboboxChip,\n  ComboboxChipRemove,\n  ComboboxClear,\n  ComboboxContent,\n  ComboboxCreate,\n  ComboboxItem,\n  ComboboxList,\n  ComboboxSelectAll,\n  ComboboxTrigger,\n}\n",
      "type": "registry:component",
      "target": "components/keyframery/primitives/combobox.tsx"
    },
    {
      "path": "registry/components/keyframery/combobox.tsx",
      "content": "\"use client\"\n\n/* Styled combobox: the animated primitive plus the Keyframery look. */\n\nimport {\n  Combobox as ComboboxRoot,\n  ComboboxArrow as ComboboxArrowPart,\n  ComboboxChip as ComboboxChipPart,\n  ComboboxChipRemove as ComboboxChipRemovePart,\n  ComboboxChips as ComboboxChipsPart,\n  ComboboxChipsOverflow as ComboboxChipsOverflowPart,\n  ComboboxClear as ComboboxClearPart,\n  ComboboxContent as ComboboxContentPart,\n  ComboboxCreate as ComboboxCreatePart,\n  ComboboxEmpty as ComboboxEmptyPart,\n  ComboboxGroup as ComboboxGroupPart,\n  ComboboxGroupLabel as ComboboxGroupLabelPart,\n  ComboboxInput as ComboboxInputPart,\n  ComboboxItem as ComboboxItemPart,\n  ComboboxItemIcon as ComboboxItemIconPart,\n  ComboboxItemIndicator as ComboboxItemIndicatorPart,\n  ComboboxItemText as ComboboxItemTextPart,\n  ComboboxLabel as ComboboxLabelPart,\n  type ComboboxProps,\n  ComboboxList as ComboboxListPart,\n  ComboboxSelectAll as ComboboxSelectAllPart,\n  ComboboxSeparator as ComboboxSeparatorPart,\n  ComboboxStatus as ComboboxStatusPart,\n  ComboboxTrigger as ComboboxTriggerPart,\n  ComboboxValue as ComboboxValuePart,\n  ComboboxValueIcon as ComboboxValueIconPart,\n  createComboboxController,\n  type ListData,\n} from \"@/components/keyframery/primitives/combobox\"\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/* A row in the list. Shared by items, the select-all row and the create row. */\nconst row =\n  \"group/item relative flex min-h-8 cursor-default items-center gap-2 rounded-[8px] px-2.5 py-1.5 text-[13px] leading-[1.3] outline-none select-none data-highlighted:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-40\"\n\nconst key =\n  \"bg-background shadow-[0_0_0_1px_rgb(0_0_0/0.06),0_1px_1px_rgb(0_0_0/0.05),0_3px_6px_-2px_rgb(0_0_0/0.1)] dark:bg-accent dark:shadow-[0_0_0_1px_rgb(255_255_255/0.07),inset_0_1px_0_rgb(255_255_255/0.08),0_2px_6px_-1px_rgb(0_0_0/0.6)]\"\n\nfunction ChevronIcon() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d=\"m4 6 4 4 4-4\" />\n    </svg>\n  )\n}\n\nfunction XIcon() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d=\"m4.5 4.5 7 7m0-7-7 7\" />\n    </svg>\n  )\n}\n\nfunction CheckIcon() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d=\"m3.5 8.5 3 3 6-7\" pathLength={1} />\n    </svg>\n  )\n}\n\nfunction Combobox<T = string, Multiple extends boolean | undefined = false>(\n  props: ComboboxProps<T, Multiple>,\n) {\n  return <ComboboxRoot<T, Multiple> {...props} />\n}\n\nfunction ComboboxLabel({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxLabelPart>) {\n  return (\n    <ComboboxLabelPart\n      className={cn(\n        \"text-[13px] leading-none font-medium text-foreground data-disabled:opacity-50\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/* The row that holds the input (or the chips) with the clear button and the trigger laid over\n   its right edge. A leading svg sits over its left edge. */\nfunction ComboboxControl({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"combobox-control\"\n      className={cn(\n        \"group/control relative flex w-full items-center\",\n        \"[&>svg]:pointer-events-none [&>svg]:absolute [&>svg]:top-2.5 [&>svg]:left-3 [&>svg]:size-4 [&>svg]:text-muted-foreground\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxInput({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxInputPart>) {\n  return (\n    <ComboboxInputPart\n      className={cn(\n        \"h-9 w-full min-w-0 rounded-[10px] bg-background px-3 text-[13px] text-foreground outline-none placeholder:text-muted-foreground\",\n        \"shadow-[0_0_0_1px_rgb(0_0_0/0.09),0_1px_2px_rgb(0_0_0/0.05)] dark:shadow-[0_0_0_1px_rgb(255_255_255/0.1)]\",\n        \"transition-shadow duration-[calc(150ms*var(--kf-speed,1))] motion-reduce:transition-none!\",\n        \"hover:shadow-[0_0_0_1px_rgb(0_0_0/0.16),0_1px_2px_rgb(0_0_0/0.05)] dark:hover:shadow-[0_0_0_1px_rgb(255_255_255/0.16)]\",\n        \"focus-visible:shadow-[0_0_0_1px_var(--ring)] focus-visible:ring-[3px] focus-visible:ring-ring/25 dark:focus-visible:shadow-[0_0_0_1px_var(--ring)]\",\n        \"aria-invalid:shadow-[0_0_0_1px_var(--destructive)] aria-invalid:focus-visible:ring-destructive/25 dark:aria-invalid:shadow-[0_0_0_1px_var(--destructive)]\",\n        \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n        /* Room for what the control lays over it. */\n        \"group-has-[>svg]/control:pl-9\",\n        \"group-has-[[data-slot=combobox-trigger]]/control:pr-9 group-has-[[data-slot=combobox-clear]]/control:pr-9\",\n        \"group-has-[[data-slot=combobox-trigger]]/control:group-has-[[data-slot=combobox-clear]]/control:pr-16\",\n        /* Inside chips, the chips are the field and the input is bare text. */\n        \"in-data-[slot=combobox-chips]:h-7 in-data-[slot=combobox-chips]:w-auto in-data-[slot=combobox-chips]:min-w-20 in-data-[slot=combobox-chips]:flex-1 in-data-[slot=combobox-chips]:rounded-none in-data-[slot=combobox-chips]:bg-transparent in-data-[slot=combobox-chips]:px-1.5 in-data-[slot=combobox-chips]:shadow-none! in-data-[slot=combobox-chips]:ring-0! in-data-[slot=combobox-chips]:pr-1.5!\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nconst controlButton =\n  \"absolute top-1 grid size-7 cursor-pointer place-items-center rounded-[7px] text-muted-foreground outline-none hover:bg-foreground/[0.06] hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-40 [&_svg]:size-4\"\n\nfunction ComboboxTrigger({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof ComboboxTriggerPart>) {\n  return (\n    <ComboboxTriggerPart\n      className={cn(\n        controlButton,\n        \"right-1\",\n        className,\n      )}\n      {...props}\n    >\n      {children ?? <ChevronIcon />}\n    </ComboboxTriggerPart>\n  )\n}\n\nfunction ComboboxClear({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof ComboboxClearPart>) {\n  return (\n    <ComboboxClearPart\n      className={cn(\n        controlButton,\n        \"right-1 group-has-[[data-slot=combobox-trigger]]/control:right-8 [&_svg]:size-3.5\",\n        className,\n      )}\n      {...props}\n    >\n      {children ?? <XIcon />}\n    </ComboboxClearPart>\n  )\n}\n\nfunction ComboboxContent({\n  className,\n  children,\n  sideOffset = 6,\n  ...props\n}: React.ComponentProps<typeof ComboboxContentPart>) {\n  return (\n    <ComboboxContentPart\n      sideOffset={sideOffset}\n      className={cn(\n        \"group/content flex w-(--anchor-width) min-w-[200px] flex-col rounded-[14px] bg-popover text-popover-foreground outline-none\",\n        \"[--list-height:var(--available-height)]\",\n        \"shadow-[0_0_0_1px_rgb(0_0_0/0.06),0_2px_6px_-2px_rgb(0_0_0/0.08),0_12px_32px_-8px_rgb(0_0_0/0.18)]\",\n        \"dark:shadow-[0_0_0_1px_rgb(255_255_255/0.08),0_12px_32px_-8px_rgb(0_0_0/0.7)]\",\n        className,\n      )}\n      {...props}\n    >\n      {children ?? <ComboboxList />}\n    </ComboboxContentPart>\n  )\n}\n\nfunction ComboboxArrow({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxArrowPart>) {\n  return (\n    <ComboboxArrowPart\n      className={cn(\"size-2.5 rotate-45 rounded-[2px] bg-popover\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxList({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof ComboboxListPart>) {\n  return (\n    <ComboboxListPart\n      className={cn(\n        \"max-h-[min(calc(var(--list-height,100vh)-8px),18rem)] scroll-py-1.5 overflow-y-auto overscroll-contain rounded-[14px] p-1.5 outline-none\",\n        \"group-has-[[data-slot=combobox-empty][data-empty]]/content:hidden\",\n        /* The gliding highlight, in the row's shape and colour. */\n        \"before:rounded-[8px] before:bg-accent\",\n        className,\n      )}\n      {...props}\n    >\n      {children ?? ((state) => <ComboboxItems items={state.items} />)}\n    </ComboboxListPart>\n  )\n}\n\nfunction ComboboxItem<T = string>({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxItemPart<T>>) {\n  return <ComboboxItemPart<T> className={cn(row, className)} {...props} />\n}\n\n/* The matched part of the label reads stronger, the rest steps back. */\nfunction ComboboxItemText({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxItemTextPart>) {\n  return (\n    <ComboboxItemTextPart\n      className={cn(\n        \"min-w-0 flex-1 truncate data-matched:text-muted-foreground [&_mark]:bg-transparent [&_mark]:font-medium [&_mark]:text-foreground\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/* The check. It stays mounted, so it draws itself when its item is selected and when the\n   list opens on a selected item. */\nfunction ComboboxItemIndicator({\n  className,\n  children,\n  keepMounted = true,\n  ...props\n}: React.ComponentProps<typeof ComboboxItemIndicatorPart>) {\n  return (\n    <ComboboxItemIndicatorPart\n      keepMounted={keepMounted}\n      className={cn(\n        \"ml-auto grid size-4 shrink-0 place-items-center text-foreground [&_svg]:size-4\",\n        \"[&_path]:transition-[stroke-dashoffset] [&_path]:delay-[calc(100ms*var(--kf-speed,1))] [&_path]:duration-[calc(260ms*var(--kf-speed,1))] [&_path]:ease-house [&_path]:[stroke-dasharray:1_2] [&_path]:[stroke-dashoffset:1.2]\",\n        \"data-selected:[&_path]:[stroke-dashoffset:0] group-data-starting-style/content:[&_path]:[stroke-dashoffset:1.2]!\",\n        \"motion-reduce:[&_path]:transition-none\",\n        className,\n      )}\n      {...props}\n    >\n      {children ?? <CheckIcon />}\n    </ComboboxItemIndicatorPart>\n  )\n}\n\nfunction ComboboxItemIcon({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxItemIconPart>) {\n  return (\n    <ComboboxItemIconPart\n      className={cn(\n        \"grid size-4 shrink-0 place-items-center text-muted-foreground group-data-highlighted/item:text-foreground data-mirror:rtl:-scale-x-100 [&_svg]:size-4\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxValueIcon({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxValueIconPart>) {\n  return (\n    <ComboboxValueIconPart\n      className={cn(\n        \"pointer-events-none absolute top-2.5 left-3 grid size-4 place-items-center text-muted-foreground [&_svg]:size-4\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxGroup({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxGroupPart>) {\n  return <ComboboxGroupPart className={cn(\"flex flex-col\", className)} {...props} />\n}\n\nfunction ComboboxGroupLabel({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxGroupLabelPart>) {\n  return (\n    <ComboboxGroupLabelPart\n      className={cn(\n        \"px-2.5 pt-2 pb-1.5 text-[11px] leading-none font-medium text-muted-foreground select-none\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxSeparator({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxSeparatorPart>) {\n  return (\n    <ComboboxSeparatorPart\n      className={cn(\"-mx-1.5 my-1.5 h-px bg-border\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxEmpty({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxEmptyPart>) {\n  return (\n    <ComboboxEmptyPart\n      className={cn(\n        \"hidden px-3 py-6 text-center text-[13px] text-muted-foreground data-empty:block data-loading:block\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxStatus({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxStatusPart>) {\n  return (\n    <ComboboxStatusPart\n      className={cn(\n        \"px-4 pt-3 pb-1 text-[12px] text-muted-foreground empty:hidden\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxCreate({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxCreatePart>) {\n  return (\n    <ComboboxCreatePart\n      className={cn(row, \"font-medium data-pending:opacity-60\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxSelectAll({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxSelectAllPart>) {\n  return (\n    <ComboboxSelectAllPart\n      className={cn(row, \"font-medium data-unchecked:font-normal\", className)}\n      {...props}\n    />\n  )\n}\n\n/* Renders no element of its own: its children function receives the selected values. */\nfunction ComboboxValue(props: React.ComponentProps<typeof ComboboxValuePart>) {\n  return <ComboboxValuePart {...props} />\n}\n\n/* With `multiple`, the chips and the input share one field. */\nfunction ComboboxChips({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxChipsPart>) {\n  return (\n    <ComboboxChipsPart\n      className={cn(\n        \"flex min-h-9 w-full min-w-0 flex-wrap items-center gap-1 rounded-[10px] bg-background p-1 text-[13px]\",\n        \"shadow-[0_0_0_1px_rgb(0_0_0/0.09),0_1px_2px_rgb(0_0_0/0.05)] dark:shadow-[0_0_0_1px_rgb(255_255_255/0.1)]\",\n        \"transition-shadow duration-[calc(150ms*var(--kf-speed,1))] motion-reduce:transition-none!\",\n        \"hover:shadow-[0_0_0_1px_rgb(0_0_0/0.16),0_1px_2px_rgb(0_0_0/0.05)] dark:hover:shadow-[0_0_0_1px_rgb(255_255_255/0.16)]\",\n        \"has-[input:focus-visible]:shadow-[0_0_0_1px_var(--ring)] has-[input:focus-visible]:ring-[3px] has-[input:focus-visible]:ring-ring/25 dark:has-[input:focus-visible]:shadow-[0_0_0_1px_var(--ring)]\",\n        \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n        \"group-has-[[data-slot=combobox-trigger]]/control:pr-9\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/* A chip is a small key. It scales in when its value is added. */\nfunction ComboboxChip<T = string>({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxChipPart<T>>) {\n  return (\n    <ComboboxChipPart<T>\n      className={cn(\n        \"inline-flex h-7 max-w-full items-center gap-1 rounded-[7px] pr-1 pl-2 text-[12px] leading-none font-medium whitespace-nowrap outline-none\",\n        key,\n        \"focus-visible:ring-2 focus-visible:ring-ring\",\n        \"data-disabled:opacity-60\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction ComboboxChipRemove({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof ComboboxChipRemovePart>) {\n  return (\n    <ComboboxChipRemovePart\n      className={cn(\n        \"grid size-[18px] cursor-pointer place-items-center rounded-[5px] text-muted-foreground outline-none hover:bg-foreground/[0.08] hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-40 [&_svg]:size-3\",\n        className,\n      )}\n      {...props}\n    >\n      {children ?? <XIcon />}\n    </ComboboxChipRemovePart>\n  )\n}\n\nfunction ComboboxChipsOverflow({\n  className,\n  ...props\n}: React.ComponentProps<typeof ComboboxChipsOverflowPart>) {\n  return (\n    <ComboboxChipsOverflowPart\n      className={cn(\n        \"px-1.5 text-[12px] leading-none whitespace-nowrap text-muted-foreground tabular-nums\",\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\n/* Renders items passed as data with the styled parts above. */\nfunction ComboboxItems({ items }: { items?: ListData<unknown> }) {\n  return (items ?? []).map((entry, index) => {\n    if (typeof entry === \"string\") {\n      return (\n        <ComboboxItem key={entry} value={entry}>\n          <ComboboxItemText>{entry}</ComboboxItemText>\n          <ComboboxItemIndicator />\n        </ComboboxItem>\n      )\n    }\n    if (\"type\" in entry && entry.type === \"separator\") {\n      return <ComboboxSeparator key={`separator-${index}`} />\n    }\n    if (\"type\" in entry && entry.type === \"group\") {\n      return (\n        <ComboboxGroup key={`group-${entry.label ?? index}`}>\n          {entry.label && <ComboboxGroupLabel>{entry.label}</ComboboxGroupLabel>}\n          <ComboboxItems items={entry.items} />\n        </ComboboxGroup>\n      )\n    }\n    const { value, label, disabled, keywords } = entry\n    return (\n      <ComboboxItem<unknown>\n        key={typeof value === \"string\" ? value : index}\n        value={value}\n        label={label}\n        disabled={disabled}\n        keywords={keywords}\n      >\n        <ComboboxItemText>{label}</ComboboxItemText>\n        <ComboboxItemIndicator />\n      </ComboboxItem>\n    )\n  })\n}\n\nexport {\n  Combobox,\n  ComboboxArrow,\n  ComboboxChip,\n  ComboboxChipRemove,\n  ComboboxChips,\n  ComboboxChipsOverflow,\n  ComboboxClear,\n  ComboboxContent,\n  ComboboxControl,\n  ComboboxCreate,\n  ComboboxEmpty,\n  ComboboxGroup,\n  ComboboxGroupLabel,\n  ComboboxInput,\n  ComboboxItem,\n  ComboboxItemIcon,\n  ComboboxItemIndicator,\n  ComboboxItems,\n  ComboboxItemText,\n  ComboboxLabel,\n  ComboboxList,\n  ComboboxSelectAll,\n  ComboboxSeparator,\n  ComboboxStatus,\n  ComboboxTrigger,\n  ComboboxValue,\n  ComboboxValueIcon,\n  createComboboxController,\n}\n",
      "type": "registry:component",
      "target": "components/keyframery/combobox.tsx"
    }
  ],
  "type": "registry:component"
}