{
  "component": {
    "id": "kanban-board",
    "name": "Kanban board",
    "tier": "pro",
    "exampleId": "kanban-board",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/kanban-board-demo.tsx",
    "exportName": "KanbanBoardDemo",
    "sha256": "b1276377e5215199c7ed698ccf94bad163ae68fcf09a027c7dd9a57ca880c17a",
    "helperImports": [],
    "directComponentImports": [
      "kanban-board"
    ],
    "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/kanban-board",
    "registryUrl": "https://tidalui.com/r/pro/kanban-board.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/kanban-board",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/kanban-board",
      "registryUrl": "https://tidalui.com/r/pro/kanban-board.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/kanban-board.tsx",
    "exports": [
      "TidalKanbanBoard",
      "TidalKanbanCard",
      "TidalKanbanColumn",
      "TidalKanbanMoveRequest"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/kanban-board.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "kanban-board"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/kanban-board.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/kanban-board.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/kanban-board-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useId, useLayoutEffect, useMemo, useRef, useState } from \"react\";\n\nimport { Columns3, RotateCcw } from \"lucide-react\";\n\nimport { TidalKanbanBoard, type TidalKanbanCard, type TidalKanbanColumn, type TidalKanbanMoveRequest } from \"./components/ui/kanban-board\";\n\nimport \"./components/ui/kanban-board.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .kanban-demo,\\n.tidal-scope .kanban-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .kanban-demo {\\n  width: 100%;\\n  max-width: 1220px;\\n  min-width: 0;\\n  overflow: hidden;\\n  border: 1px solid var(--t-border);\\n  border-radius: 22px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  box-shadow: 0 34px 72px -56px #0000008f;\\n  container: kanban-demo / inline-size;\\n}\\n\\n.tidal-scope .kanban-demo-toolbar {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 22px;\\n  padding: 17px 20px;\\n  border-bottom: 1px solid var(--t-border);\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n\\n.tidal-scope .kanban-demo-summary,\\n.tidal-scope .kanban-demo-summary > span {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.tidal-scope .kanban-demo-kicker {\\n  display: block;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 690;\\n  letter-spacing: 0.11em;\\n  line-height: 1.4;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .kanban-demo-toolbar .kanban-demo-kicker {\\n  color: color-mix(in srgb, var(--t-surface) 66%, var(--t-ink));\\n}\\n\\n.tidal-scope .kanban-demo-summary {\\n  flex: none;\\n  gap: 7px;\\n}\\n\\n.tidal-scope .kanban-demo-summary > span {\\n  min-height: 32px;\\n  gap: 5px;\\n  padding: 6px 9px;\\n  border: 1px solid color-mix(in srgb, var(--t-surface) 22%, transparent);\\n  border-radius: 10px;\\n  color: color-mix(in srgb, var(--t-surface) 70%, var(--t-ink));\\n  font-size: 11px;\\n  line-height: 1.2;\\n}\\n\\n.tidal-scope .kanban-demo-summary strong {\\n  color: var(--t-surface);\\n  font-weight: 700;\\n  font-variant-numeric: tabular-nums;\\n}\\n\\n.tidal-scope .kanban-demo-summary button {\\n  display: inline-flex;\\n  min-width: 44px;\\n  min-height: 44px;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 7px;\\n  padding: 8px 11px;\\n  border: 1px solid color-mix(in srgb, var(--t-surface) 28%, transparent);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 650;\\n  cursor: pointer;\\n  transition: transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .kanban-demo-summary button:active {\\n  transform: scale(0.96);\\n}\\n\\n.tidal-scope .kanban-demo-summary button:focus-visible {\\n  outline: 2px solid var(--t-surface);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .kanban-demo-stage {\\n  display: grid;\\n  gap: 13px;\\n  min-width: 0;\\n  padding: 18px;\\n  background:\\n    linear-gradient(var(--t-border) 1px, transparent 1px),\\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\\n    var(--t-subtle);\\n  background-size: 22px 22px;\\n}\\n\\n.tidal-scope .kanban-demo-detail {\\n  display: grid;\\n  min-width: 0;\\n  grid-template-columns: 46px minmax(0, 1fr) auto;\\n  align-items: center;\\n  gap: 13px;\\n  padding: 14px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .kanban-demo-detail-icon {\\n  display: grid;\\n  width: 46px;\\n  height: 46px;\\n  place-items: center;\\n  border-radius: 10px;\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .kanban-demo-detail > div:nth-child(2) {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .kanban-demo-detail h3 {\\n  margin: 5px 0 0;\\n  font-size: 14px;\\n  font-weight: 650;\\n  letter-spacing: -0.025em;\\n  line-height: 1.3;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .kanban-demo-detail p {\\n  margin: 4px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .kanban-demo-detail dl {\\n  display: flex;\\n  gap: 8px;\\n  margin: 0;\\n}\\n\\n.tidal-scope .kanban-demo-detail dl > div {\\n  min-width: 92px;\\n  padding: 8px 10px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-subtle);\\n}\\n\\n.tidal-scope .kanban-demo-detail dt,\\n.tidal-scope .kanban-demo-detail dd {\\n  margin: 0;\\n  font-size: 11px;\\n  line-height: 1.35;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .kanban-demo-detail dt {\\n  color: var(--t-muted);\\n}\\n\\n.tidal-scope .kanban-demo-detail dd {\\n  margin-top: 3px;\\n  color: var(--t-ink);\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .kanban-demo-status {\\n  min-height: 34px;\\n  margin: 0;\\n  padding: 9px 12px;\\n  border-inline-start: 2px solid var(--t-ink);\\n  background: var(--t-surface);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container kanban-demo (max-width: 720px) {\\n  .tidal-scope .kanban-demo-toolbar {\\n    align-items: flex-start;\\n    padding: 14px;\\n  }\\n\\n  .tidal-scope .kanban-demo-summary > span {\\n    display: none;\\n  }\\n\\n  .tidal-scope .kanban-demo-stage {\\n    padding: 12px;\\n  }\\n\\n  .tidal-scope .kanban-demo-detail {\\n    grid-template-columns: 46px minmax(0, 1fr);\\n  }\\n\\n  .tidal-scope .kanban-demo-detail dl {\\n    grid-column: 1 / -1;\\n  }\\n}\\n\\n@container kanban-demo (max-width: 390px) {\\n\\n  .tidal-scope .kanban-demo-summary button {\\n    width: 44px;\\n    padding: 0;\\n    font-size: 0;\\n  }\\n\\n  .tidal-scope .kanban-demo-detail {\\n    grid-template-columns: 1fr;\\n  }\\n\\n  .tidal-scope .kanban-demo-detail-icon {\\n    display: none;\\n  }\\n\\n  .tidal-scope .kanban-demo-detail dl {\\n    display: grid;\\n    grid-template-columns: repeat(2, minmax(0, 1fr));\\n  }\\n\\n  .tidal-scope .kanban-demo-detail dl > div {\\n    min-width: 0;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .kanban-demo-summary button {\\n    transition-duration: 0.01ms;\\n  }\\n}\";\n\ntype ColumnId = \"backlog\" | \"progress\" | \"review\";\n\ntype CardId = \"brief\" | \"empty\" | \"navigation\" | \"tokens\" | \"qa\";\n\nconst COLUMN_DEFINITIONS: readonly {\n  id: ColumnId;\n  title: string;\n  description: string;\n}[] = [\n  { id: \"backlog\", title: \"Backlog\", description: \"Ready to start\" },\n  { id: \"progress\", title: \"In progress\", description: \"Active local work\" },\n  { id: \"review\", title: \"Review\", description: \"Waiting for a read\" },\n];\n\nconst CARD_LIBRARY: Record<CardId, Omit<TidalKanbanCard, \"footer\">> = {\n  brief: {\n    id: \"brief\",\n    title: \"Confirm the page brief\",\n    accessibleName: \"Confirm the page brief\",\n    eyebrow: \"PLAN-12\",\n    description: \"Resolve the final section order before implementation.\",\n    tags: [\"Brief\", \"Structure\"],\n    meta: \"Owner: Rowan · Sample priority: standard\",\n  },\n  empty: {\n    id: \"empty\",\n    title: \"Write the empty state\",\n    accessibleName: \"Write the empty state\",\n    eyebrow: \"COPY-08\",\n    description: \"Draft concise local copy for the zero-item view.\",\n    tags: [\"Copy\"],\n    meta: \"Owner: Mina · One sample note\",\n  },\n  navigation: {\n    id: \"navigation\",\n    title: \"Build mobile navigation\",\n    accessibleName: \"Build mobile navigation\",\n    eyebrow: \"BUILD-24\",\n    description: \"Keep every destination available at compact widths.\",\n    tags: [\"Mobile\", \"Navigation\"],\n    meta: \"Owner: Jules · Sample viewport: 390px\",\n  },\n  tokens: {\n    id: \"tokens\",\n    title: \"Reconcile spacing tokens\",\n    accessibleName: \"Reconcile spacing tokens\",\n    eyebrow: \"SYSTEM-06\",\n    description: \"Compare component spacing with the neutral token scale.\",\n    tags: [\"System\"],\n    meta: \"Owner: Rowan · Local reference only\",\n  },\n  qa: {\n    id: \"qa\",\n    title: \"Review keyboard movement\",\n    accessibleName: \"Review keyboard movement\",\n    eyebrow: \"QA-19\",\n    description: \"Exercise both native move buttons and the status update.\",\n    tags: [\"Keyboard\", \"Review\"],\n    meta: \"Owner: Mina · No device claim\",\n  },\n};\n\nconst INITIAL_BOARD: Record<ColumnId, readonly CardId[]> = {\n  backlog: [\"brief\", \"empty\"],\n  progress: [\"navigation\", \"tokens\"],\n  review: [\"qa\"],\n};\n\nexport function KanbanBoardDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const detailTitleId = `kanban-demo-${generatedId}-detail-title`;\n  const [board, setBoard] = useState(INITIAL_BOARD);\n  const [selectedId, setSelectedId] = useState<CardId>(\"navigation\");\n  const [message, setMessage] = useState(\n    \"Use a card's arrow buttons to move it between adjacent columns.\",\n  );\n  const resetRef = useRef<HTMLButtonElement>(null);\n  const cardNodes = useRef(new Map<CardId, HTMLElement>());\n  const moveFocus = useRef<{\n    id: CardId;\n    direction: \"previous\" | \"next\";\n  } | null>(null);\n\n  useLayoutEffect(() => {\n    const intent = moveFocus.current;\n    if (!intent) return;\n    moveFocus.current = null;\n    const card = cardNodes.current.get(intent.id);\n    const target =\n      card?.querySelector<HTMLButtonElement>(\n        `button[data-direction=\"${intent.direction}\"]:not(:disabled)`,\n      ) ?? card?.querySelector<HTMLButtonElement>(\"button:not(:disabled)\");\n    target?.focus({ preventScroll: true });\n  }, [board]);\n\n  const columns = useMemo<readonly TidalKanbanColumn[]>(\n    () =>\n      COLUMN_DEFINITIONS.map((definition) => ({\n        ...definition,\n        accessibleName: definition.title,\n        cards: board[definition.id].map((cardId) => {\n          const card = CARD_LIBRARY[cardId];\n          return {\n            ...card,\n            cardRef: (node) => {\n              if (node) cardNodes.current.set(cardId, node);\n              else cardNodes.current.delete(cardId);\n            },\n            footer: (\n              <button\n                type=\"button\"\n                aria-pressed={selectedId === cardId}\n                onClick={() => {\n                  setSelectedId(cardId);\n                  setMessage(`${card.accessibleName} details selected.`);\n                }}\n              >\n                Details\n              </button>\n            ),\n          };\n        }),\n      })),\n    [board, selectedId],\n  );\n\n  function moveCard(request: TidalKanbanMoveRequest) {\n    const fromId = request.fromColumn.id as ColumnId;\n    const toId = request.toColumn.id as ColumnId;\n    const cardId = request.card.id as CardId;\n    moveFocus.current = { id: cardId, direction: request.direction };\n    setBoard((current) => ({\n      ...current,\n      [fromId]: current[fromId].filter((id) => id !== cardId),\n      [toId]: [...current[toId], cardId],\n    }));\n    setSelectedId(cardId);\n    setMessage(\n      `${request.card.accessibleName} moved to ${request.toColumn.accessibleName} in this local preview.`,\n    );\n  }\n\n  function resetBoard() {\n    moveFocus.current = null;\n    setBoard(INITIAL_BOARD);\n    setSelectedId(\"navigation\");\n    setMessage(\"The local sample board was reset.\");\n    resetRef.current?.focus({ preventScroll: true });\n  }\n\n  const selectedCard = CARD_LIBRARY[selectedId];\n  const selectedColumn = COLUMN_DEFINITIONS.find((column) =>\n    board[column.id].includes(selectedId),\n  );\n  const totalCards = Object.values(board).reduce(\n    (count, cardIds) => count + cardIds.length,\n    0,\n  );\n\n  return (\n    <section className=\"kanban-demo\" aria-label=\"Kanban board preview\">\n      <header className=\"kanban-demo-toolbar\">\n        <div className=\"kanban-demo-summary\" aria-label=\"Sample board totals\">\n          <span>\n            <strong>{totalCards}</strong> cards\n          </span>\n          <span>\n            <strong>{columns.length}</strong> columns\n          </span>\n          <button ref={resetRef} type=\"button\" onClick={resetBoard}>\n            <RotateCcw size={15} aria-hidden=\"true\" />\n            Reset\n          </button>\n        </div>\n      </header>\n\n      <div className=\"kanban-demo-stage\">\n        <TidalKanbanBoard\n          title=\"Product delivery\"\n          eyebrow={null}\n          description=\"Move cards between the three delivery stages.\"\n          columns={columns}\n          onMoveCard={moveCard}\n          footer={\n            <span>\n              Fictional local data. Moving a card changes only this rendered\n              React state.\n            </span>\n          }\n        />\n\n        <aside className=\"kanban-demo-detail\" aria-labelledby={detailTitleId}>\n          <div className=\"kanban-demo-detail-icon\" aria-hidden=\"true\">\n            <Columns3 size={18} />\n          </div>\n          <div>\n            <span className=\"kanban-demo-kicker\">SELECTED CARD</span>\n            <h3 id={detailTitleId}>{selectedCard.title}</h3>\n            <p>{selectedCard.description}</p>\n          </div>\n          <dl>\n            <div>\n              <dt>Column</dt>\n              <dd>{selectedColumn?.title}</dd>\n            </div>\n            <div>\n              <dt>Reference</dt>\n              <dd>{selectedCard.eyebrow}</dd>\n            </div>\n          </dl>\n        </aside>\n\n        <p className=\"kanban-demo-status\" role=\"status\" aria-live=\"polite\">\n          {message}\n        </p>\n      </div>\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      <KanbanBoardDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/kanban-board.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."
    },
    {
      "name": "onMoveCard",
      "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": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "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": []
}
