@vite-hub/ui 0.4.1 → 0.5.1

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 (360) hide show
  1. package/README.md +102 -76
  2. package/dist/andromeeda-DaUPZ4_A.js +147 -0
  3. package/dist/announce-B0DLwflT.js +31 -0
  4. package/dist/{attachments-BzTwqRTU.js → attachments-DgwoQZKY.js} +3 -5
  5. package/dist/aurora-x-B5RPZ9i5.js +162 -0
  6. package/dist/{avatar-stack-DPRFuezh.d.ts → avatar-stack-C0IKwj6g.d.ts} +1 -3
  7. package/dist/ayu-dark-DXTaGA7I.js +137 -0
  8. package/dist/ayu-light-BCYi80Fe.js +137 -0
  9. package/dist/ayu-mirage-CgbXz-N5.js +137 -0
  10. package/dist/catppuccin-frappe-MV2xzv44.js +266 -0
  11. package/dist/catppuccin-latte-CL6jjlVD.js +266 -0
  12. package/dist/catppuccin-macchiato-Bp6oZJVK.js +266 -0
  13. package/dist/catppuccin-mocha-DOHrQ4dw.js +266 -0
  14. package/dist/{choices-input-ByXJvDn1.d.ts → choices-input-BUf-QqGj.d.ts} +0 -2
  15. package/dist/{code-view-DsU-xzic.js → code-view-Cg4nyTNA.js} +6 -8
  16. package/dist/{colors-BghReA9C-CjF9gnmy.js → colors-BghReA9C-DEq4bhEP.js} +1 -2
  17. package/dist/{comment-attachments-C4yNbcx5.js → comment-attachments-CMpYOJod.js} +1 -2
  18. package/dist/{comment-composer-fINL5bxo.d.ts → comment-composer-BI6CNJyO.d.ts} +3 -5
  19. package/dist/{comment-composer-jYv2ULNP.js → comment-composer-CzU7DdfD.js} +260 -16
  20. package/dist/{comment-layer-C_sbPIR5.d.ts → comment-layer-DyVstrs-.d.ts} +5 -7
  21. package/dist/{comment-list-BcSaLngS.d.ts → comment-list-CSK5o-Ua.d.ts} +3 -5
  22. package/dist/comment-marks.css +18 -22
  23. package/dist/{comment-panel-CfvdRUMX.d.ts → comment-panel-CEvOI3gk.d.ts} +3 -5
  24. package/dist/{comment-person-CLPlW_SS.js → comment-person-D_IyIjXo.js} +1 -2
  25. package/dist/{comment-pin-DHOdRvUw.d.ts → comment-pin-C5UeLPTa.d.ts} +1 -3
  26. package/dist/{comment-row-Bn3nr8l5.js → comment-row-DPMWI5Z0.js} +3 -4
  27. package/dist/{comment-selection-bar-CyVBNYl9.d.ts → comment-selection-bar-CVuS-FNL.d.ts} +0 -2
  28. package/dist/comment-send-DPzV9B8S.js +275 -0
  29. package/dist/comment-send-MmxFsOQf.d.ts +23 -0
  30. package/dist/comment-send.css +267 -0
  31. package/dist/comment-thread-CbPtoi8-.js +796 -0
  32. package/dist/{comment-thread-DKJjmWN0.d.ts → comment-thread-DGm1cGJt.d.ts} +4 -8
  33. package/dist/{comment-visibility-DsVuVndP.d.ts → comment-visibility-CYctacNx.d.ts} +0 -2
  34. package/dist/{comments-D0d26ghV.js → comments-C0OdHh_F.js} +5 -8
  35. package/dist/{comments-D8hulVPy.d.ts → comments-DrE9DU-E.d.ts} +1 -3
  36. package/dist/{comments-context-C2lOZyQ5.js → comments-context-CrjhleVA.js} +4 -5
  37. package/dist/{config-Dk67emQt.js → config-DztmAYYn.js} +9 -3
  38. package/dist/{config-DgxBW013.d.ts → config-xL4EBeXw.d.ts} +11 -4
  39. package/dist/dark-plus-CXEBSjk4.js +148 -0
  40. package/dist/dracula-Bvyz6eCo.js +165 -0
  41. package/dist/dracula-soft-a9indxAQ.js +115 -0
  42. package/dist/{draw-DzSmD7uo-Dwz8zoH2.js → draw-DzSmD7uo-Cb7s9kxJ.js} +359 -708
  43. package/dist/drop-field-CNZgwFVO.js +162 -0
  44. package/dist/{editor-C_wt4RRV.js → editor-CGiEVOnB.js} +44 -6
  45. package/dist/effects-g4QucvgO.js +2955 -0
  46. package/dist/{error-diagnostics-SXtnk6bz.js → error-diagnostics-BlgA9rI2.js} +1 -2
  47. package/dist/everforest-dark-9sVAxG7I.js +99 -0
  48. package/dist/everforest-light-BocTn_Hd.js +99 -0
  49. package/dist/{file-tree-C4OYgbV-.js → file-tree-CRFIdtzw.js} +58 -116
  50. package/dist/{file-tree-DlT9RGhu.d.ts → file-tree-DOtkeBaq.d.ts} +0 -14
  51. package/dist/{format-orwcdZL_.js → format-Bc9m7-r0.js} +1 -2
  52. package/dist/{getSingularPatch-Dsb8EgxR.js → getSingularPatch-C7LmmBrW.js} +375 -79
  53. package/dist/github-dark-BO9SXswM.js +142 -0
  54. package/dist/github-dark-default-XB_RHfBI.js +90 -0
  55. package/dist/github-dark-dimmed-BoGxaWUQ.js +137 -0
  56. package/dist/github-dark-high-contrast-B3X6t2fG.js +137 -0
  57. package/dist/github-light-D7VHHlUH.js +142 -0
  58. package/dist/github-light-default-BuDsGtcR.js +137 -0
  59. package/dist/github-light-high-contrast-GodZiAwh.js +137 -0
  60. package/dist/gruvbox-dark-hard-CU4LuKJc.js +140 -0
  61. package/dist/gruvbox-dark-medium-DjAsuXuH.js +140 -0
  62. package/dist/gruvbox-dark-soft-D3Zttj6R.js +140 -0
  63. package/dist/gruvbox-light-hard-4M_9onwE.js +140 -0
  64. package/dist/gruvbox-light-medium-D9QwS4kQ.js +140 -0
  65. package/dist/gruvbox-light-soft-DhYcfQql.js +140 -0
  66. package/dist/{handlers-DMl-Na3x.js → handlers-CnbkvXjX.js} +1 -2
  67. package/dist/headless.d.ts +4 -4
  68. package/dist/headless.js +1 -1
  69. package/dist/highlights-C2AbEdDI.js +2630 -0
  70. package/dist/hold-to-delete-BSMrpE-i.d.ts +49 -0
  71. package/dist/hold-to-delete-Cludb56v.js +433 -0
  72. package/dist/horizon-bright-B9u59onx.js +97 -0
  73. package/dist/horizon-tItY9ATR.js +97 -0
  74. package/dist/houston-BqKrKNQv.js +207 -0
  75. package/dist/icon-XZaCUZTG.d.ts +29 -0
  76. package/dist/{image-preview-C9tdkmEj.js → image-preview-DrLXrHpp.js} +3 -4
  77. package/dist/{index-CNY1uNTh.d.ts → index-B2cbt3py.d.ts} +3945 -2445
  78. package/dist/{index-BYRFQfCd.d.ts → index-B_PSX-5h.d.ts} +5 -11
  79. package/dist/index.d.ts +35 -32
  80. package/dist/index.js +71 -73
  81. package/dist/install-Ba9mkkqI.js +16 -0
  82. package/dist/kanagawa-dragon-BH1K3aMw.js +159 -0
  83. package/dist/kanagawa-lotus-C-4JB2io.js +159 -0
  84. package/dist/kanagawa-wave-DTQqNe5k.js +159 -0
  85. package/dist/laserwave-BkV0uIaG.js +84 -0
  86. package/dist/light-plus-CxYgEz7U.js +149 -0
  87. package/dist/list-DUTAo0uC.js +270 -0
  88. package/dist/loader-CYMEjzwc.js +79 -0
  89. package/dist/{markdown-editor-CMbNZOdN.js → markdown-editor-3gY9MLvy.js} +237 -38
  90. package/dist/{markdown-editor-wQF0yD5o.d.ts → markdown-editor-B7gD60tp.d.ts} +0 -6
  91. package/dist/markdown-editor.d.ts +1 -5
  92. package/dist/markdown-editor.js +2 -2
  93. package/dist/markdown-renderer-DFS1vf1h.js +26578 -0
  94. package/dist/material-theme-Xdm37UUJ.js +105 -0
  95. package/dist/material-theme-darker-Blaz0cgN.js +105 -0
  96. package/dist/material-theme-lighter-BddVxBVA.js +105 -0
  97. package/dist/material-theme-ocean-C4qhfFHi.js +105 -0
  98. package/dist/material-theme-palenight-ChHDqoiA.js +105 -0
  99. package/dist/{message-scroller-jrYN9dG9.d.ts → message-scroller-a6qaYHno.d.ts} +2 -4
  100. package/dist/min-dark-DpGSNjaW.js +125 -0
  101. package/dist/min-light-BMfJUsU2.js +122 -0
  102. package/dist/monokai-DW19E-zg.js +162 -0
  103. package/dist/motion/core.d.ts +4 -0
  104. package/dist/motion/core.js +11 -0
  105. package/dist/motion-core-DNl7TR1T.d.ts +402 -0
  106. package/dist/motion.d.ts +14 -0
  107. package/dist/motion.js +13 -0
  108. package/dist/night-owl-B7Of8ee9.js +188 -0
  109. package/dist/night-owl-light-Vu9tTNpS.js +189 -0
  110. package/dist/nord-CDzJumeN.js +128 -0
  111. package/dist/nuxt-ui-7ByUrymx.js +43 -0
  112. package/dist/nuxt.d.ts +1 -7
  113. package/dist/nuxt.js +16 -11
  114. package/dist/one-dark-pro-hS_sNo5p.js +124 -0
  115. package/dist/one-light-CD4ItzSC.js +153 -0
  116. package/dist/opt-out-D66l60sg.js +205 -0
  117. package/dist/parts/components/agent-session.d.ts +1 -3
  118. package/dist/parts/components/agent-session.js +3 -4
  119. package/dist/parts/components/attachment.d.ts +2 -4
  120. package/dist/parts/components/attachment.js +3 -4
  121. package/dist/parts/components/avatar-stack.d.ts +1 -1
  122. package/dist/parts/components/avatar-stack.js +4 -4
  123. package/dist/parts/components/bubble.d.ts +2 -4
  124. package/dist/parts/components/bubble.js +2 -3
  125. package/dist/parts/components/chat-message.d.ts +1 -3
  126. package/dist/parts/components/chat-message.js +1 -2
  127. package/dist/parts/components/chat-session.d.ts +2 -4
  128. package/dist/parts/components/chat-session.js +1 -2
  129. package/dist/parts/components/chat.d.ts +1 -3
  130. package/dist/parts/components/chat.js +4 -5
  131. package/dist/parts/components/code-block.d.ts +2 -4
  132. package/dist/parts/components/code-block.js +3 -4
  133. package/dist/parts/components/code-view.d.ts +1 -3
  134. package/dist/parts/components/code-view.js +1 -2
  135. package/dist/parts/components/comment-composer.d.ts +1 -1
  136. package/dist/parts/components/comment-composer.js +1 -2
  137. package/dist/parts/components/comment-layer.d.ts +1 -1
  138. package/dist/parts/components/comment-layer.js +28 -11
  139. package/dist/parts/components/comment-list.d.ts +1 -1
  140. package/dist/parts/components/comment-list.js +13 -9
  141. package/dist/parts/components/comment-panel.d.ts +1 -1
  142. package/dist/parts/components/comment-panel.js +27 -14
  143. package/dist/parts/components/comment-pin.d.ts +1 -1
  144. package/dist/parts/components/comment-pin.js +2 -3
  145. package/dist/parts/components/comment-selection-bar.d.ts +1 -1
  146. package/dist/parts/components/comment-selection-bar.js +4 -4
  147. package/dist/parts/components/comment-send.d.ts +2 -0
  148. package/dist/parts/components/comment-send.js +1 -0
  149. package/dist/parts/components/comment-thread.d.ts +1 -1
  150. package/dist/parts/components/comment-thread.js +2 -597
  151. package/dist/parts/components/comments.d.ts +9 -8
  152. package/dist/parts/components/comments.js +7 -6
  153. package/dist/parts/components/connection-status.d.ts +1 -3
  154. package/dist/parts/components/connection-status.js +1 -2
  155. package/dist/parts/components/copy-button.d.ts +14 -6
  156. package/dist/parts/components/copy-button.js +225 -1
  157. package/dist/parts/components/device-frame.d.ts +3 -5
  158. package/dist/parts/components/device-frame.js +1 -2
  159. package/dist/parts/components/drop-field.d.ts +67 -0
  160. package/dist/parts/components/drop-field.js +76 -0
  161. package/dist/parts/components/file-tree.d.ts +1 -1
  162. package/dist/parts/components/file-tree.js +1 -2
  163. package/dist/parts/components/filter-search.d.ts +2 -4
  164. package/dist/parts/components/filter-search.js +2 -3
  165. package/dist/parts/components/hold-to-delete.d.ts +80 -0
  166. package/dist/parts/components/hold-to-delete.js +75 -0
  167. package/dist/parts/components/markdown-editor.d.ts +1 -1
  168. package/dist/parts/components/markdown-editor.js +1 -2
  169. package/dist/parts/components/markdown-renderer.d.ts +1 -3
  170. package/dist/parts/components/markdown-renderer.js +1 -23077
  171. package/dist/parts/components/markdown.d.ts +1 -3
  172. package/dist/parts/components/markdown.js +2 -3
  173. package/dist/parts/components/marker.d.ts +2 -4
  174. package/dist/parts/components/marker.js +2 -3
  175. package/dist/parts/components/message-parts.d.ts +1 -3
  176. package/dist/parts/components/message-parts.js +14 -7
  177. package/dist/parts/components/message.d.ts +1 -3
  178. package/dist/parts/components/message.js +2 -3
  179. package/dist/parts/components/motion-list.d.ts +40 -0
  180. package/dist/parts/components/motion-list.js +41 -0
  181. package/dist/parts/components/motion.d.ts +122 -0
  182. package/dist/parts/components/motion.js +171 -0
  183. package/dist/parts/components/patch-parsers.d.ts +1 -1
  184. package/dist/parts/components/patch-parsers.js +1 -2
  185. package/dist/parts/components/progress.d.ts +39 -0
  186. package/dist/parts/components/progress.js +53 -0
  187. package/dist/parts/components/prompt-input.d.ts +5 -7
  188. package/dist/parts/components/prompt-input.js +5 -6
  189. package/dist/parts/components/relative-time.d.ts +1 -3
  190. package/dist/parts/components/relative-time.js +1 -2
  191. package/dist/parts/components/status.d.ts +1 -3
  192. package/dist/parts/components/status.js +1 -2
  193. package/dist/parts/components/sync-status.d.ts +1 -3
  194. package/dist/parts/components/sync-status.js +3 -3
  195. package/dist/parts/components/tool-list.d.ts +2 -4
  196. package/dist/parts/components/tool-list.js +2 -3
  197. package/dist/parts/components/trace-run.d.ts +2 -4
  198. package/dist/parts/components/trace-run.js +4 -5
  199. package/dist/parts/components/trace.d.ts +2 -4
  200. package/dist/parts/components/trace.js +2 -3
  201. package/dist/parts/composables/attachments.d.ts +1 -3
  202. package/dist/parts/composables/attachments.js +1 -2
  203. package/dist/parts/composables/highlighted-code.d.ts +1 -3
  204. package/dist/parts/composables/highlighted-code.js +1 -2
  205. package/dist/parts/headless/choices-input.d.ts +1 -1
  206. package/dist/parts/headless/choices-input.js +3 -4
  207. package/dist/parts/headless/comment-visibility.d.ts +1 -1
  208. package/dist/parts/headless/comment-visibility.js +1 -2
  209. package/dist/parts/headless/comments.d.ts +1 -1
  210. package/dist/parts/headless/comments.js +1 -2
  211. package/dist/parts/headless/message-scroller.d.ts +1 -1
  212. package/dist/parts/headless/message-scroller.js +2 -3
  213. package/dist/parts/playground/paths.d.ts +1 -3
  214. package/dist/parts/playground/paths.js +1 -2
  215. package/dist/parts/playground/share.d.ts +34 -2
  216. package/dist/parts/playground/share.js +1 -2
  217. package/dist/parts/playground/zip.d.ts +1 -3
  218. package/dist/parts/playground/zip.js +2 -3
  219. package/dist/parts/workspace/browser-support-notice.d.ts +2 -4
  220. package/dist/parts/workspace/browser-support-notice.js +13 -6
  221. package/dist/parts/workspace/codemirror.d.ts +10 -3
  222. package/dist/parts/workspace/codemirror.js +40 -8
  223. package/dist/parts/workspace/connect-panel.d.ts +2 -4
  224. package/dist/parts/workspace/connect-panel.js +2 -3
  225. package/dist/parts/workspace/connect-store.d.ts +1 -3
  226. package/dist/parts/workspace/connect-store.js +1 -2
  227. package/dist/parts/workspace/file-icons.d.ts +14 -0
  228. package/dist/parts/workspace/file-icons.js +81 -0
  229. package/dist/parts/workspace/icons.d.ts +2 -2
  230. package/dist/parts/workspace/icons.js +2 -2
  231. package/dist/parts/workspace/runners/render.d.ts +24 -0
  232. package/dist/parts/workspace/runners/render.js +123 -0
  233. package/dist/parts/workspace/runners/web-container.d.ts +27 -0
  234. package/dist/parts/workspace/runners/web-container.js +185 -0
  235. package/dist/parts/workspace/workspace-bar.d.ts +49 -0
  236. package/dist/parts/workspace/workspace-bar.js +50 -0
  237. package/dist/parts/workspace/workspace-boot-status.d.ts +1 -2
  238. package/dist/parts/workspace/workspace-boot-status.js +2 -3
  239. package/dist/parts/workspace/workspace-editor-head.d.ts +45 -0
  240. package/dist/parts/workspace/workspace-editor-head.js +65 -0
  241. package/dist/parts/workspace/workspace-editor.d.ts +18 -3
  242. package/dist/parts/workspace/workspace-editor.js +30 -5
  243. package/dist/parts/workspace/workspace-examples.d.ts +72 -0
  244. package/dist/parts/workspace/workspace-examples.js +71 -0
  245. package/dist/parts/workspace/workspace-file-link.d.ts +33 -0
  246. package/dist/parts/workspace/workspace-file-link.js +38 -0
  247. package/dist/parts/workspace/workspace-file-tree.d.ts +9 -11
  248. package/dist/parts/workspace/workspace-file-tree.js +28 -22
  249. package/dist/parts/workspace/workspace-guide.d.ts +50 -0
  250. package/dist/parts/workspace/workspace-guide.js +90 -0
  251. package/dist/parts/workspace/workspace-issues.d.ts +44 -0
  252. package/dist/parts/workspace/workspace-issues.js +48 -0
  253. package/dist/parts/workspace/workspace-preview.d.ts +1 -3
  254. package/dist/parts/workspace/workspace-preview.js +2 -3
  255. package/dist/parts/workspace/workspace-shell.d.ts +2 -88
  256. package/dist/parts/workspace/workspace-shell.js +132 -80
  257. package/dist/parts/workspace/workspace-sidebar.d.ts +73 -0
  258. package/dist/parts/workspace/workspace-sidebar.js +131 -0
  259. package/dist/parts/workspace/workspace-start.d.ts +45 -0
  260. package/dist/parts/workspace/workspace-start.js +59 -0
  261. package/dist/parts/workspace/workspace-status.d.ts +67 -0
  262. package/dist/parts/workspace/workspace-status.js +73 -0
  263. package/dist/parts/workspace/workspace-steps.d.ts +2 -0
  264. package/dist/parts/workspace/workspace-steps.js +127 -0
  265. package/dist/parts/workspace/workspace-task.d.ts +18 -0
  266. package/dist/parts/workspace/workspace-task.js +19 -0
  267. package/dist/parts/workspace/workspace-terminal.d.ts +1 -3
  268. package/dist/parts/workspace/workspace-terminal.js +1 -2
  269. package/dist/parts/workspace/workspace.d.ts +249 -0
  270. package/dist/parts/workspace/workspace.js +664 -0
  271. package/dist/{payload-text-sjkYAwvw.js → payload-text-DQNRbJY5.js} +1 -2
  272. package/dist/{pierre-code-view-NE35tkmR.js → pierre-code-view-C49BVDrc.js} +11333 -6718
  273. package/dist/pierre-dark-BtKHt2e4.js +166 -0
  274. package/dist/pierre-dark-CXW3KeKO.js +5 -0
  275. package/dist/pierre-dark-protanopia-deuteranopia-CS0Gs25Q.js +166 -0
  276. package/dist/pierre-dark-protanopia-deuteranopia-DajNv_A3.js +3 -0
  277. package/dist/pierre-dark-soft-BUFoeBEf.js +3 -0
  278. package/dist/pierre-dark-soft-D__0FtYP.js +166 -0
  279. package/dist/pierre-dark-tritanopia-C6fHROmA.js +166 -0
  280. package/dist/pierre-dark-tritanopia-oa3gpgIR.js +3 -0
  281. package/dist/pierre-dark-vibrant-COXpyAHb.js +166 -0
  282. package/dist/pierre-dark-vibrant-CYRHyDoW.js +3 -0
  283. package/dist/pierre-light-BD28C_vh.js +166 -0
  284. package/dist/pierre-light-BN0rL1e5.js +5 -0
  285. package/dist/pierre-light-protanopia-deuteranopia-CYsDHJt0.js +3 -0
  286. package/dist/pierre-light-protanopia-deuteranopia-CwWH1xGL.js +166 -0
  287. package/dist/pierre-light-soft-BkKY4pMj.js +166 -0
  288. package/dist/pierre-light-soft-F2QIpNbb.js +3 -0
  289. package/dist/pierre-light-tritanopia-BbKKIkua.js +3 -0
  290. package/dist/pierre-light-tritanopia-Mpubahl7.js +166 -0
  291. package/dist/pierre-light-vibrant-CdV9Besm.js +3 -0
  292. package/dist/pierre-light-vibrant-x11J3_aO.js +166 -0
  293. package/dist/plastic-BQnXkmvK.js +137 -0
  294. package/dist/playground.d.ts +1 -1
  295. package/dist/poimandres-DEfG-8RI.js +124 -0
  296. package/dist/progress-DL9k-ERG.js +265 -0
  297. package/dist/red-BfKrAjYG.js +169 -0
  298. package/dist/registry-DAIjCjWd.js +77 -0
  299. package/dist/{relative-time-BVmjOsYG.js → relative-time-DJnw45tr.js} +5 -8
  300. package/dist/ring-BN4d8vtw.js +173 -0
  301. package/dist/{rolldown-runtime-C9mWXvCC.js → rolldown-runtime-CahUhzF3.js} +2 -3
  302. package/dist/rose-pine-D0rhGGFg.js +136 -0
  303. package/dist/rose-pine-dawn-7jVaYUiD.js +136 -0
  304. package/dist/rose-pine-moon-CFyS0Mvu.js +136 -0
  305. package/dist/runtime/nuxt-plugin.d.ts +0 -2
  306. package/dist/runtime/nuxt-plugin.js +3 -4
  307. package/dist/{sankey-CAYwt82B-D4uDQoMR.js → sankey-CAYwt82B-BAAk7WkJ.js} +147 -151
  308. package/dist/shiki-CbfEu_Az.js +607 -0
  309. package/dist/slack-dark-Bv-KFSBD.js +87 -0
  310. package/dist/slack-ochin-Dg2BAv1D.js +107 -0
  311. package/dist/{slot-part-Doic71uh.js → slot-part-BWHvQ3mK.js} +1 -2
  312. package/dist/snazzy-light-sYDdR9rx.js +93 -0
  313. package/dist/solarized-dark-COt2tTmN.js +160 -0
  314. package/dist/solarized-light-BJrwFarZ.js +160 -0
  315. package/dist/stream-tokenizer-ByC3l0HQ.js +263 -0
  316. package/dist/styles.css +590 -573
  317. package/dist/synthwave-84-NUDBykTM.js +410 -0
  318. package/dist/{temml-BilSAAws.js → temml-m3ad3bfq.js} +2 -3
  319. package/dist/text-BWzZFnGY.js +822 -0
  320. package/dist/theme.d.ts +44 -3
  321. package/dist/theme.js +23 -9
  322. package/dist/themes-DKugPHlg.js +323 -0
  323. package/dist/tokyo-night-DD3B2QcO.js +153 -0
  324. package/dist/travel-CwVhU_GS.js +180 -0
  325. package/dist/tween-Dv3IIIQG.js +61 -0
  326. package/dist/{types-Dj7vp0lZ.d.ts → types-Ceh7h7NT.d.ts} +1 -3
  327. package/dist/vesper-oVQYrv8Y.js +99 -0
  328. package/dist/visual-copy-CHHBfJ6O.js +14 -0
  329. package/dist/vite.d.ts +1 -3
  330. package/dist/vite.js +13 -3
  331. package/dist/vitesse-black-D84DQZAP.js +196 -0
  332. package/dist/vitesse-dark-CMZ6olk_.js +196 -0
  333. package/dist/vitesse-light-D9d8hLOY.js +196 -0
  334. package/dist/{vue-DGstVdGn.js → vue-BlknIGIm.js} +43 -34
  335. package/dist/{vue-BDmSCtay.js → vue-kCdzBu0N.js} +4 -7
  336. package/dist/workspace-shell-ChCwWPyv.d.ts +110 -0
  337. package/dist/workspace-steps-BKByX9DW.d.ts +70 -0
  338. package/dist/workspace.d.ts +16 -5
  339. package/dist/workspace.js +16 -3
  340. package/package.json +66 -55
  341. package/dist/copy-button-CRN3kmSD.js +0 -253
  342. package/dist/icon-swap.css +0 -69
  343. package/dist/nuxt-ui-DSQFzq3s.js +0 -38
  344. package/dist/parts/playground/highlight.d.ts +0 -5
  345. package/dist/parts/playground/highlight.js +0 -23
  346. package/dist/parts/playground/playground-render.d.ts +0 -126
  347. package/dist/parts/playground/playground-render.js +0 -356
  348. package/dist/parts/workspace/playground-container.d.ts +0 -192
  349. package/dist/parts/workspace/playground-container.js +0 -603
  350. package/dist/pierre-dark-CzUmjETS.js +0 -6
  351. package/dist/pierre-dark-protanopia-deuteranopia-C35UMuvO.js +0 -4
  352. package/dist/pierre-dark-soft-Bb-4-biO.js +0 -4
  353. package/dist/pierre-dark-tritanopia-CIJISGWF.js +0 -4
  354. package/dist/pierre-dark-vibrant-8oZzB3gw.js +0 -4
  355. package/dist/pierre-light-Dn6E0sWv.js +0 -6
  356. package/dist/pierre-light-protanopia-deuteranopia-u0U7N4Hn.js +0 -4
  357. package/dist/pierre-light-soft-BCU6fuhO.js +0 -4
  358. package/dist/pierre-light-tritanopia-3c8Yx3co.js +0 -4
  359. package/dist/pierre-light-vibrant-Cwh332o_.js +0 -4
  360. package/dist/share-DM4eNy4q.d.ts +0 -37
package/dist/styles.css CHANGED
@@ -8,8 +8,8 @@
8
8
  @import "./theme-focus-ring.css";
9
9
  /* Comment pins, areas, and highlights. The ViteHub pill and Drop's page frame load the same file without a framework. */
10
10
  @import "./comment-marks.css" layer(components);
11
- /* The cross-fade of CopyButton's icons. Drop's page frame loads the same file without a framework. */
12
- @import "./icon-swap.css" layer(components);
11
+ /* CommentSend, the Send segment of a comment pill. The ViteHub pill loads the same file in its toolbar. */
12
+ @import "./comment-send.css" layer(components);
13
13
 
14
14
  /*
15
15
  * Theme tokens. Set `--vh-ui-*` on any element to change the parts inside it; the package sets none of them. The parts
@@ -181,9 +181,15 @@
181
181
  */
182
182
  .vh-image-overlay {
183
183
  background: rgb(from var(--vh-media-scrim, var(--vh-bg-elevated)) r g b / 80%);
184
+ transition: opacity 150ms;
184
185
  z-index: 59;
185
186
  }
186
187
 
188
+ /* The page shows again while a comment's picture travels back to its tile. */
189
+ .vh-image-overlay--closing {
190
+ opacity: 0;
191
+ }
192
+
187
193
  .vh-image-dialog {
188
194
  background: transparent;
189
195
  border-radius: 0;
@@ -342,18 +348,6 @@
342
348
  opacity: 1;
343
349
  }
344
350
 
345
- /* Under reduced motion the surface opens and closes at once. The labels still fade. */
346
- @media (prefers-reduced-motion: no-preference) {
347
- .vh-primitive-rail__surface {
348
- transition: width 150ms cubic-bezier(0.2, 0, 0, 1);
349
- }
350
- }
351
-
352
- /* Escape and a menu trigger close the rail at once, so a menu opens next to an icon that does not move. */
353
- .vh-primitive-rail[data-dismissed] .vh-primitive-rail__surface {
354
- transition: none;
355
- }
356
-
357
351
  .vh-primitive-rail__item[aria-current="page"] {
358
352
  background: var(--vh-bg-accented);
359
353
  color: var(--vh-highlighted);
@@ -389,237 +383,9 @@
389
383
  width: 1.125rem;
390
384
  }
391
385
 
392
- .vh-primitive-icon [data-motion] {
393
- transform-box: view-box;
394
- transform-origin: var(--vh-primitive-icon-origin, 12px 12px);
395
- }
396
-
397
- /* Each icon moves once when a pointer enters or keyboard focus arrives. Nothing moves while idle. */
398
- @media (prefers-reduced-motion: no-preference) {
399
- .vh-primitive-rail__item:focus-visible .vh-primitive-icon [data-motion] {
400
- animation: vh-primitive-icon 320ms cubic-bezier(0.22, 1, 0.36, 1);
401
- }
402
- }
403
-
404
- @media (hover: hover) and (prefers-reduced-motion: no-preference) {
405
- .vh-primitive-rail__item:hover .vh-primitive-icon [data-motion] {
406
- animation: vh-primitive-icon 320ms cubic-bezier(0.22, 1, 0.36, 1);
407
- }
408
- }
409
-
410
- @keyframes vh-primitive-icon {
411
- 50% {
412
- opacity: var(--vh-primitive-icon-opacity, 1);
413
- transform: var(--vh-primitive-icon-motion, none);
414
- }
415
- }
416
-
417
- .vh-primitive-icon[data-icon="agent"] {
418
- --vh-primitive-icon-motion: scaleY(0.2);
419
- --vh-primitive-icon-origin: 12px 14px;
420
- }
421
-
422
- .vh-primitive-icon[data-icon="auth"] {
423
- --vh-primitive-icon-motion: translateY(-1.5px);
424
- }
425
-
426
- .vh-primitive-icon[data-icon="blob"] {
427
- --vh-primitive-icon-motion: translate(1px, -1px);
428
- }
429
-
430
- .vh-primitive-icon[data-icon="browser"] {
431
- --vh-primitive-icon-motion: translate(1.5px, 1.5px);
432
- }
433
-
434
- .vh-primitive-icon[data-icon="bundle"] {
435
- --vh-primitive-icon-motion: translateY(-1px);
436
- }
437
-
438
- .vh-primitive-icon[data-icon="cache"] {
439
- --vh-primitive-icon-motion: translateY(-1.5px);
440
- }
441
-
442
- .vh-primitive-icon[data-icon="channels"] {
443
- --vh-primitive-icon-motion: translateX(1.5px);
444
- }
445
-
446
- .vh-primitive-icon[data-icon="cli"] {
447
- --vh-primitive-icon-opacity: 0;
448
- }
449
-
450
- .vh-primitive-icon[data-icon="cms"] {
451
- --vh-primitive-icon-motion: translate(-1px, -1px);
452
- }
453
-
454
- .vh-primitive-icon[data-icon="codemods"] {
455
- --vh-primitive-icon-motion: translateX(1.5px);
456
- }
457
-
458
- .vh-primitive-icon[data-icon="comments"] {
459
- --vh-primitive-icon-motion: translateX(1.5px);
460
- }
461
-
462
- .vh-primitive-icon[data-icon="compare"] {
463
- --vh-primitive-icon-motion: translateX(-1.5px);
464
- }
465
-
466
- .vh-primitive-icon[data-icon="connections"] {
467
- --vh-primitive-icon-motion: translateY(1.5px);
468
- }
469
-
470
- .vh-primitive-icon[data-icon="console"] {
471
- --vh-primitive-icon-motion: translateX(1px);
472
- }
473
-
474
- .vh-primitive-icon[data-icon="content"] {
475
- --vh-primitive-icon-motion: translateX(1.5px);
476
- }
477
-
478
- .vh-primitive-icon[data-icon="database"] {
479
- --vh-primitive-icon-motion: translateY(-1.5px);
480
- }
481
-
482
- .vh-primitive-icon[data-icon="choices"] {
483
- --vh-primitive-icon-motion: translate(1px, -1px);
484
- }
485
-
486
- .vh-primitive-icon[data-icon="development"] {
487
- --vh-primitive-icon-motion: rotate(14deg);
488
- }
489
-
490
- .vh-primitive-icon[data-icon="docs"] {
491
- --vh-primitive-icon-motion: skewY(-6deg);
492
- --vh-primitive-icon-origin: 12px 12px;
493
- }
494
-
495
- .vh-primitive-icon[data-icon="email"] {
496
- --vh-primitive-icon-motion: translateY(1.5px);
497
- }
498
-
499
- .vh-primitive-icon[data-icon="env"] {
500
- --vh-primitive-icon-motion: rotate(-16deg);
501
- --vh-primitive-icon-origin: 7.5px 16.5px;
502
- }
503
-
504
- .vh-primitive-icon[data-icon="forge"] {
505
- --vh-primitive-icon-motion: translateX(-1px);
506
- }
507
-
508
- .vh-primitive-icon[data-icon="forms"] {
509
- --vh-primitive-icon-motion: translateY(1px);
510
- }
511
-
512
- .vh-primitive-icon[data-icon="gateways"] {
513
- --vh-primitive-icon-motion: translateX(1.5px);
514
- }
515
-
516
- .vh-primitive-icon[data-icon="guides"] {
517
- --vh-primitive-icon-motion: rotate(45deg);
518
- }
519
-
520
- .vh-primitive-icon[data-icon="hosts"] {
521
- --vh-primitive-icon-motion: translateY(-1.5px);
522
- }
523
-
524
- .vh-primitive-icon[data-icon="i18n"] {
525
- --vh-primitive-icon-motion: translateY(-1.5px);
526
- }
527
-
528
- .vh-primitive-icon[data-icon="kv"] {
529
- --vh-primitive-icon-motion: translateX(1.5px);
530
- }
531
-
532
- .vh-primitive-icon[data-icon="logs"] {
533
- --vh-primitive-icon-motion: translateX(1.5px);
534
- }
535
-
536
- .vh-primitive-icon[data-icon="mcp"] {
537
- --vh-primitive-icon-motion: translateY(-1px);
538
- }
539
-
540
- .vh-primitive-icon[data-icon="markdown-template"] {
541
- --vh-primitive-icon-motion: translateY(1.5px);
542
- }
543
-
544
- .vh-primitive-icon[data-icon="presets"] {
545
- --vh-primitive-icon-motion: translate(-1px, -1px);
546
- }
547
-
548
- .vh-primitive-icon[data-icon="queue"] {
549
- --vh-primitive-icon-motion: translateX(2px);
550
- }
551
-
552
- .vh-primitive-icon[data-icon="rate-limit"] {
553
- --vh-primitive-icon-motion: rotate(-70deg);
554
- --vh-primitive-icon-origin: 12px 16px;
555
- }
556
-
557
- .vh-primitive-icon[data-icon="realtime"] {
558
- --vh-primitive-icon-motion: scale(1.12);
559
- --vh-primitive-icon-opacity: 0.4;
560
- }
561
-
562
- .vh-primitive-icon[data-icon="reference"] {
563
- --vh-primitive-icon-motion: translateX(1.5px);
564
- }
565
-
566
- .vh-primitive-icon[data-icon="runtime"] {
567
- --vh-primitive-icon-motion: scale(0.6);
568
- }
569
-
570
- .vh-primitive-icon[data-icon="sandbox"] {
571
- --vh-primitive-icon-motion: scale(0.7);
572
- }
573
-
574
- .vh-primitive-icon[data-icon="schedule"] {
575
- --vh-primitive-icon-motion: translateX(4.5px);
576
- }
577
-
578
- .vh-primitive-icon[data-icon="shell"] {
579
- --vh-primitive-icon-opacity: 0;
580
- }
581
-
582
- .vh-primitive-icon[data-icon="skills"] {
583
- --vh-primitive-icon-motion: translateY(1.5px);
584
- }
585
-
586
- .vh-primitive-icon[data-icon="source"] {
587
- --vh-primitive-icon-motion: translateY(1.5px);
588
- }
589
-
590
- .vh-primitive-icon[data-icon="start"] {
591
- --vh-primitive-icon-motion: skewY(-10deg);
592
- --vh-primitive-icon-origin: 5px 8.5px;
593
- }
594
-
595
- .vh-primitive-icon[data-icon="ui"] {
596
- --vh-primitive-icon-motion: translate(-1px, -1px);
597
- }
598
-
599
- .vh-primitive-icon[data-icon="usage"] {
600
- --vh-primitive-icon-motion: scaleY(0.75);
601
- --vh-primitive-icon-origin: 12px 17px;
602
- }
603
-
604
- .vh-primitive-icon[data-icon="web-container"] {
605
- --vh-primitive-icon-motion: translateY(-1px);
606
- }
607
-
608
- .vh-primitive-icon[data-icon="webhooks"] {
609
- --vh-primitive-icon-motion: translate(1px, -1px);
610
- }
611
-
612
- .vh-primitive-icon[data-icon="workflow"] {
613
- --vh-primitive-icon-motion: translateX(1.5px);
614
- }
615
-
616
- .vh-primitive-icon[data-icon="workspace"] {
617
- --vh-primitive-icon-motion: translateY(-1px);
618
- }
619
-
620
386
  /* A picture's Remove button in a comment box is a 20px round badge in the inverted color, as in Drop. The button is a
621
387
  Nuxt UI button, so this rule stays outside a layer to win over its classes. */
622
- [data-slot="comment-composer"] [data-slot="attachment"]:has(> [data-slot="attachment-media"][data-variant="image"]) [data-slot="attachment-actions"] > button {
388
+ [data-slot="comment-image-stack-remove"] {
623
389
  background: var(--vh-highlighted);
624
390
  border: 0;
625
391
  border-radius: 9999px;
@@ -1061,10 +827,10 @@
1061
827
  color: var(--vh-error);
1062
828
  }
1063
829
 
830
+ /* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
1064
831
  [data-trace-chevron] svg {
1065
832
  stroke: currentColor;
1066
833
  stroke-width: 2;
1067
- transition: rotate 150ms;
1068
834
  }
1069
835
 
1070
836
  [data-slot="trace-collapsible-trigger"][aria-expanded="true"] [data-trace-chevron] svg {
@@ -1076,38 +842,6 @@
1076
842
  overflow: hidden;
1077
843
  }
1078
844
 
1079
- [data-slot="trace-collapsible-content"][data-open] {
1080
- animation: vh-trace-open 200ms ease-out;
1081
- }
1082
-
1083
- [data-slot="trace-collapsible-content"][data-closed] {
1084
- animation: vh-trace-close 200ms ease-out;
1085
- }
1086
-
1087
- @keyframes vh-trace-open {
1088
- from {
1089
- height: 0;
1090
- }
1091
- to {
1092
- height: var(--collapsible-panel-height);
1093
- }
1094
- }
1095
-
1096
- @keyframes vh-trace-close {
1097
- from {
1098
- height: var(--collapsible-panel-height);
1099
- }
1100
- to {
1101
- height: 0;
1102
- }
1103
- }
1104
-
1105
- @media (prefers-reduced-motion: reduce) {
1106
- [data-slot="trace-collapsible-content"] {
1107
- animation: none !important;
1108
- }
1109
- }
1110
-
1111
845
  [data-slot="trace-collapsible-content-inner"] {
1112
846
  border-left: 1px solid var(--vh-border);
1113
847
  color: var(--vh-muted);
@@ -1732,10 +1466,6 @@
1732
1466
  flex: 1;
1733
1467
  }
1734
1468
 
1735
- [data-slot="prompt-input-toolbar"] button:active:not(:disabled) {
1736
- scale: 0.96;
1737
- }
1738
-
1739
1469
  /* On a phone the Send button sends, so it gets a 48px target around its 32px circle without a larger circle. */
1740
1470
  @media (pointer: coarse) {
1741
1471
  [data-slot="prompt-input-toolbar"] button {
@@ -1859,30 +1589,104 @@
1859
1589
  color: var(--vh-highlighted);
1860
1590
  }
1861
1591
 
1862
- /* A pending state pings, as Kibo UI's StatusIndicator does. */
1863
- :is([data-slot="connection-status-indicator"]:not([data-status="connected"]), [data-slot="sync-status-indicator"]:is([data-status="loading"], [data-status="synchronizing"]))::after {
1864
- animation: vh-status-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
1865
- background: inherit;
1866
- border-radius: inherit;
1867
- content: "";
1868
- inset: 0;
1869
- position: absolute;
1592
+ /* A pending state pulses while it waits, as a running workspace step does. Work that runs fades, it does not travel
1593
+ (docs/design/motion.md, "Spinners and fades"). */
1594
+ :is([data-slot="connection-status-indicator"]:not([data-status="connected"]), [data-slot="sync-status-indicator"]:is([data-status="loading"], [data-status="synchronizing"])) {
1595
+ animation: vh-status-pulse 1.5s ease-in-out infinite;
1870
1596
  }
1871
1597
 
1872
- @keyframes vh-status-ping {
1873
- 75%,
1874
- 100% {
1875
- opacity: 0;
1876
- transform: scale(2.25);
1598
+ @keyframes vh-status-pulse {
1599
+ 50% {
1600
+ opacity: 0.35;
1877
1601
  }
1878
1602
  }
1879
1603
 
1880
1604
  @media (prefers-reduced-motion: reduce) {
1881
- :is([data-slot="connection-status-indicator"], [data-slot="sync-status-indicator"])::after {
1605
+ :is([data-slot="connection-status-indicator"], [data-slot="sync-status-indicator"]) {
1882
1606
  animation: none;
1883
1607
  }
1884
1608
  }
1885
1609
 
1610
+ /* Progress: the bar and the check of the progress helper of @vite-hub/ui/motion. The bar takes the text color. */
1611
+ [data-slot="progress"] {
1612
+ align-items: center;
1613
+ color: var(--vh-highlighted);
1614
+ display: flex;
1615
+ gap: 0.5rem;
1616
+ min-width: 0;
1617
+ }
1618
+
1619
+ /* DropField: a label around a file input, with the dot grid of the drop field helper behind its text. */
1620
+ [data-slot="drop-field"] {
1621
+ --vh-drop-dot: var(--vh-highlighted);
1622
+ align-content: center;
1623
+ background: var(--vh-bg);
1624
+ border: 1px solid var(--vh-border-accented);
1625
+ border-radius: var(--vh-radius);
1626
+ color: var(--vh-highlighted);
1627
+ cursor: pointer;
1628
+ display: grid;
1629
+ gap: 0.125rem;
1630
+ justify-items: center;
1631
+ min-height: 10rem;
1632
+ overflow: hidden;
1633
+ padding: 1rem;
1634
+ text-align: center;
1635
+ }
1636
+
1637
+ [data-slot="drop-field"][data-disabled] {
1638
+ cursor: not-allowed;
1639
+ opacity: 0.6;
1640
+ }
1641
+
1642
+ [data-slot="drop-field-input"] {
1643
+ clip-path: inset(50%);
1644
+ height: 1px;
1645
+ overflow: hidden;
1646
+ position: absolute;
1647
+ white-space: nowrap;
1648
+ width: 1px;
1649
+ }
1650
+
1651
+ [data-slot="drop-field-label"] {
1652
+ font-size: 0.8125rem;
1653
+ font-weight: 500;
1654
+ }
1655
+
1656
+ [data-slot="drop-field-description"] {
1657
+ color: var(--vh-dimmed);
1658
+ font-size: 0.75rem;
1659
+ }
1660
+
1661
+ /* HoldToDelete: an outline button whose border turns to the error color as the hold fills it. */
1662
+ [data-slot="hold-to-delete"] {
1663
+ align-items: center;
1664
+ background: var(--vh-bg);
1665
+ border: 1px solid color-mix(in oklch, var(--vh-error) calc(var(--vh-hold, 0) * 100%), var(--vh-border-accented));
1666
+ border-radius: calc(var(--vh-radius) * 0.75);
1667
+ color: var(--vh-highlighted);
1668
+ cursor: pointer;
1669
+ display: inline-flex;
1670
+ font-size: 0.75rem;
1671
+ font-weight: 500;
1672
+ gap: 0.375rem;
1673
+ height: 1.75rem;
1674
+ justify-content: flex-start;
1675
+ overflow: visible;
1676
+ padding: 0 0.625rem;
1677
+ }
1678
+
1679
+ [data-slot="hold-to-delete"][data-state="undo"] {
1680
+ border-color: color-mix(in oklch, var(--vh-error) 40%, var(--vh-border-accented));
1681
+ }
1682
+
1683
+ [data-slot="hold-to-delete"][data-icon-only]:not([data-state="undo"]) {
1684
+ border-color: transparent;
1685
+ justify-content: center;
1686
+ padding: 0;
1687
+ width: 1.75rem;
1688
+ }
1689
+
1886
1690
  /* RelativeTime, and the time of a comment reply that renders it. Digits keep one width, so the label does not jump when the clock moves. */
1887
1691
  :is([data-slot="relative-time"], [data-slot="comment-reply-time"]) {
1888
1692
  font-variant-numeric: tabular-nums;
@@ -1951,18 +1755,13 @@
1951
1755
  white-space: nowrap;
1952
1756
  }
1953
1757
 
1954
- /* A live or pending status pings, as the connection dot does. */
1955
- [data-slot="status-indicator"][data-pulse]::after {
1956
- animation: vh-status-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
1957
- background: inherit;
1958
- border-radius: inherit;
1959
- content: "";
1960
- inset: 0;
1961
- position: absolute;
1758
+ /* A live or pending status pulses, as the connection dot does. */
1759
+ [data-slot="status-indicator"][data-pulse] {
1760
+ animation: vh-status-pulse 1.5s ease-in-out infinite;
1962
1761
  }
1963
1762
 
1964
1763
  @media (prefers-reduced-motion: reduce) {
1965
- [data-slot="status-indicator"][data-pulse]::after {
1764
+ [data-slot="status-indicator"][data-pulse] {
1966
1765
  animation: none;
1967
1766
  }
1968
1767
  }
@@ -2050,7 +1849,6 @@
2050
1849
  position: absolute;
2051
1850
  right: 0;
2052
1851
  text-align: start;
2053
- transition: top 160ms ease;
2054
1852
  }
2055
1853
 
2056
1854
  button[data-slot="comment-margin-card"] {
@@ -2075,7 +1873,6 @@
2075
1873
  left: auto;
2076
1874
  position: fixed;
2077
1875
  right: 1rem;
2078
- transition: top 160ms ease;
2079
1876
  width: 18rem;
2080
1877
  z-index: 1;
2081
1878
  }
@@ -2104,10 +1901,6 @@
2104
1901
  -webkit-line-clamp: 3;
2105
1902
  }
2106
1903
 
2107
- @media (prefers-reduced-motion: reduce) {
2108
- [data-slot="comment-margin-card"], [data-slot="comment-layer-popover"][data-margin="true"] { transition: none; }
2109
- }
2110
-
2111
1904
  [data-slot="comment-layer-item"] {
2112
1905
  pointer-events: none;
2113
1906
  position: absolute;
@@ -2158,7 +1951,6 @@
2158
1951
  [data-slot="comment-selection-bar"] {
2159
1952
  --vh-selection-bar-text: color-mix(in oklab, var(--vh-inverted) 82%, var(--vh-highlighted));
2160
1953
  align-items: center;
2161
- animation: vh-comment-selection-bar-in 140ms cubic-bezier(0.23, 1, 0.32, 1);
2162
1954
  background: var(--vh-highlighted);
2163
1955
  border: 1px solid color-mix(in oklab, var(--vh-inverted) 12%, transparent);
2164
1956
  border-radius: 12px;
@@ -2193,7 +1985,7 @@
2193
1985
  position: relative;
2194
1986
  touch-action: manipulation;
2195
1987
  transition-duration: 150ms;
2196
- transition-property: background-color, color, scale;
1988
+ transition-property: background-color, color;
2197
1989
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
2198
1990
  white-space: nowrap;
2199
1991
  }
@@ -2219,37 +2011,12 @@
2219
2011
  }
2220
2012
  }
2221
2013
 
2222
- [data-slot="comment-selection-bar-action"]:active {
2223
- scale: 0.96;
2224
- }
2225
-
2226
2014
  [data-slot="comment-selection-bar-kbd"] {
2227
2015
  font: inherit;
2228
2016
  margin-inline-start: 6px;
2229
2017
  opacity: 0.6;
2230
2018
  }
2231
2019
 
2232
- @keyframes vh-comment-selection-bar-in {
2233
- from {
2234
- opacity: 0;
2235
- scale: 0.96;
2236
- }
2237
- }
2238
-
2239
- @media (prefers-reduced-motion: reduce) {
2240
- [data-slot="comment-selection-bar"] {
2241
- animation: none;
2242
- }
2243
-
2244
- [data-slot="comment-selection-bar-action"] {
2245
- transition-property: background-color, color;
2246
- }
2247
-
2248
- [data-slot="comment-selection-bar-action"]:active {
2249
- scale: none;
2250
- }
2251
- }
2252
-
2253
2020
  /* Floating surfaces take the layered shadow of the theme, which draws their hairline too. Without the theme, the hairline stays. */
2254
2021
  [data-slot="comment-layer-popover"] {
2255
2022
  --vh-comment-card-width: 22.5rem;
@@ -2371,19 +2138,20 @@
2371
2138
 
2372
2139
  /* A new comment is one line beside its pin, as in Drop: no card around a field, a hairline and a soft shadow instead
2373
2140
  of a border, and the corner nearest the pin kept small so the bubble points at it. The 1.4375rem radius is the send
2374
- button's 1rem plus the 0.4375rem between it and the edge, so a one-line bubble is a capsule. It pops in from that
2375
- corner. The bubble is the field's frame (`frame="none"`), so its hairline grows firmer while the field has the focus. */
2141
+ button's 1rem plus the 0.4375rem between it and the edge, so a one-line bubble is a capsule. It comes out of its spot
2142
+ with the appear effect of the motion layer (`data-motion-appear`), as a tooltip comes out of its trigger. The bubble is
2143
+ the field's frame (`frame="none"`), so its hairline grows firmer while the field has the focus.
2144
+ On a dark page the shadow does not show and the bubble can have the page's color, so the hairline is the border
2145
+ color, and the shadow is black, not the ink, which would glow. */
2376
2146
  [data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"] {
2377
- --vh-bubble-edge: color-mix(in oklab, var(--vh-highlighted) 8%, transparent);
2147
+ --vh-bubble-edge: var(--vh-border);
2378
2148
  --vh-bubble-radius: 1.4375rem;
2379
- animation: vh-comment-bubble-in 150ms cubic-bezier(0.23, 1, 0.32, 1);
2380
2149
  border: 0;
2381
2150
  border-radius: 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
2382
2151
  box-shadow:
2383
2152
  0 0 0 1px var(--vh-bubble-edge),
2384
- 0 2px 4px color-mix(in oklab, var(--vh-highlighted) 6%, transparent),
2385
- 0 10px 24px -6px color-mix(in oklab, var(--vh-highlighted) 18%, transparent);
2386
- transform-origin: top left;
2153
+ 0 2px 4px color-mix(in oklab, var(--vh-comment-shadow) calc(100% / 3), transparent),
2154
+ 0 10px 24px -6px var(--vh-comment-shadow);
2387
2155
  width: 18rem;
2388
2156
  }
2389
2157
 
@@ -2398,30 +2166,14 @@
2398
2166
 
2399
2167
  [data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"] > [data-slot="comment-layer-popover"] {
2400
2168
  border-radius: var(--vh-bubble-radius) 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
2401
- transform-origin: top right;
2402
2169
  }
2403
2170
 
2404
2171
  [data-slot="comment-layer-item"][data-draft="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
2405
2172
  border-radius: var(--vh-bubble-radius) var(--vh-bubble-radius) var(--vh-bubble-radius) 0.375rem;
2406
- transform-origin: bottom left;
2407
2173
  }
2408
2174
 
2409
2175
  [data-slot="comment-layer-item"][data-draft="true"][data-flip-x="true"][data-flip-y="true"] > [data-slot="comment-layer-popover"] {
2410
2176
  border-radius: var(--vh-bubble-radius) var(--vh-bubble-radius) 0.375rem;
2411
- transform-origin: bottom right;
2412
- }
2413
-
2414
- @keyframes vh-comment-bubble-in {
2415
- from {
2416
- opacity: 0;
2417
- scale: 0.96;
2418
- }
2419
- }
2420
-
2421
- @media (prefers-reduced-motion: reduce) {
2422
- [data-slot="comment-layer-item"][data-draft="true"] > [data-slot="comment-layer-popover"] {
2423
- animation: none;
2424
- }
2425
2177
  }
2426
2178
 
2427
2179
  [data-slot="comment-composer"] {
@@ -2442,34 +2194,10 @@
2442
2194
  padding-block: 0.5rem 0.125rem;
2443
2195
  }
2444
2196
 
2445
- [data-slot="comment-composer"][data-shake="shake"] {
2446
- animation: vh-comment-shake 400ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
2447
- }
2448
-
2449
2197
  [data-slot="comment-composer"][data-shake="flash"] [data-slot="prompt-input-group"] {
2450
2198
  animation: vh-comment-flash 450ms ease both;
2451
2199
  }
2452
2200
 
2453
- @keyframes vh-comment-shake {
2454
- 10%,
2455
- 90% {
2456
- transform: translateX(-1px);
2457
- }
2458
- 20%,
2459
- 80% {
2460
- transform: translateX(3px);
2461
- }
2462
- 30%,
2463
- 50%,
2464
- 70% {
2465
- transform: translateX(-5px);
2466
- }
2467
- 40%,
2468
- 60% {
2469
- transform: translateX(5px);
2470
- }
2471
- }
2472
-
2473
2201
  @keyframes vh-comment-flash {
2474
2202
  0%,
2475
2203
  60% {
@@ -2478,12 +2206,6 @@
2478
2206
  }
2479
2207
  }
2480
2208
 
2481
- @media (prefers-reduced-motion: reduce) {
2482
- [data-slot="comment-composer"][data-shake="shake"] {
2483
- animation: none;
2484
- }
2485
- }
2486
-
2487
2209
  [data-slot="comment-composer-mentions"] {
2488
2210
  background: var(--vh-bg);
2489
2211
  border-radius: calc(var(--vh-radius) * 1.5);
@@ -2653,6 +2375,10 @@
2653
2375
  padding: 0.25rem 0 0;
2654
2376
  }
2655
2377
 
2378
+ [data-slot="comment-thread"]:has([data-slot="comment-reply"][data-editing="true"]) > [data-slot="comment-composer"] {
2379
+ display: none;
2380
+ }
2381
+
2656
2382
  [data-slot="comment-toolbar"] {
2657
2383
  align-items: center;
2658
2384
  background: var(--vh-bg);
@@ -2816,45 +2542,13 @@
2816
2542
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--vh-primary) 20%, transparent);
2817
2543
  }
2818
2544
 
2819
- /* The files in a comment box wrap, as in Drop, so the Remove badge on a picture's corner is not cut off. */
2545
+ /* The files in a comment box wrap, as in Drop. */
2820
2546
  [data-slot="comment-composer"] [data-slot="prompt-input-attachments"] {
2821
2547
  flex-wrap: wrap;
2822
2548
  gap: 0.375rem;
2823
2549
  overflow: visible;
2824
2550
  }
2825
2551
 
2826
- /* A picture in a comment box is a 40px square, as in Drop: no name, and the Remove button on its top right corner.
2827
- The name stays for a screen reader. Other files keep their chip with the name. */
2828
- [data-slot="comment-composer"] [data-slot="attachment"]:has(> [data-slot="attachment-media"][data-variant="image"]) {
2829
- background: none;
2830
- border: 0;
2831
- border-radius: calc(var(--vh-radius) * 0.75);
2832
- min-width: 0;
2833
- padding: 0;
2834
-
2835
- & > [data-slot="attachment-media"] {
2836
- border-radius: inherit;
2837
- outline: 1px solid color-mix(in oklab, var(--vh-highlighted) 10%, transparent);
2838
- outline-offset: -1px;
2839
- width: 2.5rem;
2840
- }
2841
-
2842
- & > [data-slot="attachment-content"] {
2843
- clip-path: inset(50%);
2844
- height: 1px;
2845
- overflow: hidden;
2846
- position: absolute;
2847
- white-space: nowrap;
2848
- width: 1px;
2849
- }
2850
-
2851
- & > [data-slot="attachment-actions"] {
2852
- position: absolute;
2853
- right: -0.375rem;
2854
- top: -0.375rem;
2855
- }
2856
- }
2857
-
2858
2552
  [data-slot="comment-reply-attachments"] {
2859
2553
  flex-wrap: wrap;
2860
2554
  margin-top: 0.5rem;
@@ -2881,29 +2575,211 @@
2881
2575
  padding: 0.75rem 0.75rem 0.25rem;
2882
2576
  }
2883
2577
 
2578
+ /*
2579
+ * The pictures of a message as a mosaic, as in a chat: one keeps its own shape up to 10rem tall, so a wide screenshot
2580
+ * shows whole; two split the width; three put the first beside the other two; four or more show four, and the last
2581
+ * says how many more. Each tile crops its picture to fill it.
2582
+ */
2884
2583
  [data-slot="comment-reply-images"] {
2885
- display: flex;
2886
- flex-wrap: wrap;
2887
- gap: 0.5rem;
2584
+ display: grid;
2585
+ gap: 0.25rem;
2888
2586
  margin-top: 0.5rem;
2889
2587
 
2890
- /* A comment's image keeps its own shape, up to 10rem tall, so a wide screenshot shows whole instead of a 4:3 crop. */
2891
- & .vh-image-preview {
2892
- aspect-ratio: auto;
2893
- max-height: 10rem;
2894
- max-width: 100%;
2895
- width: auto;
2588
+ &[data-count="1"] {
2589
+ display: flex;
2590
+ }
2591
+
2592
+ &[data-count="2"] {
2593
+ grid-template-columns: 1fr 1fr;
2594
+ grid-template-rows: 7rem;
2896
2595
  }
2897
2596
 
2898
- & .vh-image-preview img {
2597
+ &[data-count="3"] {
2598
+ grid-template-columns: 2fr 1fr;
2599
+ grid-template-rows: 4.75rem 4.75rem;
2600
+
2601
+ & > [data-slot="comment-reply-image"]:first-child {
2602
+ grid-row: span 2;
2603
+ }
2604
+ }
2605
+
2606
+ &[data-count="4"] {
2607
+ grid-template-columns: 1fr 1fr;
2608
+ grid-template-rows: 5.25rem 5.25rem;
2609
+ }
2610
+ }
2611
+
2612
+ [data-slot="comment-reply-image"] {
2613
+ appearance: none;
2614
+ background: var(--vh-bg-elevated);
2615
+ border: 1px solid var(--vh-border);
2616
+ border-radius: calc(var(--vh-radius) * 0.75);
2617
+ color: var(--vh-muted);
2618
+ cursor: zoom-in;
2619
+ display: flex;
2620
+ min-width: 0;
2621
+ overflow: hidden;
2622
+ padding: 0;
2623
+ position: relative;
2624
+
2625
+ & img {
2626
+ display: block;
2627
+ height: 100%;
2628
+ object-fit: cover;
2629
+ width: 100%;
2630
+ }
2631
+
2632
+ /* The tile of the open picture is empty while the picture is out of it. */
2633
+ &[data-open="true"] {
2634
+ visibility: hidden;
2635
+ }
2636
+ }
2637
+
2638
+ [data-count="1"] > [data-slot="comment-reply-image"] {
2639
+ max-width: 100%;
2640
+
2641
+ & img {
2899
2642
  height: auto;
2900
2643
  max-height: 10rem;
2901
2644
  max-width: 100%;
2902
- object-fit: contain;
2903
2645
  width: auto;
2904
2646
  }
2905
2647
  }
2906
2648
 
2649
+ [data-slot="comment-reply-image-more"] {
2650
+ background: color-mix(in oklab, var(--vh-highlighted) 55%, transparent);
2651
+ color: var(--vh-inverted);
2652
+ display: grid;
2653
+ font-size: 0.9375rem;
2654
+ font-variant-numeric: tabular-nums;
2655
+ font-weight: 500;
2656
+ inset: 0;
2657
+ place-items: center;
2658
+ position: absolute;
2659
+ }
2660
+
2661
+ /*
2662
+ * The pictures of a comment box as one stack of cards beside the text. The top card sits in front, and up to two
2663
+ * more peek out behind it. The count sits on its corner. Hover, focus, or a tap fans the cards out above the box,
2664
+ * each 3.5rem square with its Remove badge, and the motion layer travels them between the two places.
2665
+ */
2666
+ [data-slot="comment-image-stack"] {
2667
+ align-self: flex-end;
2668
+ flex: none;
2669
+ height: 2rem;
2670
+ position: relative;
2671
+ width: 2.5rem;
2672
+
2673
+ &:not(:has([data-slot="comment-image-stack-card"])) {
2674
+ display: none;
2675
+ }
2676
+ }
2677
+
2678
+ [data-slot="comment-image-stack-cards"] {
2679
+ inset: 0;
2680
+ position: absolute;
2681
+ }
2682
+
2683
+ [data-slot="comment-image-stack-card"] {
2684
+ --vh-stack-near: clamp(0, var(--vh-stack-depth), 2);
2685
+ background: var(--vh-bg-elevated);
2686
+ border-radius: calc(var(--vh-radius) * 0.75);
2687
+ box-shadow: 0 0 0 2px var(--vh-bg), 0 1px 3px color-mix(in oklab, var(--vh-highlighted) 18%, transparent);
2688
+ height: 1.75rem;
2689
+ left: calc(0.125rem + var(--vh-stack-near) * 0.1875rem);
2690
+ opacity: clamp(0, 3 - var(--vh-stack-depth), 1);
2691
+ position: absolute;
2692
+ top: calc(0.25rem - var(--vh-stack-near) * 0.1875rem);
2693
+ width: 1.75rem;
2694
+ z-index: calc(10 - var(--vh-stack-near));
2695
+
2696
+ & .vh-image-preview {
2697
+ border-radius: inherit;
2698
+ }
2699
+
2700
+ & [data-slot="comment-image-stack-remove"] {
2701
+ position: absolute;
2702
+ right: -0.375rem;
2703
+ top: -0.375rem;
2704
+ visibility: hidden;
2705
+ }
2706
+ }
2707
+
2708
+ [data-slot="comment-image-stack"][data-fanned="true"] [data-slot="comment-image-stack-cards"] {
2709
+ --vh-fan-width: min(var(--vh-fan-room), calc(var(--vh-fan-count) * 4rem + 0.5rem));
2710
+ bottom: 100%;
2711
+ box-sizing: border-box;
2712
+ display: flex;
2713
+ gap: 0.5rem;
2714
+ inset-inline: auto;
2715
+ left: clamp(var(--vh-fan-left), -0.5rem, calc(var(--vh-fan-left) + var(--vh-fan-room) - var(--vh-fan-width)));
2716
+ padding: 0.5rem;
2717
+ top: auto;
2718
+ width: var(--vh-fan-width);
2719
+ z-index: 20;
2720
+
2721
+ &[data-scrollable="true"] {
2722
+ overflow-x: auto;
2723
+ }
2724
+ }
2725
+
2726
+ [data-slot="comment-image-stack"][data-fanned="true"] [data-slot="comment-image-stack-card"] {
2727
+ flex: none;
2728
+ height: 3.5rem;
2729
+ left: auto;
2730
+ opacity: 1;
2731
+ position: relative;
2732
+ top: auto;
2733
+ width: 3.5rem;
2734
+ z-index: auto;
2735
+
2736
+ & [data-slot="comment-image-stack-remove"] {
2737
+ visibility: visible;
2738
+ }
2739
+ }
2740
+
2741
+ [data-slot="comment-image-stack-toggle"] {
2742
+ appearance: none;
2743
+ background: none;
2744
+ border: 0;
2745
+ border-radius: calc(var(--vh-radius) * 0.75);
2746
+ cursor: pointer;
2747
+ inset: 0;
2748
+ padding: 0;
2749
+ position: absolute;
2750
+ z-index: 15;
2751
+ }
2752
+
2753
+ [data-slot="comment-image-stack-count"] {
2754
+ background: var(--vh-highlighted);
2755
+ border-radius: 9999px;
2756
+ box-shadow: 0 0 0 2px var(--vh-bg);
2757
+ color: var(--vh-inverted);
2758
+ font-size: 0.6875rem;
2759
+ font-variant-numeric: tabular-nums;
2760
+ font-weight: 600;
2761
+ height: 1.125rem;
2762
+ line-height: 1.125rem;
2763
+ min-width: 1.125rem;
2764
+ padding: 0 0.3125rem;
2765
+ pointer-events: none;
2766
+ position: absolute;
2767
+ right: -0.25rem;
2768
+ text-align: center;
2769
+ top: -0.25rem;
2770
+ transition: opacity 150ms;
2771
+ z-index: 16;
2772
+ }
2773
+
2774
+ [data-fanned="true"] > [data-slot="comment-image-stack-count"] {
2775
+ opacity: 0;
2776
+ }
2777
+
2778
+ /* Once the text of a row box wraps, the stack moves to the row of the buttons, after attach. */
2779
+ [data-slot="comment-composer"][data-layout="row"][data-multiline="true"] [data-slot="comment-image-stack"] {
2780
+ order: 1;
2781
+ }
2782
+
2907
2783
  [data-slot="comment-thread-actions"] {
2908
2784
  align-items: center;
2909
2785
  display: flex;
@@ -3140,17 +3016,33 @@
3140
3016
  }
3141
3017
 
3142
3018
  /* Once the text of a row box wraps, the text takes the full width and attach and send move to a row under it, at its
3143
- two ends. Without this, every line of a narrow box starts after the attach button. */
3019
+ two ends. Without this, every line of a narrow box starts after the attach button. The button row starts right under
3020
+ the last line: the icons have room inside their buttons, so a gap above the row would leave a band of empty space. */
3144
3021
  [data-slot="comment-composer"][data-layout="row"][data-multiline="true"] {
3022
+ & [data-slot="prompt-input-group"] {
3023
+ row-gap: 0;
3024
+ }
3025
+
3026
+ & [data-slot="prompt-input-attachments"] {
3027
+ padding-bottom: 0.25rem;
3028
+ }
3029
+
3145
3030
  & [data-slot="prompt-input-textarea"] {
3146
3031
  flex-basis: 100%;
3147
3032
  order: 0;
3033
+ padding-block-end: 0;
3148
3034
  padding-inline: 0.5rem;
3149
3035
  }
3150
3036
 
3151
3037
  & [data-slot="prompt-input-spacer"] {
3152
3038
  display: block;
3153
3039
  }
3040
+
3041
+ @media (pointer: coarse) {
3042
+ & [data-slot="prompt-input-toolbar"] > button::before {
3043
+ inset-block-start: 0;
3044
+ }
3045
+ }
3154
3046
  }
3155
3047
 
3156
3048
  /* The page box and the reply box sit at the bottom, so their mention menus open upward. */
@@ -3371,6 +3263,51 @@
3371
3263
  object-fit: contain;
3372
3264
  }
3373
3265
 
3266
+ /* The preview of a comment's pictures: the toolbar with the name and the count, and the picture between its arrows. */
3267
+ .vh-image-gallery__body {
3268
+ display: contents;
3269
+ }
3270
+
3271
+ .vh-image-gallery .vh-image-dialog__toolbar {
3272
+ transition: opacity 150ms;
3273
+
3274
+ &[data-closing="true"] {
3275
+ opacity: 0;
3276
+ }
3277
+ }
3278
+
3279
+ .vh-image-gallery__count {
3280
+ color: var(--vh-on-media, var(--vh-muted));
3281
+ display: inline-flex;
3282
+ font-size: 0.75rem;
3283
+ font-variant-numeric: tabular-nums;
3284
+ margin-inline-end: 0.25rem;
3285
+ opacity: 0.8;
3286
+ white-space: pre;
3287
+ }
3288
+
3289
+ .vh-image-gallery__stage {
3290
+ display: flex;
3291
+ justify-content: center;
3292
+ position: relative;
3293
+ }
3294
+
3295
+ .vh-image-gallery__step {
3296
+ border-radius: 9999px;
3297
+ position: absolute;
3298
+ top: 50%;
3299
+ transform: translateY(-50%);
3300
+ z-index: 1;
3301
+
3302
+ &.vh-image-gallery__step--previous {
3303
+ left: 0.5rem;
3304
+ }
3305
+
3306
+ &.vh-image-gallery__step--next {
3307
+ right: 0.5rem;
3308
+ }
3309
+ }
3310
+
3374
3311
  .vh-image-dialog__error {
3375
3312
  background: var(--vh-media-scrim, var(--vh-bg-elevated));
3376
3313
  border-radius: var(--vh-radius);
@@ -3544,12 +3481,12 @@
3544
3481
  height: 0.8rem;
3545
3482
  stroke: currentColor;
3546
3483
  stroke-width: 2;
3547
- transition: transform 150ms ease;
3548
3484
  width: 0.8rem;
3549
3485
  }
3550
3486
 
3487
+ /* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
3551
3488
  .vh-agent-tool-list__disclosure[open] > summary .vh-agent-tool-list__chevron {
3552
- transform: rotate(180deg);
3489
+ rotate: 180deg;
3553
3490
  }
3554
3491
 
3555
3492
  .vh-agent-tool-list__body {
@@ -3621,6 +3558,8 @@
3621
3558
  /* System colors, not currentColor: a currentColor fill under inverted text would take the text color and vanish. */
3622
3559
  --vh-ws-ink: var(--ui-text-highlighted, CanvasText);
3623
3560
  --vh-ws-ink-inverted: var(--ui-bg, Canvas);
3561
+ /* The accent of the code parts: the selected file, its edge, and the dot of an edited file. The focus blue. */
3562
+ --vh-ws-accent: var(--vh-focus, var(--ring, var(--vh-highlighted)));
3624
3563
  }
3625
3564
  }
3626
3565
 
@@ -3652,21 +3591,30 @@
3652
3591
  .vh-ws-link { color: var(--vh-highlighted); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 2px; }
3653
3592
 
3654
3593
  /* Shell */
3594
+ /* The shell is its own stacking context, so its separators stay under menus that open in a portal. */
3655
3595
  .vh-ws-shell {
3656
3596
  background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text);
3657
- display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; position: relative;
3658
- }
3659
- .vh-ws-toolbar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.5rem; }
3597
+ display: flex; flex-direction: column; height: 100%; isolation: isolate; min-height: 0; overflow: hidden; position: relative;
3598
+ }
3599
+ /*
3600
+ * One head height: the head row over the editor and the tab bar of the output are 32px, so their bottom lines meet.
3601
+ * The bar over the shell is 44px and the status line under the editor is 24px.
3602
+ */
3603
+ .vh-ws-shell { --vh-ws-bar: 44px; --vh-ws-head: 32px; --vh-ws-status: 24px; }
3604
+ .vh-ws-bar { align-items: center; border-bottom: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none; gap: 0.25rem; height: var(--vh-ws-bar); padding: 0 0.5rem; }
3660
3605
  .vh-ws-body { display: flex; flex: 1; min-height: 0; min-width: 0; }
3661
- .vh-ws-body--row { flex-direction: row; }
3662
- .vh-ws-body--column { flex-direction: column; }
3663
- .vh-ws-row { display: flex; flex-shrink: 0; min-height: 0; }
3664
- .vh-ws-stack { display: flex; flex-direction: column; height: 100%; min-height: 0; }
3665
- .vh-ws-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; position: relative; }
3606
+ .vh-ws-pane { box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; position: relative; }
3607
+ .vh-ws-code, .vh-ws-column { flex: 1 1 0; }
3608
+ .vh-ws-code { flex-direction: row; }
3666
3609
  .vh-ws-pane--files { flex-grow: 0; flex-shrink: 0; }
3667
- .vh-ws-pane--editor, .vh-ws-pane--center, .vh-ws-pane--terminal, .vh-ws-pane--panels { flex: 1; }
3668
- .vh-ws-stack > .vh-ws-pane:first-child { flex-grow: 0; flex-shrink: 0; }
3669
- .vh-ws-pane--side { flex-grow: 0; flex-shrink: 0; }
3610
+ .vh-ws-pane--editor, .vh-ws-editor-body, .vh-ws-pane--output { flex: 1 1 0; }
3611
+ .vh-ws-head { align-items: center; border-bottom: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none; gap: 0.25rem; height: var(--vh-ws-head); padding: 0 0.375rem 0 0.75rem; }
3612
+ .vh-ws-status { align-items: center; background: var(--vh-bg-muted); border-top: 1px solid var(--vh-border); box-sizing: border-box; color: var(--vh-muted); display: flex; flex: none; font-size: 0.71875rem; gap: 0.875rem; height: var(--vh-ws-status); padding: 0 0.75rem; white-space: nowrap; }
3613
+ .vh-ws-guide { overflow: auto; }
3614
+ /* guide-side: a guide column up to 360px. On the right the output takes 40% and the code sits under it. */
3615
+ .vh-ws-shell--guide-side > .vh-ws-body > .vh-ws-guide { border-right: 1px solid var(--vh-border); flex: 0 0 min(360px, 50%); }
3616
+ .vh-ws-stack { flex: 1 1 0; }
3617
+ .vh-ws-stack > .vh-ws-pane--output { border-bottom: 1px solid var(--vh-border); flex: 0 0 40%; }
3670
3618
  .vh-ws-separator { background: var(--vh-border); flex: none; position: relative; touch-action: none; z-index: 1; }
3671
3619
  .vh-ws-separator--vertical { cursor: col-resize; width: 1px; }
3672
3620
  .vh-ws-separator--horizontal { cursor: row-resize; height: 1px; }
@@ -3675,19 +3623,62 @@
3675
3623
  @media (hover: hover) { .vh-ws-separator:hover { background: var(--vh-muted); } }
3676
3624
  .vh-ws-overlay { background: var(--vh-bg); display: grid; inset: 0; overflow: auto; padding: 1.5rem; place-items: center; position: absolute; z-index: 2; }
3677
3625
 
3678
- .vh-ws-tabs { display: flex; flex: 1; flex-direction: column; min-height: 0; }
3679
- /* UTabs draws the strip, its divider, and its underline. */
3680
- .vh-ws-tab-list { flex: none; }
3626
+ /* UTabs draws the strip, its divider, and its underline, in the head height. */
3627
+ .vh-ws-tab-list { box-sizing: border-box; flex: none; height: var(--vh-ws-head); }
3628
+ .vh-ws-tab-list :is([data-slot="list"], [data-slot="tabs-list"]) { box-sizing: border-box; height: 100%; }
3629
+ .vh-ws-tab-list :is([data-slot="trigger"], [data-slot="tabs-tab"]) { max-height: 100%; }
3681
3630
  .vh-ws-tab-panels { flex: 1; min-height: 0; position: relative; }
3682
3631
  .vh-ws-tab-panel { display: flex; flex-direction: column; inset: 0; overflow: auto; position: absolute; }
3683
3632
  /* Hidden panels stay mounted, so the terminal keeps its output and the preview keeps its page. */
3684
3633
  .vh-ws-tab-panel.is-hidden { visibility: hidden; }
3685
3634
 
3686
3635
  /* File tree, editor, terminal */
3687
- .vh-ws-file-tree { border: 0; border-radius: 0; height: 100%; }
3636
+ /* The rows of the tree: 22px, 13px text, 12px per level, the selected file tinted with an accent edge. */
3637
+ .vh-ws-file-tree {
3638
+ --trees-bg-override: var(--vh-bg-muted);
3639
+ --trees-border-radius-override: 0px;
3640
+ --trees-fg-muted-override: var(--vh-muted);
3641
+ --trees-fg-override: var(--vh-text);
3642
+ --trees-font-family-override: var(--vh-font-sans, var(--font-sans, ui-sans-serif, system-ui, sans-serif));
3643
+ --trees-font-size-override: 13px;
3644
+ --trees-hover-bg-override: var(--vh-bg-elevated);
3645
+ --trees-indent-guide-bg-override: transparent;
3646
+ --trees-item-margin-x-override: 0px;
3647
+ --trees-item-padding-x-override: 6px;
3648
+ --trees-item-row-gap-override: 4px;
3649
+ /* Pierre indents a level by the level gap, the row gap, and half an icon less 0.5px: 0.5 + 4 + 7.5 = 12px. */
3650
+ --trees-level-gap-override: 0.5px;
3651
+ --trees-padding-inline-override: 0px;
3652
+ --trees-scrollbar-gutter-override: 0px;
3653
+ --trees-selected-bg-override: color-mix(in oklab, var(--vh-ws-accent) 12%, transparent);
3654
+ --trees-selected-fg-override: var(--vh-highlighted);
3655
+ border: 0; border-radius: 0; color-scheme: inherit; height: 100%;
3656
+ }
3657
+ .vh-ws-file-icon { flex: none; height: 16px; width: 16px; }
3688
3658
  .vh-ws-editor { background: var(--vh-ws-code-bg); flex: 1; height: 100%; min-height: 0; overflow: hidden; }
3689
3659
  .vh-ws-editor .cm-editor { height: 100%; }
3690
- .vh-ws-editor-fallback { color: var(--vh-ws-code-fg); font-family: var(--vh-ws-font-mono); font-size: 13px; line-height: 1.6; margin: 0; overflow: auto; padding: 8px 12px 8px 3.5rem; white-space: pre; }
3660
+ .vh-ws-editor-fallback { color: var(--vh-ws-code-fg); font-family: var(--vh-ws-font-mono); font-size: 12.5px; line-height: 1.65; margin: 0; overflow: auto; padding: 8px 16px 8px 44px; white-space: pre; }
3661
+ .vh-ws-editor[data-wrap] .vh-ws-editor-fallback { overflow-wrap: anywhere; white-space: pre-wrap; }
3662
+ /* The editor head: the breadcrumb of the open file and the wrap button. It fills the head row of the shell. */
3663
+ .vh-ws-file-head { align-items: center; align-self: stretch; display: flex; flex: 1; gap: 4px; min-width: 0; }
3664
+ .vh-ws-file-head-spacer { flex: 1; }
3665
+ .vh-ws-breadcrumb { align-items: center; color: var(--vh-text); display: flex; font-size: 12.5px; gap: 2px; min-width: 0; overflow: hidden; white-space: nowrap; }
3666
+ /* In a narrow pane the folders and their separators shrink first, so the file name keeps its room the longest. */
3667
+ .vh-ws-breadcrumb > span { color: var(--vh-muted); flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
3668
+ .vh-ws-breadcrumb-separator { color: var(--vh-dimmed); flex: 0 1000 13px; height: 13px; min-width: 0; stroke-width: 1.5; width: 13px; }
3669
+ .vh-ws-breadcrumb b { color: var(--vh-highlighted); flex: 0 1 auto; font-weight: 500; margin-left: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
3670
+ /* A file that the example marks read-only. The mark stays whole, and the breadcrumb shrinks first. */
3671
+ .vh-ws-readonly { align-items: center; color: var(--vh-muted); display: inline-flex; flex: none; font-size: 12px; gap: 4px; margin-left: 8px; white-space: nowrap; }
3672
+ .vh-ws-readonly-icon { height: 12px; stroke-width: 1.5; width: 12px; }
3673
+ .vh-ws-wrap-button.vh-ws-wrap-button { border-radius: 4px; color: var(--vh-muted); flex: none; height: 24px; justify-content: center; min-height: 0; padding: 0; width: 24px; }
3674
+ .vh-ws-wrap-button svg { height: 15px; stroke-width: 1.5; width: 15px; }
3675
+ .vh-ws-wrap-button[aria-pressed="true"] { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
3676
+ /* The status line items. The shell gives the line its height, its gap, and its padding. */
3677
+ .vh-ws-status-items { align-items: center; display: flex; flex: 1; gap: inherit; min-width: 0; }
3678
+ /* In a narrow pane the language and the indentation shorten, and the cursor stays whole. */
3679
+ .vh-ws-status-items > span:not(.vh-ws-status-spacer) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
3680
+ .vh-ws-status-items > .vh-ws-status-cursor { flex: none; }
3681
+ .vh-ws-status-spacer { flex: 1; }
3691
3682
  .vh-ws-terminal { background: var(--vh-ws-terminal-bg); flex: 1; height: 100%; min-height: 0; padding: 0.5rem 0 0 0.75rem; }
3692
3683
  .vh-ws-terminal .xterm, .vh-ws-terminal .xterm-viewport { background: var(--vh-ws-terminal-bg) !important; }
3693
3684
 
@@ -3753,50 +3744,38 @@
3753
3744
  .vh-ws-connect--empty { align-items: center; color: var(--vh-muted); font-size: 0.875rem; gap: 0.5rem; grid-template-columns: 1rem 1fr; }
3754
3745
  .vh-ws-connect--empty p { margin: 0; }
3755
3746
 
3756
- /* PlaygroundContainer: a toolbar over the shell, and the cards that show when the device cannot run the workspace. */
3757
- .vh-pc { display: flex; flex-direction: column; height: 100%; min-height: 0; }
3758
- .vh-pc-session { display: flex; flex: 1; flex-direction: column; min-height: 0; }
3759
- .vh-pc-session > .vh-ws-shell { border: 0; border-radius: 0; flex: 1; }
3760
- .vh-pc-toolbar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.25rem; height: 2.75rem; padding: 0 0.5rem; }
3761
- .vh-pc-spacer { flex: 1; }
3762
- .vh-pc-muted { color: var(--vh-muted); }
3763
- .vh-pc-strong { color: var(--vh-highlighted); font-weight: 500; }
3764
- .vh-pc-bar { align-items: center; background: var(--vh-bg-elevated); border-bottom: 1px solid var(--vh-border); display: flex; flex: none; font-size: 0.8125rem; gap: 0.5rem; padding: 0.5rem 0.75rem; }
3765
- .vh-pc-run-state { color: var(--vh-muted); display: inline-flex; font-size: 0.8125rem; margin-inline-start: 0.25rem; white-space: nowrap; }
3766
-
3767
- /* Panes side by side have the same header row, so they line up with the preview bar. */
3768
- .vh-pc-pane { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
3769
- .vh-pc-pane-header, .vh-pc .vh-ws-preview-bar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.5rem; height: 2.25rem; padding: 0 0.75rem; }
3770
- .vh-pc .vh-ws-preview-bar { padding: 0 0.25rem; }
3771
- .vh-pc .vh-ws-tab-list [data-slot="trigger"] { min-height: 2.25rem; }
3772
- .vh-pc-pane-body { display: flex; flex: 1; flex-direction: column; min-height: 0; position: relative; }
3773
- .vh-pc-pane-title { color: var(--vh-muted); font-size: 0.75rem; font-weight: 500; }
3774
- .vh-pc-pane-header .vh-pc-muted { font-size: 0.75rem; }
3775
- .vh-pc-path { color: var(--vh-text); font-family: var(--vh-ws-font-mono); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
3776
- /* The file column is one tinted surface, header included. */
3777
- .vh-pc-files { background: var(--vh-bg-muted); }
3778
- .vh-pc-files .vh-ws-file-tree { --trees-bg-override: var(--vh-bg-muted); }
3779
- .vh-pc-tree { flex: 1; min-height: 0; overflow: auto; padding: 0.25rem 0; }
3780
- .vh-pc-scroll { height: 100%; overflow: auto; }
3747
+ /* Workspace: the shell under its bar, and the cards that show when the device cannot run the workspace. */
3748
+ .vh-workspace { display: flex; flex-direction: column; height: 100%; min-height: 0; }
3749
+ .vh-workspace-session { display: flex; flex: 1; flex-direction: column; min-height: 0; position: relative; }
3750
+ .vh-workspace-session > .vh-ws-shell { flex: 1; }
3751
+ .vh-workspace-muted { color: var(--vh-muted); }
3752
+ .vh-workspace-strong { color: var(--vh-highlighted); font-weight: 500; }
3753
+ .vh-ws-banner { flex: none; }
3754
+ .vh-workspace-notice { align-items: center; background: var(--vh-bg-elevated); border-bottom: 1px solid var(--vh-border); display: flex; font-size: 0.8125rem; gap: 0.5rem; padding: 0.5rem 0.75rem; }
3755
+ .vh-workspace-run-state { color: var(--vh-muted); display: inline-flex; font-size: 0.8125rem; margin-inline-start: 0.25rem; white-space: nowrap; }
3756
+
3757
+ .vh-workspace-scroll { height: 100%; overflow: auto; }
3781
3758
  /* The checklist sits in the middle of the preview, with room on every side. */
3782
- .vh-pc-boot { align-items: center; display: flex; flex: 1; justify-content: center; overflow: auto; padding: 2rem 1.5rem; }
3783
- .vh-pc-modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; width: 100%; }
3784
-
3785
- .vh-pc-card { border: 1px solid var(--vh-border); border-radius: var(--vh-radius); margin-top: 1.5rem; padding: 1rem; }
3786
- .vh-pc-card p { font-size: 0.875rem; margin: 0; }
3787
- .vh-pc-unsupported { margin-top: 1.5rem; }
3788
- .vh-pc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
3789
- .vh-pc-placeholder { display: none; }
3759
+ .vh-workspace-boot { align-items: center; display: flex; flex: 1; justify-content: center; overflow: auto; padding: 2rem 1.5rem; }
3760
+ .vh-workspace-modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; width: 100%; }
3761
+ /* The frame of render() paints the light canvas, so its page must not take the dark scheme of this page and draw white text. */
3762
+ .vh-workspace-frame { background: Canvas; border: 0; color-scheme: light; height: 100%; width: 100%; }
3763
+
3764
+ .vh-workspace-card { border: 1px solid var(--vh-border); border-radius: var(--vh-radius); margin-top: 1.5rem; padding: 1rem; }
3765
+ .vh-workspace-card p { font-size: 0.875rem; margin: 0; }
3766
+ .vh-workspace-unsupported { margin-top: 1.5rem; }
3767
+ .vh-workspace-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
3768
+ .vh-workspace-placeholder { display: none; }
3790
3769
  /* Before mount, phones see their card, tablets see nothing yet, and desktops see where the workspace starts. */
3791
3770
  @media (min-width: 48rem) {
3792
- .vh-pc-gate[data-state="pending"] .vh-pc-phone { display: none; }
3771
+ .vh-workspace-gate[data-state="pending"] .vh-workspace-phone { display: none; }
3793
3772
  }
3794
3773
  @media (min-width: 64rem) {
3795
- .vh-pc-gate[data-state="pending"] { display: flex; flex: 1; flex-direction: column; }
3796
- .vh-pc-gate[data-state="pending"] .vh-pc-gate-content { display: none; }
3797
- .vh-pc-gate[data-state="pending"] .vh-pc-placeholder { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; }
3798
- .vh-pc-placeholder-bar { align-self: stretch; border-bottom: 1px solid var(--vh-border); height: 2.75rem; margin-bottom: auto; }
3799
- .vh-pc-placeholder p { font-size: 0.875rem; margin: 0 0 auto; }
3774
+ .vh-workspace-gate[data-state="pending"] { display: flex; flex: 1; flex-direction: column; }
3775
+ .vh-workspace-gate[data-state="pending"] .vh-workspace-gate-content { display: none; }
3776
+ .vh-workspace-gate[data-state="pending"] .vh-workspace-placeholder { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; }
3777
+ .vh-workspace-placeholder-bar { align-self: stretch; border-bottom: 1px solid var(--vh-border); height: 2.75rem; margin-bottom: auto; }
3778
+ .vh-workspace-placeholder p { font-size: 0.875rem; margin: 0 0 auto; }
3800
3779
  }
3801
3780
 
3802
3781
  /* Browser support notice */
@@ -3813,76 +3792,122 @@
3813
3792
  }
3814
3793
  }
3815
3794
 
3816
- /* PlaygroundRender: the examples, the editor, and the preview side by side. The textarea of each pane sits over a
3817
- colored copy of its text in one grid cell. The copy sets the height and the pane scrolls. */
3795
+ /* The bar parts of the workspace: WorkspaceBar, WorkspaceExamples, WorkspaceSidebar and WorkspaceStart. The sizes are
3796
+ the sizes of the approved prototype: a 44px bar with 30px buttons, a 340px menu, a 264px sidebar, and 760px of cards. */
3818
3797
  @layer components {
3819
- .vh-pg {
3820
- background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text);
3821
- display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; min-height: 0; overflow: hidden;
3822
- }
3823
- .vh-pg:has(> .vh-pg-presets) { grid-template-columns: 14rem minmax(0, 1fr) minmax(0, 1fr); }
3824
- .vh-pg-presets { border-inline-end: 1px solid var(--vh-border); display: grid; align-content: start; gap: 1rem; min-height: 0; overflow-y: auto; padding: 0.75rem 0.5rem; }
3825
- .vh-pg-group ul { display: grid; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
3826
- .vh-pg-group-title { color: var(--vh-muted); font-size: 0.75rem; font-weight: 600; margin: 0 0 0.25rem; padding: 0 0.5rem; }
3827
- .vh-pg-preset {
3828
- background: none; border: 0; border-radius: calc(var(--vh-radius) * 0.75); color: var(--vh-muted); cursor: pointer; display: block;
3829
- font: inherit; font-size: 0.8125rem; padding: 0.375rem 0.5rem; text-align: start; width: 100%;
3830
- }
3831
- .vh-pg-preset[aria-current="true"] { background: var(--vh-bg-muted); color: var(--vh-highlighted); font-weight: 500; }
3832
- @media (hover: hover) { .vh-pg-preset:hover { color: var(--vh-highlighted); } }
3833
-
3834
- .vh-pg-editor { border-inline-end: 1px solid var(--vh-border); display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
3835
- .vh-pg-bar { align-items: center; border-bottom: 1px solid var(--vh-border); display: flex; flex: none; gap: 0.5rem; justify-content: space-between; min-height: 2.75rem; padding: 0 0.25rem 0 0.5rem; }
3836
- .vh-pg-tabs { display: flex; gap: 0.125rem; }
3837
- .vh-pg-tab {
3838
- background: none; border: 0; border-radius: calc(var(--vh-radius) * 0.75); color: var(--vh-muted); cursor: pointer;
3839
- font: inherit; font-size: 0.8125rem; font-weight: 500; min-height: 2rem; padding: 0 0.625rem;
3840
- }
3841
- .vh-pg-tab[aria-pressed="true"] { background: var(--vh-bg-muted); color: var(--vh-highlighted); }
3842
- .vh-pg-title { color: var(--vh-highlighted); font-size: 0.8125rem; font-weight: 500; padding: 0 0.25rem; }
3843
- .vh-pg-actions { align-items: center; display: flex; gap: 0.25rem; }
3844
- .vh-pg-icon-button { height: 2rem; width: 2rem; }
3845
-
3846
- .vh-pg-pane { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; }
3847
- .vh-pg-pane[hidden] { display: none; }
3848
- .vh-pg-code { display: grid; flex: 1; background: var(--vh-ws-code-bg, var(--vh-bg-muted)); }
3849
- .vh-pg-code > *, .vh-pg-paint pre { grid-area: 1 / 1; }
3850
- .vh-pg-paint { display: grid; pointer-events: none; }
3851
- .vh-pg-paint pre, .vh-pg-code textarea {
3852
- background: none !important; border: 0; border-radius: 0; box-shadow: none; color: var(--vh-text); font: 0.8125rem/1.65 var(--vh-ws-font-mono);
3853
- margin: 0; overflow: visible; overflow-wrap: anywhere; padding: 1rem; tab-size: 2; white-space: pre-wrap;
3854
- }
3855
- .vh-pg-paint code { font: inherit; }
3856
- :root.dark .vh-pg-paint span { color: var(--shiki-dark) !important; }
3857
- .vh-pg-code textarea { caret-color: var(--vh-text); color: transparent; overflow: hidden; resize: none; }
3858
- .vh-pg-code textarea::selection { background: var(--vh-selection, color-mix(in oklab, var(--vh-text) 18%, transparent)); }
3859
-
3860
- .vh-pg-notice { border-top: 1px solid var(--vh-border); color: var(--vh-highlighted); flex: none; font-size: 0.8125rem; margin: 0; padding: 0.625rem 1rem; }
3861
- .vh-pg-issues { border-top: 1px solid var(--vh-border); color: var(--vh-warning); flex: none; font-size: 0.8125rem; list-style: none; margin: 0; max-height: 30%; overflow-y: auto; padding: 0.625rem 1rem; }
3862
- .vh-pg-issues[hidden] { display: none; }
3863
- .vh-pg-issues li + li { margin-top: 0.375rem; }
3864
- .vh-pg-issue-line { font-family: var(--vh-ws-font-mono); font-weight: 600; margin-inline-end: 0.5rem; }
3865
-
3866
- .vh-pg-confirm { background: var(--vh-bg); border: 1px solid var(--vh-border); border-radius: var(--vh-radius); color: var(--vh-text); max-width: 22rem; padding: 1rem; }
3867
- .vh-pg-confirm form { display: grid; gap: 0.5rem; }
3868
- .vh-pg-confirm p { font-size: 0.875rem; margin: 0; }
3869
- .vh-pg-confirm-title { color: var(--vh-highlighted); font-weight: 600; }
3870
- .vh-pg-confirm .vh-ws-actions { justify-content: end; margin-top: 0.5rem; }
3798
+ .vh-ws-topbar { align-items: center; background: var(--vh-bg); border-bottom: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none; gap: 2px; height: 44px; min-width: 0; padding: 0 8px; }
3799
+ /* In the bar of the shell, the shell draws the line and the padding. */
3800
+ .vh-ws-bar > .vh-ws-topbar { background: none; border: 0; flex: 1; height: 100%; padding: 0; }
3801
+ .vh-ws-spacer { flex: 1; }
3802
+ /* ui-sdk buttons have data-slot="button" and Nuxt UI buttons have data-slot="base". */
3803
+ .vh-ws-topbar :is([data-slot="button"], :is(button, a)[data-slot="base"], .vh-ws-bar-button) { border-radius: 6px; gap: 6px; height: 30px; min-height: 30px; padding-inline: 10px; }
3804
+ .vh-ws-topbar :is(.vh-ws-bar-icon, :is([data-slot="button"], :is(button, a)[data-slot="base"])[aria-label]:has(> :is(svg, [data-slot="leadingIcon"]):only-child)) { justify-content: center; padding: 0; width: 30px; }
3805
+ .vh-ws-topbar :is([data-slot="button"], :is(button, a)[data-slot="base"])[aria-expanded="true"] { background: var(--vh-bg-elevated); color: var(--vh-highlighted); }
3806
+ .vh-ws-step { color: var(--vh-muted); font-size: 0.8125rem; margin-inline: 6px; white-space: nowrap; }
3807
+ .vh-ws-examples-current { color: var(--vh-highlighted); font-weight: 500; }
3808
+
3809
+ /* The examples menu: group headings, then the examples with their description. The open one has a frame. The slot
3810
+ names differ between the ui-sdk kit and Nuxt UI, so each rule names both. */
3811
+ .vh-ws-examples-menu { border: 0; border-radius: 10px; box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border)); line-height: 1.45; max-width: calc(100vw - 16px); padding: 6px; width: 340px; }
3812
+ .vh-ws-examples-menu [data-slot="menu-separator"] { display: none; }
3813
+ .vh-ws-examples-menu [data-slot="menu-group-label"] { color: var(--vh-muted); font-size: 11.5px; font-weight: 500; height: auto; letter-spacing: 0.02em; line-height: 1.45; margin: 8px 8px 4px; min-height: 0; padding: 0; text-transform: uppercase; }
3814
+ .vh-ws-examples-menu [role="menuitemcheckbox"] { align-items: flex-start; border-radius: 6px; flex-direction: column; gap: 1px; min-height: 0; padding: 6px 8px; }
3815
+ .vh-ws-examples-menu :is([role="menuitemcheckbox"] > span:not([data-slot]), [role="menuitemcheckbox"] [data-slot="itemLabel"]) { color: var(--vh-highlighted); font-size: 13.5px; font-weight: 500; }
3816
+ .vh-ws-examples-menu [role="menuitemcheckbox"] :is([data-slot="menu-item-description"], [data-slot="itemDescription"]) { color: var(--vh-muted); font-size: 12.5px; }
3817
+ .vh-ws-examples-menu [data-slot="menu-item-indicator"] { display: none; }
3818
+ .vh-ws-examples-menu [role="menuitemcheckbox"][aria-checked="true"] { background: var(--vh-bg); box-shadow: inset 0 0 0 1px var(--vh-border); }
3819
+ .vh-ws-examples-menu [role="menuitemcheckbox"][data-highlighted] { background: var(--vh-bg-elevated); }
3820
+
3821
+ /* The sidebar covers the workspace from the start side, under the bar. It is a reading surface, so it opens at once
3822
+ (docs/design/motion.md, rule 9). */
3823
+ .vh-ws-sidebar {
3824
+ background: var(--vh-bg-muted); border-right: 1px solid var(--vh-border); bottom: 0; box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border));
3825
+ box-sizing: border-box; display: flex; flex-direction: column; left: 0; max-width: 100%; outline: none; position: absolute;
3826
+ top: var(--vh-ws-bar, 44px); visibility: hidden; width: 264px; z-index: 5;
3827
+ }
3828
+ .vh-ws-sidebar[data-open] { visibility: visible; }
3829
+ .vh-ws-sidebar-body { box-sizing: border-box; flex: 1; line-height: 1.45; min-height: 0; overflow: auto; padding: 10px 8px 16px; }
3830
+ .vh-ws-sidebar-heading { color: var(--vh-muted); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.45; margin: 14px 8px 6px; text-transform: uppercase; }
3831
+ .vh-ws-sidebar-heading:first-child { margin-top: 4px; }
3832
+ .vh-ws-sidebar-link { border-radius: 6px; box-sizing: border-box; color: var(--vh-text); display: flex; font-size: 13.5px; padding: 5px 8px; text-decoration: none; width: 100%; }
3833
+ @media (hover: hover) { .vh-ws-sidebar-link:hover { background: var(--vh-bg-elevated); color: var(--vh-highlighted); } }
3834
+ .vh-ws-sidebar-footer { border-top: 1px solid var(--vh-border); display: flex; flex-direction: column; gap: 2px; padding: 8px; }
3835
+ .vh-ws-sidebar-footer [data-slot="button"], .vh-ws-sidebar-action { height: 30px; justify-content: flex-start; width: 100%; }
3836
+
3837
+ /* The start screen covers the workspace under the bar, with the examples as cards. */
3838
+ .vh-ws-start {
3839
+ align-items: center; background: color-mix(in oklab, var(--vh-bg-muted) 94%, transparent); bottom: 0; box-sizing: border-box;
3840
+ display: flex; justify-content: center; left: 0; line-height: 1.45; overflow: auto; padding: 16px; position: absolute; right: 0; top: var(--vh-ws-bar, 44px); z-index: 4;
3841
+ }
3842
+ .vh-ws-start-content { margin: auto 0; width: min(760px, 100%); }
3843
+ .vh-ws-start-title { color: var(--vh-highlighted); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; margin: 0 0 4px; }
3844
+ .vh-ws-start-description { color: var(--vh-muted); font-size: 14px; margin: 0 0 20px; }
3845
+ .vh-ws-start-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); list-style: none; margin: 0; padding: 0; }
3846
+ .vh-ws-start-grid > li { display: flex; }
3847
+ .vh-ws-start-card {
3848
+ align-items: stretch; background: var(--vh-bg); border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--vh-border); box-sizing: border-box; color: var(--vh-text);
3849
+ cursor: pointer; display: flex; flex: 1; flex-direction: column; font: inherit; font-size: 14px; gap: 6px; line-height: 1.45; padding: 14px; text-align: left; transition: box-shadow 120ms ease-out;
3850
+ }
3851
+ @media (hover: hover) { .vh-ws-start-card:hover { box-shadow: var(--vh-shadow-floating, 0 0 0 1px var(--vh-border)); } }
3852
+ .vh-ws-start-label { color: var(--vh-highlighted); font-weight: 500; }
3853
+ .vh-ws-start-text { color: var(--vh-muted); font-size: 13px; }
3854
+ .vh-ws-start-files { color: var(--vh-muted); font-family: var(--vh-ws-font-mono); font-size: 11.5px; line-height: 15px; margin-top: 6px; }
3855
+ .vh-ws-start-foot { align-items: center; color: var(--vh-muted); display: flex; font-size: 13px; gap: 8px; margin-top: 18px; }
3856
+ }
3871
3857
 
3872
- /* The frame paints the light canvas, so its page must not take the dark scheme of this page and draw white text. */
3873
- .vh-pg-preview { background: Canvas; border: 0; color-scheme: light; height: 100%; width: 100%; }
3874
-
3875
- @media (max-width: 60rem) {
3876
- .vh-pg, .vh-pg:has(> .vh-pg-presets) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(18rem, 1fr) minmax(18rem, 1fr); }
3877
- .vh-pg:has(> .vh-pg-presets) { grid-template-rows: auto minmax(18rem, 1fr) minmax(18rem, 1fr); }
3878
- .vh-pg-presets { border-bottom: 1px solid var(--vh-border); border-inline-end: 0; display: flex; overflow-x: auto; }
3879
- .vh-pg-group { flex: none; }
3880
- .vh-pg-group ul { display: flex; }
3881
- .vh-pg-preset { white-space: nowrap; }
3882
- .vh-pg-editor { border-bottom: 1px solid var(--vh-border); border-inline-end: 0; }
3883
- /* Smaller text makes iOS zoom into the field. */
3884
- .vh-pg-paint pre, .vh-pg-code textarea { font-size: 1rem; }
3885
- }
3858
+ /* Nuxt UI draws the examples menu with utility classes, so the rules for its slots stay outside a layer to win over
3859
+ them. The ui-sdk menu has its own slot names, which the rules in the layer above match. */
3860
+ .vh-ws-examples-menu [data-slot="group"] { border: 0; padding: 0; }
3861
+ .vh-ws-examples-menu [data-slot="label"] { color: var(--vh-muted); font-size: 11.5px; font-weight: 500; gap: 0; letter-spacing: 0.02em; line-height: 1.45; margin: 8px 8px 4px; padding: 0; text-transform: uppercase; width: auto; }
3862
+ .vh-ws-examples-menu [data-slot="item"] { font-size: inherit; gap: 1px; line-height: inherit; padding: 6px 8px; }
3863
+ .vh-ws-examples-menu [data-slot="itemWrapper"] { width: 100%; }
3864
+ .vh-ws-examples-menu [data-slot="itemTrailing"] { display: none; }
3865
+
3866
+ /*
3867
+ * The learn parts of a workspace: the guide, its task box and file links, the steps of the bar, and the issues list.
3868
+ * The guide fills the `guide` pane of the shell. Its text scrolls and Back and Next stay at the bottom of the column.
3869
+ * The text rules use :where(), so the prose styles of the page win.
3870
+ */
3871
+ @layer components {
3872
+ .vh-ws-guide-pane { display: flex; flex: 1; flex-direction: column; height: 100%; min-height: 0; }
3873
+ .vh-ws-guide-body { box-sizing: border-box; flex: 1; font-size: 0.875rem; line-height: 1.5; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 22px 20px; }
3874
+ .vh-ws-guide-kicker { color: var(--vh-muted); font-size: 0.75rem; margin: 0 0 4px; }
3875
+ .vh-ws-guide-title { color: var(--vh-highlighted); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 10px; text-wrap: balance; }
3876
+ :where(.vh-ws-guide-content) > :where(p, ul, ol, blockquote) { margin: 0 0 10px; max-width: 62ch; }
3877
+ :where(.vh-ws-guide-content) :where(code:not(pre code)) { background: var(--vh-bg-elevated); border-radius: 4px; font: 0.75rem var(--vh-ws-font-mono); padding: 1px 4px; }
3878
+ .vh-ws-guide-footer {
3879
+ align-items: center; background: var(--vh-bg); border-top: 1px solid var(--vh-border); box-sizing: border-box; display: flex; flex: none;
3880
+ gap: 8px; justify-content: space-between; min-height: 52px; padding: 10px 22px;
3881
+ }
3882
+ .vh-ws-guide-footer > * { min-width: 0; }
3883
+ .vh-ws-guide-back, .vh-ws-guide-next { max-width: 100%; }
3884
+ .vh-ws-guide-back > span, .vh-ws-guide-next > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
3885
+
3886
+ .vh-ws-task { background: var(--vh-bg-muted); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--vh-border); margin: 14px 0 0; max-width: 62ch; padding: 10px 12px; }
3887
+ .vh-ws-task-title { color: var(--vh-highlighted); font-weight: 500; margin: 0 0 2px; }
3888
+ .vh-ws-task-body > :first-child { margin-top: 0; }
3889
+ .vh-ws-task-body > :last-child { margin-bottom: 0; }
3890
+
3891
+ .vh-ws-file-link {
3892
+ --vh-ws-file-link: var(--vh-focus, var(--ring, var(--vh-primary)));
3893
+ background: none; border: 0; border-radius: 4px; color: var(--vh-ws-file-link); cursor: pointer; font: 0.75rem var(--vh-ws-font-mono);
3894
+ padding: 0 3px; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--vh-ws-file-link) 35%, transparent); text-underline-offset: 2px;
3895
+ }
3896
+ @media (hover: hover) { .vh-ws-file-link:hover { background: color-mix(in oklab, var(--vh-ws-file-link) 12%, transparent); } }
3897
+
3898
+ .vh-ws-step-nav { align-items: center; display: flex; gap: 2px; min-width: 0; }
3899
+ .vh-ws-step-nav-menu { min-width: 0; }
3900
+ .vh-ws-step-nav-name { color: var(--vh-highlighted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
3901
+ .vh-ws-step-nav-count { color: var(--vh-muted); font-size: 0.78125rem; margin: 0 4px; white-space: nowrap; }
3902
+
3903
+ .vh-ws-issues { box-sizing: border-box; color: var(--vh-warning); font-size: 0.8125rem; list-style: none; margin: 0; overflow-y: auto; padding: 0.625rem 1rem; }
3904
+ .vh-ws-issues[hidden] { display: none; }
3905
+ .vh-ws-issues li + li { margin-top: 0.375rem; }
3906
+ .vh-ws-issues-empty { color: var(--vh-muted); }
3907
+ .vh-ws-issue-line { font-family: var(--vh-ws-font-mono); font-weight: 600; margin-inline-end: 0.5rem; }
3908
+ /* The file of an issue opens it in the editor. It keeps the look of the line, with an underline as a link. */
3909
+ .vh-ws-issue-file { background: none; border: 0; color: inherit; cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
3910
+ @media (hover: hover) { .vh-ws-issue-file:hover { color: var(--vh-highlighted); } }
3886
3911
  }
3887
3912
 
3888
3913
  /* MarkdownEditor: the text takes the comark typeset. The editor has no frame, so its caret shows focus. */
@@ -3942,17 +3967,14 @@
3942
3967
  white-space: nowrap;
3943
3968
  }
3944
3969
 
3945
- /* The handle glides to the block under the pointer. A narrow screen has no room beside the text, as in Nuxt UI. */
3970
+ /* The handle moves to the block under the pointer with the list mover of the motion layer (UEditorDragHandle). A
3971
+ narrow screen has no room beside the text, as in Nuxt UI. */
3946
3972
  .vh-editor-drag-handle {
3947
3973
  align-items: center;
3948
3974
  display: flex;
3949
3975
  justify-content: center;
3950
- transition: top 200ms ease-out, left 200ms ease-out;
3951
3976
  }
3952
3977
  .vh-editor-drag-handle__handle { cursor: grab; padding-inline: 0.25rem; }
3953
- @media (prefers-reduced-motion: reduce) {
3954
- .vh-editor-drag-handle { transition: none; }
3955
- }
3956
3978
  @media (max-width: 639.98px) {
3957
3979
  .vh-editor-drag-handle { display: none; }
3958
3980
  }
@@ -4040,13 +4062,12 @@
4040
4062
  height: var(--vh-agent-control);
4041
4063
  justify-content: center;
4042
4064
  padding: 0;
4043
- transition: background-color 150ms ease-out, color 150ms ease-out, scale 150ms ease-out;
4065
+ transition: background-color 150ms ease-out, color 150ms ease-out;
4044
4066
  width: var(--vh-agent-control);
4045
4067
  }
4046
4068
  .vh-agent-session__toggle > * { height: 1rem; width: 1rem; }
4047
4069
  .vh-agent-session__toggle:hover { background: var(--vh-agent-hover); color: var(--vh-text); }
4048
4070
  .vh-agent-session__toggle[aria-pressed="true"] { background: var(--vh-agent-pressed); color: var(--vh-highlighted); }
4049
- .vh-agent-session__toggle:active { scale: 0.96; }
4050
4071
 
4051
4072
  .vh-agent-session__body { display: flex; flex: 1 1 0; min-height: 0; position: relative; }
4052
4073
  .vh-agent-session__scroll { flex: 1 1 0; min-width: 0; overflow-y: auto; scrollbar-gutter: stable; }
@@ -4147,9 +4168,8 @@
4147
4168
  text-decoration: none;
4148
4169
  width: 100%;
4149
4170
  }
4150
- .vh-agent-session__row[data-interactive] { cursor: pointer; transition: background-color 150ms ease-out, scale 150ms ease-out; }
4171
+ .vh-agent-session__row[data-interactive] { cursor: pointer; transition: background-color 150ms ease-out; }
4151
4172
  .vh-agent-session__row[data-interactive]:hover { background: var(--vh-agent-hover); }
4152
- .vh-agent-session__row[data-interactive]:active { scale: 0.98; }
4153
4173
  .vh-agent-session__row-icon { color: var(--vh-muted); flex: none; height: 1rem; width: 1rem; }
4154
4174
  .vh-agent-session__row-label { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
4155
4175
  .vh-agent-session__row-value {
@@ -4233,7 +4253,8 @@
4233
4253
  .vh-agent-session__work-summary:hover { color: var(--vh-text); }
4234
4254
  .vh-agent-session__work-count { color: var(--vh-muted); font-size: 0.75rem; }
4235
4255
  .vh-agent-session__work-failed { color: var(--vh-error); }
4236
- .vh-agent-session__work-chevron { height: 0.875rem; transition: rotate 150ms ease-out; width: 0.875rem; }
4256
+ /* The disclosure effect of the motion layer turns the chevron from its old angle to this one with a spring. */
4257
+ .vh-agent-session__work-chevron { height: 0.875rem; width: 0.875rem; }
4237
4258
  .vh-agent-session__work[data-open] .vh-agent-session__work-chevron { rotate: 180deg; }
4238
4259
  .vh-agent-session__work[data-open] .vh-agent-session__work-summary {
4239
4260
  align-self: stretch;
@@ -4611,10 +4632,6 @@
4611
4632
  transform-origin: top left;
4612
4633
  }
4613
4634
  .vh-device-frame[data-dragging] .vh-device-frame__page { pointer-events: none; }
4614
- @media (prefers-reduced-motion: no-preference) {
4615
- .vh-device-frame[data-on]:not([data-dragging]) .vh-device-frame__footprint { transition: width 200ms ease-out, height 200ms ease-out; }
4616
- .vh-device-frame[data-on]:not([data-dragging]) .vh-device-frame__page { transition: transform 200ms ease-out; }
4617
- }
4618
4635
  .vh-device-frame__readout {
4619
4636
  background: var(--vh-highlighted);
4620
4637
  border-radius: calc(var(--vh-radius) * 0.75);