@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,154 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "kanban",
4
+ "type": "registry:ui",
5
+ "description": "Horizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.",
6
+ "dependencies": [
7
+ "react"
8
+ ],
9
+ "registryDependencies": [
10
+ "@uibot/uibot-base"
11
+ ],
12
+ "files": [
13
+ {
14
+ "path": "components/uibot/kanban.tsx",
15
+ "target": "components/uibot/kanban.tsx",
16
+ "content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\n\ninterface Column {\n id: string;\n title: string;\n}\n\ninterface Card {\n id: string;\n column: string;\n title: string;\n subtitle?: string;\n badge?: string;\n}\n\nfunction parseColumns(raw: unknown): Column[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .map((c) => {\n if (!c || typeof c !== \"object\") return null;\n const rec = c as Record<string, unknown>;\n const id = typeof rec[\"id\"] === \"string\" ? rec[\"id\"] : null;\n if (!id) return null;\n return { id, title: typeof rec[\"title\"] === \"string\" ? rec[\"title\"] : id } as Column;\n })\n .filter((c): c is Column => c !== null);\n}\n\nfunction parseCards(raw: unknown): Card[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .map((c, i) => {\n if (!c || typeof c !== \"object\") return null;\n const rec = c as Record<string, unknown>;\n const column = typeof rec[\"column\"] === \"string\" ? rec[\"column\"] : null;\n if (!column) return null;\n return {\n id: typeof rec[\"id\"] === \"string\" ? rec[\"id\"] : `card-${i}`,\n column,\n title: typeof rec[\"title\"] === \"string\" ? rec[\"title\"] : \"\",\n subtitle: typeof rec[\"subtitle\"] === \"string\" ? rec[\"subtitle\"] : undefined,\n badge: typeof rec[\"badge\"] === \"string\" ? rec[\"badge\"] : undefined,\n } as Card;\n })\n .filter((c): c is Card => c !== null);\n}\n\n/** Column accent cycles the marketing palette — theme-token safe in any host. */\nconst COLUMN_ACCENTS = [\n \"var(--marketing-accent)\",\n \"var(--mk-accent-2)\",\n \"var(--mk-accent-3)\",\n \"var(--mk-accent-4)\",\n] as const;\n\nconst MONO = { fontFamily: \"var(--font-marketing-mono)\" } as const;\n\n/** Fit columns to the container: equal-width grid up to 4 lanes, scroll beyond. */\nconst FIT_COLS: Record<number, string> = {\n 1: \"grid-cols-1\",\n 2: \"grid-cols-2\",\n 3: \"grid-cols-3\",\n 4: \"grid-cols-4\",\n};\n\n/**\n * Horizontal kanban board: columns as swimlanes, cards grouped by `column`.\n * Up to four lanes fit the container width without scrolling; five or more\n * fall back to a horizontal scroll strip. Editorial chrome: per-column accent\n * dot + mono count chip, cards with a hover lift and a hairline badge.\n * Read-only display.\n */\nexport const KanbanBoard: RendererComponent = (props) => {\n const columns = parseColumns(props[\"columns\"]);\n const cards = parseCards(props[\"cards\"]);\n const fitClass = FIT_COLS[columns.length];\n\n return (\n <div\n className={\n fitClass\n ? `uibot-kanban grid ${fitClass} gap-3 pb-1`\n : \"uibot-kanban grid auto-cols-[minmax(240px,1fr)] grid-flow-col gap-3 overflow-x-auto pb-2\"\n }\n data-uibot-type=\"KanbanBoard\"\n role=\"region\"\n aria-label=\"Kanban board\"\n >\n {columns.map((col, colIdx) => {\n const accent = COLUMN_ACCENTS[colIdx % COLUMN_ACCENTS.length];\n const colCards = cards.filter((c) => c.column === col.id);\n return (\n <div\n key={col.id}\n className=\"flex min-h-[7rem] flex-col rounded-lg border bg-muted/25 p-2.5\"\n >\n <h4\n className=\"mb-2.5 flex items-center gap-1.5 px-1 text-[0.65rem] font-medium uppercase tracking-[0.12em] text-muted-foreground\"\n style={MONO}\n >\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 shrink-0 rounded-full\"\n style={{\n background: accent,\n boxShadow: `0 0 0 3px color-mix(in oklch, ${accent} 20%, transparent)`,\n }}\n />\n <span className=\"truncate\">{col.title}</span>\n <span className=\"ml-auto shrink-0 rounded-full border bg-background/70 px-1.5 py-px text-[0.6rem] text-muted-foreground/80\">\n {colCards.length}\n </span>\n </h4>\n <div className=\"space-y-2\">\n {colCards.map((card) => (\n <div\n key={card.id}\n className=\"rounded-md border bg-card p-3 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:border-[color-mix(in_oklch,var(--marketing-accent)_38%,var(--border))] hover:shadow-md\"\n data-uibot-card={card.id}\n >\n <div className=\"flex items-start justify-between gap-2\">\n <p className=\"text-sm font-medium leading-snug text-foreground\">{card.title}</p>\n {card.badge && (\n <span\n className=\"shrink-0 rounded-full border bg-muted/50 px-1.5 py-px text-[0.6rem] font-medium tracking-wide text-muted-foreground\"\n style={MONO}\n >\n {card.badge}\n </span>\n )}\n </div>\n {card.subtitle && (\n <p className=\"mt-1.5 truncate text-[0.6875rem] text-muted-foreground/90\">\n {card.subtitle}\n </p>\n )}\n </div>\n ))}\n {colCards.length === 0 && (\n <p className=\"rounded-md border border-dashed py-4 text-center text-xs text-muted-foreground\">\n Empty\n </p>\n )}\n </div>\n </div>\n );\n })}\n </div>\n );\n};\n",
17
+ "type": "registry:ui"
18
+ },
19
+ {
20
+ "path": "components/uibot/kanban.uibot.json",
21
+ "target": "components/uibot/kanban.uibot.json",
22
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"kanban\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"KanbanBoard\",\n \"export\": \"KanbanBoard\",\n \"module\": \"kanban.tsx\",\n \"catalog\": {\n \"name\": \"KanbanBoard\",\n \"description\": \"Horizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.\",\n \"category\": \"composite\",\n \"level\": \"L3\",\n \"tags\": [\n \"kanban\",\n \"board\",\n \"operations\"\n ],\n \"props\": {\n \"columns\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"[{id, title}] swimlane definitions\"\n },\n \"cards\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"column\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"subtitle\": {\n \"type\": \"string\"\n },\n \"badge\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"[{id, column, title, subtitle?, badge?}] — column must match a column id\"\n }\n },\n \"usageScenarios\": [\n \"Operations task board (Todo / In progress / Done)\",\n \"Release pipeline stages\"\n ],\n \"constraints\": [\n \"Each card.column must reference an existing column.id, else the card is dropped\",\n \"Up to 4 columns fit the container as an equal-width grid (no scrollbar); 5+ columns switch to a horizontal scroll strip\"\n ]\n }\n }\n ]\n}\n",
23
+ "type": "registry:ui"
24
+ }
25
+ ],
26
+ "meta": {
27
+ "category": "composite",
28
+ "level": "L3",
29
+ "props": {
30
+ "columns": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "object",
34
+ "properties": {
35
+ "id": {
36
+ "type": "string"
37
+ },
38
+ "title": {
39
+ "type": "string"
40
+ }
41
+ }
42
+ },
43
+ "description": "[{id, title}] swimlane definitions"
44
+ },
45
+ "cards": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "properties": {
50
+ "id": {
51
+ "type": "string"
52
+ },
53
+ "column": {
54
+ "type": "string"
55
+ },
56
+ "title": {
57
+ "type": "string"
58
+ },
59
+ "subtitle": {
60
+ "type": "string"
61
+ },
62
+ "badge": {
63
+ "type": "string"
64
+ }
65
+ }
66
+ },
67
+ "description": "[{id, column, title, subtitle?, badge?}] — column must match a column id"
68
+ }
69
+ },
70
+ "scenarios": [
71
+ "Operations task board (Todo / In progress / Done)",
72
+ "Release pipeline stages"
73
+ ],
74
+ "constraints": [
75
+ "Each card.column must reference an existing column.id, else the card is dropped",
76
+ "Up to 4 columns fit the container as an equal-width grid (no scrollbar); 5+ columns switch to a horizontal scroll strip"
77
+ ],
78
+ "provides": [
79
+ "KanbanBoard"
80
+ ],
81
+ "uibot": {
82
+ "schema": "uibot.registry.item.v1",
83
+ "item": "kanban",
84
+ "channel": "public",
85
+ "components": [
86
+ {
87
+ "name": "KanbanBoard",
88
+ "export": "KanbanBoard",
89
+ "module": "kanban.tsx",
90
+ "catalog": {
91
+ "name": "KanbanBoard",
92
+ "description": "Horizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.",
93
+ "category": "composite",
94
+ "level": "L3",
95
+ "tags": [
96
+ "kanban",
97
+ "board",
98
+ "operations"
99
+ ],
100
+ "props": {
101
+ "columns": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "object",
105
+ "properties": {
106
+ "id": {
107
+ "type": "string"
108
+ },
109
+ "title": {
110
+ "type": "string"
111
+ }
112
+ }
113
+ },
114
+ "description": "[{id, title}] swimlane definitions"
115
+ },
116
+ "cards": {
117
+ "type": "array",
118
+ "items": {
119
+ "type": "object",
120
+ "properties": {
121
+ "id": {
122
+ "type": "string"
123
+ },
124
+ "column": {
125
+ "type": "string"
126
+ },
127
+ "title": {
128
+ "type": "string"
129
+ },
130
+ "subtitle": {
131
+ "type": "string"
132
+ },
133
+ "badge": {
134
+ "type": "string"
135
+ }
136
+ }
137
+ },
138
+ "description": "[{id, column, title, subtitle?, badge?}] — column must match a column id"
139
+ }
140
+ },
141
+ "usageScenarios": [
142
+ "Operations task board (Todo / In progress / Done)",
143
+ "Release pipeline stages"
144
+ ],
145
+ "constraints": [
146
+ "Each card.column must reference an existing column.id, else the card is dropped",
147
+ "Up to 4 columns fit the container as an equal-width grid (no scrollbar); 5+ columns switch to a horizontal scroll strip"
148
+ ]
149
+ }
150
+ }
151
+ ]
152
+ }
153
+ }
154
+ }