@vvedantb/ui 0.67.0 → 0.69.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 (417) hide show
  1. package/app/src/auth/useStableAuth.ts +0 -2
  2. package/app/src/confirm/ConfirmSkipHint.tsx +0 -2
  3. package/app/src/confirm/useAltHeld.ts +0 -17
  4. package/app/src/convex/ConvexClerkProvider.tsx +0 -3
  5. package/app/src/convex/env.ts +0 -4
  6. package/app/src/convex/errorMessage.ts +0 -1
  7. package/app/src/convex/useHeldResult.ts +0 -3
  8. package/app/src/page-motion/PageMotionProvider.tsx +0 -6
  9. package/app/src/page-title/createPageTitleContext.tsx +0 -14
  10. package/app/src/settings/SettingsEmptyState.tsx +0 -4
  11. package/app/src/settings/SettingsField.tsx +0 -4
  12. package/app/src/settings/SettingsPage.tsx +0 -12
  13. package/app/src/settings/SettingsSection.tsx +0 -14
  14. package/app/src/settings/ThemeModePicker.tsx +0 -6
  15. package/app/src/theme/createThemeProvider.tsx +0 -33
  16. package/app/src/time/compactRelativeTime.ts +0 -16
  17. package/app/src/update/staleDeployReload.ts +0 -40
  18. package/app/src/update/updateWatcher.ts +0 -8
  19. package/dist/app/src/auth/useStableAuth.js +0 -1
  20. package/dist/app/src/confirm/ConfirmSkipHint.js +0 -3
  21. package/dist/app/src/confirm/useAltHeld.js +0 -17
  22. package/dist/app/src/convex/env.js +0 -3
  23. package/dist/app/src/convex/errorMessage.js +0 -2
  24. package/dist/app/src/settings/ThemeModePicker.js +0 -1
  25. package/dist/app/src/theme/createThemeProvider.js +1 -11
  26. package/dist/app/src/time/compactRelativeTime.js +0 -8
  27. package/dist/app/src/update/staleDeployReload.js +3 -38
  28. package/dist/app/src/update/updateWatcher.js +1 -3
  29. package/dist/shell/src/AppShell.js +0 -14
  30. package/dist/shell/src/PageHeaderBar.js +0 -3
  31. package/dist/shell/src/SessionsHoverCard.js +0 -9
  32. package/dist/shell/src/SidePanelTabs.js +0 -36
  33. package/dist/shell/src/Sidebar.js +0 -1
  34. package/dist/shell/src/SidebarChrome.js +0 -19
  35. package/dist/shell/src/SidebarIconTooltip.js +0 -1
  36. package/dist/shell/src/SidebarRail.js +0 -12
  37. package/dist/shell/src/SidebarResize.js +1 -4
  38. package/dist/shell/src/app-shell-classes.js +0 -10
  39. package/dist/shell/src/index.js +0 -1
  40. package/dist/shell/src/shell-panel-motion.js +0 -12
  41. package/dist/src/ai-elements/activity-shared.js +0 -6
  42. package/dist/src/ai-elements/activity-step-label.js +0 -6
  43. package/dist/src/ai-elements/activity-step-types.js +0 -4
  44. package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
  45. package/dist/src/ai-elements/activity-tasks.js +0 -55
  46. package/dist/src/ai-elements/artifact.js +0 -4
  47. package/dist/src/ai-elements/attachments.js +0 -41
  48. package/dist/src/ai-elements/code-block.js +0 -18
  49. package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
  50. package/dist/src/ai-elements/context.js +0 -13
  51. package/dist/src/ai-elements/conversation.js +0 -4
  52. package/dist/src/ai-elements/jump-rail.js +0 -5
  53. package/dist/src/ai-elements/message.js +0 -7
  54. package/dist/src/ai-elements/model-picker-types.js +0 -1
  55. package/dist/src/ai-elements/model-picker.js +1 -6
  56. package/dist/src/ai-elements/model-selector.js +0 -4
  57. package/dist/src/ai-elements/prompt-input-speech.js +0 -13
  58. package/dist/src/ai-elements/prompt-input.js +0 -1
  59. package/dist/src/ai-elements/provider-icon.js +0 -4
  60. package/dist/src/ai-elements/queue.js +0 -15
  61. package/dist/src/ai-elements/shimmer.js +0 -14
  62. package/dist/src/ai-elements/speech-input.js +0 -7
  63. package/dist/src/artifacts/artifact-frame.js +0 -2
  64. package/dist/src/audio/playChime.js +0 -2
  65. package/dist/src/audio/playTone.js +1 -4
  66. package/dist/src/brand/AppWordmark.js +0 -5
  67. package/dist/src/brand/svg.js +0 -6
  68. package/dist/src/client.js +0 -43
  69. package/dist/src/composer/Composer.js +0 -27
  70. package/dist/src/composer/input-area/InputArea.js +0 -3
  71. package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
  72. package/dist/src/composer/input-area/composerPrediction.js +0 -3
  73. package/dist/src/generative-ui/content.js +0 -2
  74. package/dist/src/generative-ui/index.js +0 -3
  75. package/dist/src/generative-ui/layout.js +0 -5
  76. package/dist/src/hooks/use-count-up-display.js +0 -2
  77. package/dist/src/hooks/use-idle-callback.js +0 -3
  78. package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
  79. package/dist/src/icons/animated/index.js +0 -4
  80. package/dist/src/icons/board-icon.js +74 -41
  81. package/dist/src/icons/bolt-icon.js +30 -20
  82. package/dist/src/icons/building-icon.js +125 -61
  83. package/dist/src/icons/files-icon.js +103 -43
  84. package/dist/src/icons/inbox-icon.js +101 -49
  85. package/dist/src/icons/index.js +2 -1
  86. package/dist/src/icons/memory-icon.js +135 -58
  87. package/dist/src/icons/search-icon.js +143 -46
  88. package/dist/src/icons/settings-icon.js +113 -53
  89. package/dist/src/icons/solid-icons.js +665 -0
  90. package/dist/src/icons/with-active.js +25 -0
  91. package/dist/src/index.js +0 -40
  92. package/dist/src/kibo/gantt-features.js +0 -10
  93. package/dist/src/kibo/gantt-provider.js +0 -34
  94. package/dist/src/kibo/kanban.js +0 -15
  95. package/dist/src/kibo/list.js +0 -3
  96. package/dist/src/kibo/video-player.js +0 -7
  97. package/dist/src/logos/index.js +0 -4
  98. package/dist/src/markdown/Markdown.js +0 -15
  99. package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
  100. package/dist/src/markdown/MarkdownInlineCode.js +0 -6
  101. package/dist/src/markdown/MarkdownLink.js +0 -5
  102. package/dist/src/markdown/codeFence.js +0 -1
  103. package/dist/src/markdown/codeHighlight.js +0 -19
  104. package/dist/src/markdown/incrementalBlocks.js +0 -45
  105. package/dist/src/markdown/markdownClipboard.js +0 -13
  106. package/dist/src/markdown/mermaid.js +0 -25
  107. package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
  108. package/dist/src/markdown/useSmoothText.js +0 -5
  109. package/dist/src/marketing/PricingModal.js +0 -2
  110. package/dist/src/marketing/ProductHero.js +0 -2
  111. package/dist/src/marketing/createLandingKit.js +0 -5
  112. package/dist/src/marketing/marketing-classes.js +0 -7
  113. package/dist/src/motion/dock-motion.js +0 -27
  114. package/dist/src/motion/panel-transition.js +0 -2
  115. package/dist/src/ui/_field-classes.js +0 -3
  116. package/dist/src/ui/_menu-classes.js +0 -6
  117. package/dist/src/ui/_picker-classes.js +0 -9
  118. package/dist/src/ui/accordion.alt.js +0 -12
  119. package/dist/src/ui/badge.js +0 -1
  120. package/dist/src/ui/border-beam.js +0 -2
  121. package/dist/src/ui/breadcrumb.js +0 -15
  122. package/dist/src/ui/bulk-action-bar.js +0 -11
  123. package/dist/src/ui/button.js +0 -20
  124. package/dist/src/ui/calendar.js +1 -20
  125. package/dist/src/ui/card.js +0 -3
  126. package/dist/src/ui/carousel.js +0 -1
  127. package/dist/src/ui/clear-input.alt.js +0 -9
  128. package/dist/src/ui/clearInputDissolve.js +0 -4
  129. package/dist/src/ui/command.js +0 -15
  130. package/dist/src/ui/confetti-burst.js +0 -3
  131. package/dist/src/ui/confirm-dialog-parts.js +0 -11
  132. package/dist/src/ui/confirm-dialog.js +0 -6
  133. package/dist/src/ui/crossfade-icon.js +0 -2
  134. package/dist/src/ui/date-picker.js +0 -22
  135. package/dist/src/ui/dialog.js +0 -5
  136. package/dist/src/ui/empty-state.js +0 -7
  137. package/dist/src/ui/field.js +0 -21
  138. package/dist/src/ui/image-lightbox.js +0 -5
  139. package/dist/src/ui/input-group.alt.js +0 -24
  140. package/dist/src/ui/input-group.js +0 -4
  141. package/dist/src/ui/kbd.js +0 -3
  142. package/dist/src/ui/loading-state.js +0 -17
  143. package/dist/src/ui/marquee-on-hover.js +0 -3
  144. package/dist/src/ui/media-preview.js +0 -2
  145. package/dist/src/ui/modalTransition.js +0 -33
  146. package/dist/src/ui/overlay-a11y.js +0 -1
  147. package/dist/src/ui/page-title.js +0 -3
  148. package/dist/src/ui/refresh-spin-icon.js +0 -12
  149. package/dist/src/ui/search-input.js +0 -1
  150. package/dist/src/ui/select-field.js +0 -1
  151. package/dist/src/ui/send-queue-icon.js +0 -3
  152. package/dist/src/ui/sheet.js +0 -33
  153. package/dist/src/ui/slider.js +103 -82
  154. package/dist/src/ui/sonner-icons.js +0 -5
  155. package/dist/src/ui/sonner.js +0 -60
  156. package/dist/src/ui/spinner.js +0 -35
  157. package/dist/src/ui/status-dot.js +0 -2
  158. package/dist/src/ui/surface.js +0 -14
  159. package/dist/src/ui/switch.js +213 -36
  160. package/dist/src/ui/table.js +0 -1
  161. package/dist/src/ui/tabs-transition.js +0 -1
  162. package/dist/src/ui/tabs.js +0 -17
  163. package/dist/src/ui/tabsSliding.js +0 -6
  164. package/dist/src/ui/time-picker.js +0 -15
  165. package/dist/src/ui/toggle-search.js +0 -3
  166. package/dist/src/ui/ui-config.js +0 -16
  167. package/dist/src/utils/cat-color.js +0 -17
  168. package/dist/src/utils/cn.js +0 -5
  169. package/dist/src/utils/gesture.js +0 -8
  170. package/dist/src/utils/ref.js +0 -1
  171. package/dist/src/utils/runtimeVisibility.js +1 -22
  172. package/dist/src/utils/surface-radius.js +0 -11
  173. package/dist/src/utils/useDragSensors.js +0 -4
  174. package/dist/tokens/src/tailwind-preset.mjs +0 -3
  175. package/package.json +1 -1
  176. package/scripts/build-brand-assets.mjs +0 -8
  177. package/shell/src/AppShell.tsx +0 -37
  178. package/shell/src/AppSidebar.tsx +0 -14
  179. package/shell/src/ButtonTrack.tsx +0 -1
  180. package/shell/src/PageHeaderBar.tsx +0 -61
  181. package/shell/src/PageWrapper.tsx +0 -26
  182. package/shell/src/PillTabs.tsx +0 -1
  183. package/shell/src/SessionsHoverCard.tsx +0 -40
  184. package/shell/src/SidePanelTabs.tsx +0 -61
  185. package/shell/src/Sidebar.tsx +0 -1
  186. package/shell/src/SidebarAccountMenu.tsx +0 -40
  187. package/shell/src/SidebarChrome.tsx +0 -32
  188. package/shell/src/SidebarIconTooltip.tsx +0 -3
  189. package/shell/src/SidebarPanel.tsx +0 -20
  190. package/shell/src/SidebarRail.tsx +0 -44
  191. package/shell/src/SidebarResize.tsx +0 -6
  192. package/shell/src/SidebarUpgradeCard.tsx +0 -2
  193. package/shell/src/SignOutDialog.tsx +0 -6
  194. package/shell/src/app-shell-classes.ts +0 -15
  195. package/shell/src/index.ts +0 -1
  196. package/shell/src/shell-panel-motion.ts +0 -11
  197. package/shell/src/shell-variant.ts +0 -6
  198. package/src/ai-elements/activity-question.tsx +0 -2
  199. package/src/ai-elements/activity-shared.tsx +0 -11
  200. package/src/ai-elements/activity-step-detail.tsx +0 -2
  201. package/src/ai-elements/activity-step-label.ts +0 -5
  202. package/src/ai-elements/activity-step-types.ts +0 -24
  203. package/src/ai-elements/activity-tasks-utils.ts +0 -13
  204. package/src/ai-elements/activity-tasks.tsx +0 -61
  205. package/src/ai-elements/artifact.tsx +0 -7
  206. package/src/ai-elements/attachments.tsx +0 -33
  207. package/src/ai-elements/chat-day-divider.tsx +0 -3
  208. package/src/ai-elements/chat-jump-rail.tsx +0 -9
  209. package/src/ai-elements/code-block.tsx +0 -28
  210. package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
  211. package/src/ai-elements/context.tsx +0 -10
  212. package/src/ai-elements/conversation.tsx +0 -16
  213. package/src/ai-elements/jump-rail.tsx +0 -31
  214. package/src/ai-elements/message.tsx +0 -32
  215. package/src/ai-elements/model-picker-content.tsx +0 -17
  216. package/src/ai-elements/model-picker-types.ts +0 -5
  217. package/src/ai-elements/model-picker.tsx +0 -36
  218. package/src/ai-elements/model-selector.tsx +0 -5
  219. package/src/ai-elements/prompt-input-speech.tsx +0 -11
  220. package/src/ai-elements/prompt-input.tsx +0 -26
  221. package/src/ai-elements/provider-icon.tsx +0 -2
  222. package/src/ai-elements/queue.tsx +0 -19
  223. package/src/ai-elements/reasoning.tsx +0 -4
  224. package/src/ai-elements/shimmer.tsx +0 -16
  225. package/src/ai-elements/simple-model-ladder.tsx +0 -1
  226. package/src/ai-elements/speech-input.tsx +0 -6
  227. package/src/ai-elements/test-results.tsx +0 -5
  228. package/src/ai-elements/trace.tsx +0 -2
  229. package/src/ai-elements/web-preview.tsx +0 -7
  230. package/src/artifacts/artifact-card.tsx +0 -7
  231. package/src/artifacts/artifact-dialogs.tsx +0 -4
  232. package/src/artifacts/artifact-frame.tsx +0 -10
  233. package/src/artifacts/artifact-list-toolbar.tsx +0 -6
  234. package/src/artifacts/artifact-list.tsx +0 -4
  235. package/src/artifacts/artifact-type-icon.tsx +0 -1
  236. package/src/artifacts/artifact-versions-menu.tsx +0 -3
  237. package/src/artifacts/artifact-viewer.tsx +0 -5
  238. package/src/artifacts/types.ts +0 -1
  239. package/src/audio/playChime.ts +0 -1
  240. package/src/audio/playTone.ts +0 -7
  241. package/src/brand/AppIcons.tsx +0 -5
  242. package/src/brand/AppMark.tsx +0 -6
  243. package/src/brand/AppWordmark.tsx +0 -10
  244. package/src/brand/familyApps.ts +0 -2
  245. package/src/brand/svg.ts +0 -9
  246. package/src/client.ts +0 -34
  247. package/src/composer/Composer.tsx +0 -70
  248. package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
  249. package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
  250. package/src/composer/input-area/FadePresence.tsx +0 -4
  251. package/src/composer/input-area/InputActions.tsx +0 -5
  252. package/src/composer/input-area/InputArea.tsx +1 -28
  253. package/src/composer/input-area/InputAreaEditor.tsx +0 -39
  254. package/src/composer/input-area/InputBanners.tsx +0 -1
  255. package/src/composer/input-area/PromoBanner.tsx +0 -1
  256. package/src/composer/input-area/composerPrediction.ts +0 -2
  257. package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
  258. package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
  259. package/src/composer/prediction.ts +0 -6
  260. package/src/composer/useComposerPrediction.ts +0 -2
  261. package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
  262. package/src/generative-ui/content.tsx +0 -2
  263. package/src/generative-ui/index.ts +0 -3
  264. package/src/generative-ui/layout.tsx +0 -5
  265. package/src/hooks/use-count-up-display.ts +0 -1
  266. package/src/hooks/use-idle-callback.ts +0 -5
  267. package/src/hooks/use-persisted-scroll-parent.ts +0 -4
  268. package/src/hooks/use-single-flight.ts +0 -5
  269. package/src/icons/animated/animated-bell-icon.tsx +0 -6
  270. package/src/icons/animated/animated-counter.tsx +0 -5
  271. package/src/icons/animated/animated-key-icon.tsx +0 -4
  272. package/src/icons/animated/animated-notification-icon.tsx +0 -14
  273. package/src/icons/animated/animated-progress.tsx +0 -10
  274. package/src/icons/animated/animated-status-dot.tsx +0 -4
  275. package/src/icons/animated/index.ts +0 -4
  276. package/src/icons/animated/morphing-menu-icon.tsx +0 -5
  277. package/src/icons/animated/morphing-mic-icon.tsx +0 -2
  278. package/src/icons/animated/pulsing-rings.tsx +0 -4
  279. package/src/icons/automation-icon.tsx +0 -1
  280. package/src/icons/board-icon.tsx +13 -10
  281. package/src/icons/bolt-icon.tsx +5 -4
  282. package/src/icons/building-icon.tsx +11 -9
  283. package/src/icons/draft-icon.tsx +0 -1
  284. package/src/icons/files-icon.tsx +9 -5
  285. package/src/icons/inbox-arrow-icon.tsx +0 -1
  286. package/src/icons/inbox-icon.tsx +9 -5
  287. package/src/icons/index.ts +12 -1
  288. package/src/icons/memory-icon.tsx +9 -11
  289. package/src/icons/nav-icon-base.tsx +0 -10
  290. package/src/icons/search-icon.tsx +7 -6
  291. package/src/icons/settings-icon.tsx +11 -13
  292. package/src/icons/sidebar-toggle-icon.tsx +0 -1
  293. package/src/icons/solid-icons.tsx +138 -0
  294. package/src/icons/with-active.tsx +14 -0
  295. package/src/index.ts +0 -30
  296. package/src/kibo/gantt-features.tsx +0 -16
  297. package/src/kibo/gantt-header.tsx +0 -4
  298. package/src/kibo/gantt-provider.tsx +0 -36
  299. package/src/kibo/gantt-sidebar.tsx +0 -7
  300. package/src/kibo/gantt-timeline.tsx +0 -4
  301. package/src/kibo/kanban.tsx +0 -49
  302. package/src/kibo/list.tsx +0 -8
  303. package/src/kibo/theme-switcher.tsx +0 -5
  304. package/src/kibo/video-player.tsx +0 -9
  305. package/src/logos/index.ts +0 -3
  306. package/src/logos/logo-svg.tsx +0 -5
  307. package/src/markdown/Markdown.tsx +0 -20
  308. package/src/markdown/MarkdownCodeBlock.tsx +0 -14
  309. package/src/markdown/MarkdownInlineCode.tsx +0 -6
  310. package/src/markdown/MarkdownLink.tsx +0 -4
  311. package/src/markdown/codeFence.ts +0 -3
  312. package/src/markdown/codeHighlight.ts +0 -16
  313. package/src/markdown/incrementalBlocks.ts +0 -49
  314. package/src/markdown/markdownClipboard.ts +0 -12
  315. package/src/markdown/mermaid.ts +0 -22
  316. package/src/markdown/rehypeGithubAlerts.ts +0 -3
  317. package/src/markdown/useSmoothText.ts +0 -5
  318. package/src/marketing/FloatingBar.tsx +0 -3
  319. package/src/marketing/PricingModal.tsx +0 -45
  320. package/src/marketing/ProductHero.tsx +0 -23
  321. package/src/marketing/ProductHeroOrbit.tsx +0 -5
  322. package/src/marketing/SiteFooter.tsx +0 -23
  323. package/src/marketing/SiteHeader.tsx +0 -14
  324. package/src/marketing/VProPricingModal.tsx +0 -5
  325. package/src/marketing/createLandingKit.tsx +0 -12
  326. package/src/marketing/landing.tsx +0 -12
  327. package/src/marketing/marketing-classes.ts +0 -7
  328. package/src/motion/dock-motion.ts +0 -25
  329. package/src/motion/list-enter.tsx +0 -4
  330. package/src/motion/panel-transition.tsx +0 -5
  331. package/src/ui/_field-classes.ts +0 -2
  332. package/src/ui/_menu-classes.ts +0 -4
  333. package/src/ui/_menu-parts.tsx +0 -5
  334. package/src/ui/_picker-classes.ts +0 -6
  335. package/src/ui/accordion.alt.tsx +0 -8
  336. package/src/ui/accordion.tsx +0 -4
  337. package/src/ui/badge.tsx +0 -1
  338. package/src/ui/border-beam.tsx +0 -11
  339. package/src/ui/breadcrumb.tsx +0 -13
  340. package/src/ui/bulk-action-bar.tsx +0 -24
  341. package/src/ui/button.tsx +0 -27
  342. package/src/ui/calendar.tsx +0 -18
  343. package/src/ui/card.tsx +0 -3
  344. package/src/ui/carousel.tsx +0 -4
  345. package/src/ui/checkbox.tsx +0 -1
  346. package/src/ui/clear-input.alt.tsx +0 -8
  347. package/src/ui/clear-input.tsx +0 -16
  348. package/src/ui/clearInputDissolve.ts +0 -4
  349. package/src/ui/command.tsx +0 -22
  350. package/src/ui/confetti-burst.tsx +0 -4
  351. package/src/ui/confirm-dialog-parts.tsx +0 -45
  352. package/src/ui/confirm-dialog.tsx +0 -26
  353. package/src/ui/context-menu.tsx +0 -10
  354. package/src/ui/count-pop.tsx +0 -2
  355. package/src/ui/crossfade-icon.tsx +0 -3
  356. package/src/ui/date-picker.tsx +0 -40
  357. package/src/ui/dialog.tsx +0 -18
  358. package/src/ui/dropdown-menu.tsx +0 -11
  359. package/src/ui/empty-state.tsx +0 -15
  360. package/src/ui/error-boundary.tsx +0 -7
  361. package/src/ui/field.tsx +0 -18
  362. package/src/ui/hover-card.tsx +0 -6
  363. package/src/ui/image-lightbox.tsx +0 -7
  364. package/src/ui/input-group.alt.tsx +0 -16
  365. package/src/ui/input-group.tsx +0 -3
  366. package/src/ui/kbd.tsx +0 -3
  367. package/src/ui/label.tsx +0 -1
  368. package/src/ui/labeled-slider-row.tsx +0 -2
  369. package/src/ui/list-row.tsx +0 -46
  370. package/src/ui/loading-state.tsx +0 -23
  371. package/src/ui/marquee-on-hover.tsx +1 -6
  372. package/src/ui/media-preview.tsx +0 -5
  373. package/src/ui/modalTransition.ts +0 -25
  374. package/src/ui/overlay-a11y.ts +0 -1
  375. package/src/ui/page-title.tsx +0 -4
  376. package/src/ui/popover.tsx +0 -8
  377. package/src/ui/progress.tsx +0 -1
  378. package/src/ui/refresh-spin-icon.tsx +0 -11
  379. package/src/ui/relative-date-time.tsx +0 -3
  380. package/src/ui/rolling-number.tsx +0 -2
  381. package/src/ui/search-input.tsx +0 -9
  382. package/src/ui/select-field.tsx +0 -5
  383. package/src/ui/select.tsx +0 -8
  384. package/src/ui/send-queue-icon.tsx +0 -3
  385. package/src/ui/separator.tsx +0 -1
  386. package/src/ui/sheet.tsx +0 -42
  387. package/src/ui/slide-over-panel.tsx +0 -2
  388. package/src/ui/slider.tsx +21 -9
  389. package/src/ui/sonner-icons.tsx +0 -4
  390. package/src/ui/sonner.tsx +0 -78
  391. package/src/ui/spinner.tsx +0 -50
  392. package/src/ui/status-dot.tsx +0 -10
  393. package/src/ui/surface.tsx +0 -13
  394. package/src/ui/switch.tsx +72 -3
  395. package/src/ui/table.tsx +0 -3
  396. package/src/ui/tabs-transition.tsx +0 -12
  397. package/src/ui/tabs.tsx +0 -17
  398. package/src/ui/tabsSliding.ts +0 -5
  399. package/src/ui/time-picker.tsx +0 -17
  400. package/src/ui/toggle-search.tsx +0 -6
  401. package/src/ui/toolbar-search-input.tsx +0 -3
  402. package/src/ui/tooltip.tsx +0 -5
  403. package/src/ui/ui-config.tsx +0 -19
  404. package/src/utils/cat-color.ts +0 -20
  405. package/src/utils/cn.ts +0 -4
  406. package/src/utils/gesture.ts +0 -8
  407. package/src/utils/ref.ts +0 -1
  408. package/src/utils/runtimeVisibility.ts +0 -19
  409. package/src/utils/surface-radius.ts +0 -11
  410. package/src/utils/useDragSensors.ts +0 -2
  411. package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
  412. package/tokens/examples/toaster/Fixture.tsx +0 -4
  413. package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
  414. package/tokens/examples/toaster/vite.config.ts +0 -2
  415. package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
  416. package/tokens/examples/tokens-moved/vite.config.ts +0 -2
  417. package/tokens/src/tailwind-preset.mjs +0 -3
@@ -21,7 +21,6 @@ import { createContext, useContext, useEffect, useRef, useState } from "react";
21
21
  import { bundledLanguages, createHighlighter } from "shiki";
22
22
  const isBundledLanguage = (lang: string): lang is BundledLanguage =>
23
23
  lang in bundledLanguages;
24
- // Shiki uses bitflags for font styles: 1=italic, 2=bold, 4=underline
25
24
  // biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
26
25
  // eslint-disable-next-line no-bitwise -- shiki bitflag check
27
26
  const isItalic = (fontStyle: number | undefined) => fontStyle && fontStyle & 1;
@@ -33,7 +32,6 @@ const isUnderline = (fontStyle: number | undefined) =>
33
32
  // biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
34
33
  // oxlint-disable-next-line eslint(no-bitwise)
35
34
  fontStyle && fontStyle & 4;
36
- // Transform tokens to include pre-computed keys to avoid noArrayIndexKey lint
37
35
  interface KeyedToken {
38
36
  token: ThemedToken;
39
37
  key: string;
@@ -50,7 +48,6 @@ const addKeysToTokens = (lines: ThemedToken[][]): KeyedLine[] =>
50
48
  token,
51
49
  })),
52
50
  }));
53
- // Token rendering component
54
51
  const TokenSpan = ({ token }: { token: ThemedToken }) => (
55
52
  <span
56
53
  className="dark:bg-(--shiki-dark-bg)! dark:text-(--shiki-dark)!"
@@ -68,7 +65,6 @@ const TokenSpan = ({ token }: { token: ThemedToken }) => (
68
65
  {token.content}
69
66
  </span>
70
67
  );
71
- // Line rendering component
72
68
  const LineSpan = ({
73
69
  keyedLine,
74
70
  showLineNumbers,
@@ -84,17 +80,10 @@ const LineSpan = ({
84
80
  ))}
85
81
  </span>
86
82
  );
87
- // Types
88
83
  type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
89
84
  code: string;
90
- /** Shiki language id. Without it the code renders unhighlighted. */
91
85
  language?: string;
92
86
  showLineNumbers?: boolean;
93
- /**
94
- * Plain text, no shiki: a `pre` with the code. `children`, when given,
95
- * replace that `pre` (and carry their own copy button) instead of sitting
96
- * above the highlighted body.
97
- */
98
87
  plain?: boolean;
99
88
  };
100
89
  /**
@@ -114,7 +103,6 @@ export interface CodeBlockConfig {
114
103
  container?: string;
115
104
  pre?: string;
116
105
  copyButton?: string;
117
- /** Replaces the icon's `size={14}` with a class. */
118
106
  copyIcon?: string;
119
107
  };
120
108
  }
@@ -128,18 +116,14 @@ interface TokenizedCode {
128
116
  interface CodeBlockContextType {
129
117
  code: string;
130
118
  }
131
- // Context
132
119
  const CodeBlockContext = createContext<CodeBlockContextType>({
133
120
  code: "",
134
121
  });
135
- // Highlighter cache (singleton per language)
136
122
  const highlighterCache = new Map<
137
123
  string,
138
124
  Promise<HighlighterGeneric<BundledLanguage, BundledTheme>>
139
125
  >();
140
- // Token cache
141
126
  const tokensCache = new Map<string, TokenizedCode>();
142
- // Subscribers for async token updates
143
127
  const subscribers = new Map<string, Set<(result: TokenizedCode) => void>>();
144
128
  const getTokensCacheKey = (code: string, language: BundledLanguage) => {
145
129
  const start = code.slice(0, 100);
@@ -160,7 +144,6 @@ const getHighlighter = (
160
144
  highlighterCache.set(language, highlighterPromise);
161
145
  return highlighterPromise;
162
146
  };
163
- // Create raw tokens for immediate display while highlighting loads
164
147
  const createRawTokens = (code: string): TokenizedCode => ({
165
148
  bg: "transparent",
166
149
  fg: "inherit",
@@ -175,7 +158,6 @@ const createRawTokens = (code: string): TokenizedCode => ({
175
158
  ],
176
159
  ),
177
160
  });
178
- // Synchronous highlight with callback for async results
179
161
  export const highlightCode = (
180
162
  code: string,
181
163
  language: string,
@@ -184,19 +166,16 @@ export const highlightCode = (
184
166
  ): TokenizedCode | null => {
185
167
  if (!isBundledLanguage(language)) return null;
186
168
  const tokensCacheKey = getTokensCacheKey(code, language);
187
- // Return cached result if available
188
169
  const cached = tokensCache.get(tokensCacheKey);
189
170
  if (cached) {
190
171
  return cached;
191
172
  }
192
- // Subscribe callback if provided
193
173
  if (callback) {
194
174
  if (!subscribers.has(tokensCacheKey)) {
195
175
  subscribers.set(tokensCacheKey, new Set());
196
176
  }
197
177
  subscribers.get(tokensCacheKey)?.add(callback);
198
178
  }
199
- // Start highlighting in background - fire-and-forget async pattern
200
179
  getHighlighter(language)
201
180
  // oxlint-disable-next-line eslint-plugin-promise(prefer-await-to-then)
202
181
  .then((highlighter) => {
@@ -214,9 +193,7 @@ export const highlightCode = (
214
193
  fg: result.fg ?? "inherit",
215
194
  tokens: result.tokens,
216
195
  };
217
- // Cache the result
218
196
  tokensCache.set(tokensCacheKey, tokenized);
219
- // Notify all subscribers
220
197
  const subs = subscribers.get(tokensCacheKey);
221
198
  if (subs) {
222
199
  for (const sub of subs) {
@@ -232,7 +209,6 @@ export const highlightCode = (
232
209
  });
233
210
  return null;
234
211
  };
235
- // Line number styles using CSS counters
236
212
  const LINE_NUMBER_CLASSES = cn(
237
213
  "block",
238
214
  "before:content-[counter(line)]",
@@ -364,17 +340,13 @@ export const CodeBlockContent = ({
364
340
  language: string;
365
341
  showLineNumbers?: boolean;
366
342
  }) => {
367
- // Memoized raw tokens for immediate display
368
343
  const rawTokens = createRawTokens(code);
369
- // Try to get cached result synchronously, otherwise use raw tokens
370
344
  const [tokenized, setTokenized] = useState<TokenizedCode>(
371
345
  () => highlightCode(code, language) ?? rawTokens,
372
346
  );
373
347
  useEffect(() => {
374
348
  let cancelled = false;
375
- // Reset to raw tokens when code changes (shows current code, not stale tokens)
376
349
  setTokenized(highlightCode(code, language) ?? rawTokens);
377
- // Subscribe to async highlighting result
378
350
  highlightCode(code, language, (result) => {
379
351
  if (!cancelled) {
380
352
  setTokenized(result);
@@ -5,7 +5,6 @@ import { Button } from "../ui/button";
5
5
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible";
6
6
  import { cn } from "../utils/cn";
7
7
 
8
- /** Match t3code MessagesTimeline collapsible user prompts. */
9
8
  const MAX_COLLAPSED_USER_MESSAGE_LINES = 8;
10
9
  const MAX_COLLAPSED_USER_MESSAGE_LENGTH = 600;
11
10
  const COLLAPSED_USER_MESSAGE_FADE_HEIGHT_REM = 1.75;
@@ -24,7 +23,6 @@ function shouldCollapseUserMessage(text: string): boolean {
24
23
  export interface CollapsibleUserMessageBodyProps {
25
24
  text: string;
26
25
  children: ReactNode;
27
- /** Merged after the trigger button's classes. */
28
26
  className?: string;
29
27
  }
30
28
 
@@ -19,10 +19,6 @@ const ICON_VIEWBOX = 24;
19
19
  const ICON_CENTER = 12;
20
20
  const ICON_STROKE_WIDTH = 2;
21
21
 
22
- /**
23
- * Per-category token counts. Cache reads and writes are priced very differently
24
- * (reads ~0.1x input, writes ~1.25x input), so they are tracked separately.
25
- */
26
22
  interface LanguageModelUsage {
27
23
  inputTokens?: number;
28
24
  outputTokens?: number;
@@ -30,11 +26,6 @@ interface LanguageModelUsage {
30
26
  cachedInputWriteTokens?: number;
31
27
  }
32
28
 
33
- /**
34
- * Pre-computed costs (USD). Pass these when the authoritative cost is known
35
- * (e.g. Claude returns `total_cost_usd` directly). Avoids needing a pricing
36
- * catalog at render time.
37
- */
38
29
  interface ContextCosts {
39
30
  totalUSD?: number;
40
31
  inputUSD?: number;
@@ -224,7 +215,6 @@ export const ContextUsageContentBody = ({
224
215
  const formatUSD = (value: number) =>
225
216
  new Intl.NumberFormat("en-US", {
226
217
  currency: "USD",
227
- // Claude's per-call cost is often sub-cent; show enough precision to be useful.
228
218
  maximumFractionDigits: 4,
229
219
  minimumFractionDigits: 2,
230
220
  style: "currency",
@@ -100,25 +100,11 @@ export const ConversationEmptyState = ({
100
100
  );
101
101
  };
102
102
  export type ConversationScrollButtonProps = ComponentProps<typeof Button> & {
103
- /** Text after the icon; also the button's `aria-label` and `title`. Without it, the icon-only button's `aria-label` is "Scroll to bottom". */
104
103
  label?: string;
105
- /** Replaces the arrow icon. */
106
104
  icon?: ReactNode;
107
- /**
108
- * Wait this long (ms) after leaving the bottom before showing the button,
109
- * so brief layout settles do not flash it. Hiding is immediate. Default 0.
110
- */
111
105
  showDelay?: number;
112
- /**
113
- * When this changes (for example the thread id), hide the button at once and
114
- * cancel a pending show; it shows again on the next scroll away.
115
- */
116
106
  resetKey?: string;
117
107
  };
118
- /**
119
- * `wanted`, or (with a delay or reset key) `wanted` held for `delay` ms, and
120
- * a function that hides it at once.
121
- */
122
108
  function useDelayedShow(
123
109
  wanted: boolean,
124
110
  delay: number,
@@ -132,7 +118,6 @@ function useDelayedShow(
132
118
  timerRef.current = null;
133
119
  setShown(false);
134
120
  };
135
- // The reset also cancels the pending show timer, a side effect.
136
121
  useEffect(() => {
137
122
  if (!debounced) return;
138
123
  if (timerRef.current !== null) clearTimeout(timerRef.current);
@@ -183,7 +168,6 @@ export const ConversationScrollButton = ({
183
168
  hide();
184
169
  scrollToBottom();
185
170
  };
186
- // The full-width row lets clicks through to the messages; the button takes them.
187
171
  const motionClass =
188
172
  classes?.scrollButtonMotion ?? "pointer-events-none absolute bottom-4 left-0 right-0 z-10 flex justify-center";
189
173
  const presence = (
@@ -22,53 +22,26 @@ import {
22
22
 
23
23
  export interface JumpRailItem {
24
24
  id: string;
25
- /** First line of the preview card; also the button's accessible label. */
26
25
  title: string;
27
- /** Up to three lines under the title. */
28
26
  preview?: string | null;
29
- /** Heading level (1 is the longest tick). Deeper levels get shorter, indented ticks. */
30
27
  level?: number;
31
28
  }
32
29
 
33
30
  export interface JumpRailProps {
34
31
  items: readonly JumpRailItem[];
35
- /** The scroll container. Read when the rail observes and scrolls. */
36
32
  scrollRef?: RefObject<HTMLElement | null>;
37
- /** Alternative to `scrollRef`: returns the scroll container. */
38
33
  getScrollElement?: () => HTMLElement | null;
39
- /** Attribute that holds an item id on its target. Default `data-message-id`. */
40
34
  targetAttribute?: string;
41
- /** Replaces the `[targetAttribute="id"]` lookup inside the scroll container. */
42
35
  resolveTarget?: (root: HTMLElement, id: string) => HTMLElement | null;
43
- /**
44
- * Called when the target is not in the DOM (for example a windowed
45
- * transcript). The consumer renders it and scrolls to it.
46
- */
47
36
  onReveal?: (id: string) => void;
48
- /** Called just before `onReveal`, for example `stopScroll` from use-stick-to-bottom. */
49
37
  onBeforeScroll?: () => void;
50
- /**
51
- * Called after the user picks an item by click or Enter/Space, once the
52
- * scroll has started or `onReveal` has run. For example, to move focus to the
53
- * target for keyboard users.
54
- */
55
38
  onSelect?: (id: string) => void;
56
- /**
57
- * Changing this re-observes the targets. Use it when rows render later or
58
- * the window grows, for example the first rendered id.
59
- */
60
39
  observeKey?: string | number | null;
61
- /** The rail renders nothing below this many items. Default 2. */
62
40
  minVisibleItems?: number;
63
- /** Merged into the wrapper classes, which place the rail. */
64
41
  className?: string;
65
- /** Wrapper `aria-label`. Default "Jump to message". */
66
42
  ariaLabel?: string;
67
- /** Start of the button label, followed by the active title. Default "Jump to message". */
68
43
  buttonLabel?: string;
69
- /** Button label subject while no item is active. Default "User message". */
70
44
  fallbackLabel?: string;
71
- /** Wrapper `data-testid`. Default `jump-rail`. */
72
45
  testId?: string;
73
46
  }
74
47
 
@@ -116,8 +89,6 @@ export function JumpRail({
116
89
  const [hoverIndex, setHoverIndex] = useState<number | null>(null);
117
90
  const [inViewIds, setInViewIds] = useState<ReadonlySet<string>>(() => new Set());
118
91
 
119
- // Latest props for the effect and handlers, so an inline getter or resolver
120
- // does not rebuild the observer on every render.
121
92
  const latest = useRef({ scrollRef, getScrollElement, resolveTarget, targetAttribute });
122
93
  latest.current = { scrollRef, getScrollElement, resolveTarget, targetAttribute };
123
94
  const readRoot = () =>
@@ -170,8 +141,6 @@ export function JumpRail({
170
141
  onSelect?.(id);
171
142
  return;
172
143
  }
173
- // Rendering earlier rows grows the content; a reader stuck to the bottom
174
- // would be pulled back down instead of reaching the item.
175
144
  onBeforeScroll?.();
176
145
  onReveal?.(id);
177
146
  onSelect?.(id);
@@ -32,7 +32,6 @@ export interface MessageConfig {
32
32
  assistant?: string;
33
33
  content?: string;
34
34
  branchSelector?: string;
35
- /** Replaces the branch arrows' `size={14}` with a class. */
36
35
  branchIcon?: string;
37
36
  };
38
37
  }
@@ -43,28 +42,15 @@ export interface MessageConfig {
43
42
  export type MessageMenuAction = {
44
43
  key: string;
45
44
  label: string;
46
- /** Shows the action in the hover toolbar (an icon button). Without it: menu only. */
47
45
  icon?: ReactNode;
48
46
  destructive?: boolean;
49
47
  disabled?: boolean;
50
48
  onSelect: () => void;
51
- /** Force the hover toolbar on (`true`) or off (`false`). Default: on when there is an `icon`. */
52
49
  hover?: boolean;
53
50
  };
54
51
  export type MessageProps = HTMLAttributes<HTMLDivElement> & {
55
52
  from: UIMessage["role"];
56
- /**
57
- * Right-click menu and hover toolbar actions, such as Reply. Without it (or
58
- * empty) `Message` renders the same `div` as before. With it a right click
59
- * opens the menu and a hover toolbar shows beside the bubble. The toolbar is
60
- * absolutely positioned and takes no layout space.
61
- */
62
53
  actions?: MessageMenuAction[];
63
- /**
64
- * The target of a quote click: a soft primary wash and ring. Set it back to
65
- * `false` about 1.5 seconds later and it fades out (`duration-200`). Sets
66
- * `data-highlighted`.
67
- */
68
54
  highlighted?: boolean;
69
55
  };
70
56
  export const Message = ({
@@ -117,7 +103,6 @@ export const Message = ({
117
103
  };
118
104
  export type MessageContextMenuProps = {
119
105
  actions: MessageMenuAction[];
120
- /** One element, which becomes the right-click target (Radix `asChild`). */
121
106
  children: ReactElement;
122
107
  };
123
108
  /**
@@ -153,7 +138,6 @@ export type MessageHoverActionsProps = Omit<
153
138
  "children"
154
139
  > & {
155
140
  actions: MessageMenuAction[];
156
- /** Role of the message: user toolbars sit left of the bubble, others right. Default `assistant`. */
157
141
  from?: UIMessage["role"];
158
142
  };
159
143
  /**
@@ -195,7 +179,6 @@ export const MessageHoverActions = ({
195
179
  label={action.label}
196
180
  tooltip={action.label}
197
181
  tooltipSide="bottom"
198
- // Narrow: the toolbar sits on the bubble corner and a tooltip below it would cover the text.
199
182
  tooltipClassName="max-sm:hidden"
200
183
  disabled={action.disabled}
201
184
  className={action.destructive ? destructiveGhostClass : undefined}
@@ -208,11 +191,8 @@ export const MessageHoverActions = ({
208
191
  );
209
192
  };
210
193
  export type MessageQuoteProps = Omit<ComponentProps<"div">, "onClick"> & {
211
- /** Who wrote the quoted message. */
212
194
  author: string;
213
- /** The quoted text, cut to two lines. */
214
195
  text: string;
215
- /** Makes the quote a button, so the app can scroll to and highlight the original. */
216
196
  onPress?: () => void;
217
197
  };
218
198
  /**
@@ -304,9 +284,7 @@ export const MessageActionsBar = ({
304
284
  };
305
285
  export type MessageActionProps = ComponentProps<typeof Button> & {
306
286
  tooltip?: string;
307
- /** Side of the tooltip. Default: the Radix default (`top`). */
308
287
  tooltipSide?: "top" | "right" | "bottom" | "left";
309
- /** Extra classes for the tooltip content. */
310
288
  tooltipClassName?: string;
311
289
  label?: string;
312
290
  };
@@ -344,11 +322,6 @@ function EagerMessageAction({
344
322
  }
345
323
  return button;
346
324
  }
347
- /**
348
- * The tooltip mounts on first hover or focus, not with the button. Each Radix
349
- * tooltip is a dozen components plus a re-render once it has measured its
350
- * anchor; a long chat has hundreds of these buttons.
351
- */
352
325
  function LazyMessageAction({
353
326
  tooltip,
354
327
  tooltipSide,
@@ -375,8 +348,6 @@ function LazyMessageAction({
375
348
  onFocus?.(event);
376
349
  if (tooltip && armedBy === null) setArmedBy("focus");
377
350
  }}
378
- // Arming remounts the button inside the tooltip trigger; a keyboard
379
- // user keeps focus on it (and so sees the tooltip).
380
351
  autoFocus={armedBy === "focus"}
381
352
  {...props}
382
353
  >
@@ -387,7 +358,6 @@ function LazyMessageAction({
387
358
  if (tooltip && armedBy !== null) {
388
359
  return (
389
360
  <TooltipProvider>
390
- {/* The focus that armed it landed before the tooltip existed. */}
391
361
  <Tooltip defaultOpen={armedBy === "focus"}>
392
362
  <TooltipTrigger asChild>{button}</TooltipTrigger>
393
363
  <TooltipContent side={tooltipSide} className={tooltipClassName}>
@@ -513,8 +483,6 @@ export const MessageBranchSelector = ({
513
483
  );
514
484
  };
515
485
  export type MessageBranchPreviousProps = ComponentProps<typeof Button>;
516
- // Prev and next sit in a `ButtonGroup` with `rounded-md` inner corners, so they
517
- // default to `shape="rounded"`; a pill would pair a round outer end with them.
518
486
  export const MessageBranchPrevious = ({
519
487
  children,
520
488
  ...props
@@ -137,7 +137,6 @@ export function ModelPickerContent<TModel extends string>({
137
137
  accounts?: ReadonlyArray<ModelAccount>;
138
138
  onSelect: (modelId: TModel, accountId: string | null) => void;
139
139
  canSelectTeamWhilePersonal?: boolean;
140
- /** Trait controls (or any extra chrome) pinned above the model list. */
141
140
  header?: ReactNode;
142
141
  }) {
143
142
  const merge = useCn();
@@ -222,7 +221,6 @@ export function ModelPickerContent<TModel extends string>({
222
221
  searchInputRef.current?.focus({ preventScroll: true });
223
222
  };
224
223
 
225
- // Match t3code: focus survives popover open + any later focus steal.
226
224
  useLayoutEffect(() => {
227
225
  focusSearch();
228
226
  const frame = window.requestAnimationFrame(() => {
@@ -237,7 +235,6 @@ export function ModelPickerContent<TModel extends string>({
237
235
  };
238
236
  }, []);
239
237
 
240
- // Measure the active rail button — hardcoded spacing drifts vs real layout.
241
238
  useLayoutEffect(() => {
242
239
  if (isSearching) {
243
240
  setIndicatorTop(null);
@@ -255,8 +252,6 @@ export function ModelPickerContent<TModel extends string>({
255
252
  setIndicatorTop(null);
256
253
  return;
257
254
  }
258
- // With a scrolling rail the active provider can open off-screen; `nearest`
259
- // is a no-op when it is already visible.
260
255
  selectedButton.scrollIntoView({ block: "nearest" });
261
256
  const contentRect = content.getBoundingClientRect();
262
257
  const buttonRect = selectedButton.getBoundingClientRect();
@@ -299,19 +294,12 @@ export function ModelPickerContent<TModel extends string>({
299
294
  ) : null}
300
295
  <div className="flex min-h-0 flex-1 overflow-hidden">
301
296
  {!isSearching ? (
302
- // The rail grows with every provider + personal account, so it has to
303
- // scroll on its own once it outruns the panel — `overflow-hidden`
304
- // simply clipped the tail off.
305
297
  <div className="w-12 shrink-0 overflow-y-auto overscroll-contain border-r border-border bg-surface-secondary/30 scrollbar-none">
306
298
  <div
307
299
  ref={railContentRef}
308
300
  className="relative flex flex-col gap-1 px-1 pb-1 pt-0.5"
309
301
  >
310
302
  {indicatorTop !== null ? (
311
- // Pinned at `top: 0` and moved by `translateY`, the same way the
312
- // tabs pill lands on its tab. Transitioning `top` relayouted the
313
- // rail on every frame of a slide that happens while the pointer
314
- // is still moving down the list.
315
303
  <div
316
304
  className="pointer-events-none absolute top-0 right-0 z-10 h-5 w-[3px] rounded-l-full bg-primary transition-transform duration-[var(--motion-base)]"
317
305
  style={{ transform: `translateY(${indicatorTop}px)` }}
@@ -369,11 +357,6 @@ export function ModelPickerContent<TModel extends string>({
369
357
  </div>
370
358
  ) : null}
371
359
 
372
- {/*
373
- Key only on the rail instance — NOT on isSearching. Remounting when the
374
- first search character lands unmounts the input and drops focus (the
375
- "click twice" bug). Row filtering already switches search vs rail views.
376
- */}
377
360
  <Command
378
361
  key={selectedInstanceKey}
379
362
  className="flex min-w-0 flex-1 flex-col rounded-none border-0 bg-surface-secondary/40"
@@ -9,10 +9,6 @@ export interface ModelAccount {
9
9
  id: string;
10
10
  provider: string;
11
11
  label: string;
12
- /**
13
- * Owned by whoever the run bills to, not a teammate's shared account. Only
14
- * own accounts may be picked automatically; a teammate's share is explicit.
15
- */
16
12
  isOwn: boolean;
17
13
  }
18
14
 
@@ -36,7 +32,6 @@ export function formatModelDisplayLabel(
36
32
  provider: string,
37
33
  label: string,
38
34
  ): string {
39
- // Codex models are already named "GPT …"; don't prefix with "Codex".
40
35
  if (provider === "codex") {
41
36
  return label;
42
37
  }
@@ -37,10 +37,6 @@ export interface ModelPickerConfig {
37
37
  }
38
38
 
39
39
  const TRIGGER_CLASS =
40
- // Carries `data-slot="select-trigger"` and is styled to read as one, so it
41
- // has to press like one: `motion-press active:scale-[0.98]`, like the select
42
- // triggers it sits beside in a composer footer. `motion-press` supersedes
43
- // `transition-colors`: the two at equal specificity replace each other.
44
40
  "motion-press flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-muted-foreground hover:bg-surface-tertiary hover:text-foreground active:scale-[0.98] disabled:opacity-50";
45
41
 
46
42
  /**
@@ -89,39 +85,13 @@ export interface ModelPickerProps<TModel extends string = string> {
89
85
  options: ReadonlyArray<ModelOption<TModel>>;
90
86
  disabled?: boolean;
91
87
  className?: string;
92
- /**
93
- * The user's own provider accounts. When non-empty, each provider opens into
94
- * Team + account groups, each listing that provider's models so picking a
95
- * model also picks whose credential runs it.
96
- */
97
88
  accounts?: ReadonlyArray<ModelAccount>;
98
- /** Currently selected account id, or null for the team credential. */
99
89
  accountId?: string | null;
100
- /** Fired alongside a model change with the chosen account (null = team). */
101
90
  onAccountChange?: (accountId: string | null) => void;
102
- /**
103
- * When set, called once per pick instead of separate model/account
104
- * callbacks — use this to persist both fields in a single mutation.
105
- */
106
91
  onSelectionChange?: (model: TModel, accountId: string | null) => void;
107
- /**
108
- * When a personal account is selected, Team for that provider is shown
109
- * disabled. Set false when the viewer cannot switch the sticky account
110
- * (e.g. non-owner on a task) so Team stays unselectable.
111
- */
112
92
  canSelectTeamWhilePersonal?: boolean;
113
- /**
114
- * The selected model's traits. Required so no picker drops them by
115
- * accident: pass `null` only where runs take no traits.
116
- */
117
93
  traits: ModelPickerTraits | null;
118
- /**
119
- * Simple-view capability ladder (cheapest → strongest). When at least two of
120
- * these ids are in `options`, the popover opens on a discrete slider;
121
- * Advanced swaps to the full picker.
122
- */
123
94
  simpleLadder?: ReadonlyArray<TModel>;
124
- /** Parks the slider thumb when `value` is not itself a ladder tick. */
125
95
  simpleLadderSnap?: TModel;
126
96
  }
127
97
 
@@ -269,10 +239,6 @@ export function ModelPicker<TModel extends string>({
269
239
  size={14}
270
240
  />
271
241
  )}
272
- {/* On a phone the composer's under-bar is only a few hundred pixels
273
- wide, so the label gives up width to the control beside it rather
274
- than pushing it out of the row. `min-w-0` is the load-bearing half
275
- — a flex child defaults to `min-width: auto` and never shrinks. */}
276
242
  <span className="whitespace-nowrap text-left max-sm:min-w-0 max-sm:truncate">
277
243
  {triggerLabel}
278
244
  {triggerSuffix ? (
@@ -296,8 +262,6 @@ export function ModelPicker<TModel extends string>({
296
262
  }
297
263
  onOpenAutoFocus={(event) => {
298
264
  if (showLadder) return;
299
- // Let ModelPickerContent own focus (search input); Radix would
300
- // otherwise park it on the first focusable and fight our layout effect.
301
265
  event.preventDefault();
302
266
  }}
303
267
  >
@@ -140,7 +140,6 @@ export type ModelSelectorLogoProps = Omit<
140
140
  ComponentProps<"svg">,
141
141
  "children"
142
142
  > & {
143
- /** Rendered width and height in px. Default 12, the old `<img>` size. */
144
143
  size?: number;
145
144
  provider:
146
145
  | "moonshotai-cn"
@@ -203,10 +202,6 @@ export type ModelSelectorLogoProps = Omit<
203
202
  | (string & {});
204
203
  };
205
204
 
206
- /**
207
- * models.dev provider ids that have a `ProviderIcon` mark. `ProviderIcon`
208
- * knows four marks: Claude, OpenAI (`codex`), OpenCode and Cursor.
209
- */
210
205
  const LOGO_PROVIDER: Record<string, string> = {
211
206
  anthropic: "claude",
212
207
  "google-vertex-anthropic": "claude",
@@ -2,11 +2,6 @@ import { useEffect, useRef, useState } from "react";
2
2
  import { IconMicrophone, IconPlayerStop } from "@tabler/icons-react";
3
3
  import { PromptInputButton } from "./prompt-input";
4
4
 
5
- // Web Speech API dictation for the prompt input: `useSpeechRecognition` streams
6
- // the transcript (prefix + finals + interim) to a callback, and
7
- // `PromptInputSpeech` is a microphone button that writes it into the form's
8
- // `textarea[name="message"]`.
9
-
10
5
  interface SpeechRecognitionResult {
11
6
  readonly isFinal: boolean;
12
7
  readonly length: number;
@@ -36,11 +31,6 @@ interface SpeechRecognitionInstance extends EventTarget {
36
31
 
37
32
  type SpeechRecognitionConstructor = new () => SpeechRecognitionInstance;
38
33
 
39
- // Read the constructors through a local type: a package must not augment the
40
- // global Window. Apps often declare their own `Window.SpeechRecognition` with
41
- // other event types, so `window` is cast to this shape rather than assigned
42
- // (an assignment fails to typecheck in those apps; see
43
- // consumer/window-speech-global.d.ts).
44
34
  type SpeechRecognitionWindow = {
45
35
  SpeechRecognition?: SpeechRecognitionConstructor;
46
36
  webkitSpeechRecognition?: SpeechRecognitionConstructor;
@@ -120,7 +110,6 @@ export function useSpeechRecognition(onUpdate: (fullText: string) => void) {
120
110
  }
121
111
  };
122
112
 
123
- // Stop listening on unmount.
124
113
  useEffect(
125
114
  () => () => {
126
115
  recognitionRef.current?.stop();