@uibot/mcp-server 0.18.1 → 0.20.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 (125) hide show
  1. package/README.md +34 -0
  2. package/dist/http.js +93 -93
  3. package/dist/resources/bundle.json +1 -1
  4. package/dist/resources/design-md/frontend-principles.design.md +12 -0
  5. package/dist/resources/shells/shadcn-admin-shell.yaml +5 -4
  6. package/dist/resources/templates/auth.yaml +84 -67
  7. package/dist/resources/templates/shadcn-admin.yaml +12210 -122
  8. package/dist/server.d.ts +3 -0
  9. package/dist/server.js +93 -93
  10. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/UIBot-LICENSE +21 -0
  11. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/blocks-icons-LICENSE +46 -0
  12. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/shadcn-THIRD_PARTY_LICENSE +21 -0
  13. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-apps.json +61 -0
  14. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-chats.json +54 -0
  15. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-dashboard.json +70 -0
  16. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-401.json +54 -0
  17. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-403.json +54 -0
  18. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-404.json +54 -0
  19. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-500.json +54 -0
  20. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-503.json +54 -0
  21. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-forgot-password.json +59 -0
  22. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-help.json +53 -0
  23. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-otp.json +59 -0
  24. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-overview.json +62 -0
  25. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-account.json +61 -0
  26. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-appearance.json +61 -0
  27. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-display.json +61 -0
  28. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-notifications.json +61 -0
  29. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-profile.json +61 -0
  30. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings.json +65 -0
  31. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-shell.json +173 -0
  32. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-in-2.json +67 -0
  33. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-in.json +59 -0
  34. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-up.json +59 -0
  35. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-tasks.json +66 -0
  36. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-users.json +66 -0
  37. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/ai-chat.json +74 -0
  38. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/analytics-dashboard.json +65 -0
  39. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-floating.json +54 -0
  40. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-icon-rail.json +54 -0
  41. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-inset.json +54 -0
  42. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-settings.json +54 -0
  43. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-sidebar.json +54 -0
  44. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-workspace.json +54 -0
  45. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-centered.json +61 -0
  46. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-enterprise.json +61 -0
  47. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-recovery.json +64 -0
  48. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-registration.json +63 -0
  49. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-split.json +67 -0
  50. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth.json +61 -0
  51. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/blog.json +64 -0
  52. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/charts.json +238 -0
  53. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-artifact.json +49 -0
  54. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-focused.json +49 -0
  55. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-history.json +49 -0
  56. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-knowledge.json +49 -0
  57. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-support.json +49 -0
  58. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-workspace.json +136 -0
  59. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/collection-shared.json +23 -0
  60. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/commerce-workspace.json +69 -0
  61. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-billing.json +68 -0
  62. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-page.json +289 -0
  63. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-shell.json +29 -0
  64. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/content.json +444 -0
  65. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/creation-shared.json +24 -0
  66. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/crm-workspace.json +73 -0
  67. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/crm.json +67 -0
  68. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/dashboard-01.json +78 -0
  69. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/dashboard.json +257 -0
  70. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data-studio.json +368 -0
  71. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data-table.json +352 -0
  72. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data.json +405 -0
  73. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-assistant.json +54 -0
  74. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-library.json +49 -0
  75. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-reading.json +49 -0
  76. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-workspace.json +164 -0
  77. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-writing.json +49 -0
  78. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/drilldown-menu.json +233 -0
  79. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/ecommerce.json +65 -0
  80. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/education-workspace.json +82 -0
  81. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/feedback.json +344 -0
  82. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/field.json +164 -0
  83. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/form.json +429 -0
  84. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/grid.json +188 -0
  85. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/interactive.json +355 -0
  86. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/item-grid.json +219 -0
  87. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/kanban.json +154 -0
  88. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/layout.json +790 -0
  89. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/lms.json +74 -0
  90. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/marketing.json +402 -0
  91. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/nav.json +285 -0
  92. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/portfolio.json +62 -0
  93. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/presentation.json +454 -0
  94. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/pricing.json +63 -0
  95. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/primitives.json +360 -0
  96. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/saas-landing.json +60 -0
  97. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sections.json +734 -0
  98. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/settings.json +72 -0
  99. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/shadcn-admin-shell.json +49 -0
  100. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/shadcn-admin.json +77 -0
  101. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-01.json +42 -0
  102. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-02.json +42 -0
  103. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-03.json +30 -0
  104. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-04.json +30 -0
  105. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-05.json +36 -0
  106. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-06.json +42 -0
  107. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-07.json +54 -0
  108. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-08.json +54 -0
  109. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-09.json +36 -0
  110. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-10.json +66 -0
  111. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-11.json +30 -0
  112. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-12.json +48 -0
  113. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-13.json +30 -0
  114. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-14.json +30 -0
  115. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-15.json +84 -0
  116. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-16.json +66 -0
  117. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-drilldown.json +29 -0
  118. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-primitives.json +155 -0
  119. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/store.json +75 -0
  120. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/support-inbox.json +63 -0
  121. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/team-directory.json +59 -0
  122. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/uibot-base.json +30 -0
  123. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/workspace.json +181 -0
  124. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/snapshot.json +1 -0
  125. package/package.json +10 -9
@@ -0,0 +1,405 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "data",
4
+ "type": "registry:ui",
5
+ "description": "Unordered list of child blocks. Use with divided or compact for different visual densities.",
6
+ "dependencies": [
7
+ "react@19.3.0",
8
+ "radix-ui@1.4.3"
9
+ ],
10
+ "registryDependencies": [
11
+ "@uibot/uibot-base"
12
+ ],
13
+ "files": [
14
+ {
15
+ "path": "components/uibot/data.tsx",
16
+ "target": "components/uibot/data.tsx",
17
+ "content": "import type { CSSProperties, ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\nimport type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport { ScrollArea } from \"./scroll-area\";\n\n/** Repeated list of items */\nexport const List: RendererComponent = (props, ctx) => {\n const divided = props[\"divided\"] === true;\n const compact = props[\"compact\"] === true;\n\n return (\n <ul\n className={cn(\n \"uibot-list\",\n divided ? \"divide-y divide-border\" : compact ? \"space-y-1\" : \"space-y-2\",\n )}\n data-uibot-type=\"List\"\n aria-label={typeof props[\"label\"] === \"string\" ? props[\"label\"] : undefined}\n >\n {ctx.children as ReactNode[]}\n </ul>\n );\n};\n\n/** Data table with columns and rows */\nexport const Table: RendererComponent = (props) => {\n const columns = Array.isArray(props[\"columns\"])\n ? (props[\"columns\"] as Array<{ key: string; label: string; align?: string }>)\n : [];\n const rows = Array.isArray(props[\"rows\"])\n ? (props[\"rows\"] as Array<Record<string, unknown>>)\n : [];\n const striped = props[\"striped\"] !== false;\n const caption = typeof props[\"caption\"] === \"string\" ? props[\"caption\"] : null;\n\n return (\n <ScrollArea\n className=\"uibot-table w-full rounded-lg border\"\n data-uibot-type=\"Table\"\n scrollbars=\"horizontal\"\n viewportProps={{ \"aria-label\": caption ?? \"Table\" }}\n >\n <table className=\"w-full text-sm\">\n {caption && (\n <caption className=\"mb-1 py-2 text-sm text-muted-foreground\">{caption}</caption>\n )}\n <thead>\n <tr className=\"border-b bg-muted/50\">\n {columns.map((col) => (\n <th\n key={col.key}\n scope=\"col\"\n className={cn(\n \"px-4 py-3 text-xs font-medium uppercase tracking-wide text-muted-foreground\",\n col.align === \"right\"\n ? \"text-right\"\n : col.align === \"center\"\n ? \"text-center\"\n : \"text-left\",\n )}\n >\n {col.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.map((row, i) => (\n <tr\n key={i}\n className={cn(\n \"border-b transition-colors last:border-0 hover:bg-muted/30\",\n striped && i % 2 === 1 ? \"bg-muted/10\" : \"\",\n )}\n >\n {columns.map((col) => (\n <td\n key={col.key}\n className={cn(\n \"px-4 py-3 text-foreground\",\n col.align === \"right\"\n ? \"text-right\"\n : col.align === \"center\"\n ? \"text-center\"\n : \"\",\n )}\n >\n {String(row[col.key] ?? \"\")}\n </td>\n ))}\n </tr>\n ))}\n {rows.length === 0 && (\n <tr>\n <td\n colSpan={columns.length || 1}\n className=\"px-4 py-10 text-center text-sm text-muted-foreground\"\n >\n {typeof props[\"emptyText\"] === \"string\" ? props[\"emptyText\"] : \"No data\"}\n </td>\n </tr>\n )}\n </tbody>\n </table>\n </ScrollArea>\n );\n};\n\nconst TREND_UP = (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"2 10 7 4 12 10\" />\n </svg>\n);\nconst TREND_DOWN = (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"2 4 7 10 12 4\" />\n </svg>\n);\n\n/** Single statistic display (number + label) */\nexport const Stat: RendererComponent = (props) => {\n const trend = props[\"trend\"] as \"up\" | \"down\" | undefined;\n const change =\n typeof props[\"change\"] === \"string\" || typeof props[\"change\"] === \"number\"\n ? String(props[\"change\"])\n : null;\n\n return (\n <div\n className=\"uibot-stat bg-card text-card-foreground rounded-xl border p-5 shadow-sm\"\n data-uibot-type=\"Stat\"\n >\n <p className=\"text-sm font-medium text-muted-foreground\">\n {typeof props[\"label\"] === \"string\" ? props[\"label\"] : \"Stat\"}\n </p>\n <p className=\"mt-1.5 text-3xl font-bold tracking-tight\">\n {props[\"value\"] !== undefined ? String(props[\"value\"]) : \"—\"}\n </p>\n {(change !== null || typeof props[\"description\"] === \"string\") && (\n <div className=\"mt-1.5 flex items-center gap-1.5\">\n {trend && (\n <span\n className={cn(\n \"flex items-center\",\n trend === \"up\" ? \"text-green-600\" : \"text-destructive\",\n )}\n >\n {trend === \"up\" ? TREND_UP : TREND_DOWN}\n </span>\n )}\n {change !== null && (\n <span\n className={cn(\n \"text-xs font-medium\",\n trend === \"up\"\n ? \"text-green-600\"\n : trend === \"down\"\n ? \"text-destructive\"\n : \"text-muted-foreground\",\n )}\n >\n {change}\n </span>\n )}\n {typeof props[\"description\"] === \"string\" && (\n <span className=\"text-xs text-muted-foreground\">{props[\"description\"]}</span>\n )}\n </div>\n )}\n </div>\n );\n};\n\n/** Simple inline Markdown renderer */\nfunction renderMarkdown(text: string): ReactNode[] {\n const lines = text.split(\"\\n\");\n const nodes: ReactNode[] = [];\n let listItems: ReactNode[] = [];\n\n const flushList = () => {\n if (listItems.length > 0) {\n nodes.push(\n <ul key={`ul-${nodes.length}`} className=\"my-2 ml-4 list-disc space-y-1 text-sm\">\n {listItems}\n </ul>,\n );\n listItems = [];\n }\n };\n\n const inlineFormat = (raw: string, key: string): ReactNode => {\n // Very small inline parser: **bold**, *italic*, `code`\n const parts = raw.split(/(\\*\\*[^*]+\\*\\*|\\*[^*]+\\*|`[^`]+`)/g);\n if (parts.length === 1) return raw;\n return (\n <span key={key}>\n {parts.map((p, i) => {\n if (p.startsWith(\"**\") && p.endsWith(\"**\"))\n return (\n <strong key={i} className=\"font-semibold\">\n {p.slice(2, -2)}\n </strong>\n );\n if (p.startsWith(\"*\") && p.endsWith(\"*\")) return <em key={i}>{p.slice(1, -1)}</em>;\n if (p.startsWith(\"`\") && p.endsWith(\"`\"))\n return (\n <code key={i} className=\"rounded bg-muted px-1 py-0.5 font-mono text-[0.8em]\">\n {p.slice(1, -1)}\n </code>\n );\n return p;\n })}\n </span>\n );\n };\n\n lines.forEach((line, i) => {\n const hm = /^(#{1,6})\\s+(.+)$/.exec(line);\n if (hm) {\n flushList();\n const level = hm[1]!.length;\n const sizeMap = [\"text-2xl\", \"text-xl\", \"text-lg\", \"text-base\", \"text-sm\", \"text-xs\"];\n const cls = cn(\"font-semibold leading-tight my-2\", sizeMap[level - 1] ?? \"text-base\");\n const Tag = `h${level}` as \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n nodes.push(\n <Tag key={i} className={cls}>\n {inlineFormat(hm[2]!, `h-${i}`)}\n </Tag>,\n );\n return;\n }\n\n const lm = /^[-*]\\s+(.+)$/.exec(line);\n if (lm) {\n listItems.push(<li key={i}>{inlineFormat(lm[1]!, `li-${i}`)}</li>);\n return;\n }\n\n flushList();\n if (line.trim() === \"\") {\n nodes.push(<br key={i} />);\n } else {\n nodes.push(\n <p key={i} className=\"my-1 text-sm leading-relaxed\">\n {inlineFormat(line, `p-${i}`)}\n </p>,\n );\n }\n });\n\n flushList();\n return nodes;\n}\n\n/** Markdown text content renderer */\nexport const Markdown: RendererComponent = (props) => {\n const content = typeof props[\"content\"] === \"string\" ? props[\"content\"] : \"\";\n return (\n <div className=\"uibot-markdown text-foreground\" data-uibot-type=\"Markdown\">\n {renderMarkdown(content)}\n </div>\n );\n};\n\nconst HEADING_SIZE: Record<number, string> = {\n 1: \"text-4xl\",\n 2: \"text-3xl\",\n 3: \"text-2xl\",\n 4: \"text-xl\",\n 5: \"text-lg\",\n 6: \"text-base\",\n};\n\nfunction fontRoleStyle(value: unknown) {\n return value === \"display\" || value === \"body\" || value === \"mono\"\n ? { fontFamily: `var(--font-${value}, inherit)` }\n : undefined;\n}\n\nconst HEADING_VISUAL_SIZE: Record<string, string> = {\n xs: \"1rem\",\n sm: \"1.25rem\",\n md: \"1.5rem\",\n lg: \"2rem\",\n xl: \"2.5rem\",\n display: \"clamp(2.25rem, calc(1.25rem + 4vw), 4.5rem)\",\n};\n\n/** Declared typography works without the host compiling generated utility classes. */\nfunction typographyStyle(props: Record<string, unknown>, heading = false): CSSProperties {\n const style: CSSProperties = { ...fontRoleStyle(props.font) };\n const size = typeof props.size === \"string\" ? props.size : \"\";\n const headingSize = Object.hasOwn(HEADING_VISUAL_SIZE, size)\n ? HEADING_VISUAL_SIZE[size]\n : undefined;\n if (heading && headingSize) {\n style.fontSize = headingSize;\n style.lineHeight = size === \"display\" ? 1.1 : 1.25;\n style.overflowWrap = \"anywhere\";\n } else if (!heading && size === \"lead\") {\n style.fontSize = \"clamp(1.125rem, calc(1rem + 0.5vw), 1.375rem)\";\n style.lineHeight = 1.6;\n style.overflowWrap = \"anywhere\";\n }\n const widths = heading\n ? { narrow: \"16ch\", normal: \"24ch\", wide: \"36ch\" }\n : { narrow: \"45ch\", normal: \"65ch\", wide: \"80ch\" };\n const measure = props.measure;\n if (measure === \"narrow\" || measure === \"normal\" || measure === \"wide\") {\n style.maxInlineSize = widths[measure];\n style.overflowWrap = \"anywhere\";\n }\n const align = props.align;\n if (align === \"start\" || align === \"center\" || align === \"end\") style.textAlign = align;\n return style;\n}\n\n/** Section heading (h1–h6) */\nexport const Heading: RendererComponent = (props) => {\n const lvl = typeof props[\"level\"] === \"number\" ? Math.min(6, Math.max(1, props[\"level\"])) : 2;\n const size = HEADING_SIZE[lvl] ?? \"text-3xl\";\n const weight = lvl <= 2 ? \"font-bold\" : \"font-semibold\";\n const text = typeof props[\"text\"] === \"string\" ? props[\"text\"] : \"\";\n const muted = props[\"muted\"] === true ? \"text-muted-foreground\" : \"text-foreground\";\n const cls = cn(\n \"uibot-heading tracking-tight leading-tight\",\n size,\n weight,\n muted,\n typeof props.className === \"string\" ? props.className : \"\",\n );\n const Tag = `h${lvl}` as \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n return (\n <Tag className={cls} style={typographyStyle(props, true)} data-uibot-type=\"Heading\">\n {text}\n </Tag>\n );\n};\n\n/** Body paragraph text */\nexport const Paragraph: RendererComponent = (props) => (\n <p\n style={typographyStyle(props)}\n className={cn(\n \"uibot-paragraph leading-relaxed\",\n props[\"size\"] === \"sm\" ? \"text-sm\" : props[\"size\"] === \"lg\" ? \"text-lg\" : \"text-sm\",\n props[\"muted\"] === true ? \"text-muted-foreground\" : \"text-foreground\",\n typeof props.className === \"string\" ? props.className : \"\",\n )}\n data-uibot-type=\"Paragraph\"\n >\n {typeof props[\"text\"] === \"string\" ? props[\"text\"] : \"\"}\n </p>\n);\n",
18
+ "type": "registry:ui"
19
+ },
20
+ {
21
+ "path": "components/uibot/scroll-area.tsx",
22
+ "target": "components/uibot/scroll-area.tsx",
23
+ "content": "// Adapted from shadcn/ui Scroll Area (MIT).\nimport type { ComponentProps } from \"react\";\nimport { ScrollArea as Primitive } from \"radix-ui\";\n\nconst styles = `\n.uibot-scroll-area{position:relative;min-width:0;min-height:0;overflow:hidden}\n.uibot-scroll-viewport{width:100%;height:100%;max-height:inherit;border-radius:inherit;outline:none}\n.uibot-scroll-viewport:focus-visible{outline:2px solid var(--ring,#94a3b8);outline-offset:-2px}\n.uibot-scroll-viewport>div{display:block!important;min-width:100%}\n.uibot-scroll-area[data-fill-content=true]>.uibot-scroll-viewport>div{display:flex!important;flex-direction:column;min-height:100%}\n.uibot-scroll-area[data-scrollbars=horizontal]>.uibot-scroll-viewport{height:auto}\n.uibot-scrollbar{display:flex;touch-action:none;user-select:none;padding:1px;z-index:20}\n.uibot-scrollbar[data-orientation=vertical]{width:10px;border-inline-start:1px solid transparent}\n.uibot-scrollbar[data-orientation=horizontal]{height:10px;flex-direction:column;border-top:1px solid transparent}\n.uibot-scroll-thumb{position:relative;flex:1;border-radius:9999px;background:var(--nui-border,var(--border,#d4d4d8))}\n.uibot-scroll-thumb:hover,.uibot-scrollbar[data-state=visible]:active .uibot-scroll-thumb{background:var(--muted-foreground,#71717a)}\n`;\n\n/** Shared presentation primitive; refs and scroll events belong to the actual viewport. */\nexport function ScrollArea({\n children,\n className,\n scrollbars = \"vertical\",\n viewportProps,\n fillContent = false,\n ...props\n}: ComponentProps<typeof Primitive.Root> & {\n scrollbars?: \"vertical\" | \"horizontal\" | \"both\";\n viewportProps?: ComponentProps<typeof Primitive.Viewport>;\n fillContent?: boolean;\n}) {\n const { className: viewportClassName, ...viewportRest } = viewportProps ?? {};\n return (\n <Primitive.Root\n data-slot=\"scroll-area\"\n data-scrollbars={scrollbars}\n data-fill-content={fillContent}\n className={`uibot-scroll-area ${className ?? \"\"}`}\n type=\"auto\"\n {...props}\n >\n <style>{styles}</style>\n <Primitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className={`uibot-scroll-viewport ${viewportClassName ?? \"\"}`}\n tabIndex={0}\n {...viewportRest}\n >\n {children}\n </Primitive.Viewport>\n {scrollbars !== \"horizontal\" && <ScrollBar />}\n {scrollbars !== \"vertical\" && <ScrollBar orientation=\"horizontal\" />}\n <Primitive.Corner />\n </Primitive.Root>\n );\n}\n\nexport function ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: ComponentProps<typeof Primitive.Scrollbar>) {\n return (\n <Primitive.Scrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n className={`uibot-scrollbar ${className ?? \"\"}`}\n {...props}\n >\n <Primitive.Thumb data-slot=\"scroll-area-thumb\" className=\"uibot-scroll-thumb\" />\n </Primitive.Scrollbar>\n );\n}\n",
24
+ "type": "registry:ui"
25
+ },
26
+ {
27
+ "path": "components/uibot/data.uibot.json",
28
+ "target": "components/uibot/data.uibot.json",
29
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"data\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"Heading\",\n \"export\": \"Heading\",\n \"module\": \"data.tsx\",\n \"catalog\": {\n \"name\": \"Heading\",\n \"description\": \"Semantic h1–h6. Optional visual size is independent of level; display scales with the viewport.\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"text\",\n \"heading\",\n \"typography\"\n ],\n \"props\": {\n \"className\": {\n \"type\": \"string\",\n \"description\": \"Tailwind classes\"\n },\n \"text\": {\n \"type\": \"string\"\n },\n \"font\": {\n \"type\": \"string\",\n \"enum\": [\n \"inherit\",\n \"display\",\n \"body\",\n \"mono\"\n ],\n \"description\": \"Theme font role.\"\n },\n \"size\": {\n \"type\": \"string\",\n \"enum\": [\n \"xs\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\",\n \"display\"\n ],\n \"description\": \"16/20/24/32/40px; display: fluid 36–72px.\"\n },\n \"measure\": {\n \"type\": \"string\",\n \"enum\": [\n \"narrow\",\n \"normal\",\n \"wide\"\n ],\n \"description\": \"Max line width: 16/24/36ch.\"\n },\n \"align\": {\n \"type\": \"string\",\n \"enum\": [\n \"start\",\n \"center\",\n \"end\"\n ],\n \"description\": \"Text alignment, not block placement.\"\n },\n \"level\": {\n \"type\": \"integer\",\n \"default\": 2,\n \"description\": \"Semantic heading level 1–6.\"\n },\n \"muted\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"Render in muted-foreground\"\n }\n },\n \"usageScenarios\": [\n \"Section title above a Table or Card\",\n \"Hero headline on a landing page\"\n ],\n \"constraints\": [\n \"Use only one h1 per page\"\n ]\n }\n },\n {\n \"name\": \"List\",\n \"export\": \"List\",\n \"module\": \"data.tsx\",\n \"catalog\": {\n \"name\": \"List\",\n \"description\": \"Unordered list of child blocks. Use with divided or compact for different visual densities.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"list\"\n ],\n \"props\": {\n \"divided\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"Add hairline dividers between items\"\n },\n \"compact\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"label\": {\n \"type\": \"string\",\n \"description\": \"ARIA label\"\n }\n },\n \"usageScenarios\": [\n \"Recent activity feed\",\n \"Search result list\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"Markdown\",\n \"export\": \"Markdown\",\n \"module\": \"data.tsx\",\n \"catalog\": {\n \"name\": \"Markdown\",\n \"description\": \"Renders Markdown source into HTML. Supports # headings, **bold**, *italic*, `code`, and - lists.\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"text\",\n \"markdown\",\n \"content\"\n ],\n \"props\": {\n \"content\": {\n \"type\": \"string\",\n \"description\": \"Markdown source text\"\n }\n },\n \"usageScenarios\": [\n \"Documentation sections\",\n \"Feature descriptions on a landing page\",\n \"Release notes\"\n ],\n \"constraints\": [\n \"No HTML injection; only Markdown syntax is parsed\"\n ]\n }\n },\n {\n \"name\": \"Paragraph\",\n \"export\": \"Paragraph\",\n \"module\": \"data.tsx\",\n \"catalog\": {\n \"name\": \"Paragraph\",\n \"description\": \"Body text block. Use lead for fluid introductory copy; optional measure bounds reading width.\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"text\",\n \"typography\"\n ],\n \"props\": {\n \"className\": {\n \"type\": \"string\",\n \"description\": \"Tailwind classes\"\n },\n \"text\": {\n \"type\": \"string\"\n },\n \"font\": {\n \"type\": \"string\",\n \"enum\": [\n \"inherit\",\n \"display\",\n \"body\",\n \"mono\"\n ],\n \"description\": \"Theme font role.\"\n },\n \"size\": {\n \"type\": \"string\",\n \"enum\": [\n \"sm\",\n \"md\",\n \"lg\",\n \"lead\"\n ],\n \"default\": \"md\",\n \"description\": \"lead: fluid 18–22px; legacy sizes unchanged.\"\n },\n \"measure\": {\n \"type\": \"string\",\n \"enum\": [\n \"narrow\",\n \"normal\",\n \"wide\"\n ],\n \"description\": \"Max line width: 45/65/80ch.\"\n },\n \"align\": {\n \"type\": \"string\",\n \"enum\": [\n \"start\",\n \"center\",\n \"end\"\n ],\n \"description\": \"Text alignment, not block placement.\"\n },\n \"muted\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n \"usageScenarios\": [\n \"Feature description below a Heading\",\n \"Helper caption below a form field\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"Stat\",\n \"export\": \"Stat\",\n \"module\": \"data.tsx\",\n \"catalog\": {\n \"name\": \"Stat\",\n \"description\": \"KPI metric card: large value, label, optional trend arrow, and change string.\",\n \"category\": \"primitive\",\n \"level\": \"L2\",\n \"tags\": [\n \"stat\",\n \"kpi\",\n \"metric\"\n ],\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"value\": {\n \"type\": \"string\",\n \"description\": \"Main metric value, e.g. 1,234 or $12k\"\n },\n \"change\": {\n \"type\": \"string\",\n \"description\": \"Change label, e.g. \\\"+12% vs last month\\\"\"\n },\n \"trend\": {\n \"type\": \"string\",\n \"enum\": [\n \"up\",\n \"down\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"Secondary helper text\"\n }\n },\n \"usageScenarios\": [\n \"Dashboard KPI row (4 Stat blocks side-by-side in a Box[direction=row])\",\n \"Single revenue metric in a Card\"\n ],\n \"constraints\": [\n \"Do not put detailed charts inside a Stat; use Stat only for a single number + context\"\n ]\n }\n },\n {\n \"name\": \"Table\",\n \"export\": \"Table\",\n \"module\": \"data.tsx\",\n \"catalog\": {\n \"name\": \"Table\",\n \"description\": \"Data grid with typed columns and row data. Columns define keys and display labels.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"table\",\n \"grid\",\n \"data\"\n ],\n \"props\": {\n \"columns\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"key\": {\n \"type\": \"string\"\n },\n \"label\": {\n \"type\": \"string\"\n },\n \"align\": {\n \"type\": \"string\",\n \"enum\": [\n \"left\",\n \"center\",\n \"right\"\n ]\n }\n }\n },\n \"description\": \"[{key, label, align?}]\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\"\n },\n \"description\": \"Rows keyed to column.key\"\n },\n \"emptyText\": {\n \"type\": \"string\",\n \"default\": \"No data\"\n },\n \"striped\": {\n \"type\": \"boolean\",\n \"default\": true\n },\n \"caption\": {\n \"type\": \"string\"\n }\n },\n \"usageScenarios\": [\n \"User management list\",\n \"Order history table\",\n \"API endpoint catalog\"\n ],\n \"constraints\": [\n \"rows entries must have keys matching column.key; missing keys render empty string\",\n \"Avoid more than 8 columns\"\n ]\n }\n }\n ]\n}\n",
30
+ "type": "registry:ui"
31
+ }
32
+ ],
33
+ "meta": {
34
+ "category": "composite",
35
+ "level": "L2",
36
+ "props": {
37
+ "divided": {
38
+ "type": "boolean",
39
+ "default": false,
40
+ "description": "Add hairline dividers between items"
41
+ },
42
+ "compact": {
43
+ "type": "boolean",
44
+ "default": false
45
+ },
46
+ "label": {
47
+ "type": "string",
48
+ "description": "ARIA label"
49
+ }
50
+ },
51
+ "scenarios": [
52
+ "Recent activity feed",
53
+ "Search result list"
54
+ ],
55
+ "constraints": [],
56
+ "provides": [
57
+ "List",
58
+ "Table",
59
+ "Stat",
60
+ "Markdown",
61
+ "Heading",
62
+ "Paragraph"
63
+ ],
64
+ "uibot": {
65
+ "schema": "uibot.registry.item.v1",
66
+ "item": "data",
67
+ "channel": "public",
68
+ "components": [
69
+ {
70
+ "name": "Heading",
71
+ "export": "Heading",
72
+ "module": "data.tsx",
73
+ "catalog": {
74
+ "name": "Heading",
75
+ "description": "Semantic h1–h6. Optional visual size is independent of level; display scales with the viewport.",
76
+ "category": "primitive",
77
+ "level": "L1",
78
+ "tags": [
79
+ "text",
80
+ "heading",
81
+ "typography"
82
+ ],
83
+ "props": {
84
+ "className": {
85
+ "type": "string",
86
+ "description": "Tailwind classes"
87
+ },
88
+ "text": {
89
+ "type": "string"
90
+ },
91
+ "font": {
92
+ "type": "string",
93
+ "enum": [
94
+ "inherit",
95
+ "display",
96
+ "body",
97
+ "mono"
98
+ ],
99
+ "description": "Theme font role."
100
+ },
101
+ "size": {
102
+ "type": "string",
103
+ "enum": [
104
+ "xs",
105
+ "sm",
106
+ "md",
107
+ "lg",
108
+ "xl",
109
+ "display"
110
+ ],
111
+ "description": "16/20/24/32/40px; display: fluid 36–72px."
112
+ },
113
+ "measure": {
114
+ "type": "string",
115
+ "enum": [
116
+ "narrow",
117
+ "normal",
118
+ "wide"
119
+ ],
120
+ "description": "Max line width: 16/24/36ch."
121
+ },
122
+ "align": {
123
+ "type": "string",
124
+ "enum": [
125
+ "start",
126
+ "center",
127
+ "end"
128
+ ],
129
+ "description": "Text alignment, not block placement."
130
+ },
131
+ "level": {
132
+ "type": "integer",
133
+ "default": 2,
134
+ "description": "Semantic heading level 1–6."
135
+ },
136
+ "muted": {
137
+ "type": "boolean",
138
+ "default": false,
139
+ "description": "Render in muted-foreground"
140
+ }
141
+ },
142
+ "usageScenarios": [
143
+ "Section title above a Table or Card",
144
+ "Hero headline on a landing page"
145
+ ],
146
+ "constraints": [
147
+ "Use only one h1 per page"
148
+ ]
149
+ }
150
+ },
151
+ {
152
+ "name": "List",
153
+ "export": "List",
154
+ "module": "data.tsx",
155
+ "catalog": {
156
+ "name": "List",
157
+ "description": "Unordered list of child blocks. Use with divided or compact for different visual densities.",
158
+ "category": "composite",
159
+ "level": "L2",
160
+ "tags": [
161
+ "list"
162
+ ],
163
+ "props": {
164
+ "divided": {
165
+ "type": "boolean",
166
+ "default": false,
167
+ "description": "Add hairline dividers between items"
168
+ },
169
+ "compact": {
170
+ "type": "boolean",
171
+ "default": false
172
+ },
173
+ "label": {
174
+ "type": "string",
175
+ "description": "ARIA label"
176
+ }
177
+ },
178
+ "usageScenarios": [
179
+ "Recent activity feed",
180
+ "Search result list"
181
+ ],
182
+ "constraints": []
183
+ }
184
+ },
185
+ {
186
+ "name": "Markdown",
187
+ "export": "Markdown",
188
+ "module": "data.tsx",
189
+ "catalog": {
190
+ "name": "Markdown",
191
+ "description": "Renders Markdown source into HTML. Supports # headings, **bold**, *italic*, `code`, and - lists.",
192
+ "category": "primitive",
193
+ "level": "L1",
194
+ "tags": [
195
+ "text",
196
+ "markdown",
197
+ "content"
198
+ ],
199
+ "props": {
200
+ "content": {
201
+ "type": "string",
202
+ "description": "Markdown source text"
203
+ }
204
+ },
205
+ "usageScenarios": [
206
+ "Documentation sections",
207
+ "Feature descriptions on a landing page",
208
+ "Release notes"
209
+ ],
210
+ "constraints": [
211
+ "No HTML injection; only Markdown syntax is parsed"
212
+ ]
213
+ }
214
+ },
215
+ {
216
+ "name": "Paragraph",
217
+ "export": "Paragraph",
218
+ "module": "data.tsx",
219
+ "catalog": {
220
+ "name": "Paragraph",
221
+ "description": "Body text block. Use lead for fluid introductory copy; optional measure bounds reading width.",
222
+ "category": "primitive",
223
+ "level": "L1",
224
+ "tags": [
225
+ "text",
226
+ "typography"
227
+ ],
228
+ "props": {
229
+ "className": {
230
+ "type": "string",
231
+ "description": "Tailwind classes"
232
+ },
233
+ "text": {
234
+ "type": "string"
235
+ },
236
+ "font": {
237
+ "type": "string",
238
+ "enum": [
239
+ "inherit",
240
+ "display",
241
+ "body",
242
+ "mono"
243
+ ],
244
+ "description": "Theme font role."
245
+ },
246
+ "size": {
247
+ "type": "string",
248
+ "enum": [
249
+ "sm",
250
+ "md",
251
+ "lg",
252
+ "lead"
253
+ ],
254
+ "default": "md",
255
+ "description": "lead: fluid 18–22px; legacy sizes unchanged."
256
+ },
257
+ "measure": {
258
+ "type": "string",
259
+ "enum": [
260
+ "narrow",
261
+ "normal",
262
+ "wide"
263
+ ],
264
+ "description": "Max line width: 45/65/80ch."
265
+ },
266
+ "align": {
267
+ "type": "string",
268
+ "enum": [
269
+ "start",
270
+ "center",
271
+ "end"
272
+ ],
273
+ "description": "Text alignment, not block placement."
274
+ },
275
+ "muted": {
276
+ "type": "boolean",
277
+ "default": false
278
+ }
279
+ },
280
+ "usageScenarios": [
281
+ "Feature description below a Heading",
282
+ "Helper caption below a form field"
283
+ ],
284
+ "constraints": []
285
+ }
286
+ },
287
+ {
288
+ "name": "Stat",
289
+ "export": "Stat",
290
+ "module": "data.tsx",
291
+ "catalog": {
292
+ "name": "Stat",
293
+ "description": "KPI metric card: large value, label, optional trend arrow, and change string.",
294
+ "category": "primitive",
295
+ "level": "L2",
296
+ "tags": [
297
+ "stat",
298
+ "kpi",
299
+ "metric"
300
+ ],
301
+ "props": {
302
+ "label": {
303
+ "type": "string"
304
+ },
305
+ "value": {
306
+ "type": "string",
307
+ "description": "Main metric value, e.g. 1,234 or $12k"
308
+ },
309
+ "change": {
310
+ "type": "string",
311
+ "description": "Change label, e.g. \"+12% vs last month\""
312
+ },
313
+ "trend": {
314
+ "type": "string",
315
+ "enum": [
316
+ "up",
317
+ "down"
318
+ ]
319
+ },
320
+ "description": {
321
+ "type": "string",
322
+ "description": "Secondary helper text"
323
+ }
324
+ },
325
+ "usageScenarios": [
326
+ "Dashboard KPI row (4 Stat blocks side-by-side in a Box[direction=row])",
327
+ "Single revenue metric in a Card"
328
+ ],
329
+ "constraints": [
330
+ "Do not put detailed charts inside a Stat; use Stat only for a single number + context"
331
+ ]
332
+ }
333
+ },
334
+ {
335
+ "name": "Table",
336
+ "export": "Table",
337
+ "module": "data.tsx",
338
+ "catalog": {
339
+ "name": "Table",
340
+ "description": "Data grid with typed columns and row data. Columns define keys and display labels.",
341
+ "category": "composite",
342
+ "level": "L2",
343
+ "tags": [
344
+ "table",
345
+ "grid",
346
+ "data"
347
+ ],
348
+ "props": {
349
+ "columns": {
350
+ "type": "array",
351
+ "items": {
352
+ "type": "object",
353
+ "properties": {
354
+ "key": {
355
+ "type": "string"
356
+ },
357
+ "label": {
358
+ "type": "string"
359
+ },
360
+ "align": {
361
+ "type": "string",
362
+ "enum": [
363
+ "left",
364
+ "center",
365
+ "right"
366
+ ]
367
+ }
368
+ }
369
+ },
370
+ "description": "[{key, label, align?}]"
371
+ },
372
+ "rows": {
373
+ "type": "array",
374
+ "items": {
375
+ "type": "object"
376
+ },
377
+ "description": "Rows keyed to column.key"
378
+ },
379
+ "emptyText": {
380
+ "type": "string",
381
+ "default": "No data"
382
+ },
383
+ "striped": {
384
+ "type": "boolean",
385
+ "default": true
386
+ },
387
+ "caption": {
388
+ "type": "string"
389
+ }
390
+ },
391
+ "usageScenarios": [
392
+ "User management list",
393
+ "Order history table",
394
+ "API endpoint catalog"
395
+ ],
396
+ "constraints": [
397
+ "rows entries must have keys matching column.key; missing keys render empty string",
398
+ "Avoid more than 8 columns"
399
+ ]
400
+ }
401
+ }
402
+ ]
403
+ }
404
+ }
405
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "document-assistant",
4
+ "type": "registry:block",
5
+ "description": "Document with an assistant: shared rich editor with revision-aware host saves and protected drafts.",
6
+ "registryDependencies": [
7
+ "@uibot/chat-workspace",
8
+ "@uibot/document-workspace",
9
+ "@uibot/grid"
10
+ ],
11
+ "files": [
12
+ {
13
+ "path": "lib/uibot/templates/document-assistant.uibot.yaml",
14
+ "target": "lib/uibot/templates/document-assistant.uibot.yaml",
15
+ "content": "version: \"2.0\"\npages:\n - id: document-assistant\n path: /document-assistant\n title: Document with an assistant\n blocks:\n - type: Grid\n props:\n cols: 2\n gap: md\n responsive: true\n children:\n - id: document-assistant-editor\n type: DocumentWorkspace\n props:\n bindingId: document\n title: Document with an assistant\n markdown: |-\n # Project notes\n\n Capture the decisions behind your next idea.\n\n ## Overview\n\n Write, select text, and explore the formatting controls.\n\n ## Next steps\n\n - Review the draft\n - Connect your document host\n readOnly: false\n autoSaveMs: 1500\n locale: zh-CN\n previewState: ready\n variant: assistant\n - id: document-assistant-chat\n type: ChatWorkspace\n props:\n bindingId: chat\n variant: copilot\n title: Writing assistant / 写作助手\n",
16
+ "type": "registry:lib"
17
+ },
18
+ {
19
+ "path": "lib/uibot/templates/document-assistant.uibot.json",
20
+ "target": "lib/uibot/templates/document-assistant.uibot.json",
21
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"document-assistant\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"document-assistant.uibot.yaml\",\n \"contract\": {\n \"name\": \"document-assistant\",\n \"description\": \"Document with an assistant: shared rich editor with revision-aware host saves and protected drafts.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"document-assistant\",\n \"文档与 AI 双栏\",\n \"Document with an assistant\",\n \"documents\",\n \"chat\",\n \"assistant\"\n ],\n \"composedFrom\": [\n \"Grid\",\n \"DocumentWorkspace\",\n \"ChatWorkspace\"\n ]\n }\n }\n}\n",
22
+ "type": "registry:lib"
23
+ }
24
+ ],
25
+ "meta": {
26
+ "uibot": {
27
+ "schema": "uibot.registry.item.v1",
28
+ "item": "document-assistant",
29
+ "channel": "public",
30
+ "template": {
31
+ "file": "document-assistant.uibot.yaml",
32
+ "contract": {
33
+ "name": "document-assistant",
34
+ "description": "Document with an assistant: shared rich editor with revision-aware host saves and protected drafts.",
35
+ "level": "L4",
36
+ "category": "page",
37
+ "keywords": [
38
+ "document-assistant",
39
+ "文档与 AI 双栏",
40
+ "Document with an assistant",
41
+ "documents",
42
+ "chat",
43
+ "assistant"
44
+ ],
45
+ "composedFrom": [
46
+ "Grid",
47
+ "DocumentWorkspace",
48
+ "ChatWorkspace"
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "document-library",
4
+ "type": "registry:block",
5
+ "description": "Document library: shared rich editor with revision-aware host saves and protected drafts.",
6
+ "registryDependencies": [
7
+ "@uibot/document-workspace"
8
+ ],
9
+ "files": [
10
+ {
11
+ "path": "lib/uibot/templates/document-library.uibot.yaml",
12
+ "target": "lib/uibot/templates/document-library.uibot.yaml",
13
+ "content": "version: \"2.0\"\npages:\n - id: document-library\n path: /document-library\n title: Document library\n blocks:\n - id: document-library-editor\n type: DocumentWorkspace\n props:\n bindingId: document\n title: Document library\n markdown: |-\n # Project notes\n\n Capture the decisions behind your next idea.\n\n ## Overview\n\n Write, select text, and explore the formatting controls.\n\n ## Next steps\n\n - Review the draft\n - Connect your document host\n readOnly: false\n autoSaveMs: 1500\n locale: zh-CN\n previewState: ready\n variant: library\n",
14
+ "type": "registry:lib"
15
+ },
16
+ {
17
+ "path": "lib/uibot/templates/document-library.uibot.json",
18
+ "target": "lib/uibot/templates/document-library.uibot.json",
19
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"document-library\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"document-library.uibot.yaml\",\n \"contract\": {\n \"name\": \"document-library\",\n \"description\": \"Document library: shared rich editor with revision-aware host saves and protected drafts.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"document-library\",\n \"文档列表与编辑\",\n \"Document library\",\n \"documents\",\n \"library\"\n ],\n \"composedFrom\": [\n \"DocumentWorkspace\"\n ]\n }\n }\n}\n",
20
+ "type": "registry:lib"
21
+ }
22
+ ],
23
+ "meta": {
24
+ "uibot": {
25
+ "schema": "uibot.registry.item.v1",
26
+ "item": "document-library",
27
+ "channel": "public",
28
+ "template": {
29
+ "file": "document-library.uibot.yaml",
30
+ "contract": {
31
+ "name": "document-library",
32
+ "description": "Document library: shared rich editor with revision-aware host saves and protected drafts.",
33
+ "level": "L4",
34
+ "category": "page",
35
+ "keywords": [
36
+ "document-library",
37
+ "文档列表与编辑",
38
+ "Document library",
39
+ "documents",
40
+ "library"
41
+ ],
42
+ "composedFrom": [
43
+ "DocumentWorkspace"
44
+ ]
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "document-reading",
4
+ "type": "registry:block",
5
+ "description": "Reading with an outline: shared rich editor with revision-aware host saves and protected drafts.",
6
+ "registryDependencies": [
7
+ "@uibot/document-workspace"
8
+ ],
9
+ "files": [
10
+ {
11
+ "path": "lib/uibot/templates/document-reading.uibot.yaml",
12
+ "target": "lib/uibot/templates/document-reading.uibot.yaml",
13
+ "content": "version: \"2.0\"\npages:\n - id: document-reading\n path: /document-reading\n title: Reading with an outline\n blocks:\n - id: document-reading-editor\n type: DocumentWorkspace\n props:\n bindingId: document\n title: Reading with an outline\n markdown: |-\n # Project notes\n\n Capture the decisions behind your next idea.\n\n ## Overview\n\n Write, select text, and explore the formatting controls.\n\n ## Next steps\n\n - Review the draft\n - Connect your document host\n readOnly: true\n autoSaveMs: 1500\n locale: zh-CN\n previewState: ready\n variant: reading\n",
14
+ "type": "registry:lib"
15
+ },
16
+ {
17
+ "path": "lib/uibot/templates/document-reading.uibot.json",
18
+ "target": "lib/uibot/templates/document-reading.uibot.json",
19
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"document-reading\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"document-reading.uibot.yaml\",\n \"contract\": {\n \"name\": \"document-reading\",\n \"description\": \"Reading with an outline: shared rich editor with revision-aware host saves and protected drafts.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"document-reading\",\n \"目录阅读\",\n \"Reading with an outline\",\n \"documents\",\n \"reading\"\n ],\n \"composedFrom\": [\n \"DocumentWorkspace\"\n ]\n }\n }\n}\n",
20
+ "type": "registry:lib"
21
+ }
22
+ ],
23
+ "meta": {
24
+ "uibot": {
25
+ "schema": "uibot.registry.item.v1",
26
+ "item": "document-reading",
27
+ "channel": "public",
28
+ "template": {
29
+ "file": "document-reading.uibot.yaml",
30
+ "contract": {
31
+ "name": "document-reading",
32
+ "description": "Reading with an outline: shared rich editor with revision-aware host saves and protected drafts.",
33
+ "level": "L4",
34
+ "category": "page",
35
+ "keywords": [
36
+ "document-reading",
37
+ "目录阅读",
38
+ "Reading with an outline",
39
+ "documents",
40
+ "reading"
41
+ ],
42
+ "composedFrom": [
43
+ "DocumentWorkspace"
44
+ ]
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }