{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "popup-search",
  "title": "popupSearch",
  "description": "Shared classes for popup list rows and the search field above them, so menus, Select, Combobox, Autocomplete and Filters can't drift.",
  "files": [
    {
      "path": "registry/default/lib/popup-search.ts",
      "content": "// Shared classes for popup list rows and the search field above them, so\n// menus, Select, Combobox, Autocomplete and Filters can't drift. The field\n// matches the rows (gutter, radius, label inset, height).\n\n/** A row: 32px, 40px on touch. Padding overrides need a `pointer-coarse:py-*` twin. */\nexport const POPUP_ITEM =\n  \"rounded-md px-2.5 py-1.5 text-sm pointer-coarse:py-2.5\";\n\n/** The surface band over the side and top gutters; the list supplies the gap below. */\nexport const POPUP_SEARCH_BAND = \"bg-(--popup-surface) px-1 pt-1\";\n\n/**\n * The field takes the outline fill and edge: a filled field above a highlighted\n * item reads as a second highlight. The inset ring keeps the icon aligned.\n * No focus ring: the field holds focus the whole time the popup is open.\n */\nexport const POPUP_SEARCH_FIELD =\n  \"flex h-8 items-center gap-2 rounded-md bg-(--outline) px-2.5 inset-ring inset-ring-(--outline-border) pointer-coarse:h-10\";\n\n/** The `<input>`. 16px on touch screens and below `sm`, so iOS Safari doesn't zoom on focus. */\nexport const POPUP_SEARCH_INPUT =\n  \"placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground h-full min-w-0 flex-1 bg-transparent text-base outline-none sm:not-pointer-coarse:text-sm\";\n\n/**\n * A clear button inside the field: 24px to look at, with a 40px hit area that\n * reaches the input across the gap without covering it.\n */\nexport const POPUP_SEARCH_CLEAR =\n  \"text-muted-foreground hover:text-foreground relative -mr-1 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md transition-colors duration-100 outline-none focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-solid focus-visible:outline-ring after:absolute after:-inset-2\";\n\n/**\n * A menu's search field above its list: inset 4px, never squeezed. The\n * list's own padding is the gap, so rows scroll under the field.\n */\nexport const POPUP_SEARCH_MENU_FIELD = \"mx-1 mt-1 shrink-0\";\n\n/** The search icon's classes. */\nexport const POPUP_SEARCH_ICON = \"text-muted-foreground size-4 shrink-0\";\n",
      "type": "registry:lib",
      "target": "lib/cubby-ui/popup-search.ts"
    }
  ],
  "type": "registry:lib"
}