@uibot/cli 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 (159) hide show
  1. package/README.md +50 -0
  2. package/dist/app-host-template.json +1 -0
  3. package/dist/app-scaffold.d.ts +15 -0
  4. package/dist/cli.js +210 -141
  5. package/dist/commands/agent-skills.d.ts +1 -0
  6. package/dist/commands/app.d.ts +10 -0
  7. package/dist/commands/logo.d.ts +1 -0
  8. package/dist/commands/resource.d.ts +1 -0
  9. package/dist/distribution-snapshot.d.ts +38 -0
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.js +12446 -214
  12. package/dist/resource-runtime.d.ts +1 -0
  13. package/dist/resources/agent-kit/manifest.json +245 -0
  14. package/dist/resources/agent-kit/prompt-admin/en.md +17 -0
  15. package/dist/resources/agent-kit/prompt-admin/zh.md +17 -0
  16. package/dist/resources/agent-kit/prompt-auth/en.md +17 -0
  17. package/dist/resources/agent-kit/prompt-auth/zh.md +17 -0
  18. package/dist/resources/agent-kit/prompt-chat/en.md +17 -0
  19. package/dist/resources/agent-kit/prompt-chat/zh.md +17 -0
  20. package/dist/resources/agent-kit/prompt-data/en.md +17 -0
  21. package/dist/resources/agent-kit/prompt-data/zh.md +17 -0
  22. package/dist/resources/agent-kit/prompt-documents/en.md +17 -0
  23. package/dist/resources/agent-kit/prompt-documents/zh.md +17 -0
  24. package/dist/resources/agent-kit/prompt-industry/en.md +17 -0
  25. package/dist/resources/agent-kit/prompt-industry/zh.md +17 -0
  26. package/dist/resources/agent-kit/recipe-admin-workbench/en.md +31 -0
  27. package/dist/resources/agent-kit/recipe-admin-workbench/zh.md +31 -0
  28. package/dist/resources/agent-kit/recipe-auth-flow/en.md +56 -0
  29. package/dist/resources/agent-kit/recipe-auth-flow/zh.md +56 -0
  30. package/dist/resources/agent-kit/recipe-knowledge-desk/en.md +20 -0
  31. package/dist/resources/agent-kit/recipe-knowledge-desk/zh.md +20 -0
  32. package/dist/resources/agent-kit/uibot-data-workbench/en.md +28 -0
  33. package/dist/resources/agent-kit/uibot-data-workbench/zh.md +28 -0
  34. package/dist/resources/agent-kit/uibot-knowledge-interface/en.md +26 -0
  35. package/dist/resources/agent-kit/uibot-knowledge-interface/zh.md +26 -0
  36. package/dist/resources/agent-kit/uibot-logo/en.md +20 -0
  37. package/dist/resources/agent-kit/uibot-logo/zh.md +20 -0
  38. package/dist/resources/agent-kit/uibot-resources/en.md +40 -0
  39. package/dist/resources/agent-kit/uibot-resources/zh.md +40 -0
  40. package/dist/resources/bundle.json +1 -1
  41. package/dist/shells/shadcn-admin-shell.yaml +5 -4
  42. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/UIBot-LICENSE +21 -0
  43. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/blocks-icons-LICENSE +46 -0
  44. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/shadcn-THIRD_PARTY_LICENSE +21 -0
  45. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-apps.json +61 -0
  46. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-chats.json +54 -0
  47. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-dashboard.json +70 -0
  48. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-401.json +54 -0
  49. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-403.json +54 -0
  50. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-404.json +54 -0
  51. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-500.json +54 -0
  52. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-503.json +54 -0
  53. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-forgot-password.json +59 -0
  54. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-help.json +53 -0
  55. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-otp.json +59 -0
  56. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-overview.json +62 -0
  57. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-account.json +61 -0
  58. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-appearance.json +61 -0
  59. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-display.json +61 -0
  60. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-notifications.json +61 -0
  61. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-profile.json +61 -0
  62. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings.json +65 -0
  63. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-shell.json +173 -0
  64. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-in-2.json +67 -0
  65. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-in.json +59 -0
  66. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-up.json +59 -0
  67. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-tasks.json +66 -0
  68. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-users.json +66 -0
  69. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/ai-chat.json +74 -0
  70. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/analytics-dashboard.json +65 -0
  71. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-floating.json +54 -0
  72. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-icon-rail.json +54 -0
  73. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-inset.json +54 -0
  74. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-settings.json +54 -0
  75. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-sidebar.json +54 -0
  76. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-workspace.json +54 -0
  77. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-centered.json +61 -0
  78. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-enterprise.json +61 -0
  79. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-recovery.json +64 -0
  80. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-registration.json +63 -0
  81. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-split.json +67 -0
  82. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth.json +61 -0
  83. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/blog.json +64 -0
  84. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/charts.json +238 -0
  85. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-artifact.json +49 -0
  86. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-focused.json +49 -0
  87. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-history.json +49 -0
  88. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-knowledge.json +49 -0
  89. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-support.json +49 -0
  90. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-workspace.json +136 -0
  91. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/collection-shared.json +23 -0
  92. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/commerce-workspace.json +69 -0
  93. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-billing.json +68 -0
  94. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-page.json +289 -0
  95. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-shell.json +29 -0
  96. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/content.json +444 -0
  97. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/creation-shared.json +24 -0
  98. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/crm-workspace.json +73 -0
  99. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/crm.json +67 -0
  100. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/dashboard-01.json +78 -0
  101. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/dashboard.json +257 -0
  102. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data-studio.json +368 -0
  103. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data-table.json +352 -0
  104. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data.json +405 -0
  105. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-assistant.json +54 -0
  106. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-library.json +49 -0
  107. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-reading.json +49 -0
  108. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-workspace.json +164 -0
  109. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-writing.json +49 -0
  110. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/drilldown-menu.json +233 -0
  111. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/ecommerce.json +65 -0
  112. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/education-workspace.json +82 -0
  113. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/feedback.json +344 -0
  114. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/field.json +164 -0
  115. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/form.json +429 -0
  116. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/grid.json +188 -0
  117. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/interactive.json +355 -0
  118. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/item-grid.json +219 -0
  119. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/kanban.json +154 -0
  120. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/layout.json +790 -0
  121. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/lms.json +74 -0
  122. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/marketing.json +402 -0
  123. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/nav.json +285 -0
  124. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/portfolio.json +62 -0
  125. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/presentation.json +454 -0
  126. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/pricing.json +63 -0
  127. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/primitives.json +360 -0
  128. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/saas-landing.json +60 -0
  129. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sections.json +734 -0
  130. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/settings.json +72 -0
  131. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/shadcn-admin-shell.json +49 -0
  132. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/shadcn-admin.json +77 -0
  133. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-01.json +42 -0
  134. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-02.json +42 -0
  135. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-03.json +30 -0
  136. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-04.json +30 -0
  137. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-05.json +36 -0
  138. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-06.json +42 -0
  139. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-07.json +54 -0
  140. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-08.json +54 -0
  141. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-09.json +36 -0
  142. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-10.json +66 -0
  143. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-11.json +30 -0
  144. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-12.json +48 -0
  145. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-13.json +30 -0
  146. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-14.json +30 -0
  147. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-15.json +84 -0
  148. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-16.json +66 -0
  149. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-drilldown.json +29 -0
  150. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-primitives.json +155 -0
  151. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/store.json +75 -0
  152. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/support-inbox.json +63 -0
  153. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/team-directory.json +59 -0
  154. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/uibot-base.json +30 -0
  155. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/workspace.json +181 -0
  156. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/snapshot.json +1 -0
  157. package/dist/templates/auth.yaml +84 -67
  158. package/dist/templates/shadcn-admin.yaml +12210 -122
  159. package/package.json +12 -9
@@ -0,0 +1,285 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "nav",
4
+ "type": "registry:ui",
5
+ "description": "Vertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.",
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/nav.tsx",
16
+ "target": "components/uibot/nav.tsx",
17
+ "content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\nimport { ScrollArea } from \"./scroll-area\";\nimport { Icon } from \"./icons\";\nimport { emit } from \"./interaction\";\n\n/**\n * Resolve the visual class for a Link `variant`. Exported so a host that\n * overrides the `Link` renderer (e.g. a router-aware SPA bridge) can reuse the\n * exact same chrome without re-declaring it.\n *\n * - `button` — filled primary button styling (CTA).\n * - `outline` — bordered secondary button styling (CTA pair).\n * - `muted` — muted inline link (header actions).\n * - default — primary inline hyperlink.\n */\nexport function linkVariantClass(variant: unknown): string {\n if (variant === \"button\") {\n return \"inline-flex items-center rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:bg-primary/90\";\n }\n if (variant === \"outline\") {\n return \"inline-flex items-center rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground hover:bg-accent\";\n }\n if (variant === \"muted\") {\n return \"text-muted-foreground hover:text-foreground underline-offset-4 hover:underline\";\n }\n return \"text-primary underline-offset-4 hover:underline\";\n}\n\n/** Sidebar navigation menu */\nexport const PageSiderMenu: RendererComponent = (props, ctx) => (\n <nav\n className=\"uibot-sider-menu flex h-full w-full flex-col bg-muted/30\"\n data-uibot-type=\"PageSiderMenu\"\n aria-label={\n typeof props[\"label\"] === \"string\"\n ? props[\"label\"]\n : typeof props.title === \"string\"\n ? props.title\n : \"Sidebar\"\n }\n >\n {ctx.slots[\"header\"] && (\n <div className=\"shrink-0 border-b px-3 py-3\">{ctx.slots[\"header\"] as ReactNode[]}</div>\n )}\n {typeof props[\"title\"] === \"string\" && (\n <div className=\"uibot-sider-title shrink-0 border-b px-4 py-4\">\n <span className=\"uibot-sider-full-title text-sm font-semibold tracking-tight\">\n {props[\"title\"]}\n </span>\n <span className=\"uibot-sider-abbreviation hidden text-sm font-semibold\" aria-hidden=\"true\">\n {Array.from(props.title.trim())[0] || \"•\"}\n </span>\n </div>\n )}\n <ScrollArea\n className=\"uibot-menu-scroll flex-1\"\n fillContent\n viewportProps={{ \"aria-label\": \"Menu links\" }}\n >\n <ul className=\"py-2\" role=\"list\">\n {ctx.children as ReactNode[]}\n </ul>\n </ScrollArea>\n {ctx.slots[\"footer\"] && (\n <div className=\"uibot-sider-footer shrink-0 border-t px-3 py-3\">\n {ctx.slots[\"footer\"] as ReactNode[]}\n </div>\n )}\n </nav>\n);\n\n/** Labeled group of MenuLink items inside PageSiderMenu */\nexport const MenuGroup: RendererComponent = (props, ctx) => (\n <li className=\"uibot-menu-group list-none\" data-uibot-type=\"MenuGroup\">\n {typeof props[\"title\"] === \"string\" && (\n <div className=\"uibot-menu-group-title px-4 pb-1 pt-3 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground\">\n {props[\"title\"]}\n </div>\n )}\n <ul className=\"space-y-0.5\" role=\"list\">\n {ctx.children as ReactNode[]}\n </ul>\n </li>\n);\n\n/** Single navigation menu item */\nexport const MenuLink: RendererComponent = (props, ctx) => {\n const active = props[\"active\"] === true;\n const icon = typeof props.icon === \"string\" && props.icon.trim() ? props.icon : null;\n const label = typeof props.label === \"string\" ? props.label : \"Link\";\n const iconName =\n typeof props.iconName === \"string\" && props.iconName.trim() ? props.iconName : null;\n const action = !!ctx.element?.events?.onClick?.length;\n const Tag = action ? \"button\" : \"a\";\n\n return (\n <li>\n <Tag\n {...(action\n ? { type: \"button\" as const, onClick: () => emit(ctx, \"onClick\") }\n : { href: typeof props.href === \"string\" ? props.href : \"#\" })}\n className={cn(\n \"uibot-menu-link mx-2 flex items-center gap-2.5 rounded-md px-3 py-2 text-start text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n action && \"w-[calc(100%-1rem)]\",\n active\n ? \"bg-accent text-accent-foreground\"\n : \"text-muted-foreground hover:bg-accent/50 hover:text-foreground\",\n )}\n data-uibot-type=\"MenuLink\"\n aria-current={active ? \"page\" : undefined}\n aria-label={label}\n title={label}\n >\n {iconName && <Icon name={iconName} size={18} />}\n {!iconName && icon && (\n <span className=\"text-base leading-none\" aria-hidden=\"true\">\n {icon}\n </span>\n )}\n {!iconName && !icon && (\n <span className=\"uibot-menu-fallback hidden text-base leading-none\" aria-hidden=\"true\">\n {Array.from(label.trim())[0] || \"•\"}\n </span>\n )}\n <span className=\"uibot-menu-label\">{label}</span>\n {props[\"badge\"] !== undefined && (\n <span className=\"uibot-menu-badge ml-auto rounded-full bg-primary px-1.5 py-0.5 text-[10px] font-medium text-primary-foreground\">\n {String(props[\"badge\"])}\n </span>\n )}\n </Tag>\n </li>\n );\n};\n\n/** Inline hyperlink */\nexport const Link: RendererComponent = (props, ctx) => {\n const children = ctx.children as ReactNode[];\n\n return (\n <a\n href={typeof props[\"href\"] === \"string\" ? props[\"href\"] : \"#\"}\n target={typeof props[\"target\"] === \"string\" ? props[\"target\"] : \"_self\"}\n className={cn(\n \"uibot-link transition-colors\",\n linkVariantClass(props[\"variant\"]),\n typeof props[\"className\"] === \"string\" ? props[\"className\"] : undefined,\n )}\n data-uibot-type=\"Link\"\n >\n {children.length > 0\n ? children\n : typeof props[\"label\"] === \"string\"\n ? props[\"label\"]\n : \"Link\"}\n </a>\n );\n};\n\n/** Parse breadcrumb items — accepts Array<{label,href}> or JSON string */\nfunction parseBreadcrumbItems(raw: unknown): Array<{ label: string; href?: string }> {\n if (Array.isArray(raw)) return raw as Array<{ label: string; href?: string }>;\n if (typeof raw === \"string\") {\n try {\n const parsed = JSON.parse(raw) as unknown;\n if (Array.isArray(parsed)) return parsed as Array<{ label: string; href?: string }>;\n } catch {\n /* ignore */\n }\n }\n return [];\n}\n\n/** Breadcrumb navigation trail */\nexport const Breadcrumb: RendererComponent = (props) => {\n const items = parseBreadcrumbItems(props[\"items\"]);\n\n return (\n <nav aria-label=\"Breadcrumb\" className=\"uibot-breadcrumb\" data-uibot-type=\"Breadcrumb\">\n <ol className=\"flex flex-wrap items-center gap-1 text-sm text-muted-foreground\">\n {items.map((item, i) => (\n <li key={i} className=\"flex items-center gap-1\">\n {i > 0 && (\n <svg\n aria-hidden=\"true\"\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 className=\"shrink-0 opacity-50\"\n >\n <polyline points=\"4 2 10 7 4 12\" />\n </svg>\n )}\n {item.href ? (\n <a\n href={item.href}\n className=\"transition-colors hover:text-foreground hover:underline underline-offset-4\"\n >\n {item.label}\n </a>\n ) : (\n <span aria-current=\"page\" className=\"font-medium text-foreground\">\n {item.label}\n </span>\n )}\n </li>\n ))}\n </ol>\n </nav>\n );\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/icons.tsx",
28
+ "target": "components/uibot/icons.tsx",
29
+ "content": "/*\nISC License\n\nCopyright (c) 2026 Lucide Icons and Contributors\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\n---\n\nThe following Lucide icons are derived from the Feather project:\n\nairplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out\n\nThe MIT License (MIT) (for the icons listed above)\n\nCopyright (c) 2013-present Cole Bemis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n*/\n// Icon paths from lucide-react 1.8.0 (ISC); see docs/shadcn-admin-attribution.md.\nimport { createElement } from \"react\";\nconst paths: Record<string, [string, Record<string, string>][]> = {\n \"panel-left\": [\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\", key: \"afitv7\" }],\n [\"path\", { d: \"M9 3v18\", key: \"fh3hqa\" }],\n ],\n \"layout-dashboard\": [\n [\"rect\", { width: \"7\", height: \"9\", x: \"3\", y: \"3\", rx: \"1\", key: \"10lvy0\" }],\n [\"rect\", { width: \"7\", height: \"5\", x: \"14\", y: \"3\", rx: \"1\", key: \"16une8\" }],\n [\"rect\", { width: \"7\", height: \"9\", x: \"14\", y: \"12\", rx: \"1\", key: \"1hutg5\" }],\n [\"rect\", { width: \"7\", height: \"5\", x: \"3\", y: \"16\", rx: \"1\", key: \"ldoo1y\" }],\n ],\n \"list-todo\": [\n [\"path\", { d: \"M13 5h8\", key: \"a7qcls\" }],\n [\"path\", { d: \"M13 12h8\", key: \"h98zly\" }],\n [\"path\", { d: \"M13 19h8\", key: \"c3s6r1\" }],\n [\"path\", { d: \"m3 17 2 2 4-4\", key: \"1jhpwq\" }],\n [\"rect\", { x: \"3\", y: \"4\", width: \"6\", height: \"6\", rx: \"1\", key: \"cif1o7\" }],\n ],\n users: [\n [\"path\", { d: \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\", key: \"1yyitq\" }],\n [\"path\", { d: \"M16 3.128a4 4 0 0 1 0 7.744\", key: \"16gr8j\" }],\n [\"path\", { d: \"M22 21v-2a4 4 0 0 0-3-3.87\", key: \"kshegd\" }],\n [\"circle\", { cx: \"9\", cy: \"7\", r: \"4\", key: \"nufk8\" }],\n ],\n settings: [\n [\n \"path\",\n {\n d: \"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915\",\n key: \"1i5ecw\",\n },\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }],\n ],\n \"message-circle\": [\n [\n \"path\",\n {\n d: \"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\",\n key: \"1sd12s\",\n },\n ],\n ],\n command: [\n [\n \"path\",\n {\n d: \"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3\",\n key: \"11bfej\",\n },\n ],\n ],\n search: [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n ],\n sun: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"4\", key: \"4exip2\" }],\n [\"path\", { d: \"M12 2v2\", key: \"tus03m\" }],\n [\"path\", { d: \"M12 20v2\", key: \"1lh1kg\" }],\n [\"path\", { d: \"m4.93 4.93 1.41 1.41\", key: \"149t6j\" }],\n [\"path\", { d: \"m17.66 17.66 1.41 1.41\", key: \"ptbguv\" }],\n [\"path\", { d: \"M2 12h2\", key: \"1t8f8n\" }],\n [\"path\", { d: \"M20 12h2\", key: \"1q8mjw\" }],\n [\"path\", { d: \"m6.34 17.66-1.41 1.41\", key: \"1m8zz5\" }],\n [\"path\", { d: \"m19.07 4.93-1.41 1.41\", key: \"1shlcs\" }],\n ],\n moon: [\n [\n \"path\",\n {\n d: \"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\",\n key: \"kfwtm\",\n },\n ],\n ],\n \"chevron-down\": [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]],\n \"chevron-right\": [[\"path\", { d: \"m9 18 6-6-6-6\", key: \"mthhwq\" }]],\n \"chevrons-up-down\": [\n [\"path\", { d: \"m7 15 5 5 5-5\", key: \"1hf1tw\" }],\n [\"path\", { d: \"m7 9 5-5 5 5\", key: \"sgt6xg\" }],\n ],\n plus: [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"M12 5v14\", key: \"s699le\" }],\n ],\n download: [\n [\"path\", { d: \"M12 15V3\", key: \"m9g1x1\" }],\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n [\"path\", { d: \"m7 10 5 5 5-5\", key: \"brsn70\" }],\n ],\n \"sliders-horizontal\": [\n [\"path\", { d: \"M10 5H3\", key: \"1qgfaw\" }],\n [\"path\", { d: \"M12 19H3\", key: \"yhmn1j\" }],\n [\"path\", { d: \"M14 3v4\", key: \"1sua03\" }],\n [\"path\", { d: \"M16 17v4\", key: \"1q0r14\" }],\n [\"path\", { d: \"M21 12h-9\", key: \"1o4lsq\" }],\n [\"path\", { d: \"M21 19h-5\", key: \"1rlt1p\" }],\n [\"path\", { d: \"M21 5h-7\", key: \"1oszz2\" }],\n [\"path\", { d: \"M8 10v4\", key: \"tgpxqk\" }],\n [\"path\", { d: \"M8 12H3\", key: \"a7s4jb\" }],\n ],\n shield: [\n [\n \"path\",\n {\n d: \"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\",\n key: \"oel41y\",\n },\n ],\n ],\n \"log-out\": [\n [\"path\", { d: \"m16 17 5-5-5-5\", key: \"1bji2h\" }],\n [\"path\", { d: \"M21 12H9\", key: \"dn1m92\" }],\n [\"path\", { d: \"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\", key: \"1uf3rs\" }],\n ],\n boxes: [\n [\n \"path\",\n {\n d: \"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z\",\n key: \"lc1i9w\",\n },\n ],\n [\"path\", { d: \"m7 16.5-4.74-2.85\", key: \"1o9zyk\" }],\n [\"path\", { d: \"m7 16.5 5-3\", key: \"va8pkn\" }],\n [\"path\", { d: \"M7 16.5v5.17\", key: \"jnp8gn\" }],\n [\n \"path\",\n {\n d: \"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z\",\n key: \"8zsnat\",\n },\n ],\n [\"path\", { d: \"m17 16.5-5-3\", key: \"8arw3v\" }],\n [\"path\", { d: \"m17 16.5 4.74-2.85\", key: \"8rfmw\" }],\n [\"path\", { d: \"M17 16.5v5.17\", key: \"k6z78m\" }],\n [\n \"path\",\n {\n d: \"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z\",\n key: \"1xygjf\",\n },\n ],\n [\"path\", { d: \"M12 8 7.26 5.15\", key: \"1vbdud\" }],\n [\"path\", { d: \"m12 8 4.74-2.85\", key: \"3rx089\" }],\n [\"path\", { d: \"M12 13.5V8\", key: \"1io7kd\" }],\n ],\n \"chart-no-axes-column\": [\n [\"path\", { d: \"M5 21v-6\", key: \"1hz6c0\" }],\n [\"path\", { d: \"M12 21V3\", key: \"1lcnhd\" }],\n [\"path\", { d: \"M19 21V9\", key: \"unv183\" }],\n ],\n ellipsis: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"1\", key: \"41hilf\" }],\n [\"circle\", { cx: \"19\", cy: \"12\", r: \"1\", key: \"1wjl8i\" }],\n [\"circle\", { cx: \"5\", cy: \"12\", r: \"1\", key: \"1pcz8c\" }],\n ],\n \"arrow-up\": [\n [\"path\", { d: \"m5 12 7-7 7 7\", key: \"hav0vg\" }],\n [\"path\", { d: \"M12 19V5\", key: \"x0mq9r\" }],\n ],\n \"arrow-down\": [\n [\"path\", { d: \"M12 5v14\", key: \"s699le\" }],\n [\"path\", { d: \"m19 12-7 7-7-7\", key: \"1idqje\" }],\n ],\n x: [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }],\n ],\n check: [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]],\n send: [\n [\n \"path\",\n {\n d: \"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\",\n key: \"1ffxy3\",\n },\n ],\n [\"path\", { d: \"m21.854 2.147-10.94 10.939\", key: \"12cjpa\" }],\n ],\n mail: [\n [\"path\", { d: \"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7\", key: \"132q7q\" }],\n [\"rect\", { x: \"2\", y: \"4\", width: \"20\", height: \"16\", rx: \"2\", key: \"izxlao\" }],\n ],\n calendar: [\n [\"path\", { d: \"M8 2v4\", key: \"1cmpym\" }],\n [\"path\", { d: \"M16 2v4\", key: \"4m81vk\" }],\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"4\", rx: \"2\", key: \"1hopcy\" }],\n [\"path\", { d: \"M3 10h18\", key: \"8toen8\" }],\n ],\n eye: [\n [\n \"path\",\n {\n d: \"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\",\n key: \"1nclc0\",\n },\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }],\n ],\n \"eye-off\": [\n [\n \"path\",\n {\n d: \"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\",\n key: \"ct8e1f\",\n },\n ],\n [\"path\", { d: \"M14.084 14.158a3 3 0 0 1-4.242-4.242\", key: \"151rxh\" }],\n [\n \"path\",\n {\n d: \"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\",\n key: \"13bj9a\",\n },\n ],\n [\"path\", { d: \"m2 2 20 20\", key: \"1ooewy\" }],\n ],\n};\nexport function Icon({ name, size = 18 }: { name: string; size?: number }) {\n const nodes = paths[name] ?? paths.boxes ?? [];\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n style={{ flexShrink: 0 }}\n >\n {nodes.map(([tag, attributes]) => createElement(tag, attributes))}\n </svg>\n );\n}\n",
30
+ "type": "registry:ui"
31
+ },
32
+ {
33
+ "path": "components/uibot/interaction.ts",
34
+ "target": "components/uibot/interaction.ts",
35
+ "content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nexport type BlockContext = Parameters<RendererComponent>[1];\nexport type Chain = Parameters<NonNullable<BlockContext[\"dispatch\"]>>[0];\nexport type EventValue = string | number | boolean | null;\nexport function emit(\n ctx: BlockContext,\n name: string,\n values: Record<string, EventValue | EventValue[]> = {},\n value?: EventValue,\n): void {\n const element = ctx.element as { events?: Record<string, Chain> };\n const chain = element.events?.[name];\n if (chain?.length)\n void ctx.dispatch?.(chain, {\n event: { type: name, values, ...(value !== undefined ? { value } : {}) },\n });\n}\nexport function text(value: unknown, fallback = \"\"): string {\n return value == null ? fallback : String(value);\n}\nexport function records(value: unknown): Record<string, unknown>[] {\n return Array.isArray(value)\n ? value.filter(\n (v): v is Record<string, unknown> => !!v && typeof v === \"object\" && !Array.isArray(v),\n )\n : [];\n}\n\nconst submissions = new WeakMap<object, { payload: string; key: string }>();\n/** A new owner represents a new user intent; an unchanged failed submission keeps its key. */\nexport function submissionKey(owner: object, values: unknown): string {\n const payload = JSON.stringify(values);\n const previous = submissions.get(owner);\n if (previous?.payload === payload) return previous.key;\n const key = crypto.randomUUID();\n submissions.set(owner, { payload, key });\n return key;\n}\n",
36
+ "type": "registry:ui"
37
+ },
38
+ {
39
+ "path": "components/uibot/nav.uibot.json",
40
+ "target": "components/uibot/nav.uibot.json",
41
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"nav\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"Breadcrumb\",\n \"export\": \"Breadcrumb\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"Breadcrumb\",\n \"description\": \"Hierarchical page path trail. Pass an items array of {label, href?}.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"breadcrumb\",\n \"nav\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Path segments\"\n }\n },\n \"usageScenarios\": [\n \"Page location context in an admin CRUD view\",\n \"Multi-step wizard progress\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"Link\",\n \"export\": \"Link\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"Link\",\n \"description\": \"Inline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"link\"\n ],\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"enum\": [\n \"default\",\n \"muted\",\n \"button\",\n \"outline\"\n ],\n \"default\": \"default\"\n },\n \"target\": {\n \"type\": \"string\",\n \"enum\": [\n \"_self\",\n \"_blank\"\n ],\n \"default\": \"_self\"\n },\n \"className\": {\n \"type\": \"string\",\n \"description\": \"Additional utility classes\"\n }\n },\n \"usageScenarios\": [\n \"Inline 'Read more' link in a paragraph\",\n \"CTA button-style link in a hero section\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"MenuGroup\",\n \"export\": \"MenuGroup\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"MenuGroup\",\n \"description\": \"Labeled group of MenuLink items inside PageSiderMenu.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"sidebar\",\n \"nav\"\n ],\n \"props\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"Group heading shown above the links\"\n }\n },\n \"usageScenarios\": [\n \"Platform vs Workspace nav groups\",\n \"Settings section grouping\"\n ],\n \"constraints\": [\n \"Child of PageSiderMenu\"\n ]\n }\n },\n {\n \"name\": \"MenuLink\",\n \"export\": \"MenuLink\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"MenuLink\",\n \"description\": \"Sidebar link with icon/badge. An onClick chain renders an action button.\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"nav\",\n \"link\"\n ],\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"description\": \"Emoji or Unicode glyph\"\n },\n \"iconName\": {\n \"type\": \"string\",\n \"description\": \"Lucide name\"\n },\n \"badge\": {\n \"type\": \"string\",\n \"description\": \"Trailing count/label\"\n },\n \"active\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n \"usageScenarios\": [\n \"Dashboard menu item\",\n \"Settings section link with unread badge\"\n ],\n \"constraints\": [\n \"Child of PageSiderMenu/MenuGroup\"\n ],\n \"events\": {\n \"onClick\": {\n \"description\": \"Renders a button; ignores href\"\n }\n }\n }\n },\n {\n \"name\": \"PageSiderMenu\",\n \"export\": \"PageSiderMenu\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"PageSiderMenu\",\n \"description\": \"Vertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"sidebar\",\n \"nav\"\n ],\n \"props\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"Section heading above menu items\"\n }\n },\n \"slots\": {\n \"header\": {\n \"description\": \"Workspace switcher or brand above the menu list\"\n },\n \"footer\": {\n \"description\": \"User card or secondary links below the menu list\"\n }\n },\n \"usageScenarios\": [\n \"Admin left nav (Dashboard, Users, Settings)\",\n \"Docs section navigation\"\n ],\n \"constraints\": [\n \"Use in the PageLayout sidebar slot, not main content\"\n ]\n }\n }\n ]\n}\n",
42
+ "type": "registry:ui"
43
+ }
44
+ ],
45
+ "meta": {
46
+ "category": "composite",
47
+ "level": "L2",
48
+ "props": {
49
+ "title": {
50
+ "type": "string",
51
+ "description": "Section heading above menu items"
52
+ }
53
+ },
54
+ "slots": {
55
+ "header": {
56
+ "description": "Workspace switcher or brand above the menu list"
57
+ },
58
+ "footer": {
59
+ "description": "User card or secondary links below the menu list"
60
+ }
61
+ },
62
+ "scenarios": [
63
+ "Admin left nav (Dashboard, Users, Settings)",
64
+ "Docs section navigation"
65
+ ],
66
+ "constraints": [
67
+ "Use in the PageLayout sidebar slot, not main content"
68
+ ],
69
+ "provides": [
70
+ "PageSiderMenu",
71
+ "MenuGroup",
72
+ "MenuLink",
73
+ "Link",
74
+ "Breadcrumb"
75
+ ],
76
+ "uibot": {
77
+ "schema": "uibot.registry.item.v1",
78
+ "item": "nav",
79
+ "channel": "public",
80
+ "components": [
81
+ {
82
+ "name": "Breadcrumb",
83
+ "export": "Breadcrumb",
84
+ "module": "nav.tsx",
85
+ "catalog": {
86
+ "name": "Breadcrumb",
87
+ "description": "Hierarchical page path trail. Pass an items array of {label, href?}.",
88
+ "category": "composite",
89
+ "level": "L2",
90
+ "tags": [
91
+ "breadcrumb",
92
+ "nav"
93
+ ],
94
+ "props": {
95
+ "items": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "object",
99
+ "properties": {
100
+ "label": {
101
+ "type": "string"
102
+ },
103
+ "href": {
104
+ "type": "string"
105
+ }
106
+ }
107
+ },
108
+ "description": "Path segments"
109
+ }
110
+ },
111
+ "usageScenarios": [
112
+ "Page location context in an admin CRUD view",
113
+ "Multi-step wizard progress"
114
+ ],
115
+ "constraints": []
116
+ }
117
+ },
118
+ {
119
+ "name": "Link",
120
+ "export": "Link",
121
+ "module": "nav.tsx",
122
+ "catalog": {
123
+ "name": "Link",
124
+ "description": "Inline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).",
125
+ "category": "primitive",
126
+ "level": "L1",
127
+ "tags": [
128
+ "link"
129
+ ],
130
+ "props": {
131
+ "label": {
132
+ "type": "string"
133
+ },
134
+ "href": {
135
+ "type": "string"
136
+ },
137
+ "variant": {
138
+ "type": "string",
139
+ "enum": [
140
+ "default",
141
+ "muted",
142
+ "button",
143
+ "outline"
144
+ ],
145
+ "default": "default"
146
+ },
147
+ "target": {
148
+ "type": "string",
149
+ "enum": [
150
+ "_self",
151
+ "_blank"
152
+ ],
153
+ "default": "_self"
154
+ },
155
+ "className": {
156
+ "type": "string",
157
+ "description": "Additional utility classes"
158
+ }
159
+ },
160
+ "usageScenarios": [
161
+ "Inline 'Read more' link in a paragraph",
162
+ "CTA button-style link in a hero section"
163
+ ],
164
+ "constraints": []
165
+ }
166
+ },
167
+ {
168
+ "name": "MenuGroup",
169
+ "export": "MenuGroup",
170
+ "module": "nav.tsx",
171
+ "catalog": {
172
+ "name": "MenuGroup",
173
+ "description": "Labeled group of MenuLink items inside PageSiderMenu.",
174
+ "category": "composite",
175
+ "level": "L2",
176
+ "tags": [
177
+ "sidebar",
178
+ "nav"
179
+ ],
180
+ "props": {
181
+ "title": {
182
+ "type": "string",
183
+ "description": "Group heading shown above the links"
184
+ }
185
+ },
186
+ "usageScenarios": [
187
+ "Platform vs Workspace nav groups",
188
+ "Settings section grouping"
189
+ ],
190
+ "constraints": [
191
+ "Child of PageSiderMenu"
192
+ ]
193
+ }
194
+ },
195
+ {
196
+ "name": "MenuLink",
197
+ "export": "MenuLink",
198
+ "module": "nav.tsx",
199
+ "catalog": {
200
+ "name": "MenuLink",
201
+ "description": "Sidebar link with icon/badge. An onClick chain renders an action button.",
202
+ "category": "primitive",
203
+ "level": "L1",
204
+ "tags": [
205
+ "nav",
206
+ "link"
207
+ ],
208
+ "props": {
209
+ "label": {
210
+ "type": "string"
211
+ },
212
+ "href": {
213
+ "type": "string"
214
+ },
215
+ "icon": {
216
+ "type": "string",
217
+ "description": "Emoji or Unicode glyph"
218
+ },
219
+ "iconName": {
220
+ "type": "string",
221
+ "description": "Lucide name"
222
+ },
223
+ "badge": {
224
+ "type": "string",
225
+ "description": "Trailing count/label"
226
+ },
227
+ "active": {
228
+ "type": "boolean",
229
+ "default": false
230
+ }
231
+ },
232
+ "usageScenarios": [
233
+ "Dashboard menu item",
234
+ "Settings section link with unread badge"
235
+ ],
236
+ "constraints": [
237
+ "Child of PageSiderMenu/MenuGroup"
238
+ ],
239
+ "events": {
240
+ "onClick": {
241
+ "description": "Renders a button; ignores href"
242
+ }
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "name": "PageSiderMenu",
248
+ "export": "PageSiderMenu",
249
+ "module": "nav.tsx",
250
+ "catalog": {
251
+ "name": "PageSiderMenu",
252
+ "description": "Vertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.",
253
+ "category": "composite",
254
+ "level": "L2",
255
+ "tags": [
256
+ "sidebar",
257
+ "nav"
258
+ ],
259
+ "props": {
260
+ "title": {
261
+ "type": "string",
262
+ "description": "Section heading above menu items"
263
+ }
264
+ },
265
+ "slots": {
266
+ "header": {
267
+ "description": "Workspace switcher or brand above the menu list"
268
+ },
269
+ "footer": {
270
+ "description": "User card or secondary links below the menu list"
271
+ }
272
+ },
273
+ "usageScenarios": [
274
+ "Admin left nav (Dashboard, Users, Settings)",
275
+ "Docs section navigation"
276
+ ],
277
+ "constraints": [
278
+ "Use in the PageLayout sidebar slot, not main content"
279
+ ]
280
+ }
281
+ }
282
+ ]
283
+ }
284
+ }
285
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "portfolio",
4
+ "type": "registry:block",
5
+ "description": "Ada Lovelace — Designer & Engineer",
6
+ "registryDependencies": [
7
+ "@uibot/data",
8
+ "@uibot/feedback",
9
+ "@uibot/grid",
10
+ "@uibot/interactive",
11
+ "@uibot/layout",
12
+ "@uibot/nav"
13
+ ],
14
+ "files": [
15
+ {
16
+ "path": "lib/uibot/templates/portfolio.uibot.yaml",
17
+ "target": "lib/uibot/templates/portfolio.uibot.yaml",
18
+ "content": "version: \"2.0\"\npages:\n - id: portfolio\n path: /\n title: Ada Lovelace — Designer & Engineer\n blocks:\n - type: PageLayout\n props:\n title: Ada Lovelace\n slots:\n headerActions:\n - type: Link\n props:\n label: Resume\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Contact\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-5 py-16 max-w-2xl\"\n children:\n - type: BadgeGroup\n props:\n items:\n - label: Available for work\n tone: success\n - type: Heading\n props:\n level: 1\n text: \"I design and build calm, fast software.\"\n - type: Paragraph\n props:\n size: lg\n muted: true\n text: \"Product designer and front-end engineer. Eight years shipping interfaces for fintech and developer tools. Currently at Northwind.\"\n - type: Box\n props:\n className: \"flex gap-3\"\n children:\n - type: Button\n props:\n label: View work\n - type: Button\n props:\n label: \"Get in touch\"\n variant: outline\n - type: Divider\n - type: Box\n props:\n className: \"py-8\"\n children:\n - type: Heading\n props:\n level: 2\n text: Selected work\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Stills are not attached — hairline frames stand in for the case studies.\"\n - type: Grid\n props:\n cols: \"2\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Northwind Console\n description: \"Design system · 2025\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-44 -mx-6 mb-3 border border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Case still · not attached\"\n - type: Paragraph\n props:\n muted: true\n text: \"Unified 40+ surfaces under one OKLCH token system and a keyboard-first interaction model.\"\n - type: Card\n props:\n title: Ledger Mobile\n description: \"iOS · 2024\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-44 -mx-6 mb-3 border border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Case still · not attached\"\n - type: Paragraph\n props:\n muted: true\n text: \"Redesigned the budgeting flow, cutting time-to-first-transaction by 60%.\"\n - type: Box\n props:\n className: \"py-12\"\n children:\n - type: KeyValueGrid\n props:\n cols: \"3\"\n items:\n - key: Years\n value: \"8+\"\n - key: Shipped products\n value: \"24\"\n - key: Based in\n value: \"Lisbon\"\n - type: Box\n props:\n className: \"flex flex-col items-start gap-4 my-12 py-10 px-6 border border-border bg-foreground text-background\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"Let's build something\"\n - type: Paragraph\n props:\n text: \"Open to select freelance and full-time roles. No purple CTA wash.\"\n - type: Button\n props:\n label: \"ada@lovelace.dev\"\n variant: secondary\n size: lg\n",
19
+ "type": "registry:lib"
20
+ },
21
+ {
22
+ "path": "lib/uibot/templates/portfolio.uibot.json",
23
+ "target": "lib/uibot/templates/portfolio.uibot.json",
24
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"portfolio\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"portfolio.uibot.yaml\",\n \"contract\": {\n \"name\": \"portfolio\",\n \"description\": \"Ada Lovelace — Designer & Engineer\",\n \"level\": \"L4\",\n \"category\": \"template\",\n \"keywords\": [\n \"portfolio\",\n \"portfolio\",\n \"uibot-template\"\n ],\n \"composedFrom\": [\n \"BadgeGroup\",\n \"Box\",\n \"Button\",\n \"Card\",\n \"Divider\",\n \"Grid\",\n \"Heading\",\n \"KeyValueGrid\",\n \"Link\",\n \"PageLayout\",\n \"Paragraph\"\n ]\n }\n }\n}\n",
25
+ "type": "registry:lib"
26
+ }
27
+ ],
28
+ "meta": {
29
+ "uibot": {
30
+ "schema": "uibot.registry.item.v1",
31
+ "item": "portfolio",
32
+ "channel": "public",
33
+ "template": {
34
+ "file": "portfolio.uibot.yaml",
35
+ "contract": {
36
+ "name": "portfolio",
37
+ "description": "Ada Lovelace — Designer & Engineer",
38
+ "level": "L4",
39
+ "category": "template",
40
+ "keywords": [
41
+ "portfolio",
42
+ "portfolio",
43
+ "uibot-template"
44
+ ],
45
+ "composedFrom": [
46
+ "BadgeGroup",
47
+ "Box",
48
+ "Button",
49
+ "Card",
50
+ "Divider",
51
+ "Grid",
52
+ "Heading",
53
+ "KeyValueGrid",
54
+ "Link",
55
+ "PageLayout",
56
+ "Paragraph"
57
+ ]
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }