@brett_lamy/ui 0.0.1 → 1.1.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 (415) 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/badge.d.ts +9 -0
  9. package/dist/components/badge.d.ts.map +1 -0
  10. package/dist/components/badge.stories.d.ts +9 -0
  11. package/dist/components/badge.stories.d.ts.map +1 -0
  12. package/dist/components/button.d.ts +12 -0
  13. package/dist/components/button.d.ts.map +1 -0
  14. package/dist/components/button.stories.d.ts +9 -0
  15. package/dist/components/button.stories.d.ts.map +1 -0
  16. package/dist/components/card.d.ts +14 -0
  17. package/dist/components/card.d.ts.map +1 -0
  18. package/dist/components/card.stories.d.ts +9 -0
  19. package/dist/components/card.stories.d.ts.map +1 -0
  20. package/dist/components/celebrate.d.ts +14 -0
  21. package/dist/components/celebrate.d.ts.map +1 -0
  22. package/dist/components/chat/channel-list.d.ts +35 -0
  23. package/dist/components/chat/channel-list.d.ts.map +1 -0
  24. package/dist/components/chat/channel-list.stories.d.ts +13 -0
  25. package/dist/components/chat/channel-list.stories.d.ts.map +1 -0
  26. package/dist/components/chat/chat-avatar.d.ts +13 -0
  27. package/dist/components/chat/chat-avatar.d.ts.map +1 -0
  28. package/dist/components/chat/chat-avatar.stories.d.ts +9 -0
  29. package/dist/components/chat/chat-avatar.stories.d.ts.map +1 -0
  30. package/dist/components/chat/chat-column.d.ts +8 -0
  31. package/dist/components/chat/chat-column.d.ts.map +1 -0
  32. package/dist/components/chat/chat-column.stories.d.ts +7 -0
  33. package/dist/components/chat/chat-column.stories.d.ts.map +1 -0
  34. package/dist/components/chat/chat-composer.d.ts +22 -0
  35. package/dist/components/chat/chat-composer.d.ts.map +1 -0
  36. package/dist/components/chat/chat-composer.stories.d.ts +16 -0
  37. package/dist/components/chat/chat-composer.stories.d.ts.map +1 -0
  38. package/dist/components/chat/chat.fixtures.d.ts +29 -0
  39. package/dist/components/chat/chat.fixtures.d.ts.map +1 -0
  40. package/dist/components/chat/floating-chat.d.ts +71 -0
  41. package/dist/components/chat/floating-chat.d.ts.map +1 -0
  42. package/dist/components/chat/floating-chat.stories.d.ts +17 -0
  43. package/dist/components/chat/floating-chat.stories.d.ts.map +1 -0
  44. package/dist/components/chat/floating-sheet.d.ts +83 -0
  45. package/dist/components/chat/floating-sheet.d.ts.map +1 -0
  46. package/dist/components/chat/floating-sheet.stories.d.ts +22 -0
  47. package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -0
  48. package/dist/components/chat/member-list.d.ts +21 -0
  49. package/dist/components/chat/member-list.d.ts.map +1 -0
  50. package/dist/components/chat/message-list.d.ts +34 -0
  51. package/dist/components/chat/message-list.d.ts.map +1 -0
  52. package/dist/components/chat/message.d.ts +47 -0
  53. package/dist/components/chat/message.d.ts.map +1 -0
  54. package/dist/components/chat/message.stories.d.ts +30 -0
  55. package/dist/components/chat/message.stories.d.ts.map +1 -0
  56. package/dist/components/chat/progress-stepper.d.ts +30 -0
  57. package/dist/components/chat/progress-stepper.d.ts.map +1 -0
  58. package/dist/components/chat/rich-text.d.ts +8 -0
  59. package/dist/components/chat/rich-text.d.ts.map +1 -0
  60. package/dist/components/chat/rich-text.stories.d.ts +9 -0
  61. package/dist/components/chat/rich-text.stories.d.ts.map +1 -0
  62. package/dist/components/chat/server-header.d.ts +10 -0
  63. package/dist/components/chat/server-header.d.ts.map +1 -0
  64. package/dist/components/chat/thread-preview.d.ts +25 -0
  65. package/dist/components/chat/thread-preview.d.ts.map +1 -0
  66. package/dist/components/chat/thread-preview.stories.d.ts +18 -0
  67. package/dist/components/chat/thread-preview.stories.d.ts.map +1 -0
  68. package/dist/components/chat/user-panel.d.ts +16 -0
  69. package/dist/components/chat/user-panel.d.ts.map +1 -0
  70. package/dist/components/chat/workspace-rail.d.ts +56 -0
  71. package/dist/components/chat/workspace-rail.d.ts.map +1 -0
  72. package/dist/components/chat/workspace-rail.stories.d.ts +12 -0
  73. package/dist/components/chat/workspace-rail.stories.d.ts.map +1 -0
  74. package/dist/components/checkbox.d.ts +13 -0
  75. package/dist/components/checkbox.d.ts.map +1 -0
  76. package/dist/components/checkbox.stories.d.ts +11 -0
  77. package/dist/components/checkbox.stories.d.ts.map +1 -0
  78. package/dist/components/combobox.d.ts +20 -0
  79. package/dist/components/combobox.d.ts.map +1 -0
  80. package/dist/components/combobox.stories.d.ts +10 -0
  81. package/dist/components/combobox.stories.d.ts.map +1 -0
  82. package/dist/components/credenza.d.ts.map +1 -1
  83. package/dist/components/dialog.d.ts +40 -0
  84. package/dist/components/dialog.d.ts.map +1 -0
  85. package/dist/components/dialog.stories.d.ts +12 -0
  86. package/dist/components/dialog.stories.d.ts.map +1 -0
  87. package/dist/components/disclosure.d.ts +23 -0
  88. package/dist/components/disclosure.d.ts.map +1 -0
  89. package/dist/components/disclosure.stories.d.ts +10 -0
  90. package/dist/components/disclosure.stories.d.ts.map +1 -0
  91. package/dist/components/dropdown-menu.d.ts +33 -0
  92. package/dist/components/dropdown-menu.d.ts.map +1 -0
  93. package/dist/components/dropdown-menu.stories.d.ts +11 -0
  94. package/dist/components/dropdown-menu.stories.d.ts.map +1 -0
  95. package/dist/components/edge-drawer.d.ts +17 -0
  96. package/dist/components/edge-drawer.d.ts.map +1 -0
  97. package/dist/components/edge-drawer.stories.d.ts +8 -0
  98. package/dist/components/edge-drawer.stories.d.ts.map +1 -0
  99. package/dist/components/edit-bar.d.ts.map +1 -1
  100. package/dist/components/form.d.ts +9 -0
  101. package/dist/components/form.d.ts.map +1 -0
  102. package/dist/components/form.stories.d.ts +9 -0
  103. package/dist/components/form.stories.d.ts.map +1 -0
  104. package/dist/components/haptic-indicator.d.ts +3 -1
  105. package/dist/components/haptic-indicator.d.ts.map +1 -1
  106. package/dist/components/icon-swap.d.ts +27 -0
  107. package/dist/components/icon-swap.d.ts.map +1 -0
  108. package/dist/components/index-bar.d.ts +14 -1
  109. package/dist/components/index-bar.d.ts.map +1 -1
  110. package/dist/components/index-bar.stories.d.ts +4 -0
  111. package/dist/components/index-bar.stories.d.ts.map +1 -1
  112. package/dist/components/input.d.ts +9 -0
  113. package/dist/components/input.d.ts.map +1 -0
  114. package/dist/components/input.stories.d.ts +10 -0
  115. package/dist/components/input.stories.d.ts.map +1 -0
  116. package/dist/components/kbd.d.ts +5 -0
  117. package/dist/components/kbd.d.ts.map +1 -0
  118. package/dist/components/kbd.stories.d.ts +9 -0
  119. package/dist/components/kbd.stories.d.ts.map +1 -0
  120. package/dist/components/label.d.ts +9 -0
  121. package/dist/components/label.d.ts.map +1 -0
  122. package/dist/components/label.stories.d.ts +8 -0
  123. package/dist/components/label.stories.d.ts.map +1 -0
  124. package/dist/components/list-box.d.ts +30 -0
  125. package/dist/components/list-box.d.ts.map +1 -0
  126. package/dist/components/list-box.stories.d.ts +9 -0
  127. package/dist/components/list-box.stories.d.ts.map +1 -0
  128. package/dist/components/list-row.stories.d.ts +9 -0
  129. package/dist/components/list-row.stories.d.ts.map +1 -1
  130. package/dist/components/list.d.ts +33 -2
  131. package/dist/components/list.d.ts.map +1 -1
  132. package/dist/components/list.stories.d.ts +5 -1
  133. package/dist/components/list.stories.d.ts.map +1 -1
  134. package/dist/components/markdown-editor.d.ts +131 -0
  135. package/dist/components/markdown-editor.d.ts.map +1 -0
  136. package/dist/components/markdown-editor.stories.d.ts +17 -0
  137. package/dist/components/markdown-editor.stories.d.ts.map +1 -0
  138. package/dist/components/morph.d.ts +61 -0
  139. package/dist/components/morph.d.ts.map +1 -0
  140. package/dist/components/morph.stories.d.ts +14 -0
  141. package/dist/components/morph.stories.d.ts.map +1 -0
  142. package/dist/components/motion.stories.d.ts +15 -0
  143. package/dist/components/motion.stories.d.ts.map +1 -0
  144. package/dist/components/navigation-stack.d.ts +9 -3
  145. package/dist/components/navigation-stack.d.ts.map +1 -1
  146. package/dist/components/navigation-stack.stories.d.ts +11 -0
  147. package/dist/components/navigation-stack.stories.d.ts.map +1 -1
  148. package/dist/components/now-playing-bars.d.ts +21 -0
  149. package/dist/components/now-playing-bars.d.ts.map +1 -0
  150. package/dist/components/now-playing-bars.stories.d.ts +12 -0
  151. package/dist/components/now-playing-bars.stories.d.ts.map +1 -0
  152. package/dist/components/number-morph.d.ts +11 -0
  153. package/dist/components/number-morph.d.ts.map +1 -0
  154. package/dist/components/pencilkit/pencil-canvas.d.ts +24 -0
  155. package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -0
  156. package/dist/components/pencilkit/pencil-canvas.stories.d.ts +18 -0
  157. package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -0
  158. package/dist/components/pencilkit/pencil-toolbar.d.ts +60 -0
  159. package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -0
  160. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +10 -0
  161. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -0
  162. package/dist/components/pencilkit/pencilkit-annotator.d.ts +8 -0
  163. package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -0
  164. package/dist/components/pencilkit/pk-icon.d.ts +8 -0
  165. package/dist/components/pencilkit/pk-icon.d.ts.map +1 -0
  166. package/dist/components/pencilkit/stroke-path.d.ts +11 -0
  167. package/dist/components/pencilkit/stroke-path.d.ts.map +1 -0
  168. package/dist/components/pencilkit/use-pencil-history.d.ts +15 -0
  169. package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -0
  170. package/dist/components/pill-button.d.ts +1 -1
  171. package/dist/components/pill-button.d.ts.map +1 -1
  172. package/dist/components/popover.d.ts +15 -0
  173. package/dist/components/popover.d.ts.map +1 -0
  174. package/dist/components/popover.stories.d.ts +9 -0
  175. package/dist/components/popover.stories.d.ts.map +1 -0
  176. package/dist/components/progress-ring.d.ts +66 -0
  177. package/dist/components/progress-ring.d.ts.map +1 -0
  178. package/dist/components/progress-ring.stories.d.ts +15 -0
  179. package/dist/components/progress-ring.stories.d.ts.map +1 -0
  180. package/dist/components/progress.d.ts +16 -0
  181. package/dist/components/progress.d.ts.map +1 -0
  182. package/dist/components/progress.stories.d.ts +10 -0
  183. package/dist/components/progress.stories.d.ts.map +1 -0
  184. package/dist/components/qr-svg.d.ts +30 -3
  185. package/dist/components/qr-svg.d.ts.map +1 -1
  186. package/dist/components/qr-svg.stories.d.ts +8 -1
  187. package/dist/components/qr-svg.stories.d.ts.map +1 -1
  188. package/dist/components/radio-group.d.ts +13 -0
  189. package/dist/components/radio-group.d.ts.map +1 -0
  190. package/dist/components/radio-group.stories.d.ts +10 -0
  191. package/dist/components/radio-group.stories.d.ts.map +1 -0
  192. package/dist/components/scroll-area.d.ts +9 -0
  193. package/dist/components/scroll-area.d.ts.map +1 -0
  194. package/dist/components/scroll-area.stories.d.ts +8 -0
  195. package/dist/components/scroll-area.stories.d.ts.map +1 -0
  196. package/dist/components/search-field.d.ts +12 -3
  197. package/dist/components/search-field.d.ts.map +1 -1
  198. package/dist/components/search-field.stories.d.ts +2 -0
  199. package/dist/components/search-field.stories.d.ts.map +1 -1
  200. package/dist/components/segmented.d.ts +5 -1
  201. package/dist/components/segmented.d.ts.map +1 -1
  202. package/dist/components/select.d.ts +26 -0
  203. package/dist/components/select.d.ts.map +1 -0
  204. package/dist/components/select.stories.d.ts +12 -0
  205. package/dist/components/select.stories.d.ts.map +1 -0
  206. package/dist/components/separator.d.ts +10 -0
  207. package/dist/components/separator.d.ts.map +1 -0
  208. package/dist/components/separator.stories.d.ts +9 -0
  209. package/dist/components/separator.stories.d.ts.map +1 -0
  210. package/dist/components/sheet.d.ts +29 -0
  211. package/dist/components/sheet.d.ts.map +1 -0
  212. package/dist/components/sheet.stories.d.ts +12 -0
  213. package/dist/components/sheet.stories.d.ts.map +1 -0
  214. package/dist/components/side-drawer.d.ts.map +1 -1
  215. package/dist/components/sidebar.d.ts +86 -0
  216. package/dist/components/sidebar.d.ts.map +1 -0
  217. package/dist/components/sidebar.stories.d.ts +10 -0
  218. package/dist/components/sidebar.stories.d.ts.map +1 -0
  219. package/dist/components/skeleton.d.ts +27 -0
  220. package/dist/components/skeleton.d.ts.map +1 -0
  221. package/dist/components/skeleton.stories.d.ts +11 -0
  222. package/dist/components/skeleton.stories.d.ts.map +1 -0
  223. package/dist/components/slider.d.ts +26 -0
  224. package/dist/components/slider.d.ts.map +1 -0
  225. package/dist/components/slider.stories.d.ts +12 -0
  226. package/dist/components/slider.stories.d.ts.map +1 -0
  227. package/dist/components/spinner.d.ts +2 -0
  228. package/dist/components/spinner.d.ts.map +1 -1
  229. package/dist/components/split-view.d.ts +199 -8
  230. package/dist/components/split-view.d.ts.map +1 -1
  231. package/dist/components/split-view.stories.d.ts +45 -2
  232. package/dist/components/split-view.stories.d.ts.map +1 -1
  233. package/dist/components/switch.d.ts +4 -1
  234. package/dist/components/switch.d.ts.map +1 -1
  235. package/dist/components/syntax-highlighting.d.ts +102 -0
  236. package/dist/components/syntax-highlighting.d.ts.map +1 -0
  237. package/dist/components/syntax-highlighting.stories.d.ts +18 -0
  238. package/dist/components/syntax-highlighting.stories.d.ts.map +1 -0
  239. package/dist/components/tab-bar.d.ts +2 -0
  240. package/dist/components/tab-bar.d.ts.map +1 -1
  241. package/dist/components/tab-view.d.ts +93 -0
  242. package/dist/components/tab-view.d.ts.map +1 -0
  243. package/dist/components/tab-view.stories.d.ts +28 -0
  244. package/dist/components/tab-view.stories.d.ts.map +1 -0
  245. package/dist/components/tabs.d.ts +26 -0
  246. package/dist/components/tabs.d.ts.map +1 -0
  247. package/dist/components/tabs.stories.d.ts +9 -0
  248. package/dist/components/tabs.stories.d.ts.map +1 -0
  249. package/dist/components/text-field.d.ts +9 -0
  250. package/dist/components/text-field.d.ts.map +1 -0
  251. package/dist/components/text-field.stories.d.ts +9 -0
  252. package/dist/components/text-field.stories.d.ts.map +1 -0
  253. package/dist/components/text-morph.d.ts +8 -0
  254. package/dist/components/text-morph.d.ts.map +1 -0
  255. package/dist/components/textarea.d.ts +9 -0
  256. package/dist/components/textarea.d.ts.map +1 -0
  257. package/dist/components/toast.d.ts +104 -0
  258. package/dist/components/toast.d.ts.map +1 -0
  259. package/dist/components/toast.stories.d.ts +13 -0
  260. package/dist/components/toast.stories.d.ts.map +1 -0
  261. package/dist/components/toggle-group.d.ts +15 -0
  262. package/dist/components/toggle-group.d.ts.map +1 -0
  263. package/dist/components/toggle-group.stories.d.ts +10 -0
  264. package/dist/components/toggle-group.stories.d.ts.map +1 -0
  265. package/dist/components/toggle.d.ts +10 -0
  266. package/dist/components/toggle.d.ts.map +1 -0
  267. package/dist/components/toggle.stories.d.ts +9 -0
  268. package/dist/components/toggle.stories.d.ts.map +1 -0
  269. package/dist/components/tooltip.d.ts +10 -0
  270. package/dist/components/tooltip.d.ts.map +1 -0
  271. package/dist/components/tooltip.stories.d.ts +11 -0
  272. package/dist/components/tooltip.stories.d.ts.map +1 -0
  273. package/dist/components/workbench/annotator.d.ts +22 -0
  274. package/dist/components/workbench/annotator.d.ts.map +1 -0
  275. package/dist/components/workbench/chat.d.ts +99 -0
  276. package/dist/components/workbench/chat.d.ts.map +1 -0
  277. package/dist/components/workbench/chat.stories.d.ts +13 -0
  278. package/dist/components/workbench/chat.stories.d.ts.map +1 -0
  279. package/dist/components/workbench/composer-files.d.ts +36 -0
  280. package/dist/components/workbench/composer-files.d.ts.map +1 -0
  281. package/dist/components/workbench/composer.d.ts +441 -0
  282. package/dist/components/workbench/composer.d.ts.map +1 -0
  283. package/dist/components/workbench/composer.stories.d.ts +35 -0
  284. package/dist/components/workbench/composer.stories.d.ts.map +1 -0
  285. package/dist/components/workbench/fixtures.d.ts +38 -0
  286. package/dist/components/workbench/fixtures.d.ts.map +1 -0
  287. package/dist/components/workbench/markdown.d.ts +26 -0
  288. package/dist/components/workbench/markdown.d.ts.map +1 -0
  289. package/dist/components/workbench/message-scroller.d.ts +16 -0
  290. package/dist/components/workbench/message-scroller.d.ts.map +1 -0
  291. package/dist/components/workbench/message-scroller.stories.d.ts +9 -0
  292. package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -0
  293. package/dist/components/workbench/model-picker.d.ts +29 -0
  294. package/dist/components/workbench/model-picker.d.ts.map +1 -0
  295. package/dist/components/workbench/models.d.ts +32 -0
  296. package/dist/components/workbench/models.d.ts.map +1 -0
  297. package/dist/components/workbench/snap-sheet.d.ts +12 -0
  298. package/dist/components/workbench/snap-sheet.d.ts.map +1 -0
  299. package/dist/components/workbench/snap-sheet.stories.d.ts +8 -0
  300. package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -0
  301. package/dist/components/workbench/surfaces.d.ts +67 -0
  302. package/dist/components/workbench/surfaces.d.ts.map +1 -0
  303. package/dist/components/workbench/surfaces.stories.d.ts +15 -0
  304. package/dist/components/workbench/surfaces.stories.d.ts.map +1 -0
  305. package/dist/components/workbench/terminal.d.ts +43 -0
  306. package/dist/components/workbench/terminal.d.ts.map +1 -0
  307. package/dist/components/workbench/terminal.stories.d.ts +8 -0
  308. package/dist/components/workbench/terminal.stories.d.ts.map +1 -0
  309. package/dist/components/workbench/thread-sidebar.d.ts +100 -0
  310. package/dist/components/workbench/thread-sidebar.d.ts.map +1 -0
  311. package/dist/components/workbench/thread-sidebar.stories.d.ts +9 -0
  312. package/dist/components/workbench/thread-sidebar.stories.d.ts.map +1 -0
  313. package/dist/components/workbench/wb-popover.d.ts +11 -0
  314. package/dist/components/workbench/wb-popover.d.ts.map +1 -0
  315. package/dist/components/workbench/workbench-composer.d.ts +26 -0
  316. package/dist/components/workbench/workbench-composer.d.ts.map +1 -0
  317. package/dist/demos/delivery/delivery-tracking-demo.d.ts +41 -0
  318. package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -0
  319. package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +13 -0
  320. package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +1 -0
  321. package/dist/demos/haptics-playground.d.ts +4 -1
  322. package/dist/demos/haptics-playground.d.ts.map +1 -1
  323. package/dist/demos/map-chat/geo.d.ts +46 -0
  324. package/dist/demos/map-chat/geo.d.ts.map +1 -0
  325. package/dist/demos/map-chat/map-agent.d.ts +48 -0
  326. package/dist/demos/map-chat/map-agent.d.ts.map +1 -0
  327. package/dist/demos/map-chat/map-chat-demo.d.ts +19 -0
  328. package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -0
  329. package/dist/demos/map-chat/map-chat-demo.stories.d.ts +16 -0
  330. package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +1 -0
  331. package/dist/demos/map-chat/map-icons.d.ts +44 -0
  332. package/dist/demos/map-chat/map-icons.d.ts.map +1 -0
  333. package/dist/demos/map-chat/places.d.ts +29 -0
  334. package/dist/demos/map-chat/places.d.ts.map +1 -0
  335. package/dist/demos/map-chat/tile-map.d.ts +72 -0
  336. package/dist/demos/map-chat/tile-map.d.ts.map +1 -0
  337. package/dist/demos/pencilkit/demo-strokes.d.ts +4 -0
  338. package/dist/demos/pencilkit/demo-strokes.d.ts.map +1 -0
  339. package/dist/demos/pencilkit/pencilkit-demo.d.ts +15 -0
  340. package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -0
  341. package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +11 -0
  342. package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +1 -0
  343. package/dist/demos/sidebar-demo.d.ts +9 -0
  344. package/dist/demos/sidebar-demo.d.ts.map +1 -0
  345. package/dist/demos/split-view-demos.d.ts +50 -0
  346. package/dist/demos/split-view-demos.d.ts.map +1 -0
  347. package/dist/index.css +2 -1
  348. package/dist/index.d.ts +169 -10
  349. package/dist/index.d.ts.map +1 -1
  350. package/dist/index.js +19360 -14635
  351. package/dist/lib/chat/chat-icon.d.ts +24 -0
  352. package/dist/lib/chat/chat-icon.d.ts.map +1 -0
  353. package/dist/lib/chat/chat-shell-context.d.ts +19 -0
  354. package/dist/lib/chat/chat-shell-context.d.ts.map +1 -0
  355. package/dist/lib/chat/chat-tokens.d.ts +72 -0
  356. package/dist/lib/chat/chat-tokens.d.ts.map +1 -0
  357. package/dist/lib/chat/chat-users.d.ts +18 -0
  358. package/dist/lib/chat/chat-users.d.ts.map +1 -0
  359. package/dist/lib/chat/kvib.d.ts +3 -0
  360. package/dist/lib/chat/kvib.d.ts.map +1 -0
  361. package/dist/lib/chat/persistent-host.d.ts +29 -0
  362. package/dist/lib/chat/persistent-host.d.ts.map +1 -0
  363. package/dist/lib/chat/title-ref.d.ts +3 -0
  364. package/dist/lib/chat/title-ref.d.ts.map +1 -0
  365. package/dist/lib/container.d.ts +21 -0
  366. package/dist/lib/container.d.ts.map +1 -0
  367. package/dist/lib/haptics.d.ts +7 -7
  368. package/dist/lib/haptics.d.ts.map +1 -1
  369. package/dist/lib/icon.d.ts +1297 -6
  370. package/dist/lib/icon.d.ts.map +1 -1
  371. package/dist/lib/icon.stories.d.ts +7 -0
  372. package/dist/lib/icon.stories.d.ts.map +1 -1
  373. package/dist/lib/motion.d.ts +74 -0
  374. package/dist/lib/motion.d.ts.map +1 -1
  375. package/dist/lib/pencilkit/constants.d.ts +33 -0
  376. package/dist/lib/pencilkit/constants.d.ts.map +1 -0
  377. package/dist/lib/primitives.d.ts +12 -0
  378. package/dist/lib/primitives.d.ts.map +1 -0
  379. package/dist/lib/qr.d.ts +28 -0
  380. package/dist/lib/qr.d.ts.map +1 -0
  381. package/dist/lib/sheet-drag.d.ts +38 -0
  382. package/dist/lib/sheet-drag.d.ts.map +1 -0
  383. package/dist/lib/syntax.d.ts +55 -0
  384. package/dist/lib/syntax.d.ts.map +1 -0
  385. package/dist/lib/theme.d.ts +14 -4
  386. package/dist/lib/theme.d.ts.map +1 -1
  387. package/dist/lib/utils.d.ts +1 -0
  388. package/dist/lib/utils.d.ts.map +1 -1
  389. package/dist/lib/workbench/haptics.d.ts +3 -0
  390. package/dist/lib/workbench/haptics.d.ts.map +1 -0
  391. package/dist/lib/workbench/icons.d.ts +29 -0
  392. package/dist/lib/workbench/icons.d.ts.map +1 -0
  393. package/dist/lib/workbench/motion.d.ts +83 -0
  394. package/dist/lib/workbench/motion.d.ts.map +1 -0
  395. package/dist/lib/workbench/press.d.ts +10 -0
  396. package/dist/lib/workbench/press.d.ts.map +1 -0
  397. package/dist/lib/workbench/theme.d.ts +16 -0
  398. package/dist/lib/workbench/theme.d.ts.map +1 -0
  399. package/dist/lib/workbench/util.d.ts +6 -0
  400. package/dist/lib/workbench/util.d.ts.map +1 -0
  401. package/dist/stories/primitive-frame.d.ts +20 -0
  402. package/dist/stories/primitive-frame.d.ts.map +1 -0
  403. package/dist/templates/artifact-chat-container.d.ts +63 -0
  404. package/dist/templates/artifact-chat-container.d.ts.map +1 -0
  405. package/dist/templates/artifact-chat-container.stories.d.ts +24 -0
  406. package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -0
  407. package/dist/templates/chat-shell.d.ts +86 -0
  408. package/dist/templates/chat-shell.d.ts.map +1 -0
  409. package/dist/templates/chat-shell.stories.d.ts +22 -0
  410. package/dist/templates/chat-shell.stories.d.ts.map +1 -0
  411. package/dist/templates/workbench-shell.d.ts +177 -0
  412. package/dist/templates/workbench-shell.d.ts.map +1 -0
  413. package/dist/templates/workbench-shell.stories.d.ts +17 -0
  414. package/dist/templates/workbench-shell.stories.d.ts.map +1 -0
  415. package/package.json +28 -8
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Tooltip } from './tooltip';
3
+ declare const meta: Meta<typeof Tooltip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Tooltip>;
6
+ export declare const Top: Story;
7
+ export declare const Bottom: Story;
8
+ export declare const End: Story;
9
+ export declare const Dark: Story;
10
+ export declare const HoverToOpen: Story;
11
+ //# sourceMappingURL=tooltip.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.stories.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAkB,MAAM,WAAW,CAAC;AAKpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAG9B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAatC,eAAO,MAAM,GAAG,EAAE,KAA2D,CAAC;AAC9E,eAAO,MAAM,MAAM,EAAE,KAA8E,CAAC;AACpG,eAAO,MAAM,GAAG,EAAE,KAA2E,CAAC;AAC9F,eAAO,MAAM,IAAI,EAAE,KAAgE,CAAC;AACpF,eAAO,MAAM,WAAW,EAAE,KAAwE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ export interface ComposerAnnotatorSurface {
3
+ /** The drawing surface, stretched over the image. Its first <svg> is flattened into the image on save. */
4
+ canvas: React.ReactNode;
5
+ /** Tools, in a bar under the image so they never cover it. */
6
+ toolbar?: React.ReactNode;
7
+ /** The lightbox's heading (default "Annotate — strokes flatten into the image on save"). */
8
+ title?: string;
9
+ }
10
+ export interface ComposerAnnotatorProps {
11
+ /** Lays the surface out in the lightbox: call it with the canvas and tools and return the result. */
12
+ children: (surface: ComposerAnnotatorSurface) => React.ReactNode;
13
+ }
14
+ export type ComposerAnnotator = React.ComponentType<ComposerAnnotatorProps>;
15
+ /** Swaps the annotator for every Composer (and AnnotateLightbox) below it; `null` opts them out (plain preview). */
16
+ export declare function ComposerAnnotatorProvider({ annotator, children }: {
17
+ annotator: ComposerAnnotator | null;
18
+ children?: React.ReactNode;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ /** The annotator in effect: the nearest ComposerAnnotatorProvider's, else `PencilKitAnnotator`; `null` if opted out. */
21
+ export declare function useComposerAnnotator(): ComposerAnnotator | null;
22
+ //# sourceMappingURL=annotator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/annotator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,WAAW,wBAAwB;IACvC,0GAA0G;IAC1G,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,sBAAsB;IACrC,qGAAqG;IACrG,QAAQ,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,KAAK,CAAC,SAAS,CAAC;CAClE;AACD,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;AAI5E,oHAAoH;AACpH,wBAAgB,yBAAyB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAErI;AAED,wHAAwH;AACxH,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,IAAI,CAE/D"}
@@ -0,0 +1,99 @@
1
+ import { WIconName } from '../../lib/workbench/icons';
2
+ import * as React from 'react';
3
+ type Div = {
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ children?: React.ReactNode;
7
+ };
8
+ export interface ConversationProps extends Div {
9
+ /** no thread yet: show the empty state */
10
+ empty?: boolean;
11
+ }
12
+ export declare function Conversation({ empty, className, style, children }: ConversationProps): import("react/jsx-runtime").JSX.Element;
13
+ /** Content above the composer while the conversation is empty; leaves upward when the thread starts. */
14
+ export declare function ConversationEmpty({ className, children }: Div): import("react/jsx-runtime").JSX.Element;
15
+ export interface ConversationGreetingProps {
16
+ title: React.ReactNode;
17
+ description?: React.ReactNode;
18
+ /** replaces the tinted spark tile */
19
+ icon?: React.ReactNode;
20
+ className?: string;
21
+ }
22
+ export declare function ConversationGreeting({ title, description, icon, className }: ConversationGreetingProps): import("react/jsx-runtime").JSX.Element;
23
+ export interface ConversationMessagesProps {
24
+ /** identifies the thread; switching it re-opens the scroller at the last anchor */
25
+ threadKey?: string | null;
26
+ streaming?: boolean;
27
+ /** px of the previous turn left peeking above a new anchor */
28
+ peek?: number;
29
+ /** keyed messages; `UserMessage`s anchor the scroll */
30
+ children?: React.ReactNode;
31
+ }
32
+ /** The thread's messages in a MessageScroller: new turns anchor near the top, replies grow below. */
33
+ export declare function ConversationMessages({ threadKey, streaming, peek, children }: ConversationMessagesProps): import("react/jsx-runtime").JSX.Element;
34
+ /** Docks the composer: centred while empty, at the bottom of the thread after. The same element in both
35
+ states, so it FLIPs from one place to the other. */
36
+ export declare function ConversationComposer({ className, style, children }: Div): import("react/jsx-runtime").JSX.Element;
37
+ /** Suggestion chips under the empty composer. */
38
+ export declare function ConversationSuggestions({ className, children }: Div): import("react/jsx-runtime").JSX.Element;
39
+ export declare function Suggestion({ onPress, className, children }: {
40
+ onPress?: () => void;
41
+ className?: string;
42
+ children?: React.ReactNode;
43
+ }): import("react/jsx-runtime").JSX.Element;
44
+ export interface UserMessageProps {
45
+ /** image attachments, shown above the bubble */
46
+ images?: string[];
47
+ /** anchors the scroller (default true) */
48
+ anchor?: boolean;
49
+ className?: string;
50
+ children?: React.ReactNode;
51
+ }
52
+ export declare function UserMessage({ images, className, children }: UserMessageProps): import("react/jsx-runtime").JSX.Element;
53
+ export declare function AssistantMessage({ className, children }: {
54
+ anchor?: boolean;
55
+ className?: string;
56
+ children?: React.ReactNode;
57
+ }): import("react/jsx-runtime").JSX.Element;
58
+ export declare function ConversationTyping({ className }: {
59
+ className?: string;
60
+ }): import("react/jsx-runtime").JSX.Element;
61
+ /** The reply body: streaming markdown, and the typing dots until the first token. */
62
+ export declare function MessageMarkdown({ markdown, streaming }: {
63
+ markdown?: string;
64
+ streaming?: boolean;
65
+ }): import("react/jsx-runtime").JSX.Element;
66
+ export interface WorkLogProps {
67
+ /** the collapsed row, e.g. "Worked for 1m 4s" */
68
+ summary: React.ReactNode;
69
+ defaultOpen?: boolean;
70
+ /** ToolCall rows; with none the row is static */
71
+ children?: React.ReactNode;
72
+ className?: string;
73
+ }
74
+ /** "Worked for Ns" — expands (on a spring) into the tool calls behind the reply. */
75
+ export declare function WorkLog({ summary, defaultOpen, children, className }: WorkLogProps): import("react/jsx-runtime").JSX.Element;
76
+ export interface ToolCallProps {
77
+ icon?: WIconName;
78
+ /** what the agent did */
79
+ title: React.ReactNode;
80
+ /** secondary text: a URL, a path, a count */
81
+ detail?: React.ReactNode;
82
+ /** a command or snippet, shown in a mono well */
83
+ code?: string;
84
+ status?: 'done' | 'running' | 'error';
85
+ className?: string;
86
+ }
87
+ /** One step in a WorkLog. */
88
+ export declare function ToolCall({ icon, title, detail, code, status, className }: ToolCallProps): import("react/jsx-runtime").JSX.Element;
89
+ export interface SettledBannerProps {
90
+ onUnsettle: () => void;
91
+ title?: React.ReactNode;
92
+ description?: React.ReactNode;
93
+ className?: string;
94
+ style?: React.CSSProperties;
95
+ }
96
+ /** Above the composer of a settled thread; sending (or Un-settle) moves it back to Active. */
97
+ export declare function SettledBanner({ onUnsettle, title, description, className, style, }: SettledBannerProps): import("react/jsx-runtime").JSX.Element;
98
+ export {};
99
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAoBlE,KAAK,GAAG,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM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,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,oFAAoF;AACpF,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,WAAmB,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,YAAY,2CA+C1F;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yBAAyB;IACzB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,6BAA6B;AAC7B,wBAAgB,QAAQ,CAAC,EAAE,IAAc,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAe,EAAE,SAAS,EAAE,EAAE,aAAa,2CAiB1G;AAGD,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AACD,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,KAAgC,EAChC,WAAyE,EACzE,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,2CAuBpB"}
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Conversation } from './chat';
3
+ declare const meta: Meta<typeof Conversation>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Conversation>;
6
+ export declare const Thread: Story;
7
+ export declare const Settled: Story;
8
+ export declare const Empty: Story;
9
+ export declare const Streaming: Story;
10
+ export declare const BannerAndTrace: Story;
11
+ export declare const EmptyThreadStreaming: Story;
12
+ export declare const WorkLogOpen: Story;
13
+ //# sourceMappingURL=chat.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.stories.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/chat.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,YAAY,EAab,MAAM,QAAQ,CAAC;AAIhB,OAAO,kBAAkB,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAInC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AA6C3C,eAAO,MAAM,MAAM,EAAE,KAA2E,CAAC;AAOjG,eAAO,MAAM,OAAO,EAAE,KAAwD,CAAC;AAG/E,eAAO,MAAM,KAAK,EAAE,KAAqE,CAAC;AAG1F,eAAO,MAAM,SAAS,EAAE,KAkBvB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAC;AAGF,eAAO,MAAM,oBAAoB,EAAE,KAkBlC,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC"}
@@ -0,0 +1,36 @@
1
+ /** What an attachment is, for its tile: an image thumbnail, a video poster, a text excerpt, or an icon. */
2
+ export type ComposerAttachmentKind = 'image' | 'video' | 'audio' | 'pdf' | 'text' | 'archive' | 'other';
3
+ /** The lower-case extension of a file name, without the dot ("" when there is none). */
4
+ export declare function fileExtension(name: string | undefined): string;
5
+ /** The kind of a file from its MIME type, falling back to its extension (browsers leave many types blank). */
6
+ export declare function attachmentKind(type: string | undefined, name?: string): ComposerAttachmentKind;
7
+ /**
8
+ * Whether a file passes an `acceptedFileTypes` list: MIME types (`application/pdf`), wildcards (`image/*`) and
9
+ * extensions (`.md`), as in an `<input accept>`. No list (or an empty one) accepts everything.
10
+ */
11
+ export declare function acceptsFile(file: {
12
+ name?: string;
13
+ type?: string;
14
+ }, accepted: readonly string[] | undefined): boolean;
15
+ /** A short, human description of an accept list: "Images, PDFs and .md files". */
16
+ export declare function describeAccepted(accepted: readonly string[] | undefined): string;
17
+ /** "84 KB", "1.3 MB". */
18
+ export declare function formatFileSize(bytes: number | undefined): string;
19
+ /** A name that is safe in `![name](attachment:id)` and `alt="…"`. */
20
+ export declare function attachmentFileName(file: File, fallback?: string): string;
21
+ export declare function readFileAsDataURL(file: Blob): Promise<string>;
22
+ /** The first lines of a text file (tabs expanded, long lines clipped); `undefined` for binary-looking data. */
23
+ export declare function textExcerpt(file: Blob, { lines, columns, bytes }?: {
24
+ lines?: number | undefined;
25
+ columns?: number | undefined;
26
+ bytes?: number | undefined;
27
+ }): Promise<string | undefined>;
28
+ /**
29
+ * A poster for a video: its first frame (a little in, to skip a black lead-in), drawn to a small canvas.
30
+ * Resolves `undefined` when the browser can't decode it in time.
31
+ */
32
+ export declare function videoPoster(url: string, { width, timeout }?: {
33
+ width?: number | undefined;
34
+ timeout?: number | undefined;
35
+ }): Promise<string | undefined>;
36
+ //# sourceMappingURL=composer-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composer-files.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/composer-files.ts"],"names":[],"mappings":"AAKA,2GAA2G;AAC3G,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAaxG,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK9D;AAED,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,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