@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
@@ -0,0 +1,137 @@
1
+ // ../../node_modules/.pnpm/@pierre+highlights@0.5.2/node_modules/@pierre/highlights/dist/themes/plastic.js
2
+ var plastic_default = {
3
+ "name": "Plastic",
4
+ "appearance": "dark",
5
+ "style": {
6
+ "background": "#21252Bff",
7
+ "text": "#F5F7FAff",
8
+ "editor.background": "#21252Bff",
9
+ "editor.foreground": "#A9B2C3ff",
10
+ "editor.active_line.background": "#A9B2C31A",
11
+ "search.match_background": "#1085FF44",
12
+ "players": [
13
+ {
14
+ "cursor": "#1085FFff",
15
+ "background": "#1085FFff",
16
+ "selection": "#1085FF3d"
17
+ },
18
+ {
19
+ "cursor": "#E06C75ff",
20
+ "background": "#E06C75ff",
21
+ "selection": "#E06C753d"
22
+ },
23
+ {
24
+ "cursor": "#D19A66ff",
25
+ "background": "#D19A66ff",
26
+ "selection": "#D19A663d"
27
+ },
28
+ {
29
+ "cursor": "#B57EDCff",
30
+ "background": "#B57EDCff",
31
+ "selection": "#B57EDC3d"
32
+ },
33
+ {
34
+ "cursor": "#56B6C2ff",
35
+ "background": "#56B6C2ff",
36
+ "selection": "#56B6C23d"
37
+ },
38
+ {
39
+ "cursor": "#E5C07Bff",
40
+ "background": "#E5C07Bff",
41
+ "selection": "#E5C07B3d"
42
+ },
43
+ {
44
+ "cursor": "#98C379ff",
45
+ "background": "#98C379ff",
46
+ "selection": "#98C3793d"
47
+ },
48
+ {
49
+ "cursor": "#61AFEFff",
50
+ "background": "#61AFEFff",
51
+ "selection": "#61AFEF3d"
52
+ }
53
+ ],
54
+ "error": "#D74E42ff",
55
+ "warning": "#E9D16Cff",
56
+ "info": "#1085FFff",
57
+ "hint": "#5F6672ff",
58
+ "deleted": "#E06C75",
59
+ "modified": "#D19A66",
60
+ "terminal.ansi.black": "#5F6672ff",
61
+ "terminal.ansi.red": "#E06C75ff",
62
+ "terminal.ansi.green": "#98C379ff",
63
+ "terminal.ansi.yellow": "#E5C07Bff",
64
+ "terminal.ansi.blue": "#61AFEFff",
65
+ "terminal.ansi.magenta": "#B57EDCff",
66
+ "terminal.ansi.cyan": "#56B6C2ff",
67
+ "terminal.ansi.white": "#A9B2C3ff",
68
+ "terminal.ansi.bright_black": "#5F6672ff",
69
+ "terminal.ansi.bright_red": "#E06C75ff",
70
+ "terminal.ansi.bright_green": "#98C379ff",
71
+ "terminal.ansi.bright_yellow": "#E5C07Bff",
72
+ "terminal.ansi.bright_blue": "#61AFEFff",
73
+ "terminal.ansi.bright_magenta": "#B57EDCff",
74
+ "terminal.ansi.bright_cyan": "#56B6C2ff",
75
+ "terminal.ansi.bright_white": "#A9B2C3ff",
76
+ "syntax": {
77
+ "attribute": { "color": "#D19A66ff" },
78
+ "boolean": { "color": "#56B6C2ff" },
79
+ "comment": { "color": "#5F6672ff" },
80
+ "comment.doc": { "color": "#5F6672ff" },
81
+ "constant": { "color": "#56B6C2ff" },
82
+ "constructor": { "color": "#61AFEFff" },
83
+ "embedded": { "color": "#A9B2C3ff" },
84
+ "emphasis": { "color": "#E06C75ff" },
85
+ "emphasis.strong": {
86
+ "color": "#D19A66ff",
87
+ "font_weight": 700
88
+ },
89
+ "enum": { "color": "#E5C07Bff" },
90
+ "function": { "color": "#B57EDCff" },
91
+ "hint": { "color": "#5F6672ff" },
92
+ "keyword": { "color": "#E06C75ff" },
93
+ "label": { "color": "#E5C07Bff" },
94
+ "link_text": {
95
+ "color": "#61AFEFff",
96
+ "font_style": "normal"
97
+ },
98
+ "link_uri": { "color": "#56B6C2ff" },
99
+ "namespace": { "color": "#61AFEFff" },
100
+ "number": { "color": "#56B6C2ff" },
101
+ "operator": { "color": "#A9B2C3ff" },
102
+ "predictive": {
103
+ "color": "#5F6672ff",
104
+ "font_style": "italic"
105
+ },
106
+ "preproc": { "color": "#E06C75ff" },
107
+ "primary": { "color": "#A9B2C3ff" },
108
+ "property": { "color": "#C6CCD7ff" },
109
+ "punctuation": { "color": "#A9B2C3ff" },
110
+ "punctuation.bracket": { "color": "#A9B2C3ff" },
111
+ "punctuation.delimiter": { "color": "#A9B2C3ff" },
112
+ "punctuation.list_marker": { "color": "#E06C75ff" },
113
+ "punctuation.markup": { "color": "#E06C75ff" },
114
+ "punctuation.special": { "color": "#E06C75ff" },
115
+ "selector": { "color": "#E5C07Bff" },
116
+ "selector.pseudo": { "color": "#61AFEFff" },
117
+ "string": { "color": "#98C379ff" },
118
+ "string.escape": { "color": "#56B6C2ff" },
119
+ "string.regex": { "color": "#56B6C2ff" },
120
+ "string.special": { "color": "#D19A66ff" },
121
+ "string.special.symbol": { "color": "#D19A66ff" },
122
+ "tag": { "color": "#E5C07Bff" },
123
+ "text.literal": { "color": "#98C379ff" },
124
+ "title": {
125
+ "color": "#E5C07Bff",
126
+ "font_weight": 400
127
+ },
128
+ "type": { "color": "#E5C07Bff" },
129
+ "variable": { "color": "#C6CCD7ff" },
130
+ "variable.special": { "color": "#E06C75ff" },
131
+ "variant": { "color": "#61AFEFff" },
132
+ "diff.minus": { "color": "#E06C75" },
133
+ "diff.plus": { "color": "#98C379" }
134
+ }
135
+ }
136
+ };
137
+ export { plastic_default as default };
@@ -1,4 +1,4 @@
1
- import { a as encodePlaygroundLink, c as playgroundUrl, i as decodePlaygroundLink, l as readPlaygroundHash, n as PlaygroundState, o as playgroundHashKey, r as PlaygroundTemplate, s as playgroundLinkLimit, t as PlaygroundFiles } from "./share-DM4eNy4q.js";
2
1
  import { isProjectPath } from "./parts/playground/paths.js";
2
+ import { PlaygroundFiles, PlaygroundState, PlaygroundTemplate, decodePlaygroundLink, encodePlaygroundLink, playgroundHashKey, playgroundLinkLimit, playgroundUrl, readPlaygroundHash } from "./parts/playground/share.js";
3
3
  import { downloadZip, zipFiles } from "./parts/playground/zip.js";
4
4
  export { type PlaygroundFiles, type PlaygroundState, type PlaygroundTemplate, decodePlaygroundLink, downloadZip, encodePlaygroundLink, isProjectPath, playgroundHashKey, playgroundLinkLimit, playgroundUrl, readPlaygroundHash, zipFiles };
@@ -0,0 +1,124 @@
1
+ // ../../node_modules/.pnpm/@pierre+highlights@0.5.2/node_modules/@pierre/highlights/dist/themes/poimandres.js
2
+ var poimandres_default = {
3
+ "name": "Poimandres",
4
+ "appearance": "dark",
5
+ "style": {
6
+ "background": "#1b1e28",
7
+ "editor.background": "#1b1e28",
8
+ "text": "#a6accd",
9
+ "editor.foreground": "#a6accd",
10
+ "editor.active_line.background": "#717cb425",
11
+ "editor.document_highlight.bracket_background": "#00000000",
12
+ "search.match_background": "#ADD7FF40",
13
+ "error": "#d0679d",
14
+ "warning": "#fffac2",
15
+ "info": "#ADD7FF",
16
+ "hint": "#7390AAb3",
17
+ "players": [{
18
+ "cursor": "#a6accd",
19
+ "selection": "#717cb425"
20
+ }],
21
+ "created": "#5fb3a1",
22
+ "deleted": "#d0679d",
23
+ "modified": "#ADD7FF",
24
+ "terminal.ansi.black": "#1b1e28",
25
+ "terminal.ansi.red": "#d0679d",
26
+ "terminal.ansi.green": "#5DE4c7",
27
+ "terminal.ansi.yellow": "#fffac2",
28
+ "terminal.ansi.blue": "#89ddff",
29
+ "terminal.ansi.magenta": "#f087bd",
30
+ "terminal.ansi.cyan": "#89ddff",
31
+ "terminal.ansi.white": "#ffffff",
32
+ "terminal.ansi.bright_black": "#a6accd",
33
+ "terminal.ansi.bright_red": "#d0679d",
34
+ "terminal.ansi.bright_green": "#5DE4c7",
35
+ "terminal.ansi.bright_yellow": "#fffac2",
36
+ "terminal.ansi.bright_blue": "#ADD7FF",
37
+ "terminal.ansi.bright_magenta": "#f087bd",
38
+ "terminal.ansi.bright_cyan": "#ADD7FF",
39
+ "terminal.ansi.bright_white": "#ffffff",
40
+ "syntax": {
41
+ "attribute": {
42
+ "color": "#91B4D5",
43
+ "font_style": "italic"
44
+ },
45
+ "boolean": { "color": "#5DE4c7" },
46
+ "comment": {
47
+ "color": "#767c9dB0",
48
+ "font_style": "italic"
49
+ },
50
+ "comment.doc": {
51
+ "color": "#767c9dB0",
52
+ "font_style": "italic"
53
+ },
54
+ "constant": { "color": "#5DE4c7" },
55
+ "constructor": { "color": "#5DE4c7" },
56
+ "emphasis": {
57
+ "color": "#7390AA",
58
+ "font_style": "italic"
59
+ },
60
+ "emphasis.strong": {
61
+ "color": "#7390AA",
62
+ "font_weight": 700
63
+ },
64
+ "function": { "color": "#ADD7FF" },
65
+ "keyword": { "color": "#a6accd" },
66
+ "label": { "color": "#91B4D5" },
67
+ "link_text": { "color": "#5DE4c7" },
68
+ "link_uri": { "color": "#5DE4c7" },
69
+ "number": { "color": "#5DE4c7" },
70
+ "operator": { "color": "#91B4D5" },
71
+ "punctuation": { "color": "#a6accd" },
72
+ "punctuation.bracket": { "color": "#a6accd" },
73
+ "punctuation.delimiter": { "color": "#a6accd" },
74
+ "punctuation.list_marker": { "color": "#a6accd" },
75
+ "punctuation.special": { "color": "#a6accd" },
76
+ "string": { "color": "#5DE4c7" },
77
+ "string.escape": { "color": "#5DE4c7" },
78
+ "string.regex": { "color": "#5DE4c7" },
79
+ "string.special": { "color": "#5DE4c7" },
80
+ "string.special.symbol": { "color": "#5DE4c7" },
81
+ "tag": { "color": "#5DE4c7" },
82
+ "text.literal": { "color": "#5DE4c7" },
83
+ "title": { "color": "#91B4D5" },
84
+ "type": { "color": "#a6accdC0" },
85
+ "variable": {
86
+ "color": "#ADD7FF",
87
+ "font_style": "italic"
88
+ },
89
+ "variable.special": {
90
+ "color": "#ADD7FF",
91
+ "font_style": "italic"
92
+ },
93
+ "embedded": { "color": "#a6accd" },
94
+ "namespace": { "color": "#91B4D5" },
95
+ "predictive": { "color": "#767c9dB0" },
96
+ "preproc": { "color": "#a6accd" },
97
+ "primary": { "color": "#a6accd" },
98
+ "property": {
99
+ "color": "#ADD7FF",
100
+ "font_style": "italic"
101
+ },
102
+ "selector": { "color": "#5DE4C7" },
103
+ "enum": { "color": "#A6ACCDC0" },
104
+ "hint": { "color": "#7390AAb3" },
105
+ "variant": { "color": "#E4F0FB" },
106
+ "diff.minus": { "color": "#506477" },
107
+ "diff.plus": { "color": "#ADD7FF" },
108
+ "property.json_key": { "color": "#A6ACCDC0" },
109
+ "selector.class": {
110
+ "color": "#5FB3A1",
111
+ "font_style": "italic"
112
+ },
113
+ "selector.id": {
114
+ "color": "#91B4D5",
115
+ "font_style": "italic"
116
+ },
117
+ "selector.pseudo": {
118
+ "color": "#91B4D5",
119
+ "font_style": "italic"
120
+ }
121
+ }
122
+ }
123
+ };
124
+ export { poimandres_default as default };
@@ -0,0 +1,265 @@
1
+ import { i as playTween, r as easeOut, t as cubicBezier } from "./tween-Dv3IIIQG.js";
2
+ import { a as onEachFrame, r as createSpring, s as springs, t as isMotionOff, u as prefersReducedMotion } from "./opt-out-D66l60sg.js";
3
+ // src/motion/progress.ts
4
+ const svgNs = "http://www.w3.org/2000/svg";
5
+ const height = 8;
6
+ const rail = 2;
7
+ const bar = 4;
8
+ const bulge = 4;
9
+ const headWidth = 10;
10
+ const waveWidth = 36;
11
+ const waveSpeed = 260;
12
+ const settleRate = 3;
13
+ const tickEasing = cubicBezier(.6, 0, .2, 1);
14
+ const tickPath = "M5 12.5l4.5 4.5L19 7.5";
15
+ function svg(tag, attributes) {
16
+ const element = document.createElementNS(svgNs, tag);
17
+ for (const [name, value] of Object.entries(attributes)) element.setAttribute(name, value);
18
+ return element;
19
+ }
20
+ function line(x0, x1, thickness) {
21
+ const y = height / 2;
22
+ const top = [];
23
+ const bottom = [];
24
+ for (let x = x0; x <= x1 + .01; x += 1.5) {
25
+ const half = thickness(Math.min(x, x1)) / 2;
26
+ top.push(`${Math.min(x, x1).toFixed(2)} ${(y - half).toFixed(2)}`);
27
+ bottom.unshift(`${Math.min(x, x1).toFixed(2)} ${(y + half).toFixed(2)}`);
28
+ }
29
+ if (!top.length) return "";
30
+ const end = thickness(x1) / 2;
31
+ const start = thickness(x0) / 2;
32
+ return `M${top.join("L")}A${end.toFixed(2)} ${end.toFixed(2)} 0 0 1 ${bottom[0]}L${bottom.join("L")}A${start.toFixed(2)} ${start.toFixed(2)} 0 0 1 ${top[0]}Z`;
33
+ }
34
+ /**
35
+ * The progress helper of docs/design/motion.md: "Work runs". It draws into `host`: a bar with a head while it fills, a
36
+ * wave while it processes with no known total, and a dot that draws into a check when the work is done.
37
+ *
38
+ * The host gets `role="progressbar"` with `aria-valuenow` from 0 to 100, no `aria-valuenow` during the wave, and
39
+ * `data-phase`. The bar uses `currentColor`, and the rail `--vh-progress-rail` or the Nuxt UI accented border color.
40
+ * Under reduced motion the bar jumps to its value, there is no head or wave, and the check cross-fades in 150ms. Inside
41
+ * `data-motion="none"` the bar jumps and the check shows at once.
42
+ */
43
+ function createProgress(host, options = {}) {
44
+ const chart = svg("svg", {
45
+ "aria-hidden": "true",
46
+ "data-part": "bar",
47
+ height: String(height),
48
+ preserveAspectRatio: "none"
49
+ });
50
+ const railPath = svg("path", {
51
+ "data-part": "rail",
52
+ fill: "var(--vh-progress-rail, var(--ui-border-accented, color-mix(in oklch, currentColor 20%, transparent)))"
53
+ });
54
+ const fillPath = svg("path", {
55
+ "data-part": "fill",
56
+ fill: "currentColor"
57
+ });
58
+ chart.append(railPath, fillPath);
59
+ const check = svg("svg", {
60
+ "aria-hidden": "true",
61
+ "data-part": "check",
62
+ fill: "none",
63
+ stroke: "currentColor",
64
+ "stroke-linecap": "round",
65
+ "stroke-linejoin": "round",
66
+ "stroke-width": "2",
67
+ viewBox: "0 0 24 24"
68
+ });
69
+ const dot = svg("circle", {
70
+ cx: "12",
71
+ cy: "12",
72
+ fill: "currentColor",
73
+ r: "0",
74
+ stroke: "none"
75
+ });
76
+ const tick = svg("path", {
77
+ d: tickPath,
78
+ pathLength: "1",
79
+ "stroke-dasharray": "1",
80
+ "stroke-dashoffset": "1"
81
+ });
82
+ check.append(dot, tick);
83
+ Object.assign(chart.style, {
84
+ display: "block",
85
+ flex: "1 1 auto",
86
+ minWidth: "0",
87
+ overflow: "visible",
88
+ width: "100%"
89
+ });
90
+ Object.assign(check.style, {
91
+ flex: "none",
92
+ height: "18px",
93
+ width: "18px"
94
+ });
95
+ if (!host.style.display) Object.assign(host.style, {
96
+ alignItems: "center",
97
+ display: "flex",
98
+ gap: "8px"
99
+ });
100
+ host.append(chart, check);
101
+ host.setAttribute("role", "progressbar");
102
+ host.setAttribute("aria-valuemin", "0");
103
+ host.setAttribute("aria-valuemax", "100");
104
+ if (options.label && !host.hasAttribute("aria-label")) host.setAttribute("aria-label", options.label);
105
+ let phase = "idle";
106
+ let width = chart.clientWidth;
107
+ let wave = -40;
108
+ let flat = 0;
109
+ let stopWave;
110
+ let stopTimeline = [];
111
+ const still = () => prefersReducedMotion() || isMotionOff(host);
112
+ const end = createSpring(0, () => draw(), springs.snappy);
113
+ function draw() {
114
+ width = chart.clientWidth || width;
115
+ chart.setAttribute("viewBox", `0 0 ${Math.max(1, width)} ${height}`);
116
+ const x0 = 2;
117
+ const x1 = Math.max(x0, width - 2);
118
+ railPath.setAttribute("d", line(x0, x1, () => rail));
119
+ const shape = still() ? 0 : 1 - flat;
120
+ if (phase === "wave" || phase === "done" && flat < 1 && stopWave) {
121
+ fillPath.setAttribute("d", line(x0, x1, (x) => bar + bulge * shape * Math.exp(-(((x - wave) / waveWidth) ** 2))));
122
+ return;
123
+ }
124
+ const head = x0 + (x1 - x0) * Math.max(0, Math.min(1, end.value));
125
+ fillPath.setAttribute("d", phase === "idle" ? "" : line(x0, Math.max(x0, head), (x) => bar + bulge * shape * Math.exp(-(((x - head + headWidth) / headWidth) ** 2))));
126
+ }
127
+ function setPhase(next) {
128
+ phase = next;
129
+ host.dataset.phase = next;
130
+ host.setAttribute("aria-busy", String(next === "fill" || next === "wave"));
131
+ }
132
+ function stopAll() {
133
+ stopWave?.();
134
+ stopWave = void 0;
135
+ for (const stop of stopTimeline) stop();
136
+ stopTimeline = [];
137
+ }
138
+ function startWave() {
139
+ if (stopWave || still()) return;
140
+ wave = -40;
141
+ stopWave = onEachFrame((seconds) => {
142
+ if (phase === "done") {
143
+ flat = Math.min(1, flat + seconds * settleRate);
144
+ wave += waveSpeed * seconds;
145
+ draw();
146
+ if (flat < 1) return true;
147
+ end.set(1);
148
+ stopWave = void 0;
149
+ draw();
150
+ drawCheck();
151
+ return false;
152
+ }
153
+ wave = -40 + (wave + 40 + waveSpeed * seconds) % (width + 80);
154
+ draw();
155
+ return true;
156
+ });
157
+ }
158
+ function clearCheck() {
159
+ dot.setAttribute("r", "0");
160
+ tick.setAttribute("stroke-dashoffset", "1");
161
+ check.style.opacity = "";
162
+ }
163
+ function drawCheck() {
164
+ if (isMotionOff(host)) {
165
+ tick.setAttribute("stroke-dashoffset", "0");
166
+ return;
167
+ }
168
+ if (prefersReducedMotion()) {
169
+ check.style.opacity = "0";
170
+ tick.setAttribute("stroke-dashoffset", "0");
171
+ const fade = playTween(.15, (p) => check.style.opacity = p.toFixed(3));
172
+ stopTimeline.push(fade.stop);
173
+ return;
174
+ }
175
+ const grow = playTween(.32, (p) => {
176
+ dot.setAttribute("r", (p <= .5 ? 7 * p : 3.5 - 3 * (p - .5)).toFixed(3));
177
+ }, easeOut);
178
+ stopTimeline.push(grow.stop);
179
+ grow.done.then((completed) => {
180
+ if (!completed) return;
181
+ const shrink = playTween(.12, (p) => dot.setAttribute("r", (2 - 2 * p).toFixed(3)));
182
+ const draw = playTween(.32, (p) => tick.setAttribute("stroke-dashoffset", (1 - p).toFixed(4)), tickEasing);
183
+ stopTimeline.push(shrink.stop, draw.stop);
184
+ });
185
+ }
186
+ function settleFill() {
187
+ if (still()) {
188
+ flat = 1;
189
+ draw();
190
+ drawCheck();
191
+ return;
192
+ }
193
+ const wait = onEachFrame(() => {
194
+ if (end.active) return true;
195
+ const flatten = playTween(1 / settleRate, (p) => {
196
+ flat = p;
197
+ draw();
198
+ });
199
+ stopTimeline.push(flatten.stop);
200
+ flatten.done.then((completed) => completed && drawCheck());
201
+ return false;
202
+ });
203
+ stopTimeline.push(wait);
204
+ }
205
+ const resize = typeof ResizeObserver === "function" ? new ResizeObserver(() => draw()) : void 0;
206
+ resize?.observe(chart);
207
+ setPhase("idle");
208
+ draw();
209
+ return {
210
+ get phase() {
211
+ return phase;
212
+ },
213
+ set(value) {
214
+ if (phase === "done") {
215
+ stopAll();
216
+ clearCheck();
217
+ flat = 0;
218
+ }
219
+ if (value === null) {
220
+ host.removeAttribute("aria-valuenow");
221
+ setPhase("wave");
222
+ startWave();
223
+ draw();
224
+ return;
225
+ }
226
+ const fraction = Math.max(0, Math.min(1, value));
227
+ host.setAttribute("aria-valuenow", String(Math.round(fraction * 100)));
228
+ if (phase === "wave") {
229
+ stopWave?.();
230
+ stopWave = void 0;
231
+ }
232
+ if (phase !== "fill") setPhase("fill");
233
+ if (still()) end.set(fraction);
234
+ else end.to(fraction);
235
+ },
236
+ done() {
237
+ if (phase === "done") return;
238
+ host.setAttribute("aria-valuenow", "100");
239
+ const fromWave = phase === "wave" && stopWave !== void 0;
240
+ setPhase("done");
241
+ flat = 0;
242
+ if (fromWave) return;
243
+ if (still()) end.set(1);
244
+ else end.to(1);
245
+ settleFill();
246
+ },
247
+ reset() {
248
+ stopAll();
249
+ clearCheck();
250
+ flat = 0;
251
+ end.set(0);
252
+ host.setAttribute("aria-valuenow", "0");
253
+ setPhase("idle");
254
+ draw();
255
+ },
256
+ destroy() {
257
+ stopAll();
258
+ end.stop();
259
+ resize?.disconnect();
260
+ chart.remove();
261
+ check.remove();
262
+ }
263
+ };
264
+ }
265
+ export { createProgress as t };