@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,206 @@
1
+ ---
2
+ name: Popover
3
+ slug: popover
4
+ description: "An anchored, non-blocking surface: the publish panel under its button, a mention's details."
5
+ group: Overlays
6
+ layer: primitive
7
+ status: stable
8
+ since: 0.3.0
9
+ primitive: Popover
10
+ import: import { Popover, PopoverTrigger, PopoverClose, PopoverContent, CaretPopover, CARET_POPOVER_SIDES } from "@major-tech/ui/popover";
11
+ source: packages/ui/src/components/popover.tsx
12
+ ---
13
+
14
+ # Popover
15
+
16
+ ## Usage
17
+
18
+ ### Anchored panel
19
+
20
+ Non-blocking and anchored to the control that opened it: the publish panel under its button, a mention's details. Padding comes from its content.
21
+
22
+ Example: `publish`
23
+
24
+ ```tsx
25
+ "use client";
26
+
27
+ import { BADGE_VARIANTS, Badge } from "@major-tech/ui/badge";
28
+ import { BUTTON_SIZES, Button } from "@major-tech/ui/button";
29
+ import { Popover, PopoverClose, PopoverContent, PopoverTrigger } from "@major-tech/ui/popover";
30
+ import { toast } from "@major-tech/ui/sonner";
31
+ import { Upload } from "lucide-react";
32
+
33
+ export default function PopoverPublish() {
34
+ return (
35
+ <Popover>
36
+ <PopoverTrigger render={<Button size={BUTTON_SIZES.SM} />}>
37
+ <Upload />
38
+ Publish
39
+ </PopoverTrigger>
40
+ <PopoverContent align="end" className="flex w-80 flex-col gap-space-12 p-space-16">
41
+ <div className="flex items-center justify-between">
42
+ <span className="text-ui-strong">Publish lead-tracker</span>
43
+ <Badge variant={BADGE_VARIANTS.LIVE}>v4 · live</Badge>
44
+ </div>
45
+ <p className="m-0 text-ui text-muted">v5 goes live at lead-tracker.major.app.</p>
46
+ <PopoverClose render={<Button className="w-full" onClick={() => toast("lead-tracker v5 is live")} />}>
47
+ Publish v5
48
+ </PopoverClose>
49
+ </PopoverContent>
50
+ </Popover>
51
+ );
52
+ }
53
+ ```
54
+
55
+ ### At a text caret
56
+
57
+ CaretPopover is the sheet an editor's `@` and `/` menus open in, at the caret: below it when the sheet fits there, and it keeps that side while its list loads or filters. Focus stays in the text. The Composer's mentions and an agent's instructions open their menus in it.
58
+
59
+ Example: `at-caret`
60
+
61
+ ```tsx
62
+ "use client";
63
+
64
+ import { useState, type KeyboardEvent } from "react";
65
+ import { DROPDOWN_MENU_ITEM_CLASSES, DROPDOWN_MENU_LABEL_CLASSES } from "@major-tech/ui/dropdown-menu";
66
+ import { cn } from "@major-tech/ui/lib/cn";
67
+ import { CaretPopover } from "@major-tech/ui/popover";
68
+ import { Heading2, List, Quote } from "lucide-react";
69
+
70
+ const BLOCKS = [
71
+ { id: "heading", label: "Heading", Icon: Heading2 },
72
+ { id: "list", label: "List", Icon: List },
73
+ { id: "callout", label: "Callout", Icon: Quote },
74
+ ];
75
+
76
+ const MENU_MAX_HEIGHT = 200;
77
+
78
+ /** Where the caret is now, in the viewport: what the menu opens at. */
79
+ function getCaretRect() {
80
+ const selection = window.getSelection();
81
+
82
+ if (!selection || selection.rangeCount === 0) {
83
+ return null;
84
+ }
85
+
86
+ return selection.getRangeAt(0).getBoundingClientRect();
87
+ }
88
+
89
+ export default function PopoverAtCaret() {
90
+ const [isMenuOpen, setIsMenuOpen] = useState(false);
91
+ const [picked, setPicked] = useState<string | null>(null);
92
+
93
+ const handleKeyUp = (event: KeyboardEvent<HTMLDivElement>) => {
94
+ if (event.key === "/") {
95
+ setIsMenuOpen(true);
96
+ }
97
+ };
98
+
99
+ const pickBlock = (label: string) => {
100
+ setPicked(label);
101
+ setIsMenuOpen(false);
102
+ };
103
+
104
+ return (
105
+ <div className="flex w-full max-w-100 flex-col gap-space-8">
106
+ <div
107
+ contentEditable
108
+ suppressContentEditableWarning
109
+ role="textbox"
110
+ aria-label="Instructions"
111
+ aria-multiline
112
+ tabIndex={0}
113
+ onKeyUp={handleKeyUp}
114
+ className="min-h-20 rounded-lg border border-line bg-surface p-space-12 text-ui text-ink outline-none focus-visible:ring-2 focus-visible:ring-faint"
115
+ >
116
+ Type / for blocks
117
+ </div>
118
+ {isMenuOpen && (
119
+ <CaretPopover
120
+ getCaretRect={getCaretRect}
121
+ maxHeight={MENU_MAX_HEIGHT}
122
+ onClose={() => setIsMenuOpen(false)}
123
+ className="w-56"
124
+ >
125
+ <div className="min-h-0 overflow-y-auto p-space-6">
126
+ <div className={DROPDOWN_MENU_LABEL_CLASSES}>Blocks</div>
127
+ {BLOCKS.map(({ id, label, Icon }) => (
128
+ <button
129
+ key={id}
130
+ type="button"
131
+ className={cn(DROPDOWN_MENU_ITEM_CLASSES, "w-full")}
132
+ onClick={() => pickBlock(label)}
133
+ >
134
+ <Icon />
135
+ {label}
136
+ </button>
137
+ ))}
138
+ </div>
139
+ </CaretPopover>
140
+ )}
141
+ {picked && <p className="m-0 text-small text-muted">Picked: {picked}</p>}
142
+ </div>
143
+ );
144
+ }
145
+ ```
146
+
147
+ - Mount it when the menu opens, with the caret's rectangle (TipTap's suggestion `clientRect`); the editor's suggestion plugin keeps the keys: arrows, Enter, Escape.
148
+ - `maxHeight` is the sheet's full height: it opens on the side that fits it and never grows past the room there. Its content scrolls itself (`min-h-0 overflow-y-auto`).
149
+ - `side` fixes the side instead: the Composer, at the bottom of the chat, always opens its menu upward.
150
+
151
+ ### Guidelines
152
+
153
+ - 12px radius, `panel-edge` border, `shadow-pop`; opens 6px from its anchor, centred on it unless `align` says otherwise.
154
+ - 288px wide by default; size it between 320 and 460px with `className`.
155
+ - Esc and a click outside close it.
156
+
157
+ Do:
158
+
159
+ - Extras next to their anchor: publish, a mention's details, a hover card.
160
+ - One overlay at a time, except a menu opened from inside a dialog.
161
+
162
+ Don't:
163
+
164
+ - A task that must be finished before going on: use a Dialog.
165
+ - A list of actions: use a DropdownMenu.
166
+ - The name of an icon: use a Tooltip.
167
+
168
+ ## API
169
+
170
+ ```tsx
171
+ import { Popover, PopoverTrigger, PopoverClose, PopoverContent, CaretPopover, CARET_POPOVER_SIDES } from "@major-tech/ui/popover";
172
+ ```
173
+
174
+ ### `<PopoverContent />`
175
+
176
+ Base UI Popover.Popup props pass through (`initialFocus`, `finalFocus`…), and the positioner's `side`, `alignOffset`, `collisionPadding` and `collisionAvoidance`. Renders in a portal.
177
+
178
+ | Prop | Type | Default | Description |
179
+ | --- | --- | --- | --- |
180
+ | `align` | `"start" \| "center" \| "end"` | `"center"` | Which edge of the anchor it lines up with. |
181
+ | `sideOffset` | `number` | `6` | Gap to the anchor, in px. |
182
+ | `anchor` | `Element \| RefObject \| () => Element \| VirtualElement` | — | Positions it against something other than its trigger: an element, or a caret's rectangle. |
183
+ | `className` | `string` | — | Width (`w-80`…`w-115`) and padding. |
184
+
185
+ ### `<CaretPopover />`
186
+
187
+ | Prop | Type | Default | Description |
188
+ | --- | --- | --- | --- |
189
+ | `getCaretRect`* | `() => DOMRect \| null` | — | The caret's viewport rectangle, as the editor reports it. |
190
+ | `maxHeight`* | `number` | — | The sheet's full height in px: it opens on the side that fits it. |
191
+ | `onClose`* | `() => void` | — | Escape or a click outside. |
192
+ | `side` | `"top" \| "bottom"` | — | A fixed side instead of the one that fits. `CARET_POPOVER_SIDES` holds the values. |
193
+ | `className` | `string` | — | Width and the sheet's look (`DROPDOWN_MENU_SHEET_CLASSES` for a menu). |
194
+
195
+ ### `Parts`
196
+
197
+ | Prop | Type | Default | Description |
198
+ | --- | --- | --- | --- |
199
+ | `Popover` | `Root` | — | `open` / `onOpenChange` / `defaultOpen` / `modal`. A click or focus inside an element marked `data-overlay-portal-branch` (a list portaled out of it, like suggestions under one of its inputs) doesn't close it. |
200
+ | `PopoverTrigger` | `—` | — | Pass a Button as `render`: `<PopoverTrigger render={<Button />}>Publish</PopoverTrigger>`. |
201
+ | `PopoverClose` | `—` | — | Closes it; pass a Button as `render`. |
202
+
203
+ ### Accessibility
204
+
205
+ - The trigger carries `aria-expanded` and `aria-controls` (Base UI).
206
+ - Focus moves into the popover when it opens and returns to the trigger when it closes.
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: Progress
3
+ slug: progress
4
+ description: A 4px bar for a known amount of work.
5
+ group: Feedback
6
+ layer: primitive
7
+ status: stable
8
+ since: 0.1.0
9
+ primitive: Progress
10
+ import: import { Progress } from "@major-tech/ui/progress";
11
+ source: packages/ui/src/components/progress.tsx
12
+ ---
13
+
14
+ # Progress
15
+
16
+ ## Usage
17
+
18
+ ### Bar
19
+
20
+ A 4px secondary track with a success fill. Write the amount next to it in its real unit.
21
+
22
+ Example: `bar`
23
+
24
+ ```tsx
25
+ import { Progress } from "@major-tech/ui/progress";
26
+
27
+ const FILES_UPLOADED_COUNT = 13;
28
+ const FILES_TOTAL_COUNT = 25;
29
+
30
+ export default function ProgressBar() {
31
+ return (
32
+ <div className="flex w-80 flex-col gap-space-8">
33
+ <div className="flex justify-between text-ui">
34
+ <span className="text-ink">Uploading files</span>
35
+ <span className="text-muted">
36
+ {FILES_UPLOADED_COUNT} of {FILES_TOTAL_COUNT}
37
+ </span>
38
+ </div>
39
+ <Progress value={FILES_UPLOADED_COUNT} max={FILES_TOTAL_COUNT} aria-label="Uploading files" />
40
+ </div>
41
+ );
42
+ }
43
+ ```
44
+
45
+ ### Filling
46
+
47
+ The fill slides over 600ms, easing out; with reduced motion it jumps.
48
+
49
+ Example: `filling`
50
+
51
+ ```tsx
52
+ "use client";
53
+
54
+ import { useState } from "react";
55
+ import { Button } from "@major-tech/ui/button";
56
+ import { Progress } from "@major-tech/ui/progress";
57
+
58
+ const STEP_PERCENT = 25;
59
+ const FULL_PERCENT = 100;
60
+
61
+ export default function ProgressFilling() {
62
+ const [value, setValue] = useState(STEP_PERCENT);
63
+ const isFull = value >= FULL_PERCENT;
64
+
65
+ return (
66
+ <div className="flex w-80 flex-col items-start gap-space-12">
67
+ <Progress value={value} aria-label="Import" />
68
+ <Button
69
+ variant="outline"
70
+ size="sm"
71
+ onClick={() => setValue(isFull ? 0 : Math.min(value + STEP_PERCENT, FULL_PERCENT))}
72
+ >
73
+ {isFull ? "Start over" : "Advance"}
74
+ </Button>
75
+ </div>
76
+ );
77
+ }
78
+ ```
79
+
80
+ ### Unknown durations
81
+
82
+ When the amount isn't known, the Spinner turns inside the control that started the work, which stays disabled until it ends. Button's `loading` does this for you.
83
+
84
+ Example: `spinner`
85
+
86
+ ```tsx
87
+ import { Button } from "@major-tech/ui/button";
88
+ import { Spinner } from "@major-tech/ui/spinner";
89
+
90
+ export default function ProgressSpinner() {
91
+ return (
92
+ <>
93
+ <Button loading>Connecting…</Button>
94
+ <span className="flex items-center gap-space-6 text-ui text-muted">
95
+ <Spinner />
96
+ Checking the connection…
97
+ </span>
98
+ </>
99
+ );
100
+ }
101
+ ```
102
+
103
+ ### Which one?
104
+
105
+ - Known amount → Progress.
106
+ - Usage against a limit, with its label and “1.4 GB of 10 GB” → the UsageMeter composite.
107
+ - Short known sequence (2–5 steps) → StepList.
108
+ - Anything else → a spinner in the control that started it. Nothing else on the page locks.
109
+
110
+ Do:
111
+
112
+ - Present tense while working, past tense when done: “Building v8” → “Built v8”.
113
+ - Show the real unit: “13 of 25 files”, “1.4 GB of 10 GB”.
114
+
115
+ Don't:
116
+
117
+ - Full-page spinners or overlays for one action.
118
+ - Percentages that never move: use a spinner instead.
119
+
120
+ ## API
121
+
122
+ ```tsx
123
+ import { Progress } from "@major-tech/ui/progress";
124
+ ```
125
+
126
+ ### `<Progress />`
127
+
128
+ Base UI Progress Root; also accepts native `<div>` attributes.
129
+
130
+ | Prop | Type | Default | Description |
131
+ | --- | --- | --- | --- |
132
+ | `value` | `number \| null` | — | The amount done, from 0 to `max`; `null` shows an empty bar. |
133
+ | `max` | `number` | `100` | The total. |
134
+ | `min` | `number` | `0` | The start of the range. |
135
+ | `getAriaValueText` | `(formattedValue: string, value: number \| null) => string` | — | What screen readers hear (`aria-valuetext`). Defaults to the formatted value: a percentage unless `format` is set. |
136
+ | `format` | `Intl.NumberFormatOptions` | — | How the value is formatted for screen readers. |
137
+ | `locale` | `Intl.LocalesArgument` | — | The locale the value is formatted in; defaults to the user's. |
138
+
139
+ ### Accessibility
140
+
141
+ - Renders `role="progressbar"` with `aria-valuenow` and `aria-valuemax`. Give it an `aria-label`, or point `aria-labelledby` at its visible label.
142
+ - Spinner renders `role="status"` with the label “Loading”; a loading Button sets `aria-busy` instead.
@@ -0,0 +1,195 @@
1
+ ---
2
+ name: ProgressiveBlur
3
+ slug: progressive-blur
4
+ description: "A blur that fades out from one edge, for content that scrolls or slides under something floating: a chat header, the stack above the composer, a sidebar over the page."
5
+ group: Layout
6
+ layer: primitive
7
+ status: beta
8
+ since: 0.4.0
9
+ import: import { ProgressiveBlur, PROGRESSIVE_BLUR_SIDES } from "@major-tech/ui/progressive-blur";
10
+ source: packages/ui/src/components/progressive-blur.tsx
11
+ ---
12
+
13
+ # ProgressiveBlur
14
+
15
+ ## Usage
16
+
17
+ ### Under a floating header
18
+
19
+ A chat's header floats over its transcript. The blur sits against the island's top edge, as tall as the header plus 16px to fade, and messages soften as they scroll under it. Scroll the preview.
20
+
21
+ Example: `under-a-header`
22
+
23
+ ```tsx
24
+ "use client";
25
+
26
+ import { BUTTON_SIZES, BUTTON_VARIANTS, Button } from "@major-tech/ui/button";
27
+ import { ISLAND_VARIANTS, Island } from "@major-tech/ui/island";
28
+ import { PROGRESSIVE_BLUR_SIDES, ProgressiveBlur } from "@major-tech/ui/progressive-blur";
29
+ import { Ellipsis } from "lucide-react";
30
+
31
+ /** The header's 48px row plus 16px for the blur to fade out under it; the transcript starts below (pt-16). */
32
+ const HEADER_ZONE_PX = 64;
33
+
34
+ const TRANSCRIPT = [
35
+ "Write me a daily joke agent that posts to #random at 9:00.",
36
+ "Done: Daily Joke runs on weekdays at 9:00 and posts one programming joke to #random.",
37
+ "Keep the jokes to one line, and skip Mondays.",
38
+ "Updated the schedule to Tuesday through Friday and the tone to dry, one line.",
39
+ "Can it pick a topic from what the team talked about yesterday?",
40
+ "It can read yesterday's #general and pick one topic from it. Connect Slack to let it read the channel.",
41
+ "Connected. Try it now.",
42
+ "Here's today's: “I'd tell you a UDP joke, but you might not get it.”",
43
+ ];
44
+
45
+ export default function ProgressiveBlurUnderAHeader() {
46
+ return (
47
+ <Island variant={ISLAND_VARIANTS.PANEL} className="relative h-72 w-full overflow-hidden">
48
+ <div className="absolute inset-0 flex flex-col gap-space-16 overflow-y-auto px-space-16 pt-16 pb-space-16">
49
+ {TRANSCRIPT.map((message) => (
50
+ <p key={message} className="text-ui text-ink-2">
51
+ {message}
52
+ </p>
53
+ ))}
54
+ </div>
55
+ <ProgressiveBlur
56
+ side={PROGRESSIVE_BLUR_SIDES.TOP}
57
+ size={HEADER_ZONE_PX}
58
+ blurMax={8}
59
+ segments={5}
60
+ color="var(--color-panel)"
61
+ />
62
+ <header className="absolute inset-x-0 top-0 flex items-center justify-between px-space-16 py-space-12">
63
+ <h3 className="text-body font-semibold text-ink">Daily Joke</h3>
64
+ <Button variant={BUTTON_VARIANTS.GHOST} size={BUTTON_SIZES.ICON_SM} aria-label="Chat actions">
65
+ <Ellipsis />
66
+ </Button>
67
+ </header>
68
+ </Island>
69
+ );
70
+ }
71
+ ```
72
+
73
+ - Under a header or bar: blurMax 8px in 5 bands, color the panel it sits on.
74
+ - The header goes after the blur, so it draws on top. The content starts where the blur ends, so nothing is soft until it scrolls under.
75
+ - Above what floats at the bottom (the stack over the composer), the same blur with side bottom.
76
+
77
+ ### Beside a panel over the page
78
+
79
+ The editor routes' sidebar slides in over the page on hover. The blur behind it reaches past its edge, strongest at the left, so the page reads as behind the sidebar without a dim.
80
+
81
+ Example: `beside-a-panel`
82
+
83
+ ```tsx
84
+ "use client";
85
+
86
+ import { Card, CardDescription, CardHeader, CardTitle } from "@major-tech/ui/card";
87
+ import { PROGRESSIVE_BLUR_SIDES, ProgressiveBlur } from "@major-tech/ui/progressive-blur";
88
+ import { SidebarItem } from "@major-tech/ui/sidebar-item";
89
+ import { Bot, Home, LayoutGrid, Plug } from "lucide-react";
90
+
91
+ const AGENTS = [
92
+ { name: "Daily Joke", description: "Posts one joke to #random on weekdays." },
93
+ { name: "Standup Digest", description: "Sums up yesterday's threads at 9:30." },
94
+ { name: "Lead tracker", description: "Adds new leads from the form to the CRM." },
95
+ { name: "Invoice chaser", description: "Reminds clients a week after the due date." },
96
+ { name: "Release notes", description: "Drafts notes from merged pull requests." },
97
+ { name: "Support triage", description: "Tags and routes new support tickets." },
98
+ ];
99
+
100
+ export default function ProgressiveBlurBesideAPanel() {
101
+ return (
102
+ <div className="relative h-72 w-full overflow-hidden bg-app-bg">
103
+ <div className="grid grid-cols-2 gap-space-12 p-space-16 sm:grid-cols-3">
104
+ {AGENTS.map((agent) => (
105
+ <Card key={agent.name} className="p-space-16">
106
+ <CardHeader>
107
+ <CardTitle>{agent.name}</CardTitle>
108
+ </CardHeader>
109
+ <CardDescription>{agent.description}</CardDescription>
110
+ </Card>
111
+ ))}
112
+ </div>
113
+ {/* The sidebar slid in over the page: the blur behind it is as wide as it reaches, strongest at its edge. */}
114
+ <ProgressiveBlur
115
+ side={PROGRESSIVE_BLUR_SIDES.LEFT}
116
+ size={400}
117
+ blurMax={24}
118
+ segments={6}
119
+ color="var(--color-app-bg)"
120
+ />
121
+ <nav aria-label="Main" className="absolute inset-y-0 left-0 flex w-48 flex-col gap-space-2 p-space-12">
122
+ <SidebarItem>
123
+ <Home />
124
+ <span>Home</span>
125
+ </SidebarItem>
126
+ <SidebarItem isActive>
127
+ <Bot />
128
+ <span>Agents</span>
129
+ </SidebarItem>
130
+ <SidebarItem>
131
+ <LayoutGrid />
132
+ <span>Apps</span>
133
+ </SidebarItem>
134
+ <SidebarItem>
135
+ <Plug />
136
+ <span>Connectors</span>
137
+ </SidebarItem>
138
+ </nav>
139
+ </div>
140
+ );
141
+ }
142
+ ```
143
+
144
+ - Beside a panel: blurMax 24px in 6 bands, color app-bg, 400px wide.
145
+
146
+ ### Guidelines
147
+
148
+ - The parent is positioned (relative or absolute) and clips (overflow-hidden); the blur covers its edge, size px in from it.
149
+ - color is the surface the blur sits on, as its token: panel in an island, app-bg on the page. The strongest edge fades from that colour, so the blur reads as the surface itself, not as a gradient.
150
+
151
+ Do:
152
+
153
+ - Blur only where content moves under something floating: it scrolls, or something slides over it.
154
+ - Size it to what floats over it, plus room to fade.
155
+
156
+ Don't:
157
+
158
+ - Behind dialogs and menus: overlays dim.
159
+ - On a surface that never scrolls: there is nothing under it to soften.
160
+ - A blur and a bottom line on the same header: a solid header has the line, a floating one has the blur.
161
+
162
+ ## API
163
+
164
+ ```tsx
165
+ import { ProgressiveBlur, PROGRESSIVE_BLUR_SIDES } from "@major-tech/ui/progressive-blur";
166
+ ```
167
+
168
+ ### `<ProgressiveBlur />`
169
+
170
+ Renders a `<div>`; every other attribute goes to it.
171
+
172
+ | Prop | Type | Default | Description |
173
+ | --- | --- | --- | --- |
174
+ | `side`* | `"top" \| "right" \| "bottom" \| "left"` | — | The edge it sits against and is strongest at; it fades out away from it. |
175
+ | `color`* | `string` | — | The surface it sits on, as its colour token: `var(--color-panel)`. |
176
+ | `size` | `number` | `64` | How far it reaches from the edge, in px at the default text size (rendered in rem). |
177
+ | `blurMax` | `number` | `16` | The blur at the edge, in px; each band further in has half the one before. |
178
+ | `segments` | `number` | `8` | Stacked blur bands. More is smoother and costs more to draw. |
179
+ | `className` | `string` | — | On the blur's box, e.g. a z-index. |
180
+
181
+ `*` marks a required prop.
182
+
183
+ ### `PROGRESSIVE_BLUR_SIDES`
184
+
185
+ | Prop | Type | Default | Description |
186
+ | --- | --- | --- | --- |
187
+ | `TOP` | `"top"` | — | Under a header that floats over a scrolled list or transcript. |
188
+ | `RIGHT` | `"right"` | — | Beside a panel on the right. |
189
+ | `BOTTOM` | `"bottom"` | — | Above what floats at the bottom: the stack over the composer. |
190
+ | `LEFT` | `"left"` | — | Beside a panel that slides in from the left over the page. |
191
+
192
+ ### Accessibility
193
+
194
+ - Decoration only: `aria-hidden`, and `pointer-events-none`, so clicks reach what is under it.
195
+ - Each band is a `backdrop-filter`: keep to the defaults or fewer, and to the edges that need it.
@@ -0,0 +1,129 @@
1
+ ---
2
+ name: RadioGroup
3
+ slug: radio-group
4
+ description: A round choice for picking exactly one option from a short visible list (2 to 5).
5
+ group: Inputs
6
+ layer: primitive
7
+ status: stable
8
+ since: 0.3.0
9
+ primitive: RadioGroup
10
+ import: import { RadioGroup, RadioGroupItem } from "@major-tech/ui/radio-group";
11
+ source: packages/ui/src/components/radio-group.tsx
12
+ ---
13
+
14
+ # RadioGroup
15
+
16
+ ## Usage
17
+
18
+ ### One of a short list
19
+
20
+ A 16px circle with a 1.5px faint border; selected turns the border link and shows a 7px link dot, and hover darkens the border to ink-2. RadioGroupItem is only the circle: each option is a horizontal Field with its 13px label, and an optional muted second line in FieldContent. Options are 12px apart.
21
+
22
+ Example: `basic`
23
+
24
+ ```tsx
25
+ import { Field, FieldContent, FieldDescription, FieldLabel } from "@major-tech/ui/field";
26
+ import { RadioGroup, RadioGroupItem } from "@major-tech/ui/radio-group";
27
+
28
+ const ACCESS_OPTIONS = [
29
+ { value: "only-you", label: "Only you" },
30
+ { value: "people", label: "People you choose" },
31
+ { value: "everyone", label: "Everyone at max-org", description: "Including new members" },
32
+ ];
33
+
34
+ export default function RadioGroupBasic() {
35
+ return (
36
+ <RadioGroup defaultValue="only-you" aria-label="Who can use it">
37
+ {ACCESS_OPTIONS.map((option) => (
38
+ <Field key={option.value} orientation="horizontal">
39
+ <RadioGroupItem id={`access-${option.value}`} value={option.value} />
40
+ <FieldContent>
41
+ <FieldLabel htmlFor={`access-${option.value}`}>{option.label}</FieldLabel>
42
+ {option.description !== undefined && <FieldDescription>{option.description}</FieldDescription>}
43
+ </FieldContent>
44
+ </Field>
45
+ ))}
46
+ <Field orientation="horizontal">
47
+ <RadioGroupItem id="access-public" value="public" disabled />
48
+ <FieldLabel htmlFor="access-public">Anyone with the link</FieldLabel>
49
+ </Field>
50
+ </RadioGroup>
51
+ );
52
+ }
53
+ ```
54
+
55
+ ### Option cards
56
+
57
+ For choices that need a sentence each: give each Field a 12px-radius card with a line border on surface, 14px × 12px inside, 8px between cards. The selected card looks the same as the others: the filled radio is the only mark of the choice, no outline, no green fill.
58
+
59
+ Example: `cards`
60
+
61
+ ```tsx
62
+ import { Field, FieldContent, FieldDescription, FieldLabel } from "@major-tech/ui/field";
63
+ import { RadioGroup, RadioGroupItem } from "@major-tech/ui/radio-group";
64
+
65
+ const CREDENTIAL_OPTIONS = [
66
+ { value: "shared", label: "Shared credentials", description: "Everyone uses one connection you set up." },
67
+ { value: "per-user", label: "Per-user credentials", description: "Each person signs in with their own account." },
68
+ ];
69
+
70
+ export default function RadioGroupCards() {
71
+ return (
72
+ <RadioGroup defaultValue="shared" aria-label="How people sign in" className="w-96 max-w-full gap-space-8">
73
+ {CREDENTIAL_OPTIONS.map((option) => (
74
+ <Field
75
+ key={option.value}
76
+ orientation="horizontal"
77
+ className="rounded-xl border border-line bg-surface px-space-14 py-space-12"
78
+ >
79
+ <RadioGroupItem id={`credentials-${option.value}`} value={option.value} />
80
+ <FieldContent>
81
+ <FieldLabel htmlFor={`credentials-${option.value}`} className="font-medium">
82
+ {option.label}
83
+ </FieldLabel>
84
+ <FieldDescription>{option.description}</FieldDescription>
85
+ </FieldContent>
86
+ </Field>
87
+ ))}
88
+ </RadioGroup>
89
+ );
90
+ }
91
+ ```
92
+
93
+ ### Guidelines
94
+
95
+ - For 2 to 5 visible options. More options or tight space: a Select. Two or three short values set in place: Tabs.
96
+ - Always start with one option selected, usually the safest or most common.
97
+ - Keep labels parallel and short; put the explanation in the second line.
98
+
99
+ ## API
100
+
101
+ ```tsx
102
+ import { RadioGroup, RadioGroupItem } from "@major-tech/ui/radio-group";
103
+ ```
104
+
105
+ ### `<RadioGroup />`
106
+
107
+ Base UI RadioGroup: also `name`, `required`, `disabled`. A 12px-gap grid; override the gap with `className`.
108
+
109
+ | Prop | Type | Default | Description |
110
+ | --- | --- | --- | --- |
111
+ | `value / defaultValue` | `string` | — | The selected option. |
112
+ | `onValueChange` | `(value: string, eventDetails) => void` | — | Called on pick. |
113
+ | `aria-label` | `string` | — | Names the group when there is no visible heading. |
114
+
115
+ ### `<RadioGroupItem />`
116
+
117
+ Base UI `Radio.Root`. Give it the `id` a FieldLabel points at.
118
+
119
+ | Prop | Type | Default | Description |
120
+ | --- | --- | --- | --- |
121
+ | `value`* | `string` | — | The option's value. |
122
+ | `disabled` | `boolean` | — | 50% opacity with its label; skipped by arrow keys. |
123
+
124
+ `*` marks a required prop.
125
+
126
+ ### Accessibility
127
+
128
+ - `role="radiogroup"` with roving focus: Tab enters the group, arrow keys move and select.
129
+ - Each circle is named by its FieldLabel; name the group with `aria-label` or `aria-labelledby`.