{
  "component": {
    "id": "tabs",
    "name": "Tabs",
    "tier": "pro",
    "exampleId": "tabs",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/core-demos.tsx",
    "exportName": "TabsDemo",
    "sha256": "8fe17289526313ec2048dcddb9e7fdf87f85c8a9d6fa1445f6355d34ec70b9e5",
    "helperImports": [],
    "directComponentImports": [
      "checkbox",
      "tabs"
    ],
    "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/tabs",
    "registryUrl": "https://tidalui.com/r/pro/tabs.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/tabs",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/tabs",
      "registryUrl": "https://tidalui.com/r/pro/tabs.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "@tidal-pro/checkbox",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add @tidal-pro/checkbox",
      "registryUrl": "https://tidalui.com/r/pro/checkbox.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/tabs.tsx",
    "exports": [
      "TidalCheckbox",
      "TidalTabs"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/tabs.css",
      "components/ui/checkbox.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-tabs",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [
      "@tidal-pro/checkbox"
    ],
    "installClosure": [
      "checkbox",
      "tabs"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/tabs.css",
      "components/ui/checkbox.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/tabs.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/demo-styles.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { Download } from \"lucide-react\";\n\nimport { TidalTabs } from \"./components/ui/tabs\";\n\nimport \"./components/ui/tabs.css\";\n\nimport { LayoutGrid, Activity, Folder } from \"lucide-react\";\n\nimport { TidalCheckbox } from \"./components/ui/checkbox\";\n\nimport \"./components/ui/checkbox.css\";\n\nimport { useState, type CSSProperties } from \"react\";\n\nimport { Check } from \"lucide-react\";\n\n\n\nconst tidalExampleStyles = \".tabs-specimen{width:100%;max-width:425px;background:var(--t-surface);border:1px solid var(--t-border);border-radius:17px;padding:25px;box-shadow:0 8px 24px #1f1f1f07}.tabs-demo-heading>.demo-eyebrow{font-size:11px}.tabs-demo-heading>h3{font-size:23px;letter-spacing:-.8px;color:var(--t-ink);margin:12px 0 21px}.tabs-demo-overview>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.5px;color:var(--t-muted)}.tabs-demo-overview strong{font-size:39px;letter-spacing:-1.5px;font-weight:500;color:var(--t-ink)}.tabs-demo-overview strong>span{font-size:19px;margin-left:2px;color:var(--t-muted)}.tabs-demo-overview>p{font-size:11px;color:var(--t-muted);margin:6px 0 20px}.tabs-demo-bar{height:7px;border-radius:7px;background:var(--t-subtle);overflow:hidden}.tabs-demo-bar>span{display:block;width:67%;height:100%;border-radius:7px;background:linear-gradient(90deg,var(--t-accent),var(--t-muted))}.tabs-demo-bottom{display:flex;justify-content:space-between;font-size:11px;color:var(--t-muted);margin-top:12px}.tabs-demo-bottom>span:last-child{color:var(--t-accent)}.tabs-demo-activity>h4{font-size:16px;font-weight:500;letter-spacing:-.4px;color:var(--t-ink);margin:0 0 17px}.tabs-demo-activity>div{display:flex;align-items:center;gap:12px;margin-top:14px}.tabs-demo-activity>div>span{font-size:11px;background:var(--t-wash);color:var(--t-accent);width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.tabs-demo-activity p{margin:0}.tabs-demo-activity strong{font-size:11px;display:block;font-weight:500;color:var(--t-ink)}.tabs-demo-activity small{display:block;font-size:11px;color:var(--t-muted);margin-top:4px}\\n\\n\\n.tabs-specimen{max-width:560px;padding:26px;border-radius:var(--t-radius-card);background:linear-gradient(150deg,var(--t-surface),color-mix(in srgb,var(--t-surface) 94%,var(--t-subtle)));box-shadow:0 24px 40px -28px #00000035,0 2px 4px #00000008}.tabs-demo-heading>h3{font-size:26px;margin:12px 0 25px;letter-spacing:-.9px}.tabs-demo-overview>div:first-child{align-items:center}.tabs-demo-overview strong{font-size:44px;line-height:1.12}.tabs-demo-overview strong>span{font-size:inherit;margin:0;color:var(--t-ink)}.tabs-demo-overview strong>.tabs-demo-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:-1px}.tabs-demo-overview strong>.tabs-demo-counter{display:flex;align-items:baseline;font-variant-numeric:tabular-nums;letter-spacing:0}.tabs-demo-digit-window{display:block;overflow:hidden;width:1ch;height:1.12em;transition:width 320ms var(--t-ease-out),opacity 180ms}.tabs-demo-digit-window[data-leading=true]{width:0;opacity:0}.tabs-demo-digit-window>span{display:flex;flex-direction:column;transition:transform 650ms var(--t-ease-out)}.tabs-demo-digit-window>span>span{height:1.12em;line-height:1.12;flex:none;text-align:center}.tabs-demo-percent{font-size:.45em;color:var(--t-muted);margin-left:3px}.tabs-demo-bar{height:6px;background:var(--t-wash)}.tabs-demo-bar>span{background:var(--t-ink);transition:width 650ms var(--t-ease-out)}.tabs-demo-tasks{margin-top:23px;padding-top:16px;border-top:1px solid var(--t-border);display:flex;flex-direction:column;gap:3px}.tabs-demo-tasks .tidal-checkbox-label{font-size:11px}.tabs-demo-activity>div{position:relative;border-bottom:1px solid var(--t-border);padding:12px 0;margin:0;min-height:62px}.tabs-demo-activity>div:last-child{border-bottom:0}.tabs-demo-activity>div>span{border-radius:7px;background:var(--t-ink);color:var(--t-surface);font-size:11px}.tabs-demo-activity strong{font-size:11px;line-height:1.6}.tabs-demo-activity small{font-size:11px}.tabs-demo-files>h4{font-size:16px;letter-spacing:-.4px;font-weight:500;margin:0 0 16px}.tabs-demo-files>a{display:flex;align-items:center;gap:12px;min-height:62px;padding:12px 0;text-decoration:none;color:var(--t-ink);border-top:1px solid var(--t-border)}.tabs-demo-files>a>span{flex:1;min-width:0}.tabs-demo-files strong{display:block;font-size:11px;font-weight:550}.tabs-demo-files small{display:block;font-size:11px;color:var(--t-muted);margin-top:4px}.tabs-demo-files>a>svg:last-child{color:var(--t-muted);transition:transform 240ms var(--t-ease-out)}.tabs-demo-files>a:hover>svg:last-child{transform:translateY(2px)}\\n@media(prefers-reduced-motion:no-preference){.tabs-demo-activity>div{animation:tidal-tab-content-in 320ms var(--activity-delay) var(--t-ease-out) both}}\\n@media(max-width:420px){.tabs-specimen{padding:20px}.tabs-demo-heading>h3{font-size:24px}.tabs-specimen .tidal-tab-trigger{font-size:11px;padding-inline:10px;gap:5px}}\";\n\nexport function TabsDemo() {\n  const [tab, setTab] = useState(\"overview\");\n  const [tasks, setTasks] = useState([true, true, false]);\n  const [events, setEvents] = useState([\n    {\n      initials: \"AL\",\n      text: \"Alex finished the first draft.\",\n      detail: \"Sample project activity\",\n    },\n    {\n      initials: \"JR\",\n      text: \"Jordan shared a new idea.\",\n      detail: \"Sample project activity\",\n    },\n  ]);\n  const labels = [\n    \"Finalize the brand\",\n    \"Build the homepage\",\n    \"Prepare launch notes\",\n  ];\n  const completed = tasks.filter(Boolean).length;\n  const percent = Math.round((completed / tasks.length) * 100);\n  return (\n    <div className=\"tabs-specimen\">\n      <div className=\"tabs-demo-heading\"></div>\n      <TidalTabs\n        label=\"Northstar project views\"\n        value={tab}\n        onValueChange={setTab}\n        items={[\n          {\n            value: \"overview\",\n            label: \"Overview\",\n            icon: LayoutGrid,\n            content: (\n              <div className=\"tabs-demo-overview\">\n                <div>\n                  <span>PROJECT PROGRESS</span>\n                  <strong>\n                    <span className=\"tabs-demo-sr\">{percent} percent</span>\n                    <span className=\"tabs-demo-counter\" aria-hidden=\"true\">\n                      {[\n                        Math.floor(percent / 100),\n                        Math.floor(percent / 10) % 10,\n                        percent % 10,\n                      ].map((digit, i) => (\n                        <span\n                          className=\"tabs-demo-digit-window\"\n                          data-leading={i === 0 && digit === 0}\n                          key={i}\n                        >\n                          <span\n                            style={{\n                              transform: `translateY(${-digit * 1.12}em)`,\n                            }}\n                          >\n                            {Array.from({ length: 10 }, (_, n) => (\n                              <span key={n}>{n}</span>\n                            ))}\n                          </span>\n                        </span>\n                      ))}\n                      <span className=\"tabs-demo-percent\">%</span>\n                    </span>\n                  </strong>\n                </div>\n                <p>\n                  {completed === tasks.length\n                    ? \"All milestones complete.\"\n                    : \"Complete the remaining milestones.\"}\n                </p>\n                <div className=\"tabs-demo-bar\" aria-hidden=\"true\">\n                  <span style={{ width: `${percent}%` }} />\n                </div>\n                <div className=\"tabs-demo-bottom\">\n                  <span>\n                    {completed} of {tasks.length} milestones complete\n                  </span>\n                  <span>\n                    {completed === tasks.length\n                      ? \"Ready to launch\"\n                      : \"In progress\"}\n                  </span>\n                </div>\n                <div className=\"tabs-demo-tasks\">\n                  {labels.map((label, i) => (\n                    <TidalCheckbox\n                      key={label}\n                      label={label}\n                      checked={tasks[i]}\n                      onCheckedChange={(checked) => {\n                        const next = checked === true;\n                        setTasks((current) =>\n                          current.map((value, index) =>\n                            index === i ? next : value,\n                          ),\n                        );\n                        setEvents((current) =>\n                          [\n                            {\n                              initials: \"YOU\",\n                              text: `You ${next ? \"completed\" : \"reopened\"} ${label.toLowerCase()}.`,\n                              detail: \"Changed in this sample preview\",\n                            },\n                            ...current,\n                          ].slice(0, 5),\n                        );\n                      }}\n                    />\n                  ))}\n                </div>\n              </div>\n            ),\n          },\n          {\n            value: \"activity\",\n            label: \"Activity\",\n            icon: Activity,\n            count: events.length,\n            content: (\n              <div className=\"tabs-demo-activity\">\n                <h4>Recent activity</h4>\n                {events.map((event, i) => (\n                  <div\n                    key={`${event.text}-${i}`}\n                    style={\n                      { \"--activity-delay\": `${i * 50}ms` } as CSSProperties\n                    }\n                  >\n                    <span>{event.initials}</span>\n                    <p>\n                      <strong>{event.text}</strong>\n                      <small>{event.detail}</small>\n                    </p>\n                  </div>\n                ))}\n              </div>\n            ),\n          },\n          {\n            value: \"files\",\n            label: \"Files\",\n            icon: Folder,\n            count: 2,\n            content: (\n              <div className=\"tabs-demo-files\">\n                <h4>Project files</h4>\n                <a href=\"/sample-project-brief.txt\" download>\n                  <Folder size={17} aria-hidden=\"true\" />\n                  <span>\n                    <strong>Project brief</strong>\n                    <small>Sample content · .txt</small>\n                  </span>\n                  <Download size={15} aria-hidden=\"true\" />\n                </a>\n                <a href=\"/sample-launch-checklist.md\" download>\n                  <Check size={17} aria-hidden=\"true\" />\n                  <span>\n                    <strong>Launch checklist</strong>\n                    <small>Sample content · .md</small>\n                  </span>\n                  <Download size={15} aria-hidden=\"true\" />\n                </a>\n              </div>\n            ),\n          },\n        ]}\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      <TabsDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/tabs.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"overview\"",
      "setter": "setTab",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onCheckedChange",
      "nativeType": "component callback",
      "callerFirst": false,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onValueChange",
      "nativeType": "component callback",
      "callerFirst": false,
      "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": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "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": []
}
