@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
@@ -7,7 +7,6 @@ interface ShimmerCSSProperties extends CSSProperties {
7
7
  "--spread"?: string;
8
8
  "--bg"?: string;
9
9
  }
10
- /** Custom properties the `mask` sweep reads from the app's `.shimmer-*` CSS. */
11
10
  interface ShimmerMaskStyle extends CSSProperties {
12
11
  "--shimmer-spread": string;
13
12
  "--shimmer-duration": string;
@@ -20,10 +19,8 @@ interface ShimmerMaskStyle extends CSSProperties {
20
19
  */
21
20
  export interface ShimmerConfig {
22
21
  mode?: "gradient" | "mask";
23
- /** Default element. */
24
22
  as?: ElementType;
25
23
  classes?: {
26
- /** Root element in `mask` mode. */
27
24
  base?: string;
28
25
  overlay?: string;
29
26
  band?: string;
@@ -36,7 +33,6 @@ interface ShimmerProps {
36
33
  className?: string;
37
34
  duration?: number;
38
35
  spread?: number;
39
- /** `"mask"`: compositor sweep, see `ShimmerConfig`. Default `"gradient"`. */
40
36
  mode?: "gradient" | "mask";
41
37
  }
42
38
  function Shimmer({ mode, as, ...props }: ShimmerProps) {
@@ -48,12 +44,6 @@ function Shimmer({ mode, as, ...props }: ShimmerProps) {
48
44
  <GradientShimmer as={Component} {...props} />
49
45
  );
50
46
  }
51
- /**
52
- * One motion component per `as` element, created once and reused. `m.create`
53
- * returns a new component type on each call; React treats a new type as a
54
- * different element and remounts the node, which restarts the sweep on every
55
- * parent re-render. Caching by element keeps the node stable.
56
- */
57
47
  const createMotion = (Component: ElementType) => m.create(Component);
58
48
  const motionComponents = new Map<ElementType, ReturnType<typeof createMotion>>();
59
49
 
@@ -105,12 +95,6 @@ function GradientShimmer({
105
95
  </MotionComponent>
106
96
  );
107
97
  }
108
- /**
109
- * The text renders once in the base colour; a copy in the highlight colour
110
- * sits over it, masked to a soft band. The band translates one way while the
111
- * copy inside it translates the other by the same amount, so only the mask
112
- * moves: two transform animations, no repaint. The copy is `aria-hidden`.
113
- */
114
98
  function MaskShimmer({
115
99
  children,
116
100
  as: Component = "span",
@@ -19,7 +19,6 @@ export function SimpleModelLadder<TModel extends string>({
19
19
  }: {
20
20
  value: TModel;
21
21
  steps: ReadonlyArray<ModelOption<TModel>>;
22
- /** Ladder id to park the thumb on when `value` is off-ladder. */
23
22
  snappedId: TModel;
24
23
  disabled?: boolean;
25
24
  onValueChange: (model: TModel) => void;
@@ -4,8 +4,6 @@ import { Button } from "../ui/button";
4
4
  import { Spinner } from "../ui/spinner";
5
5
  import { cn } from "../utils/cn";
6
6
  import { useEffect, useRef, useState } from "react";
7
- // Only the members this component uses, so an app's own (wider or narrower)
8
- // speech recognition typings stay assignable to it.
9
7
  interface SpeechRecognitionInstance extends EventTarget {
10
8
  continuous: boolean;
11
9
  interimResults: boolean;
@@ -33,10 +31,6 @@ interface SpeechRecognitionAlternative {
33
31
  transcript: string;
34
32
  confidence: number;
35
33
  }
36
- // Read the constructors through a local type: a package must not augment the
37
- // global Window. Apps often declare their own `Window.SpeechRecognition`, so
38
- // `window` is cast to this shape rather than assigned (see
39
- // consumer/window-speech-global.d.ts).
40
34
  type SpeechRecognitionWindow = {
41
35
  SpeechRecognition?: SpeechRecognitionConstructor;
42
36
  webkitSpeechRecognition?: SpeechRecognitionConstructor;
@@ -165,11 +165,6 @@ export const TestResultsProgress = ({
165
165
  <div className={merge("space-y-2", className)} {...props}>
166
166
  {children ?? (
167
167
  <>
168
- {/* Two full-width layers scaled from the left edge rather than two
169
- flex siblings sized by `width`: the flex version relayouted the
170
- track on every frame. The failed layer spans passed+failed and sits
171
- underneath, so the passed layer painted over it leaves the same
172
- two-tone bar while both segments only ever scale. */}
173
168
  <div className="relative h-2 overflow-hidden rounded-full bg-surface-secondary">
174
169
  <div
175
170
  className="absolute inset-0 origin-left bg-destructive transition-transform duration-[var(--motion-base)]"
@@ -45,7 +45,6 @@ export function AgentTraceLine({
45
45
  data-status={status}
46
46
  className={merge(
47
47
  "flex w-fit max-w-full min-w-0 items-center gap-2 text-muted-foreground text-sm transition-colors",
48
- // Gated like `hover:` plus a fine pointer, so a tap on a phone does not leave it lit.
49
48
  "[@media(hover:hover)_and_(pointer:fine)]:in-[button:hover]:text-foreground",
50
49
  "data-[status=error]:text-destructive data-[status=error]:[@media(hover:hover)_and_(pointer:fine)]:in-[button:hover]:text-destructive",
51
50
  "data-[status=pending]:opacity-60",
@@ -95,7 +94,6 @@ export function AgentTraceTitle({
95
94
  title,
96
95
  }: {
97
96
  className?: string;
98
- /** Sweep a highlight across the title while the step runs. */
99
97
  shimmer?: boolean;
100
98
  children: string;
101
99
  title?: string;
@@ -120,9 +120,6 @@ export const WebPreviewNavigation = ({
120
120
  const merge = useCn();
121
121
  return (
122
122
  <div
123
- // `flex-wrap`: the nav holds back/forward/reload plus a URL field and a
124
- // device toggle, which is wider than a phone-width preview pane. Without it
125
- // the row overflows its container rather than taking a second line.
126
123
  className={merge("flex items-center gap-1 border-b p-2 max-sm:flex-wrap", className)}
127
124
  {...props}
128
125
  >
@@ -151,10 +148,6 @@ export const WebPreviewNavigationButton = ({
151
148
  onClick={onClick}
152
149
  size="sm"
153
150
  variant="ghost"
154
- // These buttons are icon-only, and a `TooltipContent` is wired up as
155
- // `aria-describedby` — a description, not a name — so without this
156
- // every preview nav control is announced as just "button". Placed
157
- // before the spread so a call site can still override it.
158
151
  aria-label={tooltip}
159
152
  {...props}
160
153
  >
@@ -23,23 +23,16 @@ export type ArtifactLayout = "grid" | "list";
23
23
 
24
24
  /** Callbacks shared by `ArtifactCard` and `ArtifactList`. Each menu action shows only when its callback is set. */
25
25
  export type ArtifactCardActions = {
26
- /** Open the artifact. With `getHref`, a plain left click calls this instead of following the link. */
27
26
  onOpen?: (artifact: ArtifactSummary) => void;
28
- /** Link target: the card becomes an `<a>` and the menu gains "Open in new tab". */
29
27
  getHref?: (artifact: ArtifactSummary) => string;
30
- /** Loads the body for Copy and Download (list rows carry no body). */
31
28
  getBody?: (artifact: ArtifactSummary) => Promise<string>;
32
- /** Called with the trimmed new title from the rename dialog. */
33
29
  onRename?: (artifact: ArtifactSummary, title: string) => void | Promise<void>;
34
- /** Called after the delete dialog, or straight away on an Alt-click. */
35
30
  onDelete?: (artifact: ArtifactSummary) => void | Promise<void>;
36
- /** Text under the delete dialog's title, e.g. for a host that can undo. Defaults to "This cannot be undone." */
37
31
  deleteDescription?: ReactNode;
38
32
  };
39
33
 
40
34
  export type ArtifactCardProps = ArtifactCardActions & {
41
35
  artifact: ArtifactSummary;
42
- /** `"grid"` (default): a tile with the description. `"list"`: one compact row. */
43
36
  layout?: ArtifactLayout;
44
37
  className?: string;
45
38
  };
@@ -106,7 +99,7 @@ export function ArtifactCard({
106
99
  }
107
100
 
108
101
  const itemProps = (action: MenuAction) => ({
109
- className: action.destructive ? "text-danger" : undefined,
102
+ variant: action.destructive ? ("destructive" as const) : ("default" as const),
110
103
  startContent: action.icon,
111
104
  title: action.destructive ? skipConfirmTitle(action.label) : undefined,
112
105
  endContent: action.destructive ? <ConfirmSkipHint /> : undefined,
@@ -51,7 +51,6 @@ export type ArtifactDeleteDialogProps = {
51
51
  title: string;
52
52
  onConfirm: () => void;
53
53
  pending?: boolean;
54
- /** Text under the title. Defaults to "This cannot be undone." */
55
54
  description?: ReactNode;
56
55
  };
57
56
 
@@ -83,11 +82,8 @@ export function ArtifactDeleteDialog({
83
82
  }
84
83
 
85
84
  export type ArtifactEditCallbacks = {
86
- /** Called with the trimmed new title. The dialog closes when it resolves and stays open when it rejects. */
87
85
  onRename?: (title: string) => void | Promise<void>;
88
- /** Called after the delete dialog, or straight away on an Alt-click. */
89
86
  onDelete?: () => void | Promise<void>;
90
- /** Text under the delete dialog's title, e.g. for a host that can undo. Defaults to "This cannot be undone." */
91
87
  deleteDescription?: ReactNode;
92
88
  };
93
89
 
@@ -26,24 +26,17 @@ import { cn } from "../utils/cn";
26
26
  export type ArtifactStateStore = {
27
27
  load(): Promise<ArtifactStateMap>;
28
28
  save(data: ArtifactStateMap): Promise<void>;
29
- /** A failed load or save. After a failed load the frame starts empty and never saves, so it cannot overwrite the stored state. */
30
29
  onError?(error: Error, phase: "load" | "save"): void;
31
30
  };
32
31
 
33
32
  export type ArtifactFrameProps = Omit<ComponentProps<"iframe">, "src" | "srcDoc" | "sandbox" | "title" | "ref"> & {
34
33
  body: string;
35
34
  format: ArtifactFormat;
36
- /** The iframe's accessible name, and the heading of a built-in template when the body has none. */
37
35
  title: string;
38
- /** From `stateSpec.template`. */
39
36
  template?: ArtifactTemplateName;
40
- /** Without a store the state starts empty and lives until the frame unmounts. */
41
37
  store?: ArtifactStateStore;
42
- /** Extra globals for the guest state API, e.g. `["app"]` for `window.app.state`. */
43
38
  stateGlobalAliases?: readonly string[];
44
- /** Save this long after the last change. Default `ARTIFACT_STATE_DEBOUNCE_MS` (5 s). */
45
39
  saveDelayMs?: number;
46
- /** Save at least this often while changes keep coming. Default `ARTIFACT_STATE_MAX_WAIT_MS` (30 s). */
47
40
  saveMaxWaitMs?: number;
48
41
  };
49
42
 
@@ -51,7 +44,6 @@ function toError(reason: Error | string | object | null | undefined): Error {
51
44
  return reason instanceof Error ? reason : new Error(String(reason));
52
45
  }
53
46
 
54
- // The save in flight for each store, so a reload (another version, say) reads after it.
55
47
  const savesInFlight = new WeakMap<ArtifactStateStore, Promise<void>>();
56
48
 
57
49
  /**
@@ -74,7 +66,6 @@ export function ArtifactFrame({
74
66
  ...props
75
67
  }: ArtifactFrameProps) {
76
68
  const iframeRef = useRef<HTMLIFrameElement>(null);
77
- // A string, so a new array with the same names does not reload the frame.
78
69
  const aliasKey = (stateGlobalAliases ?? []).join(",");
79
70
 
80
71
  useEffect(() => {
@@ -127,7 +118,6 @@ export function ArtifactFrame({
127
118
  const onWindowMessage = (event: MessageEvent) => {
128
119
  const guest = iframe.contentWindow;
129
120
  if (!guest || event.source !== guest || !readyMessage.safeParse(event.data).success) return;
130
- // A new document (or a reload of this one) gets a fresh channel.
131
121
  port?.close();
132
122
  const channel = new MessageChannel();
133
123
  port = channel.port1;
@@ -21,18 +21,12 @@ const LAYOUTS: readonly ArtifactLayout[] = ["grid", "list"];
21
21
  export type ArtifactListToolbarProps = {
22
22
  query: string;
23
23
  onQueryChange: (query: string) => void;
24
- /** Selected type; `undefined` is "All types". */
25
24
  type?: ArtifactType;
26
- /** Omit to hide the type filter. */
27
25
  onTypeChange?: (type: ArtifactType | undefined) => void;
28
- /** Types offered in the filter. Default every `ARTIFACT_TYPES` entry. */
29
26
  types?: readonly ArtifactType[];
30
27
  layout?: ArtifactLayout;
31
- /** Omit to hide the grid and list toggle. */
32
28
  onLayoutChange?: (layout: ArtifactLayout) => void;
33
- /** Default "Search artifacts...". */
34
29
  searchPlaceholder?: string;
35
- /** Extra controls at the end, e.g. a create button. */
36
30
  children?: ReactNode;
37
31
  className?: string;
38
32
  };
@@ -7,13 +7,9 @@ import type { ArtifactSummary } from "./types";
7
7
 
8
8
  export type ArtifactListProps = ArtifactCardActions & {
9
9
  artifacts: readonly ArtifactSummary[];
10
- /** `"grid"` (default): tiles in up to three columns. `"list"`: compact rows. */
11
10
  layout?: ArtifactLayout;
12
- /** Default "No artifacts yet". */
13
11
  emptyTitle?: ReactNode;
14
- /** Default "Artifacts you save show up here." */
15
12
  emptyDescription?: ReactNode;
16
- /** Buttons under the empty message, e.g. a create button. */
17
13
  emptyActions?: ReactNode;
18
14
  className?: string;
19
15
  };
@@ -40,7 +40,6 @@ export const ARTIFACT_TYPE_LABELS: Record<ArtifactType, string> = {
40
40
 
41
41
  export type ArtifactTypeIconProps = {
42
42
  type: ArtifactType;
43
- /** Pixel size. Default 16. */
44
43
  size?: number;
45
44
  stroke?: number;
46
45
  className?: string;
@@ -15,11 +15,8 @@ import type { ArtifactVersionSummary } from "./types";
15
15
  export type ArtifactVersionsMenuProps = {
16
16
  versions: readonly ArtifactVersionSummary[];
17
17
  currentVersion: number;
18
- /** The version on screen. Default `currentVersion`. */
19
18
  viewingVersion?: number;
20
- /** Show a version. Without it, picking an older version restores it. */
21
19
  onViewVersion?: (version: number) => void;
22
- /** Make a version current. With `onViewVersion`, offered as "Restore vN" while an older version is on screen. */
23
20
  onRestoreVersion?: (version: number) => void | Promise<void>;
24
21
  className?: string;
25
22
  };
@@ -3,6 +3,7 @@ import { IconCopy, IconDownload, IconExternalLink, IconPencil, IconTrash } from
3
3
  import { ARTIFACT_FORMAT_FILES } from "@vvedantb/server";
4
4
  import { skipConfirmTitle } from "../../app/src/confirm/ConfirmSkipHint";
5
5
  import { Artifact, ArtifactAction, ArtifactActions, ArtifactHeader, ArtifactTitle } from "../ai-elements/artifact";
6
+ import { destructiveGhostClass } from "../ui/_menu-classes";
6
7
  import { TooltipProvider } from "../ui/tooltip";
7
8
  import { cn } from "../utils/cn";
8
9
  import { useArtifactEditDialogs, type ArtifactEditCallbacks } from "./artifact-dialogs";
@@ -15,15 +16,10 @@ import type { ArtifactDocument, ArtifactVersionSummary } from "./types";
15
16
  export type ArtifactViewerProps = ArtifactEditCallbacks &
16
17
  Pick<ArtifactRenderProps, "store" | "stateGlobalAliases"> &
17
18
  Pick<ArtifactVersionsMenuProps, "viewingVersion" | "onViewVersion" | "onRestoreVersion"> & {
18
- /** The artifact, with the body of the version on screen. */
19
19
  artifact: ArtifactDocument;
20
- /** Kept versions for the versions menu. Omit to hide the menu. */
21
20
  versions?: readonly ArtifactVersionSummary[];
22
- /** The artifact's own page, for "Open in new tab". Omit to hide the button. */
23
21
  href?: string;
24
- /** Before the title, e.g. a back link from the app's router. */
25
22
  headerStart?: ReactNode;
26
- /** Extra header actions, before Delete. */
27
23
  actions?: ReactNode;
28
24
  className?: string;
29
25
  };
@@ -112,7 +108,7 @@ export function ArtifactViewer({
112
108
  tooltip={skipConfirmTitle("Delete")}
113
109
  label="Delete"
114
110
  size="icon-sm"
115
- className={cn(actionClass, "text-danger hover:text-danger")}
111
+ className={cn(actionClass, destructiveGhostClass)}
116
112
  icon={<IconTrash size={16} />}
117
113
  onClick={(event) => edit.requestDelete(event)}
118
114
  />
@@ -13,6 +13,5 @@ export type ArtifactDocument = Pick<
13
13
  export type ArtifactVersionSummary = {
14
14
  version: number;
15
15
  createdAt: number;
16
- /** The title the artifact had at this version, when it differs. */
17
16
  title?: string;
18
17
  };
@@ -1,6 +1,5 @@
1
1
  import { playTone, type Tone } from "./playTone";
2
2
 
3
- /** A soft rising interval (A5 then D6). The second note overlaps the first. */
4
3
  const REPLY_CHIME: readonly Tone[] = [
5
4
  { frequency: 880, startOffsetS: 0, durationS: 0.28, peakGain: 0.14 },
6
5
  { frequency: 1174.66, startOffsetS: 0.09, durationS: 0.28, peakGain: 0.14 },
@@ -1,19 +1,13 @@
1
1
  import { tryAcquireAudioFloor } from "./audioFloor";
2
2
 
3
3
  export type Tone = {
4
- /** Pitch in Hz. */
5
4
  frequency: number;
6
- /** Delay from the start of the call, in seconds. Default 0. */
7
5
  startOffsetS?: number;
8
- /** Length in seconds. Default 0.28. */
9
6
  durationS?: number;
10
- /** Peak gain from 0 to 1. Default 0.14. */
11
7
  peakGain?: number;
12
- /** Default "sine". */
13
8
  type?: OscillatorType;
14
9
  };
15
10
 
16
- /** Long enough to avoid a click on attack. */
17
11
  const ATTACK_S = 0.012;
18
12
 
19
13
  let sharedContext: AudioContext | null = null;
@@ -68,6 +62,5 @@ export function playTone(tones: Tone | readonly Tone[]): void {
68
62
  oscillator.stop(toneEnd);
69
63
  }
70
64
  } catch {
71
- // Audio is optional. Stay silent on any failure.
72
65
  }
73
66
  }
@@ -2,15 +2,10 @@ import { forwardRef, useId, type ForwardRefExoticComponent, type RefAttributes,
2
2
  import { APP_MARKS, APP_MARK_VIEWBOX, APP_MARK_VIEWBOX_START, APP_NAMES, markLinecap, markStrokeWidth, type AppName } from "./svg";
3
3
 
4
4
  export type AppIconProps = Omit<SVGProps<SVGSVGElement>, "children" | "height" | "width" | "viewBox" | "stroke" | "color"> & {
5
- /** Rendered width and height (the glyph is square). Default 24. A number is in pixels; a string is any CSS length. */
6
5
  size?: number | string;
7
- /** Glyph colour, for fill and stroke glyphs. Default `"currentColor"`. */
8
6
  color?: string;
9
- /** Stroke width in rendered pixels, for stroke glyphs (Tabler style, for example `1.5`). Default: the glyph's own weight. Fill glyphs ignore it. */
10
7
  stroke?: number | string;
11
- /** Accessible name. Without it the icon is `aria-hidden`. */
12
8
  title?: string;
13
- /** Where the glyph sits in its equal-size square. `"center"` (default) centres it. `"start"` left-aligns the glyph's ink in the same square, so labels line up in a vertical list. The rendered box stays `size` x `size`. */
14
9
  align?: "center" | "start";
15
10
  };
16
11
 
@@ -3,15 +3,9 @@ import { APP_ICONS } from "./AppIcons";
3
3
  import { APP_MARKS, MARK_VIEWBOX, TILE_RADIUS, markLinecap, markStrokeWidth, type AppMarkVariant, type AppName } from "./svg";
4
4
 
5
5
  export type AppMarkProps = Omit<SVGProps<SVGSVGElement>, "children" | "height" | "width" | "viewBox"> & {
6
- /** Which family app's mark to draw. */
7
6
  app: AppName;
8
- /** `"mark"` (default): plain logo in `currentColor` on an equalised square viewBox, so every app looks the same size. `"tile"`: white glyph on a black rounded tile. `"tile-light"`: black glyph on a white tile. */
9
7
  variant?: AppMarkVariant;
10
- /**
11
- * Default 24. Sets both width and height, for marks and tiles alike (always square). A string is any CSS length.
12
- */
13
8
  size?: number | string;
14
- /** Accessible name. Without it the mark is `aria-hidden`. */
15
9
  title?: string;
16
10
  };
17
11
 
@@ -7,22 +7,13 @@ import type { AppName } from "./svg";
7
7
  export type ProductAppName = Exclude<AppName, "projectv" | "eva" | "bee">;
8
8
 
9
9
  export type AppWordmarkProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "rel" | "aria-label" | "title" | "id"> & {
10
- /** Which product app's name to show. The label is always the lowercase app id. */
11
10
  app: ProductAppName;
12
- /** Text font size in px (default 24). The icon is `Math.round(size * 1.4)` px square (larger than the text, so the glyph overhangs the cap height) and the gap is `0.2em`. */
13
11
  size?: number;
14
- /** `false` renders the name only (default `true`). */
15
12
  icon?: boolean;
16
- /** When set, the root is an `<a>` with a focus ring. Otherwise it is a `<span>`. */
17
13
  href?: string;
18
14
  className?: string;
19
15
  };
20
16
 
21
- /**
22
- * Icon frame size relative to the text font size. The glyphs fill about 55-80% of their square frame, so 1.4 makes the
23
- * visible glyph about 1.3x the Instrument Sans 500 cap height (0.72em): a slight overhang above and below the letters.
24
- * Stroke glyphs may read light next to weight-500 text. That is an observation only: stroke widths are unchanged.
25
- */
26
17
  const ICON_SCALE = 1.4;
27
18
 
28
19
  const FOCUS_RING =
@@ -36,7 +27,6 @@ const FOCUS_RING =
36
27
  export function AppWordmark({ app, size = 24, icon = true, href, className, ...rest }: AppWordmarkProps) {
37
28
  const Icon = APP_ICONS[app];
38
29
  const classes = cn("inline-flex flex-row items-center text-foreground", href && FOCUS_RING, className);
39
- // Font size sits on the root so the `0.2em` gap tracks the text size. The text node inherits it.
40
30
  const style = { fontSize: size, gap: "0.2em" };
41
31
  const content = (
42
32
  <>
@@ -5,9 +5,7 @@ export type FamilyAppName = Exclude<AppName, "eva" | "bee">;
5
5
 
6
6
  export type FamilyApp = {
7
7
  app: FamilyAppName;
8
- /** Display name. */
9
8
  name: string;
10
- /** Home page of the app. */
11
9
  url: string;
12
10
  };
13
11
 
package/src/brand/svg.ts CHANGED
@@ -1,6 +1,3 @@
1
- // Geometry and raw SVG strings for the family app marks. No imports, so the
2
- // asset script can load this file directly with Node.
3
-
4
1
  /** Every mark. `eva` and `bee` are marks and icons only: they are not family apps, so `FAMILY_APPS` leaves them out. */
5
2
  export const APP_NAMES = ["projectv", "vibot", "vhub", "vmem", "verve", "velth", "eva", "bee"] as const;
6
3
 
@@ -14,13 +11,9 @@ export const MARK_STROKE_WIDTH = 50;
14
11
  export const TILE_RADIUS = 224;
15
12
 
16
13
  export type MarkShape = {
17
- /** Filled shapes (no stroke) versus lines (50 wide, round caps by default). */
18
14
  kind: "fill" | "stroke";
19
- /** Path data on the 1024 grid. */
20
15
  paths: readonly string[];
21
- /** Stroke width override on the 1024 grid. Defaults to `MARK_STROKE_WIDTH`. */
22
16
  strokeWidth?: number;
23
- /** Line cap override. Defaults to `"round"`. */
24
17
  linecap?: "butt" | "round";
25
18
  };
26
19
 
@@ -101,7 +94,6 @@ export const APP_MARKS: Record<AppName, MarkShape> = {
101
94
  type Point = [number, number];
102
95
  type Box = [minX: number, minY: number, maxX: number, maxY: number];
103
96
 
104
- /** Roots in (0, 1) of the derivative of a Bezier with 1D control values `v` (quadratic or cubic). */
105
97
  function bezierExtrema(v: number[]): number[] {
106
98
  const roots: number[] = [];
107
99
  if (v.length === 3) {
@@ -127,7 +119,6 @@ function bezierAt(v: number[], t: number): number {
127
119
  return v.length === 3 ? u * u * p0 + 2 * u * t * p1 + t * t * p2 : u ** 3 * p0 + 3 * u * u * t * p1 + 3 * u * t * t * p2 + t ** 3 * p3;
128
120
  }
129
121
 
130
- /** Extreme points of an SVG elliptical arc (endpoint form, no rotation), including both ends. */
131
122
  function arcPoints(from: Point, [rx0, ry0, , large, sweep, x, y]: [number, number, number, number, number, number, number]): Point[] {
132
123
  const [x0, y0] = from;
133
124
  let rx = Math.abs(rx0);
package/src/client.ts CHANGED
@@ -1,9 +1,3 @@
1
- // @vvedantb/ui/client: the root without `@vvedantb/server`, convex or Clerk, for
2
- // Chrome extensions and other pages that cannot load them. It leaves out the
3
- // artifact viewers (`src/artifacts`), `ConvexClerkProvider`, `useStableAuth`
4
- // and `useEnsureUser`; everything else matches the root. Keep it in step with
5
- // src/index.ts: src/client-exports.test.ts compares the two, and
6
- // app/tests-node/client-graph.test.mjs checks the module graph.
7
1
  export { cn } from "./utils/cn";
8
2
  export { UiConfigProvider, useUiConfig } from "./ui/ui-config";
9
3
  export type { UiConfig, UiConfigProviderProps } from "./ui/ui-config";
@@ -14,8 +8,6 @@ export * from "./motion/presets";
14
8
  export * from "./motion/panel-transition";
15
9
  export { ListEnter, useFirstPaintGate } from "./motion/list-enter";
16
10
  export type { ListEnterProps } from "./motion/list-enter";
17
- // Gesture physics and animation budget helpers (shared clock, on-screen and
18
- // page-visibility pausing for infinite animations).
19
11
  export { DRAG_ACTIVATION_DISTANCE_PX, projectVelocity, rubberband } from "./utils/gesture";
20
12
  export {
21
13
  bindRuntimeAnimation,
@@ -28,8 +20,6 @@ export { CAT_SLOT_COUNT, catColorForId, catColorForSlot, catSlotForId } from "./
28
20
  export type { CatColorClasses, CatSlot } from "./utils/cat-color";
29
21
  export { CONTROL_RADIUS_CLASS, SURFACE_RADIUS_CLASS } from "./utils/surface-radius";
30
22
  export { restoreModalScrollLock } from "./ui/overlay-a11y";
31
- // Generic hooks: media query, page visibility, trailing debounce,
32
- // single-flight async calls and a persisted scroll container.
33
23
  export * from "./hooks";
34
24
  export { ErrorBoundary } from "./ui/error-boundary";
35
25
  export type { ErrorBoundaryProps } from "./ui/error-boundary";
@@ -132,11 +122,8 @@ export * from "./ui/sheet";
132
122
  export * from "./ui/visually-hidden";
133
123
  export * from "./ui/clearInputDissolve";
134
124
 
135
- // Animated nav icons. Styles: `@vvedantb/ui/tokens/css/nav-icons.css`.
136
125
  export * from "./icons";
137
126
 
138
- // Dual copies: the richer file uses the plain name. The deprecated `Alt` exports
139
- // (accordion, clear input, input group) wrap the main parts with the old markup.
140
127
  export * from "./ui/accordion";
141
128
  export {
142
129
  AccordionAlt,
@@ -188,9 +175,6 @@ export * from "./ai-elements/sources";
188
175
  export * from "./ai-elements/speech-input";
189
176
  export * from "./ai-elements/suggestion";
190
177
 
191
- // Agent activity and run surfaces (moved from an app): the activity timeline and
192
- // its step model, Trace lines, plan, test results, web preview, context usage
193
- // and the model picker.
194
178
  export * from "./ai-elements/activity-shared";
195
179
  export * from "./ai-elements/activity-question";
196
180
  export * from "./ai-elements/activity-tasks";
@@ -203,14 +187,9 @@ export * from "./ai-elements/context";
203
187
  export * from "./ai-elements/model-picker";
204
188
  export * from "./ai-elements/provider-icon";
205
189
 
206
- // Kibo UI blocks: gantt, kanban, list, contribution graph, video player,
207
- // cursor, avatar stack, theme switcher. Kanban, list and gantt drag with
208
- // `useDragSensors`, the shared dnd-kit sensor split.
209
190
  export * from "./kibo";
210
191
  export { useDragSensors } from "./utils/useDragSensors";
211
192
 
212
- // Markdown renderer (Streamdown + code blocks, callouts, links, KaTeX).
213
- // Styles: `@vvedantb/ui/tokens/css/markdown.css`.
214
193
  export * from "./markdown";
215
194
 
216
195
  export * from "./audio";
@@ -218,8 +197,6 @@ export * from "./audio";
218
197
  export * from "./composer";
219
198
  export { toast } from "sonner";
220
199
 
221
- // Shell: router-free pieces. Shell's own `cn` and `ClassValue` are not re-exported;
222
- // use the root `cn` (clsx + tailwind-merge).
223
200
  export { SidebarHeader } from "../shell/src/SidebarHeader";
224
201
  export type { SidebarHeaderProps } from "../shell/src/SidebarHeader";
225
202
  export { SidebarUpgradeCard } from "../shell/src/SidebarUpgradeCard";
@@ -233,8 +210,6 @@ export type {
233
210
  SessionsHoverCardSurface,
234
211
  } from "../shell/src/SessionsHoverCard";
235
212
 
236
- // App shell: sidebar and main page layout. Widths come from the
237
- // `--app-shell-*` CSS variables that `AppShell` sets.
238
213
  export { AppShell } from "../shell/src/AppShell";
239
214
  export type {
240
215
  AppShellContentProps,
@@ -263,7 +238,6 @@ export type {
263
238
  } from "../shell/src/SidePanelTabs";
264
239
  export { AppSidebar } from "../shell/src/AppSidebar";
265
240
  export type { AppSidebarProps } from "../shell/src/AppSidebar";
266
- // Composable sidebar parts (`Sidebar.Root`, `Sidebar.Rail`, ...) and their prop types.
267
241
  export * from "../shell/src/Sidebar";
268
242
  export { SidebarRail, RailTile, RailDivider, RailCollapseTile, shellDockTileProps, useInRailGroup } from "../shell/src/SidebarRail";
269
243
  export type {
@@ -313,8 +287,6 @@ export {
313
287
  } from "../shell/src/app-shell-classes";
314
288
  export type { SidebarNavItemClassOptions } from "../shell/src/app-shell-classes";
315
289
 
316
- // Marketing: landing kit, site footer and pricing dialog. Router- and Motion-free;
317
- // `createLandingKit` takes the app's `motion`. Styles: `@vvedantb/ui/landing.css`.
318
290
  export {
319
291
  LandingFeatureCard,
320
292
  LandingFooter,
@@ -383,9 +355,6 @@ export type {
383
355
  PricingPlanBenefit,
384
356
  } from "./marketing/PricingModal";
385
357
 
386
- // App helpers: confirm skip, update watcher, settings chrome, theme, page title,
387
- // page motion, time, VITE env and error messages. Not here: `ConvexClerkProvider`,
388
- // `useStableAuth` and `useEnsureUser`, which import convex or Clerk.
389
358
  export {
390
359
  bindToWindow,
391
360
  createAltHeldStore,
@@ -467,12 +436,9 @@ export {
467
436
  export { convexErrorMessage, userFacingErrorMessage } from "../app/src/convex/errorMessage";
468
437
  export { useHeldResult } from "../app/src/convex/useHeldResult";
469
438
 
470
- // Family app marks (Icon* components, deprecated AppMark and raw SVG strings for favicons).
471
439
  export * from "./brand";
472
440
 
473
- // Third-party brand logos (`GitHubIcon`, `SlackIcon`, `ClaudeIcon`, ...). Also `@vvedantb/ui/logos`.
474
441
  export * from "./logos";
475
442
 
476
- // Native tokens (JS values that match tokens.css).
477
443
  export { tokens } from "../tokens/src/native";
478
444
  export type { Tokens } from "../tokens/src/native";