@brett_lamy/ui 0.0.1 → 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 (405) hide show
  1. package/README.md +131 -13
  2. package/dist/components/adaptive-pane.d.ts +15 -0
  3. package/dist/components/adaptive-pane.d.ts.map +1 -0
  4. package/dist/components/adaptive-pane.stories.d.ts +7 -0
  5. package/dist/components/adaptive-pane.stories.d.ts.map +1 -0
  6. package/dist/components/animated-height.d.ts +23 -0
  7. package/dist/components/animated-height.d.ts.map +1 -0
  8. package/dist/components/avatar.d.ts +1 -1
  9. package/dist/components/avatar.stories.d.ts +1 -1
  10. package/dist/components/badge.d.ts +9 -0
  11. package/dist/components/badge.d.ts.map +1 -0
  12. package/dist/components/badge.stories.d.ts +9 -0
  13. package/dist/components/badge.stories.d.ts.map +1 -0
  14. package/dist/components/button.d.ts +12 -0
  15. package/dist/components/button.d.ts.map +1 -0
  16. package/dist/components/button.stories.d.ts +9 -0
  17. package/dist/components/button.stories.d.ts.map +1 -0
  18. package/dist/components/card.d.ts +14 -0
  19. package/dist/components/card.d.ts.map +1 -0
  20. package/dist/components/card.stories.d.ts +9 -0
  21. package/dist/components/card.stories.d.ts.map +1 -0
  22. package/dist/components/celebrate.d.ts +14 -0
  23. package/dist/components/celebrate.d.ts.map +1 -0
  24. package/dist/components/chat/channel-list.d.ts +35 -0
  25. package/dist/components/chat/channel-list.d.ts.map +1 -0
  26. package/dist/components/chat/channel-list.stories.d.ts +14 -0
  27. package/dist/components/chat/channel-list.stories.d.ts.map +1 -0
  28. package/dist/components/chat/chat-avatar.d.ts +13 -0
  29. package/dist/components/chat/chat-avatar.d.ts.map +1 -0
  30. package/dist/components/chat/chat-avatar.stories.d.ts +10 -0
  31. package/dist/components/chat/chat-avatar.stories.d.ts.map +1 -0
  32. package/dist/components/chat/chat-column.d.ts +8 -0
  33. package/dist/components/chat/chat-column.d.ts.map +1 -0
  34. package/dist/components/chat/chat-column.stories.d.ts +8 -0
  35. package/dist/components/chat/chat-column.stories.d.ts.map +1 -0
  36. package/dist/components/chat/chat-composer.d.ts +22 -0
  37. package/dist/components/chat/chat-composer.d.ts.map +1 -0
  38. package/dist/components/chat/chat-composer.stories.d.ts +17 -0
  39. package/dist/components/chat/chat-composer.stories.d.ts.map +1 -0
  40. package/dist/components/chat/chat.fixtures.d.ts +29 -0
  41. package/dist/components/chat/chat.fixtures.d.ts.map +1 -0
  42. package/dist/components/chat/floating-chat.d.ts +71 -0
  43. package/dist/components/chat/floating-chat.d.ts.map +1 -0
  44. package/dist/components/chat/floating-chat.stories.d.ts +18 -0
  45. package/dist/components/chat/floating-chat.stories.d.ts.map +1 -0
  46. package/dist/components/chat/floating-sheet.d.ts +83 -0
  47. package/dist/components/chat/floating-sheet.d.ts.map +1 -0
  48. package/dist/components/chat/floating-sheet.stories.d.ts +23 -0
  49. package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -0
  50. package/dist/components/chat/member-list.d.ts +21 -0
  51. package/dist/components/chat/member-list.d.ts.map +1 -0
  52. package/dist/components/chat/message-list.d.ts +34 -0
  53. package/dist/components/chat/message-list.d.ts.map +1 -0
  54. package/dist/components/chat/message.d.ts +47 -0
  55. package/dist/components/chat/message.d.ts.map +1 -0
  56. package/dist/components/chat/message.stories.d.ts +31 -0
  57. package/dist/components/chat/message.stories.d.ts.map +1 -0
  58. package/dist/components/chat/progress-stepper.d.ts +30 -0
  59. package/dist/components/chat/progress-stepper.d.ts.map +1 -0
  60. package/dist/components/chat/rich-text.d.ts +8 -0
  61. package/dist/components/chat/rich-text.d.ts.map +1 -0
  62. package/dist/components/chat/rich-text.stories.d.ts +10 -0
  63. package/dist/components/chat/rich-text.stories.d.ts.map +1 -0
  64. package/dist/components/chat/server-header.d.ts +10 -0
  65. package/dist/components/chat/server-header.d.ts.map +1 -0
  66. package/dist/components/chat/thread-preview.d.ts +25 -0
  67. package/dist/components/chat/thread-preview.d.ts.map +1 -0
  68. package/dist/components/chat/thread-preview.stories.d.ts +19 -0
  69. package/dist/components/chat/thread-preview.stories.d.ts.map +1 -0
  70. package/dist/components/chat/user-panel.d.ts +16 -0
  71. package/dist/components/chat/user-panel.d.ts.map +1 -0
  72. package/dist/components/chat/workspace-rail.d.ts +56 -0
  73. package/dist/components/chat/workspace-rail.d.ts.map +1 -0
  74. package/dist/components/chat/workspace-rail.stories.d.ts +13 -0
  75. package/dist/components/chat/workspace-rail.stories.d.ts.map +1 -0
  76. package/dist/components/checkbox.d.ts +13 -0
  77. package/dist/components/checkbox.d.ts.map +1 -0
  78. package/dist/components/checkbox.stories.d.ts +11 -0
  79. package/dist/components/checkbox.stories.d.ts.map +1 -0
  80. package/dist/components/combobox.d.ts +20 -0
  81. package/dist/components/combobox.d.ts.map +1 -0
  82. package/dist/components/combobox.stories.d.ts +10 -0
  83. package/dist/components/combobox.stories.d.ts.map +1 -0
  84. package/dist/components/credenza.d.ts +1 -1
  85. package/dist/components/credenza.d.ts.map +1 -1
  86. package/dist/components/credenza.stories.d.ts +1 -1
  87. package/dist/components/dialog.d.ts +40 -0
  88. package/dist/components/dialog.d.ts.map +1 -0
  89. package/dist/components/dialog.stories.d.ts +12 -0
  90. package/dist/components/dialog.stories.d.ts.map +1 -0
  91. package/dist/components/disclosure.d.ts +23 -0
  92. package/dist/components/disclosure.d.ts.map +1 -0
  93. package/dist/components/disclosure.stories.d.ts +10 -0
  94. package/dist/components/disclosure.stories.d.ts.map +1 -0
  95. package/dist/components/dropdown-menu.d.ts +33 -0
  96. package/dist/components/dropdown-menu.d.ts.map +1 -0
  97. package/dist/components/dropdown-menu.stories.d.ts +11 -0
  98. package/dist/components/dropdown-menu.stories.d.ts.map +1 -0
  99. package/dist/components/edge-drawer.d.ts +17 -0
  100. package/dist/components/edge-drawer.d.ts.map +1 -0
  101. package/dist/components/edge-drawer.stories.d.ts +8 -0
  102. package/dist/components/edge-drawer.stories.d.ts.map +1 -0
  103. package/dist/components/edit-bar.d.ts +1 -1
  104. package/dist/components/edit-bar.d.ts.map +1 -1
  105. package/dist/components/edit-bar.stories.d.ts +1 -1
  106. package/dist/components/form.d.ts +9 -0
  107. package/dist/components/form.d.ts.map +1 -0
  108. package/dist/components/form.stories.d.ts +9 -0
  109. package/dist/components/form.stories.d.ts.map +1 -0
  110. package/dist/components/haptic-indicator.d.ts +4 -2
  111. package/dist/components/haptic-indicator.d.ts.map +1 -1
  112. package/dist/components/haptic-indicator.stories.d.ts +1 -1
  113. package/dist/components/icon-swap.d.ts +27 -0
  114. package/dist/components/icon-swap.d.ts.map +1 -0
  115. package/dist/components/index-bar.d.ts +12 -2
  116. package/dist/components/index-bar.d.ts.map +1 -1
  117. package/dist/components/index-bar.stories.d.ts +5 -1
  118. package/dist/components/index-bar.stories.d.ts.map +1 -1
  119. package/dist/components/input.d.ts +9 -0
  120. package/dist/components/input.d.ts.map +1 -0
  121. package/dist/components/input.stories.d.ts +10 -0
  122. package/dist/components/input.stories.d.ts.map +1 -0
  123. package/dist/components/kbd.d.ts +5 -0
  124. package/dist/components/kbd.d.ts.map +1 -0
  125. package/dist/components/kbd.stories.d.ts +9 -0
  126. package/dist/components/kbd.stories.d.ts.map +1 -0
  127. package/dist/components/label.d.ts +9 -0
  128. package/dist/components/label.d.ts.map +1 -0
  129. package/dist/components/label.stories.d.ts +8 -0
  130. package/dist/components/label.stories.d.ts.map +1 -0
  131. package/dist/components/list-box.d.ts +30 -0
  132. package/dist/components/list-box.d.ts.map +1 -0
  133. package/dist/components/list-box.stories.d.ts +9 -0
  134. package/dist/components/list-box.stories.d.ts.map +1 -0
  135. package/dist/components/list-row.stories.d.ts +1 -1
  136. package/dist/components/list.d.ts +1 -1
  137. package/dist/components/list.d.ts.map +1 -1
  138. package/dist/components/list.stories.d.ts +1 -1
  139. package/dist/components/markdown-editor.d.ts +97 -0
  140. package/dist/components/markdown-editor.d.ts.map +1 -0
  141. package/dist/components/markdown-editor.stories.d.ts +14 -0
  142. package/dist/components/markdown-editor.stories.d.ts.map +1 -0
  143. package/dist/components/measure-h.d.ts +1 -1
  144. package/dist/components/motion.stories.d.ts +15 -0
  145. package/dist/components/motion.stories.d.ts.map +1 -0
  146. package/dist/components/navigation-stack.d.ts +2 -2
  147. package/dist/components/navigation-stack.d.ts.map +1 -1
  148. package/dist/components/navigation-stack.stories.d.ts +1 -1
  149. package/dist/components/number-morph.d.ts +11 -0
  150. package/dist/components/number-morph.d.ts.map +1 -0
  151. package/dist/components/pencilkit/pencil-canvas.d.ts +24 -0
  152. package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -0
  153. package/dist/components/pencilkit/pencil-canvas.stories.d.ts +18 -0
  154. package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -0
  155. package/dist/components/pencilkit/pencil-toolbar.d.ts +57 -0
  156. package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -0
  157. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +10 -0
  158. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -0
  159. package/dist/components/pencilkit/pencilkit-annotator.d.ts +8 -0
  160. package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -0
  161. package/dist/components/pencilkit/pk-icon.d.ts +8 -0
  162. package/dist/components/pencilkit/pk-icon.d.ts.map +1 -0
  163. package/dist/components/pencilkit/stroke-path.d.ts +11 -0
  164. package/dist/components/pencilkit/stroke-path.d.ts.map +1 -0
  165. package/dist/components/pencilkit/use-pencil-history.d.ts +15 -0
  166. package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -0
  167. package/dist/components/pill-button.d.ts +2 -2
  168. package/dist/components/pill-button.d.ts.map +1 -1
  169. package/dist/components/pill-button.stories.d.ts +1 -1
  170. package/dist/components/popover.d.ts +15 -0
  171. package/dist/components/popover.d.ts.map +1 -0
  172. package/dist/components/popover.stories.d.ts +9 -0
  173. package/dist/components/popover.stories.d.ts.map +1 -0
  174. package/dist/components/progress.d.ts +16 -0
  175. package/dist/components/progress.d.ts.map +1 -0
  176. package/dist/components/progress.stories.d.ts +10 -0
  177. package/dist/components/progress.stories.d.ts.map +1 -0
  178. package/dist/components/qr-svg.d.ts +1 -1
  179. package/dist/components/qr-svg.stories.d.ts +1 -1
  180. package/dist/components/radio-group.d.ts +13 -0
  181. package/dist/components/radio-group.d.ts.map +1 -0
  182. package/dist/components/radio-group.stories.d.ts +10 -0
  183. package/dist/components/radio-group.stories.d.ts.map +1 -0
  184. package/dist/components/scroll-area.d.ts +9 -0
  185. package/dist/components/scroll-area.d.ts.map +1 -0
  186. package/dist/components/scroll-area.stories.d.ts +8 -0
  187. package/dist/components/scroll-area.stories.d.ts.map +1 -0
  188. package/dist/components/search-field.d.ts +2 -1
  189. package/dist/components/search-field.d.ts.map +1 -1
  190. package/dist/components/search-field.stories.d.ts +1 -1
  191. package/dist/components/segmented.d.ts +6 -2
  192. package/dist/components/segmented.d.ts.map +1 -1
  193. package/dist/components/segmented.stories.d.ts +1 -1
  194. package/dist/components/select.d.ts +26 -0
  195. package/dist/components/select.d.ts.map +1 -0
  196. package/dist/components/select.stories.d.ts +12 -0
  197. package/dist/components/select.stories.d.ts.map +1 -0
  198. package/dist/components/separator.d.ts +10 -0
  199. package/dist/components/separator.d.ts.map +1 -0
  200. package/dist/components/separator.stories.d.ts +9 -0
  201. package/dist/components/separator.stories.d.ts.map +1 -0
  202. package/dist/components/sheet.d.ts +29 -0
  203. package/dist/components/sheet.d.ts.map +1 -0
  204. package/dist/components/sheet.stories.d.ts +12 -0
  205. package/dist/components/sheet.stories.d.ts.map +1 -0
  206. package/dist/components/side-drawer.d.ts +1 -1
  207. package/dist/components/side-drawer.d.ts.map +1 -1
  208. package/dist/components/side-drawer.stories.d.ts +1 -1
  209. package/dist/components/sidebar.d.ts +86 -0
  210. package/dist/components/sidebar.d.ts.map +1 -0
  211. package/dist/components/sidebar.stories.d.ts +10 -0
  212. package/dist/components/sidebar.stories.d.ts.map +1 -0
  213. package/dist/components/skeleton.d.ts +9 -0
  214. package/dist/components/skeleton.d.ts.map +1 -0
  215. package/dist/components/skeleton.stories.d.ts +9 -0
  216. package/dist/components/skeleton.stories.d.ts.map +1 -0
  217. package/dist/components/slider.d.ts +13 -0
  218. package/dist/components/slider.d.ts.map +1 -0
  219. package/dist/components/slider.stories.d.ts +9 -0
  220. package/dist/components/slider.stories.d.ts.map +1 -0
  221. package/dist/components/spinner.d.ts +3 -1
  222. package/dist/components/spinner.d.ts.map +1 -1
  223. package/dist/components/spinner.stories.d.ts +1 -1
  224. package/dist/components/split-view.d.ts +129 -9
  225. package/dist/components/split-view.d.ts.map +1 -1
  226. package/dist/components/split-view.stories.d.ts +19 -3
  227. package/dist/components/split-view.stories.d.ts.map +1 -1
  228. package/dist/components/switch.d.ts +3 -2
  229. package/dist/components/switch.d.ts.map +1 -1
  230. package/dist/components/switch.stories.d.ts +1 -1
  231. package/dist/components/syntax-highlighting.d.ts +99 -0
  232. package/dist/components/syntax-highlighting.d.ts.map +1 -0
  233. package/dist/components/syntax-highlighting.stories.d.ts +18 -0
  234. package/dist/components/syntax-highlighting.stories.d.ts.map +1 -0
  235. package/dist/components/tab-bar.d.ts +3 -1
  236. package/dist/components/tab-bar.d.ts.map +1 -1
  237. package/dist/components/tab-bar.stories.d.ts +1 -1
  238. package/dist/components/tab-view.d.ts +93 -0
  239. package/dist/components/tab-view.d.ts.map +1 -0
  240. package/dist/components/tab-view.stories.d.ts +21 -0
  241. package/dist/components/tab-view.stories.d.ts.map +1 -0
  242. package/dist/components/tabs.d.ts +26 -0
  243. package/dist/components/tabs.d.ts.map +1 -0
  244. package/dist/components/tabs.stories.d.ts +9 -0
  245. package/dist/components/tabs.stories.d.ts.map +1 -0
  246. package/dist/components/text-field.d.ts +9 -0
  247. package/dist/components/text-field.d.ts.map +1 -0
  248. package/dist/components/text-field.stories.d.ts +9 -0
  249. package/dist/components/text-field.stories.d.ts.map +1 -0
  250. package/dist/components/text-morph.d.ts +8 -0
  251. package/dist/components/text-morph.d.ts.map +1 -0
  252. package/dist/components/textarea.d.ts +9 -0
  253. package/dist/components/textarea.d.ts.map +1 -0
  254. package/dist/components/toggle-group.d.ts +15 -0
  255. package/dist/components/toggle-group.d.ts.map +1 -0
  256. package/dist/components/toggle-group.stories.d.ts +10 -0
  257. package/dist/components/toggle-group.stories.d.ts.map +1 -0
  258. package/dist/components/toggle.d.ts +10 -0
  259. package/dist/components/toggle.d.ts.map +1 -0
  260. package/dist/components/toggle.stories.d.ts +9 -0
  261. package/dist/components/toggle.stories.d.ts.map +1 -0
  262. package/dist/components/tooltip.d.ts +10 -0
  263. package/dist/components/tooltip.d.ts.map +1 -0
  264. package/dist/components/tooltip.stories.d.ts +11 -0
  265. package/dist/components/tooltip.stories.d.ts.map +1 -0
  266. package/dist/components/workbench/annotator.d.ts +22 -0
  267. package/dist/components/workbench/annotator.d.ts.map +1 -0
  268. package/dist/components/workbench/chat.d.ts +99 -0
  269. package/dist/components/workbench/chat.d.ts.map +1 -0
  270. package/dist/components/workbench/chat.stories.d.ts +14 -0
  271. package/dist/components/workbench/chat.stories.d.ts.map +1 -0
  272. package/dist/components/workbench/composer.d.ts +358 -0
  273. package/dist/components/workbench/composer.d.ts.map +1 -0
  274. package/dist/components/workbench/composer.stories.d.ts +29 -0
  275. package/dist/components/workbench/composer.stories.d.ts.map +1 -0
  276. package/dist/components/workbench/fixtures.d.ts +38 -0
  277. package/dist/components/workbench/fixtures.d.ts.map +1 -0
  278. package/dist/components/workbench/markdown.d.ts +27 -0
  279. package/dist/components/workbench/markdown.d.ts.map +1 -0
  280. package/dist/components/workbench/message-scroller.d.ts +16 -0
  281. package/dist/components/workbench/message-scroller.d.ts.map +1 -0
  282. package/dist/components/workbench/message-scroller.stories.d.ts +10 -0
  283. package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -0
  284. package/dist/components/workbench/model-picker.d.ts +29 -0
  285. package/dist/components/workbench/model-picker.d.ts.map +1 -0
  286. package/dist/components/workbench/models.d.ts +32 -0
  287. package/dist/components/workbench/models.d.ts.map +1 -0
  288. package/dist/components/workbench/snap-sheet.d.ts +12 -0
  289. package/dist/components/workbench/snap-sheet.d.ts.map +1 -0
  290. package/dist/components/workbench/snap-sheet.stories.d.ts +9 -0
  291. package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -0
  292. package/dist/components/workbench/surfaces.d.ts +67 -0
  293. package/dist/components/workbench/surfaces.d.ts.map +1 -0
  294. package/dist/components/workbench/surfaces.stories.d.ts +16 -0
  295. package/dist/components/workbench/surfaces.stories.d.ts.map +1 -0
  296. package/dist/components/workbench/terminal.d.ts +43 -0
  297. package/dist/components/workbench/terminal.d.ts.map +1 -0
  298. package/dist/components/workbench/terminal.stories.d.ts +9 -0
  299. package/dist/components/workbench/terminal.stories.d.ts.map +1 -0
  300. package/dist/components/workbench/thread-sidebar.d.ts +100 -0
  301. package/dist/components/workbench/thread-sidebar.d.ts.map +1 -0
  302. package/dist/components/workbench/thread-sidebar.stories.d.ts +10 -0
  303. package/dist/components/workbench/thread-sidebar.stories.d.ts.map +1 -0
  304. package/dist/components/workbench/wb-popover.d.ts +11 -0
  305. package/dist/components/workbench/wb-popover.d.ts.map +1 -0
  306. package/dist/components/workbench/workbench-composer.d.ts +26 -0
  307. package/dist/components/workbench/workbench-composer.d.ts.map +1 -0
  308. package/dist/demos/delivery/delivery-tracking-demo.d.ts +40 -0
  309. package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -0
  310. package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +14 -0
  311. package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +1 -0
  312. package/dist/demos/haptics-playground.d.ts.map +1 -1
  313. package/dist/demos/haptics-playground.stories.d.ts +1 -1
  314. package/dist/demos/map-chat/geo.d.ts +46 -0
  315. package/dist/demos/map-chat/geo.d.ts.map +1 -0
  316. package/dist/demos/map-chat/map-agent.d.ts +48 -0
  317. package/dist/demos/map-chat/map-agent.d.ts.map +1 -0
  318. package/dist/demos/map-chat/map-chat-demo.d.ts +19 -0
  319. package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -0
  320. package/dist/demos/map-chat/map-chat-demo.stories.d.ts +17 -0
  321. package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +1 -0
  322. package/dist/demos/map-chat/map-icons.d.ts +44 -0
  323. package/dist/demos/map-chat/map-icons.d.ts.map +1 -0
  324. package/dist/demos/map-chat/places.d.ts +29 -0
  325. package/dist/demos/map-chat/places.d.ts.map +1 -0
  326. package/dist/demos/map-chat/tile-map.d.ts +72 -0
  327. package/dist/demos/map-chat/tile-map.d.ts.map +1 -0
  328. package/dist/demos/pencilkit/demo-strokes.d.ts +4 -0
  329. package/dist/demos/pencilkit/demo-strokes.d.ts.map +1 -0
  330. package/dist/demos/pencilkit/pencilkit-demo.d.ts +15 -0
  331. package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -0
  332. package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +11 -0
  333. package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +1 -0
  334. package/dist/demos/sidebar-demo.d.ts +9 -0
  335. package/dist/demos/sidebar-demo.d.ts.map +1 -0
  336. package/dist/demos/split-view-demos.d.ts +37 -0
  337. package/dist/demos/split-view-demos.d.ts.map +1 -0
  338. package/dist/index.css +2 -1
  339. package/dist/index.d.ts +156 -6
  340. package/dist/index.d.ts.map +1 -1
  341. package/dist/index.js +15390 -14736
  342. package/dist/lib/chat/chat-icon.d.ts +24 -0
  343. package/dist/lib/chat/chat-icon.d.ts.map +1 -0
  344. package/dist/lib/chat/chat-shell-context.d.ts +19 -0
  345. package/dist/lib/chat/chat-shell-context.d.ts.map +1 -0
  346. package/dist/lib/chat/chat-tokens.d.ts +72 -0
  347. package/dist/lib/chat/chat-tokens.d.ts.map +1 -0
  348. package/dist/lib/chat/chat-users.d.ts +18 -0
  349. package/dist/lib/chat/chat-users.d.ts.map +1 -0
  350. package/dist/lib/chat/kvib.d.ts +3 -0
  351. package/dist/lib/chat/kvib.d.ts.map +1 -0
  352. package/dist/lib/chat/persistent-host.d.ts +29 -0
  353. package/dist/lib/chat/persistent-host.d.ts.map +1 -0
  354. package/dist/lib/chat/title-ref.d.ts +3 -0
  355. package/dist/lib/chat/title-ref.d.ts.map +1 -0
  356. package/dist/lib/container.d.ts +14 -0
  357. package/dist/lib/container.d.ts.map +1 -0
  358. package/dist/lib/haptics.d.ts +0 -2
  359. package/dist/lib/haptics.d.ts.map +1 -1
  360. package/dist/lib/icon.d.ts +1 -1
  361. package/dist/lib/icon.d.ts.map +1 -1
  362. package/dist/lib/icon.stories.d.ts +1 -1
  363. package/dist/lib/motion.d.ts +74 -0
  364. package/dist/lib/motion.d.ts.map +1 -1
  365. package/dist/lib/pencilkit/constants.d.ts +33 -0
  366. package/dist/lib/pencilkit/constants.d.ts.map +1 -0
  367. package/dist/lib/primitives.d.ts +12 -0
  368. package/dist/lib/primitives.d.ts.map +1 -0
  369. package/dist/lib/sheet-drag.d.ts +38 -0
  370. package/dist/lib/sheet-drag.d.ts.map +1 -0
  371. package/dist/lib/syntax.d.ts +38 -0
  372. package/dist/lib/syntax.d.ts.map +1 -0
  373. package/dist/lib/theme.d.ts +15 -5
  374. package/dist/lib/theme.d.ts.map +1 -1
  375. package/dist/lib/utils.d.ts +2 -1
  376. package/dist/lib/utils.d.ts.map +1 -1
  377. package/dist/lib/workbench/haptics.d.ts +3 -0
  378. package/dist/lib/workbench/haptics.d.ts.map +1 -0
  379. package/dist/lib/workbench/icons.d.ts +29 -0
  380. package/dist/lib/workbench/icons.d.ts.map +1 -0
  381. package/dist/lib/workbench/motion.d.ts +83 -0
  382. package/dist/lib/workbench/motion.d.ts.map +1 -0
  383. package/dist/lib/workbench/press.d.ts +10 -0
  384. package/dist/lib/workbench/press.d.ts.map +1 -0
  385. package/dist/lib/workbench/theme.d.ts +16 -0
  386. package/dist/lib/workbench/theme.d.ts.map +1 -0
  387. package/dist/lib/workbench/util.d.ts +6 -0
  388. package/dist/lib/workbench/util.d.ts.map +1 -0
  389. package/dist/stories/frame.d.ts +1 -1
  390. package/dist/stories/primitive-frame.d.ts +20 -0
  391. package/dist/stories/primitive-frame.d.ts.map +1 -0
  392. package/dist/templates/artifact-chat-container.d.ts +63 -0
  393. package/dist/templates/artifact-chat-container.d.ts.map +1 -0
  394. package/dist/templates/artifact-chat-container.stories.d.ts +25 -0
  395. package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -0
  396. package/dist/templates/chat-shell.d.ts +86 -0
  397. package/dist/templates/chat-shell.d.ts.map +1 -0
  398. package/dist/templates/chat-shell.stories.d.ts +23 -0
  399. package/dist/templates/chat-shell.stories.d.ts.map +1 -0
  400. package/dist/templates/workbench-shell.d.ts +177 -0
  401. package/dist/templates/workbench-shell.d.ts.map +1 -0
  402. package/dist/templates/workbench-shell.stories.d.ts +18 -0
  403. package/dist/templates/workbench-shell.stories.d.ts.map +1 -0
  404. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  405. package/package.json +29 -8
@@ -0,0 +1,71 @@
1
+ import { type CSSProperties, type ReactNode, type RefObject } from 'react';
2
+ import type { FloatingSheetAppearance, FloatingSheetFabPosition, FloatingSheetTone } from './floating-sheet';
3
+ export type FloatingChatFabPosition = FloatingSheetFabPosition;
4
+ export interface FloatingChatContextValue {
5
+ /** Whether the full transcript is revealed. */
6
+ open: boolean;
7
+ setOpen: (open: boolean) => void;
8
+ /** 0 when only the composer floats, 1 when the transcript has grown to the top of the host. */
9
+ progress: number;
10
+ /** Whether the real composer is showing rather than the tappable working status. */
11
+ composing: boolean;
12
+ setComposing: (composing: boolean) => void;
13
+ /** Whether the chat has been folded into its FAB. */
14
+ minimized: boolean;
15
+ setMinimized: (minimized: boolean) => void;
16
+ }
17
+ export declare function useFloatingChat(): FloatingChatContextValue;
18
+ export interface FloatingChatProps {
19
+ /** Controlled state for the revealed full chat. */
20
+ open?: boolean;
21
+ defaultOpen?: boolean;
22
+ onOpenChange?: (open: boolean) => void;
23
+ /** Collapses the composer card into a tappable working status. */
24
+ working?: boolean;
25
+ workingLabel?: ReactNode;
26
+ /** Called when the working status is tapped before the composer is revealed. */
27
+ onAdd?: () => void;
28
+ /** Controlled composer visibility while `working`; defaults to hiding the composer whenever work starts. */
29
+ composing?: boolean;
30
+ onComposingChange?: (composing: boolean) => void;
31
+ /** Follow NavigationStack/List scroll chrome, like TabBar. */
32
+ hideOnScroll?: boolean;
33
+ /** A scroller whose direction also hides and restores the floating composer. */
34
+ scrollRef?: RefObject<HTMLElement | null>;
35
+ /** Resting position after the chat is dragged down into its FAB. */
36
+ fabPosition?: FloatingChatFabPosition;
37
+ /** Inset of the floating composer from the host edges. */
38
+ gutter?: number;
39
+ /**
40
+ * Height of transcript kept visible above the composer while the chat is closed, so the
41
+ * newest reply peeks out (maps, dashboards). `0` shows the composer alone.
42
+ */
43
+ peek?: number;
44
+ /** Glass over the host, or opaque cards. */
45
+ appearance?: FloatingSheetAppearance;
46
+ /**
47
+ * Colour scheme of the surfaces. Defaults to the ambient `AppearanceProvider` value, else `auto`
48
+ * (inherit the host's tokens).
49
+ */
50
+ tone?: FloatingSheetTone;
51
+ /** Accessible name for the revealed transcript region. */
52
+ label?: string;
53
+ children?: ReactNode;
54
+ className?: string;
55
+ style?: CSSProperties;
56
+ }
57
+ /**
58
+ * The floating chat: the host's Workbench `Composer` floats over any positioned host, and the transcript
59
+ * hangs off a draggable top bump of that composer (added through a `ComposerOutlet`, so the composer itself
60
+ * is whatever the host composed). Drag the bump's handle up and the transcript grows to the top of the host
61
+ * over a scrim; release snaps open or closed; Escape or the scrim closes it. Drag it down past rest to fold
62
+ * everything into a FAB.
63
+ */
64
+ export declare function FloatingChat({ open: controlledOpen, defaultOpen, onOpenChange, working, workingLabel, onAdd, composing: controlledComposing, onComposingChange, hideOnScroll, scrollRef, fabPosition, gutter, peek, appearance, tone: toneProp, label, children, className, style, }: FloatingChatProps): import("react/jsx-runtime").JSX.Element;
65
+ export declare namespace FloatingChat {
66
+ var Chat: import("../..").SlotComponent;
67
+ var Composer: import("../..").SlotComponent;
68
+ var Context: import("react").Context<FloatingChatContextValue | null>;
69
+ var useFloatingChat: typeof import("./floating-chat").useFloatingChat;
70
+ }
71
+ //# sourceMappingURL=floating-chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floating-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-chat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG7G,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,+CAA+C;IAC/C,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,+FAA+F;IAC/F,QAAQ,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAID,wBAAgB,eAAe,IAAI,wBAAwB,CAM1D;AAED,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,4GAA4G;IAC5G,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,8DAA8D;IAC9D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gFAAgF;IAChF,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,oEAAoE;IACpE,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC;;;OAGG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAuCD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EAAE,cAAc,EACpB,WAAmB,EACnB,YAAY,EACZ,OAAe,EACf,YAAyB,EACzB,KAAK,EACL,SAAS,EAAE,mBAAmB,EAC9B,iBAAiB,EACjB,YAAmB,EACnB,SAAS,EACT,WAA6B,EAC7B,MAAW,EACX,IAAQ,EACR,UAAoB,EACpB,IAAI,EAAE,QAAQ,EACd,KAAmB,EACnB,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,iBAAiB,2CAgOnB;yBApPe,YAAY"}
@@ -0,0 +1,18 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import '../../styles.css';
3
+ import { type FloatingChatFabPosition } from './floating-chat';
4
+ interface Args {
5
+ width: number;
6
+ height: number;
7
+ peek: number;
8
+ working: boolean;
9
+ fabPosition: FloatingChatFabPosition;
10
+ tone: 'auto' | 'dark' | 'light';
11
+ }
12
+ declare const meta: Meta<Args>;
13
+ export default meta;
14
+ type Story = StoryObj<Args>;
15
+ export declare const OverScrollingPage: Story;
16
+ export declare const Peeking: Story;
17
+ export declare const Working: Story;
18
+ //# sourceMappingURL=floating-chat.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floating-chat.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-chat.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAgB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAqB7E,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,uBAAuB,CAAC;IACrC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACjC;AA8CD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAmBpB,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE5B,eAAO,MAAM,iBAAiB,EAAE,KAAU,CAAC;AAC3C,eAAO,MAAM,OAAO,EAAE,KAA+B,CAAC;AACtD,eAAO,MAAM,OAAO,EAAE,KAAmC,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { type CSSProperties, type ReactNode, type RefObject } from 'react';
2
+ export type FloatingSheetFabPosition = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
3
+ /** Translucent glass over dark content, or an opaque card like a system sheet. */
4
+ export type FloatingSheetAppearance = 'glass' | 'sheet';
5
+ /** Colour scheme of the surface; `auto` inherits the host's `--bl-*` tokens. */
6
+ export type FloatingSheetTone = 'auto' | 'dark' | 'light';
7
+ export interface FloatingSheetContextValue {
8
+ /** Whether the sheet has grown to its full height. */
9
+ open: boolean;
10
+ setOpen: (open: boolean) => void;
11
+ /** 0 at rest (foot plus peek), 1 when the surface fills the host. */
12
+ progress: number;
13
+ /** Height of body visible while closed. */
14
+ peek: number;
15
+ /** Whether the surface has been folded into its FAB. */
16
+ minimized: boolean;
17
+ setMinimized: (minimized: boolean) => void;
18
+ }
19
+ export declare function useFloatingSheet(): FloatingSheetContextValue;
20
+ export interface FloatingSheetProps {
21
+ /** Controlled state for the fully grown sheet. */
22
+ open?: boolean;
23
+ defaultOpen?: boolean;
24
+ onOpenChange?: (open: boolean) => void;
25
+ /**
26
+ * Height of body kept visible above the foot while closed, so a summary (the newest chat
27
+ * reply, an order status) peeks out. `0` rests on the foot alone.
28
+ */
29
+ peek?: number;
30
+ /** Inset from the host edges while closed. `0` docks the sheet edge to edge like a system sheet. */
31
+ gutter?: number;
32
+ /** Corner radius while closed. Grows square as the sheet fills the host. */
33
+ radius?: number;
34
+ appearance?: FloatingSheetAppearance;
35
+ /**
36
+ * Colour scheme of the surface. Defaults to the ambient `AppearanceProvider` value, else `auto`
37
+ * (inherit the host's --bl-* tokens).
38
+ */
39
+ tone?: FloatingSheetTone;
40
+ /**
41
+ * Which edge of the body the visible window is anchored to. `end` pins the body to the
42
+ * foot so a transcript grows upward out of the cap; `start` keeps a card's header under
43
+ * the cap and lets the rest emerge below as the sheet grows.
44
+ */
45
+ bodyAlign?: 'start' | 'end';
46
+ /**
47
+ * Extra resting heights between the peek and full, as fractions (0–1) of the fully grown body — e.g.
48
+ * `[0.5]` for a half-height detent. A drag releases to whichever stop its velocity carries it nearest.
49
+ */
50
+ detents?: number[];
51
+ /** Allow dragging below the resting height to fold the sheet into a FAB. */
52
+ minimizable?: boolean;
53
+ /** Resting position of the FAB. */
54
+ fabPosition?: FloatingSheetFabPosition;
55
+ /** Icon shown in the FAB; falls back to the `Fab` slot. */
56
+ fabIcon?: ReactNode;
57
+ /** Follow NavigationStack/List scroll chrome, like TabBar. */
58
+ hideOnScroll?: boolean;
59
+ /** A scroller whose direction also hides and restores the surface while it is resting. */
60
+ scrollRef?: RefObject<HTMLElement | null>;
61
+ /** Dim the host behind the sheet as it grows. */
62
+ scrim?: boolean;
63
+ /** Accessible name for the body region. */
64
+ label?: string;
65
+ children?: ReactNode;
66
+ className?: string;
67
+ style?: CSSProperties;
68
+ }
69
+ /**
70
+ * A floating surface that fills its positioned host as a pointer-transparent layer and
71
+ * grows from a resting card into the full page. Drag the cap up to grow it, down past the
72
+ * resting height to fold it into a FAB. The `Body` slot is the growing region and the `Foot`
73
+ * slot stays pinned at the bottom (a composer, actions, nothing at all).
74
+ */
75
+ export declare function FloatingSheet({ open: controlledOpen, defaultOpen, onOpenChange, peek: requestedPeek, gutter, radius, appearance, tone: toneProp, bodyAlign, detents, minimizable, fabPosition, fabIcon, hideOnScroll, scrollRef, scrim, label, children, className, style, }: FloatingSheetProps): import("react/jsx-runtime").JSX.Element;
76
+ export declare namespace FloatingSheet {
77
+ var Body: import("../..").SlotComponent;
78
+ var Foot: import("../..").SlotComponent;
79
+ var Fab: import("../..").SlotComponent;
80
+ var Context: import("react").Context<FloatingSheetContextValue | null>;
81
+ var useFloatingSheet: typeof import("./floating-sheet").useFloatingSheet;
82
+ }
83
+ //# sourceMappingURL=floating-sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floating-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AASf,MAAM,MAAM,wBAAwB,GAChC,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,cAAc,GACd,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB,kFAAkF;AAClF,MAAM,MAAM,uBAAuB,GAAG,OAA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,0FAA0F;IAC1F,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,iDAAiD;IACjD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EAAE,cAAc,EACpB,WAAmB,EACnB,YAAY,EACZ,IAAI,EAAE,aAAiB,EACvB,MAAW,EACX,MAAW,EACX,UAAoB,EACpB,IAAI,EAAE,QAAQ,EACd,SAAmB,EACnB,OAAO,EACP,WAAkB,EAClB,WAA6B,EAC7B,OAAO,EACP,YAAmB,EACnB,SAAS,EACT,KAAY,EACZ,KAAe,EACf,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,2CAmSpB;yBAxTe,aAAa"}
@@ -0,0 +1,23 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { type FloatingSheetAppearance, type FloatingSheetTone } from './floating-sheet';
3
+ import '../../styles.css';
4
+ interface Args {
5
+ width: number;
6
+ height: number;
7
+ appearance: FloatingSheetAppearance;
8
+ tone: FloatingSheetTone;
9
+ gutter: number;
10
+ peek: number;
11
+ minimizable: boolean;
12
+ bodyAlign: 'start' | 'end';
13
+ withFoot: boolean;
14
+ defaultOpen: boolean;
15
+ }
16
+ declare const meta: Meta<Args>;
17
+ export default meta;
18
+ type Story = StoryObj<Args>;
19
+ export declare const Glass: Story;
20
+ export declare const GlassPeeking: Story;
21
+ export declare const DockedSheet: Story;
22
+ export declare const Open: Story;
23
+ //# sourceMappingURL=floating-sheet.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floating-sheet.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-sheet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAiB,KAAK,uBAAuB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGvG,OAAO,kBAAkB,CAAC;AAE1B,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,uBAAuB,CAAC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,GAAG,KAAK,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;CACtB;AAyED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CA4BpB,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE5B,eAAO,MAAM,KAAK,EAAE,KAAU,CAAC;AAC/B,eAAO,MAAM,YAAY,EAAE,KAA+B,CAAC;AAC3D,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AACF,eAAO,MAAM,IAAI,EAAE,KAAuC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import type { ChatPresence } from './user-panel';
3
+ import type { ChatUser } from '../../lib/chat/chat-users';
4
+ export declare function MemberList({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
+ export interface MemberGroupProps extends ComponentProps<'div'> {
6
+ label: ReactNode;
7
+ /** shown after the label: "Team — 5" */
8
+ count?: number;
9
+ }
10
+ export declare function MemberGroup({ label, count, className, children, ...props }: MemberGroupProps): import("react/jsx-runtime").JSX.Element;
11
+ export interface MemberItemProps extends Omit<ComponentProps<'div'>, 'children'> {
12
+ user: ChatUser;
13
+ /** presence dot on the avatar; `offline` also dims the row */
14
+ status?: ChatPresence;
15
+ /** a tag after the name; bots default to "APP" (pass null for none) */
16
+ badge?: ReactNode;
17
+ /** replaces the name */
18
+ children?: ReactNode;
19
+ }
20
+ export declare function MemberItem({ user, status, badge, className, style, children, ...props }: MemberItemProps): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=member-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member-list.d.ts","sourceRoot":"","sources":["../../../src/components/chat/member-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAW1D,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAExE;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7D,KAAK,EAAE,SAAS,CAAC;IACjB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAU5F;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC9E,IAAI,EAAE,QAAQ,CAAC;IACf,8DAA8D;IAC9D,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,uEAAuE;IACvE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAoBxG"}
@@ -0,0 +1,34 @@
1
+ import { type ComponentProps, type ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ export interface MessageListProps extends ComponentProps<'div'> {
4
+ /** keep the list pinned to the newest message while the reader is at the bottom (default true) */
5
+ autoScroll?: boolean;
6
+ /** changing it (switching channels) snaps back to the bottom */
7
+ scrollKey?: string | number;
8
+ }
9
+ /** The scrolling transcript (a `log` region). Pinned to the bottom until the reader scrolls up. */
10
+ export declare function MessageList({ autoScroll, scrollKey, className, onScroll, ref, ...props }: MessageListProps): import("react/jsx-runtime").JSX.Element;
11
+ /** Consecutive messages from one author (the first a full Message, the rest `variant="continued"`). The rows
12
+ * sit on an even 2px rhythm inside the group's padding. */
13
+ export declare function MessageGroup({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
14
+ export interface ChannelIntroProps extends Omit<ComponentProps<'div'>, 'title'> {
15
+ title: ReactNode;
16
+ /** the tile glyph; a # by default */
17
+ icon?: ReactNode;
18
+ }
19
+ /** "Welcome to #channel" at the top of a transcript. */
20
+ export declare function ChannelIntro({ title, icon, className, children, ...props }: ChannelIntroProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare const messageDividerVariants: (props?: ({
22
+ variant?: "date" | "subtle" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
+ export interface MessageDividerProps extends ComponentProps<'div'>, VariantProps<typeof messageDividerVariants> {
25
+ }
26
+ /** A labelled rule across the transcript. */
27
+ export declare function MessageDivider({ variant, className, children, ...props }: MessageDividerProps): import("react/jsx-runtime").JSX.Element;
28
+ /** `MessageDivider variant="date"`. */
29
+ export declare function DateDivider(props: Omit<MessageDividerProps, 'variant'>): import("react/jsx-runtime").JSX.Element;
30
+ /** Placeholder text for an empty transcript or thread. */
31
+ export declare function MessageListEmpty({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
32
+ /** "Stitch is typing…" with three dots taking turns. */
33
+ export declare function TypingIndicator({ className, children, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
34
+ //# sourceMappingURL=message-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-list.d.ts","sourceRoot":"","sources":["../../../src/components/chat/message-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,cAAc,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC/F,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAYlE,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7D,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,EAAE,UAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CA6BjH;AAOD;4DAC4D;AAC5D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE1E;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAC7E,KAAK,EAAE,SAAS,CAAC;IACjB,qCAAqC;IACrC,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAU7F;AAED,eAAO,MAAM,sBAAsB;;8EAUjC,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,sBAAsB,CAAC;CAAG;AAElH,6CAA6C;AAC7C,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAQ7F;AAED,uCAAuC;AACvC,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,2CAEtE;AAED,0DAA0D;AAC1D,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE9E;AAED,wDAAwD;AACxD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAuBvF"}
@@ -0,0 +1,47 @@
1
+ import { type ComponentProps, type CSSProperties, type ReactNode } from 'react';
2
+ import { Button, ToggleButton } from 'react-aria-components';
3
+ import { type VariantProps } from 'class-variance-authority';
4
+ import type { ChatUser } from '../../lib/chat/chat-users';
5
+ export declare const messageVariants: (props?: ({
6
+ variant?: "default" | "continued" | null | undefined;
7
+ appear?: boolean | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export interface MessageProps extends ComponentProps<'div'>, VariantProps<typeof messageVariants> {
10
+ /** the author, read by MessageAvatar and MessageAuthor */
11
+ user?: ChatUser;
12
+ }
13
+ export declare function Message({ user, variant, appear, className, style, ...props }: MessageProps): import("react/jsx-runtime").JSX.Element;
14
+ export interface MessageAvatarProps {
15
+ user?: ChatUser;
16
+ size?: number;
17
+ className?: string;
18
+ style?: CSSProperties;
19
+ }
20
+ /** The author's avatar (bots get a rounded square). In a continued row it keeps the gutter empty. */
21
+ export declare function MessageAvatar({ user: userProp, size, className, style }: MessageAvatarProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function MessageBody({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
23
+ export declare function MessageHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
24
+ /** The author's name in their role color; defaults to the row's user. */
25
+ export declare function MessageAuthor({ className, children, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
26
+ /** A small tag after the name ("APP", "BOT", "MOD"). */
27
+ export declare function MessageBadge({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
28
+ export declare function MessageTimestamp({ className, ...props }: ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
29
+ /** The message text. A string child is rendered as RichText (so @mentions become chips). */
30
+ export declare function MessageContent({ className, children, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
31
+ export declare function MessageReactions({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
32
+ export interface MessageReactionProps extends Omit<ComponentProps<typeof ToggleButton>, 'children' | 'isSelected'> {
33
+ emoji: ReactNode;
34
+ count: number;
35
+ /** your own reaction: tinted outline */
36
+ mine?: boolean;
37
+ }
38
+ /** A reaction pill; a toggle (react-aria ToggleButton) that is on when it's yours. */
39
+ export declare function MessageReaction({ emoji, count, mine, className, onChange, ...props }: MessageReactionProps): import("react/jsx-runtime").JSX.Element;
40
+ /** The floating action bar on the row's top-right corner: shown on hover and on keyboard focus. */
41
+ export declare function MessageActions({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
42
+ export interface MessageActionProps extends ComponentProps<typeof Button> {
43
+ /** accessible name and tooltip */
44
+ label: string;
45
+ }
46
+ export declare function MessageAction({ label, className, onPress, ...props }: MessageActionProps): import("react/jsx-runtime").JSX.Element;
47
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/components/chat/message.tsx"],"names":[],"mappings":"AAAA,O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 import '../../styles.css';
4
+ interface Reaction {
5
+ emoji: string;
6
+ count: number;
7
+ mine: boolean;
8
+ }
9
+ interface Args {
10
+ user: keyof typeof USERS & string;
11
+ time: string;
12
+ text: string;
13
+ reactions: Reaction[];
14
+ thread?: {
15
+ title: string;
16
+ replies: {
17
+ user: string;
18
+ text: string;
19
+ }[];
20
+ };
21
+ }
22
+ declare const meta: Meta<Args>;
23
+ export default meta;
24
+ type Story = StoryObj<Args>;
25
+ export declare const Default: Story;
26
+ export declare const WithReactions: Story;
27
+ export declare const WithThreadPreview: Story;
28
+ export declare const BotWithAppBadge: Story;
29
+ /** A MessageGroup: the first row full, follow-ups `variant="continued"` (no avatar or header). */
30
+ export declare const Grouped: Story;
31
+ //# sourceMappingURL=message.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/message.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAoB5D,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,kBAAkB,CAAC;AAE1B,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;AACD,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,OAAO,KAAK,GAAG,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;CACvE;AA+CD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CA8BpB,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE5B,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAa/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAE7B,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,OAAO,EAAE,KA2BrB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ export interface ProgressStep {
3
+ id: string;
4
+ /** Shown under the icon when `labels` is on; always used as the accessible name. */
5
+ label: string;
6
+ icon?: ReactNode;
7
+ }
8
+ export type ProgressStepState = 'done' | 'active' | 'todo';
9
+ export interface ProgressStepperProps {
10
+ steps: ProgressStep[];
11
+ /** Index of the step in progress. Everything before it is done, everything after is to do. */
12
+ current: number;
13
+ /** `bars` draws a segment under each icon that fills as it completes; `line` joins the icons. */
14
+ variant?: 'bars' | 'line';
15
+ /** Whether the active segment shimmers while it waits. */
16
+ animated?: boolean;
17
+ labels?: boolean;
18
+ className?: string;
19
+ style?: CSSProperties;
20
+ }
21
+ export declare const progressStepperVariants: (props?: ({
22
+ variant?: "line" | "bars" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
+ /**
25
+ * A row of milestones for a multi-step process (an order, a checkout, a deploy). Each step
26
+ * exposes `data-state="done|active|todo"` so hosts can restyle any of the three, and the
27
+ * accent follows `--ck-stepper-accent` (defaults to the host tint).
28
+ */
29
+ export declare function ProgressStepper({ steps, current, variant, animated, labels, className, style, }: ProgressStepperProps): import("react/jsx-runtime").JSX.Element;
30
+ //# sourceMappingURL=progress-stepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-stepper.d.ts","sourceRoot":"","sources":["../../../src/components/chat/progress-stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,eAAO,MAAM,uBAAuB;;8EAGnC,CAAC;AAqBF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,OAAO,EACP,OAAgB,EAChB,QAAe,EACf,MAAc,EACd,SAAS,EACT,KAAK,GACN,EAAE,oBAAoB,2CAyDtB"}
@@ -0,0 +1,8 @@
1
+ import { type ChatUsers } from '../../lib/chat/chat-users';
2
+ export interface RichTextProps {
3
+ text: string;
4
+ /** overrides the ChatUsersProvider context */
5
+ users?: ChatUsers;
6
+ }
7
+ export declare function RichText({ text, users }: RichTextProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=rich-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../src/components/chat/rich-text.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,aAAa,2CAsBtD"}
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { RichText } from './rich-text';
3
+ import '../../styles.css';
4
+ declare const meta: Meta<typeof RichText>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof RichText>;
7
+ export declare const Plain: Story;
8
+ export declare const WithMentions: Story;
9
+ export declare const UnknownMention: Story;
10
+ //# sourceMappingURL=rich-text.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/rich-text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,kBAAkB,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAsB/B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ export interface ServerHeaderProps extends ComponentProps<'div'> {
3
+ /** trailing control; defaults to a close button inside a compact ChatShell, else a disclosure chevron */
4
+ action?: ReactNode;
5
+ /** closes the navigation; inside a compact ChatShell it defaults to closing the drawer */
6
+ onClose?: () => void;
7
+ }
8
+ /** The server / workspace name at the top of the channel sidebar. */
9
+ export declare function ServerHeader({ action, onClose, className, children, ...props }: ServerHeaderProps): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=server-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-header.d.ts","sourceRoot":"","sources":["../../../src/components/chat/server-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvD,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC9D,yGAAyG;IACzG,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,qEAAqE;AACrE,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAuBjG"}
@@ -0,0 +1,25 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import { Button } from 'react-aria-components';
3
+ import type { ChatUser } from '../../lib/chat/chat-users';
4
+ export interface ThreadPreviewProps extends Omit<ComponentProps<typeof Button>, 'children'> {
5
+ title: ReactNode;
6
+ /** number of replies */
7
+ count: number;
8
+ /** the latest reply (a ThreadPreviewReply) */
9
+ children?: ReactNode;
10
+ }
11
+ export declare function ThreadPreview({ title, count, className, children, onPress, ...props }: ThreadPreviewProps): import("react/jsx-runtime").JSX.Element;
12
+ export interface ThreadPreviewReplyProps {
13
+ user: ChatUser;
14
+ children?: ReactNode;
15
+ className?: string;
16
+ }
17
+ export declare function ThreadPreviewReply({ user, children, className }: ThreadPreviewReplyProps): import("react/jsx-runtime").JSX.Element;
18
+ export interface ThreadHeaderProps extends Omit<ComponentProps<'div'>, 'title'> {
19
+ title: ReactNode;
20
+ /** a line under the title ("Started by Ada in #dev") */
21
+ description?: ReactNode;
22
+ }
23
+ /** Title block at the top of an open thread. */
24
+ export declare function ThreadHeader({ title, description, className, ...props }: ThreadHeaderProps): import("react/jsx-runtime").JSX.Element;
25
+ //# sourceMappingURL=thread-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread-preview.d.ts","sourceRoot":"","sources":["../../../src/components/chat/thread-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,MAAM,EAAsB,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAS1D,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC;IACzF,KAAK,EAAE,SAAS,CAAC;IACjB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAyBzG;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,uBAAuB,2CASxF;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAC7E,KAAK,EAAE,SAAS,CAAC;IACjB,wDAAwD;IACxD,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,gDAAgD;AAChD,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAO1F"}
@@ -0,0 +1,19 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import '../../styles.css';
3
+ interface Args {
4
+ title: string;
5
+ count: number;
6
+ last?: {
7
+ user: string;
8
+ text: string;
9
+ };
10
+ }
11
+ declare const meta: Meta<Args>;
12
+ export default meta;
13
+ type Story = StoryObj<Args>;
14
+ export declare const Default: Story;
15
+ export declare const SingleMessage: Story;
16
+ export declare const Empty: Story;
17
+ /** ThreadHeader: the title block at the top of an open thread. */
18
+ export declare const Header: Story;
19
+ //# sourceMappingURL=thread-preview.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread-preview.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/thread-preview.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,kBAAkB,CAAC;AAE1B,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAuBpB,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE5B,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import { Button } from 'react-aria-components';
3
+ export declare function UserPanel({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
4
+ export declare function UserPanelInfo({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
+ export declare function UserPanelName({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
6
+ export type ChatPresence = 'online' | 'idle' | 'dnd' | 'offline';
7
+ export declare const presenceLabel: Record<ChatPresence, string>;
8
+ export interface UserPanelStatusProps extends ComponentProps<'div'> {
9
+ status?: ChatPresence;
10
+ /** replaces the status label ("● online") */
11
+ children?: ReactNode;
12
+ }
13
+ export declare function UserPanelStatus({ status, className, children, ...props }: UserPanelStatusProps): import("react/jsx-runtime").JSX.Element;
14
+ /** An icon button in the panel (mute, deafen, settings…). */
15
+ export declare function UserPanelAction({ className, onPress, ...props }: ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=user-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-panel.d.ts","sourceRoot":"","sources":["../../../src/components/chat/user-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,MAAM,EAAsB,MAAM,uBAAuB,CAAC;AAcnE,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE3E;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE3E;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAKtD,CAAC;AASF,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,KAAK,CAAC;IACjE,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAiB,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAOzG;AAED,6DAA6D;AAC7D,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,2CAc9F"}
@@ -0,0 +1,56 @@
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ export interface WorkspaceRailProps {
3
+ /** Controlled selection (a workspace id, or `"home"`). */
4
+ selectedKey?: string;
5
+ /** Uncontrolled initial selection. */
6
+ defaultSelectedKey?: string;
7
+ onSelectionChange?: (id: string) => void;
8
+ children?: ReactNode;
9
+ className?: string;
10
+ style?: CSSProperties;
11
+ }
12
+ export declare function WorkspaceRail({ selectedKey, defaultSelectedKey, onSelectionChange, children, className, style }: WorkspaceRailProps): import("react/jsx-runtime").JSX.Element;
13
+ export interface WorkspaceRailListProps {
14
+ 'aria-label'?: string;
15
+ children?: ReactNode;
16
+ className?: string;
17
+ }
18
+ /** The tablist of workspaces. */
19
+ export declare function WorkspaceRailList({ 'aria-label': ariaLabel, children, className }: WorkspaceRailListProps): import("react/jsx-runtime").JSX.Element;
20
+ export interface WorkspaceRailItemProps {
21
+ id: string;
22
+ /** one-letter (or short) label shown in the tile, when there are no children */
23
+ label?: string;
24
+ /** tile color when selected */
25
+ color?: string;
26
+ /** tooltip and accessible name; defaults to label */
27
+ title?: string;
28
+ /** unread activity: the pill shows a nub on the leading edge */
29
+ unread?: boolean;
30
+ /** mention count: a red badge on the tile */
31
+ mentions?: number;
32
+ /** custom tile content (an icon, an image) */
33
+ children?: ReactNode;
34
+ className?: string;
35
+ }
36
+ /** One workspace tile. */
37
+ export declare function WorkspaceRailItem({ id, label, color, title, unread, mentions, children, className }: WorkspaceRailItemProps): import("react/jsx-runtime").JSX.Element;
38
+ export type WorkspaceRailHomeProps = Omit<WorkspaceRailItemProps, 'id' | 'label'> & {
39
+ id?: string;
40
+ };
41
+ /** The Home / direct-messages tile (id `"home"`), tinted with the shell's accent. */
42
+ export declare function WorkspaceRailHome({ id, title, children, ...props }: WorkspaceRailHomeProps): import("react/jsx-runtime").JSX.Element;
43
+ /** A short rule between tiles (under Home). Arrow keys skip it. */
44
+ export declare function WorkspaceRailSeparator({ className }: {
45
+ className?: string;
46
+ }): import("react/jsx-runtime").JSX.Element;
47
+ export interface WorkspaceRailActionProps {
48
+ 'aria-label'?: string;
49
+ onPress?: () => void;
50
+ /** defaults to a plus */
51
+ children?: ReactNode;
52
+ className?: string;
53
+ }
54
+ /** A dashed tile that is a button, not a tab ("Add workspace", "Explore"). */
55
+ export declare function WorkspaceRailAction({ 'aria-label': ariaLabel, onPress, children, className }: WorkspaceRailActionProps): import("react/jsx-runtime").JSX.Element;
56
+ //# sourceMappingURL=workspace-rail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-rail.d.ts","sourceRoot":"","sources":["../../../src/components/chat/workspace-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAqBtD,MAAM,WAAW,kBAAkB;IACjC,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,E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AAE,MAAM,CAAA;CAAE,2CAE3E;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,EAAE,YAAY,EAAE,SAA2B,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,wBAAwB,2CAgBxI"}
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import '../../styles.css';
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ type Story = StoryObj;
6
+ export declare const Default: Story;
7
+ export declare const CustomWorkspaces: Story;
8
+ /** Home tab over a separator, unread nubs, mention badges — the vertical TabView composition. Up/Down arrows
9
+ move between tiles (the separator and "Add workspace" are skipped). */
10
+ export declare const DiscordStyle: Story;
11
+ /** The same rail on the light chat tokens (`chatVars('light')`). */
12
+ export declare const DiscordStyleLight: Story;
13
+ //# sourceMappingURL=workspace-rail.stories.d.ts.map