@vvedantb/ui 0.67.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/app/src/auth/useStableAuth.ts +0 -2
  2. package/app/src/confirm/ConfirmSkipHint.tsx +0 -2
  3. package/app/src/confirm/useAltHeld.ts +0 -17
  4. package/app/src/convex/ConvexClerkProvider.tsx +0 -3
  5. package/app/src/convex/env.ts +0 -4
  6. package/app/src/convex/errorMessage.ts +0 -1
  7. package/app/src/convex/useHeldResult.ts +0 -3
  8. package/app/src/page-motion/PageMotionProvider.tsx +0 -6
  9. package/app/src/page-title/createPageTitleContext.tsx +0 -14
  10. package/app/src/settings/SettingsEmptyState.tsx +0 -4
  11. package/app/src/settings/SettingsField.tsx +0 -4
  12. package/app/src/settings/SettingsPage.tsx +0 -12
  13. package/app/src/settings/SettingsSection.tsx +0 -14
  14. package/app/src/settings/ThemeModePicker.tsx +0 -6
  15. package/app/src/theme/createThemeProvider.tsx +0 -33
  16. package/app/src/time/compactRelativeTime.ts +0 -16
  17. package/app/src/update/staleDeployReload.ts +0 -40
  18. package/app/src/update/updateWatcher.ts +0 -8
  19. package/dist/app/src/auth/useStableAuth.js +0 -1
  20. package/dist/app/src/confirm/ConfirmSkipHint.js +0 -3
  21. package/dist/app/src/confirm/useAltHeld.js +0 -17
  22. package/dist/app/src/convex/env.js +0 -3
  23. package/dist/app/src/convex/errorMessage.js +0 -2
  24. package/dist/app/src/settings/ThemeModePicker.js +0 -1
  25. package/dist/app/src/theme/createThemeProvider.js +1 -11
  26. package/dist/app/src/time/compactRelativeTime.js +0 -8
  27. package/dist/app/src/update/staleDeployReload.js +3 -38
  28. package/dist/app/src/update/updateWatcher.js +1 -3
  29. package/dist/shell/src/AppShell.js +0 -14
  30. package/dist/shell/src/PageHeaderBar.js +0 -3
  31. package/dist/shell/src/SessionsHoverCard.js +0 -9
  32. package/dist/shell/src/SidePanelTabs.js +0 -36
  33. package/dist/shell/src/Sidebar.js +0 -1
  34. package/dist/shell/src/SidebarChrome.js +0 -19
  35. package/dist/shell/src/SidebarIconTooltip.js +0 -1
  36. package/dist/shell/src/SidebarRail.js +0 -12
  37. package/dist/shell/src/SidebarResize.js +1 -4
  38. package/dist/shell/src/app-shell-classes.js +0 -10
  39. package/dist/shell/src/index.js +0 -1
  40. package/dist/shell/src/shell-panel-motion.js +0 -12
  41. package/dist/src/ai-elements/activity-shared.js +0 -6
  42. package/dist/src/ai-elements/activity-step-label.js +0 -6
  43. package/dist/src/ai-elements/activity-step-types.js +0 -4
  44. package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
  45. package/dist/src/ai-elements/activity-tasks.js +0 -55
  46. package/dist/src/ai-elements/artifact.js +0 -4
  47. package/dist/src/ai-elements/attachments.js +0 -41
  48. package/dist/src/ai-elements/code-block.js +0 -18
  49. package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
  50. package/dist/src/ai-elements/context.js +0 -13
  51. package/dist/src/ai-elements/conversation.js +0 -4
  52. package/dist/src/ai-elements/jump-rail.js +0 -5
  53. package/dist/src/ai-elements/message.js +0 -7
  54. package/dist/src/ai-elements/model-picker-types.js +0 -1
  55. package/dist/src/ai-elements/model-picker.js +1 -6
  56. package/dist/src/ai-elements/model-selector.js +0 -4
  57. package/dist/src/ai-elements/prompt-input-speech.js +0 -13
  58. package/dist/src/ai-elements/prompt-input.js +0 -1
  59. package/dist/src/ai-elements/provider-icon.js +0 -4
  60. package/dist/src/ai-elements/queue.js +0 -15
  61. package/dist/src/ai-elements/shimmer.js +0 -14
  62. package/dist/src/ai-elements/speech-input.js +0 -7
  63. package/dist/src/artifacts/artifact-frame.js +0 -2
  64. package/dist/src/audio/playChime.js +0 -2
  65. package/dist/src/audio/playTone.js +1 -4
  66. package/dist/src/brand/AppWordmark.js +0 -5
  67. package/dist/src/brand/svg.js +0 -6
  68. package/dist/src/client.js +0 -43
  69. package/dist/src/composer/Composer.js +0 -27
  70. package/dist/src/composer/input-area/InputArea.js +0 -3
  71. package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
  72. package/dist/src/composer/input-area/composerPrediction.js +0 -3
  73. package/dist/src/generative-ui/content.js +0 -2
  74. package/dist/src/generative-ui/index.js +0 -3
  75. package/dist/src/generative-ui/layout.js +0 -5
  76. package/dist/src/hooks/use-count-up-display.js +0 -2
  77. package/dist/src/hooks/use-idle-callback.js +0 -3
  78. package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
  79. package/dist/src/icons/animated/index.js +0 -4
  80. package/dist/src/icons/board-icon.js +74 -41
  81. package/dist/src/icons/bolt-icon.js +30 -20
  82. package/dist/src/icons/building-icon.js +125 -61
  83. package/dist/src/icons/files-icon.js +103 -43
  84. package/dist/src/icons/inbox-icon.js +101 -49
  85. package/dist/src/icons/index.js +2 -1
  86. package/dist/src/icons/memory-icon.js +135 -58
  87. package/dist/src/icons/search-icon.js +143 -46
  88. package/dist/src/icons/settings-icon.js +113 -53
  89. package/dist/src/icons/solid-icons.js +665 -0
  90. package/dist/src/icons/with-active.js +25 -0
  91. package/dist/src/index.js +0 -40
  92. package/dist/src/kibo/gantt-features.js +0 -10
  93. package/dist/src/kibo/gantt-provider.js +0 -34
  94. package/dist/src/kibo/kanban.js +0 -15
  95. package/dist/src/kibo/list.js +0 -3
  96. package/dist/src/kibo/video-player.js +0 -7
  97. package/dist/src/logos/index.js +0 -4
  98. package/dist/src/markdown/Markdown.js +0 -15
  99. package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
  100. package/dist/src/markdown/MarkdownInlineCode.js +0 -6
  101. package/dist/src/markdown/MarkdownLink.js +0 -5
  102. package/dist/src/markdown/codeFence.js +0 -1
  103. package/dist/src/markdown/codeHighlight.js +0 -19
  104. package/dist/src/markdown/incrementalBlocks.js +0 -45
  105. package/dist/src/markdown/markdownClipboard.js +0 -13
  106. package/dist/src/markdown/mermaid.js +0 -25
  107. package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
  108. package/dist/src/markdown/useSmoothText.js +0 -5
  109. package/dist/src/marketing/PricingModal.js +0 -2
  110. package/dist/src/marketing/ProductHero.js +0 -2
  111. package/dist/src/marketing/createLandingKit.js +0 -5
  112. package/dist/src/marketing/marketing-classes.js +0 -7
  113. package/dist/src/motion/dock-motion.js +0 -27
  114. package/dist/src/motion/panel-transition.js +0 -2
  115. package/dist/src/ui/_field-classes.js +0 -3
  116. package/dist/src/ui/_menu-classes.js +0 -6
  117. package/dist/src/ui/_picker-classes.js +0 -9
  118. package/dist/src/ui/accordion.alt.js +0 -12
  119. package/dist/src/ui/badge.js +0 -1
  120. package/dist/src/ui/border-beam.js +0 -2
  121. package/dist/src/ui/breadcrumb.js +0 -15
  122. package/dist/src/ui/bulk-action-bar.js +0 -11
  123. package/dist/src/ui/button.js +0 -20
  124. package/dist/src/ui/calendar.js +1 -20
  125. package/dist/src/ui/card.js +0 -3
  126. package/dist/src/ui/carousel.js +0 -1
  127. package/dist/src/ui/clear-input.alt.js +0 -9
  128. package/dist/src/ui/clearInputDissolve.js +0 -4
  129. package/dist/src/ui/command.js +0 -15
  130. package/dist/src/ui/confetti-burst.js +0 -3
  131. package/dist/src/ui/confirm-dialog-parts.js +0 -11
  132. package/dist/src/ui/confirm-dialog.js +0 -6
  133. package/dist/src/ui/crossfade-icon.js +0 -2
  134. package/dist/src/ui/date-picker.js +0 -22
  135. package/dist/src/ui/dialog.js +0 -5
  136. package/dist/src/ui/empty-state.js +0 -7
  137. package/dist/src/ui/field.js +0 -21
  138. package/dist/src/ui/image-lightbox.js +0 -5
  139. package/dist/src/ui/input-group.alt.js +0 -24
  140. package/dist/src/ui/input-group.js +0 -4
  141. package/dist/src/ui/kbd.js +0 -3
  142. package/dist/src/ui/loading-state.js +0 -17
  143. package/dist/src/ui/marquee-on-hover.js +0 -3
  144. package/dist/src/ui/media-preview.js +0 -2
  145. package/dist/src/ui/modalTransition.js +0 -33
  146. package/dist/src/ui/overlay-a11y.js +0 -1
  147. package/dist/src/ui/page-title.js +0 -3
  148. package/dist/src/ui/refresh-spin-icon.js +0 -12
  149. package/dist/src/ui/search-input.js +0 -1
  150. package/dist/src/ui/select-field.js +0 -1
  151. package/dist/src/ui/send-queue-icon.js +0 -3
  152. package/dist/src/ui/sheet.js +0 -33
  153. package/dist/src/ui/slider.js +103 -82
  154. package/dist/src/ui/sonner-icons.js +0 -5
  155. package/dist/src/ui/sonner.js +0 -60
  156. package/dist/src/ui/spinner.js +0 -35
  157. package/dist/src/ui/status-dot.js +0 -2
  158. package/dist/src/ui/surface.js +0 -14
  159. package/dist/src/ui/switch.js +213 -36
  160. package/dist/src/ui/table.js +0 -1
  161. package/dist/src/ui/tabs-transition.js +0 -1
  162. package/dist/src/ui/tabs.js +0 -17
  163. package/dist/src/ui/tabsSliding.js +0 -6
  164. package/dist/src/ui/time-picker.js +0 -15
  165. package/dist/src/ui/toggle-search.js +0 -3
  166. package/dist/src/ui/ui-config.js +0 -16
  167. package/dist/src/utils/cat-color.js +0 -17
  168. package/dist/src/utils/cn.js +0 -5
  169. package/dist/src/utils/gesture.js +0 -8
  170. package/dist/src/utils/ref.js +0 -1
  171. package/dist/src/utils/runtimeVisibility.js +1 -22
  172. package/dist/src/utils/surface-radius.js +0 -11
  173. package/dist/src/utils/useDragSensors.js +0 -4
  174. package/dist/tokens/src/tailwind-preset.mjs +0 -3
  175. package/package.json +1 -1
  176. package/scripts/build-brand-assets.mjs +0 -8
  177. package/shell/src/AppShell.tsx +0 -37
  178. package/shell/src/AppSidebar.tsx +0 -14
  179. package/shell/src/ButtonTrack.tsx +0 -1
  180. package/shell/src/PageHeaderBar.tsx +0 -61
  181. package/shell/src/PageWrapper.tsx +0 -26
  182. package/shell/src/PillTabs.tsx +0 -1
  183. package/shell/src/SessionsHoverCard.tsx +0 -40
  184. package/shell/src/SidePanelTabs.tsx +0 -61
  185. package/shell/src/Sidebar.tsx +0 -1
  186. package/shell/src/SidebarAccountMenu.tsx +0 -40
  187. package/shell/src/SidebarChrome.tsx +0 -32
  188. package/shell/src/SidebarIconTooltip.tsx +0 -3
  189. package/shell/src/SidebarPanel.tsx +0 -20
  190. package/shell/src/SidebarRail.tsx +0 -44
  191. package/shell/src/SidebarResize.tsx +0 -6
  192. package/shell/src/SidebarUpgradeCard.tsx +0 -2
  193. package/shell/src/SignOutDialog.tsx +0 -6
  194. package/shell/src/app-shell-classes.ts +0 -15
  195. package/shell/src/index.ts +0 -1
  196. package/shell/src/shell-panel-motion.ts +0 -11
  197. package/shell/src/shell-variant.ts +0 -6
  198. package/src/ai-elements/activity-question.tsx +0 -2
  199. package/src/ai-elements/activity-shared.tsx +0 -11
  200. package/src/ai-elements/activity-step-detail.tsx +0 -2
  201. package/src/ai-elements/activity-step-label.ts +0 -5
  202. package/src/ai-elements/activity-step-types.ts +0 -24
  203. package/src/ai-elements/activity-tasks-utils.ts +0 -13
  204. package/src/ai-elements/activity-tasks.tsx +0 -61
  205. package/src/ai-elements/artifact.tsx +0 -7
  206. package/src/ai-elements/attachments.tsx +0 -33
  207. package/src/ai-elements/chat-day-divider.tsx +0 -3
  208. package/src/ai-elements/chat-jump-rail.tsx +0 -9
  209. package/src/ai-elements/code-block.tsx +0 -28
  210. package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
  211. package/src/ai-elements/context.tsx +0 -10
  212. package/src/ai-elements/conversation.tsx +0 -16
  213. package/src/ai-elements/jump-rail.tsx +0 -31
  214. package/src/ai-elements/message.tsx +0 -32
  215. package/src/ai-elements/model-picker-content.tsx +0 -17
  216. package/src/ai-elements/model-picker-types.ts +0 -5
  217. package/src/ai-elements/model-picker.tsx +0 -36
  218. package/src/ai-elements/model-selector.tsx +0 -5
  219. package/src/ai-elements/prompt-input-speech.tsx +0 -11
  220. package/src/ai-elements/prompt-input.tsx +0 -26
  221. package/src/ai-elements/provider-icon.tsx +0 -2
  222. package/src/ai-elements/queue.tsx +0 -19
  223. package/src/ai-elements/reasoning.tsx +0 -4
  224. package/src/ai-elements/shimmer.tsx +0 -16
  225. package/src/ai-elements/simple-model-ladder.tsx +0 -1
  226. package/src/ai-elements/speech-input.tsx +0 -6
  227. package/src/ai-elements/test-results.tsx +0 -5
  228. package/src/ai-elements/trace.tsx +0 -2
  229. package/src/ai-elements/web-preview.tsx +0 -7
  230. package/src/artifacts/artifact-card.tsx +0 -7
  231. package/src/artifacts/artifact-dialogs.tsx +0 -4
  232. package/src/artifacts/artifact-frame.tsx +0 -10
  233. package/src/artifacts/artifact-list-toolbar.tsx +0 -6
  234. package/src/artifacts/artifact-list.tsx +0 -4
  235. package/src/artifacts/artifact-type-icon.tsx +0 -1
  236. package/src/artifacts/artifact-versions-menu.tsx +0 -3
  237. package/src/artifacts/artifact-viewer.tsx +0 -5
  238. package/src/artifacts/types.ts +0 -1
  239. package/src/audio/playChime.ts +0 -1
  240. package/src/audio/playTone.ts +0 -7
  241. package/src/brand/AppIcons.tsx +0 -5
  242. package/src/brand/AppMark.tsx +0 -6
  243. package/src/brand/AppWordmark.tsx +0 -10
  244. package/src/brand/familyApps.ts +0 -2
  245. package/src/brand/svg.ts +0 -9
  246. package/src/client.ts +0 -34
  247. package/src/composer/Composer.tsx +0 -70
  248. package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
  249. package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
  250. package/src/composer/input-area/FadePresence.tsx +0 -4
  251. package/src/composer/input-area/InputActions.tsx +0 -5
  252. package/src/composer/input-area/InputArea.tsx +1 -28
  253. package/src/composer/input-area/InputAreaEditor.tsx +0 -39
  254. package/src/composer/input-area/InputBanners.tsx +0 -1
  255. package/src/composer/input-area/PromoBanner.tsx +0 -1
  256. package/src/composer/input-area/composerPrediction.ts +0 -2
  257. package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
  258. package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
  259. package/src/composer/prediction.ts +0 -6
  260. package/src/composer/useComposerPrediction.ts +0 -2
  261. package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
  262. package/src/generative-ui/content.tsx +0 -2
  263. package/src/generative-ui/index.ts +0 -3
  264. package/src/generative-ui/layout.tsx +0 -5
  265. package/src/hooks/use-count-up-display.ts +0 -1
  266. package/src/hooks/use-idle-callback.ts +0 -5
  267. package/src/hooks/use-persisted-scroll-parent.ts +0 -4
  268. package/src/hooks/use-single-flight.ts +0 -5
  269. package/src/icons/animated/animated-bell-icon.tsx +0 -6
  270. package/src/icons/animated/animated-counter.tsx +0 -5
  271. package/src/icons/animated/animated-key-icon.tsx +0 -4
  272. package/src/icons/animated/animated-notification-icon.tsx +0 -14
  273. package/src/icons/animated/animated-progress.tsx +0 -10
  274. package/src/icons/animated/animated-status-dot.tsx +0 -4
  275. package/src/icons/animated/index.ts +0 -4
  276. package/src/icons/animated/morphing-menu-icon.tsx +0 -5
  277. package/src/icons/animated/morphing-mic-icon.tsx +0 -2
  278. package/src/icons/animated/pulsing-rings.tsx +0 -4
  279. package/src/icons/automation-icon.tsx +0 -1
  280. package/src/icons/board-icon.tsx +13 -10
  281. package/src/icons/bolt-icon.tsx +5 -4
  282. package/src/icons/building-icon.tsx +11 -9
  283. package/src/icons/draft-icon.tsx +0 -1
  284. package/src/icons/files-icon.tsx +9 -5
  285. package/src/icons/inbox-arrow-icon.tsx +0 -1
  286. package/src/icons/inbox-icon.tsx +9 -5
  287. package/src/icons/index.ts +12 -1
  288. package/src/icons/memory-icon.tsx +9 -11
  289. package/src/icons/nav-icon-base.tsx +0 -10
  290. package/src/icons/search-icon.tsx +7 -6
  291. package/src/icons/settings-icon.tsx +11 -13
  292. package/src/icons/sidebar-toggle-icon.tsx +0 -1
  293. package/src/icons/solid-icons.tsx +138 -0
  294. package/src/icons/with-active.tsx +14 -0
  295. package/src/index.ts +0 -30
  296. package/src/kibo/gantt-features.tsx +0 -16
  297. package/src/kibo/gantt-header.tsx +0 -4
  298. package/src/kibo/gantt-provider.tsx +0 -36
  299. package/src/kibo/gantt-sidebar.tsx +0 -7
  300. package/src/kibo/gantt-timeline.tsx +0 -4
  301. package/src/kibo/kanban.tsx +0 -49
  302. package/src/kibo/list.tsx +0 -8
  303. package/src/kibo/theme-switcher.tsx +0 -5
  304. package/src/kibo/video-player.tsx +0 -9
  305. package/src/logos/index.ts +0 -3
  306. package/src/logos/logo-svg.tsx +0 -5
  307. package/src/markdown/Markdown.tsx +0 -20
  308. package/src/markdown/MarkdownCodeBlock.tsx +0 -14
  309. package/src/markdown/MarkdownInlineCode.tsx +0 -6
  310. package/src/markdown/MarkdownLink.tsx +0 -4
  311. package/src/markdown/codeFence.ts +0 -3
  312. package/src/markdown/codeHighlight.ts +0 -16
  313. package/src/markdown/incrementalBlocks.ts +0 -49
  314. package/src/markdown/markdownClipboard.ts +0 -12
  315. package/src/markdown/mermaid.ts +0 -22
  316. package/src/markdown/rehypeGithubAlerts.ts +0 -3
  317. package/src/markdown/useSmoothText.ts +0 -5
  318. package/src/marketing/FloatingBar.tsx +0 -3
  319. package/src/marketing/PricingModal.tsx +0 -45
  320. package/src/marketing/ProductHero.tsx +0 -23
  321. package/src/marketing/ProductHeroOrbit.tsx +0 -5
  322. package/src/marketing/SiteFooter.tsx +0 -23
  323. package/src/marketing/SiteHeader.tsx +0 -14
  324. package/src/marketing/VProPricingModal.tsx +0 -5
  325. package/src/marketing/createLandingKit.tsx +0 -12
  326. package/src/marketing/landing.tsx +0 -12
  327. package/src/marketing/marketing-classes.ts +0 -7
  328. package/src/motion/dock-motion.ts +0 -25
  329. package/src/motion/list-enter.tsx +0 -4
  330. package/src/motion/panel-transition.tsx +0 -5
  331. package/src/ui/_field-classes.ts +0 -2
  332. package/src/ui/_menu-classes.ts +0 -4
  333. package/src/ui/_menu-parts.tsx +0 -5
  334. package/src/ui/_picker-classes.ts +0 -6
  335. package/src/ui/accordion.alt.tsx +0 -8
  336. package/src/ui/accordion.tsx +0 -4
  337. package/src/ui/badge.tsx +0 -1
  338. package/src/ui/border-beam.tsx +0 -11
  339. package/src/ui/breadcrumb.tsx +0 -13
  340. package/src/ui/bulk-action-bar.tsx +0 -24
  341. package/src/ui/button.tsx +0 -27
  342. package/src/ui/calendar.tsx +0 -18
  343. package/src/ui/card.tsx +0 -3
  344. package/src/ui/carousel.tsx +0 -4
  345. package/src/ui/checkbox.tsx +0 -1
  346. package/src/ui/clear-input.alt.tsx +0 -8
  347. package/src/ui/clear-input.tsx +0 -16
  348. package/src/ui/clearInputDissolve.ts +0 -4
  349. package/src/ui/command.tsx +0 -22
  350. package/src/ui/confetti-burst.tsx +0 -4
  351. package/src/ui/confirm-dialog-parts.tsx +0 -45
  352. package/src/ui/confirm-dialog.tsx +0 -26
  353. package/src/ui/context-menu.tsx +0 -10
  354. package/src/ui/count-pop.tsx +0 -2
  355. package/src/ui/crossfade-icon.tsx +0 -3
  356. package/src/ui/date-picker.tsx +0 -40
  357. package/src/ui/dialog.tsx +0 -18
  358. package/src/ui/dropdown-menu.tsx +0 -11
  359. package/src/ui/empty-state.tsx +0 -15
  360. package/src/ui/error-boundary.tsx +0 -7
  361. package/src/ui/field.tsx +0 -18
  362. package/src/ui/hover-card.tsx +0 -6
  363. package/src/ui/image-lightbox.tsx +0 -7
  364. package/src/ui/input-group.alt.tsx +0 -16
  365. package/src/ui/input-group.tsx +0 -3
  366. package/src/ui/kbd.tsx +0 -3
  367. package/src/ui/label.tsx +0 -1
  368. package/src/ui/labeled-slider-row.tsx +0 -2
  369. package/src/ui/list-row.tsx +0 -46
  370. package/src/ui/loading-state.tsx +0 -23
  371. package/src/ui/marquee-on-hover.tsx +1 -6
  372. package/src/ui/media-preview.tsx +0 -5
  373. package/src/ui/modalTransition.ts +0 -25
  374. package/src/ui/overlay-a11y.ts +0 -1
  375. package/src/ui/page-title.tsx +0 -4
  376. package/src/ui/popover.tsx +0 -8
  377. package/src/ui/progress.tsx +0 -1
  378. package/src/ui/refresh-spin-icon.tsx +0 -11
  379. package/src/ui/relative-date-time.tsx +0 -3
  380. package/src/ui/rolling-number.tsx +0 -2
  381. package/src/ui/search-input.tsx +0 -9
  382. package/src/ui/select-field.tsx +0 -5
  383. package/src/ui/select.tsx +0 -8
  384. package/src/ui/send-queue-icon.tsx +0 -3
  385. package/src/ui/separator.tsx +0 -1
  386. package/src/ui/sheet.tsx +0 -42
  387. package/src/ui/slide-over-panel.tsx +0 -2
  388. package/src/ui/slider.tsx +21 -9
  389. package/src/ui/sonner-icons.tsx +0 -4
  390. package/src/ui/sonner.tsx +0 -78
  391. package/src/ui/spinner.tsx +0 -50
  392. package/src/ui/status-dot.tsx +0 -10
  393. package/src/ui/surface.tsx +0 -13
  394. package/src/ui/switch.tsx +72 -3
  395. package/src/ui/table.tsx +0 -3
  396. package/src/ui/tabs-transition.tsx +0 -12
  397. package/src/ui/tabs.tsx +0 -17
  398. package/src/ui/tabsSliding.ts +0 -5
  399. package/src/ui/time-picker.tsx +0 -17
  400. package/src/ui/toggle-search.tsx +0 -6
  401. package/src/ui/toolbar-search-input.tsx +0 -3
  402. package/src/ui/tooltip.tsx +0 -5
  403. package/src/ui/ui-config.tsx +0 -19
  404. package/src/utils/cat-color.ts +0 -20
  405. package/src/utils/cn.ts +0 -4
  406. package/src/utils/gesture.ts +0 -8
  407. package/src/utils/ref.ts +0 -1
  408. package/src/utils/runtimeVisibility.ts +0 -19
  409. package/src/utils/surface-radius.ts +0 -11
  410. package/src/utils/useDragSensors.ts +0 -2
  411. package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
  412. package/tokens/examples/toaster/Fixture.tsx +0 -4
  413. package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
  414. package/tokens/examples/toaster/vite.config.ts +0 -2
  415. package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
  416. package/tokens/examples/tokens-moved/vite.config.ts +0 -2
  417. package/tokens/src/tailwind-preset.mjs +0 -3
@@ -19,15 +19,11 @@ export interface ListEnterProps {
19
19
  index: number;
20
20
  children: ReactNode;
21
21
  className?: string;
22
- /** `tokenTransition.fast` instead of `.base`. */
23
22
  fast?: boolean;
24
- /** When `false`, skip the enter (recycled rows, later overscan). */
25
23
  firstPaint?: boolean;
26
24
  staggerStep?: number;
27
25
  staggerMax?: number;
28
- /** Fade only, for rows that must not shift (e.g. gantt bars). Default `true`. */
29
26
  slide?: boolean;
30
- /** `tr` / `li` when the parent is a table or list; an `m.div` there is invalid HTML. */
31
27
  as?: "div" | "tr" | "li";
32
28
  }
33
29
 
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  import type { ComponentType, ReactNode } from "react";
3
3
 
4
- /** The `ViewTransition` props used here. Typed locally so consumers on `@types/react` without `ViewTransition` still typecheck. */
5
4
  type ViewTransitionLikeProps = {
6
5
  children?: ReactNode;
7
6
  default?: string;
@@ -13,9 +12,7 @@ const ViewTransition: ComponentType<ViewTransitionLikeProps> = Reflect.get(React
13
12
 
14
13
  export interface PanelTransitionProps {
15
14
  children?: ReactNode;
16
- /** View transition class on enter. */
17
15
  enter?: string;
18
- /** View transition class on exit. */
19
16
  exit?: string;
20
17
  }
21
18
 
@@ -40,9 +37,7 @@ export function PanelTransition({
40
37
  export interface ViewTransitionSuspenseProps {
41
38
  fallback: ReactNode;
42
39
  children: ReactNode;
43
- /** View transition class on the content as it arrives. Default `vt-enter`. */
44
40
  enter?: string;
45
- /** View transition class on the fallback as it leaves. Default `vt-exit`. */
46
41
  exit?: string;
47
42
  }
48
43
 
@@ -1,7 +1,5 @@
1
- // light field focus: border colour plus a 1px ring
2
1
  export const fieldFocusClass =
3
2
  "focus-visible:outline-hidden focus-visible:border-focus-border focus-visible:ring-1 focus-visible:ring-focus-ring";
4
3
 
5
- // the same on a wrapper whose control has focus
6
4
  export const fieldFocusWithinClass =
7
5
  "has-focus-visible:outline-hidden has-focus-visible:border-focus-border has-focus-visible:ring-1 has-focus-visible:ring-focus-ring";
@@ -1,11 +1,8 @@
1
- // floating overlay: tone + smooth-shadow-ring, never border+shadow
2
1
  const floatingSurfaceToneClass =
3
2
  "bg-overlay text-overlay-foreground smooth-shadow-ring-lg max-sm:max-w-[calc(100vw-2rem)]";
4
3
 
5
4
  export const floatingSurfaceClass = `rounded-lg ${floatingSurfaceToneClass}`;
6
5
 
7
- // Menu surface: the corner is the item radius plus the `p-1` inset, so a
8
- // highlighted item keeps the same gap to the edge round the corner.
9
6
  export const menuSurfaceClass = `rounded-menu ${floatingSurfaceToneClass}`;
10
7
 
11
8
  export const floatingSurfaceAnimateClass = [
@@ -23,7 +20,6 @@ export const floatingSurfaceAnimateClass = [
23
20
  export const triggerZoomAnimateClass =
24
21
  "origin-[var(--radix-popper-transform-origin)] duration-150 data-[state=closed]:duration-100 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:zoom-in-[0.4] data-[state=closed]:zoom-out-[0.4]";
25
22
 
26
- // shared floating menu surfaces: popover tone + smooth-shadow-ring-lg
27
23
  export const menuContentClass = [
28
24
  "z-50 min-w-[12rem] overflow-hidden p-1 outline-none max-sm:max-h-[85dvh] max-sm:overflow-y-auto",
29
25
  menuSurfaceClass,
@@ -5,7 +5,6 @@ import type * as React from "react";
5
5
  * `UiConfigProvider`); each menu has its own entry.
6
6
  */
7
7
  export interface MenuConfig {
8
- /** Replaces the built-in classes of a part. */
9
8
  classes?: {
10
9
  trigger?: string;
11
10
  content?: string;
@@ -18,14 +17,10 @@ export interface MenuConfig {
18
17
  separator?: string;
19
18
  shortcut?: string;
20
19
  };
21
- /** Replace the built-in icons. */
22
20
  icons?: {
23
- /** `CheckboxItem` indicator. */
24
21
  check?: React.ReactNode;
25
- /** `RadioItem` indicator. */
26
22
  radio?: React.ReactNode;
27
23
  };
28
- /** Default for `Content` `collisionPadding` (built-in: `8`). */
29
24
  collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
30
25
  }
31
26
 
@@ -1,10 +1,8 @@
1
1
  import { fieldFocusClass } from "./_field-classes";
2
2
 
3
- // input-styled trigger shared by TimePicker and the date pickers
4
3
  export const pickerTriggerClass =
5
4
  `inline-flex h-8 items-center justify-between gap-2 rounded-field border border-border bg-field-background px-2.5 text-xs font-medium tabular-nums transition-[border-color,box-shadow,background-color] duration-200 ease-smooth hover:bg-field-background/90 disabled:cursor-not-allowed disabled:opacity-50 ${fieldFocusClass}`;
6
5
 
7
- // selected item in a picker popover (TimePicker columns, calendar days, months)
8
6
  export const pickerSelectedClass = "bg-primary text-primary-foreground";
9
7
 
10
8
  export const pickerItemHoverClass = "hover:bg-surface-tertiary/50";
@@ -12,9 +10,5 @@ export const pickerItemHoverClass = "hover:bg-surface-tertiary/50";
12
10
  export const pickerFocusClass =
13
11
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring";
14
12
 
15
- // wrapper around a trigger and its siblings (clear control, second picker). it
16
- // shrinks to the trigger, grows with a `w-*` className, and goes full width
17
- // when a trigger inside is `w-full` (a percent width cannot resolve against a
18
- // shrink-to-fit wrapper)
19
13
  export const pickerFieldClass =
20
14
  "relative inline-flex max-w-full align-middle has-[.w-full]:flex has-[.w-full]:w-full";
@@ -3,16 +3,10 @@ import { IconChevronDown } from "@tabler/icons-react";
3
3
  import { Accordion as AccordionPrimitive } from "radix-ui";
4
4
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion";
5
5
 
6
- // The `Alt` look on the main parts: per-instance `classes` replace the main
7
- // classes (and any `UiConfig.Accordion` entry), and `data-slot={undefined}`
8
- // drops the main `data-slot` attributes, so the markup is the pre-wrapper one.
9
-
10
- /** @deprecated Use `Accordion`. Kept for existing consumers; removed in a later minor after they move. */
11
6
  function AccordionAlt(props: React.ComponentProps<typeof AccordionPrimitive.Root>) {
12
7
  return <Accordion data-slot={undefined} {...props} />;
13
8
  }
14
9
 
15
- /** @deprecated Use `AccordionItem`. Kept for existing consumers; removed in a later minor after they move. */
16
10
  function AccordionItemAlt(props: React.ComponentProps<typeof AccordionPrimitive.Item>) {
17
11
  return <AccordionItem data-slot={undefined} classes={{ item: "rounded-lg" }} {...props} />;
18
12
  }
@@ -23,7 +17,6 @@ const triggerClasses = {
23
17
  "flex flex-1 items-center justify-between rounded-lg py-4 text-sm font-medium transition-[background-color,color,transform] duration-100 ease-out active:scale-[0.99] hover:bg-surface-tertiary/50 [&[data-state=open]>svg]:rotate-180",
24
18
  };
25
19
 
26
- /** @deprecated Use `AccordionTrigger`. Kept for existing consumers; removed in a later minor after they move. */
27
20
  function AccordionTriggerAlt(props: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {
28
21
  return (
29
22
  <AccordionTrigger
@@ -41,7 +34,6 @@ const contentClasses = {
41
34
  contentInner: "pb-4 pt-0 text-muted-foreground",
42
35
  };
43
36
 
44
- /** @deprecated Use `AccordionContent`. Kept for existing consumers; removed in a later minor after they move. */
45
37
  function AccordionContentAlt(props: React.ComponentProps<typeof AccordionPrimitive.Content>) {
46
38
  return <AccordionContent data-slot={undefined} classes={contentClasses} {...props} />;
47
39
  }
@@ -51,7 +51,6 @@ function AccordionItem({
51
51
  classes,
52
52
  ...props
53
53
  }: React.ComponentProps<typeof AccordionPrimitive.Item> & {
54
- /** Replaces the item classes for this instance (wins over `UiConfig.Accordion.classes.item`). */
55
54
  classes?: Pick<AccordionClasses, "item">;
56
55
  }) {
57
56
  const config = useUiConfig("Accordion")?.classes;
@@ -73,9 +72,7 @@ function AccordionTrigger({
73
72
  classes,
74
73
  ...props
75
74
  }: React.ComponentProps<typeof AccordionPrimitive.Trigger> & {
76
- /** Shown after the children. Default a chevron. */
77
75
  icon?: React.ReactNode;
78
- /** Replaces the header and trigger classes for this instance (wins over `UiConfig.Accordion.classes`). */
79
76
  classes?: Pick<AccordionClasses, "header" | "trigger">;
80
77
  }) {
81
78
  const config = useUiConfig("Accordion");
@@ -107,7 +104,6 @@ function AccordionContent({
107
104
  classes,
108
105
  ...props
109
106
  }: React.ComponentProps<typeof AccordionPrimitive.Content> & {
110
- /** Replaces the panel and inner box classes for this instance (wins over `UiConfig.Accordion.classes`). */
111
107
  classes?: Pick<AccordionClasses, "content" | "contentInner">;
112
108
  }) {
113
109
  const config = useUiConfig("Accordion")?.classes;
package/src/ui/badge.tsx CHANGED
@@ -8,7 +8,6 @@ const badgeVariantClasses = {
8
8
  default: "border-border bg-default text-foreground",
9
9
  secondary: "border-separator bg-default text-default-foreground",
10
10
  destructive: "border-danger/25 bg-danger/12 text-danger",
11
- // Neutral border with a faint danger tint, e.g. a revoked or expired status.
12
11
  "destructive-soft": "border-border bg-danger/10 text-danger",
13
12
  outline: "border-separator bg-transparent text-muted-foreground",
14
13
  success: "border-success/25 bg-success/12 text-success",
@@ -14,23 +14,12 @@ export type BorderBeamColorVariant = "mono" | "progress" | "colorful";
14
14
 
15
15
  export type BorderBeamProps = ComponentPropsWithRef<"div"> & {
16
16
  children: ReactNode;
17
- /**
18
- * Runs the beam while true. Toggle this rather than mounting/unmounting
19
- * <BorderBeam/> — the wrapper is a real DOM node, so conditional rendering
20
- * would remount the whole subtree.
21
- */
22
17
  active: boolean;
23
18
  size?: BorderBeamSize;
24
19
  colorVariant?: BorderBeamColorVariant;
25
- /**
26
- * Wrapper classes. Give it the same radius as the child (e.g. `rounded-control`)
27
- * — the beam inherits the wrapper's radius.
28
- */
29
20
  className?: string;
30
21
  };
31
22
 
32
- // `beam-*`, not `border-beam-*` — tailwind-merge reads a `border-` prefix as a
33
- // border-colour utility and would drop the base class as a variant conflict.
34
23
  const sizeClass: Record<BorderBeamSize, string> = {
35
24
  sm: "beam-sm",
36
25
  md: "",
@@ -2,16 +2,10 @@ import * as React from "react";
2
2
  import { Slot } from "@radix-ui/react-slot";
3
3
  import { cn } from "../utils/cn";
4
4
 
5
- // breadcrumb, navigation trail for the current page location renders its children as a horizontal list with `/` separators automatically
6
- // inserted between them designed to replace the page title + back button on
7
- // detail pages: the parent route(s) act as the "up" affordance and the final
8
- // segment identifies the current page example: <breadcrumb> <breadcrumblink aschild> <link to="/wiki">wiki</link> </breadcrumblink> <breadcrumbpage>overview</breadcrumbpage> </breadcrumb>
9
5
  const Breadcrumb = React.forwardRef<
10
6
  HTMLElement,
11
7
  React.HTMLAttributes<HTMLElement>
12
8
  >(({ className, children, ...props }, ref) => {
13
- // Filter out falsy children (e.g. conditionally rendered segments) so the
14
- // separator interleaving stays aligned with actual rendered items.
15
9
  const items = React.Children.toArray(children).filter(Boolean);
16
10
 
17
11
  return (
@@ -35,10 +29,6 @@ const Breadcrumb = React.forwardRef<
35
29
  });
36
30
  Breadcrumb.displayName = "Breadcrumb";
37
31
 
38
- // clickable breadcrumb segment (parent routes) muted + medium weight, one
39
- // step quieter than the current page, shifts to foreground on hover pass
40
- // `aschild` to render as your router's link component while keeping the
41
- // styling, preserves type, safe routing
42
32
  const BreadcrumbLink = React.forwardRef<
43
33
  HTMLAnchorElement,
44
34
  React.AnchorHTMLAttributes<HTMLAnchorElement> & { asChild?: boolean }
@@ -57,8 +47,6 @@ const BreadcrumbLink = React.forwardRef<
57
47
  });
58
48
  BreadcrumbLink.displayName = "BreadcrumbLink";
59
49
 
60
- // current page segment (last in the trail) inherits the page-title weight
61
- // (semibold) at foreground colour, and not clickable, signals "you are here"
62
50
  const BreadcrumbPage = React.forwardRef<
63
51
  HTMLSpanElement,
64
52
  React.HTMLAttributes<HTMLSpanElement>
@@ -72,7 +60,6 @@ const BreadcrumbPage = React.forwardRef<
72
60
  ));
73
61
  BreadcrumbPage.displayName = "BreadcrumbPage";
74
62
 
75
- // separator rendered automatically between breadcrumb children
76
63
  const BreadcrumbSeparator = () => (
77
64
  <span aria-hidden className="flex-shrink-0 text-muted-foreground/40">
78
65
  /
@@ -21,13 +21,10 @@ import type { ComponentType } from "react";
21
21
  */
22
22
  export interface BulkBarAction {
23
23
  key: string;
24
- /** Full label used in the More menu and for accessibility. */
25
24
  label: string;
26
- /** Shorter label shown inline in the bar (defaults to `label`). Unused with `labels="tooltip"`. */
27
25
  shortLabel?: string;
28
26
  icon: ComponentType<{ size: number; className?: string }>;
29
27
  destructive?: boolean;
30
- /** Shows the Alt-to-skip hint; the caller still owns the skip itself. */
31
28
  showSkipHint?: boolean;
32
29
  onClick: () => void;
33
30
  }
@@ -41,7 +38,6 @@ export interface BulkBarAction {
41
38
  export type BulkBarLabels = "inline" | "tooltip";
42
39
 
43
40
  export interface BulkActionBarConfig {
44
- /** Default `labels` for every bar in the app. A `labels` prop wins. */
45
41
  labels?: BulkBarLabels;
46
42
  }
47
43
 
@@ -55,9 +51,7 @@ export interface BulkActionBarProps {
55
51
  primaryActions: ReadonlyArray<BulkBarAction>;
56
52
  moreActions?: ReadonlyArray<BulkBarAction>;
57
53
  destructiveAction?: BulkBarAction;
58
- /** Motion key for the presence animation, e.g. "quick-tasks-bulk-bar". */
59
54
  barKey: string;
60
- /** Label style for the action buttons (see `BulkBarLabels`). */
61
55
  labels?: BulkBarLabels;
62
56
  }
63
57
 
@@ -66,11 +60,6 @@ const barButtonToneClass = (action: BulkBarAction) =>
66
60
  ? "text-destructive hover:bg-destructive/10 hover:text-destructive"
67
61
  : "text-muted-foreground hover:bg-surface-secondary hover:text-foreground";
68
62
 
69
- /**
70
- * An icon-only button with its label in a tooltip. The tooltip trigger is a
71
- * wrapper span, so the tooltip still shows while the button is disabled (a
72
- * disabled button gets no pointer events).
73
- */
74
63
  function TooltipBarButton({
75
64
  action,
76
65
  disabled,
@@ -104,10 +93,6 @@ function TooltipBarButton({
104
93
  );
105
94
  }
106
95
 
107
- /**
108
- * A single labelled button inside the action bar. The label collapses to
109
- * icon-only below the `sm` breakpoint (HeroUI "responsive labels" pattern).
110
- */
111
96
  function BarButton({
112
97
  action,
113
98
  disabled,
@@ -130,9 +115,6 @@ function BarButton({
130
115
  }
131
116
  onClick={action.onClick}
132
117
  disabled={disabled}
133
- // `motion-press`, not `transition-colors`: the destructive Delete takes
134
- // this same branch, so the highest-consequence control in the bar was the
135
- // one with no acknowledgement at all before its confirm dialog appeared.
136
118
  className={`motion-press inline-flex h-9 shrink-0 items-center gap-1.5 rounded-lg px-2.5 text-sm font-medium active:scale-[0.96] disabled:pointer-events-none disabled:opacity-30 ${barButtonToneClass(action)}`}
137
119
  >
138
120
  <Icon size={17} />
@@ -181,7 +163,6 @@ export function BulkActionBar({
181
163
  >
182
164
  <TooltipProvider>
183
165
  <div className="flex max-w-[calc(100vw-2rem)] items-center gap-1 overflow-x-auto rounded-surface bg-popover/95 px-2.5 py-2 backdrop-blur-md smooth-shadow-ring-lg scrollbar-none">
184
- {/* Prefix: selection count */}
185
166
  <div className="flex shrink-0 items-center gap-2 pl-1 pr-0.5">
186
167
  <CountPop
187
168
  label={String(selectedCount)}
@@ -192,9 +173,6 @@ export function BulkActionBar({
192
173
  </span>
193
174
  </div>
194
175
 
195
- {/* Reaching the whole list is the one action a selection bar can
196
- offer that the rows cannot: shift-clicking to the end of a
197
- long list is the alternative. */}
198
176
  {totalCount > 0 && (
199
177
  <button
200
178
  type="button"
@@ -210,7 +188,6 @@ export function BulkActionBar({
210
188
  className="mx-1.5 h-5 shrink-0 bg-border"
211
189
  />
212
190
 
213
- {/* Content: primary actions + More dropdown */}
214
191
  {primaryActions.map((action) => (
215
192
  <BarButton
216
193
  labels={labels}
@@ -269,7 +246,6 @@ export function BulkActionBar({
269
246
  className="mx-1.5 h-5 shrink-0 bg-border"
270
247
  />
271
248
 
272
- {/* Suffix: dismiss selection */}
273
249
  <Tooltip>
274
250
  <TooltipTrigger asChild>
275
251
  <button
package/src/ui/button.tsx CHANGED
@@ -15,15 +15,6 @@ const defaultVariantClass =
15
15
  const destructiveVariantClass =
16
16
  "bg-[oklch(47.2%_0.195_25.7)] text-white hover:bg-[oklch(42.5%_0.185_25.7)]";
17
17
 
18
- /**
19
- * Variant hierarchy:
20
- * - `primary` (alias of `default`): the one main action.
21
- * - `secondary`: an alternative action.
22
- * - `tertiary` (alias of `ghost`): a dismissive action.
23
- * - `destructive` (alias `danger`): a destructive action.
24
- * - `success`, `warning`: status.
25
- * - `outline`, `link`, `flat`: visual treatments with no fixed role.
26
- */
27
18
  const buttonVariantClasses = {
28
19
  default: defaultVariantClass,
29
20
  primary: defaultVariantClass,
@@ -35,16 +26,13 @@ const buttonVariantClasses = {
35
26
  ghost: ghostClass,
36
27
  tertiary: ghostClass,
37
28
  link: "text-primary underline-offset-4 hover:underline active:scale-100",
38
- // Ghost plus an override; tailwind-merge drops the clashing ghost classes.
39
29
  flat: `${ghostClass} bg-transparent text-muted hover:bg-surface-tertiary hover:text-foreground`, // check-tokens-allow: text-muted
40
30
  success: `${ghostClass} bg-success text-success-foreground hover:bg-success/90`,
41
31
  warning: `${ghostClass} bg-warning text-warning-foreground hover:bg-warning/90`,
42
32
  };
43
33
 
44
- // No radius here: `shape` sets it.
45
34
  const buttonSizeClasses = {
46
35
  default: "h-10 px-4 py-2",
47
- // Alias of `default`, for the canonical sm / md / lg scale.
48
36
  md: "h-10 px-4 py-2",
49
37
  xs: "h-7 px-2 text-xs hit-target [&_svg:not([class*='size-'])]:size-3.5",
50
38
  sm: "h-8 px-3 text-xs max-sm:hit-target",
@@ -54,8 +42,6 @@ const buttonSizeClasses = {
54
42
  "icon-xs": "h-7 w-7 hit-target",
55
43
  };
56
44
 
57
- // `pill` (default) is fully round, so icon sizes are circles. `rounded` is
58
- // the radius from before 0.31.0, for joined edges and field addons.
59
45
  const buttonShapeClasses = {
60
46
  pill: "rounded-full",
61
47
  rounded: "rounded-lg",
@@ -67,7 +53,6 @@ export type ButtonVariant = keyof typeof buttonVariantClasses;
67
53
  export type ButtonSize = keyof typeof buttonSizeClasses;
68
54
  export type ButtonShape = keyof typeof buttonShapeClasses;
69
55
 
70
- // `rounded` keeps the smaller radius the two 28px sizes had.
71
56
  const roundedSmallSizes: ButtonSize[] = ["xs", "icon-xs"];
72
57
  const roundedSmallClass = "rounded-md";
73
58
 
@@ -90,7 +75,6 @@ export const buttonVariants = cva(buttonBaseClasses, {
90
75
  },
91
76
  });
92
77
 
93
- /** Built-in radius for the config path. Matches the cva variant and compound variant. */
94
78
  function buttonShapeClass(shape: ButtonShape, size: ButtonSize): string {
95
79
  return shape === "rounded" && roundedSmallSizes.includes(size)
96
80
  ? roundedSmallClass
@@ -103,7 +87,6 @@ export interface ButtonConfig {
103
87
  base?: string;
104
88
  variant?: Partial<Record<ButtonVariant, string>>;
105
89
  size?: Partial<Record<ButtonSize, string>>;
106
- /** Radius per shape. Replaces it for every size, `xs` and `icon-xs` included. */
107
90
  shape?: Partial<Record<ButtonShape, string>>;
108
91
  };
109
92
  }
@@ -113,21 +96,11 @@ export interface ButtonProps
113
96
  extends
114
97
  React.ButtonHTMLAttributes<HTMLButtonElement>,
115
98
  VariantProps<typeof buttonVariants> {
116
- /**
117
- * `primary` (alias of `default`) is the one main action; `secondary` an
118
- * alternative; `tertiary` (alias of `ghost`) a dismissive one; `destructive`
119
- * (alias `danger`) a destructive one; `success` and `warning` show status;
120
- * `outline`, `link` and `flat` are visual. Default `"default"`.
121
- */
122
99
  variant?: ButtonVariant | null;
123
- /** `md` is an alias of `default`. Default `"default"`. */
124
100
  size?: ButtonSize | null;
125
101
  asChild?: boolean;
126
- /** Rendered before the children. Ignored with `asChild`. */
127
102
  startContent?: React.ReactNode;
128
- /** Rendered after the children. Ignored with `asChild`. */
129
103
  endContent?: React.ReactNode;
130
- /** Disables the button, sets `data-loading`, and shows a spinner in place of `startContent`. */
131
104
  loading?: boolean;
132
105
  }
133
106
 
@@ -30,11 +30,6 @@ export interface CalendarConfig {
30
30
  components?: Partial<CustomComponents>;
31
31
  }
32
32
 
33
- // shadcn's v9 calendar on package tokens: no background of its own (it takes
34
- // the popover or card surface it sits on), selected days use the picker
35
- // active treatment, today gets a dot, outside days are muted and disabled
36
- // days dimmed. day state lives on the cell (`data-selected`, `data-today`,
37
- // ...), so the day button reads it through `group/day`
38
33
  const navButtonClass = cn(
39
34
  "inline-flex size-(--cell-size) select-none items-center justify-center rounded-lg p-0 text-muted-foreground transition-colors hover:bg-surface-tertiary hover:text-foreground aria-disabled:pointer-events-none aria-disabled:opacity-50",
40
35
  pickerFocusClass,
@@ -150,15 +145,9 @@ function Calendar({
150
145
  day_button: cn(
151
146
  "relative inline-flex size-(--cell-size) items-center justify-center rounded-lg text-xs tabular-nums text-foreground/80 transition-colors disabled:cursor-not-allowed disabled:opacity-40",
152
147
  pickerFocusClass,
153
- // today, outside and hover rules exclude selected days, so the
154
- // selected tone never depends on the order Tailwind emits rules in.
155
- // the today dot is `bg-current`: foreground, or primary-foreground
156
- // when selected
157
148
  "not-group-data-selected/day:enabled:hover:bg-surface-tertiary/50",
158
149
  "group-data-today/day:font-medium group-data-today/day:not-group-data-selected/day:text-foreground group-data-today/day:after:absolute group-data-today/day:after:bottom-1 group-data-today/day:after:left-1/2 group-data-today/day:after:size-1 group-data-today/day:after:-translate-x-1/2 group-data-today/day:after:rounded-full group-data-today/day:after:bg-current",
159
150
  "group-data-outside/day:not-group-data-selected/day:text-muted-foreground",
160
- // spelled out (not built from pickerSelectedClass) so Tailwind's
161
- // scanner sees it
162
151
  "group-data-selected/day:bg-primary group-data-selected/day:text-primary-foreground",
163
152
  defaultClassNames.day_button,
164
153
  ),
@@ -180,11 +169,6 @@ function Calendar({
180
169
  );
181
170
  }
182
171
 
183
- /**
184
- * DayPicker's day button plus `data-selected`, so its classes can style the
185
- * selected day on the button itself (`data-[selected=true]:bg-primary`).
186
- * Pass it as `components.DayButton` (or through `UiConfig.Calendar.components`).
187
- */
188
172
  function CalendarDayButton({
189
173
  day: _day,
190
174
  modifiers,
@@ -192,8 +176,6 @@ function CalendarDayButton({
192
176
  }: React.ComponentProps<typeof DayButton>) {
193
177
  const ref = React.useRef<HTMLButtonElement>(null);
194
178
 
195
- // DayPicker decides which day has focus; moving DOM focus to match is what
196
- // its own DayButton does.
197
179
  React.useEffect(() => {
198
180
  if (modifiers.focused) ref.current?.focus();
199
181
  }, [modifiers.focused]);
package/src/ui/card.tsx CHANGED
@@ -2,7 +2,6 @@ import * as React from "react";
2
2
  import { useCn, useUiConfig } from "./ui-config";
3
3
 
4
4
  export interface CardConfig {
5
- /** Replaces the built-in classes of a part. A part left out keeps its default. */
6
5
  classes?: {
7
6
  root?: string;
8
7
  header?: string;
@@ -14,7 +13,6 @@ export interface CardConfig {
14
13
  };
15
14
  }
16
15
 
17
- /** The app's class string for `part` (else `fallback`), merged with the caller `className`. */
18
16
  function useCardClass(
19
17
  part: keyof NonNullable<CardConfig["classes"]>,
20
18
  fallback: string,
@@ -92,7 +90,6 @@ const CardFooter = React.forwardRef<
92
90
  ));
93
91
  CardFooter.displayName = "CardFooter";
94
92
 
95
- /** Top-right slot of a grid header (`grid-cols-[1fr_auto]`): spans the title and description rows. */
96
93
  const CardAction = React.forwardRef<
97
94
  HTMLDivElement,
98
95
  React.HTMLAttributes<HTMLDivElement>
@@ -28,9 +28,7 @@ type CarouselContextProps = {
28
28
  scrollNext: () => void;
29
29
  canScrollPrev: boolean;
30
30
  canScrollNext: boolean;
31
- /** Index of the selected snap. */
32
31
  selectedIndex: number;
33
- /** Embla's snap positions, one per page. */
34
32
  scrollSnaps: number[];
35
33
  scrollTo: (index: number) => void;
36
34
  } & CarouselProps;
@@ -67,7 +65,6 @@ function Carousel({
67
65
  setCanScrollPrev(api.canScrollPrev());
68
66
  setCanScrollNext(api.canScrollNext());
69
67
  setSelectedIndex(api.selectedScrollSnap());
70
- // keep the old array when nothing moved, so this can run on every render
71
68
  const next = api.scrollSnapList();
72
69
  setScrollSnaps((prev) =>
73
70
  prev.length === next.length && prev.every((snap, i) => snap === next[i]) ? prev : next,
@@ -225,7 +222,6 @@ function CarouselNext({
225
222
  </Button>
226
223
  );
227
224
  }
228
- /** One dot per snap; the selected one is wider. Renders nothing for a single page. */
229
225
  function CarouselDots({ className }: { className?: string }) {
230
226
  const { scrollSnaps, selectedIndex, scrollTo } = useCarousel();
231
227
  const classes = useUiConfig("Carousel")?.classes;
@@ -11,7 +11,6 @@ export interface CheckboxConfig {
11
11
  }
12
12
 
13
13
  type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & {
14
- /** Shown in the indicator while checked. Default a 14px check icon. */
15
14
  icon?: React.ReactNode;
16
15
  };
17
16
 
@@ -9,14 +9,6 @@ const altClasses = {
9
9
  "absolute right-2 top-1/2 inline-flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md text-muted-foreground transition-[opacity,background-color,color,transform] duration-150 ease-out active:duration-100 active:ease-out active:scale-[0.97] hover:bg-surface-tertiary hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-focus-ring before:absolute before:inset-[-8px] before:content-['']",
10
10
  };
11
11
 
12
- /**
13
- * The `Alt` look on `ClearInput`'s `animation="none"` path: the clear button
14
- * stays mounted (`clearButton="always"`), per-instance `classes` replace the
15
- * main classes (and any `UiConfig.ClearInput` entry), and an explicit
16
- * `placeholder={undefined}` keeps the input free of the main `placeholder=""`.
17
- *
18
- * @deprecated Use `ClearInput`. Kept for existing consumers; removed in a later minor after they move.
19
- */
20
12
  const ClearInputAlt = React.forwardRef<
21
13
  HTMLInputElement,
22
14
  Omit<ClearInputProps, "animation" | "clearButton" | "classes">
@@ -25,24 +25,10 @@ export interface ClearInputProps extends Omit<
25
25
  value: string;
26
26
  onChange: (value: string) => void;
27
27
  wrapperClassName?: string;
28
- /** Icon or adornment positioned in the field's left gutter. */
29
28
  leading?: React.ReactNode;
30
29
  clearLabel?: string;
31
- /**
32
- * `dissolve` (default): the text dissolves before the value clears (needs
33
- * `clear-input.css`). `none`: clear at once, focus the input, and render
34
- * only the wrapper, input and clear button.
35
- */
36
30
  animation?: ClearInputAnimation;
37
- /**
38
- * With `animation="none"` only. `"filled"` (default): the clear button
39
- * mounts while there is a value. `"always"`: it stays mounted so the field
40
- * never reflows; while empty it is hidden (`pointer-events-none opacity-0`,
41
- * `tabIndex=-1`, `aria-hidden`), while filled it shows (`opacity-100`,
42
- * `tabIndex=0`), and the input always reserves `pr-9`.
43
- */
44
31
  clearButton?: "filled" | "always";
45
- /** Replaces the wrapper, input and button classes for this instance (each key wins over `UiConfig.ClearInput.classes`). */
46
32
  classes?: ClearInputConfig["classes"];
47
33
  }
48
34
 
@@ -108,8 +94,6 @@ const PlainClearInput = React.forwardRef<
108
94
  onChange={(event) => {
109
95
  onChange(event.target.value);
110
96
  }}
111
- // A caller `placeholder` in `props` replaces this default in place;
112
- // an explicit `undefined` drops the attribute.
113
97
  placeholder=""
114
98
  className={merge(
115
99
  classes?.input ?? [inputClasses, fieldFocusClass],
@@ -1,7 +1,3 @@
1
- /** transitions.dev input clear with dissolve — see 13-input-clear-dissolve.md */
2
-
3
- // Times come back in ms. CSS minifiers rewrite `1000ms` as `1s`, so a value
4
- // in seconds is converted rather than read as 1.
5
1
  export function readCssNumber(
6
2
  root: HTMLElement,
7
3
  name: string,