{
  "component": {
    "id": "footer-locations",
    "name": "Office locations footer",
    "tier": "pro",
    "exampleId": "footer-locations",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/footer-locations-demo.tsx",
    "exportName": "FooterLocationsDemo",
    "sha256": "8be6731823c5f62def0fa6b6c5837802c93d9e5a818d5d82aa89b9cbf0c78597",
    "helperImports": [],
    "directComponentImports": [
      "footer-locations"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/footer-locations",
    "registryUrl": "https://tidalui.com/r/pro/footer-locations.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/footer-locations",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/footer-locations",
      "registryUrl": "https://tidalui.com/r/pro/footer-locations.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/footer-locations.tsx",
    "exports": [
      "TidalFooterLocationOffice",
      "TidalFooterLocations",
      "TidalFooterLocationsNavGroup"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/footer-locations.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "footer-locations"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/footer-locations.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/footer-locations.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/footer-locations-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState, type MouseEvent } from \"react\";\n\nimport { TidalFooterLocations, type TidalFooterLocationsNavGroup, type TidalFooterLocationOffice } from \"./components/ui/footer-locations\";\n\nimport \"./components/ui/footer-locations.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .footer-pilot-05-demo,\\n.tidal-scope .footer-pilot-05-demo-shell {\\n  min-inline-size: 0;\\n  inline-size: 100%;\\n}\";\n\nconst offices: readonly TidalFooterLocationOffice[] = [\n  {\n    id: \"chicago\",\n    city: \"Chicago\",\n    timezone: \"Central Time\",\n    timeReference: \"10:00–18:00 · Sample hours\",\n    address: \"100 Example Avenue, Chicago\",\n    addressHref: \"#preview-chicago-office\",\n    mapX: 26,\n    mapY: 34,\n  },\n  {\n    id: \"lisbon\",\n    city: \"Lisbon\",\n    timezone: \"Western European Time\",\n    timeReference: \"09:00–17:00 · Sample hours\",\n    address: \"20 Example Square, Lisbon\",\n    addressHref: \"#preview-lisbon-office\",\n    mapX: 64,\n    mapY: 23,\n  },\n  {\n    id: \"singapore\",\n    city: \"Singapore\",\n    timezone: \"Singapore Time\",\n    timeReference: \"09:30–18:30 · Sample hours\",\n    address: \"30 Example Street, Singapore\",\n    addressHref: \"#preview-singapore-office\",\n    mapX: 82,\n    mapY: 44,\n  },\n];\n\nconst navigationGroups: readonly TidalFooterLocationsNavGroup[] = [\n  {\n    id: \"visit\",\n    label: \"Visit\",\n    links: [\n      { id: \"offices\", label: \"Office locations\", href: \"#preview-offices\" },\n      { id: \"access\", label: \"Accessibility\", href: \"#preview-accessibility\" },\n    ],\n  },\n  {\n    id: \"learn\",\n    label: \"Learn\",\n    links: [\n      { id: \"docs\", label: \"Documentation\", href: \"#preview-docs\" },\n      { id: \"support\", label: \"Support\", href: \"#preview-support\" },\n    ],\n  },\n];\n\nfunction handlePreviewClick(\n  label: string,\n  setStatus: (status: string) => void,\n) {\n  return (event: MouseEvent<HTMLAnchorElement>) => {\n    if (\n      event.defaultPrevented ||\n      event.button !== 0 ||\n      event.metaKey ||\n      event.ctrlKey ||\n      event.shiftKey ||\n      event.altKey ||\n      event.currentTarget.target\n    ) {\n      return;\n    }\n    event.preventDefault();\n    setStatus(`${label} selected in this local preview.`);\n  };\n}\n\nexport function FooterLocationsDemo() {\n  const [activeOfficeId, setActiveOfficeId] = useState<string | null>(\n    \"chicago\",\n  );\n  const [status, setStatus] = useState(\"No preview destination selected.\");\n  const previewOffices = offices.map((office) => ({\n    ...office,\n    addressLinkProps: {\n      ...office.addressLinkProps,\n      onClick: handlePreviewClick(String(office.city), setStatus),\n    },\n  }));\n  const previewNavigationGroups = navigationGroups.map((group) => ({\n    ...group,\n    links: group.links.map((link) => ({\n      ...link,\n      onClick: handlePreviewClick(String(link.label), setStatus),\n    })),\n  }));\n  return (\n    <div className=\"footer-pilot-05-demo\">\n      <div className=\"footer-pilot-05-demo-shell\">\n        <TidalFooterLocations\n          aria-label=\"Office locations footer example\"\n          brand={\n            <a\n              href=\"#preview-home\"\n              onClick={handlePreviewClick(\"Home\", setStatus)}\n            >\n              TidalUI\n            </a>\n          }\n          heading=\"Our offices.\"\n          description=\"Select a sample location to view its details.\"\n          offices={previewOffices}\n          navigationGroups={previewNavigationGroups}\n          activeOfficeId={activeOfficeId}\n          onOfficeChange={(officeId) => {\n            setActiveOfficeId(officeId);\n            setStatus(`${officeId} selected in this local preview.`);\n          }}\n          legal={<span>Fictional offices and sample hours.</span>}\n          status={<span role=\"status\">{status}</span>}\n        />\n      </div>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <FooterLocationsDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/footer-locations.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "activeOfficeId",
      "type": "inferred-from-existing-demo",
      "initial": "\"chicago\",",
      "setter": "setActiveOfficeId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onOfficeChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "No error fixture is exposed by the existing demo; inject a consumer-owned failure state before production use.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
