{
  "component": {
    "id": "feature-comparison-table",
    "name": "Feature comparison table",
    "tier": "pro",
    "exampleId": "feature-comparison-table",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/feature-comparison-table-demo.tsx",
    "exportName": "FeatureComparisonTableDemo",
    "sha256": "a82b971e93727cc9490630eaf1b6528f24c1eac7a78ec0447166b646ec1c52f5",
    "helperImports": [],
    "directComponentImports": [
      "feature-comparison-table"
    ],
    "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-comparison-table",
    "registryUrl": "https://tidalui.com/r/pro/feature-comparison-table.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-comparison-table",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/feature-comparison-table",
      "registryUrl": "https://tidalui.com/r/pro/feature-comparison-table.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/feature-comparison-table.tsx",
    "exports": [
      "TidalComparisonColumn",
      "TidalComparisonFeature",
      "TidalFeatureComparisonTable"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/feature-comparison-table.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "feature-comparison-table"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/feature-comparison-table.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/feature-comparison-table.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/feature-comparison-table-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useMemo, useState } from \"react\";\n\nimport { TidalFeatureComparisonTable, type TidalComparisonColumn, type TidalComparisonFeature } from \"./components/ui/feature-comparison-table\";\n\nimport \"./components/ui/feature-comparison-table.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .feature-comparison-demo {\\n  width: min(100%, 1080px);\\n  margin-inline: auto;\\n}\\n\\n.tidal-scope .feature-comparison-demo-switcher {\\n  display: flex;\\n  width: fit-content;\\n  max-width: 100%;\\n  gap: 3px;\\n  margin: 0 auto 14px;\\n  padding: 3px;\\n  background: var(--t-subtle);\\n  border: 1px solid var(--t-border);\\n  border-radius: 13px;\\n}\\n\\n.tidal-scope .feature-comparison-demo-switcher button {\\n  min-width: 0;\\n  min-height: 44px;\\n  padding: 8px 15px;\\n  color: var(--t-muted);\\n  background: transparent;\\n  border: 0;\\n  border-radius: var(--t-radius-control);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 720;\\n  line-height: 1.25;\\n  cursor: pointer;\\n  overflow-wrap: anywhere;\\n  transition:\\n    color 180ms,\\n    background 180ms,\\n    box-shadow 180ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .feature-comparison-demo-switcher button[aria-pressed=\\\"true\\\"] {\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n  box-shadow:\\n    0 0 0 1px var(--t-border),\\n    0 5px 14px -11px #000000a6;\\n}\\n\\n.tidal-scope .feature-comparison-demo-switcher button:active {\\n  transform: scale(0.97);\\n}\\n\\n.tidal-scope .feature-comparison-demo-switcher button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 2px;\\n}\\n\\n.tidal-scope .feature-comparison-demo-status {\\n  min-height: 1.4em;\\n  margin: 11px 6px 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.4;\\n  text-align: center;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .feature-comparison-demo-notes {\\n  display: grid;\\n  grid-template-columns: auto minmax(0, 1fr);\\n  gap: 10px 16px;\\n  margin-top: 12px;\\n  padding: 15px 17px;\\n  color: var(--t-muted);\\n  background: var(--t-subtle);\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-control);\\n  font-size: 11px;\\n  line-height: 1.45;\\n  scroll-margin-block: 20px;\\n}\\n\\n.tidal-scope .feature-comparison-demo-notes strong {\\n  color: var(--t-ink);\\n  font-weight: 760;\\n}\\n\\n.tidal-scope .feature-comparison-demo-notes span {\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .feature-comparison-demo-notes:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n@container tidal-feature-comparison (max-width: 430px) {\\n  .tidal-scope .feature-comparison-demo-switcher {\\n    width: 100%;\\n  }\\n\\n  .tidal-scope .feature-comparison-demo-switcher button {\\n    flex: 1 1 0;\\n    padding-inline: 10px;\\n  }\\n\\n  .tidal-scope .feature-comparison-demo-notes {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\\n\\n@media (hover: none), (pointer: coarse) {\\n  .tidal-scope .feature-comparison-demo-switcher button {\\n    font-size: 16px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .feature-comparison-demo-switcher button {\\n    transition-duration: 0s;\\n  }\\n\\n  .tidal-scope .feature-comparison-demo-switcher button:active {\\n    transform: none;\\n  }\\n}\";\n\ntype ComparisonId = \"workspace\" | \"review\";\n\nconst FEATURES: Record<ComparisonId, readonly TidalComparisonFeature[]> = {\n  workspace: [\n    {\n      id: \"organize\",\n      label: \"Primary organization\",\n      description: \"How sample work is arranged\",\n      values: {\n        board: { kind: \"text\", value: \"Status columns\" },\n        list: { kind: \"text\", value: \"Ordered rows\" },\n        calendar: { kind: \"text\", value: \"Dated entries\" },\n      },\n    },\n    {\n      id: \"reorder\",\n      label: \"Direct reordering\",\n      values: {\n        board: { kind: \"available\" },\n        list: { kind: \"available\" },\n        calendar: { kind: \"unavailable\" },\n      },\n    },\n    {\n      id: \"dates\",\n      label: \"Date context\",\n      values: {\n        board: { kind: \"text\", value: \"Card detail\" },\n        list: { kind: \"text\", value: \"Date column\" },\n        calendar: { kind: \"available\", label: \"Visible on canvas\" },\n      },\n    },\n    {\n      id: \"scan\",\n      label: \"Useful for\",\n      description: \"Fictional sample use case\",\n      values: {\n        board: { kind: \"text\", value: \"Work stages\" },\n        list: { kind: \"text\", value: \"Dense review\" },\n        calendar: { kind: \"text\", value: \"Scheduled work\" },\n      },\n    },\n  ],\n  review: [\n    {\n      id: \"structure\",\n      label: \"Review structure\",\n      values: {\n        thread: { kind: \"text\", value: \"Nested replies\" },\n        queue: { kind: \"text\", value: \"Ordered decisions\" },\n        log: { kind: \"text\", value: \"Chronological entries\" },\n      },\n    },\n    {\n      id: \"decision\",\n      label: \"Explicit decision state\",\n      values: {\n        thread: { kind: \"unavailable\" },\n        queue: { kind: \"available\", label: \"Approve or return\" },\n        log: { kind: \"unavailable\" },\n      },\n    },\n    {\n      id: \"context\",\n      label: \"Discussion context\",\n      values: {\n        thread: { kind: \"available\" },\n        queue: { kind: \"text\", value: \"Decision note\" },\n        log: { kind: \"text\", value: \"Entry detail\" },\n      },\n    },\n    {\n      id: \"scan\",\n      label: \"Useful for\",\n      description: \"Fictional sample use case\",\n      values: {\n        thread: { kind: \"text\", value: \"Open discussion\" },\n        queue: { kind: \"text\", value: \"Formal review\" },\n        log: { kind: \"text\", value: \"Change history\" },\n      },\n    },\n  ],\n};\n\nexport function FeatureComparisonTableDemo() {\n  const instanceId = useId().replace(/:/g, \"\");\n  const [comparison, setComparison] = useState<ComparisonId>(\"workspace\");\n  const [selected, setSelected] = useState(\"board\");\n  const [message, setMessage] = useState(\n    \"Board view is selected for this local sample.\",\n  );\n  const notesId = `feature-comparison-notes-${instanceId}`;\n\n  const columns = useMemo<readonly TidalComparisonColumn[]>(() => {\n    const choose = (id: string, label: string) => ({\n      kind: \"button\" as const,\n      id: `choose-${id}`,\n      label: selected === id ? \"Selected locally\" : `Choose ${label}`,\n      accessibleLabel: `Choose ${label} for the local sample`,\n      variant: selected === id ? (\"primary\" as const) : (\"secondary\" as const),\n      buttonProps: { \"aria-pressed\": selected === id },\n      onAction: () => {\n        setSelected(id);\n        setMessage(`${label} is selected for this local sample.`);\n      },\n    });\n\n    if (comparison === \"workspace\") {\n      return [\n        {\n          id: \"board\",\n          label: \"Board view\",\n          accessibleLabel: \"Board view\",\n          description: \"Grouped by workflow state\",\n          badge: selected === \"board\" ? \"Selected\" : undefined,\n          action: choose(\"board\", \"Board view\"),\n        },\n        {\n          id: \"list\",\n          label: \"List view\",\n          accessibleLabel: \"List view\",\n          description: \"Rows with visible fields\",\n          badge: selected === \"list\" ? \"Selected\" : undefined,\n          action: choose(\"list\", \"List view\"),\n        },\n        {\n          id: \"calendar\",\n          label: \"Calendar view\",\n          accessibleLabel: \"Calendar view\",\n          description: \"Work arranged by date\",\n          badge: selected === \"calendar\" ? \"Selected\" : undefined,\n          action: {\n            kind: \"link\",\n            id: \"calendar-notes\",\n            label: \"Read sample notes\",\n            accessibleLabel: \"Read Calendar view sample notes\",\n            href: `#${notesId}`,\n          },\n        },\n      ];\n    }\n\n    return [\n      {\n        id: \"thread\",\n        label: \"Comment thread\",\n        accessibleLabel: \"Comment thread\",\n        description: \"Conversation beside work\",\n        badge: selected === \"thread\" ? \"Selected\" : undefined,\n        action: choose(\"thread\", \"Comment thread\"),\n      },\n      {\n        id: \"queue\",\n        label: \"Approval queue\",\n        accessibleLabel: \"Approval queue\",\n        description: \"Items awaiting a decision\",\n        badge: selected === \"queue\" ? \"Selected\" : undefined,\n        action: choose(\"queue\", \"Approval queue\"),\n      },\n      {\n        id: \"log\",\n        label: \"Change log\",\n        accessibleLabel: \"Change log\",\n        description: \"A dated record of changes\",\n        badge: selected === \"log\" ? \"Selected\" : undefined,\n        action: {\n          kind: \"link\",\n          id: \"log-notes\",\n          label: \"Read sample notes\",\n          accessibleLabel: \"Read Change log sample notes\",\n          href: `#${notesId}`,\n        },\n      },\n    ];\n  }, [comparison, notesId, selected]);\n\n  function changeComparison(next: ComparisonId) {\n    setComparison(next);\n    const nextSelected = next === \"workspace\" ? \"board\" : \"thread\";\n    setSelected(nextSelected);\n    setMessage(\n      next === \"workspace\"\n        ? \"Workspace view comparison loaded locally.\"\n        : \"Review format comparison loaded locally.\",\n    );\n  }\n\n  return (\n    <section\n      className=\"feature-comparison-demo\"\n      aria-label=\"Feature comparison table preview\"\n    >\n      <div\n        className=\"feature-comparison-demo-switcher\"\n        aria-label=\"Sample comparison\"\n      >\n        <button\n          type=\"button\"\n          aria-pressed={comparison === \"workspace\"}\n          onClick={() => changeComparison(\"workspace\")}\n        >\n          Workspace views\n        </button>\n        <button\n          type=\"button\"\n          aria-pressed={comparison === \"review\"}\n          onClick={() => changeComparison(\"review\")}\n        >\n          Review formats\n        </button>\n      </div>\n\n      <TidalFeatureComparisonTable\n        title={\n          comparison === \"workspace\"\n            ? \"Compare workspace views\"\n            : \"Compare review formats\"\n        }\n        caption={\n          comparison === \"workspace\"\n            ? \"Fictional comparison of Board, List and Calendar workspace views\"\n            : \"Fictional comparison of Comment thread, Approval queue and Change log review formats\"\n        }\n        description=\"Switch the sample, compare literal capabilities, and choose one option in local preview state.\"\n        columns={columns}\n        features={FEATURES[comparison]}\n        footer=\"Fictional comparison data and local React state. No workspace, account, request, storage, or backend is connected.\"\n      />\n\n      <p\n        className=\"feature-comparison-demo-status\"\n        role=\"status\"\n        aria-live=\"polite\"\n      >\n        {message}\n      </p>\n      <aside\n        id={notesId}\n        className=\"feature-comparison-demo-notes\"\n        tabIndex={-1}\n      >\n        <strong>Sample notes</strong>\n        <span>\n          Each format shows a different arrangement of the same fictional work.\n          This link changes only the page position.\n        </span>\n      </aside>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <FeatureComparisonTableDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/feature-comparison-table.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": "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": []
}
