@vvedantb/ui 0.66.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/app/src/auth/useStableAuth.ts +0 -2
  2. package/app/src/confirm/ConfirmSkipHint.tsx +0 -2
  3. package/app/src/confirm/useAltHeld.ts +0 -17
  4. package/app/src/convex/ConvexClerkProvider.tsx +0 -3
  5. package/app/src/convex/env.ts +0 -4
  6. package/app/src/convex/errorMessage.ts +0 -1
  7. package/app/src/convex/useHeldResult.ts +0 -3
  8. package/app/src/page-motion/PageMotionProvider.tsx +0 -6
  9. package/app/src/page-title/createPageTitleContext.tsx +0 -14
  10. package/app/src/settings/SettingsEmptyState.tsx +0 -4
  11. package/app/src/settings/SettingsField.tsx +0 -4
  12. package/app/src/settings/SettingsPage.tsx +0 -12
  13. package/app/src/settings/SettingsSection.tsx +0 -14
  14. package/app/src/settings/ThemeModePicker.tsx +0 -6
  15. package/app/src/theme/createThemeProvider.tsx +0 -33
  16. package/app/src/time/compactRelativeTime.ts +0 -16
  17. package/app/src/update/staleDeployReload.ts +0 -40
  18. package/app/src/update/updateWatcher.ts +0 -8
  19. package/dist/app/src/auth/useStableAuth.js +0 -1
  20. package/dist/app/src/confirm/ConfirmSkipHint.js +0 -3
  21. package/dist/app/src/confirm/useAltHeld.js +0 -17
  22. package/dist/app/src/convex/env.js +0 -3
  23. package/dist/app/src/convex/errorMessage.js +0 -2
  24. package/dist/app/src/settings/ThemeModePicker.js +0 -1
  25. package/dist/app/src/theme/createThemeProvider.js +1 -11
  26. package/dist/app/src/time/compactRelativeTime.js +0 -8
  27. package/dist/app/src/update/staleDeployReload.js +3 -38
  28. package/dist/app/src/update/updateWatcher.js +1 -3
  29. package/dist/shell/src/AppShell.js +0 -14
  30. package/dist/shell/src/PageHeaderBar.js +0 -3
  31. package/dist/shell/src/SessionsHoverCard.js +0 -9
  32. package/dist/shell/src/SidePanelTabs.js +0 -36
  33. package/dist/shell/src/Sidebar.js +0 -1
  34. package/dist/shell/src/SidebarAccountMenu.js +1 -1
  35. package/dist/shell/src/SidebarChrome.js +0 -19
  36. package/dist/shell/src/SidebarIconTooltip.js +0 -1
  37. package/dist/shell/src/SidebarRail.js +0 -12
  38. package/dist/shell/src/SidebarResize.js +1 -4
  39. package/dist/shell/src/app-shell-classes.js +0 -10
  40. package/dist/shell/src/index.js +0 -1
  41. package/dist/shell/src/shell-panel-motion.js +0 -12
  42. package/dist/src/ai-elements/activity-shared.js +0 -6
  43. package/dist/src/ai-elements/activity-step-label.js +0 -6
  44. package/dist/src/ai-elements/activity-step-types.js +0 -4
  45. package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
  46. package/dist/src/ai-elements/activity-tasks.js +0 -55
  47. package/dist/src/ai-elements/artifact.js +0 -4
  48. package/dist/src/ai-elements/attachments.js +0 -41
  49. package/dist/src/ai-elements/code-block.js +0 -18
  50. package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
  51. package/dist/src/ai-elements/context.js +0 -13
  52. package/dist/src/ai-elements/conversation.js +0 -4
  53. package/dist/src/ai-elements/jump-rail.js +0 -5
  54. package/dist/src/ai-elements/message.js +3 -9
  55. package/dist/src/ai-elements/model-picker-types.js +0 -1
  56. package/dist/src/ai-elements/model-picker.js +1 -6
  57. package/dist/src/ai-elements/model-selector.js +0 -4
  58. package/dist/src/ai-elements/prompt-input-speech.js +0 -13
  59. package/dist/src/ai-elements/prompt-input.js +0 -1
  60. package/dist/src/ai-elements/provider-icon.js +0 -4
  61. package/dist/src/ai-elements/queue.js +2 -16
  62. package/dist/src/ai-elements/shimmer.js +0 -14
  63. package/dist/src/ai-elements/speech-input.js +0 -7
  64. package/dist/src/artifacts/artifact-card.js +1 -1
  65. package/dist/src/artifacts/artifact-frame.js +0 -2
  66. package/dist/src/artifacts/artifact-viewer.js +2 -1
  67. package/dist/src/audio/playChime.js +0 -2
  68. package/dist/src/audio/playTone.js +1 -4
  69. package/dist/src/brand/AppWordmark.js +0 -5
  70. package/dist/src/brand/svg.js +0 -6
  71. package/dist/src/client.js +0 -43
  72. package/dist/src/composer/Composer.js +0 -27
  73. package/dist/src/composer/input-area/InputArea.js +0 -3
  74. package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
  75. package/dist/src/composer/input-area/composerPrediction.js +0 -3
  76. package/dist/src/generative-ui/content.js +0 -2
  77. package/dist/src/generative-ui/index.js +0 -3
  78. package/dist/src/generative-ui/layout.js +0 -5
  79. package/dist/src/hooks/use-count-up-display.js +0 -2
  80. package/dist/src/hooks/use-idle-callback.js +0 -3
  81. package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
  82. package/dist/src/icons/animated/index.js +0 -4
  83. package/dist/src/icons/board-icon.js +74 -41
  84. package/dist/src/icons/bolt-icon.js +30 -20
  85. package/dist/src/icons/building-icon.js +125 -61
  86. package/dist/src/icons/files-icon.js +103 -43
  87. package/dist/src/icons/inbox-icon.js +101 -49
  88. package/dist/src/icons/index.js +2 -1
  89. package/dist/src/icons/memory-icon.js +135 -58
  90. package/dist/src/icons/search-icon.js +143 -46
  91. package/dist/src/icons/settings-icon.js +113 -53
  92. package/dist/src/icons/solid-icons.js +665 -0
  93. package/dist/src/icons/with-active.js +25 -0
  94. package/dist/src/index.js +0 -40
  95. package/dist/src/kibo/gantt-features.js +0 -10
  96. package/dist/src/kibo/gantt-provider.js +0 -34
  97. package/dist/src/kibo/kanban.js +0 -15
  98. package/dist/src/kibo/list.js +0 -3
  99. package/dist/src/kibo/video-player.js +0 -7
  100. package/dist/src/logos/index.js +0 -4
  101. package/dist/src/markdown/Markdown.js +0 -15
  102. package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
  103. package/dist/src/markdown/MarkdownInlineCode.js +0 -6
  104. package/dist/src/markdown/MarkdownLink.js +0 -5
  105. package/dist/src/markdown/codeFence.js +0 -1
  106. package/dist/src/markdown/codeHighlight.js +0 -19
  107. package/dist/src/markdown/incrementalBlocks.js +0 -45
  108. package/dist/src/markdown/markdownClipboard.js +0 -13
  109. package/dist/src/markdown/mermaid.js +0 -25
  110. package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
  111. package/dist/src/markdown/useSmoothText.js +0 -5
  112. package/dist/src/marketing/PricingModal.js +0 -2
  113. package/dist/src/marketing/ProductHero.js +0 -2
  114. package/dist/src/marketing/createLandingKit.js +0 -5
  115. package/dist/src/marketing/marketing-classes.js +0 -7
  116. package/dist/src/motion/dock-motion.js +0 -27
  117. package/dist/src/motion/panel-transition.js +0 -2
  118. package/dist/src/ui/_field-classes.js +0 -3
  119. package/dist/src/ui/_menu-classes.js +6 -6
  120. package/dist/src/ui/_picker-classes.js +0 -9
  121. package/dist/src/ui/accordion.alt.js +0 -12
  122. package/dist/src/ui/badge.js +0 -1
  123. package/dist/src/ui/border-beam.js +0 -2
  124. package/dist/src/ui/breadcrumb.js +0 -15
  125. package/dist/src/ui/bulk-action-bar.js +0 -11
  126. package/dist/src/ui/button.js +0 -20
  127. package/dist/src/ui/calendar.js +1 -20
  128. package/dist/src/ui/card.js +0 -3
  129. package/dist/src/ui/carousel.js +0 -1
  130. package/dist/src/ui/clear-input.alt.js +0 -9
  131. package/dist/src/ui/clearInputDissolve.js +0 -4
  132. package/dist/src/ui/command.js +0 -15
  133. package/dist/src/ui/confetti-burst.js +0 -3
  134. package/dist/src/ui/confirm-dialog-parts.js +0 -11
  135. package/dist/src/ui/confirm-dialog.js +0 -6
  136. package/dist/src/ui/context-menu.js +40 -34
  137. package/dist/src/ui/crossfade-icon.js +0 -2
  138. package/dist/src/ui/date-picker.js +0 -22
  139. package/dist/src/ui/dialog.js +0 -5
  140. package/dist/src/ui/dropdown-menu.js +40 -34
  141. package/dist/src/ui/empty-state.js +0 -7
  142. package/dist/src/ui/field.js +0 -21
  143. package/dist/src/ui/image-lightbox.js +0 -5
  144. package/dist/src/ui/input-group.alt.js +0 -24
  145. package/dist/src/ui/input-group.js +0 -4
  146. package/dist/src/ui/kbd.js +0 -3
  147. package/dist/src/ui/loading-state.js +0 -17
  148. package/dist/src/ui/marquee-on-hover.js +0 -3
  149. package/dist/src/ui/media-preview.js +0 -2
  150. package/dist/src/ui/modalTransition.js +0 -33
  151. package/dist/src/ui/overlay-a11y.js +0 -1
  152. package/dist/src/ui/page-title.js +0 -3
  153. package/dist/src/ui/refresh-spin-icon.js +0 -12
  154. package/dist/src/ui/search-input.js +0 -1
  155. package/dist/src/ui/select-field.js +0 -1
  156. package/dist/src/ui/send-queue-icon.js +0 -3
  157. package/dist/src/ui/sheet.js +0 -33
  158. package/dist/src/ui/slider.js +103 -82
  159. package/dist/src/ui/sonner-icons.js +0 -5
  160. package/dist/src/ui/sonner.js +0 -60
  161. package/dist/src/ui/spinner.js +0 -35
  162. package/dist/src/ui/status-dot.js +0 -2
  163. package/dist/src/ui/surface.js +0 -14
  164. package/dist/src/ui/switch.js +213 -36
  165. package/dist/src/ui/table.js +0 -1
  166. package/dist/src/ui/tabs-transition.js +0 -1
  167. package/dist/src/ui/tabs.js +0 -17
  168. package/dist/src/ui/tabsSliding.js +0 -6
  169. package/dist/src/ui/time-picker.js +0 -15
  170. package/dist/src/ui/toggle-search.js +0 -3
  171. package/dist/src/ui/ui-config.js +0 -16
  172. package/dist/src/utils/cat-color.js +0 -17
  173. package/dist/src/utils/cn.js +0 -5
  174. package/dist/src/utils/gesture.js +0 -8
  175. package/dist/src/utils/ref.js +0 -1
  176. package/dist/src/utils/runtimeVisibility.js +1 -22
  177. package/dist/src/utils/surface-radius.js +0 -11
  178. package/dist/src/utils/useDragSensors.js +0 -4
  179. package/dist/tokens/src/tailwind-preset.mjs +0 -3
  180. package/package.json +3 -3
  181. package/scripts/build-brand-assets.mjs +0 -8
  182. package/shell/src/AppShell.tsx +0 -37
  183. package/shell/src/AppSidebar.tsx +0 -14
  184. package/shell/src/ButtonTrack.tsx +0 -1
  185. package/shell/src/PageHeaderBar.tsx +0 -61
  186. package/shell/src/PageWrapper.tsx +0 -26
  187. package/shell/src/PillTabs.tsx +0 -1
  188. package/shell/src/SessionsHoverCard.tsx +0 -40
  189. package/shell/src/SidePanelTabs.tsx +0 -61
  190. package/shell/src/Sidebar.tsx +0 -1
  191. package/shell/src/SidebarAccountMenu.tsx +1 -41
  192. package/shell/src/SidebarChrome.tsx +0 -32
  193. package/shell/src/SidebarIconTooltip.tsx +0 -3
  194. package/shell/src/SidebarPanel.tsx +0 -20
  195. package/shell/src/SidebarRail.tsx +0 -44
  196. package/shell/src/SidebarResize.tsx +0 -6
  197. package/shell/src/SidebarUpgradeCard.tsx +0 -2
  198. package/shell/src/SignOutDialog.tsx +0 -6
  199. package/shell/src/app-shell-classes.ts +0 -15
  200. package/shell/src/index.ts +0 -1
  201. package/shell/src/shell-panel-motion.ts +0 -11
  202. package/shell/src/shell-variant.ts +0 -6
  203. package/src/ai-elements/__snapshots__/queue.test.tsx.snap +2 -2
  204. package/src/ai-elements/activity-question.tsx +0 -2
  205. package/src/ai-elements/activity-shared.tsx +0 -11
  206. package/src/ai-elements/activity-step-detail.tsx +0 -2
  207. package/src/ai-elements/activity-step-label.ts +0 -5
  208. package/src/ai-elements/activity-step-types.ts +0 -24
  209. package/src/ai-elements/activity-tasks-utils.ts +0 -13
  210. package/src/ai-elements/activity-tasks.tsx +0 -61
  211. package/src/ai-elements/artifact.tsx +0 -7
  212. package/src/ai-elements/attachments.tsx +0 -33
  213. package/src/ai-elements/chat-day-divider.tsx +0 -3
  214. package/src/ai-elements/chat-jump-rail.tsx +0 -9
  215. package/src/ai-elements/code-block.tsx +0 -28
  216. package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
  217. package/src/ai-elements/context.tsx +0 -10
  218. package/src/ai-elements/conversation.tsx +0 -16
  219. package/src/ai-elements/jump-rail.tsx +0 -31
  220. package/src/ai-elements/message.tsx +3 -34
  221. package/src/ai-elements/model-picker-content.tsx +0 -17
  222. package/src/ai-elements/model-picker-types.ts +0 -5
  223. package/src/ai-elements/model-picker.tsx +0 -36
  224. package/src/ai-elements/model-selector.tsx +0 -5
  225. package/src/ai-elements/prompt-input-speech.tsx +0 -11
  226. package/src/ai-elements/prompt-input.tsx +0 -26
  227. package/src/ai-elements/provider-icon.tsx +0 -2
  228. package/src/ai-elements/queue.tsx +2 -20
  229. package/src/ai-elements/reasoning.tsx +0 -4
  230. package/src/ai-elements/shimmer.tsx +0 -16
  231. package/src/ai-elements/simple-model-ladder.tsx +0 -1
  232. package/src/ai-elements/speech-input.tsx +0 -6
  233. package/src/ai-elements/test-results.tsx +0 -5
  234. package/src/ai-elements/trace.tsx +0 -2
  235. package/src/ai-elements/web-preview.tsx +0 -7
  236. package/src/artifacts/artifact-card.tsx +1 -8
  237. package/src/artifacts/artifact-dialogs.tsx +0 -4
  238. package/src/artifacts/artifact-frame.tsx +0 -10
  239. package/src/artifacts/artifact-list-toolbar.tsx +0 -6
  240. package/src/artifacts/artifact-list.tsx +0 -4
  241. package/src/artifacts/artifact-type-icon.tsx +0 -1
  242. package/src/artifacts/artifact-versions-menu.tsx +0 -3
  243. package/src/artifacts/artifact-viewer.tsx +2 -6
  244. package/src/artifacts/types.ts +0 -1
  245. package/src/audio/playChime.ts +0 -1
  246. package/src/audio/playTone.ts +0 -7
  247. package/src/brand/AppIcons.tsx +0 -5
  248. package/src/brand/AppMark.tsx +0 -6
  249. package/src/brand/AppWordmark.tsx +0 -10
  250. package/src/brand/familyApps.ts +0 -2
  251. package/src/brand/svg.ts +0 -9
  252. package/src/client.ts +0 -34
  253. package/src/composer/Composer.tsx +0 -70
  254. package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
  255. package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
  256. package/src/composer/input-area/FadePresence.tsx +0 -4
  257. package/src/composer/input-area/InputActions.tsx +0 -5
  258. package/src/composer/input-area/InputArea.tsx +1 -28
  259. package/src/composer/input-area/InputAreaEditor.tsx +0 -39
  260. package/src/composer/input-area/InputBanners.tsx +0 -1
  261. package/src/composer/input-area/PromoBanner.tsx +0 -1
  262. package/src/composer/input-area/composerPrediction.ts +0 -2
  263. package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
  264. package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
  265. package/src/composer/prediction.ts +0 -6
  266. package/src/composer/useComposerPrediction.ts +0 -2
  267. package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
  268. package/src/generative-ui/content.tsx +0 -2
  269. package/src/generative-ui/index.ts +0 -3
  270. package/src/generative-ui/layout.tsx +0 -5
  271. package/src/hooks/use-count-up-display.ts +0 -1
  272. package/src/hooks/use-idle-callback.ts +0 -5
  273. package/src/hooks/use-persisted-scroll-parent.ts +0 -4
  274. package/src/hooks/use-single-flight.ts +0 -5
  275. package/src/icons/animated/animated-bell-icon.tsx +0 -6
  276. package/src/icons/animated/animated-counter.tsx +0 -5
  277. package/src/icons/animated/animated-key-icon.tsx +0 -4
  278. package/src/icons/animated/animated-notification-icon.tsx +0 -14
  279. package/src/icons/animated/animated-progress.tsx +0 -10
  280. package/src/icons/animated/animated-status-dot.tsx +0 -4
  281. package/src/icons/animated/index.ts +0 -4
  282. package/src/icons/animated/morphing-menu-icon.tsx +0 -5
  283. package/src/icons/animated/morphing-mic-icon.tsx +0 -2
  284. package/src/icons/animated/pulsing-rings.tsx +0 -4
  285. package/src/icons/automation-icon.tsx +0 -1
  286. package/src/icons/board-icon.tsx +13 -10
  287. package/src/icons/bolt-icon.tsx +5 -4
  288. package/src/icons/building-icon.tsx +11 -9
  289. package/src/icons/draft-icon.tsx +0 -1
  290. package/src/icons/files-icon.tsx +9 -5
  291. package/src/icons/inbox-arrow-icon.tsx +0 -1
  292. package/src/icons/inbox-icon.tsx +9 -5
  293. package/src/icons/index.ts +12 -1
  294. package/src/icons/memory-icon.tsx +9 -11
  295. package/src/icons/nav-icon-base.tsx +0 -10
  296. package/src/icons/search-icon.tsx +7 -6
  297. package/src/icons/settings-icon.tsx +11 -13
  298. package/src/icons/sidebar-toggle-icon.tsx +0 -1
  299. package/src/icons/solid-icons.tsx +138 -0
  300. package/src/icons/with-active.tsx +14 -0
  301. package/src/index.ts +0 -30
  302. package/src/kibo/gantt-features.tsx +0 -16
  303. package/src/kibo/gantt-header.tsx +0 -4
  304. package/src/kibo/gantt-provider.tsx +0 -36
  305. package/src/kibo/gantt-sidebar.tsx +0 -7
  306. package/src/kibo/gantt-timeline.tsx +0 -4
  307. package/src/kibo/kanban.tsx +0 -49
  308. package/src/kibo/list.tsx +0 -8
  309. package/src/kibo/theme-switcher.tsx +0 -5
  310. package/src/kibo/video-player.tsx +0 -9
  311. package/src/logos/index.ts +0 -3
  312. package/src/logos/logo-svg.tsx +0 -5
  313. package/src/markdown/Markdown.tsx +0 -20
  314. package/src/markdown/MarkdownCodeBlock.tsx +0 -14
  315. package/src/markdown/MarkdownInlineCode.tsx +0 -6
  316. package/src/markdown/MarkdownLink.tsx +0 -4
  317. package/src/markdown/codeFence.ts +0 -3
  318. package/src/markdown/codeHighlight.ts +0 -16
  319. package/src/markdown/incrementalBlocks.ts +0 -49
  320. package/src/markdown/markdownClipboard.ts +0 -12
  321. package/src/markdown/mermaid.ts +0 -22
  322. package/src/markdown/rehypeGithubAlerts.ts +0 -3
  323. package/src/markdown/useSmoothText.ts +0 -5
  324. package/src/marketing/FloatingBar.tsx +0 -3
  325. package/src/marketing/PricingModal.tsx +0 -45
  326. package/src/marketing/ProductHero.tsx +0 -23
  327. package/src/marketing/ProductHeroOrbit.tsx +0 -5
  328. package/src/marketing/SiteFooter.tsx +0 -23
  329. package/src/marketing/SiteHeader.tsx +0 -14
  330. package/src/marketing/VProPricingModal.tsx +0 -5
  331. package/src/marketing/createLandingKit.tsx +0 -12
  332. package/src/marketing/landing.tsx +0 -12
  333. package/src/marketing/marketing-classes.ts +0 -7
  334. package/src/motion/dock-motion.ts +0 -25
  335. package/src/motion/list-enter.tsx +0 -4
  336. package/src/motion/panel-transition.tsx +0 -5
  337. package/src/ui/_field-classes.ts +0 -2
  338. package/src/ui/_menu-classes.ts +7 -4
  339. package/src/ui/_menu-parts.tsx +0 -5
  340. package/src/ui/_picker-classes.ts +0 -6
  341. package/src/ui/accordion.alt.tsx +0 -8
  342. package/src/ui/accordion.tsx +0 -4
  343. package/src/ui/badge.tsx +0 -1
  344. package/src/ui/border-beam.tsx +0 -11
  345. package/src/ui/breadcrumb.tsx +0 -13
  346. package/src/ui/bulk-action-bar.tsx +0 -24
  347. package/src/ui/button.tsx +0 -27
  348. package/src/ui/calendar.tsx +0 -18
  349. package/src/ui/card.tsx +0 -3
  350. package/src/ui/carousel.tsx +0 -4
  351. package/src/ui/checkbox.tsx +0 -1
  352. package/src/ui/clear-input.alt.tsx +0 -8
  353. package/src/ui/clear-input.tsx +0 -16
  354. package/src/ui/clearInputDissolve.ts +0 -4
  355. package/src/ui/command.tsx +0 -22
  356. package/src/ui/confetti-burst.tsx +0 -4
  357. package/src/ui/confirm-dialog-parts.tsx +0 -45
  358. package/src/ui/confirm-dialog.tsx +0 -26
  359. package/src/ui/context-menu.tsx +4 -11
  360. package/src/ui/count-pop.tsx +0 -2
  361. package/src/ui/crossfade-icon.tsx +0 -3
  362. package/src/ui/date-picker.tsx +0 -40
  363. package/src/ui/dialog.tsx +0 -18
  364. package/src/ui/dropdown-menu.tsx +4 -12
  365. package/src/ui/empty-state.tsx +0 -15
  366. package/src/ui/error-boundary.tsx +0 -7
  367. package/src/ui/field.tsx +0 -18
  368. package/src/ui/hover-card.tsx +0 -6
  369. package/src/ui/image-lightbox.tsx +0 -7
  370. package/src/ui/input-group.alt.tsx +0 -16
  371. package/src/ui/input-group.tsx +0 -3
  372. package/src/ui/kbd.tsx +0 -3
  373. package/src/ui/label.tsx +0 -1
  374. package/src/ui/labeled-slider-row.tsx +0 -2
  375. package/src/ui/list-row.tsx +0 -46
  376. package/src/ui/loading-state.tsx +0 -23
  377. package/src/ui/marquee-on-hover.tsx +1 -6
  378. package/src/ui/media-preview.tsx +0 -5
  379. package/src/ui/modalTransition.ts +0 -25
  380. package/src/ui/overlay-a11y.ts +0 -1
  381. package/src/ui/page-title.tsx +0 -4
  382. package/src/ui/popover.tsx +0 -8
  383. package/src/ui/progress.tsx +0 -1
  384. package/src/ui/refresh-spin-icon.tsx +0 -11
  385. package/src/ui/relative-date-time.tsx +0 -3
  386. package/src/ui/rolling-number.tsx +0 -2
  387. package/src/ui/search-input.tsx +0 -9
  388. package/src/ui/select-field.tsx +0 -5
  389. package/src/ui/select.tsx +0 -8
  390. package/src/ui/send-queue-icon.tsx +0 -3
  391. package/src/ui/separator.tsx +0 -1
  392. package/src/ui/sheet.tsx +0 -42
  393. package/src/ui/slide-over-panel.tsx +0 -2
  394. package/src/ui/slider.tsx +21 -9
  395. package/src/ui/sonner-icons.tsx +0 -4
  396. package/src/ui/sonner.tsx +0 -78
  397. package/src/ui/spinner.tsx +0 -50
  398. package/src/ui/status-dot.tsx +0 -10
  399. package/src/ui/surface.tsx +0 -13
  400. package/src/ui/switch.tsx +72 -3
  401. package/src/ui/table.tsx +0 -3
  402. package/src/ui/tabs-transition.tsx +0 -12
  403. package/src/ui/tabs.tsx +0 -17
  404. package/src/ui/tabsSliding.ts +0 -5
  405. package/src/ui/time-picker.tsx +0 -17
  406. package/src/ui/toggle-search.tsx +0 -6
  407. package/src/ui/toolbar-search-input.tsx +0 -3
  408. package/src/ui/tooltip.tsx +0 -5
  409. package/src/ui/ui-config.tsx +0 -19
  410. package/src/utils/cat-color.ts +0 -20
  411. package/src/utils/cn.ts +0 -4
  412. package/src/utils/gesture.ts +0 -8
  413. package/src/utils/ref.ts +0 -1
  414. package/src/utils/runtimeVisibility.ts +0 -19
  415. package/src/utils/surface-radius.ts +0 -11
  416. package/src/utils/useDragSensors.ts +0 -2
  417. package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
  418. package/tokens/examples/toaster/Fixture.tsx +0 -4
  419. package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
  420. package/tokens/examples/toaster/vite.config.ts +0 -2
  421. package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
  422. package/tokens/examples/tokens-moved/vite.config.ts +0 -2
  423. package/tokens/src/tailwind-preset.mjs +0 -3
@@ -17,11 +17,8 @@ export const SIDE_PANEL_RAIL_WIDTH_PX = 44;
17
17
  /** Width of the rail with a label under each icon (`labelled`). */
18
18
  export const SIDE_PANEL_RAIL_LABELLED_WIDTH_PX = 76;
19
19
 
20
- /** Half the arrow's side (`size-4`), so its centre lands on the tab centre. */
21
20
  const ARROW_HALF_PX = 8;
22
21
 
23
- /* Relative to the frame, and scoped to its rail: content inside the card can
24
- have tab lists of its own. */
25
22
  const RAIL_TABLIST_SELECTOR = ':scope > [data-side-panel-rail] [role="tablist"]';
26
23
  const ACTIVE_TAB_SELECTOR = `${RAIL_TABLIST_SELECTOR} [role="tab"][data-state="active"]`;
27
24
  const CARD_SELECTOR = "[data-side-panel-card]";
@@ -45,14 +42,6 @@ export function popOutSidePanel(root: HTMLElement | null, collapse: () => void)
45
42
  dockPopOut(card, card ? activeTabOf(card) : null, "right", collapse, card ? arrowOf(card) : null);
46
43
  }
47
44
 
48
- /**
49
- * Keeps the card's arrow level with the active rail tab, and plays the card's
50
- * dock motion: pop in when the card appears, a content slide when the active
51
- * tab changes. It writes the transform straight to the node (no React state), as
52
- * the tab pill does: the first placement snaps, later moves slide. The arrow
53
- * hides when the active tab is scrolled out of the card's height. Measure
54
- * before animating: a scaled card reports a scaled rect.
55
- */
56
45
  function useActiveTabArrow(
57
46
  frameRef: RefObject<HTMLDivElement | null>,
58
47
  cardRef: RefObject<HTMLDivElement | null>,
@@ -64,7 +53,6 @@ function useActiveTabArrow(
64
53
  const arrow = arrowRef.current;
65
54
  if (!frame || !card || !arrow) return;
66
55
  let placed = false;
67
- // Start from what is on screen, so a mount does not pop.
68
56
  let wasOpen = card.getBoundingClientRect().width > 0;
69
57
  let lastTab = frame.querySelector(ACTIVE_TAB_SELECTOR);
70
58
  const sync = () => {
@@ -105,14 +93,11 @@ function useActiveTabArrow(
105
93
  if (typeof ResizeObserver === "undefined") return;
106
94
  const resize = new ResizeObserver(sync);
107
95
  resize.observe(frame);
108
- // The card un-hides without the frame changing size.
109
96
  resize.observe(card);
110
97
  const mutation = new MutationObserver(sync);
111
98
  mutation.observe(frame, { subtree: true, attributes: true, attributeFilter: ["data-state"] });
112
99
  const list = frame.querySelector(RAIL_TABLIST_SELECTOR);
113
100
  if (list) resize.observe(list);
114
- // Tabs can enter with a short slide and the list re-centres as tabs come
115
- // and go, so measure again once each motion settles.
116
101
  const settle = ["scroll", "animationend", "transitionend"] as const;
117
102
  for (const type of settle) frame.addEventListener(type, sync, true);
118
103
  return () => {
@@ -124,28 +109,14 @@ function useActiveTabArrow(
124
109
  }
125
110
 
126
111
  export type SidePanelTabsFrameProps = {
127
- /** From `md` up: hides the card and leaves the rail. */
128
112
  collapsed?: boolean;
129
- /** The tab rail: a `SidePanelTabs.Rail`. */
130
113
  rail: ReactNode;
131
- /** The content of the active tab. */
132
114
  children?: ReactNode;
133
115
  className?: string;
134
- /** Merged onto the content card (tone, radius, margins). */
135
116
  cardClassName?: string;
136
- /** Merged onto the arrow. Give it the card's tone when `cardClassName` changes it. */
137
117
  arrowClassName?: string;
138
118
  };
139
119
 
140
- /**
141
- * A side panel with its tabs on a rail. From `md` up: the rail on the right
142
- * edge, the content a rounded card beside it with an arrow that points at the
143
- * active tab; `collapsed` hides the card and the rail stays. Below `md`: a
144
- * column, the tab strip on top and the content edge to edge. The card pops
145
- * out of the active tab when it opens; on a tab switch its content slides in
146
- * from the side of the new tab; close it
147
- * through `popOutSidePanel`.
148
- */
149
120
  function Frame({ collapsed = false, rail, children, className, cardClassName, arrowClassName }: SidePanelTabsFrameProps) {
150
121
  const frameRef = useRef<HTMLDivElement>(null);
151
122
  const cardRef = useRef<HTMLDivElement>(null);
@@ -154,8 +125,6 @@ function Frame({ collapsed = false, rail, children, className, cardClassName, ar
154
125
  return (
155
126
  <div ref={frameRef} className={cn("relative flex h-full min-h-0 flex-col md:flex-row-reverse", className)}>
156
127
  {rail}
157
- {/* The arrow comes before the card, and the card is positioned, so the
158
- card paints over the arrow's inner half: only the tip shows. */}
159
128
  <div
160
129
  ref={arrowRef}
161
130
  aria-hidden
@@ -182,11 +151,9 @@ function Frame({ collapsed = false, rail, children, className, cardClassName, ar
182
151
  }
183
152
 
184
153
  export type SidePanelTabsRailProps = ComponentPropsWithoutRef<"div"> & {
185
- /** The wider rail, for tabs with `layout="stacked"`. Default `false`. */
186
154
  labelled?: boolean;
187
155
  };
188
156
 
189
- /** The rail column: holds a `SidePanelTabs.List`, and any `ButtonTrack` of tools after it. */
190
157
  function Rail({ labelled = false, className, ...props }: SidePanelTabsRailProps) {
191
158
  return (
192
159
  <div
@@ -204,23 +171,13 @@ function Rail({ labelled = false, className, ...props }: SidePanelTabsRailProps)
204
171
  export type SidePanelTabsListProps = {
205
172
  value: string;
206
173
  onValueChange: (value: string) => void;
207
- /** Fills the wider rail, for tabs with `layout="stacked"`. Default `false`. */
208
174
  labelled?: boolean;
209
- /** Accessible name of the tab list. */
210
175
  "aria-label"?: string;
211
- /** Merged onto the tabs root. */
212
176
  className?: string;
213
- /** Merged onto the tab list (the trough). */
214
177
  listClassName?: string;
215
- /** `SidePanelTabs.Tab` items. */
216
178
  children?: ReactNode;
217
179
  };
218
180
 
219
- /**
220
- * The tabs of the rail on one trough with a sliding pill. Activation is
221
- * manual: a tab selects on press, not on focus, so a press on the selected
222
- * tab can mean something else (`onReselect`).
223
- */
224
181
  function List({ value, onValueChange, labelled = false, className, listClassName, children, ...props }: SidePanelTabsListProps) {
225
182
  return (
226
183
  <Tabs
@@ -229,8 +186,6 @@ function List({ value, onValueChange, labelled = false, className, listClassName
229
186
  onValueChange={onValueChange}
230
187
  className={cn("min-w-0 flex-1 md:flex md:min-h-0 md:w-full md:flex-col md:items-center md:justify-center-safe", className)}
231
188
  >
232
- {/* Always segmented, whatever `UiConfig.Tabs` says: the rail needs the
233
- sliding pill. `xy`: the rail is a row below `md`, a column above. */}
234
189
  <TabsList
235
190
  variant="segmented"
236
191
  pillMotion="xy"
@@ -260,34 +215,22 @@ const TAB_LAYOUT_CLASS: Record<SidePanelTabLayout, string> = {
260
215
  stacked: "md:h-auto md:w-full md:flex-col md:justify-center md:gap-0.5 md:px-1 md:py-1.5",
261
216
  };
262
217
 
263
- /* Selection is Radix's `data-state` on the trigger, so the idle and active
264
- icons swap in CSS. */
265
218
  const ICON_SLOT_CLASS = "contents [&_svg]:size-4 [&_svg]:shrink-0";
266
219
 
267
220
  export type SidePanelTabsTabProps = {
268
221
  value: string;
269
222
  label: string;
270
- /** The icon. Without `activeIcon` its stroke thickens while the tab is selected. */
271
223
  icon: ReactNode;
272
- /** Shown in place of `icon` while the tab is selected (a filled variant). */
273
224
  activeIcon?: ReactNode;
274
- /** Default `"icon"`. */
275
225
  layout?: SidePanelTabLayout;
276
- /** How many items the tab holds. Above 0 it shows as a badge, in place of the `indicator` dot. */
277
226
  count?: number;
278
- /** A dot on the tab. `"activity"` pulses (something is live); `"content"` is still (something waits for the reader). */
279
227
  indicator?: "activity" | "content";
280
- /** Accessible name of the count badge or the dot. */
281
228
  indicatorLabel?: string;
282
- /** A press on this tab while it is selected (for example to show or hide the card). Radix skips `onValueChange` then. */
283
229
  onReselect?: () => void;
284
- /** Second tooltip line: what a press on the selected tab does. */
285
230
  reselectHint?: string;
286
231
  className?: string;
287
232
  };
288
233
 
289
- /* Radix selects a tab on mouse down (or Enter / Space key down), so read the
290
- state there: by `click` a newly picked tab is already active. */
291
234
  function isReselectPress(event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) {
292
235
  const press =
293
236
  "button" in event
@@ -296,7 +239,6 @@ function isReselectPress(event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HT
296
239
  return press && event.currentTarget.dataset.state === "active";
297
240
  }
298
241
 
299
- /** One tab of a `SidePanelTabs.List`. */
300
242
  function Tab({
301
243
  value,
302
244
  label,
@@ -360,13 +302,10 @@ function Tab({
360
302
  ) : null}
361
303
  </TabsTrigger>
362
304
  );
363
- // A visible label needs no tooltip that repeats it.
364
305
  if (!labelHidden) return trigger;
365
306
  return (
366
307
  <Tooltip>
367
308
  <TooltipTrigger asChild>
368
- {/* The span keeps the Tooltip `data-state` off the trigger: Radix
369
- Tabs uses `data-state` for active and inactive. */}
370
309
  <span className="inline-flex">{trigger}</span>
371
310
  </TooltipTrigger>
372
311
  <TooltipContent side="left" className="text-xs">
@@ -72,7 +72,6 @@ export const Sidebar = {
72
72
  RailHeader,
73
73
  RailBody,
74
74
  RailFooter,
75
- /** Alias of `RailFooter`. */
76
75
  Footer: RailFooter,
77
76
  RailItem,
78
77
  RailGroup,
@@ -19,55 +19,27 @@ import { SignOutDialog } from "./SignOutDialog";
19
19
  type ContentProps = ComponentPropsWithoutRef<typeof DropdownMenuContent>;
20
20
 
21
21
  export type SidebarAccountMenuProps = {
22
- /** Trigger `title`, `aria-label` and the menu label. */
23
22
  name: string;
24
- /** When set, the label shows the name and email on two lines. */
25
23
  email?: string;
26
- /** Legacy (still supported): always use the two-line label layout, even without `email`. Default `false`. */
27
24
  stackedLabel?: boolean;
28
- /** Avatar image. Without it the avatar shows up to two initials of `name`. */
29
25
  imageUrl?: string;
30
- /** Default `"center"`. */
31
26
  align?: ContentProps["align"];
32
- /** Default `"right"`. */
33
27
  side?: ContentProps["side"];
34
- /** Default `8`. */
35
28
  sideOffset?: number;
36
29
  collisionPadding?: ContentProps["collisionPadding"];
37
- /** Merged onto the menu content after `w-56`. */
38
30
  contentClassName?: string;
39
- /**
40
- * Legacy (still supported): unread dot over the trigger's top-right corner, a sibling of the trigger in
41
- * a `relative` wrapper. `true` shows it, `false` keeps it mounted at zero
42
- * opacity so it fades out. Omitted: no wrapper and no dot.
43
- */
44
31
  badge?: boolean;
45
- /** Legacy (still supported): spread onto the trigger `Button` after the defaults (overrides `title`, `aria-label`, …). `className` merges last. */
46
32
  triggerProps?: Omit<ComponentPropsWithoutRef<typeof Button>, "children" | "asChild">;
47
- /** Legacy (still supported): spread onto `DropdownMenuContent`, for example `fitViewport` or `aria-label`. Use `contentClassName` for classes. */
48
33
  contentProps?: Omit<
49
34
  ContentProps,
50
35
  "children" | "className" | "align" | "side" | "sideOffset" | "collisionPadding"
51
36
  >;
52
- /** Menu items after the label and separator. */
53
37
  children?: ReactNode;
54
- /**
55
- * Adds a theme item after `children`. With `isDark` it names the other of
56
- * light and dark. With `theme` it names the next theme in the cycle light,
57
- * neutral, dark (system counts as light), and `onToggle` must move to it.
58
- */
59
38
  themeToggle?: { isDark: boolean; onToggle: () => void } | { theme: string | undefined; onToggle: () => void };
60
- /**
61
- * Adds a separator and a danger "Sign out" item last. Selecting it opens
62
- * `SignOutDialog` (Alt-click skips it, with `ConfirmSkipHint`). The menu owns
63
- * the dialog state; `onSignOut` failing re-enables the dialog.
64
- */
65
39
  signOut?: {
66
40
  onSignOut: () => Promise<void>;
67
- /** Second line of the dialog. */
68
41
  description?: string;
69
42
  };
70
- /** `size` of the theme and sign-out item icons. Default: the icon's own size (24). */
71
43
  itemIconSize?: number;
72
44
  };
73
45
 
@@ -131,7 +103,7 @@ export function SidebarAccountMenu({
131
103
  },
132
104
  )
133
105
  }
134
- className="text-danger focus:text-danger data-[highlighted]:text-danger"
106
+ variant="destructive"
135
107
  title={skipConfirmTitle("Sign out")}
136
108
  >
137
109
  <IconLogout size={itemIconSize} />
@@ -159,11 +131,6 @@ export function SidebarAccountMenu({
159
131
  }
160
132
 
161
133
  export type SidebarAccountMenuRootProps = ComponentPropsWithoutRef<typeof DropdownMenu> & {
162
- /**
163
- * Unread dot over the trigger's top-right corner (`AccountBadge`), a sibling
164
- * of the trigger in a `relative` wrapper. `true` shows it, `false` keeps it
165
- * mounted at zero opacity so it fades out. Omitted: no wrapper and no dot.
166
- */
167
134
  badge?: boolean;
168
135
  };
169
136
 
@@ -171,7 +138,6 @@ export type SidebarAccountMenuRootProps = ComponentPropsWithoutRef<typeof Dropdo
171
138
  export function AccountMenu({ badge, ...props }: SidebarAccountMenuRootProps) {
172
139
  const menu = <DropdownMenu {...props} />;
173
140
  if (badge === undefined) return menu;
174
- // Sibling of the trigger, so its opacity and press scale do not reach the dot.
175
141
  return (
176
142
  <div className="relative">
177
143
  {menu}
@@ -181,7 +147,6 @@ export function AccountMenu({ badge, ...props }: SidebarAccountMenuRootProps) {
181
147
  }
182
148
 
183
149
  export type SidebarAccountBadgeProps = Omit<ComponentPropsWithoutRef<"span">, "children"> & {
184
- /** `false` keeps the dot mounted at zero opacity so it fades out. Default `true`. */
185
150
  visible?: boolean;
186
151
  };
187
152
 
@@ -203,9 +168,7 @@ export function AccountBadge({ visible = true, className, ...props }: SidebarAcc
203
168
 
204
169
  export type SidebarAccountAvatarProps = {
205
170
  userName: string;
206
- /** Without it the avatar shows up to two initials of `userName`. */
207
171
  imageUrl?: string;
208
- /** Size classes, for example `h-7 w-7`. */
209
172
  className?: string;
210
173
  };
211
174
 
@@ -239,7 +202,6 @@ export function AccountAvatar({ imageUrl, userName, className }: SidebarAccountA
239
202
  }
240
203
 
241
204
  export type SidebarAccountTriggerProps = Omit<ButtonProps, "asChild" | "shape"> & {
242
- /** Default `title` and `aria-label`, and the avatar initials. Native `name` goes to the button. */
243
205
  userName: string;
244
206
  imageUrl?: string;
245
207
  };
@@ -290,10 +252,8 @@ export function AccountContent({
290
252
 
291
253
  export type SidebarAccountLabelProps = Omit<ComponentPropsWithoutRef<typeof DropdownMenuLabel>, "children"> & {
292
254
  userName: string;
293
- /** Shown under the name. */
294
255
  email?: string;
295
256
  imageUrl?: string;
296
- /** Two-line layout even without `email`. Default `false`. */
297
257
  stacked?: boolean;
298
258
  };
299
259
 
@@ -38,21 +38,15 @@ function useSidebar(part: string): SidebarContextValue {
38
38
  }
39
39
 
40
40
  export type SidebarRootProps = {
41
- /** From the app's desktop media query (for example `(min-width: 768px)`). */
42
41
  isDesktop: boolean;
43
- /** Mobile drawer state. Owned by the app (which also closes it on route change). */
44
42
  mobileOpen: boolean;
45
43
  onMobileOpenChange: (open: boolean) => void;
46
- /** Desktop: show only the rail. `Sidebar.Panel` hides itself (`md:hidden`). Default `false`. */
47
44
  collapsed?: boolean;
48
- /** The current section has no panel: rail-wide on every viewport, `Sidebar.Panel` renders nothing. Default `false`. */
49
45
  panelHidden?: boolean;
50
- /** `id` of the drawer (`Sidebar.Aside`), used by the menu button `aria-controls`. Default from `useId`. */
51
46
  id?: string;
52
47
  children?: ReactNode;
53
48
  };
54
49
 
55
- /** Sidebar state for the other parts. Renders no DOM. Closes the drawer when the desktop breakpoint is reached. */
56
50
  function Root({
57
51
  isDesktop,
58
52
  mobileOpen,
@@ -64,8 +58,6 @@ function Root({
64
58
  }: SidebarRootProps) {
65
59
  const autoId = useId();
66
60
 
67
- // Reaching the desktop breakpoint closes the drawer, so it does not reopen
68
- // on the way back down. Runs on breakpoint change only.
69
61
  useEffect(() => {
70
62
  if (isDesktop && mobileOpen) onMobileOpenChange(false);
71
63
  }, [isDesktop]);
@@ -87,10 +79,6 @@ function closeOnEscape(sidebar: SidebarContextValue, event: KeyboardEvent) {
87
79
 
88
80
  export type SidebarMobileHeaderProps = ComponentProps<"header">;
89
81
 
90
- /**
91
- * Fixed header below `md`. Escape inside it closes the drawer. Three columns
92
- * keep the title centred and stop it overlapping the actions: it truncates instead.
93
- */
94
82
  function MobileHeader({ className, onKeyDown, ...props }: SidebarMobileHeaderProps) {
95
83
  const sidebar = useSidebar("MobileHeader");
96
84
  return (
@@ -111,13 +99,10 @@ function MobileHeader({ className, onKeyDown, ...props }: SidebarMobileHeaderPro
111
99
  const defaultMobileMenuIcon = () => <IconMenu2 size={20} />;
112
100
 
113
101
  export type SidebarMobileMenuButtonProps = Omit<ButtonProps, "children" | "shape"> & {
114
- /** `aria-label`. Default `"Open navigation menu"`. */
115
102
  label?: string;
116
- /** Icon for the drawer state. Default a 20px menu icon. */
117
103
  icon?: (open: boolean) => ReactNode;
118
104
  };
119
105
 
120
- /** Opens the drawer. `shape="rounded"` (`rounded-lg`); change the radius with `className`. */
121
106
  function MobileMenuButton({
122
107
  label = "Open navigation menu",
123
108
  icon = defaultMobileMenuIcon,
@@ -149,7 +134,6 @@ function MobileMenuButton({
149
134
 
150
135
  export type SidebarMobileTitleProps = ComponentProps<"h1">;
151
136
 
152
- /** Centred title in the mobile header. Without children, an empty `<span>` keeps the middle column. */
153
137
  function MobileTitle({ className, children, ...props }: SidebarMobileTitleProps) {
154
138
  if (!children) return <span aria-hidden="true" />;
155
139
  return (
@@ -167,7 +151,6 @@ function MobileTitle({ className, children, ...props }: SidebarMobileTitleProps)
167
151
 
168
152
  export type SidebarMobileActionsProps = ComponentProps<"div">;
169
153
 
170
- /** Trailing actions in the mobile header. Without children, a menu-button-sized spacer keeps the title centred. */
171
154
  function MobileActions({ className, children, ...props }: SidebarMobileActionsProps) {
172
155
  if (!children) {
173
156
  return <div {...props} className={cn("h-11 w-11 shrink-0 justify-self-end", className)} aria-hidden="true" />;
@@ -184,16 +167,12 @@ function MobileActions({ className, children, ...props }: SidebarMobileActionsPr
184
167
  }
185
168
 
186
169
  export type SidebarBackdropProps = Omit<HTMLMotionProps<"button">, "children"> & {
187
- /** `aria-label`. Default `"Close navigation"`. */
188
170
  label?: string;
189
171
  };
190
172
 
191
- /** Drawer backdrop below `md`; a click closes the drawer. Fades in and out. */
192
173
  function Backdrop({ label = "Close navigation", className, onClick, ...props }: SidebarBackdropProps) {
193
174
  const sidebar = useSidebar("Backdrop");
194
175
  return (
195
- // `m.*` in its own `LazyMotion`, as every shell part: an app's strict
196
- // `LazyMotion` throws on a full `motion.*` component.
197
176
  <LazyMotion features={domMax}>
198
177
  <AnimatePresence initial={false}>
199
178
  {sidebar.mobileOpen && !sidebar.isDesktop ? (
@@ -219,11 +198,6 @@ function Backdrop({ label = "Close navigation", className, onClick, ...props }:
219
198
 
220
199
  export type SidebarAsideProps = HTMLMotionProps<"aside">;
221
200
 
222
- /**
223
- * The `<aside>`: fixed on desktop, a swipe-to-close drawer below it. Width
224
- * reads the `--app-shell-*` variables. `id` overrides the Root drawer id
225
- * (keep them equal so `aria-controls` points here).
226
- */
227
201
  function Aside({ id, className, onKeyDown, children, ...props }: SidebarAsideProps) {
228
202
  const sidebar = useSidebar("Aside");
229
203
  const resize = useSidebarResizeContext();
@@ -237,7 +211,6 @@ function Aside({ id, className, onKeyDown, children, ...props }: SidebarAsidePro
237
211
  };
238
212
 
239
213
  return (
240
- // `domMax`: the drawer drags to close.
241
214
  <LazyMotion features={domMax}>
242
215
  <m.aside
243
216
  id={id ?? sidebar.drawerId}
@@ -277,11 +250,6 @@ function Aside({ id, className, onKeyDown, children, ...props }: SidebarAsidePro
277
250
 
278
251
  export type SidebarResizeHandlePartProps = SidebarResizeHandleProps;
279
252
 
280
- /**
281
- * `SidebarResizeHandle` inside a resizable `AppShell`. Under a `Sidebar.Root`
282
- * it shows only on desktop while the panel shows (not collapsed or hidden).
283
- * Place it inside `Sidebar.Aside`.
284
- */
285
253
  function ResizeHandle(props: SidebarResizeHandlePartProps) {
286
254
  const sidebar = useOptionalSidebar();
287
255
  const resize = useSidebarResizeContext();
@@ -5,13 +5,10 @@ export type SidebarIconTooltipProps = {
5
5
  label: string;
6
6
  enabled: boolean;
7
7
  children: ReactElement;
8
- /** Default `"right"`. */
9
8
  side?: "top" | "right" | "bottom" | "left";
10
- /** Default `8`. */
11
9
  sideOffset?: number;
12
10
  };
13
11
 
14
- // radix tooltip for icon-only sidebar rail — skipped when labels are visible
15
12
  export function SidebarIconTooltip({
16
13
  label,
17
14
  enabled,
@@ -19,18 +19,12 @@ import { useAppShellPanelDock } from "./shell-variant";
19
19
 
20
20
  export type SidebarPanelProps = {
21
21
  title: string;
22
- /** Legacy (still supported): rendered in the header, before the close button. Compose `Sidebar.PanelActions`. */
23
22
  headerTrailing?: ReactNode;
24
- /** Legacy (still supported): when set, a close button follows `headerTrailing`. Pass it on the mobile drawer only. */
25
23
  onClose?: () => void;
26
- /** Legacy (still supported): close button label. Default `"Close navigation"`. */
27
24
  closeLabel?: string;
28
- /** Legacy (still supported): merged onto the close button. */
29
25
  closeButtonClassName?: string;
30
- /** Desktop: hides the panel (`md:hidden`) and leaves the rail. */
31
26
  collapsed?: boolean;
32
27
  className?: string;
33
- /** Panel body: nav, footer and so on. */
34
28
  children?: ReactNode;
35
29
  };
36
30
 
@@ -64,9 +58,7 @@ export function SidebarPanel({
64
58
  }
65
59
 
66
60
  export type SidebarPanelRootProps = ComponentPropsWithoutRef<"div"> & {
67
- /** Desktop: hides the panel (`md:hidden`). Default the `Sidebar.Root` `collapsed`, else `false`. */
68
61
  collapsed?: boolean;
69
- /** Renders nothing. Default the `Sidebar.Root` `panelHidden`, else `false`. */
70
62
  panelHidden?: boolean;
71
63
  };
72
64
 
@@ -80,8 +72,6 @@ export function Panel({ collapsed, panelHidden, className, ...props }: SidebarPa
80
72
  data-shell-dock-panel={dock ? "" : undefined}
81
73
  {...props}
82
74
  className={cn(
83
- // No border-r: the main content card floats beside this panel, so a
84
- // right edge line reads as a hard divider.
85
75
  "relative flex h-full min-w-0 flex-1 flex-col overflow-hidden bg-background",
86
76
  (collapsed ?? sidebar?.collapsed ?? false) && "md:hidden",
87
77
  className,
@@ -124,7 +114,6 @@ export function PanelActions({ className, ...props }: SidebarPanelActionsProps)
124
114
  }
125
115
 
126
116
  export type SidebarPanelCloseProps = Omit<ButtonProps, "shape"> & {
127
- /** `aria-label`. Default `"Close navigation"`. */
128
117
  label?: string;
129
118
  };
130
119
 
@@ -151,21 +140,13 @@ export function PanelClose({ label = "Close navigation", onClick, className, chi
151
140
  }
152
141
 
153
142
  export type SidebarNavItemProps = ComponentPropsWithoutRef<"button"> & {
154
- /** Current route: static fill, `font-medium`, `aria-current="page"`, `data-active="true"`. */
155
143
  active?: boolean;
156
- /** Collapsed panel: centred icon, no horizontal padding. */
157
144
  iconOnly?: boolean;
158
- /** Leading icon element; gets `sidebarNavIconClass(active)` merged onto it. For other leading content use `Sidebar.NavItemLeading`. */
159
145
  icon?: ReactElement;
160
- /** Render the single child element (for example a router link) as the row. */
161
146
  asChild?: boolean;
162
- /** Picked (for example in a multi-select list): the active fill without `font-medium`. Sets `data-selected="true"`. */
163
147
  selected?: boolean;
164
- /** Nesting level from 0. Each level adds 12px to the 16px left padding. Ignored with `iconOnly`. */
165
148
  indent?: number;
166
- /** Row being dragged. Sets `data-dragging="true"`. */
167
149
  dragging?: boolean;
168
- /** Row under a drag. Sets `data-drop-target="true"`. */
169
150
  dropTarget?: boolean;
170
151
  };
171
152
 
@@ -204,7 +185,6 @@ export function NavItem({
204
185
  }
205
186
 
206
187
  export type SidebarNavItemPartProps = ComponentPropsWithoutRef<"span"> & {
207
- /** Merge the part classes onto the single child element instead of a `<span>`. */
208
188
  asChild?: boolean;
209
189
  };
210
190
 
@@ -12,21 +12,11 @@ import { toggleShellPanel } from "./shell-panel-motion";
12
12
  import { useAppShellPanelDock, useAppShellVariant } from "./shell-variant";
13
13
 
14
14
  export type SidebarRailProps = Omit<ComponentPropsWithoutRef<"div">, "children" | "className"> & {
15
- /** Pinned at the top, above the scroll body. */
16
15
  top?: ReactNode;
17
- /** Scroll body. */
18
16
  children?: ReactNode;
19
- /** Pinned at the bottom. */
20
17
  footer?: ReactNode;
21
- /** Adds a right border between the rail and the panel. Default `false`. No effect in an `AppShell variant="rail"`. */
22
18
  showDivider?: boolean;
23
- /** Render the body as its single child element (for example a tabs list), with the body classes merged. */
24
19
  bodyAsChild?: boolean;
25
- /**
26
- * Render the body as a Radix tabs list (arrow-key roving focus). Use it
27
- * inside a Tabs root with `orientation="vertical"` and give each `RailTile`
28
- * a `tabValue`. Default `false`.
29
- */
30
20
  tabs?: boolean;
31
21
  className?: string;
32
22
  topClassName?: string;
@@ -72,11 +62,9 @@ export function SidebarRail({
72
62
  );
73
63
  }
74
64
 
75
- /** A slot's trough hides while the slot renders nothing (the pill is then its only child). */
76
65
  const railSlotGroupClass = "[&:not(:has(>:not([data-rail-pill])))]:hidden";
77
66
 
78
67
  export type SidebarRailRootProps = ComponentPropsWithoutRef<"div"> & {
79
- /** Adds a right border between the rail and the panel. Default `false`. */
80
68
  showDivider?: boolean;
81
69
  };
82
70
 
@@ -102,12 +90,7 @@ export function RailHeader({ className, ...props }: SidebarRailHeaderProps) {
102
90
  }
103
91
 
104
92
  export type SidebarRailBodyProps = ComponentPropsWithoutRef<"div"> & {
105
- /** Render the body as its single child element (for example a `<nav>`), with the body classes merged. */
106
93
  asChild?: boolean;
107
- /**
108
- * Render a Radix tabs list (arrow-key roving focus). Use it inside a Tabs
109
- * root with `orientation="vertical"` and give each item a `tabValue`.
110
- */
111
94
  tabs?: boolean;
112
95
  };
113
96
 
@@ -119,7 +102,6 @@ export function RailBody({ asChild = false, tabs = false, className, ...props }:
119
102
  return <Body {...props} className={bodyClass} />;
120
103
  }
121
104
 
122
- /** True inside a `RailGroup`: its tiles take the segmented fills. */
123
105
  const RailGroupContext = createContext(false);
124
106
 
125
107
  /** Whether the caller sits in a `Sidebar.RailGroup`. Custom rail tiles pass it to `railTileStateClass`. */
@@ -129,15 +111,8 @@ export function useInRailGroup(): boolean {
129
111
 
130
112
  export type SidebarRailGroupProps = ComponentPropsWithoutRef<"div">;
131
113
 
132
- /** Marks the active `RailItem`, so its group's pill can find it. */
133
114
  const ACTIVE_TILE_SELECTOR = "[data-rail-tile][data-active]";
134
115
 
135
- /**
136
- * Keeps the group's pill under its active tile. The first placement and any
137
- * resize snap; a change of active tile slides, as `TabsList` does. With no
138
- * active tile the pill hides, and the next one snaps in rather than sliding
139
- * from where the pill was last.
140
- */
141
116
  function useRailGroupPill(groupRef: RefObject<HTMLDivElement | null>, pillRef: RefObject<HTMLSpanElement | null>) {
142
117
  useLayoutEffect(() => {
143
118
  const group = groupRef.current;
@@ -196,40 +171,23 @@ export function RailFooter({ className, ...props }: SidebarRailFooterProps) {
196
171
  }
197
172
 
198
173
  type SidebarRailItemBaseProps = Omit<ComponentPropsWithoutRef<"button">, "children"> & {
199
- /** `aria-label`, and the tooltip unless `tooltip` is set. */
200
174
  label: string;
201
- /** Active state. With `asChild`, also sets `aria-current="page"`. */
202
175
  active?: boolean;
203
- /** Tooltip text. Default `label`. */
204
176
  tooltip?: string;
205
- /** Default `true`. */
206
177
  showTooltip?: boolean;
207
- /** Rendered after the children, inside the tile (for example a count with `railBadgeClass`). */
208
178
  badge?: ReactNode;
209
- /** Render the single child element (for example a router link) as the tile. */
210
179
  asChild?: boolean;
211
- /**
212
- * Render a Radix tabs trigger for this value (inside a `SidebarRail tabs`).
213
- * The label is sr-only text instead of `aria-label`; `asChild` is ignored.
214
- */
215
180
  tabValue?: string;
216
181
  };
217
182
 
218
183
  export type SidebarRailItemProps = SidebarRailItemBaseProps &
219
184
  (
220
185
  | {
221
- /**
222
- * Product app id for the home tile. The tile renders `APP_ICONS[app]` at
223
- * `SIDEBAR_RAIL_APP_ICON_SIZE` (24px), so apps cannot drift. With `asChild` the
224
- * icon goes inside the child element (for example `<Link to="/" />`). Without
225
- * `asChild`, `children` are ignored.
226
- */
227
186
  app: ProductAppName;
228
187
  children?: ReactNode;
229
188
  }
230
189
  | {
231
190
  app?: undefined;
232
- /** The tile icon. The caller controls its size. */
233
191
  children: ReactNode;
234
192
  }
235
193
  );
@@ -250,7 +208,6 @@ export function RailItem({
250
208
  }: SidebarRailItemProps) {
251
209
  const grouped = use(RailGroupContext);
252
210
  const stateClass = railTileStateClass(active, grouped);
253
- // Markers for the group's pill; ungrouped tiles keep their old DOM.
254
211
  const groupMarks = grouped ? { "data-rail-tile": "", "data-active": active ? "" : undefined } : undefined;
255
212
  const AppIcon = app ? APP_ICONS[app] : null;
256
213
  const appIcon = AppIcon ? <AppIcon size={SIDEBAR_RAIL_APP_ICON_SIZE} /> : null;
@@ -320,7 +277,6 @@ export function RailDivider({ className }: RailDividerProps) {
320
277
  export const shellDockTileProps = { "data-shell-dock-tile": "" } as const;
321
278
 
322
279
  export type RailCollapseTileProps = {
323
- /** Panel is collapsed: shows the expand icon and "Show sidebar". */
324
280
  collapsed: boolean;
325
281
  onToggle: () => void;
326
282
  };