@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 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/lib/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,KAAK,SAAS,GAAG;IAAE,CA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react-vite';
2
2
  import { Icon } from './icon';
3
3
  declare const meta: Meta<typeof Icon>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Icon>;
6
+ /** Every canonical icon, alphabetical. */
6
7
  export declare const Gallery: Story;
7
8
  export declare const Sizes: Story;
9
+ /** Filter by name or keyword (try "mute", "search", "lyrics"); click an icon to copy its JSX. */
10
+ export declare const Search: Story;
11
+ /** Each weight maps to a stroke width; filled shapes stay the same. */
12
+ export declare const Weights: Story;
13
+ /** The set grouped by use. Hover an icon for its name. */
14
+ export declare const Categories: Story;
8
15
  //# sourceMappingURL=icon.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.stories.d.ts","sourceRoot":"","sources":["../../src/lib/icon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAM,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAI3B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC"}
1
+ {"version":3,"file":"icon.stories.d.ts","sourceRoot":"","sources":["../../src/lib/icon.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAA4D,IAAI,EAAsC,MAAM,QAAQ,CAAC;AAG5H,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAI3B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,0CAA0C;AAC1C,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAkCF,iGAAiG;AACjG,eAAO,MAAM,MAAM,EAAE,KAA2C,CAAC;AAIjE,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAOF,0DAA0D;AAC1D,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC"}
@@ -1,6 +1,4 @@
1
- import type { StrokeOptions } from 'perfect-freehand';
2
- export declare const PFONT = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',sans-serif";
3
- export declare const PMONO = "ui-monospace,'SF Mono',Menlo,Consolas,monospace";
1
+ import { StrokeOptions } from 'perfect-freehand';
4
2
  export type PencilDrawTool = 'pen' | 'marker' | 'pencil';
5
3
  export type PencilTool = PencilDrawTool | 'eraser';
6
4
  export interface PencilToolDef {
@@ -10,6 +8,7 @@ export interface PencilToolDef {
10
8
  alpha: number;
11
9
  }
12
10
  export declare const PK_TOOLS: Record<PencilDrawTool, PencilToolDef>;
11
+ /** The ink swatches (content colors: they are drawn into the strokes, so they don't follow the theme). */
13
12
  export declare const PK_INKS: string[];
14
13
  export declare const PK_W: {
15
14
  m: number;
@@ -24,10 +23,11 @@ export interface PencilStroke {
24
23
  points: PencilPoint[];
25
24
  done: boolean;
26
25
  }
27
- export type PKIconName = 'pen' | 'marker' | 'pencil' | 'eraser' | 'undo' | 'redo' | 'trash';
28
- export declare const PKI: Record<PKIconName, {
29
- d: string;
30
- }[]>;
31
- export declare const PK_LIGHT: Record<string, string>;
32
- export declare const PK_DARK: Record<string, string>;
26
+ /** The Icon each tool draws (the former PencilKit icon set now lives in `Icon`). */
27
+ export declare const PK_TOOL_ICONS: {
28
+ readonly pen: "pencil-tip";
29
+ readonly marker: "highlighter";
30
+ readonly pencil: "pencil-sketch";
31
+ readonly eraser: "eraser";
32
+ };
33
33
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
-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AQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa3C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa1C,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/pencilkit/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,aAAa,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,cAAc,EAAE,aAAa,CAO1D,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,OAAO,UAAqE,CAAC;AAE1F,eAAO,MAAM,IAAI,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAK1C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,oFAAoF;AACpF,eAAO,MAAM,aAAa;;;;;CAKqB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /** Keyboard focus ring for react-aria elements (data-focus-visible). */
2
2
  export declare const focusRing = "outline-none data-focus-visible:ring-[3px] data-focus-visible:ring-ring/45";
3
3
  /** Floating surface for popovers, menus and select/combobox lists. */
4
- export declare const popoverSurface = "rounded-[14px] bg-popover text-popover-foreground shadow-[0_12px_40px_rgba(0,0,0,.2),0_0_0_.5px_var(--bl-sep)] outline-none";
4
+ export declare const popoverSurface = "rounded-[14px] bg-popover text-popover-foreground shadow-[0_12px_40px_--alpha(black/20%),0_0_0_.5px_var(--border)] outline-none";
5
5
  /** Enter/exit for anchored overlays: grows out of the trigger (scale from the anchor point, drifting a few px
6
6
  away from it) on the snappy spring; exits are quicker. */
7
7
  export declare const popoverMotion: string;
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/lib/primitives.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,SAAS,+EAA+E,CAAC;AAEtG,sEAAsE;AACtE,eAAO,MAAM,cAAc,gIACoG,CAAC;AAEhI;6DAC6D;AAC7D,eAAO,MAAM,aAAa,QAIf,CAAC;AAEZ,8FAA8F;AAC9F,eAAO,MAAM,QAAQ,YAAY,CAAC;AAElC,mFAAmF;AACnF,eAAO,MAAM,cAAc,2CAA2C,CAAC"}
1
+ {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/lib/primitives.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,SAAS,+EAA+E,CAAC;AAEtG,sEAAsE;AACtE,eAAO,MAAM,cAAc,oIACwG,CAAC;AAEpI;6DAC6D;AAC7D,eAAO,MAAM,aAAa,QAIf,CAAC;AAEZ,8FAA8F;AAC9F,eAAO,MAAM,QAAQ,YAAY,CAAC;AAElC,mFAAmF;AACnF,eAAO,MAAM,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,28 @@
1
+ export type QRLevel = 'L' | 'M' | 'Q' | 'H';
2
+ export interface QROptions {
3
+ /** Error-correction level (default 'M'). L ~7%, M ~15%, Q ~25%, H ~30% recoverable. */
4
+ level?: QRLevel;
5
+ /** Smallest version (1–40) to consider (default 1). */
6
+ minVersion?: number;
7
+ /** Largest version (1–40) to consider (default 40). */
8
+ maxVersion?: number;
9
+ /** Force a mask pattern 0–7 instead of choosing the lowest penalty (default: auto). */
10
+ mask?: number;
11
+ }
12
+ export interface QRCode {
13
+ /** Modules per side (17 + 4 * version). */
14
+ size: number;
15
+ version: number;
16
+ level: QRLevel;
17
+ mask: number;
18
+ /** `modules[y][x]` is true for a dark module. */
19
+ modules: boolean[][];
20
+ }
21
+ /** Number of 8-bit data codewords (excluding ECC) for this version and level. */
22
+ export declare function numDataCodewords(ver: number, level: QRLevel): number;
23
+ /**
24
+ * Encode `text` (UTF-8, byte mode) as a QR Code, picking the smallest version that fits at the
25
+ * requested error-correction level and the mask with the lowest penalty score.
26
+ */
27
+ export declare function encodeQR(text: string, opts?: QROptions): QRCode;
28
+ //# sourceMappingURL=qr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qr.d.ts","sourceRoot":"","sources":["../../src/lib/qr.ts"],"names":[],"mappings":"AAuBA,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE5C,MAAM,WAAW,SAAS;IACxB,uFAAuF;IACvF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,MAAM;IACrB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC;CACtB;AAwCD,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAGpE;AA4PD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,SAAc,GAAG,MAAM,CAwDnE"}
@@ -0,0 +1,9 @@
1
+ /** The id of the element that names the controls inside it — ListRow publishes its title's id, so a Switch or
2
+ Slider anywhere in the row (even wrapped in the caller's own component) is labelled by the row title. */
3
+ export declare const RowLabelContext: import('react').Context<string | undefined>;
4
+ /** `aria-labelledby` for a control: its own label wins; else the enclosing row's title. */
5
+ export declare function useRowLabel(props: {
6
+ 'aria-label'?: string;
7
+ 'aria-labelledby'?: string;
8
+ }): string | undefined;
9
+ //# sourceMappingURL=row-label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-label.d.ts","sourceRoot":"","sources":["../../src/lib/row-label.ts"],"names":[],"mappings":"AAEA;4GAC4G;AAC5G,eAAO,MAAM,eAAe,6CAA+C,CAAC;AAE5E,2FAA2F;AAC3F,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,sBAIvF"}
@@ -1,10 +1,9 @@
1
- import { type PointerEvent as ReactPointerEvent } from 'react';
1
+ import { PointerEvent as ReactPointerEvent } from 'react';
2
+ import { SpringName } from './motion';
2
3
  /** Pointer travel below which a handle drag counts as a tap. */
3
4
  export declare const SHEET_TAP_SLOP = 4;
4
5
  /** Extra downward travel (past the peek) that folds the surface into its FAB. */
5
6
  export declare const SHEET_MINIMIZE_TRAVEL = 96;
6
- /** Fraction of the open travel past which a release snaps open. */
7
- export declare const SHEET_OPEN_THRESHOLD = 0.35;
8
7
  export interface SheetDragOptions {
9
8
  open: boolean;
10
9
  onOpenChange: (open: boolean) => void;
@@ -12,17 +11,26 @@ export interface SheetDragOptions {
12
11
  peek: number;
13
12
  /** Body height when fully open. */
14
13
  maxReveal: number;
14
+ /** Extra resting heights between `peek` and `maxReveal` (px of body). */
15
+ detents?: number[];
15
16
  /** Allow dragging below the resting height to fold into a FAB. */
16
17
  minimizable?: boolean;
17
18
  minimized?: boolean;
18
19
  onMinimizedChange?: (minimized: boolean) => void;
20
+ /** Spring the body settles with (default `tray`). */
21
+ spring?: SpringName;
19
22
  }
20
23
  export interface SheetDragState {
21
- /** Live body height while dragging; null when settled. */
22
- dragReveal: number | null;
23
- /** Live fold progress (0–1) while dragging below rest; null when settled. */
24
- dragMinimize: number | null;
24
+ /** The body height to draw this frame (follows the finger, then springs to rest). */
25
+ reveal: number;
26
+ /** 0–1 fold towards the FAB to draw this frame. */
27
+ minimize: number;
28
+ /** A finger is on the handle. */
25
29
  dragging: boolean;
30
+ /** The spring is carrying the body to rest after a release or a state change. */
31
+ settling: boolean;
32
+ /** The middle detent the sheet rests at (px), or null at peek/open. */
33
+ detent: number | null;
26
34
  /** Spread on the handle element. */
27
35
  handlers: {
28
36
  onPointerDown: (event: ReactPointerEvent<HTMLElement>) => void;
@@ -34,5 +42,12 @@ export interface SheetDragState {
34
42
  /** A tap on the handle: toggles open (ignored right after a drag). */
35
43
  toggle: () => void;
36
44
  }
37
- export declare function useSheetDrag({ open, onOpenChange, peek, maxReveal, minimizable, onMinimizedChange, }: SheetDragOptions): SheetDragState;
45
+ /**
46
+ * The grow / snap / fold gesture behind FloatingSheet's cap and Composer's draggable bump. The body follows
47
+ * the pointer one-to-one (rubber-banding past its ends); on release the pointer's velocity is projected
48
+ * forward to pick a stop (peek, a detent, open, or the FAB) and a spring carries the body there *from that
49
+ * velocity*, so a flick keeps its momentum. Grabbing mid-flight catches the body where it is. State changes
50
+ * from outside (a tap, Escape, `peek` changing) spring too. Snaps tick.
51
+ */
52
+ export declare function useSheetDrag({ open, onOpenChange, peek, maxReveal, detents, minimizable, minimized, onMinimizedChange, spring, }: SheetDragOptions): SheetDragState;
38
53
  //# sourceMappingURL=sheet-drag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sheet-drag.d.ts","source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,aAAa,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;QAC/D,aAAa,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;QAC/D,WAAW,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;QAC7D,eAAe,EAAE,MAAM,IAAI,CAAC;QAC5B,oBAAoB,EAAE,MAAM,IAAI,CAAC;KAClC,CAAC;IACF,sEAAsE;IACtE,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAID;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,OAAY,EACZ,WAAmB,EACnB,SAAiB,EACjB,iBAAiB,EACjB,MAAe,GAChB,EAAE,gBAAgB,GAAG,cAAc,CAyKnC"}
@@ -10,21 +10,38 @@ export interface SyntaxToken {
10
10
  type: SyntaxTokenType;
11
11
  text: string;
12
12
  }
13
- /** What produced the tokens: `gpu` (gpu-lexer on WebGPU), `fallback` (no WebGPU), `pending` (plain text shown while
14
- the GPU works), `none` (plain-text language or highlighting disabled). */
13
+ /** What produced the tokens: `gpu` (gpu-lexer on WebGPU), `fallback` (no hardware WebGPU, or forced), `pending`
14
+ (plain text shown while the adapter probe or the GPU works), `none` (plain-text language or highlighting
15
+ disabled). */
15
16
  export type SyntaxHighlighter = 'gpu' | 'fallback' | 'pending' | 'none';
16
17
  export interface SyntaxResult {
17
18
  spans: SyntaxSpan[];
18
19
  highlighter: 'gpu' | 'fallback';
19
20
  }
20
- /** False when WebGPU can't run here: no `navigator.gpu` (Firefox/Safari without it, insecure contexts, SSR) or
21
- a previous attempt found no adapter. `true` means "worth trying" until the first parse settles it. */
22
- export declare function webgpuSupported(): boolean;
23
- /** A finished result for this source, if one is cached: the GPU's, or the fallback's once WebGPU is known to be
24
- unavailable. */
25
- export declare function peekSyntax(code: string): SyntaxResult | undefined;
26
- /** Lex `code`: gpu-lexer when WebGPU is available, else the small fallback. Cached and de-duplicated. */
27
- export declare function lexSyntax(code: string): Promise<SyntaxResult>;
21
+ /** Which lexer to use. `auto` (default): gpu-lexer on a hardware WebGPU adapter, the fallback at once when the
22
+ only adapter is a software one (SwiftShader, llvmpipe, …), there is none, or the probe times out. `gpu`:
23
+ gpu-lexer whenever WebGPU has any adapter, software included. `fallback`: always the fallback. */
24
+ export type SyntaxEngine = 'auto' | 'gpu' | 'fallback';
25
+ /** What the one-time adapter probe found: a `hardware` adapter, only a `software`/fallback one (or the probe timed
26
+ out), or `none` (no `navigator.gpu`, no adapter, insecure context, SSR). */
27
+ export type WebGPUProbe = 'hardware' | 'software' | 'none';
28
+ /** Probe WebGPU once per page (cached): is there an adapter, and is it real hardware? Settles within ~2.5 s; a probe
29
+ that takes longer counts as `software` (so `auto` falls back), and a late answer still updates later lexes. */
30
+ export declare function probeWebGPU(): Promise<WebGPUProbe>;
31
+ /** Whether `engine` (default `auto`) should use gpu-lexer here. `false` when there is no `navigator.gpu`
32
+ (Firefox/Safari without it, insecure contexts, SSR), the probe found no adapter, or a lex found WebGPU
33
+ unavailable — and, for `auto`, when the probe found only a software adapter. `true` means "worth trying" while
34
+ the probe is still pending. */
35
+ export declare function webgpuSupported(engine?: SyntaxEngine): boolean;
36
+ /** A finished result for this source, if one is cached: the GPU's, or the fallback's once `engine` is known not to
37
+ use the GPU here. */
38
+ export declare function peekSyntax(code: string, engine?: SyntaxEngine): SyntaxResult | undefined;
39
+ /** Re-cut keyword/type/function/constant spans so operators read as `operator` and punctuation and whitespace as
40
+ plain (dropped); comment, string, number and operator spans pass through. Output is sorted and non-overlapping. */
41
+ export declare function normalizeSpans(code: string, spans: readonly SyntaxSpan[]): SyntaxSpan[];
42
+ /** Lex `code` with `engine` (default `auto`): gpu-lexer when the engine and the one-time adapter probe allow it,
43
+ else the small fallback. Cached and de-duplicated. */
44
+ export declare function lexSyntax(code: string, engine?: SyntaxEngine): Promise<SyntaxResult>;
28
45
  /** The fallback result, synchronously (cached). */
29
46
  export declare function fallbackResult(code: string): SyntaxResult;
30
47
  export declare function fallbackSpans(code: string): SyntaxSpan[];
@@ -1 +1 @@
1
- {"version":3,"file":"syntax.d.ts","sourceRoot":"","sources":["../../src/lib/syntax.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf,2FAA2F;AAC3F,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,oCAAoC;AACpC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;6EAC6E;AAC7E,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAExE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,WAAW,EAAE,KAAK,GAAG,UAAU,CAAC;CACjC;AAOD;yGACyG;AACzG,wBAAgB,eAAe,IAAI,OAAO,CAGzC;AAsBD;mBACmB;AACnB,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEjE;AAgCD,yGAAyG;AACzG,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CA0B7D;AAED,mDAAmD;AACnD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAMzD;AAeD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CA0BxD;AAID;gEACgE;AAChE,wBAAgB,aAAa,CAAC,IAAI,E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AI,EAAE,MAAM,EAAE,MAAM,GAAE,YAAqB,GAAG,YAAY,GAAG,SAAS,CAGhG;AA+BD;sHACsH;AACtH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,UAAU,EAAE,CAoCvF;AAgDD;yDACyD;AACzD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,YAAqB,GAAG,OAAO,CAAC,YAAY,CAAC,CAgB5F;AAED,mDAAmD;AACnD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAMzD;AAgBD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CA0BxD;AAID;gEACgE;AAChE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,IAAI,GAAG,WAAW,EAAE,EAAE,CAuBhG;AAED,4GAA4G;AAC5G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWrD;AAED,sCAAsC;AACtC,eAAO,MAAM,eAAe,aAAyD,CAAC"}
@@ -1,25 +1,56 @@
1
- import { type CSSProperties, type ReactNode } from 'react';
1
+ import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
2
  export declare const chromeStore: {
3
3
  hidden: boolean;
4
4
  subs: Set<(v: boolean) => void>;
5
5
  set(v: boolean): void;
6
6
  };
7
7
  export declare function useChromeHidden(): boolean;
8
- export declare const BLSafeCtx: import("react").Context<number>;
9
- export declare const BLStickyCtx: import("react").Context<number>;
8
+ export declare const BLSafeCtx: import('react').Context<number>;
9
+ export declare const BLStickyCtx: import('react').Context<number>;
10
10
  export declare const chromeOffset: (top: number, hidden: boolean) => number;
11
11
  export type Appearance = 'light' | 'dark';
12
- export declare const AppearanceContext: import("react").Context<Appearance | undefined>;
12
+ export declare const AppearanceContext: import('react').Context<Appearance | undefined>;
13
13
  export declare function AppearanceProvider({ value, children }: {
14
14
  value: Appearance | undefined;
15
15
  children?: ReactNode;
16
16
  }): import("react/jsx-runtime").JSX.Element;
17
- export declare const useAppearance: () => Appearance | undefined;
18
- export declare const darkVars: (tint: string) => Record<string, string>;
19
- export declare const lightVars: (tint: string) => Record<string, string>;
17
+ export declare function useAppearance(): Appearance | undefined;
18
+ export type ThemeScopeName = 'workbench' | 'chat' | 'terminal' | 'sheet' | 'glass';
19
+ /** Root classes for an appearance: shadcn's `dark` (or `light`) plus the matching color-scheme. */
20
+ export declare const themeScopeClass: (appearance: Appearance | undefined) => "" | "dark scheme-dark" | "light scheme-light";
21
+ /** --primary / --ring for a tint (nothing when no tint is given, so the theme's primary applies). */
22
+ export declare const tintVars: (tint?: string) => CSSProperties;
23
+ /** The props a scope root carries: `data-theme-scope`, the appearance class and the tint. */
24
+ export declare function themeScopeProps({ scope, appearance, tint }: {
25
+ scope?: ThemeScopeName;
26
+ appearance?: Appearance;
27
+ tint?: string;
28
+ }): {
29
+ 'data-theme-scope': ThemeScopeName | undefined;
30
+ className: string;
31
+ style: CSSProperties;
32
+ };
33
+ /** The theme variables a portalled overlay copies from the element that opened it, so it keeps that surface's
34
+ palette wherever it renders. */
35
+ export declare const THEME_VARS: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "success", "warning", "tertiary-foreground", "secondary-strong", "overlay", "bar", "sticky", "handle", "link", "code", "code-foreground"];
36
+ /** The resolved theme variables (and color-scheme) at an element, as a style object. */
37
+ export declare function readThemeVars(el: Element | null | undefined): CSSProperties;
38
+ export interface ThemeScopeProps extends HTMLAttributes<HTMLDivElement> {
39
+ /** The surface palette the bl-theme defines: `workbench`, `chat`, `terminal`, `sheet` (a floating chat surface's tone) or `glass` (the Composer floating over content). Omit for the plain theme. */
40
+ scope?: ThemeScopeName;
41
+ /** Defaults to the ambient `AppearanceProvider` value; without one a plain scope inherits the page's `.dark` / light,
42
+ a surface scope is light (the terminal scope is always dark). */
43
+ appearance?: Appearance;
44
+ /** Accent for the subtree (--primary / --ring). */
45
+ tint?: string;
46
+ }
47
+ /** A subtree with its own appearance, accent and (optionally) surface palette. */
48
+ export declare function ThemeScope({ scope, appearance: appearanceProp, tint, className, style, ...props }: ThemeScopeProps): import("react/jsx-runtime").JSX.Element;
20
49
  export interface BLProviderProps {
21
- /** Defaults to the ambient `AppearanceProvider` value, else light. */
50
+ /** Defaults to the ambient `AppearanceProvider` value; without one the provider inherits the page's appearance
51
+ (shadcn's `.dark` on an ancestor, else light). */
22
52
  dark?: boolean;
53
+ /** Accent for everything below: sets --primary and --ring. Defaults to the theme's primary. */
23
54
  tint?: string;
24
55
  /** Dynamic Island floor. `true` → 59px, a number → that many px. */
25
56
  safeTop?: boolean | number;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/lib/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+D,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOxH,eAAO,MAAM,WAAW;;kBAEJ,OAAO,KAAK,IAAI;WAC3B,OAAO;CACf,CAAC;AAEF,wBAAgB,eAAe,YAQ9B;AAID,eAAO,MAAM,SAAS,iCAAmB,CAAC;AAK1C,eAAO,MAAM,WAAW,iCAAmB,CAAC;AAC5C,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,EAAE,QAAQ,OAAO,WAA6C,CAAC;AAMvG,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;AAC1C,eAAO,MAAM,iBAAiB,iDAAmD,CAAC;AAClF,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,UAAU,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAE9G;AACD,eAAO,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,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,2CA+BxG"}
@@ -1,4 +1,4 @@
1
- import { type ClassValue } from 'clsx';
1
+ import { ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
3
  export declare const FONT = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',sans-serif";
4
4
  /** @deprecated Legacy iOS curve. New motion uses the spring tokens (lib/motion.ts `springs`, CSS `--ease-spring-*`). */
@@ -1,29 +1,19 @@
1
+ import { IconName } from '../icon';
1
2
  import * as React from 'react';
2
- declare const WIC: Record<string, {
3
- d: string;
4
- }[]>;
5
- export type WIconName = keyof typeof WIC | (string & {});
6
- export interface WIconProps {
7
- name: WIconName;
8
- size?: number;
9
- sw?: number;
10
- className?: string;
11
- style?: React.CSSProperties;
12
- }
13
- export declare function WIcon({ name, size, sw, className, style }: WIconProps): import("react/jsx-runtime").JSX.Element;
14
- /** Square icon button: transparent until hovered (`wb-hl`), filled while `active`. */
3
+ /** Square icon button: transparent until hovered, filled while `active`. */
15
4
  export declare const iconBtnVariants: (props?: ({
16
5
  active?: boolean | null | undefined;
17
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
18
7
  export interface IconBtnProps {
19
- name: WIconName;
8
+ /** An `Icon` name. */
9
+ name: IconName | (string & {});
20
10
  label: string;
21
11
  onPress?: () => void;
12
+ /** Glyph size in px. Default 18. */
22
13
  size?: number;
23
14
  active?: boolean;
24
15
  className?: string;
25
16
  style?: React.CSSProperties;
26
17
  }
27
18
  export declare function IconBtn({ name, label, onPress, size, active, className, style }: IconBtnProps): import("react/jsx-runtime").JSX.Element;
28
- export {};
29
19
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,CAwCxC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEzD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AACD,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,UAAU,2CAwBrE;AAED,sFAAsF;AACtF,eAAO,MAAM,eAAe;;8EAQ1B,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AACD,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,YAAY,2CAa7F"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9C,4EAA4E;AAC5E,eAAO,MAAM,eAAe;;8EAQ1B,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,IAAI,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AACD,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,YAAY,2CAa7F"}
@@ -1,6 +1,4 @@
1
- import * as React from 'react';
2
- import { type PointerEvent as ReactPointerEvent } from 'react';
3
- import { springs, type SpringName } from '../motion';
1
+ import { springs, SpringName } from '../motion';
4
2
  export { springs, type SpringName };
5
3
  /** Whether the user asked for reduced motion (checked when an animation starts, so it follows the setting live). */
6
4
  export declare function prefersReducedMotion(): boolean;
@@ -18,66 +16,4 @@ export declare function flipPlay(snapshot: FlipSnapshot, { spring, relativeTo, f
18
16
  fade?: boolean;
19
17
  lift?: boolean;
20
18
  }): void;
21
- export declare const SHEET_TAP_SLOP = 4;
22
- export declare const SHEET_MINIMIZE_TRAVEL = 96;
23
- export interface SpringSheetDragOptions {
24
- open: boolean;
25
- onOpenChange: (open: boolean) => void;
26
- /** Body height visible at rest. */
27
- peek: number;
28
- /** Body height when fully open. */
29
- maxReveal: number;
30
- /** Extra resting heights between `peek` and `maxReveal` (px of body). */
31
- detents?: number[];
32
- /** Allow dragging below the resting height to fold into a FAB. */
33
- minimizable?: boolean;
34
- minimized?: boolean;
35
- onMinimizedChange?: (minimized: boolean) => void;
36
- /** Spring the body settles with (default `tray`). */
37
- spring?: SpringName;
38
- }
39
- export interface SpringSheetDragState {
40
- /** The body height to draw this frame (follows the finger, then springs to rest). */
41
- reveal: number;
42
- /** 0–1 fold towards the FAB to draw this frame. */
43
- minimize: number;
44
- /** A finger is on the handle. */
45
- dragging: boolean;
46
- /** The spring is carrying the body to rest after a release or a state change. */
47
- settling: boolean;
48
- /** The middle detent the sheet rests at (px), or null at peek/open. */
49
- detent: number | null;
50
- /** Spread on the handle element. */
51
- handlers: {
52
- onPointerDown: (event: ReactPointerEvent<HTMLElement>) => void;
53
- onPointerMove: (event: ReactPointerEvent<HTMLElement>) => void;
54
- onPointerUp: (event: ReactPointerEvent<HTMLElement>) => void;
55
- onPointerCancel: () => void;
56
- onLostPointerCapture: () => void;
57
- };
58
- /** A tap on the handle: toggles open (ignored right after a drag). */
59
- toggle: () => void;
60
- }
61
- /**
62
- * The grow / snap / fold gesture behind FloatingSheet's cap and Composer's draggable bump. The body follows
63
- * the pointer one-to-one (rubber-banding past its ends); on release the pointer's velocity is projected
64
- * forward to pick a stop (peek, a detent, open, or the FAB) and a spring carries the body there *from that
65
- * velocity*, so a flick keeps its momentum. Grabbing mid-flight catches the body where it is. State changes
66
- * from outside (a tap, Escape, `peek` changing) spring too. Snaps tick.
67
- */
68
- export declare function useSpringSheetDrag({ open, onOpenChange, peek, maxReveal, detents, minimizable, minimized, onMinimizedChange, spring, }: SpringSheetDragOptions): SpringSheetDragState;
69
- export interface MorphTextProps {
70
- children: string;
71
- className?: string;
72
- }
73
- /**
74
- * Text that morphs rather than swaps: letters both labels share slide to their new places, the rest fade
75
- * and blur in/out (Continue → Confirm). Keep it to short labels — pills, buttons, statuses.
76
- */
77
- export declare function MorphText({ children, className }: MorphTextProps): import("react/jsx-runtime").JSX.Element;
78
- export interface AutoHeightProps extends React.HTMLAttributes<HTMLDivElement> {
79
- spring?: SpringName;
80
- }
81
- /** A box whose height springs to fit its content whenever the content changes size. */
82
- export declare function AutoHeight({ spring, className, style, children, ...props }: AutoHeightProps): import("react/jsx-runtime").JSX.Element;
83
19
  //# sourceMappingURL=motion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/motion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgD,KAAK,YAAY,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI7G,OAAO,EAAE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAQrD,OAAO,EAAE,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC;AAEpC,oHAAoH;AACpH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAKD,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAEjD,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,YAAY,CAItE;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,YAAY,EACtB,EACE,MAAiB,EACjB,UAAU,EACV,IAAY,EACZ,IAAY,GACb,GAAE;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,QA2BjG;AAGD,eAAO,MAAM,cAAc,IAAI,C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AAE,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,QA2BjG"}
@@ -1,4 +1,4 @@
1
- import { type ButtonProps as AriaButtonProps, type ToggleButtonProps as AriaToggleButtonProps } from 'react-aria-components';
1
+ import { ButtonProps as AriaButtonProps, ToggleButtonProps as AriaToggleButtonProps } from 'react-aria-components';
2
2
  export interface ButtonProps extends Omit<AriaButtonProps, 'render'> {
3
3
  title?: string;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"press.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/press.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,WAAW,IAAI,eAAe,EACnC,KAAK,iBAAiB,IAAI,qBAAqB,EAChD,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAEtD;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAElE"}
1
+ {"version":3,"file":"press.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/press.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,WAAW,IAAI,eAAe,EACnC,KAAK,iBAAiB,IAAI,qBAAqB,EAChD,MAAM,uBAAuB,CAAC;AAO/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAEtD;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAElE"}
@@ -1,16 +1,15 @@
1
+ import { Appearance } from '../theme';
1
2
  import * as React from 'react';
2
- import { type Appearance } from '../theme';
3
- export declare function workbenchVars(tint?: string, appearance?: Appearance): React.CSSProperties;
4
- /** Root classes for an appearance: `wb-dark`/`wb-light` key the package CSS, plus the matching color-scheme. */
5
- export declare const workbenchAppearanceClass: (appearance: Appearance) => "wb-light scheme-light" | "wb-dark scheme-dark";
6
3
  export declare const WorkbenchAppearanceProvider: React.Provider<Appearance | undefined>;
7
4
  /** The explicit prop, else the ambient `AppearanceProvider`, else Workbench's dark default. */
8
5
  export declare function useWorkbenchAppearance(explicit?: Appearance): Appearance;
9
6
  export interface WorkbenchThemeProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /** Accent (--primary / --ring). Defaults to the theme's primary. */
10
8
  tint?: string;
11
9
  /** Defaults to the ambient `AppearanceProvider` value, else dark. */
12
10
  appearance?: Appearance;
13
11
  children?: React.ReactNode;
14
12
  }
13
+ /** A `workbench` theme scope with the Workbench's base styling — for Workbench parts used outside WorkbenchShell. */
15
14
  export declare function WorkbenchTheme({ tint, appearance: appearanceProp, className, style, children, ...rest }: WorkbenchThemeProps): import("react/jsx-runtime").JSX.Element;
16
15
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAwD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AAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,2CAc5H"}
@@ -1,6 +1,8 @@
1
1
  import { cn } from '../utils';
2
2
  export { cn };
3
- export declare const WFONT = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',sans-serif";
4
- export declare const MONO = "ui-monospace,'SF Mono',Menlo,Consolas,monospace";
5
- export declare const EASE = "cubic-bezier(.32,.72,0,1)";
3
+ /** Workbench pressables: no tap flash, the host font, and a brightness nudge on hover (dimmer on light surfaces,
4
+ brighter on dark ones — the terminal scope is dark in both appearances). */
5
+ export declare const wbPress = "[-webkit-tap-highlight-color:transparent] [font-family:inherit] hover:brightness-[.97] dark:hover:brightness-[1.12]";
6
+ /** The Workbench brand tile: the accent into iOS indigo (#5E5CE6, a fixed brand color). */
7
+ export declare const wbBrandTile = "bg-[linear-gradient(135deg,var(--primary),#5E5CE6)]";
6
8
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAE,CAAC;AAEd,eAAO,MAAM,KAAK,iGAC8E,CAAC;AACjG,eAAO,MAAM,IAAI,oDAAoD,CAAC;AACtE,eAAO,MAAM,IAAI,8BAA8B,CAAC"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/lib/workbench/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAE,CAAC;AAEd;+EAC+E;AAC/E,eAAO,MAAM,OAAO,wHACmG,CAAC;AAExH,2FAA2F;AAC3F,eAAO,MAAM,WAAW,wDAAwD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare function Phone({ children, w, h, dark, tint, safeTop }: {
3
3
  children?: ReactNode;
4
4
  w?: number;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  /** Story-only: the shadcn primitives shown on an iOS grouped screen (Phone) or a padded card (Pad). */
3
3
  export declare function Screen({ children, dark, h, className, title }: {
4
4
  children?: ReactNode;
@@ -1,5 +1,5 @@
1
- import { type CSSProperties, type ReactNode } from 'react';
2
- import { type FloatingChatFabPosition, type FloatingChatProps } from '../components/chat/floating-chat';
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { FloatingChatFabPosition, FloatingChatProps } from '../components/chat/floating-chat';
3
3
  export type ArtifactChatLayout = 'split' | 'floating';
4
4
  export interface ArtifactChatContainerContextValue {
5
5
  width: number;
@@ -14,6 +14,11 @@ export interface ArtifactChatContainerContextValue {
14
14
  }
15
15
  export declare function useArtifactChatContainer(): ArtifactChatContainerContextValue;
16
16
  export type ArtifactChatContainerSlotChildren = ReactNode;
17
+ /** The container: the chat column beside the content (`split`), or the content full-bleed under a floating chat.
18
+ ck-artifact-chat stays as a hook for hosts. */
19
+ export declare const artifactChatContainerVariants: (props?: ({
20
+ layout?: "split" | "floating" | null | undefined;
21
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
17
22
  export type ArtifactChatFabPosition = FloatingChatFabPosition;
18
23
  export interface ArtifactChatContainerProps {
19
24
  /**
@@ -52,7 +57,7 @@ export interface ArtifactChatContainerProps {
52
57
  className?: string;
53
58
  style?: CSSProperties;
54
59
  }
55
- export declare function ArtifactChatContainer({ layout: requestedLayout, breakpoint, chatWidth, chatOpen: controlledChatOpen, defaultChatOpen, onChatOpenChange, working, workingLabel, onAdd, hideOnScroll, fabPosition, peek, appearance, tone, children, className, style, }: ArtifactChatContainerProps): import("react/jsx-runtime").JSX.Element;
60
+ export declare function ArtifactChatContainer({ layout: requestedLayout, breakpoint, chatWidth, chatOpen: controlledChatOpen, defaultChatOpen, onChatOpenChange, working, workingLabel, onAdd, hideOnScroll, fabPosition, peek, appearance, tone: toneProp, children, className, style, }: ArtifactChatContainerProps): import("react/jsx-runtime").JSX.Element;
56
61
  export declare namespace ArtifactChatContainer {
57
62
  var Chat: import("..").SlotComponent;
58
63
  var Composer: import("..").SlotComponent;