@uibot/registry 0.6.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/index.js +9 -9
  2. package/dist/shadcn/r/admin-dashboard.json +70 -0
  3. package/dist/shadcn/r/admin-shell.json +148 -0
  4. package/dist/shadcn/r/ai-chat.json +74 -0
  5. package/dist/shadcn/r/analytics-dashboard.json +65 -0
  6. package/dist/shadcn/r/app-shell-floating.json +54 -0
  7. package/dist/shadcn/r/app-shell-icon-rail.json +54 -0
  8. package/dist/shadcn/r/app-shell-inset.json +54 -0
  9. package/dist/shadcn/r/app-shell-settings.json +54 -0
  10. package/dist/shadcn/r/app-shell-sidebar.json +54 -0
  11. package/dist/shadcn/r/app-shell-workspace.json +54 -0
  12. package/dist/shadcn/r/auth.json +61 -0
  13. package/dist/shadcn/r/blog.json +64 -0
  14. package/dist/shadcn/r/charts.json +211 -0
  15. package/dist/shadcn/r/content.json +444 -0
  16. package/dist/shadcn/r/creation-html-generation.json +29 -0
  17. package/dist/shadcn/r/creation-reference-generation.json +29 -0
  18. package/dist/shadcn/r/creation-revision-export.json +27 -0
  19. package/dist/shadcn/r/creation-shared.json +24 -0
  20. package/dist/shadcn/r/creation-workspace.json +33 -0
  21. package/dist/shadcn/r/crm.json +67 -0
  22. package/dist/shadcn/r/dashboard.json +147 -0
  23. package/dist/shadcn/r/data-studio.json +368 -0
  24. package/dist/shadcn/r/data-table.json +224 -0
  25. package/dist/shadcn/r/data.json +320 -0
  26. package/dist/shadcn/r/ecommerce.json +65 -0
  27. package/dist/shadcn/r/feedback.json +300 -0
  28. package/dist/shadcn/r/field.json +164 -0
  29. package/dist/shadcn/r/form.json +425 -0
  30. package/dist/shadcn/r/grid.json +188 -0
  31. package/dist/shadcn/r/interactive.json +355 -0
  32. package/dist/shadcn/r/kanban.json +154 -0
  33. package/dist/shadcn/r/layout.json +529 -0
  34. package/dist/shadcn/r/lms.json +74 -0
  35. package/dist/shadcn/r/marketing.json +402 -0
  36. package/dist/shadcn/r/nav.json +257 -0
  37. package/dist/shadcn/r/portfolio.json +62 -0
  38. package/dist/shadcn/r/presentation.json +454 -0
  39. package/dist/shadcn/r/pricing.json +63 -0
  40. package/dist/shadcn/r/primitives.json +360 -0
  41. package/dist/shadcn/r/saas-landing.json +60 -0
  42. package/dist/shadcn/r/sections.json +734 -0
  43. package/dist/shadcn/r/settings.json +72 -0
  44. package/dist/shadcn/r/shadcn-admin-shell.json +49 -0
  45. package/dist/shadcn/r/shadcn-admin.json +76 -0
  46. package/dist/shadcn/r/store.json +75 -0
  47. package/dist/shadcn/r/support-inbox.json +63 -0
  48. package/dist/shadcn/r/team-directory.json +59 -0
  49. package/dist/shadcn/r/uibot-base.json +30 -0
  50. package/dist/shadcn/r/uibot-theme.json +86 -0
  51. package/dist/shadcn/r/workspace.json +174 -0
  52. package/dist/shadcn/registry.json +615 -0
  53. package/dist/shadcn.d.ts +10 -5
  54. package/package.json +2 -2
@@ -0,0 +1,368 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "data-studio",
4
+ "type": "registry:ui",
5
+ "description": "Responsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.",
6
+ "dependencies": [
7
+ "react"
8
+ ],
9
+ "registryDependencies": [
10
+ "@uibot/uibot-base"
11
+ ],
12
+ "files": [
13
+ {
14
+ "path": "components/uibot/data-studio.tsx",
15
+ "target": "components/uibot/data-studio.tsx",
16
+ "content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n// ── StatGrid ────────────────────────────────────────────────────────────────\n\n// Static literal class maps — see grid.tsx for the Tailwind purge rationale.\nconst STAT_COLS: Record<string, string> = {\n \"1\": \"grid-cols-1\",\n \"2\": \"grid-cols-1 sm:grid-cols-2\",\n \"3\": \"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3\",\n \"4\": \"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4\",\n auto: \"grid-cols-[repeat(auto-fit,minmax(180px,1fr))]\",\n};\n\ninterface StatItem {\n label?: string | undefined;\n value?: unknown;\n change?: string | undefined;\n trend?: \"up\" | \"down\" | undefined;\n description?: string | undefined;\n}\n\nfunction parseStatItems(raw: unknown): StatItem[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .filter((it): it is Record<string, unknown> => Boolean(it) && typeof it === \"object\")\n .map((it) => ({\n label: typeof it[\"label\"] === \"string\" ? it[\"label\"] : undefined,\n value: it[\"value\"],\n change: typeof it[\"change\"] === \"string\" ? it[\"change\"] : undefined,\n trend: it[\"trend\"] === \"up\" || it[\"trend\"] === \"down\" ? it[\"trend\"] : undefined,\n description: typeof it[\"description\"] === \"string\" ? it[\"description\"] : undefined,\n }));\n}\n\n/**\n * Responsive grid of KPI cards. Prefers rendered `children` (e.g. existing Stat\n * blocks); when there are none it falls back to inline rendering of `items`.\n */\nexport const StatGrid: RendererComponent = (props, ctx) => {\n const cols = String(props[\"cols\"] ?? \"auto\");\n const colsCls = STAT_COLS[cols] ?? STAT_COLS[\"auto\"];\n const children = ctx.children as ReactNode[];\n const items = parseStatItems(props[\"items\"]);\n\n return (\n <div className={cn(\"uibot-stat-grid grid gap-4\", colsCls)} data-uibot-type=\"StatGrid\">\n {children.length > 0\n ? children\n : items.map((it, i) => (\n <div key={i} className=\"bg-card text-card-foreground rounded-xl border p-5 shadow-sm\">\n <p className=\"text-sm font-medium text-muted-foreground\">{it.label ?? \"Stat\"}</p>\n <p className=\"mt-1.5 text-3xl font-bold tracking-tight\">\n {it.value !== undefined ? String(it.value) : \"—\"}\n </p>\n {(it.change || it.description) && (\n <div className=\"mt-1.5 flex items-center gap-1.5\">\n {it.change && (\n <span\n className={cn(\n \"text-xs font-medium\",\n it.trend === \"up\"\n ? \"text-green-600\"\n : it.trend === \"down\"\n ? \"text-destructive\"\n : \"text-muted-foreground\",\n )}\n >\n {it.change}\n </span>\n )}\n {it.description && (\n <span className=\"text-xs text-muted-foreground\">{it.description}</span>\n )}\n </div>\n )}\n </div>\n ))}\n </div>\n );\n};\n\n// ── DiagnosticsList ───────────────────────────────────────────────────────────\n\ntype Level = \"info\" | \"warn\" | \"error\";\n\nconst LEVEL_BAR: Record<Level, string> = {\n info: \"border-l-sky-500\",\n warn: \"border-l-amber-500\",\n error: \"border-l-destructive\",\n};\n\nconst LEVEL_ICON: Record<Level, string> = {\n info: \"ℹ\",\n warn: \"⚠\",\n error: \"✕\",\n};\n\nconst LEVEL_ICON_COLOR: Record<Level, string> = {\n info: \"text-sky-500\",\n warn: \"text-amber-500\",\n error: \"text-destructive\",\n};\n\ninterface Diagnostic {\n level: Level;\n title: string;\n detail?: string | undefined;\n}\n\nfunction parseDiagnostics(raw: unknown): Diagnostic[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .filter((it): it is Record<string, unknown> => Boolean(it) && typeof it === \"object\")\n .map((it) => {\n const level: Level = it[\"level\"] === \"warn\" || it[\"level\"] === \"error\" ? it[\"level\"] : \"info\";\n return {\n level,\n title: typeof it[\"title\"] === \"string\" ? it[\"title\"] : \"\",\n detail: typeof it[\"detail\"] === \"string\" ? it[\"detail\"] : undefined,\n };\n });\n}\n\n/** Levelled diagnostics list with a coloured left bar + glyph per severity. */\nexport const DiagnosticsList: RendererComponent = (props) => {\n const items = parseDiagnostics(props[\"items\"]);\n return (\n <ul className=\"uibot-diagnostics space-y-2\" data-uibot-type=\"DiagnosticsList\">\n {items.map((d, i) => (\n <li\n key={i}\n className={cn(\"flex gap-3 rounded-md border border-l-4 bg-card p-3\", LEVEL_BAR[d.level])}\n >\n <span className={cn(\"text-sm leading-5\", LEVEL_ICON_COLOR[d.level])} aria-hidden=\"true\">\n {LEVEL_ICON[d.level]}\n </span>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-medium text-foreground\">{d.title}</p>\n {d.detail && <p className=\"text-xs text-muted-foreground\">{d.detail}</p>}\n </div>\n </li>\n ))}\n {items.length === 0 && (\n <li className=\"rounded-md border border-dashed py-6 text-center text-sm text-muted-foreground\">\n No diagnostics\n </li>\n )}\n </ul>\n );\n};\n\n// ── Matrix / Heatmap ──────────────────────────────────────────────────────────\n\nfunction toStringArray(raw: unknown): string[] {\n return Array.isArray(raw) ? raw.map((v) => String(v)) : [];\n}\n\nfunction toCellGrid(raw: unknown): number[][] {\n if (!Array.isArray(raw)) return [];\n return raw.map((row) =>\n Array.isArray(row) ? row.map((v) => (typeof v === \"number\" ? v : Number(v) || 0)) : [],\n );\n}\n\n/**\n * Two-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map\n * to a `color-mix` of the primary token via inline style (avoids dynamic class\n * purge). Use `showValues` to print the numeric value inside each cell.\n */\nexport const Matrix: RendererComponent = (props) => {\n const rows = toStringArray(props[\"rows\"]);\n const cols = toStringArray(props[\"cols\"]);\n const cells = toCellGrid(props[\"cells\"]);\n const caption = typeof props[\"caption\"] === \"string\" ? props[\"caption\"] : undefined;\n const showValues = props[\"showValues\"] === true;\n\n return (\n <div className=\"uibot-matrix w-full overflow-auto rounded-lg border\" data-uibot-type=\"Matrix\">\n <table className=\"w-full border-collapse text-sm\" aria-label={caption}>\n {caption && <caption className=\"py-2 text-sm text-muted-foreground\">{caption}</caption>}\n <thead>\n <tr>\n <th className=\"bg-muted/50 px-3 py-2\" />\n {cols.map((col, i) => (\n <th\n key={i}\n scope=\"col\"\n className=\"bg-muted/50 px-3 py-2 text-xs font-medium uppercase tracking-wide text-muted-foreground\"\n >\n {col}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.map((rowLabel, r) => (\n <tr key={r}>\n <th\n scope=\"row\"\n className=\"whitespace-nowrap bg-muted/30 px-3 py-2 text-left text-xs font-medium text-muted-foreground\"\n >\n {rowLabel}\n </th>\n {cols.map((_, c) => {\n const v = Math.max(0, Math.min(1, cells[r]?.[c] ?? 0));\n return (\n <td\n key={c}\n className=\"px-3 py-2 text-center text-xs tabular-nums\"\n title={String(v)}\n style={{\n backgroundColor: `color-mix(in srgb, var(--primary) ${(v * 100).toFixed(0)}%, transparent)`,\n }}\n >\n {showValues ? v.toFixed(2) : \"\"}\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n};\n\n/** Alias of {@link Matrix} for specs that prefer the Heatmap name. */\nexport const Heatmap = Matrix;\n\n// ── TimelineList ──────────────────────────────────────────────────────────────\n\ntype TimelineStatus = \"ok\" | \"warn\" | \"error\";\n\nconst TIMELINE_DOT: Record<TimelineStatus, string> = {\n ok: \"bg-primary\",\n warn: \"bg-amber-500\",\n error: \"bg-destructive\",\n};\n\ninterface TimelineItem {\n time: string;\n title: string;\n desc?: string | undefined;\n status?: TimelineStatus | undefined;\n}\n\nfunction parseTimelineItems(raw: unknown): TimelineItem[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .filter((it): it is Record<string, unknown> => Boolean(it) && typeof it === \"object\")\n .map((it) => {\n const status =\n it[\"status\"] === \"warn\" || it[\"status\"] === \"error\" || it[\"status\"] === \"ok\"\n ? (it[\"status\"] as TimelineStatus)\n : undefined;\n return {\n time: typeof it[\"time\"] === \"string\" ? it[\"time\"] : \"\",\n title: typeof it[\"title\"] === \"string\" ? it[\"title\"] : \"\",\n desc: typeof it[\"desc\"] === \"string\" ? it[\"desc\"] : undefined,\n status,\n };\n });\n}\n\n/** Vertical timeline with a left rail and a status dot per item. */\nexport const TimelineList: RendererComponent = (props) => {\n const items = parseTimelineItems(props[\"items\"]);\n return (\n <ol className=\"uibot-timeline relative space-y-4 border-l pl-5\" data-uibot-type=\"TimelineList\">\n {items.map((it, i) => (\n <li key={i} className=\"relative\">\n <span\n className={cn(\n \"absolute -left-[23px] top-1 h-2.5 w-2.5 rounded-full ring-2 ring-background\",\n TIMELINE_DOT[it.status ?? \"ok\"],\n )}\n aria-hidden=\"true\"\n />\n <div className=\"flex items-baseline gap-2\">\n <p className=\"text-sm font-medium text-foreground\">{it.title}</p>\n {it.time && <span className=\"text-xs text-muted-foreground\">{it.time}</span>}\n </div>\n {it.desc && <p className=\"mt-0.5 text-xs text-muted-foreground\">{it.desc}</p>}\n </li>\n ))}\n {items.length === 0 && <li className=\"text-sm text-muted-foreground\">No events</li>}\n </ol>\n );\n};\n",
17
+ "type": "registry:ui"
18
+ },
19
+ {
20
+ "path": "components/uibot/data-studio.uibot.json",
21
+ "target": "components/uibot/data-studio.uibot.json",
22
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"data-studio\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"DiagnosticsList\",\n \"export\": \"DiagnosticsList\",\n \"module\": \"data-studio.tsx\",\n \"catalog\": {\n \"name\": \"DiagnosticsList\",\n \"description\": \"Levelled diagnostics list with a coloured left bar and glyph per severity (info / warn / error).\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"diagnostics\",\n \"list\",\n \"status\",\n \"overview\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"level\": {\n \"type\": \"string\",\n \"enum\": [\n \"info\",\n \"warn\",\n \"error\"\n ]\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"detail\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"[{level, title, detail?}]\"\n }\n },\n \"usageScenarios\": [\n \"Overview page diagnostics slot\",\n \"Spec validation results list\"\n ],\n \"constraints\": [\n \"level defaults to 'info' when omitted or unrecognised\"\n ]\n }\n },\n {\n \"name\": \"Heatmap\",\n \"export\": \"Heatmap\",\n \"module\": \"data-studio.tsx\",\n \"catalog\": {\n \"name\": \"Heatmap\",\n \"description\": \"Alias of Matrix — two-dimensional 0..1 intensity grid.\",\n \"category\": \"composite\",\n \"level\": \"L3\",\n \"tags\": [\n \"heatmap\",\n \"matrix\",\n \"grid\"\n ],\n \"props\": {\n \"caption\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"cols\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"cells\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n }\n }\n },\n \"showValues\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n \"usageScenarios\": [\n \"Same as Matrix\"\n ],\n \"constraints\": [\n \"Identical implementation to Matrix\"\n ]\n }\n },\n {\n \"name\": \"Matrix\",\n \"export\": \"Matrix\",\n \"module\": \"data-studio.tsx\",\n \"catalog\": {\n \"name\": \"Matrix\",\n \"description\": \"Two-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map to a color-mix of the primary token via inline style. Alias: Heatmap.\",\n \"category\": \"composite\",\n \"level\": \"L3\",\n \"tags\": [\n \"matrix\",\n \"heatmap\",\n \"grid\",\n \"governance\"\n ],\n \"props\": {\n \"caption\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Row labels\"\n },\n \"cols\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Column labels\"\n },\n \"cells\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n }\n },\n \"description\": \"rows×cols grid of intensities in [0,1]\"\n },\n \"showValues\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"Print the numeric value in each cell\"\n }\n },\n \"usageScenarios\": [\n \"Governance capability coverage matrix\",\n \"Risk heatmap (likelihood × impact)\"\n ],\n \"constraints\": [\n \"Intensities are single-polar 0..1; negative / diverging scales are not supported\",\n \"cells should be rows.length × cols.length; missing cells render as 0\"\n ]\n }\n },\n {\n \"name\": \"StatGrid\",\n \"export\": \"StatGrid\",\n \"module\": \"data-studio.tsx\",\n \"catalog\": {\n \"name\": \"StatGrid\",\n \"description\": \"Responsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"stat\",\n \"kpi\",\n \"dashboard\",\n \"grid\"\n ],\n \"props\": {\n \"cols\": {\n \"type\": \"string\",\n \"enum\": [\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"auto\"\n ],\n \"default\": \"auto\"\n },\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"value\": {\n \"type\": \"string\"\n },\n \"change\": {\n \"type\": \"string\"\n },\n \"trend\": {\n \"type\": \"string\",\n \"enum\": [\n \"up\",\n \"down\"\n ]\n },\n \"description\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Inline KPI items used when no Stat children are provided\"\n }\n },\n \"usageScenarios\": [\n \"Overview dashboard KPI row\",\n \"Operations metrics summary above a table\"\n ],\n \"constraints\": [\n \"Provide either Stat children or items, not both — children win when present\"\n ]\n }\n },\n {\n \"name\": \"TimelineList\",\n \"export\": \"TimelineList\",\n \"module\": \"data-studio.tsx\",\n \"catalog\": {\n \"name\": \"TimelineList\",\n \"description\": \"Vertical timeline with a left rail and a status dot per item (ok / warn / error).\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"timeline\",\n \"activity\",\n \"operations\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"time\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"desc\": {\n \"type\": \"string\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"ok\",\n \"warn\",\n \"error\"\n ]\n }\n }\n },\n \"description\": \"[{time, title, desc?, status?}]\"\n }\n },\n \"usageScenarios\": [\n \"Operations event timeline\",\n \"Deployment / audit history\"\n ],\n \"constraints\": [\n \"status defaults to 'ok' when omitted\"\n ]\n }\n }\n ]\n}\n",
23
+ "type": "registry:ui"
24
+ }
25
+ ],
26
+ "meta": {
27
+ "category": "composite",
28
+ "level": "L2",
29
+ "props": {
30
+ "cols": {
31
+ "type": "string",
32
+ "enum": [
33
+ "1",
34
+ "2",
35
+ "3",
36
+ "4",
37
+ "auto"
38
+ ],
39
+ "default": "auto"
40
+ },
41
+ "items": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "label": {
47
+ "type": "string"
48
+ },
49
+ "value": {
50
+ "type": "string"
51
+ },
52
+ "change": {
53
+ "type": "string"
54
+ },
55
+ "trend": {
56
+ "type": "string",
57
+ "enum": [
58
+ "up",
59
+ "down"
60
+ ]
61
+ },
62
+ "description": {
63
+ "type": "string"
64
+ }
65
+ }
66
+ },
67
+ "description": "Inline KPI items used when no Stat children are provided"
68
+ }
69
+ },
70
+ "scenarios": [
71
+ "Overview dashboard KPI row",
72
+ "Operations metrics summary above a table"
73
+ ],
74
+ "constraints": [
75
+ "Provide either Stat children or items, not both — children win when present"
76
+ ],
77
+ "provides": [
78
+ "StatGrid",
79
+ "Matrix",
80
+ "Heatmap",
81
+ "DiagnosticsList",
82
+ "TimelineList"
83
+ ],
84
+ "uibot": {
85
+ "schema": "uibot.registry.item.v1",
86
+ "item": "data-studio",
87
+ "channel": "public",
88
+ "components": [
89
+ {
90
+ "name": "DiagnosticsList",
91
+ "export": "DiagnosticsList",
92
+ "module": "data-studio.tsx",
93
+ "catalog": {
94
+ "name": "DiagnosticsList",
95
+ "description": "Levelled diagnostics list with a coloured left bar and glyph per severity (info / warn / error).",
96
+ "category": "composite",
97
+ "level": "L2",
98
+ "tags": [
99
+ "diagnostics",
100
+ "list",
101
+ "status",
102
+ "overview"
103
+ ],
104
+ "props": {
105
+ "items": {
106
+ "type": "array",
107
+ "items": {
108
+ "type": "object",
109
+ "properties": {
110
+ "level": {
111
+ "type": "string",
112
+ "enum": [
113
+ "info",
114
+ "warn",
115
+ "error"
116
+ ]
117
+ },
118
+ "title": {
119
+ "type": "string"
120
+ },
121
+ "detail": {
122
+ "type": "string"
123
+ }
124
+ }
125
+ },
126
+ "description": "[{level, title, detail?}]"
127
+ }
128
+ },
129
+ "usageScenarios": [
130
+ "Overview page diagnostics slot",
131
+ "Spec validation results list"
132
+ ],
133
+ "constraints": [
134
+ "level defaults to 'info' when omitted or unrecognised"
135
+ ]
136
+ }
137
+ },
138
+ {
139
+ "name": "Heatmap",
140
+ "export": "Heatmap",
141
+ "module": "data-studio.tsx",
142
+ "catalog": {
143
+ "name": "Heatmap",
144
+ "description": "Alias of Matrix — two-dimensional 0..1 intensity grid.",
145
+ "category": "composite",
146
+ "level": "L3",
147
+ "tags": [
148
+ "heatmap",
149
+ "matrix",
150
+ "grid"
151
+ ],
152
+ "props": {
153
+ "caption": {
154
+ "type": "string"
155
+ },
156
+ "rows": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "string"
160
+ }
161
+ },
162
+ "cols": {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "cells": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "number"
174
+ }
175
+ }
176
+ },
177
+ "showValues": {
178
+ "type": "boolean",
179
+ "default": false
180
+ }
181
+ },
182
+ "usageScenarios": [
183
+ "Same as Matrix"
184
+ ],
185
+ "constraints": [
186
+ "Identical implementation to Matrix"
187
+ ]
188
+ }
189
+ },
190
+ {
191
+ "name": "Matrix",
192
+ "export": "Matrix",
193
+ "module": "data-studio.tsx",
194
+ "catalog": {
195
+ "name": "Matrix",
196
+ "description": "Two-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map to a color-mix of the primary token via inline style. Alias: Heatmap.",
197
+ "category": "composite",
198
+ "level": "L3",
199
+ "tags": [
200
+ "matrix",
201
+ "heatmap",
202
+ "grid",
203
+ "governance"
204
+ ],
205
+ "props": {
206
+ "caption": {
207
+ "type": "string"
208
+ },
209
+ "rows": {
210
+ "type": "array",
211
+ "items": {
212
+ "type": "string"
213
+ },
214
+ "description": "Row labels"
215
+ },
216
+ "cols": {
217
+ "type": "array",
218
+ "items": {
219
+ "type": "string"
220
+ },
221
+ "description": "Column labels"
222
+ },
223
+ "cells": {
224
+ "type": "array",
225
+ "items": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "number"
229
+ }
230
+ },
231
+ "description": "rows×cols grid of intensities in [0,1]"
232
+ },
233
+ "showValues": {
234
+ "type": "boolean",
235
+ "default": false,
236
+ "description": "Print the numeric value in each cell"
237
+ }
238
+ },
239
+ "usageScenarios": [
240
+ "Governance capability coverage matrix",
241
+ "Risk heatmap (likelihood × impact)"
242
+ ],
243
+ "constraints": [
244
+ "Intensities are single-polar 0..1; negative / diverging scales are not supported",
245
+ "cells should be rows.length × cols.length; missing cells render as 0"
246
+ ]
247
+ }
248
+ },
249
+ {
250
+ "name": "StatGrid",
251
+ "export": "StatGrid",
252
+ "module": "data-studio.tsx",
253
+ "catalog": {
254
+ "name": "StatGrid",
255
+ "description": "Responsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.",
256
+ "category": "composite",
257
+ "level": "L2",
258
+ "tags": [
259
+ "stat",
260
+ "kpi",
261
+ "dashboard",
262
+ "grid"
263
+ ],
264
+ "props": {
265
+ "cols": {
266
+ "type": "string",
267
+ "enum": [
268
+ "1",
269
+ "2",
270
+ "3",
271
+ "4",
272
+ "auto"
273
+ ],
274
+ "default": "auto"
275
+ },
276
+ "items": {
277
+ "type": "array",
278
+ "items": {
279
+ "type": "object",
280
+ "properties": {
281
+ "label": {
282
+ "type": "string"
283
+ },
284
+ "value": {
285
+ "type": "string"
286
+ },
287
+ "change": {
288
+ "type": "string"
289
+ },
290
+ "trend": {
291
+ "type": "string",
292
+ "enum": [
293
+ "up",
294
+ "down"
295
+ ]
296
+ },
297
+ "description": {
298
+ "type": "string"
299
+ }
300
+ }
301
+ },
302
+ "description": "Inline KPI items used when no Stat children are provided"
303
+ }
304
+ },
305
+ "usageScenarios": [
306
+ "Overview dashboard KPI row",
307
+ "Operations metrics summary above a table"
308
+ ],
309
+ "constraints": [
310
+ "Provide either Stat children or items, not both — children win when present"
311
+ ]
312
+ }
313
+ },
314
+ {
315
+ "name": "TimelineList",
316
+ "export": "TimelineList",
317
+ "module": "data-studio.tsx",
318
+ "catalog": {
319
+ "name": "TimelineList",
320
+ "description": "Vertical timeline with a left rail and a status dot per item (ok / warn / error).",
321
+ "category": "composite",
322
+ "level": "L2",
323
+ "tags": [
324
+ "timeline",
325
+ "activity",
326
+ "operations"
327
+ ],
328
+ "props": {
329
+ "items": {
330
+ "type": "array",
331
+ "items": {
332
+ "type": "object",
333
+ "properties": {
334
+ "time": {
335
+ "type": "string"
336
+ },
337
+ "title": {
338
+ "type": "string"
339
+ },
340
+ "desc": {
341
+ "type": "string"
342
+ },
343
+ "status": {
344
+ "type": "string",
345
+ "enum": [
346
+ "ok",
347
+ "warn",
348
+ "error"
349
+ ]
350
+ }
351
+ }
352
+ },
353
+ "description": "[{time, title, desc?, status?}]"
354
+ }
355
+ },
356
+ "usageScenarios": [
357
+ "Operations event timeline",
358
+ "Deployment / audit history"
359
+ ],
360
+ "constraints": [
361
+ "status defaults to 'ok' when omitted"
362
+ ]
363
+ }
364
+ }
365
+ ]
366
+ }
367
+ }
368
+ }