{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navigation-14",
  "type": "registry:block",
  "description": "E-commerce header with delivery bar, location, search field, account, wishlist and cart icons above category tabs.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/navigation/navigation-14.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Heart,\n  Globe,\n  Search,\n  ShoppingCart,\n  Sparkles,\n  User,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst categories = [\n  \"New in\",\n  \"Templates\",\n  \"Blocks\",\n  \"Landing pages\",\n  \"UI designs\",\n  \"Icons\",\n  \"Logos\",\n  \"Illustrations\",\n  \"Sale\",\n]\n\nconst suggestions = [\"portfolio template\", \"pricing block\", \"dashboard ui\", \"icon pack\"]\n\nexport default function Navigation14() {\n  const [query, setQuery] = useState(\"\")\n  const [focused, setFocused] = useState(false)\n  const [category, setCategory] = useState(\"New in\")\n\n  const matches = suggestions.filter((item) => item.includes(query.toLowerCase()))\n\n  return (\n    <section className=\"w-full bg-background\">\n      <div className=\"bg-muted/60 text-xs text-muted-foreground\">\n        <div className=\"mx-auto flex h-9 max-w-7xl items-center justify-between gap-4 px-6\">\n          <span className=\"flex items-center gap-1.5 truncate\">\n            <Sparkles className=\"size-3.5 shrink-0\" />\n            Free updates on every Designali template\n          </span>\n          <a href=\"#\" className=\"hidden items-center gap-1.5 hover:text-foreground sm:flex\">\n            <Globe className=\"size-3.5\" />\n            Remote · Worldwide\n          </a>\n        </div>\n      </div>\n\n      <div className=\"border-b\">\n        <div className=\"mx-auto grid max-w-7xl grid-cols-[auto_1fr] items-center gap-x-6 gap-y-3 px-6 py-4 md:grid-cols-[auto_1fr_auto]\">\n          <a href=\"#\" className=\"text-xl font-bold tracking-tight\">\n            design<span className=\"text-muted-foreground\">ali</span>\n          </a>\n\n          <div className=\"relative col-span-2 row-start-2 md:col-span-1 md:row-start-auto\">\n            <label className=\"flex h-11 items-center gap-2 border bg-background px-3 focus-within:border-foreground\">\n              <Search className=\"size-4 text-muted-foreground\" />\n              <input\n                value={query}\n                onChange={(event) => setQuery(event.target.value)}\n                onFocus={() => setFocused(true)}\n                onBlur={() => setFocused(false)}\n                placeholder=\"Search 2300+ UI designs\"\n                className=\"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground\"\n              />\n            </label>\n            {focused && matches.length > 0 && (\n              <ul className=\"absolute inset-x-0 top-full z-20 mt-1 border bg-popover py-1 text-sm text-popover-foreground\">\n                <li className=\"px-3 py-1.5 text-xs text-muted-foreground\">Popular searches</li>\n                {matches.map((item) => (\n                  <li key={item}>\n                    <button\n                      type=\"button\"\n                      onMouseDown={() => setQuery(item)}\n                      className=\"flex w-full items-center gap-2 px-3 py-2 text-start hover:bg-muted\"\n                    >\n                      <Search className=\"size-3.5 text-muted-foreground\" />\n                      {item}\n                    </button>\n                  </li>\n                ))}\n              </ul>\n            )}\n          </div>\n\n          <div className=\"flex items-center justify-end gap-1\">\n            {[\n              { icon: User, label: \"Account\" },\n              { icon: Heart, label: \"Saved\", count: 5 },\n              { icon: ShoppingCart, label: \"Cart\", count: 3 },\n            ].map((item) => (\n              <a\n                key={item.label}\n                href=\"#\"\n                className=\"relative flex flex-col items-center gap-0.5 px-2.5 py-1 text-[11px] text-muted-foreground hover:text-foreground\"\n              >\n                <item.icon className=\"size-5 text-foreground\" />\n                <span className=\"hidden sm:block\">{item.label}</span>\n                {item.count && (\n                  <span className=\"absolute -top-0.5 right-1 flex size-4 items-center justify-center bg-foreground text-[10px] text-background\">\n                    {item.count}\n                  </span>\n                )}\n              </a>\n            ))}\n          </div>\n        </div>\n      </div>\n\n      <nav className=\"border-b\">\n        <ul className=\"mx-auto flex max-w-7xl gap-1 overflow-x-auto px-6\">\n          {categories.map((item) => (\n            <li key={item} className=\"shrink-0\">\n              <button\n                type=\"button\"\n                onClick={() => setCategory(item)}\n                className={cn(\n                  \"h-11 border-b-2 px-3 text-sm transition-colors\",\n                  category === item\n                    ? \"border-foreground font-medium text-foreground\"\n                    : \"border-transparent text-muted-foreground hover:text-foreground\",\n                  item === \"Sale\" && \"text-destructive dark:text-destructive\"\n                )}\n              >\n                {item}\n              </button>\n            </li>\n          ))}\n        </ul>\n      </nav>\n      <div className=\"h-56\" aria-hidden />\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "350px"
  },
  "categories": [
    "navigation"
  ]
}