@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
@@ -3,76 +3,71 @@ import { cn } from "../../../lib/utils.js";
3
3
  import { KbdChord } from "../../ui/kbd/kbd.js";
4
4
  import { windowChromeClass } from "./window-chrome.js";
5
5
  import { fastIcon } from "../../../lib/fast-icon.js";
6
- import { createComponent, delegateEvents, insert, mergeProps, spread, template } from "solid-js/web";
7
- import { Search } from "lucide-solid";
8
- import { Show, splitProps } from "solid-js";
6
+ import { createComponent, insert, spread, template } from "@solidjs/web";
7
+ import { Search } from "@lucide/solid";
8
+ import { Show, omit } from "solid-js";
9
9
  // src/components/layout/top-bar/top-bar.tsx
10
- var _tmpl$ = /*#__PURE__*/ template(`<header data-slot=top-bar>`);
11
- var _tmpl$2 = /*#__PURE__*/ template(`<div data-slot=top-bar-section>`);
12
- var _tmpl$3 = /*#__PURE__*/ template(`<div data-slot=top-bar-title>`);
13
- var _tmpl$4 = /*#__PURE__*/ template(`<div data-slot=top-bar-breadcrumb>`);
14
- var _tmpl$5 = /*#__PURE__*/ template(`<button type=button data-slot=top-bar-search><span class="sr-only sm:not-sr-only sm:truncate">`);
15
- var _tmpl$6 = /*#__PURE__*/ template(`<button type=button data-slot=top-bar-pill><span>`);
10
+ var _tmpl$ = /* @__PURE__ */ template(`<header>`);
11
+ var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
12
+ var _tmpl$3 = /* @__PURE__ */ template(`<button><span class="sr-only sm:not-sr-only sm:truncate"></span><!>`);
13
+ var _tmpl$4 = /* @__PURE__ */ template(`<button><span>`);
16
14
  var Search$1 = fastIcon(Search);
17
15
  function TopBar(props) {
18
- const [local, rest] = splitProps(props, [
19
- "class",
20
- "draggable",
21
- "macosInset",
22
- "windowsInset",
23
- "glass",
24
- "centerWidth"
25
- ]);
26
- return (() => {
27
- var _el$ = _tmpl$();
28
- spread(_el$, mergeProps({ get ["class"]() {
16
+ const local = props;
17
+ const rest = omit(props, "class", "draggable", "macosInset", "windowsInset", "glass", "centerWidth");
18
+ var _el$ = _tmpl$();
19
+ spread(_el$, [{
20
+ "data-slot": "top-bar",
21
+ get "class"() {
29
22
  return cn("h-topbar relative z-(--z-sticky) grid shrink-0 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 border-b border-border bg-card text-card-foreground md:grid-cols-[minmax(0,1fr)_clamp(240px,22vw,480px)_minmax(0,1fr)]", local.centerWidth === "wide" && "@container/top-bar h-auto grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] grid-rows-[minmax(calc(var(--topbar-height)-1px),auto)] gap-x-2 gap-y-0 md:grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] xl:grid-cols-[minmax(0,1fr)_clamp(240px,32vw,672px)_minmax(0,1fr)] [&>:nth-child(2)]:@max-[19rem]/top-bar:col-span-full [&>:nth-child(2)]:@max-[19rem]/top-bar:row-start-2 [&>:nth-child(2)]:@max-[19rem]/top-bar:pb-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-span-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-start-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:row-start-1", windowChromeClass(local), local.class);
30
- } }, rest), false, false);
31
- return _el$;
32
- })();
23
+ }
24
+ }, rest], false);
25
+ return _el$;
33
26
  }
34
27
  /** A scrollable side group; equal wide-screen tracks centre the search. */
35
28
  function TopBarSection(props) {
36
- const [local, rest] = splitProps(props, [
37
- "class",
38
- "align",
39
- "onFocusIn"
40
- ]);
41
- return (() => {
42
- var _el$2 = _tmpl$2();
43
- _el$2.$$focusin = (event) => {
29
+ const local = props;
30
+ const rest = omit(props, "class", "align", "onFocusIn");
31
+ var _el$2 = _tmpl$2();
32
+ spread(_el$2, [{
33
+ "data-slot": "top-bar-section",
34
+ get "class"() {
35
+ return cn("window-no-drag flex min-w-0 items-center gap-2 overflow-x-auto overflow-y-hidden", local.align === "end" && "md:justify-end-safe", local.align !== "end" && "justify-start", local.class);
36
+ },
37
+ onFocusIn: (event) => {
44
38
  if (event.target instanceof HTMLElement) event.target.scrollIntoView({
45
39
  block: "nearest",
46
40
  inline: "nearest"
47
41
  });
48
42
  callHandler(local.onFocusIn, event);
49
- };
50
- spread(_el$2, mergeProps({ get ["class"]() {
51
- return cn("window-no-drag flex min-w-0 items-center gap-2 overflow-x-auto overflow-y-hidden", local.align === "end" && "md:justify-end-safe", local.align !== "end" && "justify-start", local.class);
52
- } }, rest), false, false);
53
- return _el$2;
54
- })();
43
+ }
44
+ }, rest], false);
45
+ return _el$2;
55
46
  }
56
47
  function TopBarTitle(props) {
57
- const [local, rest] = splitProps(props, ["class", "align"]);
58
- return (() => {
59
- var _el$3 = _tmpl$3();
60
- spread(_el$3, mergeProps({ get ["class"]() {
48
+ const local = props;
49
+ const rest = omit(props, "class", "align");
50
+ var _el$3 = _tmpl$2();
51
+ spread(_el$3, [{
52
+ "data-slot": "top-bar-title",
53
+ get "class"() {
61
54
  return cn("truncate text-sm font-medium [&_:is(a,button,input)]:window-no-drag", local.align === "center" && "text-center", local.class);
62
- } }, rest), false, false);
63
- return _el$3;
64
- })();
55
+ }
56
+ }, rest], false);
57
+ return _el$3;
65
58
  }
66
59
  /** A breadcrumb or path readout that yields to the actions when space runs out. */
67
60
  function TopBarBreadcrumb(props) {
68
- const [local, rest] = splitProps(props, ["class"]);
69
- return (() => {
70
- var _el$4 = _tmpl$4();
71
- spread(_el$4, mergeProps({ get ["class"]() {
61
+ const local = props;
62
+ const rest = omit(props, "class");
63
+ var _el$4 = _tmpl$2();
64
+ spread(_el$4, [{
65
+ "data-slot": "top-bar-breadcrumb",
66
+ get "class"() {
72
67
  return cn("flex min-w-0 items-center gap-1.5 text-sm [&_:is(a,button,input)]:window-no-drag", local.class);
73
- } }, rest), false, false);
74
- return _el$4;
75
- })();
68
+ }
69
+ }, rest], false);
70
+ return _el$4;
76
71
  }
77
72
  /**
78
73
  * The search affordance in the middle track.
@@ -84,40 +79,40 @@ function TopBarBreadcrumb(props) {
84
79
  * like from the user's side.
85
80
  */
86
81
  function TopBarSearch(props) {
87
- const [local, rest] = splitProps(props, [
88
- "class",
89
- "placeholder",
90
- "shortcut",
91
- "keyshortcuts"
92
- ]);
93
- return (() => {
94
- var _el$5 = _tmpl$5(), _el$6 = _el$5.firstChild;
95
- spread(_el$5, mergeProps({
96
- get ["class"]() {
97
- return cn("text-muted-foreground flex h-control-md w-full min-w-(--control-height-md) items-center justify-center gap-2 rounded-md border border-input px-3 text-sm sm:justify-start", "transition-colors ease-out outline-none", "hover:bg-surface-hover hover:text-foreground", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle", "window-no-drag", local.class);
98
- },
99
- get ["aria-keyshortcuts"]() {
100
- return local.keyshortcuts;
101
- }
102
- }, rest), false, true);
103
- insert(_el$5, createComponent(Search$1, {
104
- "aria-hidden": "true",
105
- "class": "size-4 shrink-0 sm:hidden"
106
- }), _el$6);
107
- insert(_el$6, () => local.placeholder ?? "Search");
108
- insert(_el$5, createComponent(Show, {
109
- get when() {
110
- return local.shortcut;
82
+ const local = props;
83
+ const rest = omit(props, "class", "placeholder", "shortcut", "keyshortcuts");
84
+ var _el$5 = _tmpl$3();
85
+ var _el$6 = _el$5.firstChild;
86
+ var _el$7 = _el$6.nextSibling;
87
+ spread(_el$5, [{
88
+ type: "button",
89
+ "data-slot": "top-bar-search",
90
+ get "class"() {
91
+ return cn("text-muted-foreground flex h-control-md w-full min-w-(--control-height-md) items-center justify-center gap-2 rounded-md border border-input px-3 text-sm sm:justify-start", "transition-colors ease-out outline-none", "hover:bg-surface-hover hover:text-foreground", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle", "window-no-drag", local.class);
92
+ },
93
+ get "aria-keyshortcuts"() {
94
+ return local.keyshortcuts;
95
+ }
96
+ }, rest], true);
97
+ insert(_el$5, createComponent(Search$1, {
98
+ "aria-hidden": "true",
99
+ class: "size-4 shrink-0 sm:hidden"
100
+ }), _el$6);
101
+ insert(_el$6, () => {
102
+ return local.placeholder ?? "Search";
103
+ });
104
+ insert(_el$5, createComponent(Show, {
105
+ get when() {
106
+ return local.shortcut;
107
+ },
108
+ children: (shortcut) => createComponent(KbdChord, {
109
+ get keys() {
110
+ return shortcut();
111
111
  },
112
- children: (shortcut) => createComponent(KbdChord, {
113
- get keys() {
114
- return shortcut();
115
- },
116
- "class": "ms-auto hidden shrink-0 sm:inline-flex"
117
- })
118
- }), null);
119
- return _el$5;
120
- })();
112
+ class: "ms-auto hidden shrink-0 sm:inline-flex"
113
+ })
114
+ }), _el$7);
115
+ return _el$5;
121
116
  }
122
117
  /**
123
118
  * A labelled top-bar control — the readouts KiroCrew puts in the trailing
@@ -125,22 +120,25 @@ function TopBarSearch(props) {
125
120
  * window; a caller marks the cheap-to-drop ones and the group handles the rest.
126
121
  */
127
122
  function TopBarPill(props) {
128
- const [local, rest] = splitProps(props, [
129
- "class",
130
- "label",
131
- "children"
132
- ]);
133
- return (() => {
134
- var _el$7 = _tmpl$6(), _el$8 = _el$7.firstChild;
135
- spread(_el$7, mergeProps({ get ["class"]() {
123
+ const local = props;
124
+ const rest = omit(props, "class", "label", "children");
125
+ var _el$8 = _tmpl$4();
126
+ var _el$9 = _el$8.firstChild;
127
+ spread(_el$8, [{
128
+ type: "button",
129
+ "data-slot": "top-bar-pill",
130
+ get "class"() {
136
131
  return cn("text-muted-foreground inline-flex h-control-sm shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 text-xs font-medium", "transition-colors ease-out outline-none", "hover:border-input hover:text-foreground", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle", "window-no-drag [&_svg]:size-3.5 [&_svg]:shrink-0", local.class);
137
- } }, rest), false, true);
138
- insert(_el$7, () => local.children, _el$8);
139
- insert(_el$8, () => local.label);
140
- return _el$7;
141
- })();
132
+ }
133
+ }, rest], true);
134
+ insert(_el$8, () => {
135
+ return local.children;
136
+ }, _el$9);
137
+ insert(_el$9, () => {
138
+ return local.label;
139
+ });
140
+ return _el$8;
142
141
  }
143
- delegateEvents(["focusin"]);
144
142
  export { TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle };
145
143
 
146
144
  //# sourceMappingURL=top-bar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"top-bar.js","names":["Show","splitProps","Search","LucideSearch","callHandler","cn","KbdChord","windowChromeClass","fastIcon","centerWidth","TopBar","props","local","rest","_el$","_tmpl$","_$spread","_$mergeProps","class","TopBarSection","align","_el$2","_tmpl$2","$$focusin","event","target","HTMLElement","scrollIntoView","block","inline","onFocusIn","TopBarTitle","_el$3","_tmpl$3","TopBarBreadcrumb","_el$4","_tmpl$4","placeholder","shortcut","keyshortcuts","TopBarSearch","_el$5","_tmpl$5","_el$6","firstChild","_$insert","_$createComponent","when","children","keys","TopBarPill","label","_el$7","_tmpl$6","_el$8","_$delegateEvents"],"sources":["../../../../src/components/layout/top-bar/top-bar.tsx"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { Show, splitProps } from 'solid-js'\nimport { Search as LucideSearch } from 'lucide-solid'\nimport { callHandler } from '#lib/events'\nimport { cn } from '#lib/utils'\nimport { KbdChord } from '../../ui/kbd'\nimport { windowChromeClass, type WindowChromeProps } from './window-chrome'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Search = fastIcon(LucideSearch)\n\n/**\n * TopBar.\n *\n * The window's title row and primary toolbar. Three tracks: a leading group, a\n * centred search, and a trailing group. On wide screens the search is a fixed\n * function of the window width and the side groups are equal remainders. On\n * narrow screens the middle track yields space to the controls, and each side\n * group scrolls when necessary so keyboard focus can reveal every action.\n *\n * The centre track is sized for a lone search field. A bar whose centre holds\n * more than that, such as a search plus an action beside it, passes\n * `centerWidth=\"wide\"`: the centre then stays fluid below 1280px, with each\n * side group sized to its content but capped between 30% and 40% of the row\n * (a longer group scrolls instead): the cap is 30% on the narrowest rows and\n * grows to 40% as the row widens, so full side groups never squeeze the\n * centre's search out of it and enlarged text never pushes a short leading\n * control such as a navigation toggle out of the row. Above 1280px it takes a\n * wider fixed track.\n *\n * A wide bar also never squeezes its centre to nothing. When the row is\n * narrower than 19rem (measured in rem, so enlarged text reaches it at a wider\n * window) the centre moves to a second row of its own and the two side groups\n * share the first, the trailing group taking the remainder beside the leading\n * group's cap, so the leading and trailing controls and the whole centre each\n * keep a full row instead of fighting for one. The bar grows from one row\n * to two only then. The wide layout places the leading group, centre and\n * trailing group as its first, second and third children.\n *\n * On a frameless desktop window this row is also the drag region, so it carries\n * `window-drag` and the controls inside it opt back out. `macos-inset` and\n * `windows-inset` reserve the space the native window controls occupy, which is\n * why the row can look off-centre in a frameless window and be correct: it is\n * centred in the space the user can actually see.\n */\nexport type TopBarProps = ComponentProps<'header'> &\n WindowChromeProps & {\n /**\n * How wide the centre track is. `field` (default) suits a lone search field.\n * `wide` suits a centre that also holds an action: fluid below 1280px between\n * side groups sized to their content and capped between 30% and 40% of the\n * row (a longer group scrolls), then a clamp of 32vw up to 672px between equal\n * side tracks.\n * Below a 19rem row the centre drops to a second row of its own.\n */\n centerWidth?: 'field' | 'wide'\n }\n\nexport function TopBar(props: TopBarProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'draggable',\n 'macosInset',\n 'windowsInset',\n 'glass',\n 'centerWidth',\n ])\n\n return (\n <header\n data-slot=\"top-bar\"\n class={cn(\n 'h-topbar relative z-(--z-sticky) grid shrink-0 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 border-b border-border bg-card text-card-foreground md:grid-cols-[minmax(0,1fr)_clamp(240px,22vw,480px)_minmax(0,1fr)]',\n /* The bar is its own container so its children can move to a second\n row by the row's width in rem, which enlarged text shrinks. The\n first row keeps the bar's height (less the 1px bottom border); the\n second only exists when the centre has dropped onto it. */\n local.centerWidth === 'wide' &&\n '@container/top-bar h-auto grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] grid-rows-[minmax(calc(var(--topbar-height)-1px),auto)] gap-x-2 gap-y-0 md:grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] xl:grid-cols-[minmax(0,1fr)_clamp(240px,32vw,672px)_minmax(0,1fr)] [&>:nth-child(2)]:@max-[19rem]/top-bar:col-span-full [&>:nth-child(2)]:@max-[19rem]/top-bar:row-start-2 [&>:nth-child(2)]:@max-[19rem]/top-bar:pb-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-span-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-start-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:row-start-1',\n windowChromeClass(local),\n local.class\n )}\n {...rest}\n />\n )\n}\n\n/** A scrollable side group; equal wide-screen tracks centre the search. */\nexport function TopBarSection(props: ComponentProps<'div'> & { align?: 'start' | 'end' }) {\n const [local, rest] = splitProps(props, ['class', 'align', 'onFocusIn'])\n\n return (\n <div\n data-slot=\"top-bar-section\"\n class={cn(\n 'window-no-drag flex min-w-0 items-center gap-2 overflow-x-auto overflow-y-hidden',\n local.align === 'end' && 'md:justify-end-safe',\n local.align !== 'end' && 'justify-start',\n local.class\n )}\n onFocusIn={(event) => {\n if (event.target instanceof HTMLElement) {\n event.target.scrollIntoView({ block: 'nearest', inline: 'nearest' })\n }\n callHandler(local.onFocusIn, event)\n }}\n {...rest}\n />\n )\n}\n\nexport function TopBarTitle(\n props: ComponentProps<'div'> & {\n /** Aligns text within this slot; it does not position the slot. */\n align?: 'start' | 'center'\n }\n) {\n const [local, rest] = splitProps(props, ['class', 'align'])\n return (\n <div\n data-slot=\"top-bar-title\"\n class={cn(\n /* The title slot sits in the drag region; a link, button or field\n placed in it (a breadcrumb, a view's search) must stay pressable. */\n 'truncate text-sm font-medium [&_:is(a,button,input)]:window-no-drag',\n local.align === 'center' && 'text-center',\n local.class\n )}\n {...rest}\n />\n )\n}\n\n/** A breadcrumb or path readout that yields to the actions when space runs out. */\nexport function TopBarBreadcrumb(props: ComponentProps<'div'>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <div\n data-slot=\"top-bar-breadcrumb\"\n class={cn(\n 'flex min-w-0 items-center gap-1.5 text-sm [&_:is(a,button,input)]:window-no-drag',\n local.class\n )}\n {...rest}\n />\n )\n}\n\nexport type TopBarSearchProps = ComponentProps<'button'> & {\n /** The hint shown inside the field, e.g. \"Search projects and files\". */\n placeholder?: string\n /** The shortcut chip drawn at the trailing edge, e.g. \"⌘K\". */\n shortcut?: string\n /**\n * The parseable chord behind `shortcut`, e.g. `Meta+K`. The chip is\n * `aria-hidden` — reading it out would pollute the button's accessible\n * name — so this is what assistive technology announces instead. Supply it\n * whenever `shortcut` is drawn.\n */\n keyshortcuts?: string\n}\n\n/**\n * The search affordance in the middle track.\n *\n * It is a button, not an input, and that is deliberate: clicking it opens the\n * command palette, which already owns the input, the ranking and the keyboard\n * handling. A second live input here would be a second source of truth for the\n * same query. It is styled to read as a field because that is what it behaves\n * like from the user's side.\n */\nexport function TopBarSearch(props: TopBarSearchProps) {\n const [local, rest] = splitProps(props, ['class', 'placeholder', 'shortcut', 'keyshortcuts'])\n\n return (\n <button\n type=\"button\"\n data-slot=\"top-bar-search\"\n class={cn(\n 'text-muted-foreground flex h-control-md w-full min-w-(--control-height-md) items-center justify-center gap-2 rounded-md border border-input px-3 text-sm sm:justify-start',\n 'transition-colors ease-out outline-none',\n 'hover:bg-surface-hover hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'window-no-drag',\n local.class\n )}\n aria-keyshortcuts={local.keyshortcuts}\n {...rest}\n >\n <Search aria-hidden=\"true\" class=\"size-4 shrink-0 sm:hidden\" />\n <span class=\"sr-only sm:not-sr-only sm:truncate\">{local.placeholder ?? 'Search'}</span>\n <Show when={local.shortcut}>\n {(shortcut) => (\n <KbdChord keys={shortcut()} class=\"ms-auto hidden shrink-0 sm:inline-flex\" />\n )}\n </Show>\n </button>\n )\n}\n\n/**\n * A labelled top-bar control — the readouts KiroCrew puts in the trailing\n * group. Container queries on the group decide which of these survive a narrow\n * window; a caller marks the cheap-to-drop ones and the group handles the rest.\n */\nexport function TopBarPill(props: ComponentProps<'button'> & { label: string }) {\n const [local, rest] = splitProps(props, ['class', 'label', 'children'])\n\n return (\n <button\n type=\"button\"\n data-slot=\"top-bar-pill\"\n class={cn(\n 'text-muted-foreground inline-flex h-control-sm shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 text-xs font-medium',\n 'transition-colors ease-out outline-none',\n 'hover:border-input hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'window-no-drag [&_svg]:size-3.5 [&_svg]:shrink-0',\n local.class\n )}\n {...rest}\n >\n {local.children}\n <span>{local.label}</span>\n </button>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;AAUA,IAAME,WAASM,SAASL,MAAY;AAiDpC,SAAgBO,OAAOC,OAAoB;CACzC,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO;EACtC;EACA;EACA;EACA;EACA;EACA;CAAa,CACd;CAED,cAAA;EAAA,IAAAG,OAAAC,OAAA;EAAAC,OAAAF,MAAAG,WAAA,EAAA,KAAA,WAAA;GAAA,OAGWZ,GACL,yOAKAO,MAAMH,gBAAgB,UACpB,+sBACFF,kBAAkBK,KAAK,GACvBA,MAAMM,KACR;EAAC,EAAA,GACGL,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAC;CAAA,EAAA,CAAA;AAGd;;AAGA,SAAgBK,cAAcR,OAA4D;CACxF,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO;EAAC;EAAS;EAAS;CAAW,CAAC;CAEvE,cAAA;EAAA,IAAAU,QAAAC,QAAA;EAAAD,MAAAE,aASgBC,UAAU;GACpB,IAAIA,MAAMC,kBAAkBC,aAC1BF,MAAMC,OAAOE,eAAe;IAAEC,OAAO;IAAWC,QAAQ;GAAU,CAAC;GAErEzB,YAAYQ,MAAMkB,WAAWN,KAAK;EACpC;EAACR,OAAAK,OAAAJ,WAAA,EAAA,KAAA,WAAA;GAAA,OAXMZ,GACL,oFACAO,MAAMQ,UAAU,SAAS,uBACzBR,MAAMQ,UAAU,SAAS,iBACzBR,MAAMM,KACR;EAAC,EAAA,GAOGL,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAQ;CAAA,EAAA,CAAA;AAGd;AAEA,SAAgBU,YACdpB,OAIA;CACA,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO,CAAC,SAAS,OAAO,CAAC;CAC1D,cAAA;EAAA,IAAAqB,QAAAC,QAAA;EAAAjB,OAAAgB,OAAAf,WAAA,EAAA,KAAA,WAAA;GAAA,OAGWZ,GAGL,uEACAO,MAAMQ,UAAU,YAAY,eAC5BR,MAAMM,KACR;EAAC,EAAA,GACGL,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAmB;CAAA,EAAA,CAAA;AAGd;;AAGA,SAAgBE,iBAAiBvB,OAA8B;CAC7D,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO,CAAC,OAAO,CAAC;CACjD,cAAA;EAAA,IAAAwB,QAAAC,QAAA;EAAApB,OAAAmB,OAAAlB,WAAA,EAAA,KAAA,WAAA;GAAA,OAGWZ,GACL,oFACAO,MAAMM,KACR;EAAC,EAAA,GACGL,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAsB;CAAA,EAAA,CAAA;AAGd;;;;;;;;;;AAyBA,SAAgBK,aAAa7B,OAA0B;CACrD,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO;EAAC;EAAS;EAAe;EAAY;CAAc,CAAC;CAE5F,cAAA;EAAA,IAAA8B,QAAAC,QAAA,GAAAC,QAAAF,MAAAG;EAAA5B,OAAAyB,OAAAxB,WAAA;GAAA,KAAA,WAAA;IAAA,OAIWZ,GACL,6KACA,2CACA,gDACA,oFACA,kBACAO,MAAMM,KACR;GAAC;GAAA,KAAA,uBAAA;IAAA,OACkBN,MAAM2B;GAAY;EAAA,GACjC1B,IAAI,GAAA,OAAA,IAAA;EAAAgC,OAAAJ,OAAAK,gBAEP5C,UAAM;GAAA,eAAA;GAAA,SAAA;EAAA,CAAA,GAAAyC,KAAA;EAAAE,OAAAF,aAC2C/B,MAAMyB,eAAe,QAAQ;EAAAQ,OAAAJ,OAAAK,gBAC9E9C,MAAI;GAAA,IAAC+C,OAAI;IAAA,OAAEnC,MAAM0B;GAAQ;GAAAU,WACtBV,aAAQQ,gBACPxC,UAAQ;IAAA,IAAC2C,OAAI;KAAA,OAAEX,SAAS;IAAC;IAAA,SAAA;GAAA,CAAA;EAC3B,CAAA,GAAA,IAAA;EAAA,OAAAG;CAAA,EAAA,CAAA;AAIT;;;;;;AAOA,SAAgBS,WAAWvC,OAAqD;CAC9E,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO;EAAC;EAAS;EAAS;CAAU,CAAC;CAEtE,cAAA;EAAA,IAAAyC,QAAAC,QAAA,GAAAC,QAAAF,MAAAR;EAAA5B,OAAAoC,OAAAnC,WAAA,EAAA,KAAA,WAAA;GAAA,OAIWZ,GACL,2IACA,2CACA,4CACA,oFACA,oDACAO,MAAMM,KACR;EAAC,EAAA,GACGL,IAAI,GAAA,OAAA,IAAA;EAAAgC,OAAAO,aAEPxC,MAAMoC,UAAQM,KAAA;EAAAT,OAAAS,aACR1C,MAAMuC,KAAK;EAAA,OAAAC;CAAA,EAAA,CAAA;AAGxB;AAACG,eAAA,CAAA,SAAA,CAAA"}
1
+ {"version":3,"file":"top-bar.js","names":["<header\n data-slot=\"top-bar\"\n class={cn(\n 'h-topbar relative z-(--z-sticky) grid shrink-0 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 border-b border-border bg-card text-card-foreground md:grid-cols-[minmax(0,1fr)_clamp(240px,22vw,480px)_minmax(0,1fr)]',\n /* The bar is its own container so its children can move to a second\n row by the row's width in rem, which enlarged text shrinks. The\n first row keeps the bar's height (less the 1px bottom border); the\n second only exists when the centre has dropped onto it. */\n local.centerWidth === 'wide' &&\n '@container/top-bar h-auto grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] grid-rows-[minmax(calc(var(--topbar-height)-1px),auto)] gap-x-2 gap-y-0 md:grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] xl:grid-cols-[minmax(0,1fr)_clamp(240px,32vw,672px)_minmax(0,1fr)] [&>:nth-child(2)]:@max-[19rem]/top-bar:col-span-full [&>:nth-child(2)]:@max-[19rem]/top-bar:row-start-2 [&>:nth-child(2)]:@max-[19rem]/top-bar:pb-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-span-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-start-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:row-start-1',\n windowChromeClass(local),\n local.class\n )}\n {...rest}\n />","onFocusIn={(event) => {\n if (event.target instanceof HTMLElement) {\n event.target.scrollIntoView({ block: 'nearest', inline: 'nearest' })\n }\n callHandler(local.onFocusIn, event)\n }}","<div\n data-slot=\"top-bar-section\"\n class={cn(\n 'window-no-drag flex min-w-0 items-center gap-2 overflow-x-auto overflow-y-hidden',\n local.align === 'end' && 'md:justify-end-safe',\n local.align !== 'end' && 'justify-start',\n local.class\n )}\n onFocusIn={(event) => {\n if (event.target instanceof HTMLElement) {\n event.target.scrollIntoView({ block: 'nearest', inline: 'nearest' })\n }\n callHandler(local.onFocusIn, event)\n }}\n {...rest}\n />","<div\n data-slot=\"top-bar-title\"\n class={cn(\n /* The title slot sits in the drag region; a link, button or field\n placed in it (a breadcrumb, a view's search) must stay pressable. */\n 'truncate text-sm font-medium [&_:is(a,button,input)]:window-no-drag',\n local.align === 'center' && 'text-center',\n local.class\n )}\n {...rest}\n />","<div\n data-slot=\"top-bar-breadcrumb\"\n class={cn(\n 'flex min-w-0 items-center gap-1.5 text-sm [&_:is(a,button,input)]:window-no-drag',\n local.class\n )}\n {...rest}\n />","type=\"button\"","<Search aria-hidden=\"true\" class=\"size-4 shrink-0 sm:hidden\" />","class=\"size-4 shrink-0 sm:hidden\"","<button\n type=\"button\"\n data-slot=\"top-bar-search\"\n class={cn(\n 'text-muted-foreground flex h-control-md w-full min-w-(--control-height-md) items-center justify-center gap-2 rounded-md border border-input px-3 text-sm sm:justify-start',\n 'transition-colors ease-out outline-none',\n 'hover:bg-surface-hover hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'window-no-drag',\n local.class\n )}\n aria-keyshortcuts={local.keyshortcuts}\n {...rest}\n >\n <Search aria-hidden=\"true\" class=\"size-4 shrink-0 sm:hidden\" />\n <span class=\"sr-only sm:not-sr-only sm:truncate\">{local.placeholder ?? 'Search'}</span>\n <Show when={local.shortcut}>\n {(shortcut) => (\n <KbdChord keys={shortcut()} class=\"ms-auto hidden shrink-0 sm:inline-flex\" />\n )}\n </Show>\n </button>","<Show when={local.shortcut}>\n {(shortcut) => (\n <KbdChord keys={shortcut()} class=\"ms-auto hidden shrink-0 sm:inline-flex\" />\n )}\n </Show>","<KbdChord keys={shortcut()} class=\"ms-auto hidden shrink-0 sm:inline-flex\" />","class=\"ms-auto hidden shrink-0 sm:inline-flex\"","<button\n type=\"button\"\n data-slot=\"top-bar-pill\"\n class={cn(\n 'text-muted-foreground inline-flex h-control-sm shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 text-xs font-medium',\n 'transition-colors ease-out outline-none',\n 'hover:border-input hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'window-no-drag [&_svg]:size-3.5 [&_svg]:shrink-0',\n local.class\n )}\n {...rest}\n >\n {local.children}\n <span>{local.label}</span>\n </button>","Search","LucideSearch"],"sources":["../../../../src/components/layout/top-bar/top-bar.tsx"],"sourcesContent":["import type { ComponentProps } from '@solidjs/web'\nimport { Show, omit } from 'solid-js'\nimport { Search as LucideSearch } from '@lucide/solid'\nimport { callHandler } from '#lib/events'\nimport { cn } from '#lib/utils'\nimport { KbdChord } from '../../ui/kbd'\nimport { windowChromeClass, type WindowChromeProps } from './window-chrome'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Search = fastIcon(LucideSearch)\n\n/**\n * TopBar.\n *\n * The window's title row and primary toolbar. Three tracks: a leading group, a\n * centred search, and a trailing group. On wide screens the search is a fixed\n * function of the window width and the side groups are equal remainders. On\n * narrow screens the middle track yields space to the controls, and each side\n * group scrolls when necessary so keyboard focus can reveal every action.\n *\n * The centre track is sized for a lone search field. A bar whose centre holds\n * more than that, such as a search plus an action beside it, passes\n * `centerWidth=\"wide\"`: the centre then stays fluid below 1280px, with each\n * side group sized to its content but capped between 30% and 40% of the row\n * (a longer group scrolls instead): the cap is 30% on the narrowest rows and\n * grows to 40% as the row widens, so full side groups never squeeze the\n * centre's search out of it and enlarged text never pushes a short leading\n * control such as a navigation toggle out of the row. Above 1280px it takes a\n * wider fixed track.\n *\n * A wide bar also never squeezes its centre to nothing. When the row is\n * narrower than 19rem (measured in rem, so enlarged text reaches it at a wider\n * window) the centre moves to a second row of its own and the two side groups\n * share the first, the trailing group taking the remainder beside the leading\n * group's cap, so the leading and trailing controls and the whole centre each\n * keep a full row instead of fighting for one. The bar grows from one row\n * to two only then. The wide layout places the leading group, centre and\n * trailing group as its first, second and third children.\n *\n * On a frameless desktop window this row is also the drag region, so it carries\n * `window-drag` and the controls inside it opt back out. `macos-inset` and\n * `windows-inset` reserve the space the native window controls occupy, which is\n * why the row can look off-centre in a frameless window and be correct: it is\n * centred in the space the user can actually see.\n */\nexport type TopBarProps = Omit<ComponentProps<'header'>, 'draggable'> &\n WindowChromeProps & {\n /**\n * How wide the centre track is. `field` (default) suits a lone search field.\n * `wide` suits a centre that also holds an action: fluid below 1280px between\n * side groups sized to their content and capped between 30% and 40% of the\n * row (a longer group scrolls), then a clamp of 32vw up to 672px between equal\n * side tracks.\n * Below a 19rem row the centre drops to a second row of its own.\n */\n centerWidth?: 'field' | 'wide'\n }\n\nexport function TopBar(props: TopBarProps) {\n const local = props\n const rest = omit(\n props,\n 'class',\n 'draggable',\n 'macosInset',\n 'windowsInset',\n 'glass',\n 'centerWidth'\n )\n\n return (\n <header\n data-slot=\"top-bar\"\n class={cn(\n 'h-topbar relative z-(--z-sticky) grid shrink-0 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 border-b border-border bg-card text-card-foreground md:grid-cols-[minmax(0,1fr)_clamp(240px,22vw,480px)_minmax(0,1fr)]',\n /* The bar is its own container so its children can move to a second\n row by the row's width in rem, which enlarged text shrinks. The\n first row keeps the bar's height (less the 1px bottom border); the\n second only exists when the centre has dropped onto it. */\n local.centerWidth === 'wide' &&\n '@container/top-bar h-auto grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] grid-rows-[minmax(calc(var(--topbar-height)-1px),auto)] gap-x-2 gap-y-0 md:grid-cols-[fit-content(max(30%,min(40%,calc(50%-3.75rem))))_minmax(0,1fr)_fit-content(max(30%,min(40%,calc(50%-3.75rem))))] xl:grid-cols-[minmax(0,1fr)_clamp(240px,32vw,672px)_minmax(0,1fr)] [&>:nth-child(2)]:@max-[19rem]/top-bar:col-span-full [&>:nth-child(2)]:@max-[19rem]/top-bar:row-start-2 [&>:nth-child(2)]:@max-[19rem]/top-bar:pb-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-span-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:col-start-2 [&>:nth-child(3)]:@max-[19rem]/top-bar:row-start-1',\n windowChromeClass(local),\n local.class\n )}\n {...rest}\n />\n )\n}\n\n/** A scrollable side group; equal wide-screen tracks centre the search. */\nexport function TopBarSection(props: ComponentProps<'div'> & { align?: 'start' | 'end' }) {\n const local = props\n const rest = omit(props, 'class', 'align', 'onFocusIn')\n\n return (\n <div\n data-slot=\"top-bar-section\"\n class={cn(\n 'window-no-drag flex min-w-0 items-center gap-2 overflow-x-auto overflow-y-hidden',\n local.align === 'end' && 'md:justify-end-safe',\n local.align !== 'end' && 'justify-start',\n local.class\n )}\n onFocusIn={(event) => {\n if (event.target instanceof HTMLElement) {\n event.target.scrollIntoView({ block: 'nearest', inline: 'nearest' })\n }\n callHandler(local.onFocusIn, event)\n }}\n {...rest}\n />\n )\n}\n\nexport function TopBarTitle(\n props: ComponentProps<'div'> & {\n /** Aligns text within this slot; it does not position the slot. */\n align?: 'start' | 'center'\n }\n) {\n const local = props\n const rest = omit(props, 'class', 'align')\n return (\n <div\n data-slot=\"top-bar-title\"\n class={cn(\n /* The title slot sits in the drag region; a link, button or field\n placed in it (a breadcrumb, a view's search) must stay pressable. */\n 'truncate text-sm font-medium [&_:is(a,button,input)]:window-no-drag',\n local.align === 'center' && 'text-center',\n local.class\n )}\n {...rest}\n />\n )\n}\n\n/** A breadcrumb or path readout that yields to the actions when space runs out. */\nexport function TopBarBreadcrumb(props: ComponentProps<'div'>) {\n const local = props\n const rest = omit(props, 'class')\n return (\n <div\n data-slot=\"top-bar-breadcrumb\"\n class={cn(\n 'flex min-w-0 items-center gap-1.5 text-sm [&_:is(a,button,input)]:window-no-drag',\n local.class\n )}\n {...rest}\n />\n )\n}\n\nexport type TopBarSearchProps = ComponentProps<'button'> & {\n /** The hint shown inside the field, e.g. \"Search projects and files\". */\n placeholder?: string\n /** The shortcut chip drawn at the trailing edge, e.g. \"⌘K\". */\n shortcut?: string\n /**\n * The parseable chord behind `shortcut`, e.g. `Meta+K`. The chip is\n * `aria-hidden` — reading it out would pollute the button's accessible\n * name — so this is what assistive technology announces instead. Supply it\n * whenever `shortcut` is drawn.\n */\n keyshortcuts?: string\n}\n\n/**\n * The search affordance in the middle track.\n *\n * It is a button, not an input, and that is deliberate: clicking it opens the\n * command palette, which already owns the input, the ranking and the keyboard\n * handling. A second live input here would be a second source of truth for the\n * same query. It is styled to read as a field because that is what it behaves\n * like from the user's side.\n */\nexport function TopBarSearch(props: TopBarSearchProps) {\n const local = props\n const rest = omit(props, 'class', 'placeholder', 'shortcut', 'keyshortcuts')\n\n return (\n <button\n type=\"button\"\n data-slot=\"top-bar-search\"\n class={cn(\n 'text-muted-foreground flex h-control-md w-full min-w-(--control-height-md) items-center justify-center gap-2 rounded-md border border-input px-3 text-sm sm:justify-start',\n 'transition-colors ease-out outline-none',\n 'hover:bg-surface-hover hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'window-no-drag',\n local.class\n )}\n aria-keyshortcuts={local.keyshortcuts}\n {...rest}\n >\n <Search aria-hidden=\"true\" class=\"size-4 shrink-0 sm:hidden\" />\n <span class=\"sr-only sm:not-sr-only sm:truncate\">{local.placeholder ?? 'Search'}</span>\n <Show when={local.shortcut}>\n {(shortcut) => (\n <KbdChord keys={shortcut()} class=\"ms-auto hidden shrink-0 sm:inline-flex\" />\n )}\n </Show>\n </button>\n )\n}\n\n/**\n * A labelled top-bar control — the readouts KiroCrew puts in the trailing\n * group. Container queries on the group decide which of these survive a narrow\n * window; a caller marks the cheap-to-drop ones and the group handles the rest.\n */\nexport function TopBarPill(props: ComponentProps<'button'> & { label: string }) {\n const local = props\n const rest = omit(props, 'class', 'label', 'children')\n\n return (\n <button\n type=\"button\"\n data-slot=\"top-bar-pill\"\n class={cn(\n 'text-muted-foreground inline-flex h-control-sm shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 text-xs font-medium',\n 'transition-colors ease-out outline-none',\n 'hover:border-input hover:text-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'window-no-drag [&_svg]:size-3.5 [&_svg]:shrink-0',\n local.class\n )}\n {...rest}\n >\n {local.children}\n <span>{local.label}</span>\n </button>\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAUA,IAAMa,WAAS,SAASC,MAAY;AAiDpC,SAAgB,OAAO,OAAoB;CACzC,MAAM,QAAQ;CACd,MAAM,OAAO,KACX,OACA,SACA,aACA,cACA,gBACA,SACA,aACF;CAGE,IAAA,OAAA,OAcC;CADC,OAAA,MAAA,CAAA;EAZA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GACL,yOAKA,MAAM,gBAAgB,UACpB,+sBACF,kBAAkB,KAAK,GACvB,MAAM,KACR;EAAC;CACO,GAAJ,IAAA,GAAA,KAAA;CAdR,OACEd;AAgBJ;;AAGA,SAAgB,cAAc,OAA4D;CACxF,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,SAAS,SAAS,WAAW;CAGpD,IAAA,QAAA,QAeC;CADC,OAAA,OAAA,CAAA;EAbA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GACL,oFACA,MAAM,UAAU,SAAS,uBACzB,MAAM,UAAU,SAAS,iBACzB,MAAM,KACR;EAAC;EACDC,YAAY,UAAU;GACpB,IAAI,MAAM,kBAAkB,aAC1B,MAAM,OAAO,eAAe;IAAE,OAAO;IAAW,QAAQ;GAAU,CAAC;GAErE,YAAY,MAAM,WAAW,KAAK;EACpC;CACQ,GAAJ,IAAA,GAAA,KAAA;CAfR,OACEC;AAiBJ;AAEA,SAAgB,YACd,OAIA;CACA,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,SAAS,OAAO;CAEvC,IAAA,QAAA,QAUC;CADC,OAAA,OAAA,CAAA;EARA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GAGL,uEACA,MAAM,UAAU,YAAY,eAC5B,MAAM,KACR;EAAC;CACO,GAAJ,IAAA,GAAA,KAAA;CAVR,OACEC;AAYJ;;AAGA,SAAgB,iBAAiB,OAA8B;CAC7D,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,OAAO;CAE9B,IAAA,QAAA,QAOC;CADC,OAAA,OAAA,CAAA;EALA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GACL,oFACA,MAAM,KACR;EAAC;CACO,GAAJ,IAAA,GAAA,KAAA;CAPR,OACEC;AASJ;;;;;;;;;;AAyBA,SAAgB,aAAa,OAA0B;CACrD,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,SAAS,eAAe,YAAY,cAAc;CAGzE,IAAA,QAAA,QAqBQ;CANN,IAAA,QAAA,MAAA;CAfF,IAAA,QAAA,MAAA;CAYE,OAAA,OAAA,CAAA;EAXAC,MAAAA;EACA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GACL,6KACA,2CACA,gDACA,oFACA,kBACA,MAAM,KACR;EAAC;EACD,IAAA,sBAAA;GAAmB,OAAA,MAAM;EAAY;CAC7B,GAAJ,IAAA,GAAA,IAAA;CAZN,OAAA,OAcEC,gBAAAA,UAAAA;EAAQ,eAAY;EAAOC,OAAM;CAA6B,CAAA,GAdhEC,KAqBQ;CANN,OAAA,aAAiD;EAAC,OAAA,MAAM,eAAe;CAAQ,CAAO;CAfxF,OAAA,OAgBEC,gBAAAA,MAAAA;EAAM,IAAA,OAAA;GAAM,OAAA,MAAM;EAAQ;EAA1BA,WACI,aACAC,gBAAAA,UAAAA;GAAU,IAAA,OAAA;IAAM,OAAA,SAAS;GAAC;GAAEC,OAAM;EAA0C,CAAA;CAE1E,CAAA,GApBRH,KAqBQ;CAtBV,OACEA;AAuBJ;;;;;;AAOA,SAAgB,WAAW,OAAqD;CAC9E,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,SAAS,SAAS,UAAU;CAGnD,IAAA,QAAA,QAeQ;CADN,IAAA,QAAA,MAAA;CAHA,OAAA,OAAA,CAAA;EAVAH,MAAAA;EACA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GACL,2IACA,2CACA,4CACA,oFACA,oDACA,MAAM,KACR;EAAC;CACO,GAAJ,IAAA,GAAA,IAAA;CAXN,OAAA,aAaE;EAAC,OAAA,MAAM;CAAQ,GAbjBO,KAeQ;CADN,OAAA,aAAM;EAAC,OAAA,MAAM;CAAK,CAAO;CAf7B,OACEA;AAiBJ"}
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, JSX } from 'solid-js';
1
+ import type { ComponentProps, JSX } from '@solidjs/web';
2
2
  /**
3
3
  * VirtualWindow.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-window.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/virtual-window/virtual-window.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAInD;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IACnF,4DAA4D;IAC5D,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB,CAAA;AAMD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,eA0BtD"}
1
+ {"version":3,"file":"virtual-window.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/virtual-window/virtual-window.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAIvD;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IACnF,4DAA4D;IAC5D,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB,CAAA;AAMD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,eAoBtD"}
@@ -1,43 +1,38 @@
1
1
  import { cn } from "../../../lib/utils.js";
2
- import { className, effect, insert, mergeProps, setStyleProperty, spread, template } from "solid-js/web";
3
- import { splitProps } from "solid-js";
2
+ import { className, effect, insert, readShallow, setStyleProperty, spread, template } from "@solidjs/web";
3
+ import { omit } from "solid-js";
4
4
  // src/components/layout/virtual-window/virtual-window.tsx
5
- var _tmpl$ = /*#__PURE__*/ template(`<div><div data-slot=virtual-window-content>`);
5
+ var _tmpl$ = /* @__PURE__ */ template(`<div><div data-slot=virtual-window-content>`);
6
6
  function finitePixels(value) {
7
7
  return `${Number.isFinite(value) ? value : 0}px`;
8
8
  }
9
9
  function VirtualWindow(props) {
10
- const [local, rest] = splitProps(props, [
11
- "class",
12
- "children",
13
- "totalSize",
14
- "offset",
15
- "contentClass",
16
- "style"
17
- ]);
18
- return (() => {
19
- var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
20
- spread(_el$, mergeProps(rest, {
21
- "data-slot": "virtual-window-space",
22
- get ["class"]() {
23
- return cn("relative", local.class);
24
- },
25
- get style() {
26
- return { height: finitePixels(Math.max(0, local.totalSize)) };
27
- }
28
- }), false, true);
29
- insert(_el$2, () => local.children);
30
- effect((_p$) => {
31
- var _v$ = local.contentClass, _v$2 = `translateY(${finitePixels(local.offset ?? 0)})`;
32
- _v$ !== _p$.e && className(_el$2, _p$.e = _v$);
33
- _v$2 !== _p$.t && setStyleProperty(_el$2, "transform", _p$.t = _v$2);
34
- return _p$;
35
- }, {
36
- e: void 0,
37
- t: void 0
38
- });
39
- return _el$;
40
- })();
10
+ const local = props;
11
+ const rest = omit(props, "class", "children", "totalSize", "offset", "contentClass", "style");
12
+ var _el$ = _tmpl$();
13
+ var _el$2 = _el$.firstChild;
14
+ spread(_el$, [rest, {
15
+ "data-slot": "virtual-window-space",
16
+ get "class"() {
17
+ return cn("relative", local.class);
18
+ },
19
+ get style() {
20
+ return { height: finitePixels(Math.max(0, local.totalSize)) };
21
+ }
22
+ }], true);
23
+ insert(_el$2, () => {
24
+ return local.children;
25
+ });
26
+ effect(() => {
27
+ return {
28
+ e: readShallow(local.contentClass),
29
+ t: `translateY(${finitePixels(local.offset ?? 0)})`
30
+ };
31
+ }, ({ e, t }, _p$) => {
32
+ className(_el$2, e, _p$?.e);
33
+ t !== _p$?.t && setStyleProperty(_el$2, "transform", t);
34
+ });
35
+ return _el$;
41
36
  }
42
37
  export { VirtualWindow };
43
38
 
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-window.js","names":["splitProps","cn","style","totalSize","offset","contentClass","children","finitePixels","value","Number","isFinite","VirtualWindow","props","local","rest","_el$","_tmpl$","_el$2","firstChild","_$spread","_$mergeProps","class","height","Math","max","_$insert","_$effect","_p$","_v$","_v$2","e","_$className","t","_$setStyleProperty","undefined"],"sources":["../../../../src/components/layout/virtual-window/virtual-window.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\n\n/**\n * VirtualWindow.\n *\n * Supplies the two geometry wrappers a virtualized viewport needs: a full-height\n * scroll space and a translated window containing the mounted rows. The caller\n * owns the scroll region, its semantics, keyboard model, and range calculation;\n * this component only keeps those rows at their measured position.\n */\nexport type VirtualWindowProps = Omit<ComponentProps<'div'>, 'children' | 'style'> & {\n /** JSX style props are owned by this geometry primitive. */\n style?: never\n /** The full scrollable height, in pixels. */\n totalSize: number\n /** The mounted window's top offset from the start of the full list, in pixels. */\n offset?: number\n /** Optional layout classes for the translated row container. */\n contentClass?: string\n children?: JSX.Element\n}\n\nfunction finitePixels(value: number): string {\n return `${Number.isFinite(value) ? value : 0}px`\n}\n\nexport function VirtualWindow(props: VirtualWindowProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'children',\n 'totalSize',\n 'offset',\n 'contentClass',\n 'style',\n ])\n\n return (\n <div\n {...rest}\n data-slot=\"virtual-window-space\"\n class={cn('relative', local.class)}\n style={{ height: finitePixels(Math.max(0, local.totalSize)) }}\n >\n <div\n data-slot=\"virtual-window-content\"\n class={local.contentClass}\n style={{ transform: `translateY(${finitePixels(local.offset ?? 0)})` }}\n >\n {local.children}\n </div>\n </div>\n )\n}\n"],"mappings":";;;;;AAwBA,SAASO,aAAaC,OAAuB;CAC3C,OAAO,GAAGC,OAAOC,SAASF,KAAK,IAAIA,QAAQ,EAAC;AAC9C;AAEA,SAAgBG,cAAcC,OAA2B;CACvD,MAAM,CAACC,OAAOC,QAAQd,WAAWY,OAAO;EACtC;EACA;EACA;EACA;EACA;EACA;CAAO,CACR;CAED,cAAA;EAAA,IAAAG,OAAAC,OAAA,GAAAC,QAAAF,KAAAG;EAAAC,OAAAJ,MAAAK,WAEQN,MAAI;GAAA,aACE;GAAsB,KAAA,WAAA;IAAA,OACzBb,GAAG,YAAYY,MAAMQ,KAAK;GAAC;GAAA,IAClCnB,QAAK;IAAA,OAAE,EAAEoB,QAAQf,aAAagB,KAAKC,IAAI,GAAGX,MAAMV,SAAS,CAAC,EAAE;GAAC;EAAA,CAAA,GAAA,OAAA,IAAA;EAAAsB,OAAAR,aAO1DJ,MAAMP,QAAQ;EAAAoB,QAAAC,QAAA;GAAA,IAAAC,MAHRf,MAAMR,cAAYwB,OACL,cAActB,aAAaM,MAAMT,UAAU,CAAC,EAAC;GAAGwB,QAAAD,IAAAG,KAAAC,UAAAd,OAAAU,IAAAG,IAAAF,GAAA;GAAAC,SAAAF,IAAAK,KAAAC,iBAAAhB,OAAA,aAAAU,IAAAK,IAAAH,IAAA;GAAA,OAAAF;EAAA,GAAA;GAAAG,GAAAI,KAAAA;GAAAF,GAAAE,KAAAA;EAAA,CAAA;EAAA,OAAAnB;CAAA,EAAA,CAAA;AAM5E"}
1
+ {"version":3,"file":"virtual-window.js","names":["transform: `translateY(${finitePixels(local.offset ?? 0)})`","<div\n {...rest}\n data-slot=\"virtual-window-space\"\n class={cn('relative', local.class)}\n style={{ height: finitePixels(Math.max(0, local.totalSize)) }}\n >\n <div\n data-slot=\"virtual-window-content\"\n class={local.contentClass}\n style={{ transform: `translateY(${finitePixels(local.offset ?? 0)})` }}\n >\n {local.children}\n </div>\n </div>","_$readShallow","_$setStyleProperty"],"sources":["../../../../src/components/layout/virtual-window/virtual-window.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from '@solidjs/web'\nimport { omit } from 'solid-js'\nimport { cn } from '#lib/utils'\n\n/**\n * VirtualWindow.\n *\n * Supplies the two geometry wrappers a virtualized viewport needs: a full-height\n * scroll space and a translated window containing the mounted rows. The caller\n * owns the scroll region, its semantics, keyboard model, and range calculation;\n * this component only keeps those rows at their measured position.\n */\nexport type VirtualWindowProps = Omit<ComponentProps<'div'>, 'children' | 'style'> & {\n /** JSX style props are owned by this geometry primitive. */\n style?: never\n /** The full scrollable height, in pixels. */\n totalSize: number\n /** The mounted window's top offset from the start of the full list, in pixels. */\n offset?: number\n /** Optional layout classes for the translated row container. */\n contentClass?: string\n children?: JSX.Element\n}\n\nfunction finitePixels(value: number): string {\n return `${Number.isFinite(value) ? value : 0}px`\n}\n\nexport function VirtualWindow(props: VirtualWindowProps) {\n const local = props\n const rest = omit(props, 'class', 'children', 'totalSize', 'offset', 'contentClass', 'style')\n\n return (\n <div\n {...rest}\n data-slot=\"virtual-window-space\"\n class={cn('relative', local.class)}\n style={{ height: finitePixels(Math.max(0, local.totalSize)) }}\n >\n <div\n data-slot=\"virtual-window-content\"\n class={local.contentClass}\n style={{ transform: `translateY(${finitePixels(local.offset ?? 0)})` }}\n >\n {local.children}\n </div>\n </div>\n )\n}\n"],"mappings":";;;;;AAwBA,SAAS,aAAa,OAAuB;CAC3C,OAAO,GAAG,OAAO,SAAS,KAAK,IAAI,QAAQ,EAAE;AAC/C;AAEA,SAAgB,cAAc,OAA2B;CACvD,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,SAAS,YAAY,aAAa,UAAU,gBAAgB,OAAO;CAG1F,IAAA,OAAA,OAaK;CAPH,IAAA,QAAA,KAAA;CALI,OAAA,MAAA,CAAA,MAAA;EACJ,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GAAG,YAAY,MAAM,KAAK;EAAC;EAClC,IAAA,QAAA;GAAO,OAAA,EAAE,QAAQ,aAAa,KAAK,IAAI,GAAG,MAAM,SAAS,CAAC,EAAE;EAAC;;CAE7D,OAAA,aAKE;EAAC,OAAA,MAAM;CAAQ,CACZ;CAJH,aAAA;;GAAO,GAAAE,YAAA,MAAM,YAAY;GAChBF,GAAW,cAAc,aAAa,MAAM,UAAU,CAAC,EAAE;EADzC;CAAzB,IAAA,EAAA,GAAA,KAAA,QAAA;EAAyB,UAAA,OAAA,GAAA,KAAA,CAAA;EAChB,MAAA,KAAA,KAAAG,iBAAA,OAAA,aAAA,CAA0D;CAD1C,CAAA;CAT/B,OACEF;AAeJ"}
@@ -1,3 +1,3 @@
1
1
  export { Presence, type PresenceProps } from './presence';
2
- export { Motion } from 'solid-motionone';
2
+ export { Motion, type MotionKeyframes, type MotionOptions, type MotionProps, type MotionTransition, } from './motion';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/motion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/motion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EACL,MAAM,EACN,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { Presence } from "./presence.js";
2
- import { Motion } from "solid-motionone";
2
+ import { Motion } from "./motion.js";
3
3
  export { Motion, Presence };
@@ -0,0 +1,84 @@
1
+ import { type JSX } from '@solidjs/web';
2
+ /**
3
+ * Motion.
4
+ *
5
+ * An element that animates in, between states and out, on the Web Animations API.
6
+ * It replaces `solid-motionone` (no Solid 2 release) with the part of its API the
7
+ * design system uses: `initial`, `animate`, `exit` and `transition`, written the
8
+ * same way (`x`/`y` in pixels, `scale`, `rotate` in degrees, `opacity` and any CSS
9
+ * property, a value or an array of keyframes; durations in seconds).
10
+ *
11
+ * <Motion.div
12
+ * initial={{ opacity: 0, y: -4 }}
13
+ * animate={{ opacity: 1, y: 0 }}
14
+ * exit={{ opacity: 0, y: -4 }}
15
+ * transition={{ duration: 0.2 }}
16
+ * />
17
+ *
18
+ * Every animation is finite. `repeat: Infinity` plays once: an endless animation
19
+ * never settles, so an exit built on one would hold its element in the page for
20
+ * good, and a page waiting for its animations (the finite-animations rule the
21
+ * browser lanes rely on) would wait forever. A looping decoration belongs in CSS.
22
+ * Someone who prefers reduced motion gets every end state at once.
23
+ *
24
+ * An animation runs from where the element is, not from where it was meant to
25
+ * be: an exit started halfway through an entrance leaves from the half-entered
26
+ * state, and an entrance that interrupts an exit (see `Presence`) starts from the
27
+ * exiting element's current look.
28
+ */
29
+ type KeyframeValue = string | number;
30
+ /** A target state: transform shorthands and CSS properties, each a value or keyframes. */
31
+ export type MotionKeyframes = Record<string, KeyframeValue | readonly KeyframeValue[] | undefined>;
32
+ /** Timing, in seconds as in motionone. */
33
+ export type MotionTransition = {
34
+ duration?: number;
35
+ delay?: number;
36
+ endDelay?: number;
37
+ /** A CSS easing, or a cubic-bezier as four numbers. */
38
+ easing?: string | readonly [number, number, number, number];
39
+ /** Extra plays after the first. Always finite: `Infinity` plays once. */
40
+ repeat?: number;
41
+ direction?: PlaybackDirection;
42
+ };
43
+ export type MotionOptions = {
44
+ /** The state it enters from. `false` renders straight at `animate`. */
45
+ initial?: MotionKeyframes | false;
46
+ /** The state it animates to, on entry and again whenever this changes. */
47
+ animate?: MotionKeyframes;
48
+ /** The state it leaves to. Runs only inside a `Presence`, which keeps it mounted until done. */
49
+ exit?: MotionKeyframes;
50
+ transition?: MotionTransition;
51
+ onMotionStart?: () => void;
52
+ onMotionComplete?: () => void;
53
+ };
54
+ type Tag = keyof JSX.IntrinsicElements;
55
+ export type MotionProps<T extends Tag = 'div'> = MotionOptions & Omit<JSX.IntrinsicElements[T], keyof MotionOptions>;
56
+ /** What a `Presence` tells the motion elements inside it. */
57
+ export type PresenceContextValue = {
58
+ /**
59
+ * True during the presence's first render when it was given `initial={false}`.
60
+ * Read in a motion element's effect compute, so a reactive `initial` is tracked.
61
+ */
62
+ skipInitial: () => boolean;
63
+ };
64
+ export declare const PresenceContext: import("solid-js").Context<PresenceContextValue | undefined>;
65
+ /** The runners a `Presence` drives on the element it shows, by element. */
66
+ export type MotionRunners = {
67
+ /** (Re)starts the entrance, from `from`'s current look when given. */
68
+ enter: (from?: Element) => void;
69
+ /** Plays the exit and calls `done` when it has finished, or at once without one. */
70
+ exit: (done: () => void) => void;
71
+ };
72
+ export declare const motionRunners: WeakMap<Element, MotionRunners>;
73
+ type MotionComponents = {
74
+ [T in Tag]: (props: MotionProps<T>) => JSX.Element;
75
+ };
76
+ /**
77
+ * `Motion.div`, `Motion.span`, … — one component per tag, created on first use.
78
+ * `<Motion tag="li">` is the same, for a tag chosen at runtime.
79
+ */
80
+ export declare const Motion: ((props: MotionProps<'div'> & {
81
+ tag?: Tag;
82
+ }) => JSX.Element) & MotionComponents;
83
+ export {};
84
+ //# sourceMappingURL=motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/components/motion/motion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,GAAG,EAAuB,MAAM,cAAc,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AACpC,0FAA0F;AAC1F,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC,CAAA;AAElG,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3D,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,iBAAiB,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,uEAAuE;IACvE,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAAA;IACjC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,gGAAgG;IAChG,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B,CAAA;AAED,KAAK,GAAG,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;AACtC,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,GAAG,GAAG,KAAK,IAAI,aAAa,GAC5D,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC,CAAA;AAWrD,6DAA6D;AAC7D,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,WAAW,EAAE,MAAM,OAAO,CAAA;CAC3B,CAAA;AACD,eAAO,MAAM,eAAe,8DAA6D,CAAA;AAEzF,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG;IAC1B,sEAAsE;IACtE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/B,oFAAoF;IACpF,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,IAAI,KAAK,IAAI,CAAA;CACjC,CAAA;AACD,eAAO,MAAM,aAAa,iCAAwC,CAAA;AAgNlE,KAAK,gBAAgB,GAAG;KAAG,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO;CAAE,CAAA;AAE9E;;;GAGG;AACH,eAAO,MAAM,MAAM,EAWd,CAAC,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,KAAK,GAAG,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAA"}