{
  "component": {
    "id": "feature-tabs",
    "name": "Feature tabs",
    "tier": "pro",
    "exampleId": "feature-tabs",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/feature-tabs-demo.tsx",
    "exportName": "FeatureTabsDemo",
    "sha256": "4ad43b3bd7d53f850e19a9e256e2a463ff6c0cbc42a92b4ed981e57d9dea12d6",
    "helperImports": [],
    "directComponentImports": [
      "feature-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/feature-tabs",
    "registryUrl": "https://tidalui.com/r/pro/feature-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/feature-tabs",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/feature-tabs",
      "registryUrl": "https://tidalui.com/r/pro/feature-tabs.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/feature-tabs.tsx",
    "exports": [
      "TidalFeatureTab",
      "TidalFeatureTabs"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/feature-tabs.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-tabs"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "feature-tabs"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/feature-tabs.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/feature-tabs.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/feature-tabs-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalFeatureTabs, type TidalFeatureTab } from \"./components/ui/feature-tabs\";\n\nimport \"./components/ui/feature-tabs.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope.feature-tabs-demo {\\n  width: min(100%, 1080px);\\n  min-width: 0;\\n  display: grid;\\n  gap: 12px;\\n}\\n\\n.tidal-scope .feature-tabs-scene {\\n  min-width: 0;\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .feature-tabs-route-scene {\\n  display: grid;\\n  gap: 8px;\\n}\\n\\n.tidal-scope .feature-tabs-route-scene > div {\\n  min-width: 0;\\n  min-height: 52px;\\n  display: grid;\\n  grid-template-columns: 30px minmax(0, 1fr) auto;\\n  align-items: center;\\n  gap: 10px;\\n  padding: 8px 10px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 9px;\\n  background: var(--t-subtle);\\n}\\n\\n.tidal-scope .feature-tabs-route-scene > div[data-complete=\\\"true\\\"] {\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .feature-tabs-route-scene span,\\n.tidal-scope .feature-tabs-plan-scene > li > span {\\n  color: var(--t-muted);\\n  font:\\n    11px/1.2 ui-monospace,\\n    monospace;\\n}\\n\\n.tidal-scope .feature-tabs-route-scene strong,\\n.tidal-scope .feature-tabs-plan-scene strong {\\n  min-width: 0;\\n  font-size: 12px;\\n  line-height: 1.4;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .feature-tabs-route-scene small,\\n.tidal-scope .feature-tabs-plan-scene small {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.35;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .feature-tabs-route-scene label {\\n  min-width: 0;\\n  display: grid;\\n  gap: 6px;\\n  margin-top: 4px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .feature-tabs-route-scene input {\\n  width: 100%;\\n  min-width: 0;\\n  min-height: 44px;\\n  padding: 9px 11px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 9px;\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n  font: inherit;\\n  font-size: 16px;\\n}\\n\\n.tidal-scope .feature-tabs-route-scene input:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 2px;\\n}\\n\\n.tidal-scope .feature-tabs-plan-scene {\\n  list-style: none;\\n  display: grid;\\n  gap: 0;\\n  margin: 0;\\n  padding: 0;\\n}\\n\\n.tidal-scope .feature-tabs-plan-scene > li {\\n  position: relative;\\n  min-width: 0;\\n  min-height: 64px;\\n  display: grid;\\n  grid-template-columns: 34px minmax(0, 1fr);\\n  align-items: center;\\n  gap: 12px;\\n  padding: 8px 0;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .feature-tabs-plan-scene > li::before {\\n  content: \\\"\\\";\\n  width: 8px;\\n  height: 8px;\\n  position: absolute;\\n  inset-inline-start: 14px;\\n  top: 6px;\\n  border: 1px solid var(--t-ink);\\n  border-radius: 50%;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .feature-tabs-plan-scene > li[data-state=\\\"complete\\\"]::before,\\n.tidal-scope .feature-tabs-plan-scene > li[data-state=\\\"current\\\"]::before {\\n  background: var(--t-ink);\\n}\\n\\n.tidal-scope .feature-tabs-plan-scene > li > div {\\n  min-width: 0;\\n  display: grid;\\n  gap: 3px;\\n}\\n\\n.tidal-scope .feature-tabs-review-scene {\\n  display: grid;\\n  gap: 14px;\\n}\\n\\n.tidal-scope .feature-tabs-review-header {\\n  display: flex;\\n  justify-content: space-between;\\n  align-items: center;\\n  gap: 12px;\\n  font-size: 11px;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .feature-tabs-review-header span {\\n  color: var(--t-muted);\\n}\\n\\n.tidal-scope .feature-tabs-review-paper {\\n  display: grid;\\n  gap: 10px;\\n  min-height: 144px;\\n  padding: 20px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-subtle);\\n}\\n\\n.tidal-scope .feature-tabs-review-paper span {\\n  height: 10px;\\n  border-radius: 2px;\\n  background: var(--t-border);\\n}\\n\\n.tidal-scope .feature-tabs-review-paper span:nth-child(2) {\\n  width: 78%;\\n}\\n\\n.tidal-scope .feature-tabs-review-paper span:nth-child(3) {\\n  width: 91%;\\n}\\n\\n.tidal-scope .feature-tabs-review-paper span:nth-child(4) {\\n  width: 58%;\\n}\\n\\n.tidal-scope .feature-tabs-review-scene > p {\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .feature-tabs-demo-note {\\n  margin: 0;\\n  padding-inline: 4px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container tidal-feature-tabs (max-width: 420px) {\\n  .tidal-scope .feature-tabs-route-scene > div {\\n    grid-template-columns: 28px minmax(0, 1fr);\\n  }\\n\\n  .tidal-scope .feature-tabs-route-scene > div > small {\\n    grid-column: 2;\\n  }\\n\\n  .tidal-scope .feature-tabs-review-header {\\n    align-items: flex-start;\\n    flex-direction: column;\\n  }\\n}\";\n\nexport function FeatureTabsDemo() {\n  const [value, setValue] = useState(\"route\");\n  const [routed, setRouted] = useState(2);\n  const [planned, setPlanned] = useState(false);\n  const [approved, setApproved] = useState(false);\n  const [note, setNote] = useState(\"\");\n\n  const items: readonly TidalFeatureTab[] = [\n    {\n      id: \"route\",\n      label: \"Route requests\",\n      eyebrow: \"Intake\",\n      title: \"Put the next request in the right hands.\",\n      description:\n        \"Assign an owner and keep the latest context beside the work instead of forwarding another thread.\",\n      detail: `${routed} of 3 sample requests are routed.`,\n      visualLabel: \"Sample request routing queue\",\n      visual: (\n        <div className=\"feature-tabs-scene feature-tabs-route-scene\">\n          {[\"Homepage copy\", \"Launch checklist\", \"Invoice question\"].map(\n            (request, index) => (\n              <div key={request} data-complete={index < routed || undefined}>\n                <span>{String(index + 1).padStart(2, \"0\")}</span>\n                <strong>{request}</strong>\n                <small>{index < routed ? \"Routed\" : \"Needs owner\"}</small>\n              </div>\n            ),\n          )}\n          <label>\n            Owner note\n            <input\n              value={note}\n              onChange={(event) => setNote(event.currentTarget.value)}\n              placeholder=\"Add sample context\"\n            />\n          </label>\n        </div>\n      ),\n      action: {\n        kind: \"button\",\n        label: routed === 3 ? \"Reset sample routing\" : \"Route next request\",\n        onAction: () =>\n          setRouted((current) => (current === 3 ? 2 : current + 1)),\n      },\n    },\n    {\n      id: \"plan\",\n      label: \"Plan the handoff\",\n      eyebrow: \"Ownership\",\n      title: \"Make every handoff visible before work stalls.\",\n      description:\n        \"Keep the current owner, review point and next step together in one compact sequence.\",\n      detail: planned\n        ? \"The sample review is planned for Thursday.\"\n        : \"The sample review still needs a date.\",\n      visualLabel: \"Sample handoff sequence\",\n      visual: (\n        <ol className=\"feature-tabs-scene feature-tabs-plan-scene\">\n          <li data-state=\"complete\">\n            <span>01</span>\n            <div>\n              <strong>Brief ready</strong>\n              <small>Ava · complete</small>\n            </div>\n          </li>\n          <li data-state=\"current\">\n            <span>02</span>\n            <div>\n              <strong>Build in progress</strong>\n              <small>Noah · current</small>\n            </div>\n          </li>\n          <li data-state={planned ? \"complete\" : \"waiting\"}>\n            <span>03</span>\n            <div>\n              <strong>Review</strong>\n              <small>{planned ? \"Thursday · planned\" : \"Date needed\"}</small>\n            </div>\n          </li>\n        </ol>\n      ),\n      action: {\n        kind: \"button\",\n        label: planned ? \"Clear sample plan\" : \"Plan sample review\",\n        onAction: () => setPlanned((current) => !current),\n      },\n    },\n    {\n      id: \"review\",\n      label: \"Close the loop\",\n      eyebrow: \"Review\",\n      title: \"Keep the decision next to the final work.\",\n      description:\n        \"Record the review outcome where the team can see what changed and what is ready to ship.\",\n      detail: approved\n        ? \"The sample revision is approved.\"\n        : \"One sample decision is waiting.\",\n      visualLabel: \"Sample review decision\",\n      visual: (\n        <div className=\"feature-tabs-scene feature-tabs-review-scene\">\n          <div className=\"feature-tabs-review-header\">\n            <span>Revision 03</span>\n            <strong>{approved ? \"Approved\" : \"Ready for review\"}</strong>\n          </div>\n          <div className=\"feature-tabs-review-paper\" aria-hidden=\"true\">\n            <span />\n            <span />\n            <span />\n            <span />\n          </div>\n          <p>\n            {approved\n              ? \"Approved locally. No external workflow was changed.\"\n              : \"The final headline and mobile crop are ready to inspect.\"}\n          </p>\n        </div>\n      ),\n      action: {\n        kind: \"button\",\n        label: approved ? \"Reopen sample\" : \"Approve sample\",\n        onAction: () => setApproved((current) => !current),\n      },\n    },\n  ];\n\n  return (\n    <div className=\"feature-tabs-demo\">\n      <TidalFeatureTabs\n        title=\"Follow the work from request to review.\"\n        description=\"Choose a stage to inspect the connected sample workflow. Nothing advances automatically.\"\n        items={items}\n        value={value}\n        onValueChange={setValue}\n        preservePanels\n      />\n      <p className=\"feature-tabs-demo-note\">\n        Sample data. Changes stay in this preview.\n      </p>\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      <FeatureTabsDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/feature-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": "\"\"",
      "setter": "setNote",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChange",
      "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."
    },
    {
      "name": "onValueChange",
      "nativeType": "component 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": "Consumer-provided label remains required where the component API requires one.",
    "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": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "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": []
}
