@brett_lamy/ui 1.1.0 → 3.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 (534) hide show
  1. package/README.md +37 -23
  2. package/dist/components/adaptive-pane.d.ts.map +1 -1
  3. package/dist/components/adaptive-pane.js +30 -0
  4. package/dist/components/animated-height.d.ts.map +1 -1
  5. package/dist/components/animated-height.js +82 -0
  6. package/dist/{templates → components}/artifact-chat-container.d.ts +17 -5
  7. package/dist/components/artifact-chat-container.d.ts.map +1 -0
  8. package/dist/components/artifact-chat-container.js +200 -0
  9. package/dist/components/avatar.js +26 -0
  10. package/dist/components/badge.js +24 -0
  11. package/dist/components/button.d.ts.map +1 -1
  12. package/dist/components/button.js +46 -0
  13. package/dist/components/card.js +56 -0
  14. package/dist/components/celebrate.d.ts.map +1 -1
  15. package/dist/components/celebrate.js +142 -0
  16. package/dist/components/chat-column.d.ts.map +1 -0
  17. package/dist/components/chat-column.js +26 -0
  18. package/dist/components/checkbox.d.ts +2 -2
  19. package/dist/components/checkbox.d.ts.map +1 -1
  20. package/dist/components/checkbox.js +55 -0
  21. package/dist/components/combobox.d.ts +1 -1
  22. package/dist/components/combobox.d.ts.map +1 -1
  23. package/dist/components/combobox.js +65 -0
  24. package/dist/components/command-menu.d.ts +210 -0
  25. package/dist/components/command-menu.d.ts.map +1 -0
  26. package/dist/components/command-menu.js +906 -0
  27. package/dist/components/composer/annotator.d.ts.map +1 -0
  28. package/dist/components/composer/annotator.js +17 -0
  29. package/dist/components/composer/composer-files.d.ts.map +1 -0
  30. package/dist/components/composer/composer-files.js +91 -0
  31. package/dist/components/{workbench/wb-popover.d.ts → composer/composer-popover.d.ts} +3 -5
  32. package/dist/components/composer/composer-popover.d.ts.map +1 -0
  33. package/dist/components/composer/composer-popover.js +29 -0
  34. package/dist/components/{workbench → composer}/composer.d.ts +11 -11
  35. package/dist/components/composer/composer.d.ts.map +1 -0
  36. package/dist/components/composer/composer.js +1633 -0
  37. package/dist/components/{workbench/chat.d.ts → conversation.d.ts} +3 -3
  38. package/dist/components/conversation.d.ts.map +1 -0
  39. package/dist/components/conversation.js +357 -0
  40. package/dist/components/credenza.d.ts +7 -2
  41. package/dist/components/credenza.d.ts.map +1 -1
  42. package/dist/components/credenza.js +294 -0
  43. package/dist/components/dialog.d.ts +2 -2
  44. package/dist/components/dialog.d.ts.map +1 -1
  45. package/dist/components/dialog.js +125 -0
  46. package/dist/components/disclosure.d.ts.map +1 -1
  47. package/dist/components/disclosure.js +59 -0
  48. package/dist/components/dropdown-menu.d.ts +1 -1
  49. package/dist/components/dropdown-menu.d.ts.map +1 -1
  50. package/dist/components/dropdown-menu.js +114 -0
  51. package/dist/components/edge-drawer.d.ts +14 -2
  52. package/dist/components/edge-drawer.d.ts.map +1 -1
  53. package/dist/components/edge-drawer.js +73 -0
  54. package/dist/components/edit-bar.d.ts.map +1 -1
  55. package/dist/components/edit-bar.js +33 -0
  56. package/dist/components/{chat/floating-chat.d.ts → floating-chat.d.ts} +26 -3
  57. package/dist/components/floating-chat.d.ts.map +1 -0
  58. package/dist/components/floating-chat.js +288 -0
  59. package/dist/components/{chat/floating-sheet.d.ts → floating-sheet.d.ts} +24 -4
  60. package/dist/components/floating-sheet.d.ts.map +1 -0
  61. package/dist/components/floating-sheet.js +252 -0
  62. package/dist/components/form.d.ts.map +1 -1
  63. package/dist/components/form.js +32 -0
  64. package/dist/components/icon-button.d.ts +19 -0
  65. package/dist/components/icon-button.d.ts.map +1 -0
  66. package/dist/components/icon-button.js +31 -0
  67. package/dist/components/icon-swap.d.ts.map +1 -1
  68. package/dist/components/icon-swap.js +80 -0
  69. package/dist/components/index-bar.d.ts +14 -1
  70. package/dist/components/index-bar.d.ts.map +1 -1
  71. package/dist/components/index-bar.js +249 -0
  72. package/dist/components/input.d.ts.map +1 -1
  73. package/dist/components/input.js +30 -0
  74. package/dist/components/kbd.d.ts.map +1 -1
  75. package/dist/components/kbd.js +21 -0
  76. package/dist/components/label.d.ts.map +1 -1
  77. package/dist/components/label.js +22 -0
  78. package/dist/components/list-box.d.ts +1 -3
  79. package/dist/components/list-box.d.ts.map +1 -1
  80. package/dist/components/list-box.js +104 -0
  81. package/dist/components/list.d.ts +15 -1
  82. package/dist/components/list.d.ts.map +1 -1
  83. package/dist/components/list.js +491 -0
  84. package/dist/components/markdown-editor.d.ts.map +1 -1
  85. package/dist/components/markdown-editor.js +300 -0
  86. package/dist/components/{workbench/markdown.d.ts → markdown-view.d.ts} +1 -1
  87. package/dist/components/markdown-view.d.ts.map +1 -0
  88. package/dist/components/markdown-view.js +129 -0
  89. package/dist/components/measure-h.d.ts.map +1 -1
  90. package/dist/components/measure-h.js +20 -0
  91. package/dist/components/message-scroller.d.ts.map +1 -0
  92. package/dist/components/message-scroller.js +247 -0
  93. package/dist/components/morph.d.ts +6 -3
  94. package/dist/components/morph.d.ts.map +1 -1
  95. package/dist/components/morph.js +89 -0
  96. package/dist/components/navigation-stack.d.ts +27 -2
  97. package/dist/components/navigation-stack.d.ts.map +1 -1
  98. package/dist/components/navigation-stack.js +506 -0
  99. package/dist/components/now-playing-bars.js +38 -0
  100. package/dist/components/number-morph.d.ts.map +1 -1
  101. package/dist/components/number-morph.js +123 -0
  102. package/dist/{lib → components}/pencilkit/constants.d.ts +8 -8
  103. package/dist/components/pencilkit/constants.d.ts.map +1 -0
  104. package/dist/components/pencilkit/constants.js +63 -0
  105. package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
  106. package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -1
  107. package/dist/components/pencilkit/pencil-canvas.js +105 -0
  108. package/dist/components/pencilkit/pencil-toolbar.d.ts +8 -6
  109. package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
  110. package/dist/components/pencilkit/pencil-toolbar.js +186 -0
  111. package/dist/components/pencilkit/pencilkit-annotator.d.ts +1 -1
  112. package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -1
  113. package/dist/components/pencilkit/pencilkit-annotator.js +44 -0
  114. package/dist/components/pencilkit/stroke-path.d.ts +1 -1
  115. package/dist/components/pencilkit/stroke-path.d.ts.map +1 -1
  116. package/dist/components/pencilkit/stroke-path.js +44 -0
  117. package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
  118. package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -1
  119. package/dist/components/pencilkit/use-pencil-history.js +25 -0
  120. package/dist/components/plain-button.d.ts +10 -0
  121. package/dist/components/plain-button.d.ts.map +1 -0
  122. package/dist/components/plain-button.js +23 -0
  123. package/dist/components/popover.d.ts +1 -1
  124. package/dist/components/popover.d.ts.map +1 -1
  125. package/dist/components/popover.js +36 -0
  126. package/dist/components/progress-ring.d.ts +34 -15
  127. package/dist/components/progress-ring.d.ts.map +1 -1
  128. package/dist/components/progress-ring.js +195 -0
  129. package/dist/components/progress-stepper.d.ts.map +1 -0
  130. package/dist/components/progress-stepper.js +62 -0
  131. package/dist/components/progress.d.ts.map +1 -1
  132. package/dist/components/progress.js +54 -0
  133. package/dist/components/qr-svg.d.ts.map +1 -1
  134. package/dist/components/qr-svg.js +74 -0
  135. package/dist/components/radio-group.d.ts +1 -1
  136. package/dist/components/radio-group.d.ts.map +1 -1
  137. package/dist/components/radio-group.js +41 -0
  138. package/dist/components/replay-preview.d.ts +4 -0
  139. package/dist/components/replay-preview.d.ts.map +1 -0
  140. package/dist/components/replay-preview.js +3 -0
  141. package/dist/components/scroll-area.js +23 -0
  142. package/dist/components/search-field.d.ts.map +1 -1
  143. package/dist/components/search-field.js +44 -0
  144. package/dist/components/segmented.d.ts +2 -2
  145. package/dist/components/segmented.d.ts.map +1 -1
  146. package/dist/components/segmented.js +32 -0
  147. package/dist/components/select.d.ts +1 -1
  148. package/dist/components/select.d.ts.map +1 -1
  149. package/dist/components/select.js +93 -0
  150. package/dist/components/separator.d.ts.map +1 -1
  151. package/dist/components/separator.js +40 -0
  152. package/dist/components/sheet.d.ts.map +1 -1
  153. package/dist/components/sheet.js +55 -0
  154. package/dist/components/side-drawer.d.ts +16 -2
  155. package/dist/components/side-drawer.d.ts.map +1 -1
  156. package/dist/components/side-drawer.js +247 -0
  157. package/dist/components/sidebar.d.ts.map +1 -1
  158. package/dist/components/sidebar.js +282 -0
  159. package/dist/components/skeleton.js +48 -0
  160. package/dist/components/slider.d.ts +10 -4
  161. package/dist/components/slider.d.ts.map +1 -1
  162. package/dist/components/slider.js +98 -0
  163. package/dist/components/snap-sheet.d.ts +13 -0
  164. package/dist/components/snap-sheet.d.ts.map +1 -0
  165. package/dist/components/snap-sheet.js +100 -0
  166. package/dist/components/spinner.js +35 -0
  167. package/dist/components/split-view.d.ts +34 -5
  168. package/dist/components/split-view.d.ts.map +1 -1
  169. package/dist/components/split-view.js +1060 -0
  170. package/dist/components/switch.d.ts +1 -1
  171. package/dist/components/switch.d.ts.map +1 -1
  172. package/dist/components/switch.js +27 -0
  173. package/dist/components/syntax-highlighting.d.ts.map +1 -1
  174. package/dist/components/syntax-highlighting.js +293 -0
  175. package/dist/components/tab-bar.js +28 -0
  176. package/dist/components/tab-view.d.ts +8 -7
  177. package/dist/components/tab-view.d.ts.map +1 -1
  178. package/dist/components/tab-view.js +307 -0
  179. package/dist/components/tabs.d.ts +1 -1
  180. package/dist/components/tabs.d.ts.map +1 -1
  181. package/dist/components/tabs.js +86 -0
  182. package/dist/components/text-field.d.ts.map +1 -1
  183. package/dist/components/text-field.js +29 -0
  184. package/dist/components/text-morph.d.ts.map +1 -1
  185. package/dist/components/text-morph.js +131 -0
  186. package/dist/components/textarea.d.ts.map +1 -1
  187. package/dist/components/textarea.js +30 -0
  188. package/dist/components/toast.d.ts +8 -2
  189. package/dist/components/toast.d.ts.map +1 -1
  190. package/dist/components/toast.js +302 -0
  191. package/dist/components/toggle-group.d.ts +1 -1
  192. package/dist/components/toggle-group.d.ts.map +1 -1
  193. package/dist/components/toggle-group.js +48 -0
  194. package/dist/components/toggle.d.ts +1 -1
  195. package/dist/components/toggle.d.ts.map +1 -1
  196. package/dist/components/toggle.js +42 -0
  197. package/dist/components/tooltip.d.ts +1 -1
  198. package/dist/components/tooltip.d.ts.map +1 -1
  199. package/dist/components/tooltip.js +42 -0
  200. package/dist/{lib/workbench/theme.d.ts → components/workbench-theme.d.ts} +4 -5
  201. package/dist/components/workbench-theme.d.ts.map +1 -0
  202. package/dist/components/workbench-theme.js +34 -0
  203. package/dist/index.css +1 -1
  204. package/dist/index.d.ts +37 -80
  205. package/dist/index.d.ts.map +1 -1
  206. package/dist/index.js +91 -20192
  207. package/dist/lib/container.d.ts.map +1 -1
  208. package/dist/lib/container.js +49 -0
  209. package/dist/lib/icon-shapes/chat.d.ts +32 -0
  210. package/dist/lib/icon-shapes/chat.d.ts.map +1 -0
  211. package/dist/lib/icon-shapes/chat.js +13 -0
  212. package/dist/lib/icon-shapes/pencilkit.d.ts +49 -0
  213. package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -0
  214. package/dist/lib/icon-shapes/pencilkit.js +20 -0
  215. package/dist/lib/icon-shapes/workbench.d.ts +199 -0
  216. package/dist/lib/icon-shapes/workbench.d.ts.map +1 -0
  217. package/dist/lib/icon-shapes/workbench.js +47 -0
  218. package/dist/lib/icon.d.ts +352 -1
  219. package/dist/lib/icon.d.ts.map +1 -1
  220. package/dist/lib/icon.js +1774 -0
  221. package/dist/lib/motion.d.ts +16 -0
  222. package/dist/lib/motion.d.ts.map +1 -1
  223. package/dist/lib/motion.js +104 -0
  224. package/dist/lib/{chat/persistent-host.d.ts → persistent-host.d.ts} +1 -1
  225. package/dist/lib/persistent-host.d.ts.map +1 -0
  226. package/dist/lib/persistent-host.js +41 -0
  227. package/dist/lib/primitives.d.ts +1 -1
  228. package/dist/lib/primitives.d.ts.map +1 -1
  229. package/dist/lib/primitives.js +8 -0
  230. package/dist/lib/qr.js +552 -0
  231. package/dist/lib/row-label.d.ts +9 -0
  232. package/dist/lib/row-label.d.ts.map +1 -0
  233. package/dist/lib/row-label.js +10 -0
  234. package/dist/lib/sheet-drag.d.ts +22 -7
  235. package/dist/lib/sheet-drag.d.ts.map +1 -1
  236. package/dist/lib/sheet-drag.js +128 -0
  237. package/dist/lib/syntax.js +204 -0
  238. package/dist/lib/theme.d.ts +61 -5
  239. package/dist/lib/theme.d.ts.map +1 -1
  240. package/dist/lib/theme.js +138 -0
  241. package/dist/lib/tokens.generated.d.ts +16 -0
  242. package/dist/lib/tokens.generated.d.ts.map +1 -0
  243. package/dist/lib/tokens.generated.js +22 -0
  244. package/dist/lib/utils.d.ts +5 -0
  245. package/dist/lib/utils.d.ts.map +1 -1
  246. package/dist/lib/utils.js +18 -0
  247. package/dist/theme.css +265 -0
  248. package/package.json +8 -7
  249. package/dist/components/adaptive-pane.stories.d.ts +0 -7
  250. package/dist/components/adaptive-pane.stories.d.ts.map +0 -1
  251. package/dist/components/avatar.stories.d.ts +0 -9
  252. package/dist/components/avatar.stories.d.ts.map +0 -1
  253. package/dist/components/badge.stories.d.ts +0 -9
  254. package/dist/components/badge.stories.d.ts.map +0 -1
  255. package/dist/components/button.stories.d.ts +0 -9
  256. package/dist/components/button.stories.d.ts.map +0 -1
  257. package/dist/components/card.stories.d.ts +0 -9
  258. package/dist/components/card.stories.d.ts.map +0 -1
  259. package/dist/components/chat/channel-list.d.ts +0 -35
  260. package/dist/components/chat/channel-list.d.ts.map +0 -1
  261. package/dist/components/chat/channel-list.stories.d.ts +0 -13
  262. package/dist/components/chat/channel-list.stories.d.ts.map +0 -1
  263. package/dist/components/chat/chat-avatar.d.ts +0 -13
  264. package/dist/components/chat/chat-avatar.d.ts.map +0 -1
  265. package/dist/components/chat/chat-avatar.stories.d.ts +0 -9
  266. package/dist/components/chat/chat-avatar.stories.d.ts.map +0 -1
  267. package/dist/components/chat/chat-column.d.ts.map +0 -1
  268. package/dist/components/chat/chat-column.stories.d.ts +0 -7
  269. package/dist/components/chat/chat-column.stories.d.ts.map +0 -1
  270. package/dist/components/chat/chat-composer.d.ts +0 -22
  271. package/dist/components/chat/chat-composer.d.ts.map +0 -1
  272. package/dist/components/chat/chat-composer.stories.d.ts +0 -16
  273. package/dist/components/chat/chat-composer.stories.d.ts.map +0 -1
  274. package/dist/components/chat/chat.fixtures.d.ts +0 -29
  275. package/dist/components/chat/chat.fixtures.d.ts.map +0 -1
  276. package/dist/components/chat/floating-chat.d.ts.map +0 -1
  277. package/dist/components/chat/floating-chat.stories.d.ts +0 -17
  278. package/dist/components/chat/floating-chat.stories.d.ts.map +0 -1
  279. package/dist/components/chat/floating-sheet.d.ts.map +0 -1
  280. package/dist/components/chat/floating-sheet.stories.d.ts +0 -22
  281. package/dist/components/chat/floating-sheet.stories.d.ts.map +0 -1
  282. package/dist/components/chat/member-list.d.ts +0 -21
  283. package/dist/components/chat/member-list.d.ts.map +0 -1
  284. package/dist/components/chat/message-list.d.ts +0 -34
  285. package/dist/components/chat/message-list.d.ts.map +0 -1
  286. package/dist/components/chat/message.d.ts +0 -47
  287. package/dist/components/chat/message.d.ts.map +0 -1
  288. package/dist/components/chat/message.stories.d.ts +0 -30
  289. package/dist/components/chat/message.stories.d.ts.map +0 -1
  290. package/dist/components/chat/progress-stepper.d.ts.map +0 -1
  291. package/dist/components/chat/rich-text.d.ts +0 -8
  292. package/dist/components/chat/rich-text.d.ts.map +0 -1
  293. package/dist/components/chat/rich-text.stories.d.ts +0 -9
  294. package/dist/components/chat/rich-text.stories.d.ts.map +0 -1
  295. package/dist/components/chat/server-header.d.ts +0 -10
  296. package/dist/components/chat/server-header.d.ts.map +0 -1
  297. package/dist/components/chat/thread-preview.d.ts +0 -25
  298. package/dist/components/chat/thread-preview.d.ts.map +0 -1
  299. package/dist/components/chat/thread-preview.stories.d.ts +0 -18
  300. package/dist/components/chat/thread-preview.stories.d.ts.map +0 -1
  301. package/dist/components/chat/user-panel.d.ts +0 -16
  302. package/dist/components/chat/user-panel.d.ts.map +0 -1
  303. package/dist/components/chat/workspace-rail.d.ts +0 -56
  304. package/dist/components/chat/workspace-rail.d.ts.map +0 -1
  305. package/dist/components/chat/workspace-rail.stories.d.ts +0 -12
  306. package/dist/components/chat/workspace-rail.stories.d.ts.map +0 -1
  307. package/dist/components/checkbox.stories.d.ts +0 -11
  308. package/dist/components/checkbox.stories.d.ts.map +0 -1
  309. package/dist/components/combobox.stories.d.ts +0 -10
  310. package/dist/components/combobox.stories.d.ts.map +0 -1
  311. package/dist/components/credenza.stories.d.ts +0 -8
  312. package/dist/components/credenza.stories.d.ts.map +0 -1
  313. package/dist/components/dialog.stories.d.ts +0 -12
  314. package/dist/components/dialog.stories.d.ts.map +0 -1
  315. package/dist/components/disclosure.stories.d.ts +0 -10
  316. package/dist/components/disclosure.stories.d.ts.map +0 -1
  317. package/dist/components/dropdown-menu.stories.d.ts +0 -11
  318. package/dist/components/dropdown-menu.stories.d.ts.map +0 -1
  319. package/dist/components/edge-drawer.stories.d.ts +0 -8
  320. package/dist/components/edge-drawer.stories.d.ts.map +0 -1
  321. package/dist/components/edit-bar.stories.d.ts +0 -10
  322. package/dist/components/edit-bar.stories.d.ts.map +0 -1
  323. package/dist/components/form.stories.d.ts +0 -9
  324. package/dist/components/form.stories.d.ts.map +0 -1
  325. package/dist/components/haptic-indicator.d.ts +0 -11
  326. package/dist/components/haptic-indicator.d.ts.map +0 -1
  327. package/dist/components/haptic-indicator.stories.d.ts +0 -8
  328. package/dist/components/haptic-indicator.stories.d.ts.map +0 -1
  329. package/dist/components/index-bar.stories.d.ts +0 -12
  330. package/dist/components/index-bar.stories.d.ts.map +0 -1
  331. package/dist/components/input.stories.d.ts +0 -10
  332. package/dist/components/input.stories.d.ts.map +0 -1
  333. package/dist/components/kbd.stories.d.ts +0 -9
  334. package/dist/components/kbd.stories.d.ts.map +0 -1
  335. package/dist/components/label.stories.d.ts +0 -8
  336. package/dist/components/label.stories.d.ts.map +0 -1
  337. package/dist/components/list-box.stories.d.ts +0 -9
  338. package/dist/components/list-box.stories.d.ts.map +0 -1
  339. package/dist/components/list-row.stories.d.ts +0 -21
  340. package/dist/components/list-row.stories.d.ts.map +0 -1
  341. package/dist/components/list.stories.d.ts +0 -27
  342. package/dist/components/list.stories.d.ts.map +0 -1
  343. package/dist/components/markdown-editor.stories.d.ts +0 -17
  344. package/dist/components/markdown-editor.stories.d.ts.map +0 -1
  345. package/dist/components/morph.stories.d.ts +0 -14
  346. package/dist/components/morph.stories.d.ts.map +0 -1
  347. package/dist/components/motion.stories.d.ts +0 -15
  348. package/dist/components/motion.stories.d.ts.map +0 -1
  349. package/dist/components/navigation-stack.stories.d.ts +0 -31
  350. package/dist/components/navigation-stack.stories.d.ts.map +0 -1
  351. package/dist/components/now-playing-bars.stories.d.ts +0 -12
  352. package/dist/components/now-playing-bars.stories.d.ts.map +0 -1
  353. package/dist/components/pencilkit/pencil-canvas.stories.d.ts +0 -18
  354. package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +0 -1
  355. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +0 -10
  356. package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +0 -1
  357. package/dist/components/pencilkit/pk-icon.d.ts +0 -8
  358. package/dist/components/pencilkit/pk-icon.d.ts.map +0 -1
  359. package/dist/components/pill-button.d.ts +0 -11
  360. package/dist/components/pill-button.d.ts.map +0 -1
  361. package/dist/components/pill-button.stories.d.ts +0 -9
  362. package/dist/components/pill-button.stories.d.ts.map +0 -1
  363. package/dist/components/popover.stories.d.ts +0 -9
  364. package/dist/components/popover.stories.d.ts.map +0 -1
  365. package/dist/components/progress-ring.stories.d.ts +0 -15
  366. package/dist/components/progress-ring.stories.d.ts.map +0 -1
  367. package/dist/components/progress.stories.d.ts +0 -10
  368. package/dist/components/progress.stories.d.ts.map +0 -1
  369. package/dist/components/qr-svg.stories.d.ts +0 -16
  370. package/dist/components/qr-svg.stories.d.ts.map +0 -1
  371. package/dist/components/radio-group.stories.d.ts +0 -10
  372. package/dist/components/radio-group.stories.d.ts.map +0 -1
  373. package/dist/components/scroll-area.stories.d.ts +0 -8
  374. package/dist/components/scroll-area.stories.d.ts.map +0 -1
  375. package/dist/components/search-field.stories.d.ts +0 -10
  376. package/dist/components/search-field.stories.d.ts.map +0 -1
  377. package/dist/components/segmented.stories.d.ts +0 -8
  378. package/dist/components/segmented.stories.d.ts.map +0 -1
  379. package/dist/components/select.stories.d.ts +0 -12
  380. package/dist/components/select.stories.d.ts.map +0 -1
  381. package/dist/components/separator.stories.d.ts +0 -9
  382. package/dist/components/separator.stories.d.ts.map +0 -1
  383. package/dist/components/sheet.stories.d.ts +0 -12
  384. package/dist/components/sheet.stories.d.ts.map +0 -1
  385. package/dist/components/side-drawer.stories.d.ts +0 -8
  386. package/dist/components/side-drawer.stories.d.ts.map +0 -1
  387. package/dist/components/sidebar.stories.d.ts +0 -10
  388. package/dist/components/sidebar.stories.d.ts.map +0 -1
  389. package/dist/components/skeleton.stories.d.ts +0 -11
  390. package/dist/components/skeleton.stories.d.ts.map +0 -1
  391. package/dist/components/slider.stories.d.ts +0 -12
  392. package/dist/components/slider.stories.d.ts.map +0 -1
  393. package/dist/components/spinner.stories.d.ts +0 -9
  394. package/dist/components/spinner.stories.d.ts.map +0 -1
  395. package/dist/components/split-view.stories.d.ts +0 -51
  396. package/dist/components/split-view.stories.d.ts.map +0 -1
  397. package/dist/components/switch.stories.d.ts +0 -9
  398. package/dist/components/switch.stories.d.ts.map +0 -1
  399. package/dist/components/syntax-highlighting.stories.d.ts +0 -18
  400. package/dist/components/syntax-highlighting.stories.d.ts.map +0 -1
  401. package/dist/components/tab-bar.stories.d.ts +0 -8
  402. package/dist/components/tab-bar.stories.d.ts.map +0 -1
  403. package/dist/components/tab-view.stories.d.ts +0 -28
  404. package/dist/components/tab-view.stories.d.ts.map +0 -1
  405. package/dist/components/tabs.stories.d.ts +0 -9
  406. package/dist/components/tabs.stories.d.ts.map +0 -1
  407. package/dist/components/text-field.stories.d.ts +0 -9
  408. package/dist/components/text-field.stories.d.ts.map +0 -1
  409. package/dist/components/toast.stories.d.ts +0 -13
  410. package/dist/components/toast.stories.d.ts.map +0 -1
  411. package/dist/components/toggle-group.stories.d.ts +0 -10
  412. package/dist/components/toggle-group.stories.d.ts.map +0 -1
  413. package/dist/components/toggle.stories.d.ts +0 -9
  414. package/dist/components/toggle.stories.d.ts.map +0 -1
  415. package/dist/components/tooltip.stories.d.ts +0 -11
  416. package/dist/components/tooltip.stories.d.ts.map +0 -1
  417. package/dist/components/workbench/annotator.d.ts.map +0 -1
  418. package/dist/components/workbench/chat.d.ts.map +0 -1
  419. package/dist/components/workbench/chat.stories.d.ts +0 -13
  420. package/dist/components/workbench/chat.stories.d.ts.map +0 -1
  421. package/dist/components/workbench/composer-files.d.ts.map +0 -1
  422. package/dist/components/workbench/composer.d.ts.map +0 -1
  423. package/dist/components/workbench/composer.stories.d.ts +0 -35
  424. package/dist/components/workbench/composer.stories.d.ts.map +0 -1
  425. package/dist/components/workbench/fixtures.d.ts +0 -38
  426. package/dist/components/workbench/fixtures.d.ts.map +0 -1
  427. package/dist/components/workbench/markdown.d.ts.map +0 -1
  428. package/dist/components/workbench/message-scroller.d.ts.map +0 -1
  429. package/dist/components/workbench/message-scroller.stories.d.ts +0 -9
  430. package/dist/components/workbench/message-scroller.stories.d.ts.map +0 -1
  431. package/dist/components/workbench/model-picker.d.ts +0 -29
  432. package/dist/components/workbench/model-picker.d.ts.map +0 -1
  433. package/dist/components/workbench/models.d.ts +0 -32
  434. package/dist/components/workbench/models.d.ts.map +0 -1
  435. package/dist/components/workbench/snap-sheet.d.ts +0 -12
  436. package/dist/components/workbench/snap-sheet.d.ts.map +0 -1
  437. package/dist/components/workbench/snap-sheet.stories.d.ts +0 -8
  438. package/dist/components/workbench/snap-sheet.stories.d.ts.map +0 -1
  439. package/dist/components/workbench/surfaces.d.ts +0 -67
  440. package/dist/components/workbench/surfaces.d.ts.map +0 -1
  441. package/dist/components/workbench/surfaces.stories.d.ts +0 -15
  442. package/dist/components/workbench/surfaces.stories.d.ts.map +0 -1
  443. package/dist/components/workbench/terminal.d.ts +0 -43
  444. package/dist/components/workbench/terminal.d.ts.map +0 -1
  445. package/dist/components/workbench/terminal.stories.d.ts +0 -8
  446. package/dist/components/workbench/terminal.stories.d.ts.map +0 -1
  447. package/dist/components/workbench/thread-sidebar.d.ts +0 -100
  448. package/dist/components/workbench/thread-sidebar.d.ts.map +0 -1
  449. package/dist/components/workbench/thread-sidebar.stories.d.ts +0 -9
  450. package/dist/components/workbench/thread-sidebar.stories.d.ts.map +0 -1
  451. package/dist/components/workbench/wb-popover.d.ts.map +0 -1
  452. package/dist/components/workbench/workbench-composer.d.ts +0 -26
  453. package/dist/components/workbench/workbench-composer.d.ts.map +0 -1
  454. package/dist/demos/delivery/delivery-tracking-demo.d.ts +0 -41
  455. package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +0 -1
  456. package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +0 -13
  457. package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +0 -1
  458. package/dist/demos/haptics-playground.d.ts +0 -18
  459. package/dist/demos/haptics-playground.d.ts.map +0 -1
  460. package/dist/demos/haptics-playground.stories.d.ts +0 -8
  461. package/dist/demos/haptics-playground.stories.d.ts.map +0 -1
  462. package/dist/demos/map-chat/geo.d.ts +0 -46
  463. package/dist/demos/map-chat/geo.d.ts.map +0 -1
  464. package/dist/demos/map-chat/map-agent.d.ts +0 -48
  465. package/dist/demos/map-chat/map-agent.d.ts.map +0 -1
  466. package/dist/demos/map-chat/map-chat-demo.d.ts +0 -19
  467. package/dist/demos/map-chat/map-chat-demo.d.ts.map +0 -1
  468. package/dist/demos/map-chat/map-chat-demo.stories.d.ts +0 -16
  469. package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +0 -1
  470. package/dist/demos/map-chat/map-icons.d.ts +0 -44
  471. package/dist/demos/map-chat/map-icons.d.ts.map +0 -1
  472. package/dist/demos/map-chat/places.d.ts +0 -29
  473. package/dist/demos/map-chat/places.d.ts.map +0 -1
  474. package/dist/demos/map-chat/tile-map.d.ts +0 -72
  475. package/dist/demos/map-chat/tile-map.d.ts.map +0 -1
  476. package/dist/demos/pencilkit/demo-strokes.d.ts +0 -4
  477. package/dist/demos/pencilkit/demo-strokes.d.ts.map +0 -1
  478. package/dist/demos/pencilkit/pencilkit-demo.d.ts +0 -15
  479. package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +0 -1
  480. package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +0 -11
  481. package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +0 -1
  482. package/dist/demos/sidebar-demo.d.ts +0 -9
  483. package/dist/demos/sidebar-demo.d.ts.map +0 -1
  484. package/dist/demos/split-view-demos.d.ts +0 -50
  485. package/dist/demos/split-view-demos.d.ts.map +0 -1
  486. package/dist/lib/chat/chat-icon.d.ts +0 -24
  487. package/dist/lib/chat/chat-icon.d.ts.map +0 -1
  488. package/dist/lib/chat/chat-shell-context.d.ts +0 -19
  489. package/dist/lib/chat/chat-shell-context.d.ts.map +0 -1
  490. package/dist/lib/chat/chat-tokens.d.ts +0 -72
  491. package/dist/lib/chat/chat-tokens.d.ts.map +0 -1
  492. package/dist/lib/chat/chat-users.d.ts +0 -18
  493. package/dist/lib/chat/chat-users.d.ts.map +0 -1
  494. package/dist/lib/chat/kvib.d.ts +0 -3
  495. package/dist/lib/chat/kvib.d.ts.map +0 -1
  496. package/dist/lib/chat/persistent-host.d.ts.map +0 -1
  497. package/dist/lib/chat/title-ref.d.ts +0 -3
  498. package/dist/lib/chat/title-ref.d.ts.map +0 -1
  499. package/dist/lib/haptics.d.ts +0 -27
  500. package/dist/lib/haptics.d.ts.map +0 -1
  501. package/dist/lib/icon.stories.d.ts +0 -15
  502. package/dist/lib/icon.stories.d.ts.map +0 -1
  503. package/dist/lib/pencilkit/constants.d.ts.map +0 -1
  504. package/dist/lib/workbench/haptics.d.ts +0 -3
  505. package/dist/lib/workbench/haptics.d.ts.map +0 -1
  506. package/dist/lib/workbench/icons.d.ts +0 -29
  507. package/dist/lib/workbench/icons.d.ts.map +0 -1
  508. package/dist/lib/workbench/motion.d.ts +0 -83
  509. package/dist/lib/workbench/motion.d.ts.map +0 -1
  510. package/dist/lib/workbench/press.d.ts +0 -10
  511. package/dist/lib/workbench/press.d.ts.map +0 -1
  512. package/dist/lib/workbench/theme.d.ts.map +0 -1
  513. package/dist/lib/workbench/util.d.ts +0 -6
  514. package/dist/lib/workbench/util.d.ts.map +0 -1
  515. package/dist/stories/frame.d.ts +0 -16
  516. package/dist/stories/frame.d.ts.map +0 -1
  517. package/dist/stories/primitive-frame.d.ts +0 -20
  518. package/dist/stories/primitive-frame.d.ts.map +0 -1
  519. package/dist/templates/artifact-chat-container.d.ts.map +0 -1
  520. package/dist/templates/artifact-chat-container.stories.d.ts +0 -24
  521. package/dist/templates/artifact-chat-container.stories.d.ts.map +0 -1
  522. package/dist/templates/chat-shell.d.ts +0 -86
  523. package/dist/templates/chat-shell.d.ts.map +0 -1
  524. package/dist/templates/chat-shell.stories.d.ts +0 -22
  525. package/dist/templates/chat-shell.stories.d.ts.map +0 -1
  526. package/dist/templates/workbench-shell.d.ts +0 -177
  527. package/dist/templates/workbench-shell.d.ts.map +0 -1
  528. package/dist/templates/workbench-shell.stories.d.ts +0 -17
  529. package/dist/templates/workbench-shell.stories.d.ts.map +0 -1
  530. /package/dist/components/{chat/chat-column.d.ts → chat-column.d.ts} +0 -0
  531. /package/dist/components/{workbench → composer}/annotator.d.ts +0 -0
  532. /package/dist/components/{workbench → composer}/composer-files.d.ts +0 -0
  533. /package/dist/components/{workbench/message-scroller.d.ts → message-scroller.d.ts} +0 -0
  534. /package/dist/components/{chat/progress-stepper.d.ts → progress-stepper.d.ts} +0 -0
@@ -0,0 +1,128 @@
1
+ "use client";
2
+ import { prefersReducedMotion as e, springs as t } from "./motion.js";
3
+ import { animate as n } from "framer-motion";
4
+ import { useEffect as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
5
+ //#region src/lib/sheet-drag.ts
6
+ var s = typeof window > "u" ? r : i, c = 4, l = 96, u = 200, d = .4, f = (e) => Math.max(0, e) ** .72;
7
+ function p({ open: i, onOpenChange: c, peek: l, maxReveal: p, detents: m = [], minimizable: h = !1, minimized: g = !1, onMinimizedChange: _, spring: v = "tray" }) {
8
+ let [y, b] = o(null), x = y != null && y > l && y < p ? y : null, S = i ? p : x ?? l, C = +!!g, [w, T] = o(S), [E, D] = o(C), [O, k] = o(!1), [A, j] = o(!1), [M, N] = o(0), P = a({
9
+ reveal: S,
10
+ minimize: C
11
+ }), F = a({}), I = a({
12
+ reveal: 0,
13
+ minimize: 0
14
+ }), L = a({
15
+ active: !1,
16
+ y: 0,
17
+ from: 0,
18
+ moved: !1,
19
+ samples: []
20
+ }), R = a(!1), z = l + 96, B = (e) => h && e < l ? Math.min(1, (l - e) / z) : 0, V = () => {
21
+ F.current.r?.stop(), F.current.m?.stop(), F.current = {};
22
+ }, H = (e, t) => {
23
+ P.current = {
24
+ reveal: e,
25
+ minimize: t
26
+ }, T(e), D(t);
27
+ };
28
+ s(() => {
29
+ if (L.current.active) return;
30
+ let r = !R.current;
31
+ R.current = !0;
32
+ let i = P.current;
33
+ if (r || e() || Math.abs(i.reveal - S) < .5 && Math.abs(i.minimize - C) < .005) {
34
+ V(), H(S, C), j(!1);
35
+ return;
36
+ }
37
+ V(), j(!0);
38
+ let a = 2, o = () => {
39
+ --a === 0 && j(!1);
40
+ }, s = t[v];
41
+ F.current.r = n(i.reveal, S, {
42
+ ...s,
43
+ velocity: I.current.reveal,
44
+ onUpdate: (e) => {
45
+ let t = Math.max(0, Math.min(p, e));
46
+ P.current.reveal = t, T(t);
47
+ },
48
+ onComplete: o
49
+ }), F.current.m = n(i.minimize, C, {
50
+ ...s,
51
+ velocity: I.current.minimize,
52
+ onUpdate: (e) => {
53
+ let t = Math.max(0, Math.min(1, e));
54
+ P.current.minimize = t, D(t);
55
+ },
56
+ onComplete: o
57
+ }), I.current = {
58
+ reveal: 0,
59
+ minimize: 0
60
+ };
61
+ }, [
62
+ S,
63
+ C,
64
+ M
65
+ ]), r(() => () => V(), []);
66
+ let U = (e) => {
67
+ V(), j(!1), L.current = {
68
+ active: !0,
69
+ y: e.clientY,
70
+ from: P.current.reveal,
71
+ moved: !1,
72
+ samples: [{
73
+ t: e.timeStamp,
74
+ y: e.clientY
75
+ }]
76
+ }, e.currentTarget.setPointerCapture(e.pointerId);
77
+ }, W = (e) => {
78
+ let t = L.current;
79
+ if (!t.active) return;
80
+ let n = t.y - e.clientY;
81
+ if (!t.moved && Math.abs(n) < 4) return;
82
+ t.moved || k(!0), t.moved = !0, t.samples.push({
83
+ t: e.timeStamp,
84
+ y: e.clientY
85
+ }), t.samples.length > 6 && t.samples.shift();
86
+ let r = t.from + n, i = h ? 0 : Math.min(l, p), a = r > p ? p + f(r - p) * .35 : r < i ? Math.max(0, i - f(i - r)) : r;
87
+ H(Math.min(p + 24, a), B(r));
88
+ }, G = (e, t) => {
89
+ let n = L.current;
90
+ if (n.active = !1, k(!1), !n.moved) return;
91
+ let r = n.samples.filter((e) => t - e.t < 90)[0] ?? n.samples[0], a = Math.max(1, t - (r?.t ?? t)), o = r ? (r.y - e) / a : 0, s = n.from + (n.y - e), f = s + o * u, v = h && B(f) > .5 && B(s) > .08, y = [
92
+ l,
93
+ ...m.filter((e) => e > l && e < p),
94
+ p
95
+ ], x = Math.max(0, Math.min(p, f)), S = Math.abs(o) > d ? y.filter((e) => o > 0 ? e > s + 1 : e < s - 1) : [], C = S.length ? o > 0 ? Math.min(...S) : Math.max(...S) : y.reduce((e, t) => Math.abs(t - x) < Math.abs(e - x) ? t : e, y[0]), w = !v && C === p && p > l, T = !v && C !== l && C !== p ? C : null;
96
+ I.current = {
97
+ reveal: o * 1e3,
98
+ minimize: h && s < l ? -o * 1e3 / z : 0
99
+ }, b(T), v !== g && _?.(v), w !== i && c(w), N((e) => e + 1);
100
+ }, K = (e) => {
101
+ L.current.active && (e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), G(e.clientY, e.timeStamp));
102
+ }, q = () => {
103
+ L.current.active && (L.current.active = !1, k(!1), N((e) => e + 1));
104
+ };
105
+ return {
106
+ reveal: w,
107
+ minimize: E,
108
+ dragging: O,
109
+ settling: A,
110
+ detent: x,
111
+ handlers: {
112
+ onPointerDown: U,
113
+ onPointerMove: W,
114
+ onPointerUp: K,
115
+ onPointerCancel: q,
116
+ onLostPointerCapture: q
117
+ },
118
+ toggle: () => {
119
+ if (L.current.moved) {
120
+ L.current.moved = !1;
121
+ return;
122
+ }
123
+ b(null), _?.(!1), c(!i);
124
+ }
125
+ };
126
+ }
127
+ //#endregion
128
+ export { l as SHEET_MINIMIZE_TRAVEL, c as SHEET_TAP_SLOP, p as useSheetDrag };
@@ -0,0 +1,204 @@
1
+ //#region src/lib/syntax.ts
2
+ var e = "unknown", t = null, n = null, r = /swiftshader|llvmpipe|lavapipe|software|microsoft basic/i, i = () => typeof navigator > "u" ? void 0 : navigator.gpu;
3
+ async function a(e) {
4
+ if (!e) return "none";
5
+ let t = e.info;
6
+ if (!t && typeof e.requestAdapterInfo == "function" && (t = await e.requestAdapterInfo().catch(() => void 0)), e.isFallbackAdapter || t?.isFallbackAdapter) return "software";
7
+ let n = [
8
+ t?.vendor,
9
+ t?.architecture,
10
+ t?.device,
11
+ t?.description
12
+ ].filter(Boolean).join(" ");
13
+ return r.test(n) ? "software" : "hardware";
14
+ }
15
+ function o() {
16
+ if (n) return n;
17
+ let e = i();
18
+ if (!e) return t = "none", n = Promise.resolve("none");
19
+ let r = Promise.resolve().then(() => e.requestAdapter()).then(a, () => "none"), o, s = new Promise((e) => {
20
+ o = setTimeout(() => e("software"), 2500);
21
+ });
22
+ return r.then((e) => {
23
+ clearTimeout(o), t = e;
24
+ }), n = Promise.race([r, s]).then((e) => t ??= e), n;
25
+ }
26
+ function s(n = "auto") {
27
+ return n === "fallback" || e === "unavailable" || t === "none" || n === "auto" && t === "software" ? !1 : !!i();
28
+ }
29
+ var c = 256, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
30
+ function d(e, t) {
31
+ let n = e.get(t);
32
+ return n && (e.delete(t), e.set(t, n)), n;
33
+ }
34
+ function f(e, t, n) {
35
+ e.set(t, n), e.size > c && e.delete(e.keys().next().value);
36
+ }
37
+ function p(e, t = "auto") {
38
+ return t === "fallback" ? d(u, e) : d(l, e) ?? (s(t) ? void 0 : d(u, e));
39
+ }
40
+ var m = /* @__PURE__ */ new Set([
41
+ "keyword",
42
+ "type",
43
+ "function",
44
+ "constant"
45
+ ]), h = "=<>!+-*/%&|^~?:.", g = "()[]{};,", _ = (e) => e === " " || e === " " || e === "\n" || e === "\r" || e === "\f" || e === "\v", v = (e) => !!e && !_(e) && !h.includes(e) && !g.includes(e);
46
+ function y(e, t) {
47
+ let n = e[t];
48
+ if (_(n)) return "space";
49
+ if (g.includes(n)) return "punct";
50
+ if (!h.includes(n)) return "word";
51
+ if (n === "-") {
52
+ if (v(e[t - 1]) && v(e[t + 1])) return "word";
53
+ let n = t;
54
+ for (; e[n - 1] === "-";) n--;
55
+ let r = t;
56
+ for (; e[r] === "-";) r++;
57
+ if (n === 0 && v(e[r])) return "word";
58
+ }
59
+ return "op";
60
+ }
61
+ function b(e, t) {
62
+ let n = [], r = 0, i = (e, t, i) => {
63
+ if (t = Math.max(t, r), i <= t || (r = i, e === "plain")) return;
64
+ let a = n[n.length - 1];
65
+ a && a.type === e && a.end === t ? a.end = i : n.push({
66
+ type: e,
67
+ start: t,
68
+ end: i
69
+ });
70
+ }, a = t.every((e, n) => n === 0 || t[n - 1].start <= e.start) ? t : [...t].sort((e, t) => e.start - t.start);
71
+ for (let t of a) {
72
+ if (!m.has(t.type)) {
73
+ i(t.type, t.start, t.end);
74
+ continue;
75
+ }
76
+ let n = e.slice(t.start, t.end), r = 0;
77
+ for (; r < n.length;) {
78
+ let e = y(n, r), a = r + 1;
79
+ for (; a < n.length && y(n, a) === e;) a++;
80
+ let o = n.slice(r, a), s = /^(<\/?|\/?>)$/.test(o) && /[A-Za-z]/.test(n);
81
+ i(e === "word" ? t.type : e === "op" && o !== "." && o !== ":" && !s ? "operator" : "plain", t.start + r, t.start + a), r = a;
82
+ }
83
+ }
84
+ return n;
85
+ }
86
+ var x = null, S = () => x ??= import("gpu-lexer").then((e) => e.parse), C = Promise.resolve(), w = /* @__PURE__ */ new Map(), T = 65536;
87
+ async function E(e) {
88
+ let t = await S();
89
+ if (e.length <= T) return b(e, await t(e));
90
+ let n = [], r = 0;
91
+ for (; r < e.length;) {
92
+ let i = Math.min(e.length, r + T);
93
+ if (i < e.length) {
94
+ let t = e.lastIndexOf("\n", i);
95
+ t > r && (i = t + 1);
96
+ }
97
+ for (let a of await t(e.slice(r, i))) n.push({
98
+ type: a.type,
99
+ start: a.start + r,
100
+ end: a.end + r
101
+ });
102
+ r = i;
103
+ }
104
+ return b(e, n);
105
+ }
106
+ function D(t) {
107
+ return C = C.then(() => E(t).then((t) => (e = "ready", {
108
+ spans: t,
109
+ highlighter: "gpu"
110
+ }), (n) => (e !== "ready" && /unavailable/i.test(String(n)) && (e = "unavailable"), k(t))));
111
+ }
112
+ function O(e, t = "auto") {
113
+ let n = p(e, t);
114
+ if (n) return Promise.resolve(n);
115
+ if (!s(t)) return Promise.resolve(k(e));
116
+ let r = t + "\0" + e, i = w.get(r);
117
+ if (i) return i;
118
+ let a = o().then(() => s(t) ? D(e) : k(e)).then((t) => (w.delete(r), t.highlighter === "gpu" && f(l, e, t), t));
119
+ return w.set(r, a), a;
120
+ }
121
+ function k(e) {
122
+ let t = d(u, e);
123
+ if (t) return t;
124
+ let n = {
125
+ spans: b(e, N(e)),
126
+ highlighter: "fallback"
127
+ };
128
+ return f(u, e, n), n;
129
+ }
130
+ var A = new Set("as async await break case catch class const continue def default delete do elif else enum export extends fn for from func function go if impl implements import in instanceof interface let match mod module mut new package pass private protected pub public raise readonly return static struct super switch then this throw trait try type typeof use var void where while with yield fi done esac local echo".split(" ")), j = new Set("true false null undefined nil None True False NaN Infinity self".split(" ")), M = /(\/\/[^\n]*|#(?=[ \t!]|$)[^\n]*|\/\*[\s\S]*?(?:\*\/|$)|<!--[\s\S]*?(?:-->|$))|("(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?|`(?:[^`\\]|\\.)*`?)|(\b(?:0[xob][\da-f_]+|\d[\d_]*(?:\.\d+)?(?:e[+-]?\d+)?)\b)|([A-Za-z_$][\w$]*)|(\?\.(?!\d)|\.{2,3}|::|[=<>!+\-*/%&|^~?:]*[=<>!+\-*/%&|^~?][=<>!+\-*/%&|^~?:]*)/gi;
131
+ function N(e) {
132
+ let t = [];
133
+ M.lastIndex = 0;
134
+ let n;
135
+ for (; n = M.exec(e);) {
136
+ let r = n.index, i = r + n[0].length, a = "plain";
137
+ if (n[1]) a = "comment";
138
+ else if (n[2]) a = "string";
139
+ else if (n[3]) a = "number";
140
+ else if (n[4]) {
141
+ let t = n[4];
142
+ a = A.has(t) ? "keyword" : j.has(t) ? "constant" : /^\s*\(/.test(e.slice(i, i + 8)) ? "function" : /^[A-Z][a-z]/.test(t) ? "type" : "plain";
143
+ } else n[5] && (a = "operator");
144
+ a !== "plain" && t.push({
145
+ type: a,
146
+ start: r,
147
+ end: i
148
+ });
149
+ }
150
+ return t;
151
+ }
152
+ function P(e, t) {
153
+ let n = e.endsWith("\n") ? e.slice(0, -1) : e, r = [[]], i = (e, t) => {
154
+ let n = 0;
155
+ for (let i = t.indexOf("\n"); i !== -1; i = t.indexOf("\n", n)) i > n && r[r.length - 1].push({
156
+ type: e,
157
+ text: t.slice(n, i)
158
+ }), r.push([]), n = i + 1;
159
+ n < t.length && r[r.length - 1].push({
160
+ type: e,
161
+ text: t.slice(n)
162
+ });
163
+ }, a = 0;
164
+ for (let e of t ?? []) {
165
+ if (e.start >= n.length) break;
166
+ e.start > a && i("plain", n.slice(a, e.start));
167
+ let t = Math.max(e.start, a), r = Math.min(e.end, n.length);
168
+ r > t && i(e.type, n.slice(t, r)), a = Math.max(a, r);
169
+ }
170
+ return a < n.length && i("plain", n.slice(a)), r;
171
+ }
172
+ function F(e) {
173
+ let t = (e.split("/").pop() ?? e).toLowerCase();
174
+ if (t === "dockerfile") return "dockerfile";
175
+ if (t === "makefile") return "makefile";
176
+ let n = t.includes(".") ? t.split(".").pop() : "";
177
+ return {
178
+ mjs: "js",
179
+ cjs: "js",
180
+ mts: "ts",
181
+ cts: "ts",
182
+ yml: "yaml",
183
+ markdown: "md",
184
+ mdx: "mdx",
185
+ sh: "bash",
186
+ zsh: "bash",
187
+ py: "python",
188
+ rb: "ruby",
189
+ rs: "rust",
190
+ kt: "kotlin",
191
+ htm: "html",
192
+ txt: "text",
193
+ patch: "diff"
194
+ }[n] ?? (n || "text");
195
+ }
196
+ var I = /* @__PURE__ */ new Set([
197
+ "text",
198
+ "txt",
199
+ "plaintext",
200
+ "plain",
201
+ "none"
202
+ ]);
203
+ //#endregion
204
+ export { I as PLAIN_LANGUAGES, k as fallbackResult, N as fallbackSpans, F as languageFromPath, O as lexSyntax, b as normalizeSpans, p as peekSyntax, o as probeWebGPU, P as tokenizeLines, s as webgpuSupported };
@@ -1,4 +1,6 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
+ import { THEME_VARS, ThemeVar } from './tokens.generated';
3
+ export { THEME_VARS, type ThemeVar };
2
4
  export declare const chromeStore: {
3
5
  hidden: boolean;
4
6
  subs: Set<(v: boolean) => void>;
@@ -14,12 +16,66 @@ export declare function AppearanceProvider({ value, children }: {
14
16
  value: Appearance | undefined;
15
17
  children?: ReactNode;
16
18
  }): 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>;
19
+ export declare function useAppearance(): Appearance | undefined;
20
+ export type ThemeScopeName = 'workbench' | 'chat' | 'terminal' | 'sheet' | 'glass' | (string & {});
21
+ /** Variables to set on a scope, by name without the leading `--`: `{ radius: '0.25rem', primary: '#f43' }`. Names are
22
+ the theme variables (tokens.css), so they autocomplete; anything else is a custom property of your own. */
23
+ export type ThemeVars = {
24
+ [K in ThemeVar]?: string;
25
+ } & {
26
+ [custom: string]: string | undefined;
27
+ };
28
+ /** The inline style for a `vars` object: `{ radius: '0.25rem' }` → `{ '--radius': '0.25rem' }`. */
29
+ export declare const themeVarStyle: (vars?: ThemeVars) => CSSProperties;
30
+ /** Root classes for an appearance: shadcn's `dark` (or `light`) plus the matching color-scheme. */
31
+ export declare const themeScopeClass: (appearance: Appearance | undefined) => "" | "dark scheme-dark" | "light scheme-light";
32
+ /** --primary / --ring for a tint (nothing when no tint is given, so the theme's primary applies). */
33
+ export declare const tintVars: (tint?: string) => CSSProperties;
34
+ /** The props a scope root carries: `data-theme-scope`, the appearance class and the tint. */
35
+ export declare function themeScopeProps({ scope, appearance, tint, vars }: {
36
+ scope?: ThemeScopeName;
37
+ appearance?: Appearance;
38
+ tint?: string;
39
+ vars?: ThemeVars;
40
+ }): {
41
+ 'data-theme-scope': ThemeScopeName | undefined;
42
+ className: string;
43
+ style: CSSProperties;
44
+ };
45
+ export interface ThemeScopeState {
46
+ scope?: ThemeScopeName;
47
+ appearance?: Appearance;
48
+ tint?: string;
49
+ vars?: ThemeVars;
50
+ }
51
+ export declare const ThemeScopeContext: import('react').Context<ThemeScopeState | null>;
52
+ /** Props (`data-theme-scope`, `className`, `style`) that carry the surrounding ThemeScope onto a portalled overlay. */
53
+ export declare function useThemeScopeProps(): {
54
+ 'data-theme-scope'?: string;
55
+ className?: string;
56
+ style?: CSSProperties;
57
+ };
58
+ /** The resolved theme variables (and color-scheme) at an element, as a style object. */
59
+ export declare function readThemeVars(el: Element | null | undefined): CSSProperties;
60
+ export interface ThemeScopeProps extends HTMLAttributes<HTMLDivElement> {
61
+ /** A named surface palette — `[data-theme-scope="name"] { … }` in your CSS, or one the bl-theme and the blocks define (`workbench`, `chat`, `terminal`, `sheet`, `glass`). Omit for the plain theme. */
62
+ scope?: ThemeScopeName;
63
+ /** Defaults to the ambient `AppearanceProvider` value; without one a plain scope inherits the page's `.dark` / light,
64
+ a surface scope is light (the terminal scope is always dark). */
65
+ appearance?: Appearance;
66
+ /** Accent for the subtree (--primary / --ring). */
67
+ tint?: string;
68
+ /** Theme variables for the subtree, by name without `--`: `{ radius: '0.25rem', card: '#111' }`. Wins over `tint`. */
69
+ vars?: ThemeVars;
70
+ }
71
+ /** A subtree with its own appearance, accent, variables and (optionally) named surface palette. Overlays opened inside
72
+ it (popovers, menus, dialogs, tooltips) wear the same scope. Scopes nest; the nearest one wins. */
73
+ export declare function ThemeScope({ scope, appearance: appearanceProp, tint, vars, className, style, ...props }: ThemeScopeProps): import("react/jsx-runtime").JSX.Element;
20
74
  export interface BLProviderProps {
21
- /** Defaults to the ambient `AppearanceProvider` value, else light. */
75
+ /** Defaults to the ambient `AppearanceProvider` value; without one the provider inherits the page's appearance
76
+ (shadcn's `.dark` on an ancestor, else light). */
22
77
  dark?: boolean;
78
+ /** Accent for everything below: sets --primary and --ring. Defaults to the theme's primary. */
23
79
  tint?: string;
24
80
  /** Dynamic Island floor. `true` → 59px, a number → that many px. */
25
81
  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,MAAM,aAAa,8BAAsC,CAAC;AAEjE,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAM3D,CAAC;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAM5D,CAAC;AAEH,MAAM,WAAW,eAAe;IAC9B,sEAAsE;IACtE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,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,IAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,2CAiCpH"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/lib/theme.tsx"],"names":[],"mappings":"AACA,OAAO,EAA8F,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5K,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,CAAC;AAKrC,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;AAUD,wBAAgB,aAAa,IAAI,UAAU,GAAG,SAAS,CAItD;AAQD,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEnG;8GAC8G;AAC9G,MAAM,MAAM,SAAS,GAAG;KAAG,CAAC,IAAI,QAAQ,CAAC,CAAC,EAAE,MAAM;CAAE,GAAG;IAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEhG,mGAAmG;AACnG,eAAO,MAAM,aAAa,GAAI,OAAO,SAAS,KAAG,aAIhD,CAAC;AAEF,mGAAmG;AACnG,eAAO,MAAM,eAAe,GAAI,YAAY,UAAU,GAAG,SAAS,mDAC+B,CAAC;AAElG,qGAAqG;AACrG,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,KAAG,aAC6B,CAAC;AAEvE,6FAA6F;AAC7F,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC;IAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE;;;WACjB,aAAa;EAClJ;AAOD,MAAM,WAAW,eAAe;IAAG,KAAK,CAAC,EAAE,cAAc,CAAC;IAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE;AACrH,eAAO,MAAM,iBAAiB,iDAA8C,CAAC;AAE7E,uHAAuH;AACvH,wBAAgB,kBAAkB,IAAI;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAAE,CAK/G;AAED,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,aAAa,CAU3E;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE,wMAAwM;IACxM,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;wEACoE;IACpE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sHAAsH;IACtH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;sGACsG;AACtG,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAgBxH;AAED,MAAM,WAAW,eAAe;IAC9B;yDACqD;IACrD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+FAA+F;IAC/F,IAAI,CAAC,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"}
@@ -0,0 +1,138 @@
1
+ "use client";
2
+ import { THEME_VARS as e } from "./tokens.generated.js";
3
+ import { cn as t } from "./utils.js";
4
+ import { createContext as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useState as s, useSyncExternalStore as c } from "react";
5
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
+ import { UNSAFE_PortalProvider as d } from "react-aria/PortalProvider";
7
+ //#region src/lib/theme.tsx
8
+ var f = {
9
+ hidden: !1,
10
+ subs: /* @__PURE__ */ new Set(),
11
+ set(e) {
12
+ e !== this.hidden && (this.hidden = e, this.subs.forEach((t) => t(e)));
13
+ }
14
+ };
15
+ function p() {
16
+ let [e, t] = s(f.hidden);
17
+ return a(() => {
18
+ let e = (e) => t(e);
19
+ return f.subs.add(e), t(f.hidden), () => {
20
+ f.subs.delete(e);
21
+ };
22
+ }, []), e;
23
+ }
24
+ var m = n(0), h = n(0), g = (e, t) => t ? Math.max(0, e - 52) : e, _ = n(void 0);
25
+ function v({ value: e, children: t }) {
26
+ return /* @__PURE__ */ l(_.Provider, {
27
+ value: e,
28
+ children: t
29
+ });
30
+ }
31
+ function y(e) {
32
+ if (typeof MutationObserver > "u" || typeof document > "u") return () => {};
33
+ let t = new MutationObserver(e);
34
+ return t.observe(document.documentElement, {
35
+ attributes: !0,
36
+ attributeFilter: ["class"]
37
+ }), () => t.disconnect();
38
+ }
39
+ var b = () => typeof document < "u" && document.documentElement.classList.contains("dark");
40
+ function x() {
41
+ let e = i(_), t = c(y, b, () => !1);
42
+ return e ?? (t ? "dark" : void 0);
43
+ }
44
+ var S = (e) => {
45
+ let t = {};
46
+ for (let [n, r] of Object.entries(e ?? {})) r != null && (t["--" + n.replace(/^--/, "")] = r);
47
+ return t;
48
+ }, C = (e) => e === "dark" ? "dark scheme-dark" : e === "light" ? "light scheme-light" : "", w = (e) => e ? {
49
+ "--primary": e,
50
+ "--ring": e
51
+ } : {};
52
+ function T({ scope: e, appearance: t, tint: n, vars: r }) {
53
+ return {
54
+ "data-theme-scope": e,
55
+ className: C(t),
56
+ style: {
57
+ ...w(n),
58
+ ...S(r)
59
+ }
60
+ };
61
+ }
62
+ var E = n(null);
63
+ function D() {
64
+ let e = i(E);
65
+ if (!e) return {};
66
+ let t = T(e);
67
+ return {
68
+ "data-theme-scope": t["data-theme-scope"],
69
+ className: t.className || void 0,
70
+ style: t.style
71
+ };
72
+ }
73
+ function O(t) {
74
+ if (!t || typeof getComputedStyle > "u") return {};
75
+ let n = getComputedStyle(t), r = {};
76
+ for (let t of e) {
77
+ let e = n.getPropertyValue("--" + t).trim();
78
+ e && (r["--" + t] = e);
79
+ }
80
+ return n.colorScheme && n.colorScheme !== "normal" && (r.colorScheme = n.colorScheme), r;
81
+ }
82
+ function k({ scope: e, appearance: n, tint: r, vars: i, className: a, style: s, ...c }) {
83
+ let u = x(), d = e === "terminal" ? "dark" : n ?? u ?? (e ? "light" : void 0), f = T({
84
+ scope: e,
85
+ appearance: d,
86
+ tint: r,
87
+ vars: i
88
+ }), p = o(() => ({
89
+ scope: e,
90
+ appearance: d,
91
+ tint: r,
92
+ vars: i
93
+ }), [
94
+ e,
95
+ d,
96
+ r,
97
+ i
98
+ ]);
99
+ return /* @__PURE__ */ l(E.Provider, {
100
+ value: p,
101
+ children: /* @__PURE__ */ l("div", {
102
+ "data-slot": "theme-scope",
103
+ ...c,
104
+ "data-theme-scope": f["data-theme-scope"],
105
+ className: t(f.className, a),
106
+ style: {
107
+ ...f.style,
108
+ ...s
109
+ }
110
+ })
111
+ });
112
+ }
113
+ function A({ dark: e, tint: n, safeTop: i, children: a, className: o, style: c }) {
114
+ let f = x(), p = e ?? (f ? f === "dark" : void 0), h = i === !0 ? 59 : typeof i == "number" ? i : 0, [g, _] = s(null), v = r(() => g, [g]);
115
+ return /* @__PURE__ */ u("div", {
116
+ ref: _,
117
+ "data-slot": "bl-provider",
118
+ className: t("relative h-full w-full overflow-hidden bg-muted font-sans text-foreground select-none transition-[background] duration-spring-smooth ease-spring-smooth", C(p === void 0 ? void 0 : p ? "dark" : "light"), o),
119
+ style: {
120
+ ...w(n),
121
+ "--bl-safe-top": h + "px",
122
+ ...c
123
+ },
124
+ children: [/* @__PURE__ */ l(d, {
125
+ getContainer: v,
126
+ children: /* @__PURE__ */ l(m.Provider, {
127
+ value: h,
128
+ children: a
129
+ })
130
+ }), h ? /* @__PURE__ */ l("div", {
131
+ className: "pointer-events-none absolute left-1/2 z-400 h-[35px] w-[118px] -translate-x-1/2 rounded-[18px] bg-black",
132
+ style: { top: Math.max(8, h / 5) },
133
+ "aria-hidden": "true"
134
+ }) : null]
135
+ });
136
+ }
137
+ //#endregion
138
+ export { _ as AppearanceContext, v as AppearanceProvider, A as BLProvider, m as BLSafeCtx, h as BLStickyCtx, e as THEME_VARS, k as ThemeScope, E as ThemeScopeContext, g as chromeOffset, f as chromeStore, O as readThemeVars, C as themeScopeClass, T as themeScopeProps, S as themeVarStyle, w as tintVars, x as useAppearance, p as useChromeHidden, D as useThemeScopeProps };
@@ -0,0 +1,16 @@
1
+ /** Color utilities (bg-*, text-*, border-*…) by name: `--color-<name>`. */
2
+ export declare const COLOR_TOKENS: 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", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring", "success", "warning", "tertiary-foreground", "secondary-strong", "overlay", "bar", "sticky", "handle", "link", "code", "code-foreground"];
3
+ /** Font-size utilities (text-*): `--text-<name>`. Size only — no line-height. */
4
+ export declare const TEXT_TOKENS: readonly ["caption2", "caption", "footnote", "detail", "subhead", "callout", "body", "title"];
5
+ /** Radius utilities (rounded-*): `--radius-<name>`, all derived from the `--radius` variable. */
6
+ export declare const RADIUS_TOKENS: readonly ["ctl", "panel", "card", "sheet"];
7
+ /** Shadow utilities (shadow-*): `--shadow-<name>`. */
8
+ export declare const SHADOW_TOKENS: readonly ["hairline", "hairline-t", "hairline-b"];
9
+ /** Spacing utilities (h-*, min-h-*, size-*…) added by BL UI: `--spacing-<name>`. */
10
+ export declare const SPACING_TOKENS: readonly ["toolbar", "row"];
11
+ /** Font-family utilities (font-*): `--font-<name>`. */
12
+ export declare const FONT_TOKENS: readonly ["sans", "mono"];
13
+ /** The CSS variables a theme (or a `ThemeScope`'s `vars`) sets, without the leading `--`. */
14
+ 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", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring", "success", "warning", "tertiary-foreground", "secondary-strong", "overlay", "bar", "sticky", "handle", "link", "code", "code-foreground", "radius", "font-sans", "font-mono"];
15
+ export type ThemeVar = (typeof THEME_VARS)[number];
16
+ //# sourceMappingURL=tokens.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.generated.d.ts","sourceRoot":"","sources":["../../src/lib/tokens.generated.ts"],"names":[],"mappings":"AAGA,2EAA2E;AAC3E,eAAO,MAAM,YAAY,mnBA2Cf,CAAC;AAEX,iFAAiF;AACjF,eAAO,MAAM,WAAW,+FASd,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM,aAAa,4CAKhB,CAAC;AAEX,sDAAsD;AACtD,eAAO,MAAM,aAAa,mDAIhB,CAAC;AAEX,oFAAoF;AACpF,eAAO,MAAM,cAAc,6BAGjB,CAAC;AAEX,uDAAuD;AACvD,eAAO,MAAM,WAAW,2BAGd,CAAC;AAEX,6FAA6F;AAC7F,eAAO,MAAM,UAAU,upBA8Cb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ //#region src/lib/tokens.generated.ts
2
+ var e = /* @__PURE__ */ "background.foreground.card.card-foreground.popover.popover-foreground.primary.primary-foreground.secondary.secondary-foreground.muted.muted-foreground.accent.accent-foreground.destructive.border.input.ring.chart-1.chart-2.chart-3.chart-4.chart-5.sidebar.sidebar-foreground.sidebar-primary.sidebar-primary-foreground.sidebar-accent.sidebar-accent-foreground.sidebar-border.sidebar-ring.success.warning.tertiary-foreground.secondary-strong.overlay.bar.sticky.handle.link.code.code-foreground".split("."), t = [
3
+ "caption2",
4
+ "caption",
5
+ "footnote",
6
+ "detail",
7
+ "subhead",
8
+ "callout",
9
+ "body",
10
+ "title"
11
+ ], n = [
12
+ "ctl",
13
+ "panel",
14
+ "card",
15
+ "sheet"
16
+ ], r = [
17
+ "hairline",
18
+ "hairline-t",
19
+ "hairline-b"
20
+ ], i = ["toolbar", "row"], a = ["sans", "mono"], o = /* @__PURE__ */ "background.foreground.card.card-foreground.popover.popover-foreground.primary.primary-foreground.secondary.secondary-foreground.muted.muted-foreground.accent.accent-foreground.destructive.border.input.ring.chart-1.chart-2.chart-3.chart-4.chart-5.sidebar.sidebar-foreground.sidebar-primary.sidebar-primary-foreground.sidebar-accent.sidebar-accent-foreground.sidebar-border.sidebar-ring.success.warning.tertiary-foreground.secondary-strong.overlay.bar.sticky.handle.link.code.code-foreground.radius.font-sans.font-mono".split(".");
21
+ //#endregion
22
+ export { e as COLOR_TOKENS, a as FONT_TOKENS, n as RADIUS_TOKENS, r as SHADOW_TOKENS, i as SPACING_TOKENS, t as TEXT_TOKENS, o as THEME_VARS };
@@ -4,4 +4,9 @@ export declare const FONT = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Seg
4
4
  /** @deprecated Legacy iOS curve. New motion uses the spring tokens (lib/motion.ts `springs`, CSS `--ease-spring-*`). */
5
5
  export declare const EASE = "cubic-bezier(.32,.72,0,1)";
6
6
  export declare const BARH = 52;
7
+ /** Pressables: no tap flash, the host font, and a brightness nudge on hover (dimmer on light surfaces, brighter on
8
+ dark ones — the terminal scope is dark in both appearances). */
9
+ export declare const pressable = "[-webkit-tap-highlight-color:transparent] [font-family:inherit] hover:brightness-[.97] dark:hover:brightness-[1.12]";
10
+ /** A brand tile: the accent into iOS indigo (#5E5CE6, a fixed brand color). */
11
+ export declare const brandTile = "bg-[linear-gradient(135deg,var(--primary),#5E5CE6)]";
7
12
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAgB7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,eAAO,MAAM,IAAI,iGAC+E,CAAC;AACjG,wHAAwH;AACxH,eAAO,MAAM,IAAI,8BAA8B,CAAC;AAChD,eAAO,MAAM,IAAI,KAAK,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAoB7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,eAAO,MAAM,IAAI,iGAC+E,CAAC;AACjG,wHAAwH;AACxH,eAAO,MAAM,IAAI,8BAA8B,CAAC;AAChD,eAAO,MAAM,IAAI,KAAK,CAAC;AAEvB;mEACmE;AACnE,eAAO,MAAM,SAAS,wHACiG,CAAC;AAExH,+EAA+E;AAC/E,eAAO,MAAM,SAAS,wDAAwD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { COLOR_TOKENS as e, FONT_TOKENS as t, RADIUS_TOKENS as n, SHADOW_TOKENS as r, SPACING_TOKENS as i, TEXT_TOKENS as a } from "./tokens.generated.js";
2
+ import { clsx as o } from "clsx";
3
+ import { extendTailwindMerge as s } from "tailwind-merge";
4
+ //#region src/lib/utils.ts
5
+ var c = s({ extend: { theme: {
6
+ color: [...e],
7
+ text: [...a],
8
+ radius: [...n],
9
+ shadow: [...r],
10
+ spacing: [...i],
11
+ font: [...t]
12
+ } } });
13
+ function l(...e) {
14
+ return c(o(e));
15
+ }
16
+ var u = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',sans-serif", d = "cubic-bezier(.32,.72,0,1)", f = 52, p = "[-webkit-tap-highlight-color:transparent] [font-family:inherit] hover:brightness-[.97] dark:hover:brightness-[1.12]", m = "bg-[linear-gradient(135deg,var(--primary),#5E5CE6)]";
17
+ //#endregion
18
+ export { f as BARH, d as EASE, u as FONT, m as brandTile, l as cn, p as pressable };