{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-locations-locations-1-1",
  "type": "registry:block",
  "title": "Locations 1",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/locations-locations-1-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/locations-locations-1-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/locations.tsx:104.\nimport { useState } from \"react\";\nimport { type GeoMapPoint } from \"./runtime/registry/overtrue/geo-map\";\nimport { SceneCard } from \"./runtime/components/overtrue/scenes/shared\";\nconst locations = [\n  {\n    id: \"london\",\n    label: \"London\",\n    lat: 51.507,\n    lng: -0.128,\n    value: 3,\n    description: \"Design & research\",\n    zone: \"Europe/London\",\n    lead: \"Maya Okafor\",\n  },\n  {\n    id: \"berlin\",\n    label: \"Berlin\",\n    lat: 52.52,\n    lng: 13.405,\n    value: 2,\n    description: \"Client operations\",\n    zone: \"Europe/Berlin\",\n    lead: \"Alina Petrova\",\n  },\n  {\n    id: \"tokyo\",\n    label: \"Tokyo\",\n    lat: 35.676,\n    lng: 139.65,\n    value: 1,\n    description: \"Engineering\",\n    zone: \"Asia/Tokyo\",\n    lead: \"Leo Nakamura\",\n  },\n  {\n    id: \"lisbon\",\n    label: \"Lisbon\",\n    lat: 38.722,\n    lng: -9.139,\n    value: 2,\n    description: \"Content & brand\",\n    zone: \"Europe/Lisbon\",\n    lead: \"Nora Jensen\",\n  },\n] satisfies (GeoMapPoint & { zone: string; lead: string })[];\nfunction CardExample({ id = \"maps\" }: { id?: string } = {}) {\n  const [selected, setSelected] = useState<string | null>(\"london\");\n  const network = id === \"maps-vector\";\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={id}>\n        <SceneCard\n          title={network ? \"Delivery coverage\" : \"Location directory\"}\n          className=\"scene-table-card\"\n        >\n          <div\n            className=\"scene-table-wrap\"\n            tabIndex={0}\n            role=\"region\"\n            aria-label=\"Scrollable records\"\n          >\n            <table className=\"scene-table\">\n              <thead>\n                <tr>\n                  <th>Location</th>\n                  <th>Focus</th>\n                  <th>Members</th>\n                  <th>Time zone</th>\n                </tr>\n              </thead>\n              <tbody>\n                {locations.map((location) => (\n                  <tr key={location.id}>\n                    <td>\n                      <button\n                        className=\"scene-text-button\"\n                        aria-pressed={selected === location.id}\n                        onClick={() => setSelected(location.id)}\n                      >\n                        {location.label}\n                      </button>\n                    </td>\n                    <td>{location.description}</td>\n                    <td>{location.value}</td>\n                    <td>{location.zone}</td>\n                  </tr>\n                ))}\n              </tbody>\n            </table>\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/locations-locations-1-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
