{
  "component": {
    "id": "sidebar",
    "name": "Sidebar",
    "tier": "pro",
    "exampleId": "sidebar",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/sidebar-demo.tsx",
    "exportName": "SidebarDemo",
    "sha256": "adbed7e56ab07ddb4f54ce984e279023032e29db0b0bb26357f192f71603e2bd",
    "helperImports": [],
    "directComponentImports": [
      "sidebar"
    ],
    "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/sidebar",
    "registryUrl": "https://tidalui.com/r/pro/sidebar.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/sidebar",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/sidebar",
      "registryUrl": "https://tidalui.com/r/pro/sidebar.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/sidebar.tsx",
    "exports": [
      "TidalSidebar",
      "TidalSidebarAction",
      "TidalSidebarGroup"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/sidebar.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-compose-refs@1.1.5",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "sidebar"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/sidebar.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/sidebar.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/sidebar-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { LayoutGrid, Folder, Activity, Settings2, ArrowUpRight, ArrowDownLeft, Layers } from \"lucide-react\";\n\nimport { TidalSidebar, TidalSidebarAction, TidalSidebarGroup } from \"./components/ui/sidebar\";\n\nimport \"./components/ui/sidebar.css\";\n\nfunction tidalExampleAvatarDataUri(seed: unknown) {\n  const text = String(seed).replace(/[^a-z0-9]/gi, \"\").slice(-2) || \"UI\";\n  const palette = [\"#333333\", \"#555555\", \"#777777\", \"#999999\", \"#bbbbbb\"];\n  const color = palette[Array.from(text).reduce((sum, character) => sum + character.charCodeAt(0), 0) % palette.length];\n  const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 96 96\"><rect width=\"96\" height=\"96\" rx=\"48\" fill=\"${color}\"/><circle cx=\"48\" cy=\"38\" r=\"17\" fill=\"white\" fill-opacity=\".92\"/><path d=\"M18 92c3-22 15-34 30-34s27 12 30 34\" fill=\"white\" fill-opacity=\".92\"/></svg>`;\n  return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n\nfunction tidalExampleImageDataUri(label: string) {\n  const safeLabel = label.replace(/[<>&]/g, \"\").slice(0, 28) || \"Sample image\";\n  const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1200 675\"><defs><linearGradient id=\"g\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"1\"><stop stop-color=\"#171717\"/><stop offset=\"1\" stop-color=\"#555555\"/></linearGradient></defs><rect width=\"1200\" height=\"675\" fill=\"url(#g)\"/><circle cx=\"950\" cy=\"100\" r=\"260\" fill=\"white\" fill-opacity=\".08\"/><text x=\"80\" y=\"570\" fill=\"white\" font-family=\"system-ui,sans-serif\" font-size=\"64\" font-weight=\"700\">${safeLabel}</text></svg>`;\n  return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n\nconst tidalExampleStyles = \".tidal-scope .sidebar-specimen{width:100%;max-width:960px;box-shadow:0 24px 46px -32px #00000033;border-radius:var(--t-radius-card)}.tidal-scope .sidebar-demo-header{display:flex;justify-content:space-between;gap:12px;min-height:64px;align-items:center;padding:15px 24px;border-bottom:1px solid var(--t-border);font-size:11px;color:var(--t-muted)}.tidal-scope .sidebar-demo-header>span:last-child{font-size:11px;border:1px solid var(--t-border);border-radius:5px;padding:3px 6px}.tidal-scope .sidebar-demo-body{padding:28px;min-width:0}.tidal-scope .sidebar-demo-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}.tidal-scope .sidebar-demo-title p{margin:0 0 5px;font-size:11px;letter-spacing:1px;color:var(--t-muted)}.tidal-scope .sidebar-demo-title h3{font-size:27px;font-weight:500;letter-spacing:-1px;line-height:1.2;margin:0}.tidal-scope .sidebar-demo-view-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--t-border);color:var(--t-muted)}.tidal-scope .sidebar-demo-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:25px}.tidal-scope .sidebar-demo-summary>span{display:flex;flex-direction:column;font-size:11px;color:var(--t-muted);gap:4px;border-top:1px solid var(--t-border);padding-top:15px}.tidal-scope .sidebar-demo-summary strong{font-size:30px;line-height:1.2;font-weight:400;color:var(--t-ink);letter-spacing:-1px}.tidal-scope .sidebar-demo-projects>header{display:flex;justify-content:space-between;font-size:11px;color:var(--t-muted);padding-bottom:8px}.tidal-scope .sidebar-demo-project{display:flex;align-items:center;gap:10px;min-width:0;padding:14px 0;border-top:1px solid var(--t-border)}.tidal-scope .sidebar-demo-project-icon{display:grid;place-items:center;width:33px;height:35px;flex:none;border:1px solid var(--t-border);border-radius:8px;background:var(--t-subtle);color:var(--t-muted)}.tidal-scope .sidebar-demo-project>span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}.tidal-scope .sidebar-demo-project strong{font-weight:500;font-size:11px;overflow-wrap:anywhere}.tidal-scope .sidebar-demo-project small{font-size:11px;color:var(--t-muted)}.tidal-scope .sidebar-demo-project-meter{display:flex;flex-direction:column;gap:5px;text-align:end;flex:none;width:52px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--t-muted)}.tidal-scope .sidebar-demo-project-meter>i{height:3px;background:var(--t-wash);border-radius:3px;overflow:hidden}.tidal-scope .sidebar-demo-project-meter>i>i{display:block;height:100%;border-radius:inherit;background:var(--t-ink);transform-origin:left}.tidal-scope .sidebar-demo-note{font-size:11px;line-height:1.6;color:var(--t-muted);margin:20px 0 0}.tidal-scope .sidebar-demo-activity{list-style:none;margin:0;padding:0}.tidal-scope .sidebar-demo-activity>li{display:flex;gap:12px;padding:15px 0;border-top:1px solid var(--t-border);align-items:start}.tidal-scope .sidebar-demo-activity>li>span{font-size:11px;color:var(--t-muted)}.tidal-scope .sidebar-demo-activity p{margin:0;font-size:11px;overflow-wrap:anywhere}.tidal-scope .sidebar-demo-activity small{display:block;margin-top:4px;font-size:11px;color:var(--t-muted)}.tidal-scope .sidebar-demo-settings p{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:14px 0;margin:0;border-bottom:1px solid var(--t-border);font-size:11px}.tidal-scope .sidebar-demo-settings strong{font-weight:500}.tidal-scope .sidebar-demo-settings span{color:var(--t-muted)}.tidal-scope .sidebar-demo-profile{padding:20px 0}.tidal-scope .sidebar-demo-profile img{width:64px;height:64px;border-radius:16px}.tidal-scope .sidebar-demo-profile h4{font-size:18px;font-weight:500;margin:12px 0 4px}.tidal-scope .sidebar-demo-profile p{font-size:11px;color:var(--t-muted);margin:0}\\n@keyframes sidebar-demo-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes sidebar-demo-bar{from{transform:scaleX(0)}to{transform:scaleX(1)}}@media(prefers-reduced-motion:no-preference){.tidal-scope .sidebar-demo-title{animation:sidebar-demo-in 380ms var(--t-ease-out) both}.tidal-scope .sidebar-demo-summary{animation:sidebar-demo-in 420ms var(--t-ease-out) 50ms both}.tidal-scope .sidebar-demo-project{animation:sidebar-demo-in 420ms var(--t-ease-out) both}.tidal-scope .sidebar-demo-project:nth-child(2){animation-delay:90ms}.tidal-scope .sidebar-demo-project:nth-child(3){animation-delay:145ms}.tidal-scope .sidebar-demo-project:nth-child(4){animation-delay:200ms}.tidal-scope .sidebar-demo-project-meter>i>i{animation:sidebar-demo-bar 650ms var(--t-ease-out) 180ms both}}\";\n\nconst views = [{label:\"Overview\",icon:LayoutGrid},{label:\"Projects\",icon:Folder},{label:\"Activity\",icon:Activity},{label:\"Settings\",icon:Settings2}];\n\nconst projects = [{name:\"Website\",detail:\"Design review\",progress:72},{name:\"Mobile app\",detail:\"In development\",progress:48},{name:\"Brand assets\",detail:\"Ready to share\",progress:100}];\n\nexport function SidebarDemo(){\n  const [view,setView]=useState(\"Overview\");\n  return <div className=\"sidebar-specimen\"><TidalSidebar title=\"Northstar\" mark={<Layers size={17}/>} navigation={<><TidalSidebarGroup label=\"Workspace\">{views.slice(0,3).map(({label,icon:Icon})=><TidalSidebarAction key={label} label={label} icon={<Icon size={17}/>} badge={label===\"Projects\"?3:undefined} active={view===label} onClick={()=>setView(label)}/>)}</TidalSidebarGroup><TidalSidebarGroup label=\"Manage\"><TidalSidebarAction label=\"Settings\" icon={<Settings2 size={17}/>} active={view===\"Settings\"} onClick={()=>setView(\"Settings\")}/><TidalSidebarAction label=\"Billing\" icon={<ArrowUpRight size={17}/>} disabled/></TidalSidebarGroup></>} footer={<TidalSidebarAction label=\"Ava Chen\" icon={<img src={tidalExampleAvatarDataUri(\"01\")} alt=\"\"/>} active={view===\"Profile\"} onClick={()=>setView(\"Profile\")}/> }>\n    <header className=\"sidebar-demo-header\"><span>Workspace</span><span>Local sample</span></header><section className=\"sidebar-demo-body\" key={view}><div className=\"sidebar-demo-title\"><div><p>WORKSPACE</p><h3>{view}</h3></div><span className=\"sidebar-demo-view-icon\" aria-hidden=\"true\"><ArrowDownLeft size={20}/></span></div>\n    {view===\"Overview\"||view===\"Projects\"?<><div className=\"sidebar-demo-summary\"><span><strong>3</strong>Active projects</span><span><strong>1</strong>Ready for review</span></div><div className=\"sidebar-demo-projects\"><header><span>Projects</span><span>Progress</span></header>{projects.map(p=><div className=\"sidebar-demo-project\" key={p.name}><span className=\"sidebar-demo-project-icon\" aria-hidden=\"true\"><Folder size={16}/></span><span><strong>{p.name}</strong><small>{p.detail}</small></span><span className=\"sidebar-demo-project-meter\"><span>{p.progress}%</span><i aria-hidden=\"true\"><i style={{width:`${p.progress}%`}}/></i></span></div>)}</div></>:view===\"Activity\"?<ol className=\"sidebar-demo-activity\">{[\"Brand assets marked ready\",\"Website moved to design review\",\"Mobile app updated\"].map((s,i)=><li key={s}><span aria-hidden=\"true\">0{i+1}</span><p>{s}<small>Sample activity</small></p></li>)}</ol>:view===\"Settings\"?<div className=\"sidebar-demo-settings\"><p><span>Workspace name</span><strong>Northstar</strong></p><p><span>Default access</span><strong>Private</strong></p><p><span>Members</span><strong>3</strong></p></div>:<div className=\"sidebar-demo-profile\"><img src={tidalExampleAvatarDataUri(\"01\")} alt=\"Fictional Ava Chen\"/><h4>Ava Chen</h4><p>Workspace owner</p></div>}\n    <p className=\"sidebar-demo-note\">Explore the sample workspace navigation.</p></section>\n  </TidalSidebar></div>;\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <SidebarDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/sidebar.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "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": []
}
