@major-tech/ui 0.0.0-stage → 1.0.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 (495) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/THIRD_PARTY_NOTICES.md +27 -0
  3. package/dist/components/accordion.d.ts +33 -0
  4. package/dist/components/accordion.d.ts.map +1 -0
  5. package/dist/components/accordion.js +51 -0
  6. package/dist/components/accordion.js.map +1 -0
  7. package/dist/components/activity-chart.d.ts +26 -0
  8. package/dist/components/activity-chart.d.ts.map +1 -0
  9. package/dist/components/activity-chart.js +56 -0
  10. package/dist/components/activity-chart.js.map +1 -0
  11. package/dist/components/alert-dialog.d.ts +28 -0
  12. package/dist/components/alert-dialog.d.ts.map +1 -0
  13. package/dist/components/alert-dialog.js +51 -0
  14. package/dist/components/alert-dialog.js.map +1 -0
  15. package/dist/components/alert.d.ts +34 -0
  16. package/dist/components/alert.d.ts.map +1 -0
  17. package/dist/components/alert.js +59 -0
  18. package/dist/components/alert.js.map +1 -0
  19. package/dist/components/ask-user-question.d.ts +103 -0
  20. package/dist/components/ask-user-question.d.ts.map +1 -0
  21. package/dist/components/ask-user-question.js +401 -0
  22. package/dist/components/ask-user-question.js.map +1 -0
  23. package/dist/components/attachment-gallery.d.ts +137 -0
  24. package/dist/components/attachment-gallery.d.ts.map +1 -0
  25. package/dist/components/attachment-gallery.js +317 -0
  26. package/dist/components/attachment-gallery.js.map +1 -0
  27. package/dist/components/avatar.d.ts +37 -0
  28. package/dist/components/avatar.d.ts.map +1 -0
  29. package/dist/components/avatar.js +62 -0
  30. package/dist/components/avatar.js.map +1 -0
  31. package/dist/components/badge.d.ts +29 -0
  32. package/dist/components/badge.d.ts.map +1 -0
  33. package/dist/components/badge.js +50 -0
  34. package/dist/components/badge.js.map +1 -0
  35. package/dist/components/brand-tile.d.ts +33 -0
  36. package/dist/components/brand-tile.d.ts.map +1 -0
  37. package/dist/components/brand-tile.js +36 -0
  38. package/dist/components/brand-tile.js.map +1 -0
  39. package/dist/components/button.d.ts +51 -0
  40. package/dist/components/button.d.ts.map +1 -0
  41. package/dist/components/button.js +90 -0
  42. package/dist/components/button.js.map +1 -0
  43. package/dist/components/calendar.d.ts +18 -0
  44. package/dist/components/calendar.d.ts.map +1 -0
  45. package/dist/components/calendar.js +78 -0
  46. package/dist/components/calendar.js.map +1 -0
  47. package/dist/components/card.d.ts +18 -0
  48. package/dist/components/card.d.ts.map +1 -0
  49. package/dist/components/card.js +34 -0
  50. package/dist/components/card.js.map +1 -0
  51. package/dist/components/carousel.d.ts +48 -0
  52. package/dist/components/carousel.d.ts.map +1 -0
  53. package/dist/components/carousel.js +227 -0
  54. package/dist/components/carousel.js.map +1 -0
  55. package/dist/components/catalog-card.d.ts +29 -0
  56. package/dist/components/catalog-card.d.ts.map +1 -0
  57. package/dist/components/catalog-card.js +20 -0
  58. package/dist/components/catalog-card.js.map +1 -0
  59. package/dist/components/chart.d.ts +118 -0
  60. package/dist/components/chart.d.ts.map +1 -0
  61. package/dist/components/chart.js +209 -0
  62. package/dist/components/chart.js.map +1 -0
  63. package/dist/components/checkbox.d.ts +8 -0
  64. package/dist/components/checkbox.d.ts.map +1 -0
  65. package/dist/components/checkbox.js +14 -0
  66. package/dist/components/checkbox.js.map +1 -0
  67. package/dist/components/chip.d.ts +68 -0
  68. package/dist/components/chip.d.ts.map +1 -0
  69. package/dist/components/chip.js +100 -0
  70. package/dist/components/chip.js.map +1 -0
  71. package/dist/components/code-block.d.ts +99 -0
  72. package/dist/components/code-block.d.ts.map +1 -0
  73. package/dist/components/code-block.js +144 -0
  74. package/dist/components/code-block.js.map +1 -0
  75. package/dist/components/collapsible.d.ts +17 -0
  76. package/dist/components/collapsible.d.ts.map +1 -0
  77. package/dist/components/collapsible.js +25 -0
  78. package/dist/components/collapsible.js.map +1 -0
  79. package/dist/components/command.d.ts +51 -0
  80. package/dist/components/command.d.ts.map +1 -0
  81. package/dist/components/command.js +120 -0
  82. package/dist/components/command.js.map +1 -0
  83. package/dist/components/composer.d.ts +211 -0
  84. package/dist/components/composer.d.ts.map +1 -0
  85. package/dist/components/composer.js +605 -0
  86. package/dist/components/composer.js.map +1 -0
  87. package/dist/components/connector-request.d.ts +63 -0
  88. package/dist/components/connector-request.d.ts.map +1 -0
  89. package/dist/components/connector-request.js +57 -0
  90. package/dist/components/connector-request.js.map +1 -0
  91. package/dist/components/context-menu.d.ts +26 -0
  92. package/dist/components/context-menu.d.ts.map +1 -0
  93. package/dist/components/context-menu.js +33 -0
  94. package/dist/components/context-menu.js.map +1 -0
  95. package/dist/components/data-table.d.ts +61 -0
  96. package/dist/components/data-table.d.ts.map +1 -0
  97. package/dist/components/data-table.js +79 -0
  98. package/dist/components/data-table.js.map +1 -0
  99. package/dist/components/date-range-picker.d.ts +54 -0
  100. package/dist/components/date-range-picker.d.ts.map +1 -0
  101. package/dist/components/date-range-picker.js +451 -0
  102. package/dist/components/date-range-picker.js.map +1 -0
  103. package/dist/components/dialog.d.ts +46 -0
  104. package/dist/components/dialog.d.ts.map +1 -0
  105. package/dist/components/dialog.js +75 -0
  106. package/dist/components/dialog.js.map +1 -0
  107. package/dist/components/drawer.d.ts +85 -0
  108. package/dist/components/drawer.d.ts.map +1 -0
  109. package/dist/components/drawer.js +166 -0
  110. package/dist/components/drawer.js.map +1 -0
  111. package/dist/components/dropdown-menu.d.ts +77 -0
  112. package/dist/components/dropdown-menu.d.ts.map +1 -0
  113. package/dist/components/dropdown-menu.js +112 -0
  114. package/dist/components/dropdown-menu.js.map +1 -0
  115. package/dist/components/editor-tabs.d.ts +49 -0
  116. package/dist/components/editor-tabs.d.ts.map +1 -0
  117. package/dist/components/editor-tabs.js +157 -0
  118. package/dist/components/editor-tabs.js.map +1 -0
  119. package/dist/components/empty-state.d.ts +21 -0
  120. package/dist/components/empty-state.d.ts.map +1 -0
  121. package/dist/components/empty-state.js +14 -0
  122. package/dist/components/empty-state.js.map +1 -0
  123. package/dist/components/entity-card.d.ts +301 -0
  124. package/dist/components/entity-card.d.ts.map +1 -0
  125. package/dist/components/entity-card.js +392 -0
  126. package/dist/components/entity-card.js.map +1 -0
  127. package/dist/components/entity-row.d.ts +37 -0
  128. package/dist/components/entity-row.d.ts.map +1 -0
  129. package/dist/components/entity-row.js +65 -0
  130. package/dist/components/entity-row.js.map +1 -0
  131. package/dist/components/env-var-request.d.ts +51 -0
  132. package/dist/components/env-var-request.d.ts.map +1 -0
  133. package/dist/components/env-var-request.js +50 -0
  134. package/dist/components/env-var-request.js.map +1 -0
  135. package/dist/components/field.d.ts +30 -0
  136. package/dist/components/field.d.ts.map +1 -0
  137. package/dist/components/field.js +48 -0
  138. package/dist/components/field.js.map +1 -0
  139. package/dist/components/file-upload.d.ts +108 -0
  140. package/dist/components/file-upload.d.ts.map +1 -0
  141. package/dist/components/file-upload.js +217 -0
  142. package/dist/components/file-upload.js.map +1 -0
  143. package/dist/components/hover-card.d.ts +18 -0
  144. package/dist/components/hover-card.d.ts.map +1 -0
  145. package/dist/components/hover-card.js +84 -0
  146. package/dist/components/hover-card.js.map +1 -0
  147. package/dist/components/input-group.d.ts +29 -0
  148. package/dist/components/input-group.d.ts.map +1 -0
  149. package/dist/components/input-group.js +61 -0
  150. package/dist/components/input-group.js.map +1 -0
  151. package/dist/components/input.d.ts +9 -0
  152. package/dist/components/input.d.ts.map +1 -0
  153. package/dist/components/input.js +13 -0
  154. package/dist/components/input.js.map +1 -0
  155. package/dist/components/island.d.ts +18 -0
  156. package/dist/components/island.d.ts.map +1 -0
  157. package/dist/components/island.js +30 -0
  158. package/dist/components/island.js.map +1 -0
  159. package/dist/components/kbd.d.ts +7 -0
  160. package/dist/components/kbd.d.ts.map +1 -0
  161. package/dist/components/kbd.js +11 -0
  162. package/dist/components/kbd.js.map +1 -0
  163. package/dist/components/label.d.ts +8 -0
  164. package/dist/components/label.d.ts.map +1 -0
  165. package/dist/components/label.js +12 -0
  166. package/dist/components/label.js.map +1 -0
  167. package/dist/components/markdown.d.ts +24 -0
  168. package/dist/components/markdown.d.ts.map +1 -0
  169. package/dist/components/markdown.js +38 -0
  170. package/dist/components/markdown.js.map +1 -0
  171. package/dist/components/message.d.ts +38 -0
  172. package/dist/components/message.d.ts.map +1 -0
  173. package/dist/components/message.js +25 -0
  174. package/dist/components/message.js.map +1 -0
  175. package/dist/components/page-header.d.ts +31 -0
  176. package/dist/components/page-header.d.ts.map +1 -0
  177. package/dist/components/page-header.js +94 -0
  178. package/dist/components/page-header.js.map +1 -0
  179. package/dist/components/pagination.d.ts +22 -0
  180. package/dist/components/pagination.d.ts.map +1 -0
  181. package/dist/components/pagination.js +36 -0
  182. package/dist/components/pagination.js.map +1 -0
  183. package/dist/components/password-input.d.ts +5 -0
  184. package/dist/components/password-input.d.ts.map +1 -0
  185. package/dist/components/password-input.js +12 -0
  186. package/dist/components/password-input.js.map +1 -0
  187. package/dist/components/pepper.d.ts +92 -0
  188. package/dist/components/pepper.d.ts.map +1 -0
  189. package/dist/components/pepper.js +1279 -0
  190. package/dist/components/pepper.js.map +1 -0
  191. package/dist/components/permission-request.d.ts +53 -0
  192. package/dist/components/permission-request.d.ts.map +1 -0
  193. package/dist/components/permission-request.js +54 -0
  194. package/dist/components/permission-request.js.map +1 -0
  195. package/dist/components/popover.d.ts +42 -0
  196. package/dist/components/popover.d.ts.map +1 -0
  197. package/dist/components/popover.js +76 -0
  198. package/dist/components/popover.js.map +1 -0
  199. package/dist/components/progress.d.ts +9 -0
  200. package/dist/components/progress.d.ts.map +1 -0
  201. package/dist/components/progress.js +12 -0
  202. package/dist/components/progress.js.map +1 -0
  203. package/dist/components/progressive-blur.d.ts +31 -0
  204. package/dist/components/progressive-blur.d.ts.map +1 -0
  205. package/dist/components/progressive-blur.js +44 -0
  206. package/dist/components/progressive-blur.js.map +1 -0
  207. package/dist/components/radio-group.d.ts +8 -0
  208. package/dist/components/radio-group.d.ts.map +1 -0
  209. package/dist/components/radio-group.js +15 -0
  210. package/dist/components/radio-group.js.map +1 -0
  211. package/dist/components/request-card.d.ts +34 -0
  212. package/dist/components/request-card.d.ts.map +1 -0
  213. package/dist/components/request-card.js +50 -0
  214. package/dist/components/request-card.js.map +1 -0
  215. package/dist/components/resizable.d.ts +24 -0
  216. package/dist/components/resizable.d.ts.map +1 -0
  217. package/dist/components/resizable.js +40 -0
  218. package/dist/components/resizable.js.map +1 -0
  219. package/dist/components/responsive-overlay.d.ts +136 -0
  220. package/dist/components/responsive-overlay.d.ts.map +1 -0
  221. package/dist/components/responsive-overlay.js +302 -0
  222. package/dist/components/responsive-overlay.js.map +1 -0
  223. package/dist/components/scroll-shadows.d.ts +11 -0
  224. package/dist/components/scroll-shadows.d.ts.map +1 -0
  225. package/dist/components/scroll-shadows.js +53 -0
  226. package/dist/components/scroll-shadows.js.map +1 -0
  227. package/dist/components/search-field.d.ts +16 -0
  228. package/dist/components/search-field.d.ts.map +1 -0
  229. package/dist/components/search-field.js +50 -0
  230. package/dist/components/search-field.js.map +1 -0
  231. package/dist/components/searchable-select.d.ts +43 -0
  232. package/dist/components/searchable-select.d.ts.map +1 -0
  233. package/dist/components/searchable-select.js +39 -0
  234. package/dist/components/searchable-select.js.map +1 -0
  235. package/dist/components/select.d.ts +60 -0
  236. package/dist/components/select.d.ts.map +1 -0
  237. package/dist/components/select.js +94 -0
  238. package/dist/components/select.js.map +1 -0
  239. package/dist/components/separator.d.ts +7 -0
  240. package/dist/components/separator.d.ts.map +1 -0
  241. package/dist/components/separator.js +12 -0
  242. package/dist/components/separator.js.map +1 -0
  243. package/dist/components/settings-section.d.ts +41 -0
  244. package/dist/components/settings-section.d.ts.map +1 -0
  245. package/dist/components/settings-section.js +50 -0
  246. package/dist/components/settings-section.js.map +1 -0
  247. package/dist/components/sidebar-item.d.ts +41 -0
  248. package/dist/components/sidebar-item.d.ts.map +1 -0
  249. package/dist/components/sidebar-item.js +59 -0
  250. package/dist/components/sidebar-item.js.map +1 -0
  251. package/dist/components/skeleton.d.ts +7 -0
  252. package/dist/components/skeleton.d.ts.map +1 -0
  253. package/dist/components/skeleton.js +11 -0
  254. package/dist/components/skeleton.js.map +1 -0
  255. package/dist/components/slider.d.ts +10 -0
  256. package/dist/components/slider.d.ts.map +1 -0
  257. package/dist/components/slider.js +36 -0
  258. package/dist/components/slider.js.map +1 -0
  259. package/dist/components/sonner.d.ts +8 -0
  260. package/dist/components/sonner.d.ts.map +1 -0
  261. package/dist/components/sonner.js +21 -0
  262. package/dist/components/sonner.js.map +1 -0
  263. package/dist/components/spinner.d.ts +7 -0
  264. package/dist/components/spinner.d.ts.map +1 -0
  265. package/dist/components/spinner.js +12 -0
  266. package/dist/components/spinner.js.map +1 -0
  267. package/dist/components/stat-strip.d.ts +20 -0
  268. package/dist/components/stat-strip.d.ts.map +1 -0
  269. package/dist/components/stat-strip.js +11 -0
  270. package/dist/components/stat-strip.js.map +1 -0
  271. package/dist/components/status-dot.d.ts +25 -0
  272. package/dist/components/status-dot.d.ts.map +1 -0
  273. package/dist/components/status-dot.js +31 -0
  274. package/dist/components/status-dot.js.map +1 -0
  275. package/dist/components/subagent-run.d.ts +27 -0
  276. package/dist/components/subagent-run.d.ts.map +1 -0
  277. package/dist/components/subagent-run.js +38 -0
  278. package/dist/components/subagent-run.js.map +1 -0
  279. package/dist/components/switch.d.ts +8 -0
  280. package/dist/components/switch.d.ts.map +1 -0
  281. package/dist/components/switch.js +13 -0
  282. package/dist/components/switch.js.map +1 -0
  283. package/dist/components/system-notice.d.ts +34 -0
  284. package/dist/components/system-notice.d.ts.map +1 -0
  285. package/dist/components/system-notice.js +52 -0
  286. package/dist/components/system-notice.js.map +1 -0
  287. package/dist/components/table.d.ts +27 -0
  288. package/dist/components/table.d.ts.map +1 -0
  289. package/dist/components/table.js +37 -0
  290. package/dist/components/table.js.map +1 -0
  291. package/dist/components/tabs.d.ts +40 -0
  292. package/dist/components/tabs.d.ts.map +1 -0
  293. package/dist/components/tabs.js +52 -0
  294. package/dist/components/tabs.js.map +1 -0
  295. package/dist/components/textarea.d.ts +5 -0
  296. package/dist/components/textarea.d.ts.map +1 -0
  297. package/dist/components/textarea.js +9 -0
  298. package/dist/components/textarea.js.map +1 -0
  299. package/dist/components/thinking-indicator.d.ts +21 -0
  300. package/dist/components/thinking-indicator.d.ts.map +1 -0
  301. package/dist/components/thinking-indicator.js +136 -0
  302. package/dist/components/thinking-indicator.js.map +1 -0
  303. package/dist/components/thread-status.d.ts +25 -0
  304. package/dist/components/thread-status.d.ts.map +1 -0
  305. package/dist/components/thread-status.js +41 -0
  306. package/dist/components/thread-status.js.map +1 -0
  307. package/dist/components/todo-list.d.ts +52 -0
  308. package/dist/components/todo-list.d.ts.map +1 -0
  309. package/dist/components/todo-list.js +137 -0
  310. package/dist/components/todo-list.js.map +1 -0
  311. package/dist/components/toggle-group.d.ts +17 -0
  312. package/dist/components/toggle-group.d.ts.map +1 -0
  313. package/dist/components/toggle-group.js +26 -0
  314. package/dist/components/toggle-group.js.map +1 -0
  315. package/dist/components/toggle.d.ts +27 -0
  316. package/dist/components/toggle.d.ts.map +1 -0
  317. package/dist/components/toggle.js +44 -0
  318. package/dist/components/toggle.js.map +1 -0
  319. package/dist/components/tool-call.d.ts +60 -0
  320. package/dist/components/tool-call.d.ts.map +1 -0
  321. package/dist/components/tool-call.js +94 -0
  322. package/dist/components/tool-call.js.map +1 -0
  323. package/dist/components/tool-result.d.ts +127 -0
  324. package/dist/components/tool-result.d.ts.map +1 -0
  325. package/dist/components/tool-result.js +155 -0
  326. package/dist/components/tool-result.js.map +1 -0
  327. package/dist/components/tooltip.d.ts +18 -0
  328. package/dist/components/tooltip.d.ts.map +1 -0
  329. package/dist/components/tooltip.js +38 -0
  330. package/dist/components/tooltip.js.map +1 -0
  331. package/dist/components/trace.d.ts +38 -0
  332. package/dist/components/trace.d.ts.map +1 -0
  333. package/dist/components/trace.js +52 -0
  334. package/dist/components/trace.js.map +1 -0
  335. package/dist/components/turn-summary.d.ts +17 -0
  336. package/dist/components/turn-summary.d.ts.map +1 -0
  337. package/dist/components/turn-summary.js +19 -0
  338. package/dist/components/turn-summary.js.map +1 -0
  339. package/dist/components/usage-meter.d.ts +16 -0
  340. package/dist/components/usage-meter.d.ts.map +1 -0
  341. package/dist/components/usage-meter.js +10 -0
  342. package/dist/components/usage-meter.js.map +1 -0
  343. package/dist/components/view-switcher.d.ts +25 -0
  344. package/dist/components/view-switcher.d.ts.map +1 -0
  345. package/dist/components/view-switcher.js +196 -0
  346. package/dist/components/view-switcher.js.map +1 -0
  347. package/dist/docs/components/accordion.md +151 -0
  348. package/dist/docs/components/activity-chart.md +104 -0
  349. package/dist/docs/components/alert-dialog.md +216 -0
  350. package/dist/docs/components/alert.md +203 -0
  351. package/dist/docs/components/ask-user-question.md +429 -0
  352. package/dist/docs/components/attachment-gallery.md +377 -0
  353. package/dist/docs/components/avatar.md +197 -0
  354. package/dist/docs/components/badge.md +162 -0
  355. package/dist/docs/components/brand-tile.md +138 -0
  356. package/dist/docs/components/button.md +392 -0
  357. package/dist/docs/components/calendar.md +113 -0
  358. package/dist/docs/components/card.md +157 -0
  359. package/dist/docs/components/carousel.md +144 -0
  360. package/dist/docs/components/catalog-card.md +136 -0
  361. package/dist/docs/components/chart.md +608 -0
  362. package/dist/docs/components/checkbox.md +164 -0
  363. package/dist/docs/components/chip.md +411 -0
  364. package/dist/docs/components/code-block.md +389 -0
  365. package/dist/docs/components/collapsible.md +93 -0
  366. package/dist/docs/components/command.md +276 -0
  367. package/dist/docs/components/composer.md +1092 -0
  368. package/dist/docs/components/connector-request.md +497 -0
  369. package/dist/docs/components/context-menu.md +127 -0
  370. package/dist/docs/components/data-table.md +462 -0
  371. package/dist/docs/components/date-range-picker.md +425 -0
  372. package/dist/docs/components/dialog.md +263 -0
  373. package/dist/docs/components/drawer.md +505 -0
  374. package/dist/docs/components/dropdown-menu.md +336 -0
  375. package/dist/docs/components/editor-tabs.md +283 -0
  376. package/dist/docs/components/empty-state.md +134 -0
  377. package/dist/docs/components/entity-card.md +640 -0
  378. package/dist/docs/components/entity-row.md +291 -0
  379. package/dist/docs/components/env-var-request.md +223 -0
  380. package/dist/docs/components/field.md +272 -0
  381. package/dist/docs/components/file-upload.md +255 -0
  382. package/dist/docs/components/hover-card.md +335 -0
  383. package/dist/docs/components/input-group.md +134 -0
  384. package/dist/docs/components/input.md +97 -0
  385. package/dist/docs/components/island.md +97 -0
  386. package/dist/docs/components/kbd.md +91 -0
  387. package/dist/docs/components/markdown.md +180 -0
  388. package/dist/docs/components/message.md +336 -0
  389. package/dist/docs/components/page-header.md +203 -0
  390. package/dist/docs/components/pagination.md +211 -0
  391. package/dist/docs/components/password-input.md +68 -0
  392. package/dist/docs/components/pepper.md +238 -0
  393. package/dist/docs/components/permission-request.md +265 -0
  394. package/dist/docs/components/popover.md +206 -0
  395. package/dist/docs/components/progress.md +142 -0
  396. package/dist/docs/components/progressive-blur.md +195 -0
  397. package/dist/docs/components/radio-group.md +129 -0
  398. package/dist/docs/components/request-card.md +305 -0
  399. package/dist/docs/components/resizable.md +318 -0
  400. package/dist/docs/components/responsive-overlay.md +449 -0
  401. package/dist/docs/components/scroll-shadows.md +161 -0
  402. package/dist/docs/components/search-field.md +86 -0
  403. package/dist/docs/components/searchable-select.md +144 -0
  404. package/dist/docs/components/select.md +331 -0
  405. package/dist/docs/components/separator.md +80 -0
  406. package/dist/docs/components/settings-section.md +246 -0
  407. package/dist/docs/components/sidebar-item.md +307 -0
  408. package/dist/docs/components/skeleton.md +107 -0
  409. package/dist/docs/components/slider.md +171 -0
  410. package/dist/docs/components/sonner.md +122 -0
  411. package/dist/docs/components/spinner.md +112 -0
  412. package/dist/docs/components/stat-strip.md +85 -0
  413. package/dist/docs/components/status-dot.md +190 -0
  414. package/dist/docs/components/subagent-run.md +196 -0
  415. package/dist/docs/components/switch.md +91 -0
  416. package/dist/docs/components/system-notice.md +144 -0
  417. package/dist/docs/components/table.md +201 -0
  418. package/dist/docs/components/tabs.md +233 -0
  419. package/dist/docs/components/textarea.md +89 -0
  420. package/dist/docs/components/thinking-indicator.md +164 -0
  421. package/dist/docs/components/thread-status.md +143 -0
  422. package/dist/docs/components/todo-list.md +225 -0
  423. package/dist/docs/components/toggle-group.md +117 -0
  424. package/dist/docs/components/toggle.md +132 -0
  425. package/dist/docs/components/tool-call.md +237 -0
  426. package/dist/docs/components/tool-result.md +418 -0
  427. package/dist/docs/components/tooltip.md +136 -0
  428. package/dist/docs/components/trace.md +319 -0
  429. package/dist/docs/components/turn-summary.md +218 -0
  430. package/dist/docs/components/usage-meter.md +69 -0
  431. package/dist/docs/components/view-switcher.md +193 -0
  432. package/dist/docs/foundations/colors.md +83 -0
  433. package/dist/docs/foundations/elevation.md +19 -0
  434. package/dist/docs/foundations/iconography.md +34 -0
  435. package/dist/docs/foundations/layout.md +42 -0
  436. package/dist/docs/foundations/logo.md +111 -0
  437. package/dist/docs/foundations/motion.md +91 -0
  438. package/dist/docs/foundations/radius.md +13 -0
  439. package/dist/docs/foundations/spacing.md +23 -0
  440. package/dist/docs/foundations/typography.md +42 -0
  441. package/dist/docs/getting-started/installation.md +116 -0
  442. package/dist/docs/getting-started/releases.md +59 -0
  443. package/dist/docs/getting-started/theming.md +58 -0
  444. package/dist/docs/guidelines/accessibility.md +28 -0
  445. package/dist/docs/guidelines/content.md +36 -0
  446. package/dist/docs/guidelines/forms.md +36 -0
  447. package/dist/docs/guidelines/principles.md +30 -0
  448. package/dist/docs/hooks/use-is-mobile.md +134 -0
  449. package/dist/docs/index.md +182 -0
  450. package/dist/docs/overview.md +35 -0
  451. package/dist/docs/patterns/chat.md +477 -0
  452. package/dist/docs/patterns/index.md +13 -0
  453. package/dist/docs/patterns/login.md +311 -0
  454. package/dist/docs/patterns/share.md +415 -0
  455. package/dist/hooks/use-is-mobile.d.ts +9 -0
  456. package/dist/hooks/use-is-mobile.d.ts.map +1 -0
  457. package/dist/hooks/use-is-mobile.js +26 -0
  458. package/dist/hooks/use-is-mobile.js.map +1 -0
  459. package/dist/lib/cn.d.ts +4 -0
  460. package/dist/lib/cn.d.ts.map +1 -0
  461. package/dist/lib/cn.js +31 -0
  462. package/dist/lib/cn.js.map +1 -0
  463. package/dist/lib/code-language.d.ts +8 -0
  464. package/dist/lib/code-language.d.ts.map +1 -0
  465. package/dist/lib/code-language.js +48 -0
  466. package/dist/lib/code-language.js.map +1 -0
  467. package/dist/lib/date-range.d.ts +122 -0
  468. package/dist/lib/date-range.d.ts.map +1 -0
  469. package/dist/lib/date-range.js +281 -0
  470. package/dist/lib/date-range.js.map +1 -0
  471. package/dist/lib/major-tokens.d.ts +40 -0
  472. package/dist/lib/major-tokens.d.ts.map +1 -0
  473. package/dist/lib/major-tokens.js +602 -0
  474. package/dist/lib/major-tokens.js.map +1 -0
  475. package/dist/lib/markdown.d.ts +25 -0
  476. package/dist/lib/markdown.d.ts.map +1 -0
  477. package/dist/lib/markdown.js +87 -0
  478. package/dist/lib/markdown.js.map +1 -0
  479. package/dist/lib/overlay-portal-branch.d.ts +6 -0
  480. package/dist/lib/overlay-portal-branch.d.ts.map +1 -0
  481. package/dist/lib/overlay-portal-branch.js +15 -0
  482. package/dist/lib/overlay-portal-branch.js.map +1 -0
  483. package/dist/lib/pepper-matcap.d.ts +2 -0
  484. package/dist/lib/pepper-matcap.d.ts.map +1 -0
  485. package/dist/lib/pepper-matcap.js +4 -0
  486. package/dist/lib/pepper-matcap.js.map +1 -0
  487. package/dist/lib/scroll-fade.d.ts +28 -0
  488. package/dist/lib/scroll-fade.d.ts.map +1 -0
  489. package/dist/lib/scroll-fade.js +57 -0
  490. package/dist/lib/scroll-fade.js.map +1 -0
  491. package/dist/tailwind.css +7 -0
  492. package/dist/theme.css +428 -0
  493. package/package.json +145 -3
  494. package/tokens.json +841 -0
  495. package/README.md +0 -3
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: UsageMeter
3
+ slug: usage-meter
4
+ description: "A labelled Progress bar: “Storage used”, “1.4 GB of 10 GB”."
5
+ group: Data
6
+ layer: composed
7
+ status: stable
8
+ since: 0.3.0
9
+ import: import { UsageMeter } from "@major-tech/ui/usage-meter";
10
+ source: packages/ui/src/components/usage-meter.tsx
11
+ ---
12
+
13
+ # UsageMeter
14
+
15
+ ## Usage
16
+
17
+ ### Used of a limit
18
+
19
+ A 12px muted label, the amount in 17px semibold with “of {limit}” in 12px muted, then a 4px Progress bar filled with success.
20
+
21
+ Example: `meters`
22
+
23
+ ```tsx
24
+ import { UsageMeter } from "@major-tech/ui/usage-meter";
25
+
26
+ export default function UsageMeterMeters() {
27
+ return (
28
+ <div className="grid w-full max-w-xl grid-cols-2 gap-space-24">
29
+ <UsageMeter label="Storage used" value="1.4 GB" of="10 GB" percent={14} />
30
+ <UsageMeter label="Credits used" value="$82" of="$100" percent={82} />
31
+ </div>
32
+ );
33
+ }
34
+ ```
35
+
36
+ ### Guidelines
37
+
38
+ Do:
39
+
40
+ - Show the real unit: “1.4 GB of 10 GB”, “$82 of $100”.
41
+ - Place meters side by side in a grid when a plan has several limits.
42
+
43
+ Don't:
44
+
45
+ - A bare percentage with no amount.
46
+ - Recolour the bar by how close it is to the limit.
47
+
48
+ ## API
49
+
50
+ ```tsx
51
+ import { UsageMeter } from "@major-tech/ui/usage-meter";
52
+ ```
53
+
54
+ ### `<UsageMeter />`
55
+
56
+ | Prop | Type | Default | Description |
57
+ | --- | --- | --- | --- |
58
+ | `label`* | `ReactNode` | — | “Storage used”. |
59
+ | `value`* | `ReactNode` | — | The amount used: “1.4 GB”. |
60
+ | `of` | `ReactNode` | — | The limit, shown as “of {of}”. |
61
+ | `percent`* | `number` | — | 0–100, the bar's fill. |
62
+ | `className` | `string` | — | On the root. |
63
+
64
+ `*` marks a required prop.
65
+
66
+ ### Accessibility
67
+
68
+ - The bar is a `progressbar`; a string label also names it.
69
+ - The amount and the limit are text, so screen readers read the real unit, not only a percentage.
@@ -0,0 +1,193 @@
1
+ ---
2
+ name: ViewSwitcher
3
+ slug: view-switcher
4
+ description: The views of an editor or detail page; only the selected view shows its label, and views that don't fit go in a menu.
5
+ group: Navigation
6
+ layer: composed
7
+ status: stable
8
+ since: 0.1.0
9
+ primitive: Tabs
10
+ import: import { ViewSwitcher } from "@major-tech/ui/view-switcher";
11
+ source: packages/ui/src/components/view-switcher.tsx
12
+ ---
13
+
14
+ # ViewSwitcher
15
+
16
+ ## Usage
17
+
18
+ ### Agent views
19
+
20
+ The views of an editor or a detail page, at the top left of its panel: Config, Code, Analytics, Settings. Only the selected view shows its label; the others are icons with a tooltip.
21
+
22
+ Example: `agent`
23
+
24
+ ```tsx
25
+ "use client";
26
+
27
+ import { useState } from "react";
28
+ import { ViewSwitcher, type ViewSwitcherView } from "@major-tech/ui/view-switcher";
29
+ import { ChartColumn, CodeXml, Settings, SlidersHorizontal } from "lucide-react";
30
+
31
+ const AGENT_VIEWS = {
32
+ CONFIG: "config",
33
+ CODE: "code",
34
+ ANALYTICS: "analytics",
35
+ SETTINGS: "settings",
36
+ } as const;
37
+
38
+ type AgentView = (typeof AGENT_VIEWS)[keyof typeof AGENT_VIEWS];
39
+
40
+ const VIEWS: ViewSwitcherView<AgentView>[] = [
41
+ { value: AGENT_VIEWS.CONFIG, label: "Config", icon: <SlidersHorizontal /> },
42
+ { value: AGENT_VIEWS.CODE, label: "Code", icon: <CodeXml /> },
43
+ { value: AGENT_VIEWS.ANALYTICS, label: "Analytics", icon: <ChartColumn /> },
44
+ { value: AGENT_VIEWS.SETTINGS, label: "Settings", icon: <Settings /> },
45
+ ];
46
+
47
+ const VIEW_CONTENT: Record<AgentView, string> = {
48
+ [AGENT_VIEWS.CONFIG]: "Instructions and Details.",
49
+ [AGENT_VIEWS.CODE]: "The generated code.",
50
+ [AGENT_VIEWS.ANALYTICS]: "Runs over the last 30 days.",
51
+ [AGENT_VIEWS.SETTINGS]: "Schedule, model and sharing.",
52
+ };
53
+
54
+ export default function ViewSwitcherAgent() {
55
+ const [view, setView] = useState<AgentView>(AGENT_VIEWS.CONFIG);
56
+
57
+ return (
58
+ <div className="flex flex-col gap-space-16">
59
+ <ViewSwitcher views={VIEWS} value={view} onChange={setView} />
60
+ <p className="text-ui text-muted">{VIEW_CONTENT[view]}</p>
61
+ </div>
62
+ );
63
+ }
64
+ ```
65
+
66
+ - Switching slides the white pill to the new view while its label opens from the left, and the old label closes at the same time: 340ms, ease-out. No motion with reduced motion.
67
+ - The track is secondary with a 2px inset; tabs are 24px with 13px icons and 12px medium labels.
68
+ - The switcher only switches: it holds no content. Render the selected view's content yourself from `value`.
69
+
70
+ ### More views than fit
71
+
72
+ Views past `maxVisible`, or that don't fit the slot, go in a last chevron tab that opens a menu of them. While one of them is open the chevron tab is selected and shows its icon and `shortLabel` (“Env variables”).
73
+
74
+ Example: `app`
75
+
76
+ ```tsx
77
+ "use client";
78
+
79
+ import { useState } from "react";
80
+ import { ViewSwitcher, type ViewSwitcherView } from "@major-tech/ui/view-switcher";
81
+ import {
82
+ Activity,
83
+ Database,
84
+ Eye,
85
+ GitBranch,
86
+ KeyRound,
87
+ Palette,
88
+ Scaling,
89
+ ScrollText,
90
+ Settings,
91
+ SquareTerminal,
92
+ Zap,
93
+ } from "lucide-react";
94
+
95
+ const APP_VIEWS = {
96
+ PREVIEW: "preview",
97
+ CODE: "code",
98
+ LOGS: "logs",
99
+ INVOCATIONS: "invocations",
100
+ STORAGE: "storage",
101
+ MONITORING: "monitoring",
102
+ VERSIONS: "versions",
103
+ ENV_VARIABLES: "env-variables",
104
+ BRANDING: "branding",
105
+ SCALING: "scaling",
106
+ SETTINGS: "settings",
107
+ } as const;
108
+
109
+ type AppView = (typeof APP_VIEWS)[keyof typeof APP_VIEWS];
110
+
111
+ /** Apps keep six views in the switcher; the rest open from the chevron menu. */
112
+ const MAX_VISIBLE_VIEWS = 6;
113
+ const OPEN_ISSUES_COUNT = 3;
114
+
115
+ const VIEWS: ViewSwitcherView<AppView>[] = [
116
+ { value: APP_VIEWS.PREVIEW, label: "Preview", icon: <Eye /> },
117
+ { value: APP_VIEWS.CODE, label: "Code", icon: <SquareTerminal /> },
118
+ { value: APP_VIEWS.LOGS, label: "Logs", icon: <ScrollText />, badgeCount: OPEN_ISSUES_COUNT },
119
+ { value: APP_VIEWS.INVOCATIONS, label: "Invocations", icon: <Zap /> },
120
+ { value: APP_VIEWS.STORAGE, label: "Storage", icon: <Database /> },
121
+ { value: APP_VIEWS.MONITORING, label: "Monitoring", icon: <Activity /> },
122
+ { value: APP_VIEWS.VERSIONS, label: "Versions", icon: <GitBranch /> },
123
+ {
124
+ value: APP_VIEWS.ENV_VARIABLES,
125
+ label: "Environment variables",
126
+ shortLabel: "Env variables",
127
+ icon: <KeyRound />,
128
+ },
129
+ { value: APP_VIEWS.BRANDING, label: "Branding", icon: <Palette /> },
130
+ { value: APP_VIEWS.SCALING, label: "Scaling", icon: <Scaling /> },
131
+ { value: APP_VIEWS.SETTINGS, label: "Settings", icon: <Settings /> },
132
+ ];
133
+
134
+ export default function ViewSwitcherApp() {
135
+ const [view, setView] = useState<AppView>(APP_VIEWS.ENV_VARIABLES);
136
+
137
+ return <ViewSwitcher views={VIEWS} value={view} onChange={setView} maxVisible={MAX_VISIBLE_VIEWS} />;
138
+ }
139
+ ```
140
+
141
+ - Apps keep six views in the switcher (Preview, Code, Logs, Invocations, Storage, Monitoring) and put Versions, Environment variables, Branding, Scaling and Settings in the menu.
142
+ - `badgeCount` puts a red count on a view's icon for something that needs attention (open issues); above 9 it reads 9+.
143
+
144
+ ### Guidelines
145
+
146
+ Do:
147
+
148
+ - Place it at the top left of the editor or detail page header.
149
+ - Give every view an icon and a short name; give a long name a `shortLabel`.
150
+ - Set `maxVisible` when the set of views is known to be long.
151
+
152
+ Don't:
153
+
154
+ - Use it for the values of a setting: that's Tabs or a ToggleGroup.
155
+ - Show all labels at once.
156
+ - Badge counts for anything that doesn't need attention.
157
+
158
+ ## API
159
+
160
+ ```tsx
161
+ import { ViewSwitcher } from "@major-tech/ui/view-switcher";
162
+ ```
163
+
164
+ ### `<ViewSwitcher />`
165
+
166
+ | Prop | Type | Default | Description |
167
+ | --- | --- | --- | --- |
168
+ | `views`* | `ViewSwitcherView<TValue>[]` | — | Every view, in order. Those that don't fit go in the menu. |
169
+ | `value`* | `TValue` | — | The selected view. |
170
+ | `onChange`* | `(value: TValue) => void` | — | A view was picked. |
171
+ | `maxVisible` | `number` | — | At most this many tabs. Without it, views move to the menu only when they don't fit. |
172
+ | `className` | `string` | — | On the wrapper. |
173
+
174
+ `*` marks a required prop.
175
+
176
+ ### `ViewSwitcherView`
177
+
178
+ | Prop | Type | Default | Description |
179
+ | --- | --- | --- | --- |
180
+ | `value`* | `TValue extends string` | — | The view's id. |
181
+ | `label`* | `string` | — | Shown when selected; otherwise the tooltip, the aria-label and the menu row. |
182
+ | `icon`* | `ReactNode` | — | A Lucide icon element, drawn at 13px. |
183
+ | `shortLabel` | `string` | — | For the chevron tab while this view is open from the menu. |
184
+ | `badgeCount` | `number` | — | A count that needs attention, on the icon. |
185
+
186
+ `*` marks a required prop.
187
+
188
+ ### Accessibility
189
+
190
+ - Base UI Tabs with manual activation: arrows move focus, Enter or Space selects.
191
+ - Every tab has an `aria-label`, so icon-only tabs are named; the chevron tab says “More views”, or “Environment variables, more views”.
192
+ - The menu is a radio group with a check on the open view.
193
+ - The pill and label motion is off with reduced motion.
@@ -0,0 +1,83 @@
1
+ ---
2
+ title: Colors
3
+ description: Neutral first. Colour only marks meaning — a tool type, a state — or the single call to action. Every token has a light and a dark value and switches with the theme.
4
+ section: Foundations
5
+ ---
6
+
7
+ # Colors
8
+
9
+ Neutral first. Colour only marks meaning — a tool type, a state — or the single call to action. Every token has a light and a dark value and switches with the theme.
10
+
11
+ ## Rules
12
+
13
+ - **One green per view.** Solid `accent` is reserved for the action the view exists for. Rows, cards and dialogs never add a second one.
14
+ - **Location is white, not green.** The selected sidebar item, tab or segment is the `selected` surface with `shadow-card` (dark adds a 1px `selected-edge` ring).
15
+ - **A choice you made is an outline with a check** (the chip Toggle, in a ToggleGroup). Form checks — Checkbox, RadioGroup, Slider — use `link`.
16
+ - **Canvases are the exception:** a selected workflow step is blue (`selection`).
17
+ - `faint` is below 4.5:1 in both themes. Use it only for 12px secondary text that never carries meaning on its own.
18
+ - Colours that must be told apart differ in lightness, not hue alone.
19
+
20
+ The groups below are swatches built from `packages/ui/tokens.json` (via `@major-tech/ui/lib/major-tokens`): each token's light and dark values, its utility (`bg-<name>`, or `text-<name>` for the Text and Syntax groups), its usage line and, for those two groups, its contrast on `surface`. Values are not copied here.
21
+
22
+ ## Surfaces
23
+
24
+ The UI is greys on greys. Dark greys are blue-green tinted, never neutral.
25
+
26
+ Tokens: app-bg, panel, panel-home, panel-edge, surface, selected, selected-edge, hover, secondary, chip, callout, code-surface, bubble, line, dim, tooltip, island-glow.
27
+
28
+ ## Text
29
+
30
+ Contrast is measured on `surface` in each theme.
31
+
32
+ Tokens: ink, ink-strong, ink-nav, ink-2, muted, faint.
33
+
34
+ ## Action
35
+
36
+ Green means do it. `accent` is the one call to action per view; text actions and checks use `link`.
37
+
38
+ Tokens: accent, accent-edge, accent-ink, link.
39
+
40
+ ## Status
41
+
42
+ Status only — never decoration. `danger` for destructive actions and failures, `warn` for needs-connecting and unsaved changes.
43
+
44
+ Tokens: ok, success, success-soft, warn, warn-soft, danger, danger-soft.
45
+
46
+ ## Objects
47
+
48
+ Each tool type has a fixed colour in chips. Connectors stay neutral; their own tile carries the brand.
49
+
50
+ Tokens: object-green, object-green-soft, object-purple, object-purple-soft, object-blue, object-blue-soft, selection, selection-soft, avatar, avatar-ink.
51
+
52
+ ## Charts
53
+
54
+ In order: chart-1, then chart-2, then chart-3. Never tool or status colours in charts.
55
+
56
+ Tokens: chart-1, chart-2, chart-3.
57
+
58
+ ## Brand
59
+
60
+ The Major mark's own colours, for brand art drawn in code (the ThinkingMark's glass cubes). Never for UI: buttons, text and states use the groups above.
61
+
62
+ Tokens: brand-deep, brand-mint.
63
+
64
+ ## Syntax
65
+
66
+ Code's colours in a highlighted CodeBlock: One Light and One Dark, darkened where needed to reach 4.5:1 contrast, through CodeBlock's `SYNTAX_THEME`. Only inside code, never for UI.
67
+
68
+ Tokens: syntax-plain, syntax-comment, syntax-keyword, syntax-string, syntax-function, syntax-constant, syntax-tag, syntax-url.
69
+
70
+ ## Using colours in code
71
+
72
+ ```tsx
73
+ // Tailwind (with @major-tech/ui/tailwind.css)
74
+ <div className="bg-surface text-ink border border-line" />
75
+ <p className="text-muted">Edited 2 days ago</p>
76
+
77
+ /* Plain CSS — the same file defines the variables */
78
+ .card { background: var(--color-surface); color: var(--color-ink); }
79
+
80
+ // JavaScript (charts, canvas)
81
+ import { tokens } from "@major-tech/ui/lib/major-tokens";
82
+ tokens.color["chart-1"].light; // "#2e9a7c"
83
+ ```
@@ -0,0 +1,19 @@
1
+ ---
2
+ title: Elevation
3
+ description: "Two shadows only: one for things that sit on the page, one for things that float. No coloured glows."
4
+ section: Foundations
5
+ ---
6
+
7
+ # Elevation
8
+
9
+ Two shadows only: one for things that sit on the page, one for things that float. No coloured glows.
10
+
11
+ ## Shadows
12
+
13
+ The shadows are the `shadow` group of `packages/ui/tokens.json` (via `@major-tech/ui/lib/major-tokens`): per token, a sample, its name, its usage line and its shadow value. Values are not copied here.
14
+
15
+ ## Layers, smallest first
16
+
17
+ - **On the page** — panels, cards, selected rows, toolbar buttons: `shadow-card` and a 1px `panel-edge` border.
18
+ - **Floating** — menus, selects, popovers, hover cards, dialogs: `shadow-pop`, `rounded-xl`.
19
+ - Dialogs dim the page with `dim`. One overlay at a time, except a DropdownMenu opened from inside a dialog.
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Iconography
3
+ description: Lucide icons at stroke 1.5 with round caps. Icons are passed to components as elements, so they work from React Server Components.
4
+ section: Foundations
5
+ ---
6
+
7
+ # Iconography
8
+
9
+ Lucide icons at stroke 1.5 with round caps. Icons are passed to components as elements, so they work from React Server Components.
10
+
11
+ ## Sizes
12
+
13
+ - 14px: Buttons, chips, menus
14
+ - 16px: Toolbars, sidebars, menu rows
15
+ - 18px: Main navigation
16
+ - 20px: Main navigation, empty states
17
+
18
+ ## Common icons
19
+
20
+ arrow-left, bot, check, chevron-down, chevron-right, circle-alert, circle-check, code, copy, ellipsis-vertical, eye, file-text, folder, info, layout-grid, list, loader-circle, lock, message-square, pencil, plug, plus, search, settings, share-2, sparkles, trash, triangle-alert, users, zap
21
+
22
+ ## Rules
23
+
24
+ - Overflow menus always use **vertical** dots (`ellipsis-vertical`).
25
+ - Icon-only buttons carry a tooltip and an `aria-label`; their hover shape is centred on the icon.
26
+ - Connector logos are letter tiles in the brand colour (BrandTile), never real logos. Connectors you build get icon tiles (code, plug, zap).
27
+ - The Major mark is the only gradient in the product.
28
+
29
+ ```tsx
30
+ import { Plus } from "lucide-react";
31
+
32
+ <Button><Plus /> Add connector</Button> // ✓ the icon goes in children, before the label
33
+ <Button icon={<Plus />}>Add connector</Button> // ✗ no icon prop
34
+ ```
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: Layout and grid
3
+ description: A page's grid follows what it's about. Many things → the list grid (1040px). One thing → the reading column (860px). Decide once per page, before placing anything.
4
+ section: Foundations
5
+ ---
6
+
7
+ # Layout and grid
8
+
9
+ A page's grid follows what it's about. Many things → the list grid (1040px). One thing → the reading column (860px). Decide once per page, before placing anything.
10
+
11
+ ## The two page grids
12
+
13
+ **List grid**: 1120px frame · 1040px content. Apps, Agents, Skills, Workflows, Connectors, Monitoring, Analytics, Audit log.
14
+
15
+ **Reading column**: 900px frame · 860px max (844 inside 28px padding). Organization settings, Profile, a connector's page, an editor's Settings view, Build.
16
+
17
+ - Both centre in the main panel and start 56px from the top; the 28px side padding is part of the frame.
18
+ - Never invent a width. If a page seems to need a third one, it's either a list (1040) or one thing (860).
19
+ - Wide content (tables, code, diagrams) fits by merging columns or truncating, not by widening the page.
20
+ - Cards: `repeat(auto-fill, minmax(300px, 1fr))` with a 12px gap (catalog cards 230px). Settings stack full-width sections 16px apart.
21
+
22
+ ## The app shell
23
+
24
+ A named exception: not a centred grid. A 4px `app-bg` gutter around three panels with `radius-panel`.
25
+
26
+ Shown: diagram labels: sidebar 230 · chat 360 (280+) · editor · fills the rest.
27
+
28
+ - Editor header: view switcher left, name and version centred, actions right.
29
+ - The editor's document view fills the work area up to 1120px; previews and canvases use the whole work area.
30
+ - Overlays size themselves: popovers 320–460px, dialogs 420/460/540px, side panels 360px.
31
+
32
+ ## In code
33
+
34
+ ```tsx
35
+ // List grid
36
+ <div className="mx-auto max-w-[1120px] px-7 pt-14">
37
+ <div className="grid grid-cols-[repeat(auto-fill,minmax(300px,1fr))] gap-3">{cards}</div>
38
+ </div>
39
+
40
+ // Reading column
41
+ <div className="mx-auto max-w-[900px] px-7 pt-14">{sections}</div>
42
+ ```
@@ -0,0 +1,111 @@
1
+ ---
2
+ title: Logo
3
+ description: "The Major logo: the mark, the “major” wordmark and the combinations of the two. Use the files on this page as they are, and never redraw, retype or trace them."
4
+ section: Foundations
5
+ ---
6
+
7
+ # Logo
8
+
9
+ The Major logo: the mark, the “major” wordmark and the combinations of the two. Use the files on this page as they are, and never redraw, retype or trace them.
10
+
11
+ The mark is a teal block with a green radial glow: `#0A5C68` base, radial glow `#00FFC8 → #007650` at 30%, white 56% inner edge. It is a full-color mark, so don’t recolor it; it reads on both themes. It is the only gradient in the product. **Major mark · Simple** is the same shape in solid accent (`#017B61`).
12
+
13
+ Shown: Major mark ([mark-color.svg](https://github.com/major-technology/design-system/blob/main/apps/website/public/brand/mark-color.svg)) and Major mark, simple ([mark-simple.svg](https://github.com/major-technology/design-system/blob/main/apps/website/public/brand/mark-simple.svg)), at 48px.
14
+
15
+ ## The logo set
16
+
17
+ Seven versions of one logo. Pick by how much room there is and how much color the surface can take.
18
+
19
+ ### Monotone
20
+
21
+ Mark and wordmark in one ink. The default lockup for documents, decks and anywhere color is off.
22
+
23
+ `Logo · Type=Monotone`. Files: logo-monotone.svg, logo-monotone-dark.svg
24
+
25
+ ### Colorfull
26
+
27
+ The full-color mark with the wordmark. Brand moments: the login page, the website, launch material.
28
+
29
+ `Logo · Type=Colorfull`. Files: logo-color.svg, logo-color-dark.svg
30
+
31
+ ### Simple
32
+
33
+ The mark in solid brand color (accent, #017B61) with the wordmark. For small sizes, single-color prints and anywhere the glow won’t hold.
34
+
35
+ `Logo · Type=Simple`. Files: logo-simple.svg, logo-simple-dark.svg
36
+
37
+ ### Word only
38
+
39
+ Just “major”, where the mark is already shown nearby or space is wide and short.
40
+
41
+ `Logo · Type=Word only`. Files: logo-word.svg
42
+
43
+ ### Icon only
44
+
45
+ The mark in one ink: favicons, avatars, small monochrome spaces.
46
+
47
+ `Logo · Type=Icon only`. Files: mark-mono.svg
48
+
49
+ ### Icon only + color
50
+
51
+ The full-color mark on its own. What the product uses: 20px in the sidebar, 32px on Login.
52
+
53
+ `Logo · Type=Icon only + color`. Files: mark-color.svg
54
+
55
+ ### Icon only · Simple
56
+
57
+ The mark alone in solid brand color (accent). Favicons, app icons on brand surfaces, single-color prints.
58
+
59
+ `Major mark · Simple`. Files: mark-simple.svg
60
+
61
+ The files are in `apps/website/public/brand/`.
62
+
63
+ ## On light and dark
64
+
65
+ The full-color mark keeps its glow on both themes. One-ink versions take the theme’s ink: near-black on light, near-white on dark.
66
+
67
+ Each of these is shown on light and on dark ("· light, dark"): Monotone, Colorfull, Simple, Icon only + color, Icon only · Simple.
68
+
69
+ ## Sizes
70
+
71
+ Scale the logo, never redraw it. The product uses the full-color mark at two sizes.
72
+
73
+ **In the product**
74
+
75
+ - 20px: Home sidebar, top left
76
+ - 32px: Login card, centred on top
77
+
78
+ **Mark and lockup at common sizes**
79
+
80
+ - Mark: 16, 20, 24, 32, 48, 64
81
+ - Lockup: 20px high, 28px high, 40px high
82
+
83
+ ## Clear space
84
+
85
+ Keep at least half the mark’s width clear on every side, so nothing crowds the logo.
86
+
87
+ Shown on the lockup and on the mark, labelled “½ mark”.
88
+
89
+ ## Don’t
90
+
91
+ The logo only ever appears as one of the versions above, scaled evenly.
92
+
93
+ - Don’t recolor the mark
94
+ - Don’t stretch or squash
95
+ - Don’t rotate
96
+ - Don’t add shadows, glows or outlines
97
+ - Don’t use one-ink versions without the theme’s ink
98
+ - Don’t retype the wordmark
99
+
100
+ ## Profile images
101
+
102
+ 1024 × 1024 for social profiles, app stores and community avatars. The mark only, 480px (47%) and centred, so it survives a circle crop. The full-color mark is never recolored; one-color versions use accent, ink or white.
103
+
104
+ Each is shown in a rounded square and a circle crop:
105
+
106
+ - Color · light: major-profile-color-light.png
107
+ - Color · dark: major-profile-color-dark.png
108
+ - Brand · white on accent: major-profile-brand-accent.png
109
+ - Simple · accent on white: major-profile-simple-light.png
110
+ - Mono · ink on light: major-profile-mono-light.png
111
+ - Mono · white on dark: major-profile-mono-dark.png
@@ -0,0 +1,91 @@
1
+ ---
2
+ title: Motion
3
+ description: Calm and short. Motion explains where something came from or that work is happening — never decoration.
4
+ section: Foundations
5
+ ---
6
+
7
+ # Motion
8
+
9
+ Calm and short. Motion explains where something came from or that work is happening — never decoration.
10
+
11
+ Every example on the site's page plays live.
12
+
13
+ ## Principles
14
+
15
+ The rules every animation below follows. A new animation that follows them looks like it was always part of Major.
16
+
17
+ 1. **Every motion has a job.** Answer an action, show something appearing, follow something moving, or say work is going on. Motion with none of these jobs isn't added. Answer: Feedback · Appear: Overlays, Panels · Move: Movement · Wait: Work in progress.
18
+ 2. **Distance sets the duration.** The further something travels and the bigger it is, the longer it takes. Pick a step, never a number in between. In place, small: 120–160ms · A panel: 200ms · Across the screen: 300–340ms · Background change: 600ms.
19
+ 3. **Direction sets the curve.** Arriving slows down at the end, leaving speeds up, travelling glides, changing in place stays even. Enters: ease-out · Leaves: ease-in · Travels: Slide · Changes in place: Standard.
20
+ 4. **Leave faster than you came.** An exit is about a quarter shorter than its entrance. Menus, popovers, tooltips, dialogs and the focus dim leave instantly. Panel in: 200ms · Panel out: 150ms · Small overlay out: 0ms.
21
+ 5. **Short distances.** Nothing flies in from far away. A few pixels of rise are enough to say where something came from. Overlays: 4px · List items: 14px · Drawers: from their edge.
22
+ 6. **Opacity and transform.** They are smooth on every device. Size animates only where the content itself grows. Height: accordions, collapsibles · Width: a progress fill.
23
+ 7. **One bounce in the product.** Overshoot is kept for the moment something succeeds, so it still feels like a reward. Success: Overshoot.
24
+ 8. **Groups arrive together.** Items of a list start at once and land in one window; the order comes from their curves, not from delays. First half: List, early · Second half: List, late.
25
+ 9. **Loops only while working.** A spinner, shimmer or pulse runs while the work does and stops with it. Publishing steps tick one by one, about 750ms each; trace steps appear one by one. With reduced motion nothing moves; illustrations show a still frame that explains itself. Turns: linear · Pulses: ease-in-out.
26
+
27
+ ## Making a new animation
28
+
29
+ Four questions, answered from the principles. Here, for a toast.
30
+
31
+ | Step | Question | Answer | Value |
32
+ | --- | --- | --- | --- |
33
+ | 1 | What is its job? | It appears | Appear |
34
+ | 2 | How far does it go? | Slides in from the edge, panel-sized | 200ms |
35
+ | 3 | Which way? | Enters slowing down, leaves a quarter faster: 150ms | Arrive in, Leave out |
36
+ | 4 | What moves? | Rises from its edge and fades | translateY, opacity |
37
+
38
+ The toast: `translateY + opacity`, in over 200ms on Arrive `cubic-bezier(0.22, 1, 0.36, 1)`, out over 150ms on Leave `cubic-bezier(0.42, 0, 1, 1)`.
39
+
40
+ ## Feedback
41
+
42
+ The answer to a pointer, a click or a finished action. Fast enough to feel instant, slow enough not to flicker.
43
+
44
+ | Animation | Duration | Curve | Animates | Code |
45
+ | --- | --- | --- | --- | --- |
46
+ | Hover: Rows, buttons, menu items, tabs: the background and text colour change under the pointer | 120ms | Standard `cubic-bezier(0.4, 0, 0.2, 1)` | background-color, color | `transition-colors duration-120` |
47
+ | Switch: The thumb slides across as the track turns green. Chevrons turn 90° on the same timing | 150ms | Standard `cubic-bezier(0.4, 0, 0.2, 1)` | thumb translateX 2px → 13px, track colour | `transition-transform duration-150` |
48
+ | Success (proposed): The check after publishing lands with a slight overshoot: the one bouncy moment in the product | 450ms | Overshoot `cubic-bezier(0.34, 1.56, 0.64, 1)` | scale 0.4 → 1, opacity 0 → 1 | `ease-[cubic-bezier(.34,1.56,.64,1)] duration-450` |
49
+
50
+ ## Overlays
51
+
52
+ Menus, popovers, tooltips and dialogs appear quickly and disappear at once: closing never animates.
53
+
54
+ | Animation | Duration | Curve | Animates | Code |
55
+ | --- | --- | --- | --- | --- |
56
+ | Pop in: Dialogs, popovers, menus, hover cards: they fade in rising 4px from where they open | 160ms | Appear `cubic-bezier(0, 0, 0.58, 1)` | opacity 0 → 1, translateY 4px → 0 | `data-open:animate-pop-in` |
57
+ | Fade in: Tooltips and the dialog backdrop: opacity only, nothing moves | 160ms | Appear `cubic-bezier(0, 0, 0.58, 1)` | opacity 0 → 1 | `data-open:animate-fade-in` |
58
+ | Focus dim: The page dims slowly around the card a hover card belongs to, so the eye settles on it | 600ms | Leave `cubic-bezier(0.42, 0, 1, 1)` | opacity of the dim 0 → 1, around the focused element | `animate-dim-in` |
59
+
60
+ ## Panels
61
+
62
+ Content that opens in place or slides over the page. In on ease-out, out a third faster on ease-in.
63
+
64
+ | Animation | Duration | Curve | Animates | Code |
65
+ | --- | --- | --- | --- | --- |
66
+ | Accordion: Accordion sections and collapsibles: the height opens to the content as it fades in | 200ms in · 150ms out | Appear `cubic-bezier(0, 0, 0.58, 1)` / Leave `cubic-bezier(0.42, 0, 1, 1)` | height 0 → content, opacity 0 → 1 | `animate-accordion-open` / `animate-accordion-close` |
67
+ | Drawer: Mobile sheets slide up from the edge over a dim; a swipe takes them away under the finger | 200ms in · 150ms out | Arrive `cubic-bezier(0.22, 1, 0.36, 1)` / Leave `cubic-bezier(0.42, 0, 1, 1)` | translateY 100% → 0, dim opacity 0 → 1 | `duration-200 ease-out` · `data-ending-style:duration-150 ease-in` |
68
+
69
+ ## Movement
70
+
71
+ Something travelling or growing on screen. Longer, because the eye follows it.
72
+
73
+ | Animation | Duration | Curve | Animates | Code |
74
+ | --- | --- | --- | --- | --- |
75
+ | View switcher: The white pill slides to the chosen view while its label opens; the old label closes | 340ms | Slide `cubic-bezier(0.33, 1, 0.68, 1)` | pill translateX and width, label max-width | `duration-340 ease-[cubic-bezier(.33,1,.68,1)]` |
76
+ | Progress: A progress bar's fill eases to each new value instead of jumping | 600ms | Arrive `cubic-bezier(0.22, 1, 0.36, 1)` | width of the fill | `transition-[width] duration-600 ease-out` |
77
+ | List entrance: Cards of a list rise in together and land in one 300ms window; the first half takes the early curve | 300ms | List, early `cubic-bezier(0.2, 0.9, 0.3, 1)` / List, late `cubic-bezier(0.6, 0, 0.4, 1)` | opacity 0 → 1, translateY 14px → 0 | `animate-rise-in, --rise-ease per item` |
78
+
79
+ ## Work in progress
80
+
81
+ Loops say the product is busy. They run only while the work does and hold still with reduced motion.
82
+
83
+ | Animation | Duration | Curve | Animates | Code |
84
+ | --- | --- | --- | --- | --- |
85
+ | Spinner: A loader circle inside the control that started the work, with a present-tense label | 0.9s per turn | Constant `linear` | rotate 0 → 360°, forever | `animate-spinner` · `<Button loading>` |
86
+ | Thinking: A working thread's mark: three dots on a slow turn, each pulsing 0.2s after the last | 2.4s turn · 1.2s pulse | Constant `linear` / Pulse `cubic-bezier(0.42, 0, 0.58, 1)` | rotate 360°; each dot scale 0.7 → 1.1, opacity 0.35 → 1 | `animate-think-spin, animate-think-pulse` |
87
+ | Skeleton: Placeholders in the shape of what is loading; a light sweeps across them | 1.6s | Pulse `cubic-bezier(0.42, 0, 0.58, 1)` | background-position 100% → 0, forever | `skeleton-shimmer` · `<Skeleton>` |
88
+ | Shimmer text: The running step of an agent's Trace: a light passes over the words | 3.2s | Constant `linear` | background-position 200% → 0, forever | `shimmer-text` |
89
+ | Live ping: A ring grows out of a status dot and fades while the state is happening now: Live, Running | 1s | Ping `cubic-bezier(0, 0, 0.2, 1)` | ring scale 1 → 2, opacity 0.75 → 0 | `<StatusDot isPulsing>` |
90
+
91
+ Examples: [the demos](https://github.com/major-technology/design-system/blob/main/apps/website/src/components/modules/foundations/motion/components/demos/)
@@ -0,0 +1,13 @@
1
+ ---
2
+ title: Radius
3
+ description: "Radii step by role, not by size: the bigger and more container-like the thing, the rounder its corners. Tags and avatars are pills."
4
+ section: Foundations
5
+ ---
6
+
7
+ # Radius
8
+
9
+ Radii step by role, not by size: the bigger and more container-like the thing, the rounder its corners. Tags and avatars are pills.
10
+
11
+ ## Scale
12
+
13
+ The scale is the `radius` group of `packages/ui/tokens.json` (via `@major-tech/ui/lib/major-tokens`): per token, a sample corner, its `rounded-<name>` utility, its value and what it rounds. Values are not copied here.