@vvedantb/ui 0.67.0 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/app/src/auth/useStableAuth.ts +0 -2
  2. package/app/src/confirm/ConfirmSkipHint.tsx +0 -2
  3. package/app/src/confirm/useAltHeld.ts +0 -17
  4. package/app/src/convex/ConvexClerkProvider.tsx +0 -3
  5. package/app/src/convex/env.ts +0 -4
  6. package/app/src/convex/errorMessage.ts +0 -1
  7. package/app/src/convex/useHeldResult.ts +0 -3
  8. package/app/src/page-motion/PageMotionProvider.tsx +0 -6
  9. package/app/src/page-title/createPageTitleContext.tsx +0 -14
  10. package/app/src/settings/SettingsEmptyState.tsx +0 -4
  11. package/app/src/settings/SettingsField.tsx +0 -4
  12. package/app/src/settings/SettingsPage.tsx +0 -12
  13. package/app/src/settings/SettingsSection.tsx +0 -14
  14. package/app/src/settings/ThemeModePicker.tsx +0 -6
  15. package/app/src/theme/createThemeProvider.tsx +0 -33
  16. package/app/src/time/compactRelativeTime.ts +0 -16
  17. package/app/src/update/staleDeployReload.ts +0 -40
  18. package/app/src/update/updateWatcher.ts +0 -8
  19. package/dist/app/src/auth/useStableAuth.js +0 -1
  20. package/dist/app/src/confirm/ConfirmSkipHint.js +0 -3
  21. package/dist/app/src/confirm/useAltHeld.js +0 -17
  22. package/dist/app/src/convex/env.js +0 -3
  23. package/dist/app/src/convex/errorMessage.js +0 -2
  24. package/dist/app/src/settings/ThemeModePicker.js +0 -1
  25. package/dist/app/src/theme/createThemeProvider.js +1 -11
  26. package/dist/app/src/time/compactRelativeTime.js +0 -8
  27. package/dist/app/src/update/staleDeployReload.js +3 -38
  28. package/dist/app/src/update/updateWatcher.js +1 -3
  29. package/dist/shell/src/AppShell.js +0 -14
  30. package/dist/shell/src/PageHeaderBar.js +0 -3
  31. package/dist/shell/src/SessionsHoverCard.js +0 -9
  32. package/dist/shell/src/SidePanelTabs.js +0 -36
  33. package/dist/shell/src/Sidebar.js +0 -1
  34. package/dist/shell/src/SidebarChrome.js +0 -19
  35. package/dist/shell/src/SidebarIconTooltip.js +0 -1
  36. package/dist/shell/src/SidebarRail.js +0 -12
  37. package/dist/shell/src/SidebarResize.js +1 -4
  38. package/dist/shell/src/app-shell-classes.js +0 -10
  39. package/dist/shell/src/index.js +0 -1
  40. package/dist/shell/src/shell-panel-motion.js +0 -12
  41. package/dist/src/ai-elements/activity-shared.js +0 -6
  42. package/dist/src/ai-elements/activity-step-label.js +0 -6
  43. package/dist/src/ai-elements/activity-step-types.js +0 -4
  44. package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
  45. package/dist/src/ai-elements/activity-tasks.js +0 -55
  46. package/dist/src/ai-elements/artifact.js +0 -4
  47. package/dist/src/ai-elements/attachments.js +0 -41
  48. package/dist/src/ai-elements/code-block.js +0 -18
  49. package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
  50. package/dist/src/ai-elements/context.js +0 -13
  51. package/dist/src/ai-elements/conversation.js +0 -4
  52. package/dist/src/ai-elements/jump-rail.js +0 -5
  53. package/dist/src/ai-elements/message.js +0 -7
  54. package/dist/src/ai-elements/model-picker-types.js +0 -1
  55. package/dist/src/ai-elements/model-picker.js +1 -6
  56. package/dist/src/ai-elements/model-selector.js +0 -4
  57. package/dist/src/ai-elements/prompt-input-speech.js +0 -13
  58. package/dist/src/ai-elements/prompt-input.js +0 -1
  59. package/dist/src/ai-elements/provider-icon.js +0 -4
  60. package/dist/src/ai-elements/queue.js +0 -15
  61. package/dist/src/ai-elements/shimmer.js +0 -14
  62. package/dist/src/ai-elements/speech-input.js +0 -7
  63. package/dist/src/artifacts/artifact-frame.js +0 -2
  64. package/dist/src/audio/playChime.js +0 -2
  65. package/dist/src/audio/playTone.js +1 -4
  66. package/dist/src/brand/AppWordmark.js +0 -5
  67. package/dist/src/brand/svg.js +0 -6
  68. package/dist/src/client.js +0 -43
  69. package/dist/src/composer/Composer.js +0 -27
  70. package/dist/src/composer/input-area/InputArea.js +0 -3
  71. package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
  72. package/dist/src/composer/input-area/composerPrediction.js +0 -3
  73. package/dist/src/generative-ui/content.js +0 -2
  74. package/dist/src/generative-ui/index.js +0 -3
  75. package/dist/src/generative-ui/layout.js +0 -5
  76. package/dist/src/hooks/use-count-up-display.js +0 -2
  77. package/dist/src/hooks/use-idle-callback.js +0 -3
  78. package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
  79. package/dist/src/icons/animated/index.js +0 -4
  80. package/dist/src/icons/board-icon.js +74 -41
  81. package/dist/src/icons/bolt-icon.js +30 -20
  82. package/dist/src/icons/building-icon.js +125 -61
  83. package/dist/src/icons/files-icon.js +103 -43
  84. package/dist/src/icons/inbox-icon.js +101 -49
  85. package/dist/src/icons/index.js +2 -1
  86. package/dist/src/icons/memory-icon.js +135 -58
  87. package/dist/src/icons/search-icon.js +143 -46
  88. package/dist/src/icons/settings-icon.js +113 -53
  89. package/dist/src/icons/solid-icons.js +665 -0
  90. package/dist/src/icons/with-active.js +25 -0
  91. package/dist/src/index.js +0 -40
  92. package/dist/src/kibo/gantt-features.js +0 -10
  93. package/dist/src/kibo/gantt-provider.js +0 -34
  94. package/dist/src/kibo/kanban.js +0 -15
  95. package/dist/src/kibo/list.js +0 -3
  96. package/dist/src/kibo/video-player.js +0 -7
  97. package/dist/src/logos/index.js +0 -4
  98. package/dist/src/markdown/Markdown.js +0 -15
  99. package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
  100. package/dist/src/markdown/MarkdownInlineCode.js +0 -6
  101. package/dist/src/markdown/MarkdownLink.js +0 -5
  102. package/dist/src/markdown/codeFence.js +0 -1
  103. package/dist/src/markdown/codeHighlight.js +0 -19
  104. package/dist/src/markdown/incrementalBlocks.js +0 -45
  105. package/dist/src/markdown/markdownClipboard.js +0 -13
  106. package/dist/src/markdown/mermaid.js +0 -25
  107. package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
  108. package/dist/src/markdown/useSmoothText.js +0 -5
  109. package/dist/src/marketing/PricingModal.js +0 -2
  110. package/dist/src/marketing/ProductHero.js +0 -2
  111. package/dist/src/marketing/createLandingKit.js +0 -5
  112. package/dist/src/marketing/marketing-classes.js +0 -7
  113. package/dist/src/motion/dock-motion.js +0 -27
  114. package/dist/src/motion/panel-transition.js +0 -2
  115. package/dist/src/ui/_field-classes.js +0 -3
  116. package/dist/src/ui/_menu-classes.js +0 -6
  117. package/dist/src/ui/_picker-classes.js +0 -9
  118. package/dist/src/ui/accordion.alt.js +0 -12
  119. package/dist/src/ui/badge.js +0 -1
  120. package/dist/src/ui/border-beam.js +0 -2
  121. package/dist/src/ui/breadcrumb.js +0 -15
  122. package/dist/src/ui/bulk-action-bar.js +0 -11
  123. package/dist/src/ui/button.js +0 -20
  124. package/dist/src/ui/calendar.js +1 -20
  125. package/dist/src/ui/card.js +0 -3
  126. package/dist/src/ui/carousel.js +0 -1
  127. package/dist/src/ui/clear-input.alt.js +0 -9
  128. package/dist/src/ui/clearInputDissolve.js +0 -4
  129. package/dist/src/ui/command.js +0 -15
  130. package/dist/src/ui/confetti-burst.js +0 -3
  131. package/dist/src/ui/confirm-dialog-parts.js +0 -11
  132. package/dist/src/ui/confirm-dialog.js +0 -6
  133. package/dist/src/ui/crossfade-icon.js +0 -2
  134. package/dist/src/ui/date-picker.js +0 -22
  135. package/dist/src/ui/dialog.js +0 -5
  136. package/dist/src/ui/empty-state.js +0 -7
  137. package/dist/src/ui/field.js +0 -21
  138. package/dist/src/ui/image-lightbox.js +0 -5
  139. package/dist/src/ui/input-group.alt.js +0 -24
  140. package/dist/src/ui/input-group.js +0 -4
  141. package/dist/src/ui/kbd.js +0 -3
  142. package/dist/src/ui/loading-state.js +0 -17
  143. package/dist/src/ui/marquee-on-hover.js +0 -3
  144. package/dist/src/ui/media-preview.js +0 -2
  145. package/dist/src/ui/modalTransition.js +0 -33
  146. package/dist/src/ui/overlay-a11y.js +0 -1
  147. package/dist/src/ui/page-title.js +0 -3
  148. package/dist/src/ui/refresh-spin-icon.js +0 -12
  149. package/dist/src/ui/search-input.js +0 -1
  150. package/dist/src/ui/select-field.js +0 -1
  151. package/dist/src/ui/send-queue-icon.js +0 -3
  152. package/dist/src/ui/sheet.js +0 -33
  153. package/dist/src/ui/slider.js +103 -82
  154. package/dist/src/ui/sonner-icons.js +0 -5
  155. package/dist/src/ui/sonner.js +0 -60
  156. package/dist/src/ui/spinner.js +0 -35
  157. package/dist/src/ui/status-dot.js +0 -2
  158. package/dist/src/ui/surface.js +0 -14
  159. package/dist/src/ui/switch.js +213 -36
  160. package/dist/src/ui/table.js +0 -1
  161. package/dist/src/ui/tabs-transition.js +0 -1
  162. package/dist/src/ui/tabs.js +0 -17
  163. package/dist/src/ui/tabsSliding.js +0 -6
  164. package/dist/src/ui/time-picker.js +0 -15
  165. package/dist/src/ui/toggle-search.js +0 -3
  166. package/dist/src/ui/ui-config.js +0 -16
  167. package/dist/src/utils/cat-color.js +0 -17
  168. package/dist/src/utils/cn.js +0 -5
  169. package/dist/src/utils/gesture.js +0 -8
  170. package/dist/src/utils/ref.js +0 -1
  171. package/dist/src/utils/runtimeVisibility.js +1 -22
  172. package/dist/src/utils/surface-radius.js +0 -11
  173. package/dist/src/utils/useDragSensors.js +0 -4
  174. package/dist/tokens/src/tailwind-preset.mjs +0 -3
  175. package/package.json +1 -1
  176. package/scripts/build-brand-assets.mjs +0 -8
  177. package/shell/src/AppShell.tsx +0 -37
  178. package/shell/src/AppSidebar.tsx +0 -14
  179. package/shell/src/ButtonTrack.tsx +0 -1
  180. package/shell/src/PageHeaderBar.tsx +0 -61
  181. package/shell/src/PageWrapper.tsx +0 -26
  182. package/shell/src/PillTabs.tsx +0 -1
  183. package/shell/src/SessionsHoverCard.tsx +0 -40
  184. package/shell/src/SidePanelTabs.tsx +0 -61
  185. package/shell/src/Sidebar.tsx +0 -1
  186. package/shell/src/SidebarAccountMenu.tsx +0 -40
  187. package/shell/src/SidebarChrome.tsx +0 -32
  188. package/shell/src/SidebarIconTooltip.tsx +0 -3
  189. package/shell/src/SidebarPanel.tsx +0 -20
  190. package/shell/src/SidebarRail.tsx +0 -44
  191. package/shell/src/SidebarResize.tsx +0 -6
  192. package/shell/src/SidebarUpgradeCard.tsx +0 -2
  193. package/shell/src/SignOutDialog.tsx +0 -6
  194. package/shell/src/app-shell-classes.ts +0 -15
  195. package/shell/src/index.ts +0 -1
  196. package/shell/src/shell-panel-motion.ts +0 -11
  197. package/shell/src/shell-variant.ts +0 -6
  198. package/src/ai-elements/activity-question.tsx +0 -2
  199. package/src/ai-elements/activity-shared.tsx +0 -11
  200. package/src/ai-elements/activity-step-detail.tsx +0 -2
  201. package/src/ai-elements/activity-step-label.ts +0 -5
  202. package/src/ai-elements/activity-step-types.ts +0 -24
  203. package/src/ai-elements/activity-tasks-utils.ts +0 -13
  204. package/src/ai-elements/activity-tasks.tsx +0 -61
  205. package/src/ai-elements/artifact.tsx +0 -7
  206. package/src/ai-elements/attachments.tsx +0 -33
  207. package/src/ai-elements/chat-day-divider.tsx +0 -3
  208. package/src/ai-elements/chat-jump-rail.tsx +0 -9
  209. package/src/ai-elements/code-block.tsx +0 -28
  210. package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
  211. package/src/ai-elements/context.tsx +0 -10
  212. package/src/ai-elements/conversation.tsx +0 -16
  213. package/src/ai-elements/jump-rail.tsx +0 -31
  214. package/src/ai-elements/message.tsx +0 -32
  215. package/src/ai-elements/model-picker-content.tsx +0 -17
  216. package/src/ai-elements/model-picker-types.ts +0 -5
  217. package/src/ai-elements/model-picker.tsx +0 -36
  218. package/src/ai-elements/model-selector.tsx +0 -5
  219. package/src/ai-elements/prompt-input-speech.tsx +0 -11
  220. package/src/ai-elements/prompt-input.tsx +0 -26
  221. package/src/ai-elements/provider-icon.tsx +0 -2
  222. package/src/ai-elements/queue.tsx +0 -19
  223. package/src/ai-elements/reasoning.tsx +0 -4
  224. package/src/ai-elements/shimmer.tsx +0 -16
  225. package/src/ai-elements/simple-model-ladder.tsx +0 -1
  226. package/src/ai-elements/speech-input.tsx +0 -6
  227. package/src/ai-elements/test-results.tsx +0 -5
  228. package/src/ai-elements/trace.tsx +0 -2
  229. package/src/ai-elements/web-preview.tsx +0 -7
  230. package/src/artifacts/artifact-card.tsx +0 -7
  231. package/src/artifacts/artifact-dialogs.tsx +0 -4
  232. package/src/artifacts/artifact-frame.tsx +0 -10
  233. package/src/artifacts/artifact-list-toolbar.tsx +0 -6
  234. package/src/artifacts/artifact-list.tsx +0 -4
  235. package/src/artifacts/artifact-type-icon.tsx +0 -1
  236. package/src/artifacts/artifact-versions-menu.tsx +0 -3
  237. package/src/artifacts/artifact-viewer.tsx +0 -5
  238. package/src/artifacts/types.ts +0 -1
  239. package/src/audio/playChime.ts +0 -1
  240. package/src/audio/playTone.ts +0 -7
  241. package/src/brand/AppIcons.tsx +0 -5
  242. package/src/brand/AppMark.tsx +0 -6
  243. package/src/brand/AppWordmark.tsx +0 -10
  244. package/src/brand/familyApps.ts +0 -2
  245. package/src/brand/svg.ts +0 -9
  246. package/src/client.ts +0 -34
  247. package/src/composer/Composer.tsx +0 -70
  248. package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
  249. package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
  250. package/src/composer/input-area/FadePresence.tsx +0 -4
  251. package/src/composer/input-area/InputActions.tsx +0 -5
  252. package/src/composer/input-area/InputArea.tsx +1 -28
  253. package/src/composer/input-area/InputAreaEditor.tsx +0 -39
  254. package/src/composer/input-area/InputBanners.tsx +0 -1
  255. package/src/composer/input-area/PromoBanner.tsx +0 -1
  256. package/src/composer/input-area/composerPrediction.ts +0 -2
  257. package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
  258. package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
  259. package/src/composer/prediction.ts +0 -6
  260. package/src/composer/useComposerPrediction.ts +0 -2
  261. package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
  262. package/src/generative-ui/content.tsx +0 -2
  263. package/src/generative-ui/index.ts +0 -3
  264. package/src/generative-ui/layout.tsx +0 -5
  265. package/src/hooks/use-count-up-display.ts +0 -1
  266. package/src/hooks/use-idle-callback.ts +0 -5
  267. package/src/hooks/use-persisted-scroll-parent.ts +0 -4
  268. package/src/hooks/use-single-flight.ts +0 -5
  269. package/src/icons/animated/animated-bell-icon.tsx +0 -6
  270. package/src/icons/animated/animated-counter.tsx +0 -5
  271. package/src/icons/animated/animated-key-icon.tsx +0 -4
  272. package/src/icons/animated/animated-notification-icon.tsx +0 -14
  273. package/src/icons/animated/animated-progress.tsx +0 -10
  274. package/src/icons/animated/animated-status-dot.tsx +0 -4
  275. package/src/icons/animated/index.ts +0 -4
  276. package/src/icons/animated/morphing-menu-icon.tsx +0 -5
  277. package/src/icons/animated/morphing-mic-icon.tsx +0 -2
  278. package/src/icons/animated/pulsing-rings.tsx +0 -4
  279. package/src/icons/automation-icon.tsx +0 -1
  280. package/src/icons/board-icon.tsx +13 -10
  281. package/src/icons/bolt-icon.tsx +5 -4
  282. package/src/icons/building-icon.tsx +11 -9
  283. package/src/icons/draft-icon.tsx +0 -1
  284. package/src/icons/files-icon.tsx +9 -5
  285. package/src/icons/inbox-arrow-icon.tsx +0 -1
  286. package/src/icons/inbox-icon.tsx +9 -5
  287. package/src/icons/index.ts +12 -1
  288. package/src/icons/memory-icon.tsx +9 -11
  289. package/src/icons/nav-icon-base.tsx +0 -10
  290. package/src/icons/search-icon.tsx +7 -6
  291. package/src/icons/settings-icon.tsx +11 -13
  292. package/src/icons/sidebar-toggle-icon.tsx +0 -1
  293. package/src/icons/solid-icons.tsx +138 -0
  294. package/src/icons/with-active.tsx +14 -0
  295. package/src/index.ts +0 -30
  296. package/src/kibo/gantt-features.tsx +0 -16
  297. package/src/kibo/gantt-header.tsx +0 -4
  298. package/src/kibo/gantt-provider.tsx +0 -36
  299. package/src/kibo/gantt-sidebar.tsx +0 -7
  300. package/src/kibo/gantt-timeline.tsx +0 -4
  301. package/src/kibo/kanban.tsx +0 -49
  302. package/src/kibo/list.tsx +0 -8
  303. package/src/kibo/theme-switcher.tsx +0 -5
  304. package/src/kibo/video-player.tsx +0 -9
  305. package/src/logos/index.ts +0 -3
  306. package/src/logos/logo-svg.tsx +0 -5
  307. package/src/markdown/Markdown.tsx +0 -20
  308. package/src/markdown/MarkdownCodeBlock.tsx +0 -14
  309. package/src/markdown/MarkdownInlineCode.tsx +0 -6
  310. package/src/markdown/MarkdownLink.tsx +0 -4
  311. package/src/markdown/codeFence.ts +0 -3
  312. package/src/markdown/codeHighlight.ts +0 -16
  313. package/src/markdown/incrementalBlocks.ts +0 -49
  314. package/src/markdown/markdownClipboard.ts +0 -12
  315. package/src/markdown/mermaid.ts +0 -22
  316. package/src/markdown/rehypeGithubAlerts.ts +0 -3
  317. package/src/markdown/useSmoothText.ts +0 -5
  318. package/src/marketing/FloatingBar.tsx +0 -3
  319. package/src/marketing/PricingModal.tsx +0 -45
  320. package/src/marketing/ProductHero.tsx +0 -23
  321. package/src/marketing/ProductHeroOrbit.tsx +0 -5
  322. package/src/marketing/SiteFooter.tsx +0 -23
  323. package/src/marketing/SiteHeader.tsx +0 -14
  324. package/src/marketing/VProPricingModal.tsx +0 -5
  325. package/src/marketing/createLandingKit.tsx +0 -12
  326. package/src/marketing/landing.tsx +0 -12
  327. package/src/marketing/marketing-classes.ts +0 -7
  328. package/src/motion/dock-motion.ts +0 -25
  329. package/src/motion/list-enter.tsx +0 -4
  330. package/src/motion/panel-transition.tsx +0 -5
  331. package/src/ui/_field-classes.ts +0 -2
  332. package/src/ui/_menu-classes.ts +0 -4
  333. package/src/ui/_menu-parts.tsx +0 -5
  334. package/src/ui/_picker-classes.ts +0 -6
  335. package/src/ui/accordion.alt.tsx +0 -8
  336. package/src/ui/accordion.tsx +0 -4
  337. package/src/ui/badge.tsx +0 -1
  338. package/src/ui/border-beam.tsx +0 -11
  339. package/src/ui/breadcrumb.tsx +0 -13
  340. package/src/ui/bulk-action-bar.tsx +0 -24
  341. package/src/ui/button.tsx +0 -27
  342. package/src/ui/calendar.tsx +0 -18
  343. package/src/ui/card.tsx +0 -3
  344. package/src/ui/carousel.tsx +0 -4
  345. package/src/ui/checkbox.tsx +0 -1
  346. package/src/ui/clear-input.alt.tsx +0 -8
  347. package/src/ui/clear-input.tsx +0 -16
  348. package/src/ui/clearInputDissolve.ts +0 -4
  349. package/src/ui/command.tsx +0 -22
  350. package/src/ui/confetti-burst.tsx +0 -4
  351. package/src/ui/confirm-dialog-parts.tsx +0 -45
  352. package/src/ui/confirm-dialog.tsx +0 -26
  353. package/src/ui/context-menu.tsx +0 -10
  354. package/src/ui/count-pop.tsx +0 -2
  355. package/src/ui/crossfade-icon.tsx +0 -3
  356. package/src/ui/date-picker.tsx +0 -40
  357. package/src/ui/dialog.tsx +0 -18
  358. package/src/ui/dropdown-menu.tsx +0 -11
  359. package/src/ui/empty-state.tsx +0 -15
  360. package/src/ui/error-boundary.tsx +0 -7
  361. package/src/ui/field.tsx +0 -18
  362. package/src/ui/hover-card.tsx +0 -6
  363. package/src/ui/image-lightbox.tsx +0 -7
  364. package/src/ui/input-group.alt.tsx +0 -16
  365. package/src/ui/input-group.tsx +0 -3
  366. package/src/ui/kbd.tsx +0 -3
  367. package/src/ui/label.tsx +0 -1
  368. package/src/ui/labeled-slider-row.tsx +0 -2
  369. package/src/ui/list-row.tsx +0 -46
  370. package/src/ui/loading-state.tsx +0 -23
  371. package/src/ui/marquee-on-hover.tsx +1 -6
  372. package/src/ui/media-preview.tsx +0 -5
  373. package/src/ui/modalTransition.ts +0 -25
  374. package/src/ui/overlay-a11y.ts +0 -1
  375. package/src/ui/page-title.tsx +0 -4
  376. package/src/ui/popover.tsx +0 -8
  377. package/src/ui/progress.tsx +0 -1
  378. package/src/ui/refresh-spin-icon.tsx +0 -11
  379. package/src/ui/relative-date-time.tsx +0 -3
  380. package/src/ui/rolling-number.tsx +0 -2
  381. package/src/ui/search-input.tsx +0 -9
  382. package/src/ui/select-field.tsx +0 -5
  383. package/src/ui/select.tsx +0 -8
  384. package/src/ui/send-queue-icon.tsx +0 -3
  385. package/src/ui/separator.tsx +0 -1
  386. package/src/ui/sheet.tsx +0 -42
  387. package/src/ui/slide-over-panel.tsx +0 -2
  388. package/src/ui/slider.tsx +21 -9
  389. package/src/ui/sonner-icons.tsx +0 -4
  390. package/src/ui/sonner.tsx +0 -78
  391. package/src/ui/spinner.tsx +0 -50
  392. package/src/ui/status-dot.tsx +0 -10
  393. package/src/ui/surface.tsx +0 -13
  394. package/src/ui/switch.tsx +72 -3
  395. package/src/ui/table.tsx +0 -3
  396. package/src/ui/tabs-transition.tsx +0 -12
  397. package/src/ui/tabs.tsx +0 -17
  398. package/src/ui/tabsSliding.ts +0 -5
  399. package/src/ui/time-picker.tsx +0 -17
  400. package/src/ui/toggle-search.tsx +0 -6
  401. package/src/ui/toolbar-search-input.tsx +0 -3
  402. package/src/ui/tooltip.tsx +0 -5
  403. package/src/ui/ui-config.tsx +0 -19
  404. package/src/utils/cat-color.ts +0 -20
  405. package/src/utils/cn.ts +0 -4
  406. package/src/utils/gesture.ts +0 -8
  407. package/src/utils/ref.ts +0 -1
  408. package/src/utils/runtimeVisibility.ts +0 -19
  409. package/src/utils/surface-radius.ts +0 -11
  410. package/src/utils/useDragSensors.ts +0 -2
  411. package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
  412. package/tokens/examples/toaster/Fixture.tsx +0 -4
  413. package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
  414. package/tokens/examples/toaster/vite.config.ts +0 -2
  415. package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
  416. package/tokens/examples/tokens-moved/vite.config.ts +0 -2
  417. package/tokens/src/tailwind-preset.mjs +0 -3
@@ -69,7 +69,6 @@ import {
69
69
  useRef,
70
70
  useState,
71
71
  } from "react";
72
- /** `existing` with `file` in its place when the ids match (old blob URL revoked). */
73
72
  const replaceFile = (
74
73
  existing: FileUIPart & { id: string },
75
74
  id: string,
@@ -130,7 +129,6 @@ export interface AttachmentsContext {
130
129
  })[];
131
130
  add: (files: File[] | FileList) => void;
132
131
  remove: (id: string) => void;
133
- /** Replace one attachment in place (same id and position). No re-validation. */
134
132
  replace: (id: string, file: File) => void;
135
133
  clear: () => void;
136
134
  openFileDialog: () => void;
@@ -339,15 +337,8 @@ export type PromptInputProps = Omit<
339
337
  syncHiddenInput?: boolean;
340
338
  maxFiles?: number;
341
339
  maxFileSize?: number;
342
- /** Merged onto the inner `InputGroup`. */
343
340
  containerClassName?: string;
344
- /** Same as `containerClassName`. */
345
341
  inputGroupClassName?: string;
346
- /**
347
- * Accepts a non-file drag of this MIME type: it counts as a drag over the
348
- * form (the `groupDragOver` classes) and `onDrop` receives its string
349
- * payload. Other types keep the browser's default drop.
350
- */
351
342
  dataDrop?: { type: string; onDrop: (payload: string) => void };
352
343
  onError?: (err: {
353
344
  code: "max_files" | "max_file_size" | "accept";
@@ -380,8 +371,6 @@ export const PromptInput = ({
380
371
  const usingProvider = !!controller;
381
372
  const inputRef = useRef<HTMLInputElement | null>(null);
382
373
  const formRef = useRef<HTMLFormElement | null>(null);
383
- // Enter/leave pairs, not a boolean: `dragleave` also fires when the pointer
384
- // moves onto a child of the form.
385
374
  const dragEnterDepth = useRef(0);
386
375
  const [isDragOver, setIsDragOver] = useState(false);
387
376
  const [items, setItems] = useState<
@@ -413,7 +402,6 @@ export const PromptInput = ({
413
402
  const prefix = pattern.slice(0, -1);
414
403
  return f.type.startsWith(prefix);
415
404
  }
416
- // Extension patterns (`.html`): browsers often omit the MIME type.
417
405
  if (pattern.startsWith(".")) {
418
406
  return f.name.toLowerCase().endsWith(pattern.toLowerCase());
419
407
  }
@@ -542,11 +530,9 @@ export const PromptInput = ({
542
530
  inputRef.current.value = "";
543
531
  }
544
532
  }, [files, syncHiddenInput]);
545
- // Drops land on the form, or anywhere in the document with `globalDrop`.
546
533
  useEffect(() => {
547
534
  const target: EventTarget | null = globalDrop ? document : formRef.current;
548
535
  if (!target) return;
549
- // Types are readable during the drag; the payload only on drop.
550
536
  const carriesData = (event: DragEvent) =>
551
537
  dataDrop !== undefined &&
552
538
  event.dataTransfer?.types?.includes(dataDrop.type) === true;
@@ -654,14 +640,12 @@ export const PromptInput = ({
654
640
  clear();
655
641
  if (usingProvider) controller.textInput.clear();
656
642
  } catch {
657
- /* Don't clear on error */
658
643
  }
659
644
  } else {
660
645
  clear();
661
646
  if (usingProvider) controller.textInput.clear();
662
647
  }
663
648
  } catch {
664
- /* Don't clear on error */
665
649
  }
666
650
  };
667
651
  const inner = (
@@ -812,13 +796,9 @@ export const PromptInputHeader = ({
812
796
  );
813
797
  };
814
798
  export type ReplyQuoteChipProps = Omit<ComponentProps<"div">, "children"> & {
815
- /** Who wrote the message being replied to. */
816
799
  author: string;
817
- /** Its text, cut to two lines. */
818
800
  text: string;
819
- /** Called by the X button. Clear the reply in the app. */
820
801
  onDismiss?: () => void;
821
- /** Default "Dismiss reply quote". */
822
802
  dismissLabel?: string;
823
803
  };
824
804
  /**
@@ -992,11 +972,6 @@ export const PromptInputActionMenuItem = ({
992
972
  export type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
993
973
  status?: ChatStatus;
994
974
  onStop?: () => void;
995
- /**
996
- * Set when a send would join a queue (the agent is still working). The send
997
- * icon becomes `SendQueueIcon`: an up arrow that morphs into a stack of
998
- * bars while `true`. Leave unset to keep `submitIcons.send`.
999
- */
1000
975
  queued?: boolean;
1001
976
  };
1002
977
  export const PromptInputSubmit = ({
@@ -1051,7 +1026,6 @@ export const PromptInputSubmit = ({
1051
1026
  >
1052
1027
  {children ??
1053
1028
  (config?.submitCrossfade ? (
1054
- // Keyed by status, so send, spinner, stop and error cross-fade.
1055
1029
  <CrossfadeIconSlot iconKey={iconKey}>{Icon}</CrossfadeIconSlot>
1056
1030
  ) : (
1057
1031
  Icon
@@ -53,7 +53,6 @@ function ClaudeMark({
53
53
  );
54
54
  }
55
55
 
56
- /** OpenAI mark — path from svgl `openai.svg` / `openai_dark.svg` (current B&W brand). */
57
56
  function OpenAIMark({
58
57
  size = 14,
59
58
  className,
@@ -107,7 +106,6 @@ function OpencodeMark({
107
106
  );
108
107
  }
109
108
 
110
- /** Cursor glyph — path from svgl `cursor_light.svg` / `cursor_dark.svg`. */
111
109
  function CursorMark({
112
110
  size = 14,
113
111
  className,
@@ -32,20 +32,6 @@ import {
32
32
  IconStack2,
33
33
  } from "@tabler/icons-react";
34
34
 
35
- // One Queue family, used in one of two ways:
36
- // - The queued-messages widget: `Queue` with `count`, `QueueHeader`,
37
- // `QueueList` and `QueueItem` with `text`. It animates with `motion.*`.
38
- // - Composable parts (the AI Elements `Queue`): `Queue` without `count`, the
39
- // `QueueSection*` parts, `QueueList`, `QueueItem` with children and the
40
- // `QueueItem*` parts. Plain elements only, no `motion.*`, so it renders
41
- // under a strict `LazyMotion`.
42
- // `QueueList` inside a composable `Queue` is the plain list; anywhere else it
43
- // is the widget's animated list.
44
- //
45
- // The widget keeps its own markup: its rows, actions and list have other
46
- // elements and classes than the parts, so building it on them would change
47
- // its DOM.
48
-
49
35
  /** `UiConfig.Queue`: `classes.sectionTrigger` replaces the section header's classes. */
50
36
  export interface QueueConfig {
51
37
  classes?: {
@@ -53,7 +39,6 @@ export interface QueueConfig {
53
39
  };
54
40
  }
55
41
 
56
- /** True inside a composable `Queue` (one without `count`). */
57
42
  const QueuePartsContext = createContext(false);
58
43
 
59
44
  /** The queued-messages widget: animates in while `count > 0`. */
@@ -158,7 +143,6 @@ export function QueueHeader({
158
143
  }
159
144
 
160
145
  export interface QueueListProps extends ComponentProps<"div"> {
161
- /** Widget list only: animates the list in and out. Default `true`. */
162
146
  open?: boolean;
163
147
  }
164
148
 
@@ -423,7 +407,6 @@ export const QueueSectionLabel = ({
423
407
  <span>
424
408
  {count} {label}
425
409
  </span>
426
- {/* After the text, pointing right, turning 90° when the section is open. */}
427
410
  <IconChevronRight className="-ml-0.5 size-3.5 opacity-70 transition-transform group-data-[state=open]:rotate-90" />
428
411
  </span>
429
412
  );
@@ -499,8 +482,6 @@ export const QueueItemActions = ({
499
482
  return (
500
483
  <div
501
484
  className={merge(
502
- // `reveal-on-hover`: hidden until row hover on pointer devices, always
503
- // visible below `sm` where there is no hover.
504
485
  "flex shrink-0 items-start gap-0.5 reveal-on-hover transition-opacity",
505
486
  className,
506
487
  )}
@@ -48,7 +48,6 @@ export function Reasoning({
48
48
  ...props
49
49
  }: ReasoningProps) {
50
50
  const resolvedDefaultOpen = defaultOpen ?? isStreaming;
51
- // Track if defaultOpen was explicitly set to false (to prevent auto-open)
52
51
  const isExplicitlyClosed = defaultOpen === false;
53
52
  const [isOpen, setIsOpen] = useControllableState<boolean>({
54
53
  defaultProp: resolvedDefaultOpen,
@@ -62,7 +61,6 @@ export function Reasoning({
62
61
  const hasEverStreamedRef = useRef(isStreaming);
63
62
  const [hasAutoClosed, setHasAutoClosed] = useState(false);
64
63
  const startTimeRef = useRef<number | null>(null);
65
- // Track when streaming starts and compute duration
66
64
  useEffect(() => {
67
65
  if (isStreaming) {
68
66
  hasEverStreamedRef.current = true;
@@ -74,13 +72,11 @@ export function Reasoning({
74
72
  startTimeRef.current = null;
75
73
  }
76
74
  }, [isStreaming, setDuration]);
77
- // Auto-open when streaming starts (unless explicitly closed)
78
75
  useEffect(() => {
79
76
  if (isStreaming && !isOpen && !isExplicitlyClosed) {
80
77
  setIsOpen(true);
81
78
  }
82
79
  }, [isStreaming, isOpen, setIsOpen, isExplicitlyClosed]);
83
- // Auto-close when streaming ends (once only, and only if it ever streamed)
84
80
  useEffect(() => {
85
81
  if (
86
82
  hasEverStreamedRef.current &&
@@ -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
  };
@@ -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
  };
@@ -16,15 +16,10 @@ import type { ArtifactDocument, ArtifactVersionSummary } from "./types";
16
16
  export type ArtifactViewerProps = ArtifactEditCallbacks &
17
17
  Pick<ArtifactRenderProps, "store" | "stateGlobalAliases"> &
18
18
  Pick<ArtifactVersionsMenuProps, "viewingVersion" | "onViewVersion" | "onRestoreVersion"> & {
19
- /** The artifact, with the body of the version on screen. */
20
19
  artifact: ArtifactDocument;
21
- /** Kept versions for the versions menu. Omit to hide the menu. */
22
20
  versions?: readonly ArtifactVersionSummary[];
23
- /** The artifact's own page, for "Open in new tab". Omit to hide the button. */
24
21
  href?: string;
25
- /** Before the title, e.g. a back link from the app's router. */
26
22
  headerStart?: ReactNode;
27
- /** Extra header actions, before Delete. */
28
23
  actions?: ReactNode;
29
24
  className?: string;
30
25
  };
@@ -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