{
  "component": {
    "id": "footer-workspace",
    "name": "Workspace footer",
    "tier": "pro",
    "exampleId": "footer-workspace",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/footer-workspace-demo.tsx",
    "exportName": "FooterWorkspaceDemo",
    "sha256": "395e6063495f779e0c2d438d7ca6c45bc038152f3644c7417c947332f91d9a6a",
    "helperImports": [],
    "directComponentImports": [
      "footer-workspace"
    ],
    "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-workspace",
    "registryUrl": "https://tidalui.com/r/pro/footer-workspace.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-workspace",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/footer-workspace",
      "registryUrl": "https://tidalui.com/r/pro/footer-workspace.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/footer-workspace.tsx",
    "exports": [
      "TidalFooterWorkspace",
      "TidalFooterWorkspaceLink",
      "TidalFooterWorkspaceOption",
      "TidalFooterWorkspaceSignOutState"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/footer-workspace.css",
      "components/ui/native-select.css",
      "components/ui/status-badge.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [
      "@tidal-pro/native-select",
      "https://tidalui.com/r/status-badge.json",
      "https://tidalui.com/r/tidal-button.json"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "footer-workspace",
      "native-select",
      "status-badge",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/footer-workspace.css",
      "components/ui/native-select.css",
      "components/ui/status-badge.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/footer-workspace.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/footer-pilot-07-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState, type MouseEvent } from \"react\";\n\nimport { TidalFooterWorkspace, type TidalFooterWorkspaceLink, type TidalFooterWorkspaceOption, type TidalFooterWorkspaceSignOutState } from \"./components/ui/footer-workspace\";\n\nimport \"./components/ui/footer-workspace.css\";\n\nimport \"./components/ui/native-select.css\";\n\nimport \"./components/ui/status-badge.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .footer-pilot-07-demo {\\n  inline-size: 100%;\\n  min-inline-size: 0;\\n}\";\n\nconst workspaces: readonly TidalFooterWorkspaceOption[] = [\n  {\n    id: \"northstar\",\n    label: \"Northstar studio\",\n    role: \"Administrator\",\n    status: \"success\",\n    statusLabel: \"Operational\",\n  },\n  {\n    id: \"field-notes\",\n    label: \"Field notes workspace\",\n    role: \"Editor\",\n    status: \"neutral\",\n    statusLabel: \"Limited access\",\n  },\n];\n\nconst links: readonly TidalFooterWorkspaceLink[] = [\n  { id: \"account\", label: \"Account settings\", href: \"#workspace-account\" },\n  { id: \"help\", label: \"Help center\", href: \"#workspace-help\" },\n  { id: \"privacy\", label: \"Privacy\", href: \"#workspace-privacy\" },\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.detail !== 0 && event.detail !== 1) ||\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 FooterWorkspaceDemo() {\n  const [activeWorkspaceId, setActiveWorkspaceId] = useState(\"northstar\");\n  const [signOutState, setSignOutState] =\n    useState<TidalFooterWorkspaceSignOutState>(\"idle\");\n  const [status, setStatus] = useState(\"No workspace callback has run.\");\n  const previewLinks = links.map((link) => ({\n    ...link,\n    onClick: handlePreviewClick(String(link.label), setStatus),\n  }));\n  return (\n    <div className=\"footer-pilot-07-demo\">\n      <TidalFooterWorkspace\n        aria-label=\"Workspace account footer example\"\n        brand={<span>TidalUI workspace</span>}\n        heading=\"Your workspace.\"\n        description=\"Manage your workspace and account.\"\n        identity={{\n          name: \"Alex Morgan\",\n          email: \"alex@example.test\",\n          role: \"Workspace administrator\",\n        }}\n        workspaces={workspaces}\n        activeWorkspaceId={activeWorkspaceId}\n        onWorkspaceChange={(id) => {\n          setActiveWorkspaceId(id);\n          setStatus(`Workspace change proposed for ${id}.`);\n        }}\n        workspaceDescription=\"This sample changes the selected workspace locally.\"\n        accountLinks={previewLinks}\n        onSignOut={() => {\n          setSignOutState(\"confirmed\");\n          setStatus(\n            \"Local preview only. The consumer sign-out callback ran; no session changed.\",\n          );\n        }}\n        signOutLabel=\"Test sign out\"\n        signOutState={signOutState}\n        signOutStatus={\n          signOutState === \"confirmed\"\n            ? \"Consumer callback completed locally; no auth request was sent.\"\n            : undefined\n        }\n        status={status}\n        legal={<span>Fictional account. No real session is changed.</span>}\n      />\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      <FooterWorkspaceDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/footer-workspace.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "activeWorkspaceId",
      "type": "inferred-from-existing-demo",
      "initial": "\"northstar\"",
      "setter": "setActiveWorkspaceId",
      "proposalCanBeRejected": false
    },
    {
      "prop": "signOutState",
      "type": "inferred-from-existing-demo",
      "initial": "\"idle\"",
      "setter": "setSignOutState",
      "proposalCanBeRejected": false
    },
    {
      "prop": "status",
      "type": "inferred-from-existing-demo",
      "initial": "\"No workspace callback has run.\"",
      "setter": "setStatus",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onSignOut",
      "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."
    },
    {
      "name": "onWorkspaceChange",
      "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": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "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": []
}
