{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kanban-board",
  "type": "registry:component",
  "title": "KanbanBoard",
  "description": "A data-driven Kanban board — glass Surface columns with a header, status dot, ticket count, and a stack of small glass ticket cards. Cards rise + fade in on the house spring, staggered across the whole board so it assembles as one calm cascade.",
  "dependencies": [
    "remotion",
    "zod",
    "react"
  ],
  "registryDependencies": [
    "lib-canvas",
    "lib-hooks",
    "lib-primitives"
  ],
  "files": [
    {
      "path": "registry/components/kanban-board/KanbanBoard.tsx",
      "type": "registry:component",
      "target": "components/onda/kanban-board/KanbanBoard.tsx",
      "content": "import React from 'react';\nimport { useVideoConfig } from 'remotion';\nimport { PlacementBox, resolveSize } from '../../../lib/canvas';\nimport { Surface } from '../../../lib/primitives';\nimport { useStaggeredEntrance } from '../../../lib/hooks';\nimport { kanbanBoardSchema, type KanbanBoardProps } from './schema';\n\nexport { kanbanBoardSchema, type KanbanBoardProps };\n\n/**\n * A data-driven Kanban board — glass `Surface` columns, each with a header,\n * a status dot, a ticket count, and a stack of small glass ticket cards. Every\n * card rises + fades in on the house spring, staggered across the whole board\n * (left-to-right, top-to-bottom) so it assembles as one calm cascade rather\n * than popping all at once. The board is static after the entrance — any\n * \"flying ticket\" between columns is the consumer's job, not this component's.\n * Self-contained except the shared `Surface` primitive and the\n * `useStaggeredEntrance` hook.\n *\n * @example\n * <KanbanBoard placement=\"center\" />\n */\nexport const KanbanBoard: React.FC<KanbanBoardProps> = ({\n  columns,\n  width,\n  gap,\n  delay,\n  stagger,\n  fontSize,\n  size,\n  fontFamily,\n  placement,\n}) => {\n  const { width: canvasW, height: canvasH } = useVideoConfig();\n  const headerSize = size ? resolveSize(size, { width: canvasW, height: canvasH }) : fontSize;\n  const cardSize = Math.round(headerSize * 0.82);\n  const dim = 'var(--onda-dim, #8E8E98)';\n  const faint = 'var(--onda-faint, #56565F)';\n  // One hook call, then a per-index entrance — never a hook in a loop. A flat\n  // running index across all cards keeps the cascade reading left-to-right,\n  // top-to-bottom across the whole board.\n  const at = useStaggeredEntrance({ type: 'rise', delay, increment: stagger });\n\n  let cardIndex = 0;\n\n  return (\n    <PlacementBox placement={placement}>\n      <div style={{ display: 'flex', gap, width, alignItems: 'stretch' }}>\n        {columns.map((column, ci) => {\n          const accent = column.accent ?? faint;\n          return (\n            <div key={ci} style={{ flex: 1, minWidth: 0 }}>\n              <Surface variant=\"glass\" padding={Math.round(gap * 0.9)} height=\"100%\">\n                <div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>\n                  {/* Column header — status dot, title, ticket count */}\n                  <div\n                    style={{\n                      display: 'flex',\n                      alignItems: 'center',\n                      gap: 10,\n                      marginBottom: gap,\n                    }}\n                  >\n                    <div\n                      aria-hidden\n                      style={{\n                        width: Math.round(cardSize * 0.42),\n                        height: Math.round(cardSize * 0.42),\n                        borderRadius: '50%',\n                        background: accent,\n                        flexShrink: 0,\n                      }}\n                    />\n                    <div\n                      style={{\n                        color: 'var(--onda-text, #F2F2F4)',\n                        fontFamily,\n                        fontSize: headerSize,\n                        fontWeight: 600,\n                        letterSpacing: '-0.02em',\n                        lineHeight: 1,\n                        flex: 1,\n                        whiteSpace: 'nowrap',\n                        overflow: 'hidden',\n                        textOverflow: 'ellipsis',\n                      }}\n                    >\n                      {column.title}\n                    </div>\n                    <div\n                      style={{\n                        color: column.accent ? accent : faint,\n                        fontFamily: 'var(--onda-font-body, \"Space Grotesk\", sans-serif)',\n                        fontSize: Math.round(cardSize * 0.78),\n                        fontWeight: 500,\n                        letterSpacing: '0.04em',\n                        lineHeight: 1,\n                      }}\n                    >\n                      {column.cards.length}\n                    </div>\n                  </div>\n\n                  {/* Ticket cards */}\n                  <div style={{ display: 'flex', flexDirection: 'column', gap: Math.round(gap * 0.6) }}>\n                    {column.cards.map((label, ti) => {\n                      const entrance = at(cardIndex);\n                      cardIndex += 1;\n                      return (\n                        <div\n                          key={ti}\n                          style={{ opacity: entrance.opacity, transform: entrance.transform }}\n                        >\n                          <Surface variant=\"card\" padding={Math.round(gap * 0.7)} shadow=\"none\">\n                            <div\n                              style={{\n                                display: 'flex',\n                                alignItems: 'center',\n                                gap: 8,\n                              }}\n                            >\n                              <div\n                                aria-hidden\n                                style={{\n                                  width: 3,\n                                  alignSelf: 'stretch',\n                                  minHeight: cardSize,\n                                  borderRadius: 2,\n                                  background: accent,\n                                  opacity: column.accent ? 0.9 : 0.4,\n                                  flexShrink: 0,\n                                }}\n                              />\n                              <div\n                                style={{\n                                  color: dim,\n                                  fontFamily: 'var(--onda-font-body, \"Space Grotesk\", sans-serif)',\n                                  fontSize: cardSize,\n                                  fontWeight: 400,\n                                  lineHeight: 1.35,\n                                }}\n                              >\n                                {label}\n                              </div>\n                            </div>\n                          </Surface>\n                        </div>\n                      );\n                    })}\n                  </div>\n                </div>\n              </Surface>\n            </div>\n          );\n        })}\n      </div>\n    </PlacementBox>\n  );\n};\n\nexport default KanbanBoard;\n"
    },
    {
      "path": "registry/components/kanban-board/schema.ts",
      "type": "registry:component",
      "target": "components/onda/kanban-board/schema.ts",
      "content": "import { z } from 'zod';\nimport { placementSchema, sizeRoleSchema } from '../../../lib/canvas-schemas';\n\n/** A single Kanban column: a header, an optional accent, and its ticket cards. */\nexport const kanbanColumnSchema = z.object({\n  /** Column header (display font), e.g. `'In Progress'`. */\n  title: z.string(),\n  /** Status-dot + count color for this column. Defaults to a neutral dim token; one column should earn the rose. */\n  accent: z.string().optional(),\n  /** Ticket labels — one small glass card per entry, top-to-bottom. */\n  cards: z.array(z.string()).default([]),\n});\n\n/** Inferred type for a single {@link KanbanBoard} column. */\nexport type KanbanColumn = z.infer<typeof kanbanColumnSchema>;\n\n/** Zod schema for {@link KanbanBoard} props. */\nexport const kanbanBoardSchema = z.object({\n  /** Discriminator literal — matches this entry's registry slug. Auto-populated when omitted (`schema.parse({})` works as before). Lets consumers build `z.discriminatedUnion('kind', [...])` directly over onda schemas. */\n  kind: z.literal('kanban-board').default('kanban-board'),\n  /** The columns, laid out left-to-right. Each holds its own ticket cards. */\n  columns: z\n    .array(kanbanColumnSchema)\n    .default([\n      {\n        title: 'Todo',\n        cards: ['Storyboard the intro', 'Source b-roll', 'Write VO script'],\n      },\n      {\n        title: 'In Progress',\n        accent: 'var(--onda-accent, #D96B82)',\n        cards: ['Animate the title card', 'Color-grade scene 2'],\n      },\n      {\n        title: 'Done',\n        cards: ['Lock the edit', 'Render preview', 'Sound pass', 'Export master'],\n      },\n    ]),\n  /** Overall board width in px. Split evenly across the columns. */\n  width: z.number().default(1040),\n  /** Gap between columns (and between cards within a column) in px. */\n  gap: z.number().default(20),\n  /** Frames before the first card enters. */\n  delay: z.number().int().min(0).default(0),\n  /** Frames between successive cards rising in. House stagger is 4. */\n  stagger: z.number().int().min(0).default(4),\n  /** Base column-header font size in px. Wins over `size` if both are passed. */\n  fontSize: z.number().default(22),\n  /** Semantic typography role for the column header — resolves to canvas-aware pixels via the smaller canvas dimension. `fontSize` wins when both are passed. */\n  size: sizeRoleSchema.optional(),\n  /** Onda display font for headers and ticket labels. */\n  fontFamily: z.string().default('var(--onda-font-display, \"Clash Display\", sans-serif)'),\n  /** Where on the canvas this sits. Region (`'center'`, `'upper-third'`, ...) or `{ x, y, anchor }` in 0..1 canvas fractions. Coordinates may be negative or >1 for off-canvas. */\n  placement: placementSchema.optional(),\n});\n\n/** Inferred props for {@link KanbanBoard}. */\nexport type KanbanBoardProps = z.infer<typeof kanbanBoardSchema>;\n"
    },
    {
      "path": "registry/components/kanban-board/kanban-board.meta.json",
      "type": "registry:file",
      "target": "components/onda/kanban-board/kanban-board.meta.json",
      "content": "{\n  \"name\": \"kanban-board\",\n  \"title\": \"KanbanBoard\",\n  \"description\": \"A data-driven Kanban board — glass Surface columns with a header, status dot, ticket count, and a stack of small glass ticket cards. Cards rise + fade in on the house spring, staggered across the whole board so it assembles as one calm cascade.\",\n  \"pickWhen\": \"a workflow / status board view — project management demo, AI agent task list. Use `bento-grid` for non-columnar overviews.\",\n  \"category\": \"interface\",\n  \"tags\": [\n    \"kanban\",\n    \"board\",\n    \"columns\",\n    \"tickets\",\n    \"glass\",\n    \"ui\"\n  ],\n  \"dependencies\": [\n    \"remotion\",\n    \"zod\",\n    \"react\"\n  ]\n}\n"
    },
    {
      "path": "registry/components/kanban-board/README.md",
      "type": "registry:file",
      "target": "components/onda/kanban-board/README.md",
      "content": "# KanbanBoard\n\nA data-driven Kanban board — glass `Surface` columns, each with a header, a status dot, a live ticket count, and a stack of small glass ticket cards. Every card rises + fades in on the house spring, staggered across the whole board (left-to-right, top-to-bottom) so it assembles as one calm cascade rather than popping all at once. Pass `columns` to drive the content; give one column an `accent` to earn the rose. The board is static after the entrance — any \"flying ticket\" between columns is the consumer's job, not this component's. Self-contained except the shared `Surface` primitive and the `useStaggeredEntrance` hook.\n\n## Props\n\n| Prop | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `columns` | `{ title, accent?, cards: string[] }[]` | Todo / In Progress / Done | The columns, laid out left-to-right; each holds its own ticket cards. |\n| `width` | `number` | `1040` | Overall board width; split evenly across columns. |\n| `gap` | `number` | `20` | Gap between columns (and between cards within a column). |\n| `delay` | `number` | `0` | Frames before the first card enters. |\n| `stagger` | `number` | `4` | Frames between successive cards rising in. |\n| `fontSize` | `number` | `22` | Column-header font size; wins over `size`. |\n| `size` | `'hero' \\| 'heading' \\| 'subheading' \\| 'body' \\| 'caption'` | — | Semantic header size; resolves to canvas-aware px. `fontSize` wins when both are passed. |\n| `fontFamily` | `string` | Clash Display | Display font for headers and ticket labels. |\n| `placement` | region or `{x,y,anchor}` | — | Canvas placement. |\n\n## Usage\n\n```tsx\nimport { KanbanBoard } from './components/onda/kanban-board/KanbanBoard';\n\nexport const BoardScene = () => (\n  <KanbanBoard\n    placement=\"center\"\n    columns={[\n      { title: 'Backlog', cards: ['Research', 'Wireframes'] },\n      { title: 'Building', accent: '#D96B82', cards: ['Hero animation'] },\n      { title: 'Shipped', cards: ['Landing page', 'Docs'] },\n    ]}\n  />\n);\n```\n"
    }
  ]
}
