@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
@@ -1,13 +1,14 @@
1
- import { NavIconBase, type IconProps } from "./nav-icon-base";
1
+ import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
2
2
 
3
- /** Magnifying glass that scans with a lens glint on hover. */
4
- export function SearchIcon({ strokeWidth = 1.75, ...props }: IconProps) {
3
+ /** Magnifying glass that scans with a lens glint on hover. Solid lens and heavier handle while `active`. */
4
+ export function SearchIcon({ strokeWidth = 1.75, cutoutColor, ...props }: CutoutIconProps) {
5
+ const { active } = props;
5
6
  return (
6
7
  <NavIconBase {...props} strokeWidth={strokeWidth} hoverScale="1.12" loop={1200}>
7
8
  <g className="vv-icon-search">
8
- <circle cx="10.5" cy="10.5" r="6.5" />
9
- <line x1="15.2" y1="15.2" x2="20.5" y2="20.5" />
10
- <circle cx="8.6" cy="8.6" r="1.1" fill="currentColor" stroke="none" className="vv-icon-search-glint" />
9
+ <circle cx="10.5" cy="10.5" r="6.5" fill={active ? "currentColor" : undefined} />
10
+ <line x1="15.2" y1="15.2" x2="20.5" y2="20.5" strokeWidth={active ? 3 : undefined} />
11
+ <circle cx="8.6" cy="8.6" r="1.1" fill="currentColor" stroke="none" className="vv-icon-search-glint" style={cutoutStyle(active, "fill", cutoutColor)} />
11
12
  </g>
12
13
  </NavIconBase>
13
14
  );
@@ -1,22 +1,20 @@
1
- import { NavIconBase, type IconProps } from "./nav-icon-base";
1
+ import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
2
2
 
3
- export type SettingsIconProps = IconProps & {
4
- /**
5
- * `"spin"` (default): continuous 2.5s linear spin, stroke 1.7, springy 1.15 hover scale.
6
- * `"turn"`: a gear drawn hub first that clicks round one tooth (60deg) at a time over 2.4s,
7
- * stroke 1.75, eased 1.12 hover scale like the other 1.75-stroke icons.
8
- */
3
+ export type SettingsIconProps = CutoutIconProps & {
9
4
  variant?: "spin" | "turn";
10
5
  };
11
6
 
12
- /** Gear that spins on hover, or turns one notch at a time with `variant="turn"`. */
13
- export function SettingsIcon({ variant = "spin", strokeWidth, ...props }: SettingsIconProps) {
7
+ /** Gear that spins on hover, or turns one notch at a time with `variant="turn"`. Solid while `active`. */
8
+ export function SettingsIcon({ variant = "spin", strokeWidth, cutoutColor, ...props }: SettingsIconProps) {
9
+ const { active } = props;
10
+ const solid = active ? "currentColor" : undefined;
11
+ const holeStyle = active ? { ...cutoutStyle(active, "stroke", cutoutColor), ...cutoutStyle(active, "fill", cutoutColor) } : undefined;
14
12
  if (variant === "turn") {
15
13
  return (
16
14
  <NavIconBase {...props} strokeWidth={strokeWidth ?? 1.75} hoverScale="1.12" loop={2400}>
17
15
  <g className="vv-icon-gear-turn">
18
- <circle cx="12" cy="12" r="3" />
19
- <path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065" />
16
+ <circle cx="12" cy="12" r="3" style={holeStyle} />
17
+ <path fill={solid} d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065" />
20
18
  </g>
21
19
  </NavIconBase>
22
20
  );
@@ -24,8 +22,8 @@ export function SettingsIcon({ variant = "spin", strokeWidth, ...props }: Settin
24
22
  return (
25
23
  <NavIconBase {...props} strokeWidth={strokeWidth ?? 1.7} hoverScale="1.15" loop={2500}>
26
24
  <g className="vv-icon-gear">
27
- <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
28
- <circle cx="12" cy="12" r="3" />
25
+ <path fill={solid} d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
26
+ <circle cx="12" cy="12" r="3" style={holeStyle} />
29
27
  </g>
30
28
  </NavIconBase>
31
29
  );
@@ -2,7 +2,6 @@ import { cn } from "../utils/cn";
2
2
  import { NavIconBase, type IconProps } from "./nav-icon-base";
3
3
 
4
4
  export type SidebarToggleIconProps = IconProps & {
5
- /** Chevron points out (expand) instead of in (collapse). */
6
5
  collapsed?: boolean;
7
6
  };
8
7
 
@@ -0,0 +1,138 @@
1
+ import type { ReactNode } from "react";
2
+ import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
3
+
4
+ /**
5
+ * Solid (filled) twins of outline icons, for the active tab. Same 24x24 grid and
6
+ * weight as the outline glyph, so swapping them does not shift layout. Inner detail
7
+ * is painted in the cutout colour so it reads as a hole in the solid shape.
8
+ */
9
+ function Solid({
10
+ strokeWidth = 1.75,
11
+ size = 22,
12
+ cutoutColor: _cutoutColor,
13
+ children,
14
+ ...props
15
+ }: CutoutIconProps & { children: ReactNode }) {
16
+ return (
17
+ <NavIconBase {...props} size={size} strokeWidth={strokeWidth} animate={false} active hoverScale="1.12" loop={1000}>
18
+ {children}
19
+ </NavIconBase>
20
+ );
21
+ }
22
+
23
+ /** Closed book, solid, with the page rule and title line cut out. */
24
+ export function BookSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
25
+ const stroke = cutoutStyle(true, "stroke", cutoutColor);
26
+ return (
27
+ <Solid {...props}>
28
+ <path d="M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z" fill="currentColor" />
29
+ <path d="M19 16h-12a2 2 0 0 0 -2 2" style={stroke} />
30
+ <path d="M9 8h6" style={stroke} />
31
+ </Solid>
32
+ );
33
+ }
34
+
35
+ /** Brain, solid, with the midline and folds cut out. */
36
+ export function BrainSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
37
+ const stroke = cutoutStyle(true, "stroke", cutoutColor);
38
+ return (
39
+ <Solid {...props}>
40
+ <g fill="currentColor">
41
+ <rect x="5" y="6.5" width="14" height="11" />
42
+ <circle cx="8.5" cy="6.5" r="3.5" />
43
+ <circle cx="6.5" cy="12.5" r="3.5" />
44
+ <circle cx="8.5" cy="17.5" r="3.5" />
45
+ <circle cx="15.5" cy="6.5" r="3.5" />
46
+ <circle cx="17.5" cy="12.5" r="3.5" />
47
+ <circle cx="15.5" cy="17.5" r="3.5" />
48
+ </g>
49
+ <path d="M12 6.5v10" style={stroke} />
50
+ <path d="M8.5 13a3.5 3.5 0 0 1 3.5 3.5" style={stroke} />
51
+ <path d="M15.5 13a3.5 3.5 0 0 0 -3.5 3.5" style={stroke} />
52
+ </Solid>
53
+ );
54
+ }
55
+
56
+ /** Paperclip drawn heavy so it reads as solid. */
57
+ export function PaperclipSolidIcon({ strokeWidth = 2.6, ...props }: CutoutIconProps) {
58
+ return (
59
+ <Solid {...props} strokeWidth={strokeWidth}>
60
+ <path d="M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5" />
61
+ </Solid>
62
+ );
63
+ }
64
+
65
+ /** Pulse line drawn heavy so it reads as solid. */
66
+ export function ActivitySolidIcon({ strokeWidth = 2.6, ...props }: CutoutIconProps) {
67
+ return (
68
+ <Solid {...props} strokeWidth={strokeWidth}>
69
+ <path d="M3 12h4l3 8l4 -16l3 8h4" />
70
+ </Solid>
71
+ );
72
+ }
73
+
74
+ /** Scan corners with a solid centre band. */
75
+ export function ScanSolidIcon(props: CutoutIconProps) {
76
+ return (
77
+ <Solid {...props}>
78
+ <path d="M3 7v-2a2 2 0 0 1 2 -2h2" />
79
+ <path d="M3 17v2a2 2 0 0 0 2 2h2" />
80
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
81
+ <path d="M17 21h2a2 2 0 0 0 2 -2v-2" />
82
+ <rect x="5" y="10.5" width="14" height="3" rx="1.5" fill="currentColor" />
83
+ </Solid>
84
+ );
85
+ }
86
+
87
+ /** Three people, solid. */
88
+ export function UsersGroupSolidIcon(props: CutoutIconProps) {
89
+ return (
90
+ <Solid {...props}>
91
+ <g fill="currentColor">
92
+ <circle cx="12" cy="13" r="2" />
93
+ <circle cx="17" cy="5" r="2" />
94
+ <circle cx="7" cy="5" r="2" />
95
+ <path d="M8 21v-1a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v1z" />
96
+ <path d="M17 10h2a2 2 0 0 1 2 2v1h-4z" />
97
+ <path d="M7 10h-2a2 2 0 0 0 -2 2v1h4z" />
98
+ </g>
99
+ </Solid>
100
+ );
101
+ }
102
+
103
+ /** Two plug halves, solid, with the contact marks cut out. */
104
+ export function PlugConnectedSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
105
+ const stroke = cutoutStyle(true, "stroke", cutoutColor);
106
+ return (
107
+ <Solid {...props}>
108
+ <path d="M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z" fill="currentColor" />
109
+ <path d="M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z" fill="currentColor" />
110
+ <path d="M3 21l2.5 -2.5" />
111
+ <path d="M18.5 5.5l2.5 -2.5" />
112
+ <path d="M10 11l-2 2" style={stroke} />
113
+ <path d="M13 14l-2 2" style={stroke} />
114
+ </Solid>
115
+ );
116
+ }
117
+
118
+ /** Receipt, solid, with the currency mark cut out. */
119
+ export function ReceiptSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
120
+ return (
121
+ <Solid {...props}>
122
+ <path d="M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2z" fill="currentColor" />
123
+ <path d="M14 8h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5m2 0v1.5m0 -9v1.5" style={cutoutStyle(true, "stroke", cutoutColor)} />
124
+ </Solid>
125
+ );
126
+ }
127
+
128
+ /** Account circle, solid, with the head and shoulders cut out. */
129
+ export function UserCircleSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
130
+ const stroke = cutoutStyle(true, "stroke", cutoutColor);
131
+ return (
132
+ <Solid {...props}>
133
+ <circle cx="12" cy="12" r="9" fill="currentColor" />
134
+ <circle cx="12" cy="10" r="3" style={{ ...stroke, ...cutoutStyle(true, "fill", cutoutColor) }} />
135
+ <path d="M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855" style={stroke} />
136
+ </Solid>
137
+ );
138
+ }
@@ -0,0 +1,14 @@
1
+ import type { ComponentType, JSX } from "react";
2
+
3
+ /**
4
+ * Locks an in-house nav icon to its solid `active` look. Call it once at module level, so the component identity stays stable across renders.
5
+ */
6
+ export function withActive<P extends { active?: boolean }>(
7
+ Icon: ComponentType<P>,
8
+ ): (props: Omit<P, "active">) => JSX.Element {
9
+ function ActiveIcon(props: Omit<P, "active">) {
10
+ return <Icon {...(props as P)} active />;
11
+ }
12
+ ActiveIcon.displayName = `Active(${Icon.displayName ?? Icon.name ?? "Icon"})`;
13
+ return ActiveIcon;
14
+ }
package/src/index.ts CHANGED
@@ -1,5 +1,3 @@
1
- // Colour, radius, shadow and font tokens live in @vvedantb/ui/tokens. Import that
2
- // stylesheet in the app. This package does not ship a second token set.
3
1
  export { cn } from "./utils/cn";
4
2
  export { UiConfigProvider, useUiConfig } from "./ui/ui-config";
5
3
  export type { UiConfig, UiConfigProviderProps } from "./ui/ui-config";
@@ -10,8 +8,6 @@ export * from "./motion/presets";
10
8
  export * from "./motion/panel-transition";
11
9
  export { ListEnter, useFirstPaintGate } from "./motion/list-enter";
12
10
  export type { ListEnterProps } from "./motion/list-enter";
13
- // Gesture physics and animation budget helpers (shared clock, on-screen and
14
- // page-visibility pausing for infinite animations).
15
11
  export { DRAG_ACTIVATION_DISTANCE_PX, projectVelocity, rubberband } from "./utils/gesture";
16
12
  export {
17
13
  bindRuntimeAnimation,
@@ -24,8 +20,6 @@ export { CAT_SLOT_COUNT, catColorForId, catColorForSlot, catSlotForId } from "./
24
20
  export type { CatColorClasses, CatSlot } from "./utils/cat-color";
25
21
  export { CONTROL_RADIUS_CLASS, SURFACE_RADIUS_CLASS } from "./utils/surface-radius";
26
22
  export { restoreModalScrollLock } from "./ui/overlay-a11y";
27
- // Generic hooks: media query, page visibility, trailing debounce,
28
- // single-flight async calls and a persisted scroll container.
29
23
  export * from "./hooks";
30
24
  export { ErrorBoundary } from "./ui/error-boundary";
31
25
  export type { ErrorBoundaryProps } from "./ui/error-boundary";
@@ -128,11 +122,8 @@ export * from "./ui/sheet";
128
122
  export * from "./ui/visually-hidden";
129
123
  export * from "./ui/clearInputDissolve";
130
124
 
131
- // Animated nav icons. Styles: `@vvedantb/ui/tokens/css/nav-icons.css`.
132
125
  export * from "./icons";
133
126
 
134
- // Dual copies: the richer file uses the plain name. The deprecated `Alt` exports
135
- // (accordion, clear input, input group) wrap the main parts with the old markup.
136
127
  export * from "./ui/accordion";
137
128
  export {
138
129
  AccordionAlt,
@@ -184,9 +175,6 @@ export * from "./ai-elements/sources";
184
175
  export * from "./ai-elements/speech-input";
185
176
  export * from "./ai-elements/suggestion";
186
177
 
187
- // Agent activity and run surfaces (moved from an app): the activity timeline and
188
- // its step model, Trace lines, plan, test results, web preview, context usage
189
- // and the model picker.
190
178
  export * from "./ai-elements/activity-shared";
191
179
  export * from "./ai-elements/activity-question";
192
180
  export * from "./ai-elements/activity-tasks";
@@ -199,18 +187,11 @@ export * from "./ai-elements/context";
199
187
  export * from "./ai-elements/model-picker";
200
188
  export * from "./ai-elements/provider-icon";
201
189
 
202
- // Artifact viewers: frame with the state bridge, card, list, toolbar, viewer.
203
- // The core (schemas, state ops, document wrapper) comes from `@vvedantb/server`.
204
190
  export * from "./artifacts";
205
191
 
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
192
  export * from "./kibo";
210
193
  export { useDragSensors } from "./utils/useDragSensors";
211
194
 
212
- // Markdown renderer (Streamdown + code blocks, callouts, links, KaTeX).
213
- // Styles: `@vvedantb/ui/tokens/css/markdown.css`.
214
195
  export * from "./markdown";
215
196
 
216
197
  export * from "./audio";
@@ -218,8 +199,6 @@ export * from "./audio";
218
199
  export * from "./composer";
219
200
  export { toast } from "sonner";
220
201
 
221
- // Shell: router-free pieces. Shell's own `cn` and `ClassValue` are not re-exported;
222
- // use the root `cn` (clsx + tailwind-merge).
223
202
  export { SidebarHeader } from "../shell/src/SidebarHeader";
224
203
  export type { SidebarHeaderProps } from "../shell/src/SidebarHeader";
225
204
  export { SidebarUpgradeCard } from "../shell/src/SidebarUpgradeCard";
@@ -233,8 +212,6 @@ export type {
233
212
  SessionsHoverCardSurface,
234
213
  } from "../shell/src/SessionsHoverCard";
235
214
 
236
- // App shell: sidebar and main page layout. Widths come from the
237
- // `--app-shell-*` CSS variables that `AppShell` sets.
238
215
  export { AppShell } from "../shell/src/AppShell";
239
216
  export type {
240
217
  AppShellContentProps,
@@ -264,7 +241,6 @@ export type {
264
241
  } from "../shell/src/SidePanelTabs";
265
242
  export { AppSidebar } from "../shell/src/AppSidebar";
266
243
  export type { AppSidebarProps } from "../shell/src/AppSidebar";
267
- // Composable sidebar parts (`Sidebar.Root`, `Sidebar.Rail`, ...) and their prop types.
268
244
  export * from "../shell/src/Sidebar";
269
245
  export { SidebarRail, RailTile, RailDivider, RailCollapseTile, shellDockTileProps, useInRailGroup } from "../shell/src/SidebarRail";
270
246
  export type {
@@ -314,8 +290,6 @@ export {
314
290
  } from "../shell/src/app-shell-classes";
315
291
  export type { SidebarNavItemClassOptions } from "../shell/src/app-shell-classes";
316
292
 
317
- // Marketing: landing kit, site footer and pricing dialog. Router- and Motion-free;
318
- // `createLandingKit` takes the app's `motion`. Styles: `@vvedantb/ui/landing.css`.
319
293
  export {
320
294
  LandingFeatureCard,
321
295
  LandingFooter,
@@ -386,15 +360,11 @@ export type {
386
360
  export { VProPricingModal } from "./marketing/VProPricingModal";
387
361
  export type { VProPricingModalProps } from "./marketing/VProPricingModal";
388
362
 
389
- // App helpers: confirm skip, update watcher, settings chrome, stable auth, Convex provider, VITE env and ensure-user.
390
363
  export * from "../app/src/index";
391
364
 
392
- // Family app marks (Icon* components, deprecated AppMark and raw SVG strings for favicons).
393
365
  export * from "./brand";
394
366
 
395
- // Third-party brand logos (`GitHubIcon`, `SlackIcon`, `ClaudeIcon`, ...). Also `@vvedantb/ui/logos`.
396
367
  export * from "./logos";
397
368
 
398
- // Native tokens (JS values that match tokens.css).
399
369
  export { tokens } from "../tokens/src/native";
400
370
  export type { Tokens } from "../tokens/src/native";
@@ -53,15 +53,6 @@ export const GanttFeatureDragHelper: FC<GanttFeatureDragHelperProps> = ({
53
53
  >
54
54
  <div
55
55
  className={merge(
56
- // The handle slides out on hover via translate, not `left`/`right`:
57
- // an inset animation relayouts every frame, a transform does not.
58
- // Only opacity and the slide transition, so this stays on the
59
- // compositor while the user is mid-drag.
60
- //
61
- // The named property is `translate`, not `transform`: the slide is
62
- // `translate-x-*`, which Tailwind compiles to `translate: …`, and an
63
- // arbitrary `transition-[…]` matches property names literally — so
64
- // the handle used to appear at its final offset in one frame.
65
56
  classes.dragHandle,
66
57
  direction === "left" ? "left-0" : "right-0",
67
58
  direction === "left" ? "translate-x-2.5" : "-translate-x-2.5",
@@ -166,8 +157,6 @@ export const GanttFeatureItem: FC<GanttFeatureItemProps> = ({
166
157
 
167
158
  const addRange = useMemo(() => getAddRange(gantt.range), [gantt.range]);
168
159
 
169
- // Pixels per day for the active range, so drag deltas map to dates correctly
170
- // in every zoom (daily columns are per-day; monthly/quarterly are per-month).
171
160
  const pxPerDay = useMemo(() => {
172
161
  const colW = (gantt.columnWidth * gantt.zoom) / 100;
173
162
  return gantt.range === "daily" ? colW : colW / 30;
@@ -177,9 +166,6 @@ export const GanttFeatureItem: FC<GanttFeatureItemProps> = ({
177
166
  const [previousStartAt, setPreviousStartAt] = useState(startAt);
178
167
  const [previousEndAt, setPreviousEndAt] = useState(endAt);
179
168
 
180
- // A `MouseSensor` alone meant a gantt bar could not be moved or resized by
181
- // touch or pen at all — the three `DndContext`s below never armed off a
182
- // finger.
183
169
  const sensors = useDragSensors();
184
170
 
185
171
  const handleItemDragStart = useCallback(() => {
@@ -228,8 +214,6 @@ export const GanttFeatureItem: FC<GanttFeatureItemProps> = ({
228
214
  [pxPerDay, feature.endAt],
229
215
  );
230
216
 
231
- // When the bar sits outside the visible canvas, show a clickable date chip
232
- // pinned to the viewport edge that scrolls back to it (Linear's "← date").
233
217
  const viewportWidth = gantt.ref?.current?.clientWidth ?? 0;
234
218
  const visibleEnd =
235
219
  gantt.scrollX + Math.max(0, viewportWidth - gantt.sidebarWidth);
@@ -9,10 +9,7 @@ export type GanttContentHeaderProps = {
9
9
  renderHeaderItem: (index: number) => ReactNode;
10
10
  title: string;
11
11
  columns: number;
12
- /** Marks the column matching "now" so it can be visually emphasised. */
13
12
  isColumnCurrent?: (index: number) => boolean;
14
- /** When provided, only flagged columns get a left divider (e.g. week starts);
15
- * otherwise every column gets a right divider. */
16
13
  isColumnDivider?: (index: number) => boolean;
17
14
  };
18
15
 
@@ -76,7 +73,6 @@ const DailyHeader: FC = () => {
76
73
  .flatMap((quarter) => quarter.months)
77
74
  .map((month, index) => {
78
75
  const monthStart = new Date(year.year, index, 1);
79
- // Linear's grid is weekly: label + divide only at week starts (Sundays).
80
76
  const isWeekStart = (item: number) =>
81
77
  dayjs(monthStart).add(item, "day").day() === 0;
82
78
  return (
@@ -32,20 +32,11 @@ function throttle(fn: () => void, ms: number): () => void {
32
32
  }
33
33
 
34
34
  export interface GanttConfig {
35
- /** Replaces the built-in classes of a part. */
36
35
  classes?: {
37
- /**
38
- * `GanttProvider`'s scroll container: grid, scrolling with no visible
39
- * scrollbar, radius and fill. The range name and `className` follow.
40
- */
41
36
  root?: string;
42
- /** `GanttToday`'s pill (the caller `className` merges after it). */
43
37
  today?: string;
44
- /** The date that slides open under "Today" on hover. */
45
38
  todayDate?: string;
46
- /** The resize grip inside `GanttFeatureDragHelper`. */
47
39
  dragHandle?: string;
48
- /** The date chip `GanttFeatureItem` pins to the edge when off screen. */
49
40
  offscreenIndicator?: string;
50
41
  };
51
42
  }
@@ -119,16 +110,8 @@ export type GanttContextProps = {
119
110
  setScrollX: (v: number) => void;
120
111
  };
121
112
 
122
- /** The issue-list column at desktop width. */
123
113
  const GANTT_SIDEBAR_WIDTH_PX = 300;
124
114
 
125
- /**
126
- * The sidebar is a grid track, not a sized element, so its width has to be a
127
- * number. Hardcoded at 300 it left roughly 90px of chart canvas on a 390px
128
- * phone — the timeline was there, just not wide enough to read. Capped at 45% of
129
- * the viewport, a phone keeps the majority of the width for the bars while
130
- * desktop is unchanged.
131
- */
132
115
  function ganttSidebarWidth(): number {
133
116
  return Math.min(GANTT_SIDEBAR_WIDTH_PX, Math.round(window.innerWidth * 0.45));
134
117
  }
@@ -320,8 +303,6 @@ export const GanttProvider: FC<GanttProviderProps> = ({
320
303
 
321
304
  const headerHeight = 60;
322
305
  const rowHeight = 36;
323
- // Daily is rendered as a Linear-style weekly grid (~16px/day → ~112px/week),
324
- // so the per-day column is narrow and only week starts are labelled.
325
306
  let columnWidth = 16;
326
307
 
327
308
  if (range === "monthly") {
@@ -341,11 +322,7 @@ export const GanttProvider: FC<GanttProviderProps> = ({
341
322
  return vars;
342
323
  }, [zoom, columnWidth, sidebarWidth]);
343
324
 
344
- // Center the canvas on today once the sidebar width is known, matching
345
- // Linear's default (today near the middle of the viewport). Runs once.
346
325
  const didCenterRef = useRef(false);
347
- /* Scrolls the real element and then records where it landed; the scroll
348
- position only exists after layout, so it cannot be derived during render. */
349
326
  useEffect(() => {
350
327
  const el = scrollRef.current;
351
328
  if (!el || didCenterRef.current || sidebarWidth === 0) return;
@@ -371,8 +348,6 @@ export const GanttProvider: FC<GanttProviderProps> = ({
371
348
  didCenterRef.current = true;
372
349
  }, [sidebarWidth, zoom, range, columnWidth, timelineData, onAddItem]);
373
350
 
374
- // Ctrl/Cmd + wheel (and trackpad pinch, which sends ctrlKey) zooms the
375
- // timeline like Linear, instead of zooming the page. Plain wheel scrolls.
376
351
  const zoomRef = useRef(zoom);
377
352
  zoomRef.current = zoom;
378
353
  useEffect(() => {
@@ -395,9 +370,6 @@ export const GanttProvider: FC<GanttProviderProps> = ({
395
370
  return () => el.removeEventListener("wheel", onWheel);
396
371
  }, [onZoomChange]);
397
372
 
398
- /* Measures the rendered sidebar via a MutationObserver plus resize. There is
399
- no snapshot to read before the first paint, so useSyncExternalStore has
400
- nothing to return on mount. */
401
373
  useEffect(() => {
402
374
  const updateSidebarWidth = () => {
403
375
  const sidebarElement = scrollRef.current?.querySelector(
@@ -414,9 +386,6 @@ export const GanttProvider: FC<GanttProviderProps> = ({
414
386
  observer.observe(el, { childList: true, subtree: true });
415
387
  }
416
388
 
417
- // The width is viewport-relative below the full 300px, so it has to be
418
- // recomputed on resize and rotation — this number is also the scroll maths'
419
- // origin, so letting it drift from the rendered track mis-centres the chart.
420
389
  window.addEventListener("resize", updateSidebarWidth);
421
390
 
422
391
  return () => {
@@ -496,10 +465,6 @@ export const GanttProvider: FC<GanttProviderProps> = ({
496
465
  return () => scrollElement.removeEventListener("scroll", handleScroll);
497
466
  }, [handleScroll]);
498
467
 
499
- // Drag-to-pan: with the scrollbar hidden, pressing on empty canvas and
500
- // dragging scrolls the timeline like Linear's roadmap. Bars, the sidebar and
501
- // any interactive control opt out via the selector below so their own
502
- // click/drag behaviour is preserved.
503
468
  useEffect(() => {
504
469
  const el = scrollRef.current;
505
470
  if (!el) return;
@@ -608,7 +573,6 @@ export const GanttProvider: FC<GanttProviderProps> = ({
608
573
  setScrollX: () => {},
609
574
  });
610
575
 
611
- // Centre today in the viewport rather than pinning it to the left edge.
612
576
  scrollElement.scrollTo({
613
577
  left: Math.max(0, offset - scrollElement.clientWidth / 2),
614
578
  behavior: "smooth",
@@ -7,9 +7,7 @@ import { useGanttContext, type GanttFeature } from "./gantt-provider";
7
7
  export type GanttSidebarItemProps = {
8
8
  feature: GanttFeature;
9
9
  onSelectItem?: (id: string) => void;
10
- /** Leading slot (e.g. a phase status icon). Falls back to a colour dot. */
11
10
  icon?: ReactNode;
12
- /** Trailing slot (e.g. avatars + progress). Falls back to the duration. */
13
11
  meta?: ReactNode;
14
12
  selected?: boolean;
15
13
  className?: string;
@@ -39,11 +37,6 @@ export const GanttSidebarItem: FC<GanttSidebarItemProps> = ({
39
37
  };
40
38
 
41
39
  return (
42
- // A plain row with a real `<button>` stretched across it, not a
43
- // `role="button" tabIndex={0}` div — see `ui/list-row.tsx`, which documents
44
- // why the div form needs a hand-written Enter/Space handler and still gets
45
- // the role, focus and press semantics wrong. The row keeps its own `relative`
46
- // so the overlay is bounded by it.
47
40
  <div
48
41
  className={merge(
49
42
  "relative flex cursor-pointer items-center gap-2.5 px-2.5 text-xs transition-colors hover:bg-surface-secondary/50 has-[button:focus-visible]:ring-2 has-[button:focus-visible]:ring-ring/35",
@@ -138,10 +138,6 @@ export const GanttToday: FC<GanttTodayProps> = ({ className }) => {
138
138
  )}
139
139
  >
140
140
  Today
141
- {/* Only max-height, not `all`: the pill inherits colour from its
142
- parent, so `transition-all` also dragged those along. The height
143
- animation relayouts nothing outside the marker, which is absolutely
144
- positioned at zero width. */}
145
141
  <span className={classes.todayDate}>
146
142
  {dayjs(date).format("MMM DD, YYYY")}
147
143
  </span>
@@ -28,19 +28,9 @@ import { useDragSensors } from "../utils/useDragSensors";
28
28
  import { resolveOverColumnId } from "./kanbanDropTarget";
29
29
 
30
30
  export interface KanbanConfig {
31
- /** Replaces the built-in classes of a part. */
32
31
  classes?: {
33
- /**
34
- * `KanbanCard`: grab cursor, the transitions it runs itself and press
35
- * feedback. The radius and the dragging state are added on top.
36
- */
37
32
  card?: string;
38
33
  };
39
- /**
40
- * The transitions `KanbanCard` runs itself (press scale and drag fade),
41
- * appended to the reorder transition dnd-kit writes inline. A CSS
42
- * `transition` list.
43
- */
44
34
  cardTransition?: string;
45
35
  }
46
36
 
@@ -66,11 +56,6 @@ type KanbanContextValue = {
66
56
  columns: KanbanColumnDef[];
67
57
  data: KanbanItem[];
68
58
  activeCardId: string | null;
69
- /**
70
- * Column the dragged card would land in. Distinct from a column's own
71
- * `isOver`: pointing at a card resolves `over` to that card, so the column
72
- * under the pointer never reports `isOver` once it holds any cards.
73
- */
74
59
  overColumnId: string | null;
75
60
  };
76
61
 
@@ -83,8 +68,6 @@ const KanbanContext = createContext<KanbanContextValue>({
83
68
 
84
69
  export const useKanbanContext = () => useContext(KanbanContext);
85
70
 
86
- // --- KanbanBoard: droppable column zone ---
87
-
88
71
  export type KanbanBoardProps = {
89
72
  id: string;
90
73
  children: ReactNode;
@@ -109,9 +92,6 @@ export const KanbanBoard = ({
109
92
  "flex size-full min-h-40 flex-col overflow-hidden bg-surface-secondary/40 text-xs transition-[background-color,border-color]",
110
93
  SURFACE_RADIUS_CLASS,
111
94
  className,
112
- // After `className` on purpose: callers set a column background, and
113
- // tailwind-merge keeps whichever `bg-*` / `border-*` comes last — so
114
- // the drop highlight has to be the last word or it never shows.
115
95
  isDropTarget && "border border-primary/40 bg-primary/10",
116
96
  )}
117
97
  ref={setNodeRef}
@@ -121,8 +101,6 @@ export const KanbanBoard = ({
121
101
  );
122
102
  };
123
103
 
124
- // --- KanbanCard: sortable item wrapper ---
125
-
126
104
  export type KanbanCardProps = {
127
105
  id: string;
128
106
  children: ReactNode;
@@ -149,18 +127,6 @@ export const KanbanCard = ({
149
127
  const merge = useCn();
150
128
 
151
129
  const style = {
152
- /**
153
- * `useSortable` hands back a `transition` string, and putting it in inline
154
- * style outranks every `transition-*` class on the element — the shorthand
155
- * resets `transition-property`, so while a sort is animating the class below
156
- * is not merely overridden on duration, it stops applying at all and the
157
- * press scale snaps. dnd-kit's own entry only ever names `transform`.
158
- *
159
- * Appending the two properties the card animates itself keeps the reflow
160
- * tween dnd-kit wants and the press and drag-fade the card wants. The value
161
- * is `undefined` when nothing is sorting, which is why it is filtered rather
162
- * than interpolated.
163
- */
164
130
  transition: [transition, config?.cardTransition ?? DEFAULT_CARD_TRANSITION]
165
131
  .filter(Boolean)
166
132
  .join(", "),
@@ -175,15 +141,6 @@ export const KanbanCard = ({
175
141
  ref={setNodeRef}
176
142
  onClick={onClick}
177
143
  className={merge(
178
- // Press feedback on pointer-down, not on release — the card has to
179
- // acknowledge the grab before the drag threshold is crossed, or the
180
- // first few pixels of every drag read as a dead control.
181
- //
182
- // `scale` is named explicitly alongside `transform`: an arbitrary
183
- // `transition-[…]` emits exactly the properties listed, and Tailwind
184
- // compiles `scale-[0.98]` to the individual `scale` property, which
185
- // `transform` does not match — so this press was a no-op. `transform`
186
- // stays for the inline one `useSortable` writes below.
187
144
  classes.card,
188
145
  SURFACE_RADIUS_CLASS,
189
146
  isDragging && "pointer-events-none cursor-grabbing opacity-30",
@@ -195,8 +152,6 @@ export const KanbanCard = ({
195
152
  );
196
153
  };
197
154
 
198
- // --- KanbanCards: SortableContext + auto-filter by column from context ---
199
-
200
155
  export type KanbanCardsProps = Omit<
201
156
  HTMLAttributes<HTMLDivElement>,
202
157
  "children" | "id"
@@ -225,8 +180,6 @@ export const KanbanCards = ({
225
180
  );
226
181
  };
227
182
 
228
- // --- KanbanHeader: simple styled header ---
229
-
230
183
  export type KanbanHeaderProps = HTMLAttributes<HTMLDivElement>;
231
184
 
232
185
  export const KanbanHeader = ({ className, ...props }: KanbanHeaderProps) => {
@@ -234,8 +187,6 @@ export const KanbanHeader = ({ className, ...props }: KanbanHeaderProps) => {
234
187
  return <div className={merge("m-0 p-2 font-medium text-sm", className)} {...props} />;
235
188
  };
236
189
 
237
- // --- KanbanProvider: DnD context + Kanban context + a11y ---
238
-
239
190
  export type KanbanProviderProps = {
240
191
  children: ReactNode;
241
192
  columns: KanbanColumnDef[];