{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lists-13",
  "type": "registry:block",
  "description": "Searchable people directory with department filter chips and presence dots.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/lists/lists-13.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Mail,\n  Search,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst people = [\n  { name: \"Ali Imam\", title: \"Founder, Design Engineer\", dept: \"Leadership\", email: \"ali@designali.com\", status: \"online\", hue: 25 },\n  { name: \"Ben\", title: \"Client Partner\", dept: \"Studio\", email: \"ben@designali.com\", status: \"away\", hue: 200 },\n  { name: \"Chiara\", title: \"UI/UX Designer\", dept: \"Design\", email: \"chiara@designali.com\", status: \"online\", hue: 330 },\n  { name: \"Dev\", title: \"Next.js Developer\", dept: \"Development\", email: \"dev@designali.com\", status: \"offline\", hue: 150 },\n  { name: \"Elena\", title: \"Brand Designer\", dept: \"Design\", email: \"elena@designali.com\", status: \"online\", hue: 280 },\n  { name: \"Femi\", title: \"Project Manager\", dept: \"Studio\", email: \"femi@designali.com\", status: \"online\", hue: 60 },\n  { name: \"Grace\", title: \"Frontend Developer\", dept: \"Development\", email: \"grace@designali.com\", status: \"away\", hue: 0 },\n  { name: \"Henrik\", title: \"Creative Developer\", dept: \"Development\", email: \"henrik@designali.com\", status: \"online\", hue: 230 },\n  { name: \"Isla\", title: \"Support Lead\", dept: \"Studio\", email: \"support@designali.com\", status: \"offline\", hue: 100 },\n]\n\nconst departments = [\"All\", \"Leadership\", \"Design\", \"Development\", \"Studio\"]\n\nconst dot: Record<string, string> = {\n  online: \"bg-primary\",\n  away: \"bg-primary\",\n  offline: \"bg-muted-foreground/40\",\n}\n\nexport default function Lists13() {\n  const [query, setQuery] = useState(\"\")\n  const [dept, setDept] = useState(\"All\")\n\n  const q = query.trim().toLowerCase()\n  const visible = people.filter(\n    (person) =>\n      (dept === \"All\" || person.dept === dept) &&\n      (person.name.toLowerCase().includes(q) || person.title.toLowerCase().includes(q))\n  )\n\n  return (\n    <section className=\"w-full bg-muted/30 py-24\">\n      <div className=\"mx-auto max-w-3xl px-6\">\n        <div className=\"border border-border bg-background\">\n          <div className=\"space-y-4 border-b border-border p-5\">\n            <div className=\"flex items-center justify-between gap-4\">\n              <h2 className=\"text-xl font-semibold tracking-tight\">Designali studio</h2>\n              <span className=\"font-sans text-xs text-muted-foreground\">\n                {visible.length} of {people.length}\n              </span>\n            </div>\n            <label className=\"flex h-10 items-center gap-2 border border-border 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                placeholder=\"Search by name or role\"\n                className=\"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground\"\n              />\n            </label>\n            <div className=\"flex flex-wrap gap-1.5\">\n              {departments.map((item) => (\n                <button\n                  key={item}\n                  type=\"button\"\n                  aria-pressed={dept === item}\n                  onClick={() => setDept(item)}\n                  className={cn(\n                    \"border px-2.5 py-1 text-xs transition-colors\",\n                    dept === item ? \"border-foreground bg-foreground text-background\" : \"border-border text-muted-foreground hover:text-foreground\"\n                  )}\n                >\n                  {item}\n                </button>\n              ))}\n            </div>\n          </div>\n\n          <ul className=\"max-h-[420px] divide-y divide-border overflow-y-auto\">\n            {visible.map((person) => (\n              <li key={person.email} className=\"flex items-center gap-4 px-5 py-3.5 hover:bg-muted/40\">\n                <span className=\"relative shrink-0\">\n                  <span\n                    className=\"flex size-10 items-center justify-center rounded-full text-xs font-semibold text-white\"\n                    style={{ backgroundColor: `oklch(0.55 0.14 ${person.hue})` }}\n                  >\n                    {person.name.split(\" \").map((part) => part[0]).join(\"\")}\n                  </span>\n                  <span className={cn(\"absolute right-0 bottom-0 size-2.5 rounded-full ring-2 ring-background\", dot[person.status])} />\n                </span>\n                <span className=\"min-w-0 flex-1\">\n                  <span className=\"block truncate text-sm font-medium\">{person.name}</span>\n                  <span className=\"block truncate text-xs text-muted-foreground\">\n                    {person.title} · {person.dept}\n                  </span>\n                </span>\n                <a\n                  href={`mailto:${person.email}`}\n                  aria-label={`Email ${person.name}`}\n                  className=\"flex size-8 shrink-0 items-center justify-center border border-border text-muted-foreground hover:bg-muted hover:text-foreground\"\n                >\n                  <Mail className=\"size-3.5\" />\n                </a>\n              </li>\n            ))}\n            {visible.length === 0 && (\n              <li className=\"px-5 py-12 text-center text-sm text-muted-foreground\">\n                Nobody matches that search.\n              </li>\n            )}\n          </ul>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "800px"
  },
  "categories": [
    "lists"
  ]
}