@brett_lamy/ui 1.0.0 → 2.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 (349) hide show
  1. package/README.md +36 -22
  2. package/dist/components/adaptive-pane.d.ts +2 -2
  3. package/dist/components/adaptive-pane.stories.d.ts +1 -1
  4. package/dist/components/animated-height.d.ts +2 -2
  5. package/dist/components/avatar.d.ts +1 -1
  6. package/dist/components/avatar.stories.d.ts +1 -1
  7. package/dist/components/badge.d.ts +3 -3
  8. package/dist/components/badge.stories.d.ts +1 -1
  9. package/dist/components/button.d.ts +3 -3
  10. package/dist/components/button.stories.d.ts +3 -1
  11. package/dist/components/button.stories.d.ts.map +1 -1
  12. package/dist/components/card.d.ts +3 -3
  13. package/dist/components/card.stories.d.ts +1 -1
  14. package/dist/components/celebrate.d.ts +1 -1
  15. package/dist/components/chat/chat-column.d.ts +1 -1
  16. package/dist/components/chat/chat-column.stories.d.ts +3 -2
  17. package/dist/components/chat/chat-column.stories.d.ts.map +1 -1
  18. package/dist/components/chat/floating-chat.d.ts +21 -2
  19. package/dist/components/chat/floating-chat.d.ts.map +1 -1
  20. package/dist/components/chat/floating-chat.stories.d.ts +2 -3
  21. package/dist/components/chat/floating-chat.stories.d.ts.map +1 -1
  22. package/dist/components/chat/floating-sheet.d.ts +22 -2
  23. package/dist/components/chat/floating-sheet.d.ts.map +1 -1
  24. package/dist/components/chat/floating-sheet.stories.d.ts +2 -3
  25. package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -1
  26. package/dist/components/chat/progress-stepper.d.ts +2 -2
  27. package/dist/components/checkbox.d.ts +3 -3
  28. package/dist/components/checkbox.stories.d.ts +1 -1
  29. package/dist/components/combobox.d.ts +3 -3
  30. package/dist/components/combobox.stories.d.ts +1 -1
  31. package/dist/components/command-menu.d.ts +210 -0
  32. package/dist/components/command-menu.d.ts.map +1 -0
  33. package/dist/components/command-menu.stories.d.ts +17 -0
  34. package/dist/components/command-menu.stories.d.ts.map +1 -0
  35. package/dist/components/credenza.d.ts +8 -3
  36. package/dist/components/credenza.d.ts.map +1 -1
  37. package/dist/components/credenza.stories.d.ts +1 -1
  38. package/dist/components/dialog.d.ts +5 -5
  39. package/dist/components/dialog.stories.d.ts +1 -1
  40. package/dist/components/disclosure.d.ts +4 -4
  41. package/dist/components/disclosure.stories.d.ts +1 -1
  42. package/dist/components/dropdown-menu.d.ts +5 -5
  43. package/dist/components/dropdown-menu.stories.d.ts +1 -1
  44. package/dist/components/edge-drawer.d.ts +15 -3
  45. package/dist/components/edge-drawer.d.ts.map +1 -1
  46. package/dist/components/edge-drawer.stories.d.ts +1 -1
  47. package/dist/components/edit-bar.d.ts +1 -1
  48. package/dist/components/edit-bar.stories.d.ts +1 -1
  49. package/dist/components/form.d.ts +2 -2
  50. package/dist/components/form.stories.d.ts +1 -1
  51. package/dist/components/haptic-indicator.d.ts +1 -1
  52. package/dist/components/haptic-indicator.stories.d.ts +1 -1
  53. package/dist/components/icon-swap.d.ts +1 -1
  54. package/dist/components/index-bar.d.ts +6 -3
  55. package/dist/components/index-bar.d.ts.map +1 -1
  56. package/dist/components/index-bar.stories.d.ts +1 -1
  57. package/dist/components/input.d.ts +3 -3
  58. package/dist/components/input.stories.d.ts +1 -1
  59. package/dist/components/kbd.d.ts +1 -1
  60. package/dist/components/kbd.stories.d.ts +1 -1
  61. package/dist/components/label.d.ts +3 -3
  62. package/dist/components/label.stories.d.ts +1 -1
  63. package/dist/components/list-box.d.ts +5 -5
  64. package/dist/components/list-box.stories.d.ts +1 -1
  65. package/dist/components/list-row.stories.d.ts +13 -1
  66. package/dist/components/list-row.stories.d.ts.map +1 -1
  67. package/dist/components/list.d.ts +49 -4
  68. package/dist/components/list.d.ts.map +1 -1
  69. package/dist/components/list.stories.d.ts +6 -2
  70. package/dist/components/list.stories.d.ts.map +1 -1
  71. package/dist/components/markdown-editor.d.ts +39 -5
  72. package/dist/components/markdown-editor.d.ts.map +1 -1
  73. package/dist/components/markdown-editor.stories.d.ts +4 -1
  74. package/dist/components/markdown-editor.stories.d.ts.map +1 -1
  75. package/dist/components/measure-h.d.ts +1 -1
  76. package/dist/components/morph.d.ts +64 -0
  77. package/dist/components/morph.d.ts.map +1 -0
  78. package/dist/components/morph.stories.d.ts +14 -0
  79. package/dist/components/morph.stories.d.ts.map +1 -0
  80. package/dist/components/motion.stories.d.ts +1 -1
  81. package/dist/components/navigation-stack.d.ts +22 -5
  82. package/dist/components/navigation-stack.d.ts.map +1 -1
  83. package/dist/components/navigation-stack.stories.d.ts +12 -1
  84. package/dist/components/navigation-stack.stories.d.ts.map +1 -1
  85. package/dist/components/now-playing-bars.d.ts +21 -0
  86. package/dist/components/now-playing-bars.d.ts.map +1 -0
  87. package/dist/components/now-playing-bars.stories.d.ts +12 -0
  88. package/dist/components/now-playing-bars.stories.d.ts.map +1 -0
  89. package/dist/components/number-morph.d.ts +1 -1
  90. package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
  91. package/dist/components/pencilkit/pencil-canvas.stories.d.ts +1 -1
  92. package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -1
  93. package/dist/components/pencilkit/pencil-toolbar.d.ts +13 -8
  94. package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
  95. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +1 -1
  96. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -1
  97. package/dist/components/pencilkit/pencilkit-annotator.d.ts +2 -2
  98. package/dist/components/pencilkit/stroke-path.d.ts +1 -1
  99. package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
  100. package/dist/components/popover.d.ts +1 -1
  101. package/dist/components/popover.stories.d.ts +1 -1
  102. package/dist/components/progress-ring.d.ts +85 -0
  103. package/dist/components/progress-ring.d.ts.map +1 -0
  104. package/dist/components/progress-ring.stories.d.ts +15 -0
  105. package/dist/components/progress-ring.stories.d.ts.map +1 -0
  106. package/dist/components/progress.d.ts +5 -5
  107. package/dist/components/progress.stories.d.ts +1 -1
  108. package/dist/components/qr-svg.d.ts +31 -4
  109. package/dist/components/qr-svg.d.ts.map +1 -1
  110. package/dist/components/qr-svg.stories.d.ts +9 -2
  111. package/dist/components/qr-svg.stories.d.ts.map +1 -1
  112. package/dist/components/radio-group.d.ts +4 -4
  113. package/dist/components/radio-group.stories.d.ts +1 -1
  114. package/dist/components/scroll-area.d.ts +3 -3
  115. package/dist/components/scroll-area.stories.d.ts +1 -1
  116. package/dist/components/search-field.d.ts +13 -5
  117. package/dist/components/search-field.d.ts.map +1 -1
  118. package/dist/components/search-field.stories.d.ts +3 -1
  119. package/dist/components/search-field.stories.d.ts.map +1 -1
  120. package/dist/components/segmented.d.ts +2 -2
  121. package/dist/components/segmented.d.ts.map +1 -1
  122. package/dist/components/segmented.stories.d.ts +1 -1
  123. package/dist/components/select.d.ts +5 -5
  124. package/dist/components/select.stories.d.ts +1 -1
  125. package/dist/components/separator.d.ts +3 -3
  126. package/dist/components/separator.stories.d.ts +1 -1
  127. package/dist/components/sheet.d.ts +4 -4
  128. package/dist/components/sheet.stories.d.ts +1 -1
  129. package/dist/components/side-drawer.d.ts +7 -2
  130. package/dist/components/side-drawer.d.ts.map +1 -1
  131. package/dist/components/side-drawer.stories.d.ts +1 -1
  132. package/dist/components/sidebar.d.ts +1 -1
  133. package/dist/components/sidebar.d.ts.map +1 -1
  134. package/dist/components/sidebar.stories.d.ts +1 -1
  135. package/dist/components/skeleton.d.ts +23 -5
  136. package/dist/components/skeleton.d.ts.map +1 -1
  137. package/dist/components/skeleton.stories.d.ts +3 -1
  138. package/dist/components/skeleton.stories.d.ts.map +1 -1
  139. package/dist/components/slider.d.ts +23 -4
  140. package/dist/components/slider.d.ts.map +1 -1
  141. package/dist/components/slider.stories.d.ts +4 -1
  142. package/dist/components/slider.stories.d.ts.map +1 -1
  143. package/dist/components/spinner.d.ts +1 -1
  144. package/dist/components/spinner.stories.d.ts +1 -1
  145. package/dist/components/split-view.d.ts +112 -12
  146. package/dist/components/split-view.d.ts.map +1 -1
  147. package/dist/components/split-view.stories.d.ts +35 -1
  148. package/dist/components/split-view.stories.d.ts.map +1 -1
  149. package/dist/components/switch.d.ts +3 -1
  150. package/dist/components/switch.d.ts.map +1 -1
  151. package/dist/components/switch.stories.d.ts +1 -1
  152. package/dist/components/syntax-highlighting.d.ts +14 -11
  153. package/dist/components/syntax-highlighting.d.ts.map +1 -1
  154. package/dist/components/syntax-highlighting.stories.d.ts +1 -1
  155. package/dist/components/tab-bar.d.ts +1 -1
  156. package/dist/components/tab-bar.stories.d.ts +1 -1
  157. package/dist/components/tab-view.d.ts +15 -14
  158. package/dist/components/tab-view.d.ts.map +1 -1
  159. package/dist/components/tab-view.stories.d.ts +18 -2
  160. package/dist/components/tab-view.stories.d.ts.map +1 -1
  161. package/dist/components/tabs.d.ts +5 -5
  162. package/dist/components/tabs.stories.d.ts +1 -1
  163. package/dist/components/text-field.d.ts +1 -1
  164. package/dist/components/text-field.stories.d.ts +1 -1
  165. package/dist/components/text-morph.d.ts +1 -1
  166. package/dist/components/textarea.d.ts +3 -3
  167. package/dist/components/toast.d.ts +112 -0
  168. package/dist/components/toast.d.ts.map +1 -0
  169. package/dist/components/toast.stories.d.ts +13 -0
  170. package/dist/components/toast.stories.d.ts.map +1 -0
  171. package/dist/components/toggle-group.d.ts +3 -3
  172. package/dist/components/toggle-group.stories.d.ts +1 -1
  173. package/dist/components/toggle.d.ts +3 -3
  174. package/dist/components/toggle.stories.d.ts +1 -1
  175. package/dist/components/tooltip.d.ts +2 -2
  176. package/dist/components/tooltip.stories.d.ts +1 -1
  177. package/dist/components/workbench/chat.d.ts +2 -2
  178. package/dist/components/workbench/chat.d.ts.map +1 -1
  179. package/dist/components/workbench/chat.stories.d.ts +1 -2
  180. package/dist/components/workbench/composer-files.d.ts +36 -0
  181. package/dist/components/workbench/composer-files.d.ts.map +1 -0
  182. package/dist/components/workbench/composer.d.ts +115 -32
  183. package/dist/components/workbench/composer.d.ts.map +1 -1
  184. package/dist/components/workbench/composer.stories.d.ts +8 -2
  185. package/dist/components/workbench/composer.stories.d.ts.map +1 -1
  186. package/dist/components/workbench/fixtures.d.ts +2 -2
  187. package/dist/components/workbench/fixtures.d.ts.map +1 -1
  188. package/dist/components/workbench/markdown.d.ts +2 -3
  189. package/dist/components/workbench/markdown.d.ts.map +1 -1
  190. package/dist/components/workbench/message-scroller.stories.d.ts +1 -2
  191. package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -1
  192. package/dist/components/workbench/model-picker.d.ts +3 -3
  193. package/dist/components/workbench/model-picker.d.ts.map +1 -1
  194. package/dist/components/workbench/snap-sheet.d.ts +3 -2
  195. package/dist/components/workbench/snap-sheet.d.ts.map +1 -1
  196. package/dist/components/workbench/snap-sheet.stories.d.ts +1 -2
  197. package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -1
  198. package/dist/components/workbench/surfaces.d.ts +2 -2
  199. package/dist/components/workbench/surfaces.d.ts.map +1 -1
  200. package/dist/components/workbench/surfaces.stories.d.ts +1 -2
  201. package/dist/components/workbench/terminal.d.ts +10 -2
  202. package/dist/components/workbench/terminal.d.ts.map +1 -1
  203. package/dist/components/workbench/terminal.stories.d.ts +1 -2
  204. package/dist/components/workbench/terminal.stories.d.ts.map +1 -1
  205. package/dist/components/workbench/wb-popover.d.ts +3 -5
  206. package/dist/components/workbench/wb-popover.d.ts.map +1 -1
  207. package/dist/components/workbench/workbench-composer.d.ts +1 -1
  208. package/dist/demos/delivery/delivery-tracking-demo.d.ts +4 -3
  209. package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -1
  210. package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +2 -3
  211. package/dist/demos/haptics-playground.d.ts +4 -1
  212. package/dist/demos/haptics-playground.d.ts.map +1 -1
  213. package/dist/demos/haptics-playground.stories.d.ts +1 -1
  214. package/dist/demos/map-chat/map-agent.d.ts +2 -2
  215. package/dist/demos/map-chat/map-chat-demo.d.ts +3 -3
  216. package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -1
  217. package/dist/demos/map-chat/map-chat-demo.stories.d.ts +2 -3
  218. package/dist/demos/map-chat/places.d.ts +2 -2
  219. package/dist/demos/map-chat/tile-map.d.ts +39 -3
  220. package/dist/demos/map-chat/tile-map.d.ts.map +1 -1
  221. package/dist/demos/pencilkit/demo-strokes.d.ts +1 -1
  222. package/dist/demos/pencilkit/pencilkit-demo.d.ts +4 -2
  223. package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -1
  224. package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +1 -1
  225. package/dist/demos/sidebar-demo.d.ts +1 -4
  226. package/dist/demos/sidebar-demo.d.ts.map +1 -1
  227. package/dist/demos/split-view-demos.d.ts +15 -2
  228. package/dist/demos/split-view-demos.d.ts.map +1 -1
  229. package/dist/index.css +1 -1
  230. package/dist/index.d.ts +46 -57
  231. package/dist/index.d.ts.map +1 -1
  232. package/dist/index.js +15267 -11038
  233. package/dist/lib/chat/chat-shell-context.d.ts +3 -2
  234. package/dist/lib/chat/chat-shell-context.d.ts.map +1 -1
  235. package/dist/lib/chat/persistent-host.d.ts +4 -4
  236. package/dist/lib/container.d.ts +8 -1
  237. package/dist/lib/container.d.ts.map +1 -1
  238. package/dist/lib/haptics.d.ts +7 -5
  239. package/dist/lib/haptics.d.ts.map +1 -1
  240. package/dist/lib/icon-shapes/chat.d.ts +32 -0
  241. package/dist/lib/icon-shapes/chat.d.ts.map +1 -0
  242. package/dist/lib/icon-shapes/pencilkit.d.ts +49 -0
  243. package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -0
  244. package/dist/lib/icon-shapes/workbench.d.ts +199 -0
  245. package/dist/lib/icon-shapes/workbench.d.ts.map +1 -0
  246. package/dist/lib/icon.d.ts +1649 -7
  247. package/dist/lib/icon.d.ts.map +1 -1
  248. package/dist/lib/icon.stories.d.ts +8 -1
  249. package/dist/lib/icon.stories.d.ts.map +1 -1
  250. package/dist/lib/pencilkit/constants.d.ts +9 -9
  251. package/dist/lib/pencilkit/constants.d.ts.map +1 -1
  252. package/dist/lib/primitives.d.ts +1 -1
  253. package/dist/lib/primitives.d.ts.map +1 -1
  254. package/dist/lib/qr.d.ts +28 -0
  255. package/dist/lib/qr.d.ts.map +1 -0
  256. package/dist/lib/row-label.d.ts +9 -0
  257. package/dist/lib/row-label.d.ts.map +1 -0
  258. package/dist/lib/sheet-drag.d.ts +23 -8
  259. package/dist/lib/sheet-drag.d.ts.map +1 -1
  260. package/dist/lib/syntax.d.ts +27 -10
  261. package/dist/lib/syntax.d.ts.map +1 -1
  262. package/dist/lib/theme.d.ts +39 -8
  263. package/dist/lib/theme.d.ts.map +1 -1
  264. package/dist/lib/utils.d.ts +1 -1
  265. package/dist/lib/workbench/icons.d.ts +6 -16
  266. package/dist/lib/workbench/icons.d.ts.map +1 -1
  267. package/dist/lib/workbench/motion.d.ts +1 -65
  268. package/dist/lib/workbench/motion.d.ts.map +1 -1
  269. package/dist/lib/workbench/press.d.ts +1 -1
  270. package/dist/lib/workbench/press.d.ts.map +1 -1
  271. package/dist/lib/workbench/theme.d.ts +3 -4
  272. package/dist/lib/workbench/theme.d.ts.map +1 -1
  273. package/dist/lib/workbench/util.d.ts +5 -3
  274. package/dist/lib/workbench/util.d.ts.map +1 -1
  275. package/dist/stories/frame.d.ts +1 -1
  276. package/dist/stories/primitive-frame.d.ts +1 -1
  277. package/dist/templates/artifact-chat-container.d.ts +8 -3
  278. package/dist/templates/artifact-chat-container.d.ts.map +1 -1
  279. package/dist/templates/artifact-chat-container.stories.d.ts +2 -3
  280. package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -1
  281. package/dist/templates/chat-shell.d.ts +10 -9
  282. package/dist/templates/chat-shell.d.ts.map +1 -1
  283. package/dist/templates/workbench-shell.d.ts +8 -8
  284. package/dist/templates/workbench-shell.d.ts.map +1 -1
  285. package/dist/templates/workbench-shell.stories.d.ts +1 -2
  286. package/dist/templates/workbench-shell.stories.d.ts.map +1 -1
  287. package/dist/theme.css +325 -0
  288. package/package.json +7 -4
  289. package/dist/components/chat/channel-list.d.ts +0 -35
  290. package/dist/components/chat/channel-list.d.ts.map +0 -1
  291. package/dist/components/chat/channel-list.stories.d.ts +0 -14
  292. package/dist/components/chat/channel-list.stories.d.ts.map +0 -1
  293. package/dist/components/chat/chat-avatar.d.ts +0 -13
  294. package/dist/components/chat/chat-avatar.d.ts.map +0 -1
  295. package/dist/components/chat/chat-avatar.stories.d.ts +0 -10
  296. package/dist/components/chat/chat-avatar.stories.d.ts.map +0 -1
  297. package/dist/components/chat/chat-composer.d.ts +0 -22
  298. package/dist/components/chat/chat-composer.d.ts.map +0 -1
  299. package/dist/components/chat/chat-composer.stories.d.ts +0 -17
  300. package/dist/components/chat/chat-composer.stories.d.ts.map +0 -1
  301. package/dist/components/chat/chat.fixtures.d.ts +0 -29
  302. package/dist/components/chat/chat.fixtures.d.ts.map +0 -1
  303. package/dist/components/chat/member-list.d.ts +0 -21
  304. package/dist/components/chat/member-list.d.ts.map +0 -1
  305. package/dist/components/chat/message-list.d.ts +0 -34
  306. package/dist/components/chat/message-list.d.ts.map +0 -1
  307. package/dist/components/chat/message.d.ts +0 -47
  308. package/dist/components/chat/message.d.ts.map +0 -1
  309. package/dist/components/chat/message.stories.d.ts +0 -31
  310. package/dist/components/chat/message.stories.d.ts.map +0 -1
  311. package/dist/components/chat/rich-text.d.ts +0 -8
  312. package/dist/components/chat/rich-text.d.ts.map +0 -1
  313. package/dist/components/chat/rich-text.stories.d.ts +0 -10
  314. package/dist/components/chat/rich-text.stories.d.ts.map +0 -1
  315. package/dist/components/chat/server-header.d.ts +0 -10
  316. package/dist/components/chat/server-header.d.ts.map +0 -1
  317. package/dist/components/chat/thread-preview.d.ts +0 -25
  318. package/dist/components/chat/thread-preview.d.ts.map +0 -1
  319. package/dist/components/chat/thread-preview.stories.d.ts +0 -19
  320. package/dist/components/chat/thread-preview.stories.d.ts.map +0 -1
  321. package/dist/components/chat/user-panel.d.ts +0 -16
  322. package/dist/components/chat/user-panel.d.ts.map +0 -1
  323. package/dist/components/chat/workspace-rail.d.ts +0 -56
  324. package/dist/components/chat/workspace-rail.d.ts.map +0 -1
  325. package/dist/components/chat/workspace-rail.stories.d.ts +0 -13
  326. package/dist/components/chat/workspace-rail.stories.d.ts.map +0 -1
  327. package/dist/components/pencilkit/pk-icon.d.ts +0 -8
  328. package/dist/components/pencilkit/pk-icon.d.ts.map +0 -1
  329. package/dist/components/pill-button.d.ts +0 -11
  330. package/dist/components/pill-button.d.ts.map +0 -1
  331. package/dist/components/pill-button.stories.d.ts +0 -9
  332. package/dist/components/pill-button.stories.d.ts.map +0 -1
  333. package/dist/components/workbench/thread-sidebar.d.ts +0 -100
  334. package/dist/components/workbench/thread-sidebar.d.ts.map +0 -1
  335. package/dist/components/workbench/thread-sidebar.stories.d.ts +0 -10
  336. package/dist/components/workbench/thread-sidebar.stories.d.ts.map +0 -1
  337. package/dist/lib/chat/chat-icon.d.ts +0 -24
  338. package/dist/lib/chat/chat-icon.d.ts.map +0 -1
  339. package/dist/lib/chat/chat-tokens.d.ts +0 -72
  340. package/dist/lib/chat/chat-tokens.d.ts.map +0 -1
  341. package/dist/lib/chat/chat-users.d.ts +0 -18
  342. package/dist/lib/chat/chat-users.d.ts.map +0 -1
  343. package/dist/lib/chat/kvib.d.ts +0 -3
  344. package/dist/lib/chat/kvib.d.ts.map +0 -1
  345. package/dist/lib/chat/title-ref.d.ts +0 -3
  346. package/dist/lib/chat/title-ref.d.ts.map +0 -1
  347. package/dist/templates/chat-shell.stories.d.ts +0 -23
  348. package/dist/templates/chat-shell.stories.d.ts.map +0 -1
  349. package/dist/tsconfig.lib.tsbuildinfo +0 -1
@@ -1,10 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { ChatAvatar } from './chat-avatar';
3
- import '../../styles.css';
4
- declare const meta: Meta<typeof ChatAvatar>;
5
- export default meta;
6
- type Story = StoryObj<typeof ChatAvatar>;
7
- export declare const Default: Story;
8
- export declare const Bot: Story;
9
- export declare const Sizes: Story;
10
- //# sourceMappingURL=chat-avatar.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-avatar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-avatar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,kBAAkB,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAsBjC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAEjB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC"}
@@ -1,22 +0,0 @@
1
- import { type ComponentProps, type ReactNode } from 'react';
2
- import { Button, Input } from 'react-aria-components';
3
- export interface ChatComposerProps extends Omit<ComponentProps<'div'>, 'onChange'> {
4
- onSend: (text: string) => void;
5
- /** placeholder of the default input */
6
- placeholder?: string;
7
- /** focus the default input on mount */
8
- autoFocus?: boolean;
9
- /** controlled draft */
10
- value?: string;
11
- onValueChange?: (value: string) => void;
12
- }
13
- export declare function ChatComposer({ onSend, placeholder, autoFocus, value: valueProp, onValueChange, className, children, ...props }: ChatComposerProps): import("react/jsx-runtime").JSX.Element;
14
- export declare function ChatComposerInput({ className, onKeyDown, ...props }: Omit<ComponentProps<typeof Input>, 'value' | 'onChange'>): import("react/jsx-runtime").JSX.Element;
15
- export interface ChatComposerSendProps extends Omit<ComponentProps<typeof Button>, 'children'> {
16
- children?: ReactNode;
17
- }
18
- /** Sends the draft; tinted once there is something to send. */
19
- export declare function ChatComposerSend({ className, children, ...props }: ChatComposerSendProps): import("react/jsx-runtime").JSX.Element;
20
- /** A secondary button inside the field (attach, emoji…). */
21
- export declare function ChatComposerAction({ className, ...props }: ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
22
- //# sourceMappingURL=chat-composer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-composer.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-composer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAsB,MAAM,uBAAuB,CAAC;AA2B1E,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAChF,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CA6BjJ;AAED,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,2CAkB7H;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC;IAC5F,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAqBxF;AAED,4DAA4D;AAC5D,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,2CAUxF"}
@@ -1,17 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import '../../styles.css';
3
- interface Args {
4
- placeholder: string;
5
- autoFocus?: boolean;
6
- tint: string;
7
- }
8
- declare const meta: Meta<Args>;
9
- export default meta;
10
- type Story = StoryObj<Args>;
11
- export declare const Default: Story;
12
- export declare const ThreadReply: Story;
13
- /** `--ck-tint` (ChatShell's `tint`) colors the send button once there's a draft. */
14
- export declare const PurpleTint: Story;
15
- /** Composed: an attach action before the input. */
16
- export declare const WithAction: Story;
17
- //# sourceMappingURL=chat-composer.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-composer.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-composer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,kBAAkB,CAAC;AAE1B,UAAU,IAAI;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAoBpB,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE5B,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC"}
@@ -1,29 +0,0 @@
1
- import { type CSSProperties, type ReactNode } from 'react';
2
- import type { ChatUsers } from '../../lib/chat/chat-users';
3
- export declare const USERS: ChatUsers;
4
- export declare const CHANNEL_GROUPS: {
5
- label: string;
6
- channels: {
7
- id: string;
8
- name: string;
9
- unread?: boolean;
10
- threads?: {
11
- id: string;
12
- title: string;
13
- }[];
14
- }[];
15
- }[];
16
- export declare function FixtureUserPanel(): import("react/jsx-runtime").JSX.Element;
17
- export interface FixtureSidebarProps {
18
- selected: string;
19
- onSelect?: (id: string) => void;
20
- onPickThread?: (channel: string, thread: string) => void;
21
- title?: ReactNode;
22
- onClose?: () => void;
23
- /** replaces the UserPanel; null for none */
24
- footer?: ReactNode;
25
- style?: CSSProperties;
26
- }
27
- /** The whole channel sidebar, composed from the parts. */
28
- export declare function FixtureSidebar({ selected, onSelect, onPickThread, title, onClose, footer, style }: FixtureSidebarProps): import("react/jsx-runtime").JSX.Element;
29
- //# sourceMappingURL=chat.fixtures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.fixtures.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat.fixtures.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,eAAO,MAAM,KAAK,EAAE,SAMnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,EAAE,CAAA;CAAE,EA0BpJ,CAAC;AAEF,wBAAgB,gBAAgB,4CAa/B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAkB,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CA0BnI"}
@@ -1,21 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,34 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,47 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/components/chat/message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3G,OAAO,EAAE,MAAM,EAAE,YAAY,EAAsB,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAwB1D,eAAO,MAAM,eAAe;;;8EAiB3B,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,eAAe,CAAC;IAC/F,0DAA0D;IAC1D,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAY1F;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,qGAAqG;AACrG,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAS,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAOhG;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAEzE;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE3E;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,2CAOtF;AAED,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,2CAQ3E;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,2CAE/E;AAED,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAMtF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE9E;AAED,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IAChH,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAsB1G;AAED,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAW5E;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,OAAO,MAAM,CAAC;IACvE,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAgBxF"}
@@ -1,31 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { USERS } from './chat.fixtures';
3
- 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
@@ -1 +0,0 @@
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"}
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,16 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,56 +0,0 @@
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
@@ -1 +0,0 @@
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,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAsBnI;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iCAAiC;AACjC,wBAAgB,iBAAiB,CAAC,EAAE,YAAY,EAAE,SAAwB,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,sBAAsB,2CAMxH;AAgBD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,0BAA0B;AAC1B,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAiC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,sBAAsB,2CAWvJ;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpG,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,EAAE,EAAW,EAAE,KAAyB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,2CAMvH;AAED,mEAAmE;AACnE,wBAAgB,sBAAsB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,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"}
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-rail.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/workspace-rail.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,kBAAkB,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAmBX,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AA4BtB,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAW9B,CAAC;AASF;0EAC0E;AAC1E,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,EAAE,KAoB/B,CAAC"}
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { type PKIconName } from '../../lib/pencilkit/constants';
3
- export interface PKIconProps extends React.SVGAttributes<SVGSVGElement> {
4
- name: PKIconName;
5
- size?: number;
6
- }
7
- export declare function PKIcon({ name, size, className, ...rest }: PKIconProps): import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=pk-icon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pk-icon.d.ts","sourceRoot":"","sources":["../../../src/components/pencilkit/pk-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IACrE,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAqBrE"}
@@ -1,11 +0,0 @@
1
- import type { CSSProperties, ReactNode } from 'react';
2
- export interface PillButtonProps {
3
- label: ReactNode;
4
- onPress?: () => void;
5
- tone?: 'tint' | 'soft';
6
- className?: string;
7
- style?: CSSProperties;
8
- }
9
- /** Full-width iOS action pill — `Button` at `size="pill"`. */
10
- export declare function PillButton({ label, onPress, tone, className, style }: PillButtonProps): import("react/jsx-runtime").JSX.Element;
11
- //# sourceMappingURL=pill-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pill-button.d.ts","sourceRoot":"","sources":["../../src/components/pill-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,8DAA8D;AAC9D,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,2CAMrF"}
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { PillButton } from './pill-button';
3
- declare const meta: Meta<typeof PillButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof PillButton>;
6
- export declare const Tint: Story;
7
- export declare const Soft: Story;
8
- export declare const Stack: Story;
9
- //# sourceMappingURL=pill-button.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pill-button.stories.d.ts","sourceRoot":"","sources":["../../src/components/pill-button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAIjC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,IAAI,EAAE,KAA6C,CAAC;AACjE,eAAO,MAAM,IAAI,EAAE,KAAoD,CAAC;AAExE,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC"}
@@ -1,100 +0,0 @@
1
- import * as React from 'react';
2
- import { type WIconName } from '../../lib/workbench/icons';
3
- type Div = {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- children?: React.ReactNode;
7
- };
8
- export declare function ThreadSidebar({ className, style, children }: Div): import("react/jsx-runtime").JSX.Element;
9
- export declare function ThreadSidebarHeader({ className, style, children }: Div): import("react/jsx-runtime").JSX.Element;
10
- /** App mark + name. `icon` replaces the default tinted spark tile. */
11
- export declare function ThreadSidebarBrand({ icon, children, className }: {
12
- icon?: React.ReactNode;
13
- children?: React.ReactNode;
14
- className?: string;
15
- }): import("react/jsx-runtime").JSX.Element;
16
- export declare function ThreadSidebarToolbar({ className, style, children }: Div): import("react/jsx-runtime").JSX.Element;
17
- export interface ThreadSearchProps {
18
- value: string;
19
- onChange: (value: string) => void;
20
- placeholder?: string;
21
- className?: string;
22
- }
23
- export declare function ThreadSearch({ value, onChange, placeholder, className }: ThreadSearchProps): import("react/jsx-runtime").JSX.Element;
24
- /** Compose button; closes the compact drawer. */
25
- export declare function ThreadNewButton({ onPress, label, className }: {
26
- onPress?: () => void;
27
- label?: string;
28
- className?: string;
29
- }): import("react/jsx-runtime").JSX.Element;
30
- export interface ProjectSwitcherProps {
31
- /** the current project, or "All projects" */
32
- children?: React.ReactNode;
33
- onPress?: () => void;
34
- className?: string;
35
- }
36
- /** The project row under the search field: current project, a chevron, and the folder-plus affordance. */
37
- export declare function ProjectSwitcher({ children, onPress, className }: ProjectSwitcherProps): import("react/jsx-runtime").JSX.Element;
38
- /** The scrolling region that holds the groups. */
39
- export declare function ThreadList({ className, style, children }: Div): import("react/jsx-runtime").JSX.Element;
40
- export interface ThreadGroupProps {
41
- label: React.ReactNode;
42
- /** header becomes a toggle that folds the group */
43
- collapsible?: boolean;
44
- defaultOpen?: boolean;
45
- open?: boolean;
46
- onOpenChange?: (open: boolean) => void;
47
- className?: string;
48
- children?: React.ReactNode;
49
- }
50
- /** A labelled run of threads ("Active", "Settled", "Today"…). Collapsible groups fold on a spring. */
51
- export declare function ThreadGroup({ label, collapsible, defaultOpen, open: openProp, onOpenChange, className, children }: ThreadGroupProps): import("react/jsx-runtime").JSX.Element;
52
- export type ThreadStatus = 'idle' | 'running' | 'unread' | 'error';
53
- export interface ThreadItemProps {
54
- /** highlighted as the open thread */
55
- active?: boolean;
56
- /** running: a pulsing dot replaces the icon · unread: bold title + dot · error: red dot */
57
- status?: ThreadStatus;
58
- /** trailing text, e.g. the thread's age */
59
- meta?: React.ReactNode;
60
- icon?: WIconName;
61
- onPress?: () => void;
62
- className?: string;
63
- children?: React.ReactNode;
64
- }
65
- export declare function ThreadItem({ active, status, meta, icon, onPress, className, children }: ThreadItemProps): import("react/jsx-runtime").JSX.Element;
66
- /** "Show N more" at the end of a truncated group. */
67
- export declare function ThreadShowMore({ count, onPress, className }: {
68
- count: number;
69
- onPress?: () => void;
70
- className?: string;
71
- }): import("react/jsx-runtime").JSX.Element;
72
- export declare function ThreadSidebarFooter({ className, style, children }: Div): import("react/jsx-runtime").JSX.Element;
73
- /** A tinted callout in the footer ("Update available"). `onDismiss` adds the ×. */
74
- export declare function SidebarNotice({ icon, onPress, onDismiss, className, children }: {
75
- icon?: WIconName;
76
- onPress?: () => void;
77
- onDismiss?: () => void;
78
- className?: string;
79
- children?: React.ReactNode;
80
- }): import("react/jsx-runtime").JSX.Element;
81
- /** A footer row: Settings, Help, Sign out. */
82
- export declare function SidebarFooterItem({ icon, onPress, className, children }: {
83
- icon: WIconName;
84
- onPress?: () => void;
85
- className?: string;
86
- children?: React.ReactNode;
87
- }): import("react/jsx-runtime").JSX.Element;
88
- export interface SidebarUserProps {
89
- name: string;
90
- /** second line: plan, email, workspace */
91
- detail?: React.ReactNode;
92
- /** image URL; initials otherwise */
93
- avatar?: string;
94
- onPress?: () => void;
95
- className?: string;
96
- }
97
- /** The signed-in user: avatar, name, detail, and a chevron that suggests a menu. */
98
- export declare function SidebarUser({ name, detail, avatar, onPress, className }: SidebarUserProps): import("react/jsx-runtime").JSX.Element;
99
- export {};
100
- //# sourceMappingURL=thread-sidebar.d.ts.map