@vvedantb/ui 0.66.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 (423) 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/SidebarAccountMenu.js +1 -1
  35. package/dist/shell/src/SidebarChrome.js +0 -19
  36. package/dist/shell/src/SidebarIconTooltip.js +0 -1
  37. package/dist/shell/src/SidebarRail.js +0 -12
  38. package/dist/shell/src/SidebarResize.js +1 -4
  39. package/dist/shell/src/app-shell-classes.js +0 -10
  40. package/dist/shell/src/index.js +0 -1
  41. package/dist/shell/src/shell-panel-motion.js +0 -12
  42. package/dist/src/ai-elements/activity-shared.js +0 -6
  43. package/dist/src/ai-elements/activity-step-label.js +0 -6
  44. package/dist/src/ai-elements/activity-step-types.js +0 -4
  45. package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
  46. package/dist/src/ai-elements/activity-tasks.js +0 -55
  47. package/dist/src/ai-elements/artifact.js +0 -4
  48. package/dist/src/ai-elements/attachments.js +0 -41
  49. package/dist/src/ai-elements/code-block.js +0 -18
  50. package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
  51. package/dist/src/ai-elements/context.js +0 -13
  52. package/dist/src/ai-elements/conversation.js +0 -4
  53. package/dist/src/ai-elements/jump-rail.js +0 -5
  54. package/dist/src/ai-elements/message.js +3 -9
  55. package/dist/src/ai-elements/model-picker-types.js +0 -1
  56. package/dist/src/ai-elements/model-picker.js +1 -6
  57. package/dist/src/ai-elements/model-selector.js +0 -4
  58. package/dist/src/ai-elements/prompt-input-speech.js +0 -13
  59. package/dist/src/ai-elements/prompt-input.js +0 -1
  60. package/dist/src/ai-elements/provider-icon.js +0 -4
  61. package/dist/src/ai-elements/queue.js +2 -16
  62. package/dist/src/ai-elements/shimmer.js +0 -14
  63. package/dist/src/ai-elements/speech-input.js +0 -7
  64. package/dist/src/artifacts/artifact-card.js +1 -1
  65. package/dist/src/artifacts/artifact-frame.js +0 -2
  66. package/dist/src/artifacts/artifact-viewer.js +2 -1
  67. package/dist/src/audio/playChime.js +0 -2
  68. package/dist/src/audio/playTone.js +1 -4
  69. package/dist/src/brand/AppWordmark.js +0 -5
  70. package/dist/src/brand/svg.js +0 -6
  71. package/dist/src/client.js +0 -43
  72. package/dist/src/composer/Composer.js +0 -27
  73. package/dist/src/composer/input-area/InputArea.js +0 -3
  74. package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
  75. package/dist/src/composer/input-area/composerPrediction.js +0 -3
  76. package/dist/src/generative-ui/content.js +0 -2
  77. package/dist/src/generative-ui/index.js +0 -3
  78. package/dist/src/generative-ui/layout.js +0 -5
  79. package/dist/src/hooks/use-count-up-display.js +0 -2
  80. package/dist/src/hooks/use-idle-callback.js +0 -3
  81. package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
  82. package/dist/src/icons/animated/index.js +0 -4
  83. package/dist/src/icons/board-icon.js +74 -41
  84. package/dist/src/icons/bolt-icon.js +30 -20
  85. package/dist/src/icons/building-icon.js +125 -61
  86. package/dist/src/icons/files-icon.js +103 -43
  87. package/dist/src/icons/inbox-icon.js +101 -49
  88. package/dist/src/icons/index.js +2 -1
  89. package/dist/src/icons/memory-icon.js +135 -58
  90. package/dist/src/icons/search-icon.js +143 -46
  91. package/dist/src/icons/settings-icon.js +113 -53
  92. package/dist/src/icons/solid-icons.js +665 -0
  93. package/dist/src/icons/with-active.js +25 -0
  94. package/dist/src/index.js +0 -40
  95. package/dist/src/kibo/gantt-features.js +0 -10
  96. package/dist/src/kibo/gantt-provider.js +0 -34
  97. package/dist/src/kibo/kanban.js +0 -15
  98. package/dist/src/kibo/list.js +0 -3
  99. package/dist/src/kibo/video-player.js +0 -7
  100. package/dist/src/logos/index.js +0 -4
  101. package/dist/src/markdown/Markdown.js +0 -15
  102. package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
  103. package/dist/src/markdown/MarkdownInlineCode.js +0 -6
  104. package/dist/src/markdown/MarkdownLink.js +0 -5
  105. package/dist/src/markdown/codeFence.js +0 -1
  106. package/dist/src/markdown/codeHighlight.js +0 -19
  107. package/dist/src/markdown/incrementalBlocks.js +0 -45
  108. package/dist/src/markdown/markdownClipboard.js +0 -13
  109. package/dist/src/markdown/mermaid.js +0 -25
  110. package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
  111. package/dist/src/markdown/useSmoothText.js +0 -5
  112. package/dist/src/marketing/PricingModal.js +0 -2
  113. package/dist/src/marketing/ProductHero.js +0 -2
  114. package/dist/src/marketing/createLandingKit.js +0 -5
  115. package/dist/src/marketing/marketing-classes.js +0 -7
  116. package/dist/src/motion/dock-motion.js +0 -27
  117. package/dist/src/motion/panel-transition.js +0 -2
  118. package/dist/src/ui/_field-classes.js +0 -3
  119. package/dist/src/ui/_menu-classes.js +6 -6
  120. package/dist/src/ui/_picker-classes.js +0 -9
  121. package/dist/src/ui/accordion.alt.js +0 -12
  122. package/dist/src/ui/badge.js +0 -1
  123. package/dist/src/ui/border-beam.js +0 -2
  124. package/dist/src/ui/breadcrumb.js +0 -15
  125. package/dist/src/ui/bulk-action-bar.js +0 -11
  126. package/dist/src/ui/button.js +0 -20
  127. package/dist/src/ui/calendar.js +1 -20
  128. package/dist/src/ui/card.js +0 -3
  129. package/dist/src/ui/carousel.js +0 -1
  130. package/dist/src/ui/clear-input.alt.js +0 -9
  131. package/dist/src/ui/clearInputDissolve.js +0 -4
  132. package/dist/src/ui/command.js +0 -15
  133. package/dist/src/ui/confetti-burst.js +0 -3
  134. package/dist/src/ui/confirm-dialog-parts.js +0 -11
  135. package/dist/src/ui/confirm-dialog.js +0 -6
  136. package/dist/src/ui/context-menu.js +40 -34
  137. package/dist/src/ui/crossfade-icon.js +0 -2
  138. package/dist/src/ui/date-picker.js +0 -22
  139. package/dist/src/ui/dialog.js +0 -5
  140. package/dist/src/ui/dropdown-menu.js +40 -34
  141. package/dist/src/ui/empty-state.js +0 -7
  142. package/dist/src/ui/field.js +0 -21
  143. package/dist/src/ui/image-lightbox.js +0 -5
  144. package/dist/src/ui/input-group.alt.js +0 -24
  145. package/dist/src/ui/input-group.js +0 -4
  146. package/dist/src/ui/kbd.js +0 -3
  147. package/dist/src/ui/loading-state.js +0 -17
  148. package/dist/src/ui/marquee-on-hover.js +0 -3
  149. package/dist/src/ui/media-preview.js +0 -2
  150. package/dist/src/ui/modalTransition.js +0 -33
  151. package/dist/src/ui/overlay-a11y.js +0 -1
  152. package/dist/src/ui/page-title.js +0 -3
  153. package/dist/src/ui/refresh-spin-icon.js +0 -12
  154. package/dist/src/ui/search-input.js +0 -1
  155. package/dist/src/ui/select-field.js +0 -1
  156. package/dist/src/ui/send-queue-icon.js +0 -3
  157. package/dist/src/ui/sheet.js +0 -33
  158. package/dist/src/ui/slider.js +103 -82
  159. package/dist/src/ui/sonner-icons.js +0 -5
  160. package/dist/src/ui/sonner.js +0 -60
  161. package/dist/src/ui/spinner.js +0 -35
  162. package/dist/src/ui/status-dot.js +0 -2
  163. package/dist/src/ui/surface.js +0 -14
  164. package/dist/src/ui/switch.js +213 -36
  165. package/dist/src/ui/table.js +0 -1
  166. package/dist/src/ui/tabs-transition.js +0 -1
  167. package/dist/src/ui/tabs.js +0 -17
  168. package/dist/src/ui/tabsSliding.js +0 -6
  169. package/dist/src/ui/time-picker.js +0 -15
  170. package/dist/src/ui/toggle-search.js +0 -3
  171. package/dist/src/ui/ui-config.js +0 -16
  172. package/dist/src/utils/cat-color.js +0 -17
  173. package/dist/src/utils/cn.js +0 -5
  174. package/dist/src/utils/gesture.js +0 -8
  175. package/dist/src/utils/ref.js +0 -1
  176. package/dist/src/utils/runtimeVisibility.js +1 -22
  177. package/dist/src/utils/surface-radius.js +0 -11
  178. package/dist/src/utils/useDragSensors.js +0 -4
  179. package/dist/tokens/src/tailwind-preset.mjs +0 -3
  180. package/package.json +3 -3
  181. package/scripts/build-brand-assets.mjs +0 -8
  182. package/shell/src/AppShell.tsx +0 -37
  183. package/shell/src/AppSidebar.tsx +0 -14
  184. package/shell/src/ButtonTrack.tsx +0 -1
  185. package/shell/src/PageHeaderBar.tsx +0 -61
  186. package/shell/src/PageWrapper.tsx +0 -26
  187. package/shell/src/PillTabs.tsx +0 -1
  188. package/shell/src/SessionsHoverCard.tsx +0 -40
  189. package/shell/src/SidePanelTabs.tsx +0 -61
  190. package/shell/src/Sidebar.tsx +0 -1
  191. package/shell/src/SidebarAccountMenu.tsx +1 -41
  192. package/shell/src/SidebarChrome.tsx +0 -32
  193. package/shell/src/SidebarIconTooltip.tsx +0 -3
  194. package/shell/src/SidebarPanel.tsx +0 -20
  195. package/shell/src/SidebarRail.tsx +0 -44
  196. package/shell/src/SidebarResize.tsx +0 -6
  197. package/shell/src/SidebarUpgradeCard.tsx +0 -2
  198. package/shell/src/SignOutDialog.tsx +0 -6
  199. package/shell/src/app-shell-classes.ts +0 -15
  200. package/shell/src/index.ts +0 -1
  201. package/shell/src/shell-panel-motion.ts +0 -11
  202. package/shell/src/shell-variant.ts +0 -6
  203. package/src/ai-elements/__snapshots__/queue.test.tsx.snap +2 -2
  204. package/src/ai-elements/activity-question.tsx +0 -2
  205. package/src/ai-elements/activity-shared.tsx +0 -11
  206. package/src/ai-elements/activity-step-detail.tsx +0 -2
  207. package/src/ai-elements/activity-step-label.ts +0 -5
  208. package/src/ai-elements/activity-step-types.ts +0 -24
  209. package/src/ai-elements/activity-tasks-utils.ts +0 -13
  210. package/src/ai-elements/activity-tasks.tsx +0 -61
  211. package/src/ai-elements/artifact.tsx +0 -7
  212. package/src/ai-elements/attachments.tsx +0 -33
  213. package/src/ai-elements/chat-day-divider.tsx +0 -3
  214. package/src/ai-elements/chat-jump-rail.tsx +0 -9
  215. package/src/ai-elements/code-block.tsx +0 -28
  216. package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
  217. package/src/ai-elements/context.tsx +0 -10
  218. package/src/ai-elements/conversation.tsx +0 -16
  219. package/src/ai-elements/jump-rail.tsx +0 -31
  220. package/src/ai-elements/message.tsx +3 -34
  221. package/src/ai-elements/model-picker-content.tsx +0 -17
  222. package/src/ai-elements/model-picker-types.ts +0 -5
  223. package/src/ai-elements/model-picker.tsx +0 -36
  224. package/src/ai-elements/model-selector.tsx +0 -5
  225. package/src/ai-elements/prompt-input-speech.tsx +0 -11
  226. package/src/ai-elements/prompt-input.tsx +0 -26
  227. package/src/ai-elements/provider-icon.tsx +0 -2
  228. package/src/ai-elements/queue.tsx +2 -20
  229. package/src/ai-elements/reasoning.tsx +0 -4
  230. package/src/ai-elements/shimmer.tsx +0 -16
  231. package/src/ai-elements/simple-model-ladder.tsx +0 -1
  232. package/src/ai-elements/speech-input.tsx +0 -6
  233. package/src/ai-elements/test-results.tsx +0 -5
  234. package/src/ai-elements/trace.tsx +0 -2
  235. package/src/ai-elements/web-preview.tsx +0 -7
  236. package/src/artifacts/artifact-card.tsx +1 -8
  237. package/src/artifacts/artifact-dialogs.tsx +0 -4
  238. package/src/artifacts/artifact-frame.tsx +0 -10
  239. package/src/artifacts/artifact-list-toolbar.tsx +0 -6
  240. package/src/artifacts/artifact-list.tsx +0 -4
  241. package/src/artifacts/artifact-type-icon.tsx +0 -1
  242. package/src/artifacts/artifact-versions-menu.tsx +0 -3
  243. package/src/artifacts/artifact-viewer.tsx +2 -6
  244. package/src/artifacts/types.ts +0 -1
  245. package/src/audio/playChime.ts +0 -1
  246. package/src/audio/playTone.ts +0 -7
  247. package/src/brand/AppIcons.tsx +0 -5
  248. package/src/brand/AppMark.tsx +0 -6
  249. package/src/brand/AppWordmark.tsx +0 -10
  250. package/src/brand/familyApps.ts +0 -2
  251. package/src/brand/svg.ts +0 -9
  252. package/src/client.ts +0 -34
  253. package/src/composer/Composer.tsx +0 -70
  254. package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
  255. package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
  256. package/src/composer/input-area/FadePresence.tsx +0 -4
  257. package/src/composer/input-area/InputActions.tsx +0 -5
  258. package/src/composer/input-area/InputArea.tsx +1 -28
  259. package/src/composer/input-area/InputAreaEditor.tsx +0 -39
  260. package/src/composer/input-area/InputBanners.tsx +0 -1
  261. package/src/composer/input-area/PromoBanner.tsx +0 -1
  262. package/src/composer/input-area/composerPrediction.ts +0 -2
  263. package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
  264. package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
  265. package/src/composer/prediction.ts +0 -6
  266. package/src/composer/useComposerPrediction.ts +0 -2
  267. package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
  268. package/src/generative-ui/content.tsx +0 -2
  269. package/src/generative-ui/index.ts +0 -3
  270. package/src/generative-ui/layout.tsx +0 -5
  271. package/src/hooks/use-count-up-display.ts +0 -1
  272. package/src/hooks/use-idle-callback.ts +0 -5
  273. package/src/hooks/use-persisted-scroll-parent.ts +0 -4
  274. package/src/hooks/use-single-flight.ts +0 -5
  275. package/src/icons/animated/animated-bell-icon.tsx +0 -6
  276. package/src/icons/animated/animated-counter.tsx +0 -5
  277. package/src/icons/animated/animated-key-icon.tsx +0 -4
  278. package/src/icons/animated/animated-notification-icon.tsx +0 -14
  279. package/src/icons/animated/animated-progress.tsx +0 -10
  280. package/src/icons/animated/animated-status-dot.tsx +0 -4
  281. package/src/icons/animated/index.ts +0 -4
  282. package/src/icons/animated/morphing-menu-icon.tsx +0 -5
  283. package/src/icons/animated/morphing-mic-icon.tsx +0 -2
  284. package/src/icons/animated/pulsing-rings.tsx +0 -4
  285. package/src/icons/automation-icon.tsx +0 -1
  286. package/src/icons/board-icon.tsx +13 -10
  287. package/src/icons/bolt-icon.tsx +5 -4
  288. package/src/icons/building-icon.tsx +11 -9
  289. package/src/icons/draft-icon.tsx +0 -1
  290. package/src/icons/files-icon.tsx +9 -5
  291. package/src/icons/inbox-arrow-icon.tsx +0 -1
  292. package/src/icons/inbox-icon.tsx +9 -5
  293. package/src/icons/index.ts +12 -1
  294. package/src/icons/memory-icon.tsx +9 -11
  295. package/src/icons/nav-icon-base.tsx +0 -10
  296. package/src/icons/search-icon.tsx +7 -6
  297. package/src/icons/settings-icon.tsx +11 -13
  298. package/src/icons/sidebar-toggle-icon.tsx +0 -1
  299. package/src/icons/solid-icons.tsx +138 -0
  300. package/src/icons/with-active.tsx +14 -0
  301. package/src/index.ts +0 -30
  302. package/src/kibo/gantt-features.tsx +0 -16
  303. package/src/kibo/gantt-header.tsx +0 -4
  304. package/src/kibo/gantt-provider.tsx +0 -36
  305. package/src/kibo/gantt-sidebar.tsx +0 -7
  306. package/src/kibo/gantt-timeline.tsx +0 -4
  307. package/src/kibo/kanban.tsx +0 -49
  308. package/src/kibo/list.tsx +0 -8
  309. package/src/kibo/theme-switcher.tsx +0 -5
  310. package/src/kibo/video-player.tsx +0 -9
  311. package/src/logos/index.ts +0 -3
  312. package/src/logos/logo-svg.tsx +0 -5
  313. package/src/markdown/Markdown.tsx +0 -20
  314. package/src/markdown/MarkdownCodeBlock.tsx +0 -14
  315. package/src/markdown/MarkdownInlineCode.tsx +0 -6
  316. package/src/markdown/MarkdownLink.tsx +0 -4
  317. package/src/markdown/codeFence.ts +0 -3
  318. package/src/markdown/codeHighlight.ts +0 -16
  319. package/src/markdown/incrementalBlocks.ts +0 -49
  320. package/src/markdown/markdownClipboard.ts +0 -12
  321. package/src/markdown/mermaid.ts +0 -22
  322. package/src/markdown/rehypeGithubAlerts.ts +0 -3
  323. package/src/markdown/useSmoothText.ts +0 -5
  324. package/src/marketing/FloatingBar.tsx +0 -3
  325. package/src/marketing/PricingModal.tsx +0 -45
  326. package/src/marketing/ProductHero.tsx +0 -23
  327. package/src/marketing/ProductHeroOrbit.tsx +0 -5
  328. package/src/marketing/SiteFooter.tsx +0 -23
  329. package/src/marketing/SiteHeader.tsx +0 -14
  330. package/src/marketing/VProPricingModal.tsx +0 -5
  331. package/src/marketing/createLandingKit.tsx +0 -12
  332. package/src/marketing/landing.tsx +0 -12
  333. package/src/marketing/marketing-classes.ts +0 -7
  334. package/src/motion/dock-motion.ts +0 -25
  335. package/src/motion/list-enter.tsx +0 -4
  336. package/src/motion/panel-transition.tsx +0 -5
  337. package/src/ui/_field-classes.ts +0 -2
  338. package/src/ui/_menu-classes.ts +7 -4
  339. package/src/ui/_menu-parts.tsx +0 -5
  340. package/src/ui/_picker-classes.ts +0 -6
  341. package/src/ui/accordion.alt.tsx +0 -8
  342. package/src/ui/accordion.tsx +0 -4
  343. package/src/ui/badge.tsx +0 -1
  344. package/src/ui/border-beam.tsx +0 -11
  345. package/src/ui/breadcrumb.tsx +0 -13
  346. package/src/ui/bulk-action-bar.tsx +0 -24
  347. package/src/ui/button.tsx +0 -27
  348. package/src/ui/calendar.tsx +0 -18
  349. package/src/ui/card.tsx +0 -3
  350. package/src/ui/carousel.tsx +0 -4
  351. package/src/ui/checkbox.tsx +0 -1
  352. package/src/ui/clear-input.alt.tsx +0 -8
  353. package/src/ui/clear-input.tsx +0 -16
  354. package/src/ui/clearInputDissolve.ts +0 -4
  355. package/src/ui/command.tsx +0 -22
  356. package/src/ui/confetti-burst.tsx +0 -4
  357. package/src/ui/confirm-dialog-parts.tsx +0 -45
  358. package/src/ui/confirm-dialog.tsx +0 -26
  359. package/src/ui/context-menu.tsx +4 -11
  360. package/src/ui/count-pop.tsx +0 -2
  361. package/src/ui/crossfade-icon.tsx +0 -3
  362. package/src/ui/date-picker.tsx +0 -40
  363. package/src/ui/dialog.tsx +0 -18
  364. package/src/ui/dropdown-menu.tsx +4 -12
  365. package/src/ui/empty-state.tsx +0 -15
  366. package/src/ui/error-boundary.tsx +0 -7
  367. package/src/ui/field.tsx +0 -18
  368. package/src/ui/hover-card.tsx +0 -6
  369. package/src/ui/image-lightbox.tsx +0 -7
  370. package/src/ui/input-group.alt.tsx +0 -16
  371. package/src/ui/input-group.tsx +0 -3
  372. package/src/ui/kbd.tsx +0 -3
  373. package/src/ui/label.tsx +0 -1
  374. package/src/ui/labeled-slider-row.tsx +0 -2
  375. package/src/ui/list-row.tsx +0 -46
  376. package/src/ui/loading-state.tsx +0 -23
  377. package/src/ui/marquee-on-hover.tsx +1 -6
  378. package/src/ui/media-preview.tsx +0 -5
  379. package/src/ui/modalTransition.ts +0 -25
  380. package/src/ui/overlay-a11y.ts +0 -1
  381. package/src/ui/page-title.tsx +0 -4
  382. package/src/ui/popover.tsx +0 -8
  383. package/src/ui/progress.tsx +0 -1
  384. package/src/ui/refresh-spin-icon.tsx +0 -11
  385. package/src/ui/relative-date-time.tsx +0 -3
  386. package/src/ui/rolling-number.tsx +0 -2
  387. package/src/ui/search-input.tsx +0 -9
  388. package/src/ui/select-field.tsx +0 -5
  389. package/src/ui/select.tsx +0 -8
  390. package/src/ui/send-queue-icon.tsx +0 -3
  391. package/src/ui/separator.tsx +0 -1
  392. package/src/ui/sheet.tsx +0 -42
  393. package/src/ui/slide-over-panel.tsx +0 -2
  394. package/src/ui/slider.tsx +21 -9
  395. package/src/ui/sonner-icons.tsx +0 -4
  396. package/src/ui/sonner.tsx +0 -78
  397. package/src/ui/spinner.tsx +0 -50
  398. package/src/ui/status-dot.tsx +0 -10
  399. package/src/ui/surface.tsx +0 -13
  400. package/src/ui/switch.tsx +72 -3
  401. package/src/ui/table.tsx +0 -3
  402. package/src/ui/tabs-transition.tsx +0 -12
  403. package/src/ui/tabs.tsx +0 -17
  404. package/src/ui/tabsSliding.ts +0 -5
  405. package/src/ui/time-picker.tsx +0 -17
  406. package/src/ui/toggle-search.tsx +0 -6
  407. package/src/ui/toolbar-search-input.tsx +0 -3
  408. package/src/ui/tooltip.tsx +0 -5
  409. package/src/ui/ui-config.tsx +0 -19
  410. package/src/utils/cat-color.ts +0 -20
  411. package/src/utils/cn.ts +0 -4
  412. package/src/utils/gesture.ts +0 -8
  413. package/src/utils/ref.ts +0 -1
  414. package/src/utils/runtimeVisibility.ts +0 -19
  415. package/src/utils/surface-radius.ts +0 -11
  416. package/src/utils/useDragSensors.ts +0 -2
  417. package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
  418. package/tokens/examples/toaster/Fixture.tsx +0 -4
  419. package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
  420. package/tokens/examples/toaster/vite.config.ts +0 -2
  421. package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
  422. package/tokens/examples/tokens-moved/vite.config.ts +0 -2
  423. package/tokens/src/tailwind-preset.mjs +0 -3
@@ -5,10 +5,6 @@ import { useCn, useUiConfig } from "../ui/ui-config.js";
5
5
  import { useEffect, useState, useSyncExternalStore } from "react";
6
6
  import { quantizedSnapshot, subscribeQuantized } from "../utils/sharedClock.js";
7
7
 
8
- /** Props the activity timeline passes to its Markdown renderer. */
9
- // A type alias, not an interface: streamdown 2.7.1 gave its props a
10
- // `data-*` index signature, and only an alias is assignable to that.
11
-
12
8
  /**
13
9
  * `UiConfig.ActivityTasks`: defaults for the agent activity timeline
14
10
  * (`ActivityTasks`, `ActivityThinkingIcon`).
@@ -67,8 +63,6 @@ export function ActivityThinkingIcon(t0) {
67
63
  }
68
64
  return t4;
69
65
  }
70
-
71
- /** The `status` step glyph: the `circle` {@link Spinner}. */
72
66
  function ActivityStatusSpinner() {
73
67
  const $ = _c(1);
74
68
  let t0;
@@ -636,11 +636,6 @@ function joinCommandText(verb, target) {
636
636
  }
637
637
  return `${verb} ${target}`;
638
638
  }
639
-
640
- /**
641
- * Past-tense phrase used when a step type is folded into a group summary line.
642
- * Deliberately plural/vague — the exact call is one click away in the fold.
643
- */
644
639
  const GROUP_PHRASES = {
645
640
  read: "read files",
646
641
  edit: "edited files",
@@ -667,7 +662,6 @@ function groupPhraseForStep(step) {
667
662
  if (step.type !== "tool") {
668
663
  return GROUP_PHRASES[step.type];
669
664
  }
670
- // Codex reports edits as a `file_change` tool call, not an edit step.
671
665
  if (isFileChangeTool(step)) {
672
666
  return GROUP_PHRASES.edit;
673
667
  }
@@ -1,7 +1,3 @@
1
- // Pure step types for the activity timeline: no React, so `@vvedantb/native-ui`
2
- // keeps a byte-identical copy (`src/ai/activity-step-types.ts`), with the step
3
- // labels and grouping that read them.
4
-
5
1
  /** One item in a todo checklist step (type "todos"). */
6
2
 
7
3
  /** One choice offered by an AskUserQuestion prompt. */
@@ -3,17 +3,8 @@
3
3
  * inside that agent (keyed by parentToolUseId → toolUseId).
4
4
  */
5
5
 
6
- /**
7
- * Status-filler thinking labels emitted by older callback versions (and by
8
- * prod until the current callback deploys). The response/reasoning text is
9
- * shown directly, so these narration rows are pure noise — hide them.
10
- */
11
6
  const LEGACY_NOISE_LABELS = new Set(["Generating response...", "Generated response", "Streaming response...", "Streamed response", "Finalizing response..."]);
12
-
13
- /** Thinking labels that mark model reasoning rather than status narration. */
14
7
  const REASONING_LABELS = new Set(["Thinking...", "Thought"]);
15
-
16
- /** Placeholder details older callbacks attached to reasoning-label steps. */
17
8
  const FILLER_DETAILS = new Set(["Claude is reasoning...", "Codex is reasoning...", "Opencode is reasoning...", "Cursor is reasoning...", "Receiving reply..."]);
18
9
 
19
10
  /**
@@ -35,8 +26,6 @@ export function normalizeStep(step) {
35
26
  }
36
27
  return step;
37
28
  }
38
-
39
- /** Builds one row per normalized step (no consecutive-type merging). */
40
29
  function stepsToRows(steps) {
41
30
  const rows = [];
42
31
  for (const raw of steps) {
@@ -48,11 +37,6 @@ function stepsToRows(steps) {
48
37
  }
49
38
  return rows;
50
39
  }
51
-
52
- /**
53
- * Row types that read as narration rather than work: they already summarise
54
- * themselves, so folding them into an action group would hide their only text.
55
- */
56
40
  const STANDALONE_TYPES = new Set(["todos", "notice", "status", "question", "steer"]);
57
41
 
58
42
  /** One block in the activity timeline: prose, a lone row, or a folded run. */
@@ -73,7 +57,6 @@ export function groupActivityRows(rows) {
73
57
  });
74
58
  continue;
75
59
  }
76
- // Mid-turn reply text: it ends the tool run before it, like reasoning.
77
60
  if (row.step.type === "response") {
78
61
  segments.push({
79
62
  kind: "response",
@@ -18,8 +18,6 @@ import { FileChip } from "./file-chip.js";
18
18
  import { AgentTrace, AgentTraceCollapsible, AgentTraceCollapsibleContent, AgentTraceCollapsibleTrigger, AgentTraceDescription, AgentTraceIcon, AgentTraceLine, AgentTraceTitle } from "./trace.js";
19
19
  import { useStreamingDisclosure } from "./use-streaming-disclosure.js";
20
20
  import { RollingNumber } from "../ui/rolling-number.js";
21
-
22
- /** The app's Markdown renderer (`UiConfig.ActivityTasks.markdown`), or the package `Markdown`. */
23
21
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
22
  function useActivityMarkdown() {
25
23
  return useUiConfig("ActivityTasks")?.markdown ?? PackageMarkdown;
@@ -107,20 +105,9 @@ const ActivityStreamingHeader = /*#__PURE__*/memo(function ActivityStreamingHead
107
105
  }
108
106
  return t6;
109
107
  });
110
-
111
- /** Max timeline blocks shown before the overflow toggle appears. */
112
108
  const MAX_VISIBLE_ROWS = 8;
113
-
114
- /** Max nested child rows shown under a subtask before "+N more". */
115
109
  const MAX_VISIBLE_CHILDREN = 8;
116
-
117
- /**
118
- * Both layouts show mid-turn reply text in the timeline, in the order it was
119
- * written, so a live turn never stacks its first words below newer steps.
120
- */
121
110
  const HIDDEN_TYPES = new Set(["thinking"]);
122
-
123
- /** A subagent's own text belongs to its child thread view, not under its row. */
124
111
  const HIDDEN_CHILD_TYPES = new Set(["thinking", "response"]);
125
112
 
126
113
  /**
@@ -129,7 +116,6 @@ const HIDDEN_CHILD_TYPES = new Set(["thinking", "response"]);
129
116
  * `inline` (Claude-style): every step and the text between them stay open.
130
117
  */
131
118
 
132
- /** Nearest ancestor that actually scrolls — used to keep the overflow toggle pinned. */
133
119
  function findScrollParent(el) {
134
120
  let current = el.parentElement;
135
121
  while (current) {
@@ -143,12 +129,6 @@ function findScrollParent(el) {
143
129
  }
144
130
  return null;
145
131
  }
146
-
147
- /**
148
- * Expand/collapse while keeping `anchor` visually fixed (t3code work-group
149
- * toggle pattern). Content inserted above the control would otherwise shove it
150
- * down the viewport.
151
- */
152
132
  function toggleWithScrollCompensation(anchor, toggle) {
153
133
  const scrollParent = findScrollParent(anchor);
154
134
  const bottomBefore = anchor.getBoundingClientRect().bottom;
@@ -159,11 +139,6 @@ function toggleWithScrollCompensation(anchor, toggle) {
159
139
  }
160
140
  scrollParent.scrollTop += delta;
161
141
  }
162
- /**
163
- * Asks the owner of the payload for the untrimmed steps. Passed by context
164
- * rather than props because all three collapsibles that can reveal a stripped
165
- * row sit at different depths, and none of them otherwise needs the callback.
166
- */
167
142
  const RequestFullDetailContext = /*#__PURE__*/createContext(undefined);
168
143
 
169
144
  /**
@@ -172,8 +147,6 @@ const RequestFullDetailContext = /*#__PURE__*/createContext(undefined);
172
147
  * offer "View" where it works.
173
148
  */
174
149
  export const OpenSubagentContext = /*#__PURE__*/createContext(undefined);
175
-
176
- /** "View" link on a subtask row that opens its child thread. */
177
150
  function OpenSubagentButton(t0) {
178
151
  const $ = _c(6);
179
152
  const {
@@ -220,8 +193,6 @@ function OpenSubagentButton(t0) {
220
193
  }
221
194
  return t3;
222
195
  }
223
-
224
- /** `onOpenChange` handler that asks for the full payload the first time a fold opens. */
225
196
  function useRequestFullDetailOnOpen() {
226
197
  const $ = _c(2);
227
198
  const request = useContext(RequestFullDetailContext);
@@ -239,7 +210,6 @@ function useRequestFullDetailOnOpen() {
239
210
  }
240
211
  return t0;
241
212
  }
242
- /** Status glyph for one todo row. */
243
213
  function TodoStatusIcon(t0) {
244
214
  const $ = _c(5);
245
215
  const {
@@ -277,8 +247,6 @@ function TodoStatusIcon(t0) {
277
247
  }
278
248
  return t2;
279
249
  }
280
-
281
- /** Renders a todo checklist, or a plain fallback line for legacy/empty snapshots. */
282
250
  function TodoChecklist(t0) {
283
251
  const $ = _c(9);
284
252
  const {
@@ -343,8 +311,6 @@ function bashIconForKind(kind) {
343
311
  if (kind === "git") return IconGitBranch;
344
312
  return IconTerminal2;
345
313
  }
346
-
347
- /** Glyph for a step — shell steps swap in a glyph matching what they ran. */
348
314
  function iconForStep(step) {
349
315
  if (step.type === "bash" && step.detail) {
350
316
  return bashIconForKind(resolveCommandVisualKind(step.detail));
@@ -357,18 +323,11 @@ function traceStatusForStep(step) {
357
323
  if (step.status === "pending") return "pending";
358
324
  return undefined;
359
325
  }
360
-
361
- /** Whole seconds a finished step took; undefined when unknown or under 1s. */
362
326
  function stepSeconds(step) {
363
327
  if (step.status !== "complete" || !step.durationMs) return undefined;
364
328
  const seconds = Math.round(step.durationMs / 1000);
365
329
  return seconds >= 1 ? seconds : undefined;
366
330
  }
367
-
368
- /**
369
- * One thinking block behind a "Thought 12s" line. Streaming steps open
370
- * themselves so live thinking is readable as it lands, then auto-close.
371
- */
372
331
  function ActivityReasoningLine(t0) {
373
332
  const $ = _c(19);
374
333
  const {
@@ -468,8 +427,6 @@ function ActivityReasoningLine(t0) {
468
427
  }
469
428
  return t5;
470
429
  }
471
-
472
- /** The to-do snapshot as one line with done/total, folding open to the checklist. */
473
430
  function ActivityTodosLine(t0) {
474
431
  const $ = _c(25);
475
432
  const {
@@ -583,8 +540,6 @@ function ActivityTodosLine(t0) {
583
540
  }
584
541
  return t11;
585
542
  }
586
-
587
- /** One per-call activity line with Synara-style humanized label. */
588
543
  function _temp3(todo) {
589
544
  return todo.status === "completed";
590
545
  }
@@ -936,9 +891,6 @@ function ActivityStepRow(t0) {
936
891
  }
937
892
  return t12;
938
893
  }
939
-
940
- /** Model reasoning, shown as ordinary prose rather than another muted row. */
941
- /** Reply text the agent wrote between tool runs, set like the final reply. */
942
894
  function _temp4(child) {
943
895
  return !HIDDEN_CHILD_TYPES.has(child.step.type);
944
896
  }
@@ -1009,8 +961,6 @@ function ActivityReasoningBlock(t0) {
1009
961
  }
1010
962
  return t2;
1011
963
  }
1012
-
1013
- /** A run of tool calls, folded behind one muted "what happened" summary line. */
1014
964
  function ActivityActionGroup(t0) {
1015
965
  const $ = _c(28);
1016
966
  const {
@@ -1202,11 +1152,6 @@ function ActivitySegmentBlock(t0) {
1202
1152
  }
1203
1153
  return t1;
1204
1154
  }
1205
-
1206
- /**
1207
- * Renders timeline blocks with an overflow cap. Settled turns cap from the front
1208
- * (first N); streaming turns cap from the end (newest N) so latest stays visible.
1209
- */
1210
1155
  function ActivityRowList(t0) {
1211
1156
  const $ = _c(18);
1212
1157
  const {
@@ -235,17 +235,13 @@ export const ArtifactActions = t0 => {
235
235
  }
236
236
  return t3;
237
237
  };
238
- /** A component (`IconCopy`) rather than a rendered node (`<IconCopy />`). */
239
238
  function isIconComponent(icon) {
240
239
  if (typeof icon === "function") return true;
241
- // forwardRef / memo components are objects with `render` / `type`.
242
240
  return typeof icon === "object" && icon !== null && ! /*#__PURE__*/isValidElement(icon) && ("render" in icon || "type" in icon);
243
241
  }
244
242
  const renderIcon = (Icon, className) => /*#__PURE__*/_jsx(Icon, {
245
243
  className: className
246
244
  });
247
-
248
- /** Button shared by `ArtifactAction` and `ArtifactClose`. */
249
245
  function ArtifactActionButton(t0) {
250
246
  const $ = _c(25);
251
247
  let children;
@@ -6,9 +6,6 @@ import { flatElevatedSurfaceHoverClass, flatPanelSubtleClass } from "../ui/surfa
6
6
  import { useCn, useUiConfig } from "../ui/ui-config.js";
7
7
  import { IconFileText, IconMusic, IconPaperclip, IconPhoto, IconVideo, IconWorld, IconX } from "@tabler/icons-react";
8
8
  import { createContext, useContext } from "react";
9
- // ============================================================================
10
- // Types
11
- // ============================================================================
12
9
 
13
10
  /**
14
11
  * `UiConfig.Attachments`: per-variant classes that replace the variant part
@@ -24,9 +21,6 @@ const mediaCategoryIcons = {
24
21
  unknown: IconPaperclip,
25
22
  video: IconVideo
26
23
  };
27
- // ============================================================================
28
- // Utility Functions
29
- // ============================================================================
30
24
  export const getMediaCategory = data => {
31
25
  if (data.type === "source-document") {
32
26
  return "source";
@@ -66,15 +60,8 @@ const renderAttachmentImage = (url, filename, isGrid) => isGrid ? /*#__PURE__*/_
66
60
  src: url,
67
61
  width: 20
68
62
  });
69
- // ============================================================================
70
- // Contexts
71
- // ============================================================================
72
-
73
63
  const AttachmentsContext = /*#__PURE__*/createContext(null);
74
64
  const AttachmentContext = /*#__PURE__*/createContext(null);
75
- // ============================================================================
76
- // Hooks
77
- // ============================================================================
78
65
  export const useAttachmentsContext = () => {
79
66
  return useContext(AttachmentsContext) ?? {
80
67
  variant: "grid"
@@ -87,10 +74,6 @@ export const useAttachmentContext = () => {
87
74
  }
88
75
  return ctx;
89
76
  };
90
- // ============================================================================
91
- // Attachments - Container
92
- // ============================================================================
93
-
94
77
  export const Attachments = t0 => {
95
78
  const $ = _c(19);
96
79
  let children;
@@ -169,10 +152,6 @@ export const Attachments = t0 => {
169
152
  }
170
153
  return t7;
171
154
  };
172
- // ============================================================================
173
- // Attachment - Item
174
- // ============================================================================
175
-
176
155
  export const Attachment = t0 => {
177
156
  const $ = _c(25);
178
157
  let children;
@@ -271,10 +250,6 @@ export const Attachment = t0 => {
271
250
  }
272
251
  return t5;
273
252
  };
274
- // ============================================================================
275
- // AttachmentPreview - Media preview
276
- // ============================================================================
277
-
278
253
  export const AttachmentPreview = t0 => {
279
254
  const $ = _c(23);
280
255
  let className;
@@ -375,10 +350,6 @@ export const AttachmentPreview = t0 => {
375
350
  }
376
351
  return t5;
377
352
  };
378
- // ============================================================================
379
- // AttachmentInfo - Name and type display
380
- // ============================================================================
381
-
382
353
  export const AttachmentInfo = t0 => {
383
354
  const $ = _c(19);
384
355
  let className;
@@ -466,10 +437,6 @@ export const AttachmentInfo = t0 => {
466
437
  }
467
438
  return t6;
468
439
  };
469
- // ============================================================================
470
- // AttachmentRemove - Remove button
471
- // ============================================================================
472
-
473
440
  export const AttachmentRemove = t0 => {
474
441
  const $ = _c(23);
475
442
  let children;
@@ -569,10 +536,6 @@ export const AttachmentRemove = t0 => {
569
536
  }
570
537
  return t6;
571
538
  };
572
- // ============================================================================
573
- // AttachmentHoverCard - Hover preview
574
- // ============================================================================
575
-
576
539
  export const AttachmentHoverCard = t0 => {
577
540
  const $ = _c(8);
578
541
  let props;
@@ -672,10 +635,6 @@ export const AttachmentHoverCardContent = t0 => {
672
635
  }
673
636
  return t3;
674
637
  };
675
- // ============================================================================
676
- // AttachmentEmpty - Empty state
677
- // ============================================================================
678
-
679
638
  export const AttachmentEmpty = t0 => {
680
639
  const $ = _c(11);
681
640
  let children;
@@ -9,7 +9,6 @@ import { createContext, useContext, useEffect, useRef, useState } from "react";
9
9
  import { bundledLanguages, createHighlighter } from "shiki";
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  const isBundledLanguage = lang => lang in bundledLanguages;
12
- // Shiki uses bitflags for font styles: 1=italic, 2=bold, 4=underline
13
12
  // biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
14
13
  // eslint-disable-next-line no-bitwise -- shiki bitflag check
15
14
  const isItalic = fontStyle => fontStyle && fontStyle & 1;
@@ -21,8 +20,6 @@ const isUnderline = fontStyle =>
21
20
  // biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
22
21
  // oxlint-disable-next-line eslint(no-bitwise)
23
22
  fontStyle && fontStyle & 4;
24
- // Transform tokens to include pre-computed keys to avoid noArrayIndexKey lint
25
-
26
23
  const addKeysToTokens = lines => lines.map((line, lineIdx) => ({
27
24
  key: `line-${lineIdx}`,
28
25
  tokens: line.map((token, tokenIdx) => ({
@@ -30,7 +27,6 @@ const addKeysToTokens = lines => lines.map((line, lineIdx) => ({
30
27
  token
31
28
  }))
32
29
  }));
33
- // Token rendering component
34
30
  const TokenSpan = t0 => {
35
31
  const $ = _c(10);
36
32
  const {
@@ -75,7 +71,6 @@ const TokenSpan = t0 => {
75
71
  }
76
72
  return t6;
77
73
  };
78
- // Line rendering component
79
74
  const LineSpan = t0 => {
80
75
  const $ = _c(5);
81
76
  const {
@@ -105,7 +100,6 @@ const LineSpan = t0 => {
105
100
  }
106
101
  return t3;
107
102
  };
108
- // Types
109
103
 
110
104
  /**
111
105
  * `UiConfig.CodeBlock`: `plain` default, and classes that replace the
@@ -117,15 +111,11 @@ const LineSpan = t0 => {
117
111
  */
118
112
 
119
113
  const containerClasses = "relative w-full overflow-hidden rounded-lg bg-surface-secondary/60 text-foreground";
120
- // Context
121
114
  const CodeBlockContext = /*#__PURE__*/createContext({
122
115
  code: ""
123
116
  });
124
- // Highlighter cache (singleton per language)
125
117
  const highlighterCache = new Map();
126
- // Token cache
127
118
  const tokensCache = new Map();
128
- // Subscribers for async token updates
129
119
  const subscribers = new Map();
130
120
  const getTokensCacheKey = (code, language) => {
131
121
  const start = code.slice(0, 100);
@@ -144,7 +134,6 @@ const getHighlighter = language => {
144
134
  highlighterCache.set(language, highlighterPromise);
145
135
  return highlighterPromise;
146
136
  };
147
- // Create raw tokens for immediate display while highlighting loads
148
137
  const createRawTokens = code => ({
149
138
  bg: "transparent",
150
139
  fg: "inherit",
@@ -153,23 +142,19 @@ const createRawTokens = code => ({
153
142
  content: line
154
143
  }])
155
144
  });
156
- // Synchronous highlight with callback for async results
157
145
  export const highlightCode = (code, language, callback) => {
158
146
  if (!isBundledLanguage(language)) return null;
159
147
  const tokensCacheKey = getTokensCacheKey(code, language);
160
- // Return cached result if available
161
148
  const cached = tokensCache.get(tokensCacheKey);
162
149
  if (cached) {
163
150
  return cached;
164
151
  }
165
- // Subscribe callback if provided
166
152
  if (callback) {
167
153
  if (!subscribers.has(tokensCacheKey)) {
168
154
  subscribers.set(tokensCacheKey, new Set());
169
155
  }
170
156
  subscribers.get(tokensCacheKey)?.add(callback);
171
157
  }
172
- // Start highlighting in background - fire-and-forget async pattern
173
158
  getHighlighter(language)
174
159
  // oxlint-disable-next-line eslint-plugin-promise(prefer-await-to-then)
175
160
  .then(highlighter => {
@@ -187,9 +172,7 @@ export const highlightCode = (code, language, callback) => {
187
172
  fg: result.fg ?? "inherit",
188
173
  tokens: result.tokens
189
174
  };
190
- // Cache the result
191
175
  tokensCache.set(tokensCacheKey, tokenized);
192
- // Notify all subscribers
193
176
  const subs = subscribers.get(tokensCacheKey);
194
177
  if (subs) {
195
178
  for (const sub of subs) {
@@ -205,7 +188,6 @@ export const highlightCode = (code, language, callback) => {
205
188
  });
206
189
  return null;
207
190
  };
208
- // Line number styles using CSS counters
209
191
  const LINE_NUMBER_CLASSES = cn("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-8", "before:mr-4", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none");
210
192
  function CodeBlockBody(t0) {
211
193
  const $ = _c(24);
@@ -5,8 +5,6 @@ import { useState } from "react";
5
5
  import { Button } from "../ui/button.js";
6
6
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
7
7
  import { cn } from "../utils/cn.js";
8
-
9
- /** Match t3code MessagesTimeline collapsible user prompts. */
10
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
9
  const MAX_COLLAPSED_USER_MESSAGE_LINES = 8;
12
10
  const MAX_COLLAPSED_USER_MESSAGE_LENGTH = 600;
@@ -13,18 +13,6 @@ const ICON_RADIUS = 10;
13
13
  const ICON_VIEWBOX = 24;
14
14
  const ICON_CENTER = 12;
15
15
  const ICON_STROKE_WIDTH = 2;
16
-
17
- /**
18
- * Per-category token counts. Cache reads and writes are priced very differently
19
- * (reads ~0.1x input, writes ~1.25x input), so they are tracked separately.
20
- */
21
-
22
- /**
23
- * Pre-computed costs (USD). Pass these when the authoritative cost is known
24
- * (e.g. Claude returns `total_cost_usd` directly). Avoids needing a pricing
25
- * catalog at render time.
26
- */
27
-
28
16
  const ContextContext = /*#__PURE__*/createContext(null);
29
17
  const useContextValue = () => {
30
18
  const context = useContext(ContextContext);
@@ -457,7 +445,6 @@ export const ContextUsageContentBody = t0 => {
457
445
  };
458
446
  const formatUSD = value => new Intl.NumberFormat("en-US", {
459
447
  currency: "USD",
460
- // Claude's per-call cost is often sub-cent; show enough precision to be useful.
461
448
  maximumFractionDigits: 4,
462
449
  minimumFractionDigits: 2,
463
450
  style: "currency"
@@ -188,10 +188,6 @@ export const ConversationEmptyState = t0 => {
188
188
  }
189
189
  return t5;
190
190
  };
191
- /**
192
- * `wanted`, or (with a delay or reset key) `wanted` held for `delay` ms, and
193
- * a function that hides it at once.
194
- */
195
191
  function useDelayedShow(wanted, delay, resetKey) {
196
192
  const $ = _c(16);
197
193
  const debounced = delay > 0 || resetKey !== undefined;
@@ -40,9 +40,6 @@ export function JumpRail({
40
40
  const merge = useCn();
41
41
  const [hoverIndex, setHoverIndex] = useState(null);
42
42
  const [inViewIds, setInViewIds] = useState(() => new Set());
43
-
44
- // Latest props for the effect and handlers, so an inline getter or resolver
45
- // does not rebuild the observer on every render.
46
43
  const latest = useRef({
47
44
  scrollRef,
48
45
  getScrollElement,
@@ -95,8 +92,6 @@ export function JumpRail({
95
92
  onSelect?.(id_1);
96
93
  return;
97
94
  }
98
- // Rendering earlier rows grows the content; a reader stuck to the bottom
99
- // would be pulled back down instead of reaching the item.
100
95
  onBeforeScroll?.();
101
96
  onReveal?.(id_1);
102
97
  onSelect?.(id_1);
@@ -1,4 +1,5 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { destructiveGhostClass } from "../ui/_menu-classes.js";
2
3
  import { Button } from "../ui/button.js";
3
4
  import { ButtonGroup, ButtonGroupText } from "../ui/button-group.js";
4
5
  import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "../ui/context-menu.js";
@@ -668,11 +669,6 @@ function EagerMessageAction(t0) {
668
669
  }
669
670
  return button;
670
671
  }
671
- /**
672
- * The tooltip mounts on first hover or focus, not with the button. Each Radix
673
- * tooltip is a dozen components plus a re-render once it has measured its
674
- * anchor; a long chat has hundreds of these buttons.
675
- */
676
672
  function LazyMessageAction(t0) {
677
673
  const $ = _c(42);
678
674
  let children;
@@ -1118,8 +1114,6 @@ export const MessageBranchSelector = t0 => {
1118
1114
  }
1119
1115
  return t3;
1120
1116
  };
1121
- // Prev and next sit in a `ButtonGroup` with `rounded-md` inner corners, so they
1122
- // default to `shape="rounded"`; a pill would pair a round outer end with them.
1123
1117
  export const MessageBranchPrevious = t0 => {
1124
1118
  const $ = _c(11);
1125
1119
  let children;
@@ -1334,7 +1328,7 @@ function _temp(action) {
1334
1328
  return /*#__PURE__*/_jsx(ContextMenuItem, {
1335
1329
  disabled: action.disabled,
1336
1330
  startContent: action.icon,
1337
- className: action.destructive ? "text-danger" : undefined,
1331
+ variant: action.destructive ? "destructive" : "default",
1338
1332
  onSelect: action.onSelect,
1339
1333
  children: action.label
1340
1334
  }, action.key);
@@ -1349,7 +1343,7 @@ function _temp3(action_0) {
1349
1343
  tooltipSide: "bottom",
1350
1344
  tooltipClassName: "max-sm:hidden",
1351
1345
  disabled: action_0.disabled,
1352
- className: action_0.destructive ? "text-danger" : undefined,
1346
+ className: action_0.destructive ? destructiveGhostClass : undefined,
1353
1347
  onClick: action_0.onSelect,
1354
1348
  children: action_0.icon
1355
1349
  }, action_0.key);
@@ -17,7 +17,6 @@ export function getProviderLabel(provider) {
17
17
 
18
18
  /** t3code-style list/trigger label: "Claude Opus", not bare "Opus". */
19
19
  export function formatModelDisplayLabel(provider, label) {
20
- // Codex models are already named "GPT …"; don't prefix with "Codex".
21
20
  if (provider === "codex") {
22
21
  return label;
23
22
  }
@@ -21,12 +21,7 @@ export { ModelPickerContent };
21
21
  * default `var(--color-surface-secondary)`).
22
22
  */
23
23
 
24
- const TRIGGER_CLASS =
25
- // Carries `data-slot="select-trigger"` and is styled to read as one, so it
26
- // has to press like one: `motion-press active:scale-[0.98]`, like the select
27
- // triggers it sits beside in a composer footer. `motion-press` supersedes
28
- // `transition-colors`: the two at equal specificity replace each other.
29
- "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";
24
+ const TRIGGER_CLASS = "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";
30
25
 
31
26
  /**
32
27
  * Shared chrome for the picker panel (popover + menu submenu). Keep these in
@@ -293,10 +293,6 @@ export const ModelSelectorSeparator = props => {
293
293
  * Now SVG props: the logo renders `ProviderIcon` (see `ModelSelectorLogo`).
294
294
  */
295
295
 
296
- /**
297
- * models.dev provider ids that have a `ProviderIcon` mark. `ProviderIcon`
298
- * knows four marks: Claude, OpenAI (`codex`), OpenCode and Cursor.
299
- */
300
296
  const LOGO_PROVIDER = {
301
297
  anthropic: "claude",
302
298
  "google-vertex-anthropic": "claude",
@@ -2,17 +2,6 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import { useEffect, useRef, useState } from "react";
3
3
  import { IconMicrophone, IconPlayerStop } from "@tabler/icons-react";
4
4
  import { PromptInputButton } from "./prompt-input.js";
5
-
6
- // Web Speech API dictation for the prompt input: `useSpeechRecognition` streams
7
- // the transcript (prefix + finals + interim) to a callback, and
8
- // `PromptInputSpeech` is a microphone button that writes it into the form's
9
- // `textarea[name="message"]`.
10
-
11
- // Read the constructors through a local type: a package must not augment the
12
- // global Window. Apps often declare their own `Window.SpeechRecognition` with
13
- // other event types, so `window` is cast to this shape rather than assigned
14
- // (an assignment fails to typecheck in those apps; see
15
- // consumer/window-speech-global.d.ts).
16
5
  import { jsx as _jsx } from "react/jsx-runtime";
17
6
  /** The browser's `SpeechRecognition` constructor, or `null` without one. */
18
7
  export function getSpeechRecognition() {
@@ -78,8 +67,6 @@ export function useSpeechRecognition(onUpdate) {
78
67
  start(prefix_0);
79
68
  }
80
69
  };
81
-
82
- // Stop listening on unmount.
83
70
  useEffect(() => () => {
84
71
  recognitionRef.current?.stop();
85
72
  recognitionRef.current = null;