{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-people-no-members-found-1",
  "type": "registry:block",
  "title": "No members found",
  "description": "People card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "people"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/people-no-members-found-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/people-no-members-found-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/people.tsx:71.\nimport { useRef, useState } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { workload } from \"./runtime/data/workspace/operations\";\nimport { team } from \"./runtime/data/workspace/studio\";\nimport {\n  SceneCard,\n  Pill,\n  Action,\n  Person,\n} from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const searchRef = useRef<HTMLInputElement>(null);\n  const [query, setQuery] = useState(\"\");\n  const [role, setRole] = useState(\"All members\");\n  const shown = team.filter(\n    (person) =>\n      (role === \"All members\" || person.role === role) &&\n      `${person.name} ${person.discipline} ${person.location}`\n        .toLowerCase()\n        .includes(query.trim().toLowerCase()),\n  );\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"users\">\n        <SceneCard className=\"scene-table-card\">\n          <div\n            className=\"scene-table-wrap\"\n            tabIndex={0}\n            role=\"region\"\n            aria-label=\"Team directory\"\n          >\n            <table className=\"scene-table\">\n              <thead>\n                <tr>\n                  <th>Member</th>\n                  <th>Discipline</th>\n                  <th>Location</th>\n                  <th>Access</th>\n                  <th>This week</th>\n                </tr>\n              </thead>\n              <tbody>\n                {shown.map((person) => {\n                  const allocation = workload.find(\n                    (member) => member.id === person.id,\n                  )!;\n                  return (\n                    <tr key={person.id}>\n                      <td>\n                        <Link to={`/profile?member=${person.id}`}>\n                          <Person name={person.name} subtitle={person.email} />\n                        </Link>\n                      </td>\n                      <td>{person.discipline}</td>\n                      <td>{person.location}</td>\n                      <td>\n                        <Pill>{person.role}</Pill>\n                      </td>\n                      <td>\n                        <span\n                          className={\n                            allocation.allocated > allocation.capacity\n                              ? \"text-destructive\"\n                              : \"\"\n                          }\n                        >\n                          {allocation.allocated} / {allocation.capacity}h\n                        </span>\n                      </td>\n                    </tr>\n                  );\n                })}\n              </tbody>\n            </table>\n            {!shown.length && (\n              <div className=\"scene-empty-search\">\n                <h3>No members found</h3>\n                <p>Try a name, discipline, or city.</p>\n                <Action\n                  onClick={() => {\n                    setQuery(\"\");\n                    setRole(\"All members\");\n                    searchRef.current?.focus();\n                  }}\n                >\n                  Clear search\n                </Action>\n              </div>\n            )}\n          </div>\n          <div className=\"scene-table-summary\">\n            <span>\n              {shown.length} of {team.length} members\n            </span>\n            <Link to=\"/settings\">Manage access</Link>\n          </div>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/people-no-members-found-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
