@adea-ai/ui 0.159.9 → 0.160.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1268) hide show
  1. package/README.md +22 -24
  2. package/dist/NOTICE +11 -12
  3. package/dist/components/composites/about-dialog/about-dialog.d.ts +1 -1
  4. package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
  5. package/dist/components/composites/about-dialog/about-dialog.js +26 -15
  6. package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
  7. package/dist/components/composites/accent-picker/accent-picker.d.ts +1 -1
  8. package/dist/components/composites/accent-picker/accent-picker.d.ts.map +1 -1
  9. package/dist/components/composites/accent-picker/accent-picker.js +186 -175
  10. package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
  11. package/dist/components/composites/accent-picker/custom-color-popover.d.ts +1 -1
  12. package/dist/components/composites/accent-picker/custom-color-popover.d.ts.map +1 -1
  13. package/dist/components/composites/accent-picker/custom-color-popover.js +114 -100
  14. package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
  15. package/dist/components/composites/account-menu/account-menu.d.ts +1 -1
  16. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  17. package/dist/components/composites/account-menu/account-menu.js +68 -61
  18. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  19. package/dist/components/composites/action-button/action-button.d.ts +1 -1
  20. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  21. package/dist/components/composites/action-button/action-button.js +82 -100
  22. package/dist/components/composites/action-button/action-button.js.map +1 -1
  23. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +1 -1
  24. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts.map +1 -1
  25. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +82 -73
  26. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  27. package/dist/components/composites/appearance-editor/appearance-choices.d.ts +3 -3
  28. package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
  29. package/dist/components/composites/appearance-editor/appearance-choices.js +185 -197
  30. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  31. package/dist/components/composites/appearance-editor/appearance-editor.d.ts +3 -3
  32. package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
  33. package/dist/components/composites/appearance-editor/appearance-editor.js +370 -343
  34. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  35. package/dist/components/composites/appearance-editor/appearance-rows.d.ts +1 -1
  36. package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
  37. package/dist/components/composites/appearance-editor/appearance-rows.js +219 -192
  38. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  39. package/dist/components/composites/appearance-editor/appearance-types.d.ts +1 -1
  40. package/dist/components/composites/appearance-editor/appearance-types.d.ts.map +1 -1
  41. package/dist/components/composites/appearance-editor/appearance-types.js.map +1 -1
  42. package/dist/components/composites/appearance-editor/font-settings-group.d.ts +1 -1
  43. package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
  44. package/dist/components/composites/appearance-editor/font-settings-group.js +137 -117
  45. package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
  46. package/dist/components/composites/appearance-editor/theme-preview.d.ts +4 -4
  47. package/dist/components/composites/appearance-editor/theme-preview.d.ts.map +1 -1
  48. package/dist/components/composites/appearance-editor/theme-preview.js +190 -175
  49. package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
  50. package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts +1 -1
  51. package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts.map +1 -1
  52. package/dist/components/composites/catalog-browser/catalog-browser-group.js +162 -140
  53. package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
  54. package/dist/components/composites/catalog-browser/catalog-browser.d.ts +1 -1
  55. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  56. package/dist/components/composites/catalog-browser/catalog-browser.js +284 -274
  57. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  58. package/dist/components/composites/catalog-browser/catalog-detail.d.ts +1 -1
  59. package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
  60. package/dist/components/composites/catalog-browser/catalog-detail.js +104 -76
  61. package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
  62. package/dist/components/composites/catalog-browser/catalog-types.d.ts +1 -1
  63. package/dist/components/composites/catalog-browser/catalog-types.d.ts.map +1 -1
  64. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +1 -1
  65. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
  66. package/dist/components/composites/chain-of-thought/chain-of-thought.js +57 -54
  67. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  68. package/dist/components/composites/chat/chat.d.ts +1 -1
  69. package/dist/components/composites/chat/chat.d.ts.map +1 -1
  70. package/dist/components/composites/chat/chat.js +158 -147
  71. package/dist/components/composites/chat/chat.js.map +1 -1
  72. package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
  73. package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
  74. package/dist/components/composites/checkpoint/checkpoint.js +117 -116
  75. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  76. package/dist/components/composites/confirmation/confirmation.d.ts +1 -1
  77. package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
  78. package/dist/components/composites/confirmation/confirmation.js +230 -202
  79. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  80. package/dist/components/composites/context/context.d.ts +2 -2
  81. package/dist/components/composites/context/context.d.ts.map +1 -1
  82. package/dist/components/composites/context/context.js +206 -195
  83. package/dist/components/composites/context/context.js.map +1 -1
  84. package/dist/components/composites/file-tree/file-tree.d.ts +2 -2
  85. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  86. package/dist/components/composites/file-tree/file-tree.js +275 -239
  87. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  88. package/dist/components/composites/help-center/help-center.d.ts +1 -1
  89. package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
  90. package/dist/components/composites/help-center/help-center.js +138 -118
  91. package/dist/components/composites/help-center/help-center.js.map +1 -1
  92. package/dist/components/composites/icon-picker/icon-picker.d.ts +1 -1
  93. package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
  94. package/dist/components/composites/icon-picker/icon-picker.js +191 -165
  95. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  96. package/dist/components/composites/icon-picker/shell-icons.d.ts +60 -60
  97. package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
  98. package/dist/components/composites/icon-picker/shell-icons.js +1 -1
  99. package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
  100. package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
  101. package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
  102. package/dist/components/composites/inline-citation/inline-citation.js +123 -104
  103. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  104. package/dist/components/composites/list-row/list-row-control.d.ts +8 -2
  105. package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
  106. package/dist/components/composites/list-row/list-row-control.js +32 -34
  107. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  108. package/dist/components/composites/list-row/list-row.d.ts +5 -6
  109. package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
  110. package/dist/components/composites/list-row/list-row.js +53 -55
  111. package/dist/components/composites/list-row/list-row.js.map +1 -1
  112. package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
  113. package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
  114. package/dist/components/composites/message-scroller/message-scroller.js +111 -103
  115. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  116. package/dist/components/composites/model-selector/model-selector.d.ts +1 -1
  117. package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
  118. package/dist/components/composites/model-selector/model-selector.js +414 -406
  119. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  120. package/dist/components/composites/plan/plan.d.ts +1 -1
  121. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  122. package/dist/components/composites/plan/plan.js +11 -17
  123. package/dist/components/composites/plan/plan.js.map +1 -1
  124. package/dist/components/composites/prompt-input/prompt-input.d.ts +1 -1
  125. package/dist/components/composites/prompt-input/prompt-input.d.ts.map +1 -1
  126. package/dist/components/composites/prompt-input/prompt-input.js +85 -105
  127. package/dist/components/composites/prompt-input/prompt-input.js.map +1 -1
  128. package/dist/components/composites/queue/queue.d.ts +1 -1
  129. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  130. package/dist/components/composites/queue/queue.js +180 -188
  131. package/dist/components/composites/queue/queue.js.map +1 -1
  132. package/dist/components/composites/reasoning/reasoning.d.ts +1 -1
  133. package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
  134. package/dist/components/composites/reasoning/reasoning.js +13 -18
  135. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  136. package/dist/components/composites/scene-controls/scene-controls.d.ts +1 -1
  137. package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
  138. package/dist/components/composites/scene-controls/scene-controls.js +98 -83
  139. package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
  140. package/dist/components/composites/settings/settings-layout.d.ts +2 -2
  141. package/dist/components/composites/settings/settings-layout.d.ts.map +1 -1
  142. package/dist/components/composites/settings/settings-layout.js +15 -21
  143. package/dist/components/composites/settings/settings-layout.js.map +1 -1
  144. package/dist/components/composites/settings/settings-navigation.d.ts +1 -1
  145. package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
  146. package/dist/components/composites/settings/settings-navigation.js +96 -72
  147. package/dist/components/composites/settings/settings-navigation.js.map +1 -1
  148. package/dist/components/composites/settings/settings.d.ts +1 -1
  149. package/dist/components/composites/settings/settings.d.ts.map +1 -1
  150. package/dist/components/composites/settings/settings.js +154 -136
  151. package/dist/components/composites/settings/settings.js.map +1 -1
  152. package/dist/components/composites/sources/sources.d.ts +1 -1
  153. package/dist/components/composites/sources/sources.d.ts.map +1 -1
  154. package/dist/components/composites/sources/sources.js +155 -144
  155. package/dist/components/composites/sources/sources.js.map +1 -1
  156. package/dist/components/composites/stack-trace/stack-trace.d.ts +2 -2
  157. package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
  158. package/dist/components/composites/stack-trace/stack-trace.js +386 -371
  159. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  160. package/dist/components/composites/stat/stat.d.ts +1 -1
  161. package/dist/components/composites/stat/stat.d.ts.map +1 -1
  162. package/dist/components/composites/stat/stat.js +132 -116
  163. package/dist/components/composites/stat/stat.js.map +1 -1
  164. package/dist/components/composites/subagent/subagent.d.ts +1 -1
  165. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  166. package/dist/components/composites/subagent/subagent.js +16 -29
  167. package/dist/components/composites/subagent/subagent.js.map +1 -1
  168. package/dist/components/composites/suggestion/suggestion.d.ts +3 -3
  169. package/dist/components/composites/suggestion/suggestion.d.ts.map +1 -1
  170. package/dist/components/composites/suggestion/suggestion.js +42 -43
  171. package/dist/components/composites/suggestion/suggestion.js.map +1 -1
  172. package/dist/components/composites/task/task.d.ts +1 -1
  173. package/dist/components/composites/task/task.d.ts.map +1 -1
  174. package/dist/components/composites/task/task.js +150 -147
  175. package/dist/components/composites/task/task.js.map +1 -1
  176. package/dist/components/composites/terminal/terminal.d.ts +2 -2
  177. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  178. package/dist/components/composites/terminal/terminal.js +328 -286
  179. package/dist/components/composites/terminal/terminal.js.map +1 -1
  180. package/dist/components/composites/test-results/test-results.d.ts +1 -1
  181. package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
  182. package/dist/components/composites/test-results/test-results.js +304 -266
  183. package/dist/components/composites/test-results/test-results.js.map +1 -1
  184. package/dist/components/composites/tool/tool.d.ts +2 -2
  185. package/dist/components/composites/tool/tool.d.ts.map +1 -1
  186. package/dist/components/composites/tool/tool.js +68 -68
  187. package/dist/components/composites/tool/tool.js.map +1 -1
  188. package/dist/components/composites/tree/tree.d.ts +6 -5
  189. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  190. package/dist/components/composites/tree/tree.js +234 -215
  191. package/dist/components/composites/tree/tree.js.map +1 -1
  192. package/dist/components/composites/update-dialog/channel-control.d.ts +1 -1
  193. package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
  194. package/dist/components/composites/update-dialog/channel-control.js +50 -46
  195. package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
  196. package/dist/components/composites/update-dialog/update-dialog.d.ts +2 -1
  197. package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
  198. package/dist/components/composites/update-dialog/update-dialog.js +353 -282
  199. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  200. package/dist/components/composites/workspace-mark/workspace-mark.d.ts +1 -1
  201. package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
  202. package/dist/components/composites/workspace-mark/workspace-mark.js +70 -69
  203. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  204. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts +1 -1
  205. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
  206. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +41 -38
  207. package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
  208. package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts +1 -1
  209. package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
  210. package/dist/components/composites/workspace-switcher/workspace-switcher.js +39 -21
  211. package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
  212. package/dist/components/conversation/atomic/chat-composer.d.ts +1 -1
  213. package/dist/components/conversation/atomic/chat-composer.d.ts.map +1 -1
  214. package/dist/components/conversation/atomic/chat-composer.js +2 -2
  215. package/dist/components/conversation/atomic/chat-composer.js.map +1 -1
  216. package/dist/components/conversation/busy-send-button.d.ts +2 -2
  217. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  218. package/dist/components/conversation/busy-send-button.js +137 -137
  219. package/dist/components/conversation/busy-send-button.js.map +1 -1
  220. package/dist/components/conversation/chat-composer.d.ts +1 -1
  221. package/dist/components/conversation/chat-composer.d.ts.map +1 -1
  222. package/dist/components/conversation/chat-composer.js +5 -5
  223. package/dist/components/conversation/chat-composer.js.map +1 -1
  224. package/dist/components/conversation/composer-core.d.ts +2 -2
  225. package/dist/components/conversation/composer-menu.d.ts +3 -3
  226. package/dist/components/conversation/composer-menu.d.ts.map +1 -1
  227. package/dist/components/conversation/composer-menu.js +23 -23
  228. package/dist/components/conversation/composer-menu.js.map +1 -1
  229. package/dist/components/conversation/conversation-avatar.d.ts +2 -2
  230. package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
  231. package/dist/components/conversation/conversation-avatar.js +28 -32
  232. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  233. package/dist/components/conversation/conversation-pane.d.ts +1 -1
  234. package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
  235. package/dist/components/conversation/conversation-pane.js +65 -59
  236. package/dist/components/conversation/conversation-pane.js.map +1 -1
  237. package/dist/components/conversation/conversation-surface.d.ts +2 -1
  238. package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
  239. package/dist/components/conversation/conversation-surface.js +68 -72
  240. package/dist/components/conversation/conversation-surface.js.map +1 -1
  241. package/dist/components/conversation/internal/chat-composer-shell.d.ts +3 -2
  242. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  243. package/dist/components/conversation/internal/chat-composer-shell.js +267 -264
  244. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  245. package/dist/components/conversation/message-composer.d.ts +2 -1
  246. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  247. package/dist/components/conversation/message-composer.js +82 -98
  248. package/dist/components/conversation/message-composer.js.map +1 -1
  249. package/dist/components/conversation/message-row.d.ts +1 -1
  250. package/dist/components/conversation/message-row.d.ts.map +1 -1
  251. package/dist/components/conversation/message-row.js +317 -316
  252. package/dist/components/conversation/message-row.js.map +1 -1
  253. package/dist/components/conversation/paste-token-editor.d.ts +1 -1
  254. package/dist/components/conversation/paste-token-editor.d.ts.map +1 -1
  255. package/dist/components/conversation/paste-token-editor.js +210 -161
  256. package/dist/components/conversation/paste-token-editor.js.map +1 -1
  257. package/dist/components/conversation/scroll-follow.d.ts +1 -1
  258. package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
  259. package/dist/components/conversation/scroll-follow.js +11 -9
  260. package/dist/components/conversation/scroll-follow.js.map +1 -1
  261. package/dist/components/conversation/thread-panel.d.ts +1 -1
  262. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  263. package/dist/components/conversation/thread-panel.js +124 -116
  264. package/dist/components/conversation/thread-panel.js.map +1 -1
  265. package/dist/components/conversation/transcript-composition.d.ts +3 -2
  266. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  267. package/dist/components/conversation/transcript-composition.js +127 -132
  268. package/dist/components/conversation/transcript-composition.js.map +1 -1
  269. package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
  270. package/dist/components/layout/app-shell/app-shell.d.ts.map +1 -1
  271. package/dist/components/layout/app-shell/app-shell.js +40 -34
  272. package/dist/components/layout/app-shell/app-shell.js.map +1 -1
  273. package/dist/components/layout/app-shell/skip-link.d.ts +2 -2
  274. package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
  275. package/dist/components/layout/app-shell/skip-link.js +22 -25
  276. package/dist/components/layout/app-shell/skip-link.js.map +1 -1
  277. package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts +2 -1
  278. package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts.map +1 -1
  279. package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +70 -40
  280. package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
  281. package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts +2 -1
  282. package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts.map +1 -1
  283. package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +6 -5
  284. package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js.map +1 -1
  285. package/dist/components/layout/floating-preview/floating-preview.d.ts +1 -1
  286. package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
  287. package/dist/components/layout/floating-preview/floating-preview.js +95 -83
  288. package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
  289. package/dist/components/layout/orbit-layout/orbit-layout.d.ts +3 -3
  290. package/dist/components/layout/orbit-layout/orbit-layout.d.ts.map +1 -1
  291. package/dist/components/layout/orbit-layout/orbit-layout.js +29 -38
  292. package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
  293. package/dist/components/layout/page/page.d.ts +1 -1
  294. package/dist/components/layout/page/page.d.ts.map +1 -1
  295. package/dist/components/layout/page/page.js +116 -103
  296. package/dist/components/layout/page/page.js.map +1 -1
  297. package/dist/components/layout/panel/panel.d.ts +11 -11
  298. package/dist/components/layout/panel/panel.d.ts.map +1 -1
  299. package/dist/components/layout/panel/panel.js +98 -82
  300. package/dist/components/layout/panel/panel.js.map +1 -1
  301. package/dist/components/layout/pixel-pane/pixel-pane.d.ts +1 -1
  302. package/dist/components/layout/pixel-pane/pixel-pane.d.ts.map +1 -1
  303. package/dist/components/layout/pixel-pane/pixel-pane.js +15 -15
  304. package/dist/components/layout/pixel-pane/pixel-pane.js.map +1 -1
  305. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts +1 -1
  306. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  307. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +112 -105
  308. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  309. package/dist/components/layout/shell-rail/shell-rail.d.ts +4 -2
  310. package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
  311. package/dist/components/layout/shell-rail/shell-rail.js +32 -35
  312. package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
  313. package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts +2 -2
  314. package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts.map +1 -1
  315. package/dist/components/layout/shell-top-bar/shell-top-bar.js +126 -120
  316. package/dist/components/layout/shell-top-bar/shell-top-bar.js.map +1 -1
  317. package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
  318. package/dist/components/layout/side-rail/side-rail-context.d.ts.map +1 -1
  319. package/dist/components/layout/side-rail/side-rail-context.js +1 -1
  320. package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
  321. package/dist/components/layout/side-rail/side-rail.d.ts +8 -2
  322. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  323. package/dist/components/layout/side-rail/side-rail.js +155 -138
  324. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  325. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts +1 -1
  326. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts.map +1 -1
  327. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -1
  328. package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js.map +1 -1
  329. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts +8 -2
  330. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  331. package/dist/components/layout/sidebar-nav/sidebar-nav.js +231 -224
  332. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  333. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts +2 -1
  334. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
  335. package/dist/components/layout/split-layout/resize-controller-core-retry.js +64 -63
  336. package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
  337. package/dist/components/layout/split-layout/resize-controller-core.d.ts +2 -1
  338. package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
  339. package/dist/components/layout/split-layout/resize-controller-core.js +64 -63
  340. package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
  341. package/dist/components/layout/split-layout/split-layout.d.ts +2 -1
  342. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  343. package/dist/components/layout/split-layout/split-layout.js +330 -275
  344. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  345. package/dist/components/layout/status-bar/status-bar.d.ts +4 -4
  346. package/dist/components/layout/status-bar/status-bar.d.ts.map +1 -1
  347. package/dist/components/layout/status-bar/status-bar.js +42 -33
  348. package/dist/components/layout/status-bar/status-bar.js.map +1 -1
  349. package/dist/components/layout/top-bar/top-bar.d.ts +8 -8
  350. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  351. package/dist/components/layout/top-bar/top-bar.js +96 -98
  352. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  353. package/dist/components/layout/virtual-window/virtual-window.d.ts +1 -1
  354. package/dist/components/layout/virtual-window/virtual-window.d.ts.map +1 -1
  355. package/dist/components/layout/virtual-window/virtual-window.js +29 -34
  356. package/dist/components/layout/virtual-window/virtual-window.js.map +1 -1
  357. package/dist/components/motion/index.d.ts +1 -1
  358. package/dist/components/motion/index.d.ts.map +1 -1
  359. package/dist/components/motion/index.js +1 -1
  360. package/dist/components/motion/motion.d.ts +84 -0
  361. package/dist/components/motion/motion.d.ts.map +1 -0
  362. package/dist/components/motion/motion.js +198 -0
  363. package/dist/components/motion/motion.js.map +1 -0
  364. package/dist/components/motion/presence.d.ts +16 -7
  365. package/dist/components/motion/presence.d.ts.map +1 -1
  366. package/dist/components/motion/presence.js +75 -3
  367. package/dist/components/motion/presence.js.map +1 -1
  368. package/dist/components/theme/appearance-panel.d.ts +2 -2
  369. package/dist/components/theme/appearance-panel.d.ts.map +1 -1
  370. package/dist/components/theme/appearance-panel.js +156 -141
  371. package/dist/components/theme/appearance-panel.js.map +1 -1
  372. package/dist/components/theme/lazy.d.ts +1 -1
  373. package/dist/components/theme/lazy.d.ts.map +1 -1
  374. package/dist/components/theme/lazy.js +3 -2
  375. package/dist/components/theme/lazy.js.map +1 -1
  376. package/dist/components/theme/theme-context.d.ts +1 -1
  377. package/dist/components/theme/theme-context.d.ts.map +1 -1
  378. package/dist/components/theme/theme-context.js +2 -2
  379. package/dist/components/theme/theme-context.js.map +1 -1
  380. package/dist/components/theme/theme-mode-toggle.d.ts +2 -2
  381. package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
  382. package/dist/components/theme/theme-mode-toggle.js +22 -17
  383. package/dist/components/theme/theme-mode-toggle.js.map +1 -1
  384. package/dist/components/theme/theme-picker.d.ts +4 -4
  385. package/dist/components/theme/theme-picker.d.ts.map +1 -1
  386. package/dist/components/theme/theme-picker.js +145 -133
  387. package/dist/components/theme/theme-picker.js.map +1 -1
  388. package/dist/components/theme/theme-provider-value.d.ts +1 -1
  389. package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
  390. package/dist/components/theme/theme-provider-value.js +48 -57
  391. package/dist/components/theme/theme-provider-value.js.map +1 -1
  392. package/dist/components/theme/theme-provider.d.ts +1 -1
  393. package/dist/components/theme/theme-provider.d.ts.map +1 -1
  394. package/dist/components/theme/theme-provider.js +1 -1
  395. package/dist/components/theme/theme-provider.js.map +1 -1
  396. package/dist/components/theme/theme-toggle.d.ts +2 -2
  397. package/dist/components/theme/theme-toggle.d.ts.map +1 -1
  398. package/dist/components/theme/theme-toggle.js +19 -12
  399. package/dist/components/theme/theme-toggle.js.map +1 -1
  400. package/dist/components/ui/accordion/accordion.d.ts +25 -12
  401. package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
  402. package/dist/components/ui/accordion/accordion.js +42 -38
  403. package/dist/components/ui/accordion/accordion.js.map +1 -1
  404. package/dist/components/ui/alert/alert.d.ts +1 -1
  405. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  406. package/dist/components/ui/alert/alert.js +67 -53
  407. package/dist/components/ui/alert/alert.js.map +1 -1
  408. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +59 -12
  409. package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
  410. package/dist/components/ui/alert-dialog/alert-dialog.js +163 -136
  411. package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
  412. package/dist/components/ui/annotation-surface/annotation-surface.d.ts +1 -1
  413. package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
  414. package/dist/components/ui/annotation-surface/annotation-surface.js +80 -91
  415. package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
  416. package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +1 -1
  417. package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts.map +1 -1
  418. package/dist/components/ui/aspect-ratio/aspect-ratio.js +19 -22
  419. package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
  420. package/dist/components/ui/attachment/attachment.d.ts +1 -1
  421. package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
  422. package/dist/components/ui/attachment/attachment.js +202 -198
  423. package/dist/components/ui/attachment/attachment.js.map +1 -1
  424. package/dist/components/ui/avatar/avatar.d.ts +4 -4
  425. package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
  426. package/dist/components/ui/avatar/avatar.js +61 -52
  427. package/dist/components/ui/avatar/avatar.js.map +1 -1
  428. package/dist/components/ui/badge/badge.d.ts +10 -3
  429. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  430. package/dist/components/ui/badge/badge.js +22 -28
  431. package/dist/components/ui/badge/badge.js.map +1 -1
  432. package/dist/components/ui/board/board.d.ts +1 -1
  433. package/dist/components/ui/board/board.d.ts.map +1 -1
  434. package/dist/components/ui/board/board.js +259 -236
  435. package/dist/components/ui/board/board.js.map +1 -1
  436. package/dist/components/ui/breadcrumb/breadcrumb.d.ts +8 -8
  437. package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
  438. package/dist/components/ui/breadcrumb/breadcrumb.js +90 -75
  439. package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
  440. package/dist/components/ui/bubble/bubble.d.ts +1 -1
  441. package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
  442. package/dist/components/ui/bubble/bubble.js +47 -45
  443. package/dist/components/ui/bubble/bubble.js.map +1 -1
  444. package/dist/components/ui/button/button.d.ts +18 -3
  445. package/dist/components/ui/button/button.d.ts.map +1 -1
  446. package/dist/components/ui/button/button.js +34 -25
  447. package/dist/components/ui/button/button.js.map +1 -1
  448. package/dist/components/ui/button-group/button-group.d.ts +4 -4
  449. package/dist/components/ui/button-group/button-group.d.ts.map +1 -1
  450. package/dist/components/ui/button-group/button-group.js +32 -32
  451. package/dist/components/ui/button-group/button-group.js.map +1 -1
  452. package/dist/components/ui/calendar/calendar.d.ts +93 -39
  453. package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
  454. package/dist/components/ui/calendar/calendar.js +287 -193
  455. package/dist/components/ui/calendar/calendar.js.map +1 -1
  456. package/dist/components/ui/callout/callout.d.ts +3 -3
  457. package/dist/components/ui/callout/callout.d.ts.map +1 -1
  458. package/dist/components/ui/callout/callout.js +30 -33
  459. package/dist/components/ui/callout/callout.js.map +1 -1
  460. package/dist/components/ui/card/card.d.ts +8 -8
  461. package/dist/components/ui/card/card.d.ts.map +1 -1
  462. package/dist/components/ui/card/card.js +66 -58
  463. package/dist/components/ui/card/card.js.map +1 -1
  464. package/dist/components/ui/carousel/carousel.d.ts +8 -2
  465. package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
  466. package/dist/components/ui/carousel/carousel.js +115 -105
  467. package/dist/components/ui/carousel/carousel.js.map +1 -1
  468. package/dist/components/ui/chart/chart.d.ts +7 -8
  469. package/dist/components/ui/chart/chart.d.ts.map +1 -1
  470. package/dist/components/ui/chart/chart.js +311 -245
  471. package/dist/components/ui/chart/chart.js.map +1 -1
  472. package/dist/components/ui/checkbox/checkbox.d.ts +47 -23
  473. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  474. package/dist/components/ui/checkbox/checkbox.js +312 -356
  475. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  476. package/dist/components/ui/code-block/code-block.d.ts +1 -1
  477. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  478. package/dist/components/ui/code-block/code-block.js +263 -253
  479. package/dist/components/ui/code-block/code-block.js.map +1 -1
  480. package/dist/components/ui/collapsible/collapsible.d.ts +20 -8
  481. package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
  482. package/dist/components/ui/collapsible/collapsible.js +24 -27
  483. package/dist/components/ui/collapsible/collapsible.js.map +1 -1
  484. package/dist/components/ui/combobox/combobox.d.ts +97 -13
  485. package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
  486. package/dist/components/ui/combobox/combobox.js +302 -97
  487. package/dist/components/ui/combobox/combobox.js.map +1 -1
  488. package/dist/components/ui/combobox/value-combobox.d.ts +1 -1
  489. package/dist/components/ui/combobox/value-combobox.d.ts.map +1 -1
  490. package/dist/components/ui/combobox/value-combobox.js +4 -7
  491. package/dist/components/ui/combobox/value-combobox.js.map +1 -1
  492. package/dist/components/ui/command/command.d.ts +100 -36
  493. package/dist/components/ui/command/command.d.ts.map +1 -1
  494. package/dist/components/ui/command/command.js +377 -169
  495. package/dist/components/ui/command/command.js.map +1 -1
  496. package/dist/components/ui/context-menu/context-menu.d.ts +24 -12
  497. package/dist/components/ui/context-menu/context-menu.d.ts.map +1 -1
  498. package/dist/components/ui/context-menu/context-menu.js +45 -14
  499. package/dist/components/ui/context-menu/context-menu.js.map +1 -1
  500. package/dist/components/ui/detail-panel/detail-panel.d.ts +1 -1
  501. package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
  502. package/dist/components/ui/detail-panel/detail-panel.js +110 -102
  503. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  504. package/dist/components/ui/dialog/dialog-layer.d.ts +98 -28
  505. package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
  506. package/dist/components/ui/dialog/dialog-layer.js +257 -151
  507. package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
  508. package/dist/components/ui/dialog/dialog.d.ts +55 -14
  509. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  510. package/dist/components/ui/dialog/dialog.js +201 -118
  511. package/dist/components/ui/dialog/dialog.js.map +1 -1
  512. package/dist/components/ui/diff-block/diff-block.d.ts +1 -1
  513. package/dist/components/ui/diff-block/diff-block.d.ts.map +1 -1
  514. package/dist/components/ui/diff-block/diff-block.js +111 -86
  515. package/dist/components/ui/diff-block/diff-block.js.map +1 -1
  516. package/dist/components/ui/drawer/drawer.d.ts +53 -19
  517. package/dist/components/ui/drawer/drawer.d.ts.map +1 -1
  518. package/dist/components/ui/drawer/drawer.js +108 -83
  519. package/dist/components/ui/drawer/drawer.js.map +1 -1
  520. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +60 -47
  521. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  522. package/dist/components/ui/dropdown-menu/dropdown-menu.js +73 -188
  523. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  524. package/dist/components/ui/dropdown-menu/menu-parts.d.ts +219 -18
  525. package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
  526. package/dist/components/ui/dropdown-menu/menu-parts.js +556 -150
  527. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  528. package/dist/components/ui/empty/empty-state.d.ts +1 -1
  529. package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
  530. package/dist/components/ui/empty/empty-state.js +16 -27
  531. package/dist/components/ui/empty/empty-state.js.map +1 -1
  532. package/dist/components/ui/empty/empty.d.ts +1 -1
  533. package/dist/components/ui/empty/empty.d.ts.map +1 -1
  534. package/dist/components/ui/empty/empty.js +57 -50
  535. package/dist/components/ui/empty/empty.js.map +1 -1
  536. package/dist/components/ui/entity-icon/entity-icon.d.ts +2 -1
  537. package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
  538. package/dist/components/ui/entity-icon/entity-icon.js +71 -72
  539. package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
  540. package/dist/components/ui/field/field.d.ts +53 -14
  541. package/dist/components/ui/field/field.d.ts.map +1 -1
  542. package/dist/components/ui/field/field.js +175 -110
  543. package/dist/components/ui/field/field.js.map +1 -1
  544. package/dist/components/ui/field/number-field.d.ts +1 -1
  545. package/dist/components/ui/field/number-field.d.ts.map +1 -1
  546. package/dist/components/ui/field/number-field.js +14 -10
  547. package/dist/components/ui/field/number-field.js.map +1 -1
  548. package/dist/components/ui/hover-card/hover-card.d.ts +19 -4
  549. package/dist/components/ui/hover-card/hover-card.d.ts.map +1 -1
  550. package/dist/components/ui/hover-card/hover-card.js +80 -17
  551. package/dist/components/ui/hover-card/hover-card.js.map +1 -1
  552. package/dist/components/ui/input/input-control.d.ts +4 -3
  553. package/dist/components/ui/input/input-control.d.ts.map +1 -1
  554. package/dist/components/ui/input/input-control.js +16 -20
  555. package/dist/components/ui/input/input-control.js.map +1 -1
  556. package/dist/components/ui/input/input.d.ts +2 -2
  557. package/dist/components/ui/input/input.d.ts.map +1 -1
  558. package/dist/components/ui/input/input.js +42 -47
  559. package/dist/components/ui/input/input.js.map +1 -1
  560. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  561. package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
  562. package/dist/components/ui/input-group/input-group.js +119 -132
  563. package/dist/components/ui/input-group/input-group.js.map +1 -1
  564. package/dist/components/ui/input-group/secret-input-group.d.ts +1 -1
  565. package/dist/components/ui/input-group/secret-input-group.d.ts.map +1 -1
  566. package/dist/components/ui/input-group/secret-input-group.js +11 -17
  567. package/dist/components/ui/input-group/secret-input-group.js.map +1 -1
  568. package/dist/components/ui/input-otp/input-otp.d.ts +23 -9
  569. package/dist/components/ui/input-otp/input-otp.d.ts.map +1 -1
  570. package/dist/components/ui/input-otp/input-otp.js +60 -67
  571. package/dist/components/ui/input-otp/input-otp.js.map +1 -1
  572. package/dist/components/ui/item/item.d.ts +1 -1
  573. package/dist/components/ui/item/item.d.ts.map +1 -1
  574. package/dist/components/ui/item/item.js +105 -101
  575. package/dist/components/ui/item/item.js.map +1 -1
  576. package/dist/components/ui/kbd/kbd.d.ts +4 -4
  577. package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
  578. package/dist/components/ui/kbd/kbd.js +25 -24
  579. package/dist/components/ui/kbd/kbd.js.map +1 -1
  580. package/dist/components/ui/label/label.d.ts +5 -5
  581. package/dist/components/ui/label/label.d.ts.map +1 -1
  582. package/dist/components/ui/label/label.js +15 -13
  583. package/dist/components/ui/label/label.js.map +1 -1
  584. package/dist/components/ui/marker/marker.d.ts +1 -1
  585. package/dist/components/ui/marker/marker.d.ts.map +1 -1
  586. package/dist/components/ui/marker/marker.js +72 -74
  587. package/dist/components/ui/marker/marker.js.map +1 -1
  588. package/dist/components/ui/menubar/menubar.d.ts +37 -23
  589. package/dist/components/ui/menubar/menubar.d.ts.map +1 -1
  590. package/dist/components/ui/menubar/menubar.js +76 -39
  591. package/dist/components/ui/menubar/menubar.js.map +1 -1
  592. package/dist/components/ui/message/message.d.ts +1 -1
  593. package/dist/components/ui/message/message.d.ts.map +1 -1
  594. package/dist/components/ui/message/message.js +281 -250
  595. package/dist/components/ui/message/message.js.map +1 -1
  596. package/dist/components/ui/modal-dialog/modal-dialog.d.ts +18 -17
  597. package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
  598. package/dist/components/ui/modal-dialog/modal-dialog.js +95 -106
  599. package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
  600. package/dist/components/ui/native-select/native-select.d.ts +2 -2
  601. package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
  602. package/dist/components/ui/native-select/native-select.js +93 -93
  603. package/dist/components/ui/native-select/native-select.js.map +1 -1
  604. package/dist/components/ui/navigation-menu/navigation-menu.d.ts +45 -44
  605. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  606. package/dist/components/ui/navigation-menu/navigation-menu.js +215 -96
  607. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  608. package/dist/components/ui/pagination/pagination.d.ts +36 -16
  609. package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
  610. package/dist/components/ui/pagination/pagination.js +86 -68
  611. package/dist/components/ui/pagination/pagination.js.map +1 -1
  612. package/dist/components/ui/popover/popover.d.ts +51 -10
  613. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  614. package/dist/components/ui/popover/popover.js +204 -37
  615. package/dist/components/ui/popover/popover.js.map +1 -1
  616. package/dist/components/ui/progress/progress.d.ts +23 -5
  617. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  618. package/dist/components/ui/progress/progress.js +52 -32
  619. package/dist/components/ui/progress/progress.js.map +1 -1
  620. package/dist/components/ui/questionnaire/questionnaire.d.ts +1 -1
  621. package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
  622. package/dist/components/ui/questionnaire/questionnaire.js +351 -338
  623. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  624. package/dist/components/ui/radio-group/radio-group.d.ts +27 -6
  625. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  626. package/dist/components/ui/radio-group/radio-group.js +202 -145
  627. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  628. package/dist/components/ui/resizable/index.d.ts +1 -1
  629. package/dist/components/ui/resizable/index.d.ts.map +1 -1
  630. package/dist/components/ui/resizable/resizable.d.ts +55 -9
  631. package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
  632. package/dist/components/ui/resizable/resizable.js +104 -81
  633. package/dist/components/ui/resizable/resizable.js.map +1 -1
  634. package/dist/components/ui/scroll-area/scroll-area.d.ts +2 -2
  635. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
  636. package/dist/components/ui/scroll-area/scroll-area.js +22 -28
  637. package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
  638. package/dist/components/ui/select/select.d.ts +104 -24
  639. package/dist/components/ui/select/select.d.ts.map +1 -1
  640. package/dist/components/ui/select/select.js +304 -111
  641. package/dist/components/ui/select/select.js.map +1 -1
  642. package/dist/components/ui/separator/separator.d.ts +13 -3
  643. package/dist/components/ui/separator/separator.d.ts.map +1 -1
  644. package/dist/components/ui/separator/separator.js +11 -9
  645. package/dist/components/ui/separator/separator.js.map +1 -1
  646. package/dist/components/ui/sheet/index.js +3 -1
  647. package/dist/components/ui/sheet/sheet.d.ts +34 -9
  648. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  649. package/dist/components/ui/sheet/sheet.js +144 -106
  650. package/dist/components/ui/sheet/sheet.js.map +1 -1
  651. package/dist/components/ui/skeleton/skeleton.d.ts +2 -2
  652. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  653. package/dist/components/ui/skeleton/skeleton.js +13 -10
  654. package/dist/components/ui/skeleton/skeleton.js.map +1 -1
  655. package/dist/components/ui/slider/slider.d.ts +27 -8
  656. package/dist/components/ui/slider/slider.d.ts.map +1 -1
  657. package/dist/components/ui/slider/slider.js +74 -60
  658. package/dist/components/ui/slider/slider.js.map +1 -1
  659. package/dist/components/ui/spinner/spinner.d.ts +2 -2
  660. package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
  661. package/dist/components/ui/spinner/spinner.js +23 -18
  662. package/dist/components/ui/spinner/spinner.js.map +1 -1
  663. package/dist/components/ui/status-chip/status-chip.d.ts +1 -1
  664. package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
  665. package/dist/components/ui/status-chip/status-chip.js +69 -55
  666. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  667. package/dist/components/ui/switch/switch.d.ts +31 -15
  668. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  669. package/dist/components/ui/switch/switch.js +275 -325
  670. package/dist/components/ui/switch/switch.js.map +1 -1
  671. package/dist/components/ui/table/table.d.ts +10 -10
  672. package/dist/components/ui/table/table.d.ts.map +1 -1
  673. package/dist/components/ui/table/table.js +96 -79
  674. package/dist/components/ui/table/table.js.map +1 -1
  675. package/dist/components/ui/tabs/tabs.d.ts +32 -8
  676. package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
  677. package/dist/components/ui/tabs/tabs.js +80 -63
  678. package/dist/components/ui/tabs/tabs.js.map +1 -1
  679. package/dist/components/ui/text-link/text-link.d.ts +2 -2
  680. package/dist/components/ui/text-link/text-link.d.ts.map +1 -1
  681. package/dist/components/ui/text-link/text-link.js +16 -16
  682. package/dist/components/ui/text-link/text-link.js.map +1 -1
  683. package/dist/components/ui/textarea/textarea.d.ts +3 -2
  684. package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
  685. package/dist/components/ui/textarea/textarea.js +39 -49
  686. package/dist/components/ui/textarea/textarea.js.map +1 -1
  687. package/dist/components/ui/toast/toast.d.ts +30 -8
  688. package/dist/components/ui/toast/toast.d.ts.map +1 -1
  689. package/dist/components/ui/toast/toast.js +188 -86
  690. package/dist/components/ui/toast/toast.js.map +1 -1
  691. package/dist/components/ui/toggle/toggle.d.ts +9 -5
  692. package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
  693. package/dist/components/ui/toggle/toggle.js +18 -17
  694. package/dist/components/ui/toggle/toggle.js.map +1 -1
  695. package/dist/components/ui/toggle-group/toggle-group.d.ts +27 -11
  696. package/dist/components/ui/toggle-group/toggle-group.d.ts.map +1 -1
  697. package/dist/components/ui/toggle-group/toggle-group.js +30 -32
  698. package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
  699. package/dist/components/ui/tooltip/deferred-tooltip.d.ts +8 -6
  700. package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
  701. package/dist/components/ui/tooltip/deferred-tooltip.js +33 -16
  702. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
  703. package/dist/components/ui/tooltip/lazy-tooltip.d.ts +2 -2
  704. package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -1
  705. package/dist/components/ui/tooltip/lazy-tooltip.js +27 -28
  706. package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -1
  707. package/dist/components/ui/tooltip/tooltip.d.ts +142 -16
  708. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  709. package/dist/components/ui/tooltip/tooltip.js +255 -254
  710. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  711. package/dist/components/ui/trace/trace.d.ts +1 -1
  712. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  713. package/dist/components/ui/trace/trace.js +245 -250
  714. package/dist/components/ui/trace/trace.js.map +1 -1
  715. package/dist/components/ui/typography/typography.d.ts +11 -4
  716. package/dist/components/ui/typography/typography.d.ts.map +1 -1
  717. package/dist/components/ui/typography/typography.js +8 -19
  718. package/dist/components/ui/typography/typography.js.map +1 -1
  719. package/dist/index.js +7 -7
  720. package/dist/lib/async-action.d.ts.map +1 -1
  721. package/dist/lib/async-action.js +1 -1
  722. package/dist/lib/async-action.js.map +1 -1
  723. package/dist/lib/create-poll.d.ts.map +1 -1
  724. package/dist/lib/create-poll.js +11 -10
  725. package/dist/lib/create-poll.js.map +1 -1
  726. package/dist/lib/events.d.ts +1 -1
  727. package/dist/lib/events.d.ts.map +1 -1
  728. package/dist/lib/events.js.map +1 -1
  729. package/dist/lib/fast-icon.d.ts +2 -2
  730. package/dist/lib/fast-icon.d.ts.map +1 -1
  731. package/dist/lib/fast-icon.js +8 -7
  732. package/dist/lib/fast-icon.js.map +1 -1
  733. package/dist/lib/form-field.d.ts +12 -10
  734. package/dist/lib/form-field.d.ts.map +1 -1
  735. package/dist/lib/form-field.js +12 -8
  736. package/dist/lib/form-field.js.map +1 -1
  737. package/dist/lib/keyed-rows.d.ts.map +1 -1
  738. package/dist/lib/keyed-rows.js +4 -1
  739. package/dist/lib/keyed-rows.js.map +1 -1
  740. package/dist/lib/overlay.d.ts +24 -5
  741. package/dist/lib/overlay.d.ts.map +1 -1
  742. package/dist/lib/overlay.js +41 -6
  743. package/dist/lib/overlay.js.map +1 -1
  744. package/dist/lib/refs.d.ts +13 -0
  745. package/dist/lib/refs.d.ts.map +1 -0
  746. package/dist/lib/refs.js +22 -0
  747. package/dist/lib/refs.js.map +1 -0
  748. package/dist/lib/resize-separator.d.ts +1 -1
  749. package/dist/lib/resize-separator.d.ts.map +1 -1
  750. package/dist/lib/resize-separator.js +1 -1
  751. package/dist/lib/resize-separator.js.map +1 -1
  752. package/dist/lib/slotted.d.ts +14 -0
  753. package/dist/lib/slotted.d.ts.map +1 -0
  754. package/dist/lib/slotted.js +19 -0
  755. package/dist/lib/slotted.js.map +1 -0
  756. package/dist/lint/index.d.ts.map +1 -1
  757. package/dist/lint.js +11 -4
  758. package/dist/lint.js.map +1 -1
  759. package/dist/r/about-dialog.json +1 -1
  760. package/dist/r/accent-picker.json +2 -1
  761. package/dist/r/accordion.json +3 -2
  762. package/dist/r/account-menu.json +2 -1
  763. package/dist/r/action-button.json +1 -1
  764. package/dist/r/alert-dialog.json +3 -1
  765. package/dist/r/alert.json +2 -1
  766. package/dist/r/annotation-surface.json +3 -1
  767. package/dist/r/app-shell.json +3 -1
  768. package/dist/r/appearance-editor.json +3 -2
  769. package/dist/r/aspect-ratio.json +3 -1
  770. package/dist/r/attachment.json +2 -1
  771. package/dist/r/avatar.json +3 -1
  772. package/dist/r/badge.json +1 -1
  773. package/dist/r/board.json +3 -1
  774. package/dist/r/breadcrumb.json +2 -1
  775. package/dist/r/bubble.json +3 -1
  776. package/dist/r/button-group.json +3 -1
  777. package/dist/r/button.json +1 -1
  778. package/dist/r/calendar.json +3 -2
  779. package/dist/r/callout.json +3 -1
  780. package/dist/r/card.json +3 -1
  781. package/dist/r/carousel.json +3 -3
  782. package/dist/r/catalog-browser.json +3 -2
  783. package/dist/r/chain-of-thought.json +2 -1
  784. package/dist/r/chart.json +2 -2
  785. package/dist/r/chat.json +2 -1
  786. package/dist/r/checkbox.json +2 -2
  787. package/dist/r/checkpoint.json +2 -1
  788. package/dist/r/code-block.json +2 -1
  789. package/dist/r/collapsible.json +2 -1
  790. package/dist/r/combobox.json +3 -2
  791. package/dist/r/command.json +4 -3
  792. package/dist/r/confirmation.json +2 -1
  793. package/dist/r/context-menu.json +3 -3
  794. package/dist/r/context.json +2 -1
  795. package/dist/r/contextual-sidebar.json +3 -1
  796. package/dist/r/conversation.json +3 -2
  797. package/dist/r/detail-panel.json +2 -1
  798. package/dist/r/dialog.json +3 -2
  799. package/dist/r/diff-block.json +3 -1
  800. package/dist/r/drawer.json +3 -1
  801. package/dist/r/dropdown-menu.json +3 -2
  802. package/dist/r/empty.json +2 -1
  803. package/dist/r/entity-icon.json +3 -1
  804. package/dist/r/field.json +2 -1
  805. package/dist/r/file-tree.json +2 -1
  806. package/dist/r/floating-preview.json +2 -1
  807. package/dist/r/help-center.json +1 -1
  808. package/dist/r/hover-card.json +3 -1
  809. package/dist/r/icon-picker.json +2 -1
  810. package/dist/r/inline-citation.json +1 -1
  811. package/dist/r/input-group.json +3 -1
  812. package/dist/r/input-otp.json +2 -1
  813. package/dist/r/input.json +4 -1
  814. package/dist/r/item.json +3 -1
  815. package/dist/r/kbd.json +3 -1
  816. package/dist/r/label.json +3 -1
  817. package/dist/r/lib.json +10 -0
  818. package/dist/r/list-row.json +1 -1
  819. package/dist/r/marker.json +3 -1
  820. package/dist/r/menubar.json +2 -1
  821. package/dist/r/message-scroller.json +2 -1
  822. package/dist/r/message.json +2 -1
  823. package/dist/r/modal-dialog.json +3 -1
  824. package/dist/r/model-selector.json +2 -1
  825. package/dist/r/motion.json +6 -1
  826. package/dist/r/native-select.json +2 -1
  827. package/dist/r/navigation-menu.json +3 -2
  828. package/dist/r/orbit-layout.json +3 -1
  829. package/dist/r/page.json +3 -1
  830. package/dist/r/pagination.json +3 -2
  831. package/dist/r/panel.json +3 -1
  832. package/dist/r/pixel-pane.json +3 -1
  833. package/dist/r/pixel-resize-handle.json +1 -1
  834. package/dist/r/plan.json +2 -1
  835. package/dist/r/popover.json +5 -1
  836. package/dist/r/progress.json +2 -1
  837. package/dist/r/prompt-input.json +2 -1
  838. package/dist/r/questionnaire.json +2 -1
  839. package/dist/r/queue.json +2 -1
  840. package/dist/r/radio-group.json +3 -2
  841. package/dist/r/reasoning.json +2 -1
  842. package/dist/r/registry.json +315 -151
  843. package/dist/r/resizable.json +3 -2
  844. package/dist/r/scene-controls.json +2 -1
  845. package/dist/r/scroll-area.json +3 -1
  846. package/dist/r/select.json +3 -2
  847. package/dist/r/separator.json +2 -1
  848. package/dist/r/settings.json +2 -2
  849. package/dist/r/sheet.json +4 -2
  850. package/dist/r/shell-rail.json +2 -1
  851. package/dist/r/shell-top-bar.json +3 -1
  852. package/dist/r/side-rail.json +1 -1
  853. package/dist/r/sidebar-nav.json +2 -2
  854. package/dist/r/skeleton.json +3 -1
  855. package/dist/r/slider.json +2 -1
  856. package/dist/r/sources.json +1 -1
  857. package/dist/r/spinner.json +2 -1
  858. package/dist/r/split-layout.json +2 -1
  859. package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +13 -21
  860. package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +17 -20
  861. package/dist/r/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
  862. package/dist/r/src/components/composites/account-menu/account-menu.tsx +27 -19
  863. package/dist/r/src/components/composites/action-button/action-button.tsx +75 -52
  864. package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
  865. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
  866. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
  867. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
  868. package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +1 -1
  869. package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
  870. package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
  871. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
  872. package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
  873. package/dist/r/src/components/composites/catalog-browser/catalog-types.ts +1 -1
  874. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
  875. package/dist/r/src/components/composites/chat/chat.tsx +12 -14
  876. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +22 -27
  877. package/dist/r/src/components/composites/confirmation/confirmation.tsx +20 -22
  878. package/dist/r/src/components/composites/context/context.tsx +10 -4
  879. package/dist/r/src/components/composites/file-tree/file-tree.tsx +23 -24
  880. package/dist/r/src/components/composites/help-center/help-center.tsx +1 -1
  881. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +14 -9
  882. package/dist/r/src/components/composites/icon-picker/shell-icons.ts +1 -1
  883. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +57 -24
  884. package/dist/r/src/components/composites/list-row/list-row-control.tsx +23 -12
  885. package/dist/r/src/components/composites/list-row/list-row.tsx +10 -19
  886. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +55 -34
  887. package/dist/r/src/components/composites/model-selector/model-selector.tsx +42 -47
  888. package/dist/r/src/components/composites/plan/plan.tsx +11 -15
  889. package/dist/r/src/components/composites/prompt-input/prompt-input.tsx +22 -26
  890. package/dist/r/src/components/composites/queue/queue.tsx +18 -20
  891. package/dist/r/src/components/composites/reasoning/reasoning.tsx +19 -23
  892. package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +4 -3
  893. package/dist/r/src/components/composites/settings/settings-layout.tsx +10 -8
  894. package/dist/r/src/components/composites/settings/settings-navigation.tsx +86 -65
  895. package/dist/r/src/components/composites/settings/settings.tsx +19 -13
  896. package/dist/r/src/components/composites/sources/sources.tsx +8 -6
  897. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +9 -15
  898. package/dist/r/src/components/composites/stat/stat.tsx +19 -12
  899. package/dist/r/src/components/composites/subagent/subagent.tsx +8 -5
  900. package/dist/r/src/components/composites/suggestion/suggestion.tsx +12 -22
  901. package/dist/r/src/components/composites/task/task.tsx +12 -24
  902. package/dist/r/src/components/composites/terminal/terminal.tsx +36 -38
  903. package/dist/r/src/components/composites/test-results/test-results.tsx +59 -64
  904. package/dist/r/src/components/composites/tool/tool.tsx +9 -6
  905. package/dist/r/src/components/composites/tree/tree.tsx +88 -52
  906. package/dist/r/src/components/composites/update-dialog/channel-control.tsx +29 -19
  907. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +62 -61
  908. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
  909. package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
  910. package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
  911. package/dist/r/src/components/conversation/busy-send-button.tsx +2 -2
  912. package/dist/r/src/components/conversation/chat-composer.tsx +2 -2
  913. package/dist/r/src/components/conversation/composer-menu.tsx +6 -4
  914. package/dist/r/src/components/conversation/conversation-avatar.tsx +6 -5
  915. package/dist/r/src/components/conversation/conversation-pane.tsx +4 -10
  916. package/dist/r/src/components/conversation/conversation-surface.tsx +12 -8
  917. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
  918. package/dist/r/src/components/conversation/message-composer.tsx +14 -9
  919. package/dist/r/src/components/conversation/message-row.tsx +19 -14
  920. package/dist/r/src/components/conversation/paste-token-editor.tsx +106 -54
  921. package/dist/r/src/components/conversation/scroll-follow.ts +125 -112
  922. package/dist/r/src/components/conversation/thread-panel.tsx +10 -7
  923. package/dist/r/src/components/conversation/transcript-composition.tsx +14 -16
  924. package/dist/r/src/components/layout/app-shell/app-shell.tsx +10 -6
  925. package/dist/r/src/components/layout/app-shell/skip-link.tsx +5 -4
  926. package/dist/r/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
  927. package/dist/r/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
  928. package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +15 -16
  929. package/dist/r/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
  930. package/dist/r/src/components/layout/page/page.tsx +16 -9
  931. package/dist/r/src/components/layout/panel/panel.tsx +22 -12
  932. package/dist/r/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
  933. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
  934. package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +11 -7
  935. package/dist/r/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
  936. package/dist/r/src/components/layout/side-rail/side-rail-context.ts +3 -1
  937. package/dist/r/src/components/layout/side-rail/side-rail.tsx +37 -20
  938. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
  939. package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
  940. package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
  941. package/dist/r/src/components/layout/split-layout/split-layout.tsx +116 -91
  942. package/dist/r/src/components/layout/status-bar/status-bar.tsx +6 -4
  943. package/dist/r/src/components/layout/top-bar/top-bar.tsx +19 -12
  944. package/dist/r/src/components/layout/virtual-window/virtual-window.tsx +4 -10
  945. package/dist/r/src/components/motion/index.ts +7 -1
  946. package/dist/r/src/components/motion/motion.tsx +322 -0
  947. package/dist/r/src/components/motion/presence.tsx +95 -7
  948. package/dist/r/src/components/theme/appearance-panel.tsx +11 -9
  949. package/dist/r/src/components/theme/lazy.ts +3 -2
  950. package/dist/r/src/components/theme/theme-context.ts +6 -4
  951. package/dist/r/src/components/theme/theme-mode-toggle.tsx +5 -4
  952. package/dist/r/src/components/theme/theme-picker.tsx +9 -6
  953. package/dist/r/src/components/theme/theme-provider-value.ts +117 -97
  954. package/dist/r/src/components/theme/theme-toggle.tsx +5 -4
  955. package/dist/r/src/components/ui/accordion/accordion.tsx +71 -35
  956. package/dist/r/src/components/ui/alert/alert.tsx +11 -7
  957. package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
  958. package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
  959. package/dist/r/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
  960. package/dist/r/src/components/ui/attachment/attachment.tsx +10 -6
  961. package/dist/r/src/components/ui/avatar/avatar.tsx +24 -10
  962. package/dist/r/src/components/ui/badge/badge.tsx +19 -12
  963. package/dist/r/src/components/ui/board/board.tsx +55 -48
  964. package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
  965. package/dist/r/src/components/ui/bubble/bubble.tsx +4 -9
  966. package/dist/r/src/components/ui/button/button.tsx +42 -32
  967. package/dist/r/src/components/ui/button-group/button-group.tsx +8 -5
  968. package/dist/r/src/components/ui/calendar/calendar.tsx +382 -180
  969. package/dist/r/src/components/ui/callout/callout.tsx +6 -4
  970. package/dist/r/src/components/ui/card/card.tsx +16 -9
  971. package/dist/r/src/components/ui/carousel/carousel.tsx +38 -20
  972. package/dist/r/src/components/ui/chart/chart.tsx +149 -93
  973. package/dist/r/src/components/ui/checkbox/checkbox.tsx +228 -221
  974. package/dist/r/src/components/ui/code-block/code-block.tsx +61 -59
  975. package/dist/r/src/components/ui/collapsible/collapsible.tsx +46 -20
  976. package/dist/r/src/components/ui/combobox/combobox.tsx +395 -73
  977. package/dist/r/src/components/ui/combobox/value-combobox.tsx +5 -3
  978. package/dist/r/src/components/ui/command/command.tsx +416 -175
  979. package/dist/r/src/components/ui/context-menu/context-menu.tsx +53 -24
  980. package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +14 -8
  981. package/dist/r/src/components/ui/dialog/dialog-layer.tsx +331 -240
  982. package/dist/r/src/components/ui/dialog/dialog.tsx +225 -95
  983. package/dist/r/src/components/ui/diff-block/diff-block.tsx +4 -9
  984. package/dist/r/src/components/ui/drawer/drawer.tsx +113 -41
  985. package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
  986. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
  987. package/dist/r/src/components/ui/empty/empty-state.tsx +9 -7
  988. package/dist/r/src/components/ui/empty/empty.tsx +14 -8
  989. package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +20 -17
  990. package/dist/r/src/components/ui/field/field.tsx +165 -55
  991. package/dist/r/src/components/ui/field/number-field.tsx +21 -5
  992. package/dist/r/src/components/ui/hover-card/hover-card.tsx +108 -22
  993. package/dist/r/src/components/ui/input/input-control.tsx +6 -4
  994. package/dist/r/src/components/ui/input/input.tsx +7 -5
  995. package/dist/r/src/components/ui/input-group/input-group.tsx +20 -12
  996. package/dist/r/src/components/ui/input-group/secret-input-group.tsx +7 -4
  997. package/dist/r/src/components/ui/input-otp/input-otp.tsx +88 -70
  998. package/dist/r/src/components/ui/item/item.tsx +15 -9
  999. package/dist/r/src/components/ui/kbd/kbd.tsx +8 -5
  1000. package/dist/r/src/components/ui/label/label.tsx +7 -6
  1001. package/dist/r/src/components/ui/marker/marker.tsx +7 -4
  1002. package/dist/r/src/components/ui/menubar/menubar.tsx +101 -49
  1003. package/dist/r/src/components/ui/message/message.tsx +24 -38
  1004. package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
  1005. package/dist/r/src/components/ui/native-select/native-select.tsx +30 -19
  1006. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
  1007. package/dist/r/src/components/ui/pagination/pagination.tsx +153 -88
  1008. package/dist/r/src/components/ui/popover/popover.tsx +252 -49
  1009. package/dist/r/src/components/ui/progress/progress.tsx +64 -22
  1010. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +29 -41
  1011. package/dist/r/src/components/ui/radio-group/radio-group.tsx +159 -54
  1012. package/dist/r/src/components/ui/resizable/index.ts +3 -0
  1013. package/dist/r/src/components/ui/resizable/resizable.tsx +157 -60
  1014. package/dist/r/src/components/ui/scroll-area/scroll-area.tsx +5 -10
  1015. package/dist/r/src/components/ui/select/select.tsx +403 -106
  1016. package/dist/r/src/components/ui/separator/separator.tsx +33 -6
  1017. package/dist/r/src/components/ui/sheet/sheet.tsx +144 -64
  1018. package/dist/r/src/components/ui/skeleton/skeleton.tsx +4 -3
  1019. package/dist/r/src/components/ui/slider/slider.tsx +112 -64
  1020. package/dist/r/src/components/ui/spinner/spinner.tsx +9 -5
  1021. package/dist/r/src/components/ui/status-chip/status-chip.tsx +4 -9
  1022. package/dist/r/src/components/ui/switch/switch.tsx +203 -201
  1023. package/dist/r/src/components/ui/table/table.tsx +20 -11
  1024. package/dist/r/src/components/ui/tabs/tabs.tsx +93 -34
  1025. package/dist/r/src/components/ui/text-link/text-link.tsx +5 -4
  1026. package/dist/r/src/components/ui/textarea/textarea.tsx +8 -5
  1027. package/dist/r/src/components/ui/toast/toast.tsx +192 -83
  1028. package/dist/r/src/components/ui/toggle/toggle.tsx +26 -9
  1029. package/dist/r/src/components/ui/toggle-group/toggle-group.tsx +48 -31
  1030. package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
  1031. package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
  1032. package/dist/r/src/components/ui/tooltip/tooltip.tsx +452 -362
  1033. package/dist/r/src/components/ui/trace/trace.tsx +17 -20
  1034. package/dist/r/src/components/ui/typography/typography.tsx +17 -18
  1035. package/dist/r/src/lib/async-action.ts +3 -1
  1036. package/dist/r/src/lib/create-poll.ts +41 -38
  1037. package/dist/r/src/lib/events.ts +1 -1
  1038. package/dist/r/src/lib/fast-icon.ts +9 -13
  1039. package/dist/r/src/lib/form-field.ts +36 -18
  1040. package/dist/r/src/lib/keyed-rows.ts +4 -0
  1041. package/dist/r/src/lib/overlay.ts +44 -5
  1042. package/dist/r/src/lib/refs.ts +21 -0
  1043. package/dist/r/src/lib/resize-separator.ts +4 -3
  1044. package/dist/r/src/lib/slotted.ts +16 -0
  1045. package/dist/r/src/styles/globals.css +7 -0
  1046. package/dist/r/stack-trace.json +2 -1
  1047. package/dist/r/stat.json +2 -1
  1048. package/dist/r/status-bar.json +3 -1
  1049. package/dist/r/status-chip.json +3 -1
  1050. package/dist/r/subagent.json +2 -1
  1051. package/dist/r/suggestion.json +3 -1
  1052. package/dist/r/switch.json +1 -1
  1053. package/dist/r/table.json +3 -1
  1054. package/dist/r/tabs.json +2 -1
  1055. package/dist/r/task.json +2 -1
  1056. package/dist/r/terminal.json +2 -1
  1057. package/dist/r/test-results.json +2 -1
  1058. package/dist/r/text-link.json +3 -1
  1059. package/dist/r/textarea.json +1 -0
  1060. package/dist/r/theming.json +3 -2
  1061. package/dist/r/toast.json +3 -2
  1062. package/dist/r/toggle-group.json +2 -1
  1063. package/dist/r/toggle.json +2 -1
  1064. package/dist/r/tool.json +2 -1
  1065. package/dist/r/tooltip.json +3 -1
  1066. package/dist/r/top-bar.json +2 -1
  1067. package/dist/r/trace.json +2 -1
  1068. package/dist/r/tree.json +2 -1
  1069. package/dist/r/typography.json +1 -1
  1070. package/dist/r/update-dialog.json +2 -1
  1071. package/dist/r/virtual-window.json +3 -1
  1072. package/dist/r/workspace-mark.json +3 -1
  1073. package/dist/r/workspace-switcher.json +2 -1
  1074. package/dist/vite/tailwind-sources.js +2 -2
  1075. package/dist/vite/tailwind-sources.js.map +1 -1
  1076. package/package.json +14 -31
  1077. package/registry.json +315 -151
  1078. package/src/components/composites/about-dialog/about-dialog.tsx +13 -21
  1079. package/src/components/composites/accent-picker/accent-picker.tsx +17 -20
  1080. package/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
  1081. package/src/components/composites/account-menu/account-menu.tsx +27 -19
  1082. package/src/components/composites/action-button/action-button.tsx +75 -52
  1083. package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
  1084. package/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
  1085. package/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
  1086. package/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
  1087. package/src/components/composites/appearance-editor/appearance-types.ts +1 -1
  1088. package/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
  1089. package/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
  1090. package/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
  1091. package/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
  1092. package/src/components/composites/catalog-browser/catalog-types.ts +1 -1
  1093. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
  1094. package/src/components/composites/chat/chat.tsx +12 -14
  1095. package/src/components/composites/checkpoint/checkpoint.tsx +22 -27
  1096. package/src/components/composites/confirmation/confirmation.tsx +20 -22
  1097. package/src/components/composites/context/context.tsx +10 -4
  1098. package/src/components/composites/file-tree/file-tree.tsx +23 -24
  1099. package/src/components/composites/help-center/help-center.tsx +1 -1
  1100. package/src/components/composites/icon-picker/icon-picker.tsx +14 -9
  1101. package/src/components/composites/icon-picker/shell-icons.ts +1 -1
  1102. package/src/components/composites/inline-citation/inline-citation.tsx +57 -24
  1103. package/src/components/composites/list-row/list-row-control.tsx +23 -12
  1104. package/src/components/composites/list-row/list-row.tsx +10 -19
  1105. package/src/components/composites/message-scroller/message-scroller.tsx +55 -34
  1106. package/src/components/composites/model-selector/model-selector.tsx +42 -47
  1107. package/src/components/composites/plan/plan.tsx +11 -15
  1108. package/src/components/composites/prompt-input/prompt-input.tsx +22 -26
  1109. package/src/components/composites/queue/queue.tsx +18 -20
  1110. package/src/components/composites/reasoning/reasoning.tsx +19 -23
  1111. package/src/components/composites/scene-controls/scene-controls.tsx +4 -3
  1112. package/src/components/composites/settings/settings-layout.tsx +10 -8
  1113. package/src/components/composites/settings/settings-navigation.tsx +86 -65
  1114. package/src/components/composites/settings/settings.tsx +19 -13
  1115. package/src/components/composites/sources/sources.tsx +8 -6
  1116. package/src/components/composites/stack-trace/stack-trace.tsx +9 -15
  1117. package/src/components/composites/stat/stat.tsx +19 -12
  1118. package/src/components/composites/subagent/subagent.tsx +8 -5
  1119. package/src/components/composites/suggestion/suggestion.tsx +12 -22
  1120. package/src/components/composites/task/task.tsx +12 -24
  1121. package/src/components/composites/terminal/terminal.tsx +36 -38
  1122. package/src/components/composites/test-results/test-results.tsx +59 -64
  1123. package/src/components/composites/tool/tool.tsx +9 -6
  1124. package/src/components/composites/tree/tree.tsx +88 -52
  1125. package/src/components/composites/update-dialog/channel-control.tsx +29 -19
  1126. package/src/components/composites/update-dialog/update-dialog.tsx +62 -61
  1127. package/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
  1128. package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
  1129. package/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
  1130. package/src/components/conversation/busy-send-button.tsx +2 -2
  1131. package/src/components/conversation/chat-composer.tsx +2 -2
  1132. package/src/components/conversation/composer-menu.tsx +6 -4
  1133. package/src/components/conversation/conversation-avatar.tsx +6 -5
  1134. package/src/components/conversation/conversation-pane.tsx +4 -10
  1135. package/src/components/conversation/conversation-surface.tsx +12 -8
  1136. package/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
  1137. package/src/components/conversation/message-composer.tsx +14 -9
  1138. package/src/components/conversation/message-row.tsx +19 -14
  1139. package/src/components/conversation/paste-token-editor.tsx +106 -54
  1140. package/src/components/conversation/scroll-follow.ts +125 -112
  1141. package/src/components/conversation/thread-panel.tsx +10 -7
  1142. package/src/components/conversation/transcript-composition.tsx +14 -16
  1143. package/src/components/layout/app-shell/app-shell.tsx +10 -6
  1144. package/src/components/layout/app-shell/skip-link.tsx +5 -4
  1145. package/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
  1146. package/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
  1147. package/src/components/layout/floating-preview/floating-preview.tsx +15 -16
  1148. package/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
  1149. package/src/components/layout/page/page.tsx +16 -9
  1150. package/src/components/layout/panel/panel.tsx +22 -12
  1151. package/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
  1152. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
  1153. package/src/components/layout/shell-rail/shell-rail.tsx +11 -7
  1154. package/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
  1155. package/src/components/layout/side-rail/side-rail-context.ts +3 -1
  1156. package/src/components/layout/side-rail/side-rail.tsx +37 -20
  1157. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
  1158. package/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
  1159. package/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
  1160. package/src/components/layout/split-layout/split-layout.tsx +116 -91
  1161. package/src/components/layout/status-bar/status-bar.tsx +6 -4
  1162. package/src/components/layout/top-bar/top-bar.tsx +19 -12
  1163. package/src/components/layout/virtual-window/virtual-window.tsx +4 -10
  1164. package/src/components/motion/index.ts +7 -1
  1165. package/src/components/motion/motion.tsx +322 -0
  1166. package/src/components/motion/presence.tsx +95 -7
  1167. package/src/components/theme/appearance-panel.tsx +11 -9
  1168. package/src/components/theme/lazy.ts +3 -2
  1169. package/src/components/theme/theme-context.ts +6 -4
  1170. package/src/components/theme/theme-mode-toggle.tsx +5 -4
  1171. package/src/components/theme/theme-picker.tsx +9 -6
  1172. package/src/components/theme/theme-provider-value.ts +117 -97
  1173. package/src/components/theme/theme-toggle.tsx +5 -4
  1174. package/src/components/ui/accordion/accordion.tsx +71 -35
  1175. package/src/components/ui/alert/alert.tsx +11 -7
  1176. package/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
  1177. package/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
  1178. package/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
  1179. package/src/components/ui/attachment/attachment.tsx +10 -6
  1180. package/src/components/ui/avatar/avatar.tsx +24 -10
  1181. package/src/components/ui/badge/badge.tsx +19 -12
  1182. package/src/components/ui/board/board.tsx +55 -48
  1183. package/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
  1184. package/src/components/ui/bubble/bubble.tsx +4 -9
  1185. package/src/components/ui/button/button.tsx +42 -32
  1186. package/src/components/ui/button-group/button-group.tsx +8 -5
  1187. package/src/components/ui/calendar/calendar.tsx +382 -180
  1188. package/src/components/ui/callout/callout.tsx +6 -4
  1189. package/src/components/ui/card/card.tsx +16 -9
  1190. package/src/components/ui/carousel/carousel.tsx +38 -20
  1191. package/src/components/ui/chart/chart.tsx +149 -93
  1192. package/src/components/ui/checkbox/checkbox.tsx +228 -221
  1193. package/src/components/ui/code-block/code-block.tsx +61 -59
  1194. package/src/components/ui/collapsible/collapsible.tsx +46 -20
  1195. package/src/components/ui/combobox/combobox.tsx +395 -73
  1196. package/src/components/ui/combobox/value-combobox.tsx +5 -3
  1197. package/src/components/ui/command/command.tsx +416 -175
  1198. package/src/components/ui/context-menu/context-menu.tsx +53 -24
  1199. package/src/components/ui/detail-panel/detail-panel.tsx +14 -8
  1200. package/src/components/ui/dialog/dialog-layer.tsx +331 -240
  1201. package/src/components/ui/dialog/dialog.tsx +225 -95
  1202. package/src/components/ui/diff-block/diff-block.tsx +4 -9
  1203. package/src/components/ui/drawer/drawer.tsx +113 -41
  1204. package/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
  1205. package/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
  1206. package/src/components/ui/empty/empty-state.tsx +9 -7
  1207. package/src/components/ui/empty/empty.tsx +14 -8
  1208. package/src/components/ui/entity-icon/entity-icon.tsx +20 -17
  1209. package/src/components/ui/field/field.tsx +165 -55
  1210. package/src/components/ui/field/number-field.tsx +21 -5
  1211. package/src/components/ui/hover-card/hover-card.tsx +108 -22
  1212. package/src/components/ui/input/input-control.tsx +6 -4
  1213. package/src/components/ui/input/input.tsx +7 -5
  1214. package/src/components/ui/input-group/input-group.tsx +20 -12
  1215. package/src/components/ui/input-group/secret-input-group.tsx +7 -4
  1216. package/src/components/ui/input-otp/input-otp.tsx +88 -70
  1217. package/src/components/ui/item/item.tsx +15 -9
  1218. package/src/components/ui/kbd/kbd.tsx +8 -5
  1219. package/src/components/ui/label/label.tsx +7 -6
  1220. package/src/components/ui/marker/marker.tsx +7 -4
  1221. package/src/components/ui/menubar/menubar.tsx +101 -49
  1222. package/src/components/ui/message/message.tsx +24 -38
  1223. package/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
  1224. package/src/components/ui/native-select/native-select.tsx +30 -19
  1225. package/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
  1226. package/src/components/ui/pagination/pagination.tsx +153 -88
  1227. package/src/components/ui/popover/popover.tsx +252 -49
  1228. package/src/components/ui/progress/progress.tsx +64 -22
  1229. package/src/components/ui/questionnaire/questionnaire.tsx +29 -41
  1230. package/src/components/ui/radio-group/radio-group.tsx +159 -54
  1231. package/src/components/ui/resizable/index.ts +3 -0
  1232. package/src/components/ui/resizable/resizable.tsx +157 -60
  1233. package/src/components/ui/scroll-area/scroll-area.tsx +5 -10
  1234. package/src/components/ui/select/select.tsx +403 -106
  1235. package/src/components/ui/separator/separator.tsx +33 -6
  1236. package/src/components/ui/sheet/sheet.tsx +144 -64
  1237. package/src/components/ui/skeleton/skeleton.tsx +4 -3
  1238. package/src/components/ui/slider/slider.tsx +112 -64
  1239. package/src/components/ui/spinner/spinner.tsx +9 -5
  1240. package/src/components/ui/status-chip/status-chip.tsx +4 -9
  1241. package/src/components/ui/switch/switch.tsx +203 -201
  1242. package/src/components/ui/table/table.tsx +20 -11
  1243. package/src/components/ui/tabs/tabs.tsx +93 -34
  1244. package/src/components/ui/text-link/text-link.tsx +5 -4
  1245. package/src/components/ui/textarea/textarea.tsx +8 -5
  1246. package/src/components/ui/toast/toast.tsx +192 -83
  1247. package/src/components/ui/toggle/toggle.tsx +26 -9
  1248. package/src/components/ui/toggle-group/toggle-group.tsx +48 -31
  1249. package/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
  1250. package/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
  1251. package/src/components/ui/tooltip/tooltip.tsx +452 -362
  1252. package/src/components/ui/trace/trace.tsx +17 -20
  1253. package/src/components/ui/typography/typography.tsx +17 -18
  1254. package/src/lib/async-action.ts +3 -1
  1255. package/src/lib/create-poll.ts +41 -38
  1256. package/src/lib/events.ts +1 -1
  1257. package/src/lib/fast-icon.ts +9 -13
  1258. package/src/lib/form-field.ts +36 -18
  1259. package/src/lib/keyed-rows.ts +4 -0
  1260. package/src/lib/overlay.ts +44 -5
  1261. package/src/lib/refs.ts +21 -0
  1262. package/src/lib/resize-separator.ts +4 -3
  1263. package/src/lib/slotted.ts +16 -0
  1264. package/src/lint/index.ts +20 -5
  1265. package/src/styles/globals.css +7 -0
  1266. package/src/testing/happy-dom-text.ts +30 -0
  1267. package/src/testing/solid-transform.ts +19 -36
  1268. package/src/vite/tailwind-sources.ts +2 -2
@@ -0,0 +1,198 @@
1
+ import { Dynamic, createComponent, mergeProps } from "@solidjs/web";
2
+ import { createContext, createEffect, omit, onSettled, useContext } from "solid-js";
3
+ // src/components/motion/motion.tsx
4
+ var OPTION_KEYS = [
5
+ "initial",
6
+ "animate",
7
+ "exit",
8
+ "transition",
9
+ "onMotionStart",
10
+ "onMotionComplete"
11
+ ];
12
+ var PresenceContext = createContext(void 0);
13
+ var motionRunners = /* @__PURE__ */ new WeakMap();
14
+ var TRANSFORMS = {
15
+ x: (value) => `translateX(${unit(value, "px")})`,
16
+ y: (value) => `translateY(${unit(value, "px")})`,
17
+ z: (value) => `translateZ(${unit(value, "px")})`,
18
+ scale: (value) => `scale(${value})`,
19
+ scaleX: (value) => `scaleX(${value})`,
20
+ scaleY: (value) => `scaleY(${value})`,
21
+ rotate: (value) => `rotate(${unit(value, "deg")})`,
22
+ rotateX: (value) => `rotateX(${unit(value, "deg")})`,
23
+ rotateY: (value) => `rotateY(${unit(value, "deg")})`,
24
+ rotateZ: (value) => `rotateZ(${unit(value, "deg")})`,
25
+ skewX: (value) => `skewX(${unit(value, "deg")})`,
26
+ skewY: (value) => `skewY(${unit(value, "deg")})`
27
+ };
28
+ function unit(value, suffix) {
29
+ return typeof value === "number" ? `${value}${suffix}` : value;
30
+ }
31
+ /** A target state as Web Animations keyframes: the shorthands folded into one `transform`. */
32
+ function toKeyframes(target) {
33
+ const entries = Object.entries(target).filter(([, value]) => value !== void 0);
34
+ const count = Math.max(1, ...entries.map(([, value]) => Array.isArray(value) ? value.length : 1));
35
+ return Array.from({ length: count }, (_, index) => {
36
+ const frame = {};
37
+ const transforms = [];
38
+ for (const [key, raw] of entries) {
39
+ const list = raw;
40
+ const value = Array.isArray(raw) ? list[Math.min(index, list.length - 1)] : raw;
41
+ const transform = TRANSFORMS[key];
42
+ if (transform) transforms.push(transform(value));
43
+ else frame[key] = value;
44
+ }
45
+ if (transforms.length) frame["transform"] = transforms.join(" ");
46
+ return frame;
47
+ });
48
+ }
49
+ /** The element's current look for the properties `frames` animate, as a starting keyframe. */
50
+ function currentFrame(element, frames) {
51
+ const style = getComputedStyle(element);
52
+ const frame = {};
53
+ for (const key of new Set(frames.flatMap((each) => Object.keys(each)))) {
54
+ if (key === "offset" || key === "easing" || key === "composite") continue;
55
+ frame[key] = style.getPropertyValue(key.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`));
56
+ }
57
+ return frame;
58
+ }
59
+ function prefersReducedMotion() {
60
+ return typeof matchMedia === "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
61
+ }
62
+ function timing(transition) {
63
+ const reduced = prefersReducedMotion();
64
+ const easing = transition?.easing;
65
+ const repeat = transition?.repeat ?? 0;
66
+ return {
67
+ duration: reduced ? 0 : (transition?.duration ?? .3) * 1e3,
68
+ delay: reduced ? 0 : (transition?.delay ?? 0) * 1e3,
69
+ endDelay: reduced ? 0 : (transition?.endDelay ?? 0) * 1e3,
70
+ easing: typeof easing === "string" ? easing : easing ? `cubic-bezier(${easing.join(", ")})` : "ease",
71
+ iterations: Number.isFinite(repeat) ? Math.max(0, repeat) + 1 : 1,
72
+ direction: transition?.direction,
73
+ fill: "both"
74
+ };
75
+ }
76
+ /** Puts an element straight at the last of `frames`, with no animation. */
77
+ function place(element, frames) {
78
+ for (const [key, value] of Object.entries(frames.at(-1) ?? {})) {
79
+ if (key === "offset" || key === "easing" || key === "composite") continue;
80
+ element.style.setProperty(key.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`), String(value));
81
+ }
82
+ }
83
+ /**
84
+ * Holds a finished animation's end state as inline style and drops the animation,
85
+ * so it neither lingers in `getAnimations()` nor overrides a later style change.
86
+ * An element that is not rendered (held off-page by a `Presence`) cannot commit,
87
+ * so its animation keeps filling instead.
88
+ */
89
+ function settle(animation) {
90
+ try {
91
+ animation.commitStyles();
92
+ animation.cancel();
93
+ } catch {}
94
+ }
95
+ function createMotion(tag) {
96
+ return function MotionElement(props) {
97
+ const presence = useContext(PresenceContext);
98
+ const rest = omit(props, ...OPTION_KEYS);
99
+ let element;
100
+ let running;
101
+ /**
102
+ * The options as the last effect run read them. The runners a `Presence`
103
+ * calls, and the animation callbacks, read this rather than the props: they
104
+ * run outside a tracking scope, where a prop read would be a stale one-off.
105
+ */
106
+ let latest;
107
+ /** A `Presence` asked this element to take over before its first run. */
108
+ let pendingFrom;
109
+ /** Plays `frames` from the element's current state, replacing what is running. */
110
+ function play(frames, from, done) {
111
+ const options = latest;
112
+ if (!element || !options || typeof element.animate !== "function") return done?.();
113
+ if (running) settle(running);
114
+ options.onMotionStart?.();
115
+ const animation = element.animate(from ? [from, ...frames] : frames, timing(options.transition));
116
+ running = animation;
117
+ animation.finished.then(() => {
118
+ if (running === animation) running = void 0;
119
+ settle(animation);
120
+ options.onMotionComplete?.();
121
+ done?.();
122
+ }, () => done?.());
123
+ }
124
+ function enter(from) {
125
+ if (!latest) {
126
+ pendingFrom = from;
127
+ return;
128
+ }
129
+ if (!element || !latest.animate) return;
130
+ const frames = toKeyframes(latest.animate);
131
+ if (from) return play(frames, currentFrame(from, frames));
132
+ if (latest.initial === false) return place(element, frames);
133
+ play(frames, latest.initial ? toKeyframes(latest.initial)[0] : void 0);
134
+ }
135
+ function exit(done) {
136
+ if (!element || !latest?.exit) return done();
137
+ const frames = toKeyframes(latest.exit);
138
+ play(frames, currentFrame(element, frames), done);
139
+ }
140
+ const ref = (el) => {
141
+ element = el;
142
+ motionRunners.set(el, {
143
+ enter,
144
+ exit
145
+ });
146
+ };
147
+ createEffect(() => ({
148
+ initial: props.initial,
149
+ animate: props.animate,
150
+ exit: props.exit,
151
+ transition: props.transition,
152
+ onMotionStart: props.onMotionStart,
153
+ onMotionComplete: props.onMotionComplete,
154
+ skipInitial: presence?.skipInitial() ?? false
155
+ }), (next, previous) => {
156
+ latest = next;
157
+ if (!previous) {
158
+ const from = pendingFrom;
159
+ pendingFrom = void 0;
160
+ if (next.skipInitial && !from) {
161
+ if (element && next.animate) place(element, toKeyframes(next.animate));
162
+ return;
163
+ }
164
+ return enter(from);
165
+ }
166
+ if (next.animate && JSON.stringify(next.animate) !== JSON.stringify(previous.animate)) play(toKeyframes(next.animate), void 0);
167
+ });
168
+ onSettled(() => () => {
169
+ if (!presence) running?.cancel();
170
+ });
171
+ return createComponent(Dynamic, mergeProps({
172
+ component: tag,
173
+ ref
174
+ }, rest));
175
+ };
176
+ }
177
+ /**
178
+ * `Motion.div`, `Motion.span`, … — one component per tag, created on first use.
179
+ * `<Motion tag="li">` is the same, for a tag chosen at runtime.
180
+ */
181
+ var Motion = new Proxy(function Motion(props) {
182
+ const rest = omit(props, "tag");
183
+ return createComponent(Dynamic, mergeProps({ get component() {
184
+ return motionFor(props.tag ?? "div");
185
+ } }, rest));
186
+ }, { get(target, key) {
187
+ if (typeof key === "string" && !(key in target)) return motionFor(key);
188
+ return Reflect.get(target, key);
189
+ } });
190
+ var components = /* @__PURE__ */ new Map();
191
+ function motionFor(tag) {
192
+ let component = components.get(tag);
193
+ if (!component) components.set(tag, component = createMotion(tag));
194
+ return component;
195
+ }
196
+ export { Motion, PresenceContext, motionRunners };
197
+
198
+ //# sourceMappingURL=motion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.js","names":["<Dynamic component={tag as ValidComponent} ref={ref} {...(rest as Record<string, unknown>)} />","component={tag as ValidComponent}","<Dynamic component={motionFor(props.tag ?? 'div')} {...rest} />"],"sources":["../../../src/components/motion/motion.tsx"],"sourcesContent":["import { createContext, createEffect, onSettled, omit, useContext } from 'solid-js'\nimport { Dynamic, type JSX, type ValidComponent } from '@solidjs/web'\n\n/**\n * Motion.\n *\n * An element that animates in, between states and out, on the Web Animations API.\n * It replaces `solid-motionone` (no Solid 2 release) with the part of its API the\n * design system uses: `initial`, `animate`, `exit` and `transition`, written the\n * same way (`x`/`y` in pixels, `scale`, `rotate` in degrees, `opacity` and any CSS\n * property, a value or an array of keyframes; durations in seconds).\n *\n * <Motion.div\n * initial={{ opacity: 0, y: -4 }}\n * animate={{ opacity: 1, y: 0 }}\n * exit={{ opacity: 0, y: -4 }}\n * transition={{ duration: 0.2 }}\n * />\n *\n * Every animation is finite. `repeat: Infinity` plays once: an endless animation\n * never settles, so an exit built on one would hold its element in the page for\n * good, and a page waiting for its animations (the finite-animations rule the\n * browser lanes rely on) would wait forever. A looping decoration belongs in CSS.\n * Someone who prefers reduced motion gets every end state at once.\n *\n * An animation runs from where the element is, not from where it was meant to\n * be: an exit started halfway through an entrance leaves from the half-entered\n * state, and an entrance that interrupts an exit (see `Presence`) starts from the\n * exiting element's current look.\n */\n\ntype KeyframeValue = string | number\n/** A target state: transform shorthands and CSS properties, each a value or keyframes. */\nexport type MotionKeyframes = Record<string, KeyframeValue | readonly KeyframeValue[] | undefined>\n\n/** Timing, in seconds as in motionone. */\nexport type MotionTransition = {\n duration?: number\n delay?: number\n endDelay?: number\n /** A CSS easing, or a cubic-bezier as four numbers. */\n easing?: string | readonly [number, number, number, number]\n /** Extra plays after the first. Always finite: `Infinity` plays once. */\n repeat?: number\n direction?: PlaybackDirection\n}\n\nexport type MotionOptions = {\n /** The state it enters from. `false` renders straight at `animate`. */\n initial?: MotionKeyframes | false\n /** The state it animates to, on entry and again whenever this changes. */\n animate?: MotionKeyframes\n /** The state it leaves to. Runs only inside a `Presence`, which keeps it mounted until done. */\n exit?: MotionKeyframes\n transition?: MotionTransition\n onMotionStart?: () => void\n onMotionComplete?: () => void\n}\n\ntype Tag = keyof JSX.IntrinsicElements\nexport type MotionProps<T extends Tag = 'div'> = MotionOptions &\n Omit<JSX.IntrinsicElements[T], keyof MotionOptions>\n\nconst OPTION_KEYS = [\n 'initial',\n 'animate',\n 'exit',\n 'transition',\n 'onMotionStart',\n 'onMotionComplete',\n] as const\n\n/** What a `Presence` tells the motion elements inside it. */\nexport type PresenceContextValue = {\n /**\n * True during the presence's first render when it was given `initial={false}`.\n * Read in a motion element's effect compute, so a reactive `initial` is tracked.\n */\n skipInitial: () => boolean\n}\nexport const PresenceContext = createContext<PresenceContextValue | undefined>(undefined)\n\n/** The runners a `Presence` drives on the element it shows, by element. */\nexport type MotionRunners = {\n /** (Re)starts the entrance, from `from`'s current look when given. */\n enter: (from?: Element) => void\n /** Plays the exit and calls `done` when it has finished, or at once without one. */\n exit: (done: () => void) => void\n}\nexport const motionRunners = new WeakMap<Element, MotionRunners>()\n\nconst TRANSFORMS: Record<string, (value: KeyframeValue) => string> = {\n x: (value) => `translateX(${unit(value, 'px')})`,\n y: (value) => `translateY(${unit(value, 'px')})`,\n z: (value) => `translateZ(${unit(value, 'px')})`,\n scale: (value) => `scale(${value})`,\n scaleX: (value) => `scaleX(${value})`,\n scaleY: (value) => `scaleY(${value})`,\n rotate: (value) => `rotate(${unit(value, 'deg')})`,\n rotateX: (value) => `rotateX(${unit(value, 'deg')})`,\n rotateY: (value) => `rotateY(${unit(value, 'deg')})`,\n rotateZ: (value) => `rotateZ(${unit(value, 'deg')})`,\n skewX: (value) => `skewX(${unit(value, 'deg')})`,\n skewY: (value) => `skewY(${unit(value, 'deg')})`,\n}\n\nfunction unit(value: KeyframeValue, suffix: string): string {\n return typeof value === 'number' ? `${value}${suffix}` : value\n}\n\n/** A target state as Web Animations keyframes: the shorthands folded into one `transform`. */\nfunction toKeyframes(target: MotionKeyframes): Keyframe[] {\n const entries = Object.entries(target).filter(([, value]) => value !== undefined) as [\n string,\n KeyframeValue | readonly KeyframeValue[],\n ][]\n const count = Math.max(\n 1,\n ...entries.map(([, value]) => (Array.isArray(value) ? value.length : 1))\n )\n return Array.from({ length: count }, (_, index) => {\n const frame: Keyframe = {}\n const transforms: string[] = []\n for (const [key, raw] of entries) {\n const list = raw as readonly KeyframeValue[]\n const value = Array.isArray(raw)\n ? list[Math.min(index, list.length - 1)]!\n : (raw as KeyframeValue)\n const transform = TRANSFORMS[key]\n if (transform) transforms.push(transform(value))\n else frame[key] = value\n }\n if (transforms.length) frame['transform'] = transforms.join(' ')\n return frame\n })\n}\n\n/** The element's current look for the properties `frames` animate, as a starting keyframe. */\nfunction currentFrame(element: Element, frames: Keyframe[]): Keyframe {\n const style = getComputedStyle(element)\n const frame: Keyframe = {}\n for (const key of new Set(frames.flatMap((each) => Object.keys(each)))) {\n if (key === 'offset' || key === 'easing' || key === 'composite') continue\n frame[key] = style.getPropertyValue(key.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`))\n }\n return frame\n}\n\nfunction prefersReducedMotion(): boolean {\n return typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches\n}\n\nfunction timing(transition: MotionTransition | undefined): KeyframeAnimationOptions {\n const reduced = prefersReducedMotion()\n const easing = transition?.easing\n const repeat = transition?.repeat ?? 0\n return {\n duration: reduced ? 0 : (transition?.duration ?? 0.3) * 1000,\n delay: reduced ? 0 : (transition?.delay ?? 0) * 1000,\n endDelay: reduced ? 0 : (transition?.endDelay ?? 0) * 1000,\n easing:\n typeof easing === 'string' ? easing : easing ? `cubic-bezier(${easing.join(', ')})` : 'ease',\n iterations: Number.isFinite(repeat) ? Math.max(0, repeat) + 1 : 1,\n direction: transition?.direction,\n fill: 'both',\n }\n}\n\n/** Puts an element straight at the last of `frames`, with no animation. */\nfunction place(element: HTMLElement, frames: Keyframe[]) {\n for (const [key, value] of Object.entries(frames.at(-1) ?? {})) {\n if (key === 'offset' || key === 'easing' || key === 'composite') continue\n element.style.setProperty(\n key.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`),\n String(value)\n )\n }\n}\n\n/**\n * Holds a finished animation's end state as inline style and drops the animation,\n * so it neither lingers in `getAnimations()` nor overrides a later style change.\n * An element that is not rendered (held off-page by a `Presence`) cannot commit,\n * so its animation keeps filling instead.\n */\nfunction settle(animation: Animation) {\n try {\n animation.commitStyles()\n animation.cancel()\n } catch {\n // Not rendered: the fill keeps the end state.\n }\n}\n\nfunction createMotion<T extends Tag>(tag: T) {\n return function MotionElement(props: MotionProps<T>): JSX.Element {\n const presence = useContext(PresenceContext)\n const rest = omit(props as MotionProps<'div'>, ...OPTION_KEYS)\n let element: HTMLElement | undefined\n let running: Animation | undefined\n /**\n * The options as the last effect run read them. The runners a `Presence`\n * calls, and the animation callbacks, read this rather than the props: they\n * run outside a tracking scope, where a prop read would be a stale one-off.\n */\n let latest: MotionOptions | undefined\n /** A `Presence` asked this element to take over before its first run. */\n let pendingFrom: Element | undefined\n\n /** Plays `frames` from the element's current state, replacing what is running. */\n function play(frames: Keyframe[], from: Keyframe | undefined, done?: () => void) {\n const options = latest\n if (!element || !options || typeof element.animate !== 'function') return done?.()\n if (running) settle(running)\n options.onMotionStart?.()\n const animation = element.animate(\n from ? [from, ...frames] : frames,\n timing(options.transition)\n )\n running = animation\n animation.finished.then(\n () => {\n if (running === animation) running = undefined\n settle(animation)\n options.onMotionComplete?.()\n done?.()\n },\n // Cancelled by the next animation, or by a `Presence` taking over: that one reports.\n () => done?.()\n )\n }\n\n function enter(from?: Element) {\n if (!latest) {\n pendingFrom = from\n return\n }\n if (!element || !latest.animate) return\n const frames = toKeyframes(latest.animate)\n if (from) return play(frames, currentFrame(from, frames))\n if (latest.initial === false) return place(element, frames)\n play(frames, latest.initial ? toKeyframes(latest.initial)[0] : undefined)\n }\n\n function exit(done: () => void) {\n if (!element || !latest?.exit) return done()\n const frames = toKeyframes(latest.exit)\n play(frames, currentFrame(element, frames), done)\n }\n\n const ref = (el: HTMLElement) => {\n element = el\n motionRunners.set(el, { enter, exit })\n }\n\n // The first run is the entrance. It applies after the element is placed and in\n // the same flush, so the first frame painted is already `initial`'s; no flash\n // of the resting state. Later runs animate to a changed `animate`.\n createEffect(\n () => ({\n initial: props.initial,\n animate: props.animate,\n exit: props.exit,\n transition: props.transition,\n onMotionStart: props.onMotionStart,\n onMotionComplete: props.onMotionComplete,\n skipInitial: presence?.skipInitial() ?? false,\n }),\n (next, previous) => {\n latest = next\n if (!previous) {\n const from = pendingFrom\n pendingFrom = undefined\n // Shown at rest on a `Presence`'s first render: `animate`'s state, at once.\n if (next.skipInitial && !from) {\n if (element && next.animate) place(element, toKeyframes(next.animate))\n return\n }\n return enter(from)\n }\n if (next.animate && JSON.stringify(next.animate) !== JSON.stringify(previous.animate))\n play(toKeyframes(next.animate), undefined)\n }\n )\n\n // Outside a `Presence` the element leaves with its owner, so its animation goes\n // too. Inside one, the presence keeps the element for its exit and owns it.\n onSettled(() => () => {\n if (!presence) running?.cancel()\n })\n\n return (\n <Dynamic component={tag as ValidComponent} ref={ref} {...(rest as Record<string, unknown>)} />\n )\n }\n}\n\ntype MotionComponents = { [T in Tag]: (props: MotionProps<T>) => JSX.Element }\n\n/**\n * `Motion.div`, `Motion.span`, … — one component per tag, created on first use.\n * `<Motion tag=\"li\">` is the same, for a tag chosen at runtime.\n */\nexport const Motion = new Proxy(\n function Motion(props: MotionProps<'div'> & { tag?: Tag }) {\n const rest = omit(props, 'tag')\n return <Dynamic component={motionFor(props.tag ?? 'div')} {...rest} />\n },\n {\n get(target, key) {\n if (typeof key === 'string' && !(key in target)) return motionFor(key as Tag)\n return Reflect.get(target, key)\n },\n }\n) as ((props: MotionProps<'div'> & { tag?: Tag }) => JSX.Element) & MotionComponents\n\nconst components = new Map<Tag, (props: never) => JSX.Element>()\nfunction motionFor<T extends Tag>(tag: T): (props: MotionProps<T>) => JSX.Element {\n let component = components.get(tag)\n if (!component) components.set(tag, (component = createMotion(tag) as never))\n return component as (props: MotionProps<T>) => JSX.Element\n}\n"],"mappings":";;;AA+DA,IAAM,cAAc;CAClB;CACA;CACA;CACA;CACA;CACA;AACF;AAUA,IAAa,kBAAkB,cAAgD,KAAA,CAAS;AASxF,IAAa,gCAAgB,IAAI,QAAgC;AAEjE,IAAM,aAA+D;CACnE,IAAI,UAAU,cAAc,KAAK,OAAO,IAAI,EAAE;CAC9C,IAAI,UAAU,cAAc,KAAK,OAAO,IAAI,EAAE;CAC9C,IAAI,UAAU,cAAc,KAAK,OAAO,IAAI,EAAE;CAC9C,QAAQ,UAAU,SAAS,MAAM;CACjC,SAAS,UAAU,UAAU,MAAM;CACnC,SAAS,UAAU,UAAU,MAAM;CACnC,SAAS,UAAU,UAAU,KAAK,OAAO,KAAK,EAAE;CAChD,UAAU,UAAU,WAAW,KAAK,OAAO,KAAK,EAAE;CAClD,UAAU,UAAU,WAAW,KAAK,OAAO,KAAK,EAAE;CAClD,UAAU,UAAU,WAAW,KAAK,OAAO,KAAK,EAAE;CAClD,QAAQ,UAAU,SAAS,KAAK,OAAO,KAAK,EAAE;CAC9C,QAAQ,UAAU,SAAS,KAAK,OAAO,KAAK,EAAE;AAChD;AAEA,SAAS,KAAK,OAAsB,QAAwB;CAC1D,OAAO,OAAO,UAAU,WAAW,GAAG,QAAQ,WAAW;AAC3D;;AAGA,SAAS,YAAY,QAAqC;CACxD,MAAM,UAAU,OAAO,QAAQ,MAAM,CAAC,CAAC,QAAQ,GAAG,WAAW,UAAU,KAAA,CAAS;CAIhF,MAAM,QAAQ,KAAK,IACjB,GACA,GAAG,QAAQ,KAAK,GAAG,WAAY,MAAM,QAAQ,KAAK,IAAI,MAAM,SAAS,CAAE,CACzE;CACA,OAAO,MAAM,KAAK,EAAE,QAAQ,MAAM,IAAI,GAAG,UAAU;EACjD,MAAM,QAAkB,CAAC;EACzB,MAAM,aAAuB,CAAC;EAC9B,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS;GAChC,MAAM,OAAO;GACb,MAAM,QAAQ,MAAM,QAAQ,GAAG,IAC3B,KAAK,KAAK,IAAI,OAAO,KAAK,SAAS,CAAC,KACnC;GACL,MAAM,YAAY,WAAW;GAC7B,IAAI,WAAW,WAAW,KAAK,UAAU,KAAK,CAAC;QAC1C,MAAM,OAAO;EACpB;EACA,IAAI,WAAW,QAAQ,MAAM,eAAe,WAAW,KAAK,GAAG;EAC/D,OAAO;CACT,CAAC;AACH;;AAGA,SAAS,aAAa,SAAkB,QAA8B;CACpE,MAAM,QAAQ,iBAAiB,OAAO;CACtC,MAAM,QAAkB,CAAC;CACzB,KAAK,MAAM,OAAO,IAAI,IAAI,OAAO,SAAS,SAAS,OAAO,KAAK,IAAI,CAAC,CAAC,GAAG;EACtE,IAAI,QAAQ,YAAY,QAAQ,YAAY,QAAQ,aAAa;EACjE,MAAM,OAAO,MAAM,iBAAiB,IAAI,QAAQ,WAAW,SAAS,IAAI,KAAK,YAAY,GAAG,CAAC;CAC/F;CACA,OAAO;AACT;AAEA,SAAS,uBAAgC;CACvC,OAAO,OAAO,eAAe,cAAc,WAAW,kCAAkC,CAAC,CAAC;AAC5F;AAEA,SAAS,OAAO,YAAoE;CAClF,MAAM,UAAU,qBAAqB;CACrC,MAAM,SAAS,YAAY;CAC3B,MAAM,SAAS,YAAY,UAAU;CACrC,OAAO;EACL,UAAU,UAAU,KAAK,YAAY,YAAY,MAAO;EACxD,OAAO,UAAU,KAAK,YAAY,SAAS,KAAK;EAChD,UAAU,UAAU,KAAK,YAAY,YAAY,KAAK;EACtD,QACE,OAAO,WAAW,WAAW,SAAS,SAAS,gBAAgB,OAAO,KAAK,IAAI,EAAE,KAAK;EACxF,YAAY,OAAO,SAAS,MAAM,IAAI,KAAK,IAAI,GAAG,MAAM,IAAI,IAAI;EAChE,WAAW,YAAY;EACvB,MAAM;CACR;AACF;;AAGA,SAAS,MAAM,SAAsB,QAAoB;CACvD,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,OAAO,GAAG,EAAE,KAAK,CAAC,CAAC,GAAG;EAC9D,IAAI,QAAQ,YAAY,QAAQ,YAAY,QAAQ,aAAa;EACjE,QAAQ,MAAM,YACZ,IAAI,QAAQ,WAAW,SAAS,IAAI,KAAK,YAAY,GAAG,GACxD,OAAO,KAAK,CACd;CACF;AACF;;;;;;;AAQA,SAAS,OAAO,WAAsB;CACpC,IAAI;EACF,UAAU,aAAa;EACvB,UAAU,OAAO;CACnB,QAAQ,CAER;AACF;AAEA,SAAS,aAA4B,KAAQ;CAC3C,OAAO,SAAS,cAAc,OAAoC;EAChE,MAAM,WAAW,WAAW,eAAe;EAC3C,MAAM,OAAO,KAAK,OAA6B,GAAG,WAAW;EAC7D,IAAI;EACJ,IAAI;;;;;;EAMJ,IAAI;;EAEJ,IAAI;;EAGJ,SAAS,KAAK,QAAoB,MAA4B,MAAmB;GAC/E,MAAM,UAAU;GAChB,IAAI,CAAC,WAAW,CAAC,WAAW,OAAO,QAAQ,YAAY,YAAY,OAAO,OAAO;GACjF,IAAI,SAAS,OAAO,OAAO;GAC3B,QAAQ,gBAAgB;GACxB,MAAM,YAAY,QAAQ,QACxB,OAAO,CAAC,MAAM,GAAG,MAAM,IAAI,QAC3B,OAAO,QAAQ,UAAU,CAC3B;GACA,UAAU;GACV,UAAU,SAAS,WACX;IACJ,IAAI,YAAY,WAAW,UAAU,KAAA;IACrC,OAAO,SAAS;IAChB,QAAQ,mBAAmB;IAC3B,OAAO;GACT,SAEM,OAAO,CACf;EACF;EAEA,SAAS,MAAM,MAAgB;GAC7B,IAAI,CAAC,QAAQ;IACX,cAAc;IACd;GACF;GACA,IAAI,CAAC,WAAW,CAAC,OAAO,SAAS;GACjC,MAAM,SAAS,YAAY,OAAO,OAAO;GACzC,IAAI,MAAM,OAAO,KAAK,QAAQ,aAAa,MAAM,MAAM,CAAC;GACxD,IAAI,OAAO,YAAY,OAAO,OAAO,MAAM,SAAS,MAAM;GAC1D,KAAK,QAAQ,OAAO,UAAU,YAAY,OAAO,OAAO,CAAC,CAAC,KAAK,KAAA,CAAS;EAC1E;EAEA,SAAS,KAAK,MAAkB;GAC9B,IAAI,CAAC,WAAW,CAAC,QAAQ,MAAM,OAAO,KAAK;GAC3C,MAAM,SAAS,YAAY,OAAO,IAAI;GACtC,KAAK,QAAQ,aAAa,SAAS,MAAM,GAAG,IAAI;EAClD;EAEA,MAAM,OAAO,OAAoB;GAC/B,UAAU;GACV,cAAc,IAAI,IAAI;IAAE;IAAO;GAAK,CAAC;EACvC;EAKA,oBACS;GACL,SAAS,MAAM;GACf,SAAS,MAAM;GACf,MAAM,MAAM;GACZ,YAAY,MAAM;GAClB,eAAe,MAAM;GACrB,kBAAkB,MAAM;GACxB,aAAa,UAAU,YAAY,KAAK;EAC1C,KACC,MAAM,aAAa;GAClB,SAAS;GACT,IAAI,CAAC,UAAU;IACb,MAAM,OAAO;IACb,cAAc,KAAA;IAEd,IAAI,KAAK,eAAe,CAAC,MAAM;KAC7B,IAAI,WAAW,KAAK,SAAS,MAAM,SAAS,YAAY,KAAK,OAAO,CAAC;KACrE;IACF;IACA,OAAO,MAAM,IAAI;GACnB;GACA,IAAI,KAAK,WAAW,KAAK,UAAU,KAAK,OAAO,MAAM,KAAK,UAAU,SAAS,OAAO,GAClF,KAAK,YAAY,KAAK,OAAO,GAAG,KAAA,CAAS;EAC7C,CACF;EAIA,sBAAsB;GACpB,IAAI,CAAC,UAAU,SAAS,OAAO;EACjC,CAAC;EAED,OACEA,gBAAAA,SAAAA,WAAAA;GAASC,WAAW;GAA4B;EAA6C,GAAnC,IAAmC,CAAA;CAEjG;AACF;;;;;AAQA,IAAa,SAAS,IAAI,MACxB,SAAS,OAAO,OAA2C;CACzD,MAAM,OAAO,KAAK,OAAO,KAAK;CAC9B,OAAOC,gBAAAA,SAAAA,WAAAA,EAAS,IAAA,YAAA;EAAW,OAAA,UAAU,MAAM,OAAO,KAAK;CAAC,EAAa,GAAP,IAAO,CAAA;AACvE,GACA,EACE,IAAI,QAAQ,KAAK;CACf,IAAI,OAAO,QAAQ,YAAY,EAAE,OAAO,SAAS,OAAO,UAAU,GAAU;CAC5E,OAAO,QAAQ,IAAI,QAAQ,GAAG;AAChC,EACF,CACF;AAEA,IAAM,6BAAa,IAAI,IAAwC;AAC/D,SAAS,UAAyB,KAAgD;CAChF,IAAI,YAAY,WAAW,IAAI,GAAG;CAClC,IAAI,CAAC,WAAW,WAAW,IAAI,KAAM,YAAY,aAAa,GAAG,CAAW;CAC5E,OAAO;AACT"}
@@ -1,13 +1,12 @@
1
- import type { ComponentProps, JSX } from 'solid-js';
2
- import { Presence as MotionPresence } from 'solid-motionone';
1
+ import type { JSX } from '@solidjs/web';
3
2
  /**
4
3
  * Presence.
5
4
  *
6
5
  * Enter and exit animation with a guarantee the CSS approach cannot make: an exit
7
6
  * that is **interrupted**, a menu reopened while it is still closing, returns the
8
- * element to its shown state instead of finishing the close and then reopening,
9
- * which is what a class-based `animate-out` does and what makes a fast user's
10
- * interactions feel like the interface is lagging behind them.
7
+ * element to its shown state from where it is instead of finishing the close and
8
+ * then reopening, which is what a class-based `animate-out` does and what makes a
9
+ * fast user's interactions feel like the interface is lagging behind them.
11
10
  *
12
11
  * The design system uses CSS transitions for state changes (a hover, a press) and
13
12
  * this for mounting and unmounting, which is the split that keeps the common case
@@ -31,9 +30,19 @@ import { Presence as MotionPresence } from 'solid-motionone';
31
30
  * holds a replacement back until the outgoing element has left. The animation
32
31
  * itself lives on the `Motion.*` element, which must be the direct child of the
33
32
  * condition for its `exit` to run.
33
+ *
34
+ * Built on the Web Animations API (see `Motion`) rather than `solid-motionone`,
35
+ * which has no Solid 2 release. When the condition comes back while its element
36
+ * is still leaving, the new element takes the leaving one's place and enters from
37
+ * its current look, so the turn-around is seamless even though the condition
38
+ * rendered a fresh element.
34
39
  */
35
- export type PresenceProps = ComponentProps<typeof MotionPresence> & {
40
+ export type PresenceProps = {
41
+ /** `false` renders the first children at rest, without their enter animation. */
42
+ initial?: boolean;
43
+ /** Hold a replacement back until the outgoing element has finished its exit. */
44
+ exitBeforeEnter?: boolean;
36
45
  children?: JSX.Element;
37
46
  };
38
- export declare const Presence: (props: PresenceProps) => JSX.Element;
47
+ export declare function Presence(props: PresenceProps): JSX.Element;
39
48
  //# sourceMappingURL=presence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../src/components/motion/presence.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,GAAG;IAClE,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,GAAG,CAAC,OAAwB,CAAA"}
1
+ {"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../src/components/motion/presence.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAGvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gFAAgF;IAChF,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB,CAAA;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAY1D"}
@@ -1,6 +1,78 @@
1
- import { Presence } from "solid-motionone";
1
+ import { PresenceContext, motionRunners } from "./motion.js";
2
+ import { createComponent, memo } from "@solidjs/web";
3
+ import { children, createEffect, createMemo, createSignal, onSettled } from "solid-js";
2
4
  // src/components/motion/presence.tsx
3
- var Presence$1 = Presence;
4
- export { Presence$1 as Presence };
5
+ function Presence(props) {
6
+ let first = true;
7
+ onSettled(() => {
8
+ first = false;
9
+ });
10
+ return createComponent(PresenceContext, {
11
+ value: { skipInitial: () => first && props.initial === false },
12
+ get children() {
13
+ return createComponent(PresenceSwitch, {
14
+ get exitBeforeEnter() {
15
+ return props.exitBeforeEnter;
16
+ },
17
+ get children() {
18
+ return props.children;
19
+ }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ /**
25
+ * The switch: the condition's current element, plus the ones still leaving.
26
+ * A separate component so the condition renders inside the context above.
27
+ */
28
+ function PresenceSwitch(props) {
29
+ const resolved = children(() => props.children);
30
+ const current = createMemo(() => resolved.toArray().find((node) => node instanceof Element));
31
+ const [shown, setShown] = createSignal([]);
32
+ let active;
33
+ let held;
34
+ const exiting = [];
35
+ const show = () => setShown([...exiting, ...active && active !== held ? [active] : []]);
36
+ const finishExit = (element) => {
37
+ const index = exiting.indexOf(element);
38
+ if (index < 0) return;
39
+ exiting.splice(index, 1);
40
+ if (held && exiting.length === 0) {
41
+ const next = held;
42
+ held = void 0;
43
+ motionRunners.get(next)?.enter();
44
+ }
45
+ show();
46
+ };
47
+ createEffect(() => ({
48
+ next: current(),
49
+ exitBeforeEnter: props.exitBeforeEnter ?? false
50
+ }), ({ next, exitBeforeEnter }) => {
51
+ if (next === active) return;
52
+ const leaving = [...exiting];
53
+ const previous = active;
54
+ active = next;
55
+ if (previous) {
56
+ exiting.push(previous);
57
+ const runner = motionRunners.get(previous);
58
+ if (runner) runner.exit(() => finishExit(previous));
59
+ else finishExit(previous);
60
+ }
61
+ if (next) {
62
+ if (exitBeforeEnter && exiting.length > 0) held = next;
63
+ else if (!exitBeforeEnter && leaving.length > 0) {
64
+ const from = leaving.at(-1);
65
+ motionRunners.get(next)?.enter(from);
66
+ for (const element of leaving) {
67
+ exiting.splice(exiting.indexOf(element), 1);
68
+ for (const animation of element.getAnimations?.() ?? []) animation.cancel();
69
+ }
70
+ }
71
+ }
72
+ show();
73
+ });
74
+ return memo(shown);
75
+ }
76
+ export { Presence };
5
77
 
6
78
  //# sourceMappingURL=presence.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"presence.js","names":["Presence","MotionPresence"],"sources":["../../../src/components/motion/presence.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'solid-js'\nimport { Presence as MotionPresence } from 'solid-motionone'\n\n/**\n * Presence.\n *\n * Enter and exit animation with a guarantee the CSS approach cannot make: an exit\n * that is **interrupted**, a menu reopened while it is still closing, returns the\n * element to its shown state instead of finishing the close and then reopening,\n * which is what a class-based `animate-out` does and what makes a fast user's\n * interactions feel like the interface is lagging behind them.\n *\n * The design system uses CSS transitions for state changes (a hover, a press) and\n * this for mounting and unmounting, which is the split that keeps the common case\n * free of a runtime while making the rare case correct.\n *\n * <Presence exitBeforeEnter>\n * <Show when={open()}>\n * <Motion.div\n * initial={{ opacity: 0, scale: 0.96 }}\n * animate={{ opacity: 1, scale: 1 }}\n * exit={{ opacity: 0, scale: 0.96 }}\n * >\n * …\n * </Motion.div>\n * </Show>\n * </Presence>\n *\n * `Presence` goes *outside* the condition: it has to outlive the `<Show>`'s child\n * to keep that child mounted until its exit finishes. It takes only two booleans,\n * `initial={false}` skips the enter animation on first render, `exitBeforeEnter`\n * holds a replacement back until the outgoing element has left. The animation\n * itself lives on the `Motion.*` element, which must be the direct child of the\n * condition for its `exit` to run.\n */\nexport type PresenceProps = ComponentProps<typeof MotionPresence> & {\n children?: JSX.Element\n}\n\nexport const Presence: (props: PresenceProps) => JSX.Element = MotionPresence\n"],"mappings":";;AAuCA,IAAaA,aAAkDC"}
1
+ {"version":3,"file":"presence.js","names":["<PresenceContext value={{ skipInitial: () => first && props.initial === false }}>\n <PresenceSwitch exitBeforeEnter={props.exitBeforeEnter}>{props.children}</PresenceSwitch>\n </PresenceContext>","value={{ skipInitial: () => first && props.initial === false }}","<PresenceSwitch exitBeforeEnter={props.exitBeforeEnter}>{props.children}</PresenceSwitch>","{shown()}"],"sources":["../../../src/components/motion/presence.tsx"],"sourcesContent":["import { children, createEffect, createMemo, createSignal, onSettled } from 'solid-js'\nimport type { JSX } from '@solidjs/web'\nimport { motionRunners, PresenceContext } from './motion'\n\n/**\n * Presence.\n *\n * Enter and exit animation with a guarantee the CSS approach cannot make: an exit\n * that is **interrupted**, a menu reopened while it is still closing, returns the\n * element to its shown state from where it is instead of finishing the close and\n * then reopening, which is what a class-based `animate-out` does and what makes a\n * fast user's interactions feel like the interface is lagging behind them.\n *\n * The design system uses CSS transitions for state changes (a hover, a press) and\n * this for mounting and unmounting, which is the split that keeps the common case\n * free of a runtime while making the rare case correct.\n *\n * <Presence exitBeforeEnter>\n * <Show when={open()}>\n * <Motion.div\n * initial={{ opacity: 0, scale: 0.96 }}\n * animate={{ opacity: 1, scale: 1 }}\n * exit={{ opacity: 0, scale: 0.96 }}\n * >\n * …\n * </Motion.div>\n * </Show>\n * </Presence>\n *\n * `Presence` goes *outside* the condition: it has to outlive the `<Show>`'s child\n * to keep that child mounted until its exit finishes. It takes only two booleans,\n * `initial={false}` skips the enter animation on first render, `exitBeforeEnter`\n * holds a replacement back until the outgoing element has left. The animation\n * itself lives on the `Motion.*` element, which must be the direct child of the\n * condition for its `exit` to run.\n *\n * Built on the Web Animations API (see `Motion`) rather than `solid-motionone`,\n * which has no Solid 2 release. When the condition comes back while its element\n * is still leaving, the new element takes the leaving one's place and enters from\n * its current look, so the turn-around is seamless even though the condition\n * rendered a fresh element.\n */\nexport type PresenceProps = {\n /** `false` renders the first children at rest, without their enter animation. */\n initial?: boolean\n /** Hold a replacement back until the outgoing element has finished its exit. */\n exitBeforeEnter?: boolean\n children?: JSX.Element\n}\n\nexport function Presence(props: PresenceProps): JSX.Element {\n // Read where the context is built and while the first render runs: after the\n // first settle it is always false, so a later entrance always animates.\n let first = true\n onSettled(() => {\n first = false\n })\n return (\n <PresenceContext value={{ skipInitial: () => first && props.initial === false }}>\n <PresenceSwitch exitBeforeEnter={props.exitBeforeEnter}>{props.children}</PresenceSwitch>\n </PresenceContext>\n )\n}\n\n/**\n * The switch: the condition's current element, plus the ones still leaving.\n * A separate component so the condition renders inside the context above.\n */\nfunction PresenceSwitch(props: { exitBeforeEnter?: boolean; children?: JSX.Element }) {\n const resolved = children(() => props.children)\n const current = createMemo(() =>\n resolved.toArray().find((node): node is Element => node instanceof Element)\n )\n const [shown, setShown] = createSignal<Element[]>([])\n\n let active: Element | undefined\n let held: Element | undefined\n const exiting: Element[] = []\n\n const show = () => setShown([...exiting, ...(active && active !== held ? [active] : [])])\n\n const finishExit = (element: Element) => {\n const index = exiting.indexOf(element)\n if (index < 0) return\n exiting.splice(index, 1)\n if (held && exiting.length === 0) {\n const next = held\n held = undefined\n // It began entering when the condition created it, off the page; start over\n // now that it is placed.\n motionRunners.get(next)?.enter()\n }\n show()\n }\n\n createEffect(\n () => ({ next: current(), exitBeforeEnter: props.exitBeforeEnter ?? false }),\n ({ next, exitBeforeEnter }) => {\n if (next === active) return\n const leaving = [...exiting]\n const previous = active\n active = next\n if (previous) {\n exiting.push(previous)\n const runner = motionRunners.get(previous)\n if (runner) runner.exit(() => finishExit(previous))\n else finishExit(previous)\n }\n if (next) {\n if (exitBeforeEnter && exiting.length > 0) {\n held = next\n } else if (!exitBeforeEnter && leaving.length > 0) {\n // An element that was already leaving when this one arrived is the same\n // slot coming back: this one enters from its current look, and it goes.\n const from = leaving.at(-1)!\n motionRunners.get(next)?.enter(from)\n for (const element of leaving) {\n exiting.splice(exiting.indexOf(element), 1)\n for (const animation of element.getAnimations?.() ?? []) animation.cancel()\n }\n }\n }\n show()\n }\n )\n\n return <>{shown()}</>\n}\n"],"mappings":";;;;AAkDA,SAAgB,SAAS,OAAmC;CAG1D,IAAI,QAAQ;CACZ,gBAAgB;EACd,QAAQ;CACV,CAAC;CACD,OACEA,gBAAAA,iBAAAA;EAAiBC,OAAO,EAAE,mBAAmB,SAAS,MAAM,YAAY,MAAM;EAA9E,IAAA,WAAA;GACEC,OAAAA,gBAAAA,gBAAAA;IAAgB,IAAA,kBAAA;KAAiB,OAAA,MAAM;IAAe;IAAtD,IAAA,WAAA;KAAyD,OAAA,MAAM;IAAyB;;EACzE;;AAErB;;;;;AAMA,SAAS,eAAe,OAA8D;CACpF,MAAM,WAAW,eAAe,MAAM,QAAQ;CAC9C,MAAM,UAAU,iBACd,SAAS,QAAQ,CAAC,CAAC,MAAM,SAA0B,gBAAgB,OAAO,CAC5E;CACA,MAAM,CAAC,OAAO,YAAY,aAAwB,CAAC,CAAC;CAEpD,IAAI;CACJ,IAAI;CACJ,MAAM,UAAqB,CAAC;CAE5B,MAAM,aAAa,SAAS,CAAC,GAAG,SAAS,GAAI,UAAU,WAAW,OAAO,CAAC,MAAM,IAAI,CAAC,CAAE,CAAC;CAExF,MAAM,cAAc,YAAqB;EACvC,MAAM,QAAQ,QAAQ,QAAQ,OAAO;EACrC,IAAI,QAAQ,GAAG;EACf,QAAQ,OAAO,OAAO,CAAC;EACvB,IAAI,QAAQ,QAAQ,WAAW,GAAG;GAChC,MAAM,OAAO;GACb,OAAO,KAAA;GAGP,cAAc,IAAI,IAAI,CAAC,EAAE,MAAM;EACjC;EACA,KAAK;CACP;CAEA,oBACS;EAAE,MAAM,QAAQ;EAAG,iBAAiB,MAAM,mBAAmB;CAAM,KACzE,EAAE,MAAM,sBAAsB;EAC7B,IAAI,SAAS,QAAQ;EACrB,MAAM,UAAU,CAAC,GAAG,OAAO;EAC3B,MAAM,WAAW;EACjB,SAAS;EACT,IAAI,UAAU;GACZ,QAAQ,KAAK,QAAQ;GACrB,MAAM,SAAS,cAAc,IAAI,QAAQ;GACzC,IAAI,QAAQ,OAAO,WAAW,WAAW,QAAQ,CAAC;QAC7C,WAAW,QAAQ;EAC1B;EACA,IAAI,MAAM;GACR,IAAI,mBAAmB,QAAQ,SAAS,GACtC,OAAO;QACF,IAAI,CAAC,mBAAmB,QAAQ,SAAS,GAAG;IAGjD,MAAM,OAAO,QAAQ,GAAG,EAAE;IAC1B,cAAc,IAAI,IAAI,CAAC,EAAE,MAAM,IAAI;IACnC,KAAK,MAAM,WAAW,SAAS;KAC7B,QAAQ,OAAO,QAAQ,QAAQ,OAAO,GAAG,CAAC;KAC1C,KAAK,MAAM,aAAa,QAAQ,gBAAgB,KAAK,CAAC,GAAG,UAAU,OAAO;IAC5E;GACF;EACF;EACA,KAAK;CACP,CACF;CAEA,OAASC,KAAC,KAAO;AACnB"}
@@ -1,4 +1,4 @@
1
- import type { ComponentProps } from 'solid-js';
1
+ import type { ComponentProps } from '@solidjs/web';
2
2
  /**
3
3
  * AppearancePanel.
4
4
  *
@@ -24,5 +24,5 @@ import type { ComponentProps } from 'solid-js';
24
24
  * when it arrives.
25
25
  */
26
26
  export type AppearancePanelProps = ComponentProps<'div'>;
27
- export declare function AppearancePanel(props: AppearancePanelProps): import("solid-js").JSX.Element;
27
+ export declare function AppearancePanel(props: AppearancePanelProps): import("@solidjs/web").JSX.Element;
28
28
  //# sourceMappingURL=appearance-panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appearance-panel.d.ts","sourceRoot":"","sources":["../../../src/components/theme/appearance-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAiB9C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAExD,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,kCAiH1D"}
1
+ {"version":3,"file":"appearance-panel.d.ts","sourceRoot":"","sources":["../../../src/components/theme/appearance-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAiBlD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAExD,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,sCAmH1D"}