@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
@@ -6,8 +6,6 @@ import { cn } from "../utils/cn.js";
6
6
  import { landingShellClass, productHeroSocialProofClass } from "./marketing-classes.js";
7
7
  import { PROJECT_V_HOME_URL } from "./projectV.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- // Same family, weight, leading and tracking as `PageTitle`; only the size changes with the viewport.
10
- // Joined as plain strings: `cn` would drop `leading-tight` because a `text-*` size class conflicts with it.
11
9
  const titleClass = `text-balance text-4xl sm:text-5xl lg:text-6xl ${pageTitleClass.replace(/\btext-xl\s*/, "")}`;
12
10
  function UserCountProof(t0) {
13
11
  const $ = _c(11);
@@ -14,7 +14,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  export function createLandingKit({
15
15
  motion
16
16
  }) {
17
- /** Staggers its `LandingRevealItem` children in once, when 20% is in view. */
18
17
  function LandingReveal(t0) {
19
18
  const $ = _c(8);
20
19
  const {
@@ -101,8 +100,6 @@ export function createLandingKit({
101
100
  }
102
101
  return t2;
103
102
  }
104
-
105
- /** @deprecated Use `SiteHeader`. Sticky blurred header that rises in on mount. */
106
103
  function LandingNav(t0) {
107
104
  const $ = _c(23);
108
105
  const {
@@ -231,8 +228,6 @@ export function createLandingKit({
231
228
  }
232
229
  return t10;
233
230
  }
234
-
235
- /** Closing call to action on the atmosphere background. */
236
231
  function _temp(link) {
237
232
  return /*#__PURE__*/_jsx("a", {
238
233
  href: link.href,
@@ -1,9 +1,3 @@
1
- // Class strings for the landing kit, `SiteFooter` and `PricingModal`, copied
2
- // from the apps' markup. Some read the bare muted text colour the apps already
3
- // ship (apps map `--color-muted` to the secondary text colour), so each such
4
- // line carries the token check's allow marker. Every string is a literal so
5
- // Tailwind's source scan sees it.
6
-
7
1
  /** Centred landing column: `max-w-6xl` with responsive side padding. */
8
2
  export const landingShellClass = "relative mx-auto w-full max-w-6xl px-5 sm:px-8 lg:px-10";
9
3
 
@@ -89,7 +83,6 @@ export const pricingModalClasses = {
89
83
  muted: {
90
84
  period: "pb-1 text-sm text-muted",
91
85
  // check-tokens-allow: text-muted
92
- /** After `mt-4 max-w-[28ch]` and the optional font class. */
93
86
  tagline: "text-lg italic leading-snug text-muted",
94
87
  // check-tokens-allow: text-muted
95
88
  note: "mt-3 text-center text-xs text-muted",
@@ -1,32 +1,15 @@
1
- /**
2
- * Dock motion for a panel that docks into a rail tile: it grows out of the
3
- * tile when shown, shrinks back into it when hidden, and its content slides
4
- * in when the tile it belongs to changes. The Web Animations API drives it: the motions
5
- * are one-shot and imperative, and a hide has to finish before the caller
6
- * removes the panel.
7
- *
8
- * Off switch: `MotionProvider reducedMotion` (`prefersReducedMotion()`) and
9
- * `PageMotionProvider disabled` (`html[data-page-motion="off"]`). With either
10
- * on, nothing here animates: a show is instant and a hide runs at once.
11
- */
12
1
  import { prefersReducedMotion } from "./reduced-motion.js";
13
2
 
14
3
  /** Which edge of the panel touches the rail. */
15
4
 
16
- /** How small the panel gets: close to the tile's size, not a dot. */
17
5
  const DOCKED_SCALE = 0.12;
18
6
  const POP_IN_MS = 380;
19
7
  const POP_OUT_MS = 260;
20
8
  const SWITCH_MS = 240;
21
- /* The tab-switch slide: the rail page switch and tab content use 24-32px. */
22
9
  const SWITCH_SLIDE_PX = 24;
23
- /* Out-quint: fast start, long settle. The panel lands rather than stops. */
24
10
  const SETTLE_EASE = "cubic-bezier(0.22, 1, 0.36, 1)";
25
- /* In-cubic: accelerates into the tile, as a minimise does. */
26
11
  const DOCK_EASE = "cubic-bezier(0.5, 0, 0.75, 0)";
27
12
  const POP_OUT_ID = "dock-pop-out";
28
- /* How long the docked frame holds after a hide: past the sidebar's 280 ms
29
- width slide, so the panel never shows at full size while it leaves. */
30
13
  const HOLD_MS = 400;
31
14
 
32
15
  /**
@@ -49,24 +32,15 @@ export function dockMotionOff() {
49
32
  if (typeof document === "undefined") return true;
50
33
  return document.documentElement.dataset.pageMotion === "off" || prefersReducedMotion();
51
34
  }
52
-
53
- /**
54
- * Points the panel's transform origin at the tile's centre, on the rail
55
- * edge. False when either is not on screen, so the caller skips the motion.
56
- * Measure before animating: a scaled panel reports a scaled rect.
57
- */
58
35
  function aimAt(panel, tile, edge) {
59
36
  if (!tile || dockMotionOff() || typeof panel.animate !== "function") return false;
60
37
  const p = panel.getBoundingClientRect();
61
- // Height, not width: a sidebar aside slides its width open from 0.
62
38
  if (p.height === 0) return false;
63
39
  const t = tile.getBoundingClientRect();
64
40
  const x = edge === "left" ? "0%" : "100%";
65
41
  panel.style.transformOrigin = `${x} ${Math.round(t.top + t.height / 2 - p.top)}px`;
66
42
  return true;
67
43
  }
68
-
69
- /** Drops a finished pop-out's held frame (see `dockPopOut`). */
70
44
  function releaseDocked(el) {
71
45
  if (!el || typeof el.getAnimations !== "function") return;
72
46
  for (const a of el.getAnimations()) if (a.id === POP_OUT_ID) a.cancel();
@@ -77,7 +51,6 @@ function releaseDocked(el) {
77
51
  * once the panel has nearly landed.
78
52
  */
79
53
  export function dockPopIn(panel, tile, edge, after) {
80
- // Always, even when the motion is skipped, or the panel stays invisible.
81
54
  releaseDocked(panel);
82
55
  releaseDocked(after);
83
56
  if (!aimAt(panel, tile, edge)) return;
@@ -1,7 +1,5 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import * as React from "react";
3
-
4
- /** The `ViewTransition` props used here. Typed locally so consumers on `@types/react` without `ViewTransition` still typecheck. */
5
3
  import { jsx as _jsx } from "react/jsx-runtime";
6
4
  const ViewTransition = Reflect.get(React, "ViewTransition");
7
5
  /**
@@ -1,5 +1,2 @@
1
- // light field focus: border colour plus a 1px ring
2
1
  export const fieldFocusClass = "focus-visible:outline-hidden focus-visible:border-focus-border focus-visible:ring-1 focus-visible:ring-focus-ring";
3
-
4
- // the same on a wrapper whose control has focus
5
2
  export const fieldFocusWithinClass = "has-focus-visible:outline-hidden has-focus-visible:border-focus-border has-focus-visible:ring-1 has-focus-visible:ring-focus-ring";
@@ -1,9 +1,5 @@
1
- // floating overlay: tone + smooth-shadow-ring, never border+shadow
2
1
  const floatingSurfaceToneClass = "bg-overlay text-overlay-foreground smooth-shadow-ring-lg max-sm:max-w-[calc(100vw-2rem)]";
3
2
  export const floatingSurfaceClass = `rounded-lg ${floatingSurfaceToneClass}`;
4
-
5
- // Menu surface: the corner is the item radius plus the `p-1` inset, so a
6
- // highlighted item keeps the same gap to the edge round the corner.
7
3
  export const menuSurfaceClass = `rounded-menu ${floatingSurfaceToneClass}`;
8
4
  export const floatingSurfaceAnimateClass = ["data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[var(--radix-popper-transform-origin)]"].join(" ");
9
5
 
@@ -16,8 +12,6 @@ export const floatingSurfaceAnimateClass = ["data-[state=open]:animate-in data-[
16
12
  * Hover cards and selects keep `floatingSurfaceAnimateClass`.
17
13
  */
18
14
  export const triggerZoomAnimateClass = "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]";
19
-
20
- // shared floating menu surfaces: popover tone + smooth-shadow-ring-lg
21
15
  export const menuContentClass = ["z-50 min-w-[12rem] overflow-hidden p-1 outline-none max-sm:max-h-[85dvh] max-sm:overflow-y-auto", menuSurfaceClass, triggerZoomAnimateClass].join(" ");
22
16
  export const menuSubTriggerClass = "flex cursor-pointer select-none items-center gap-2 rounded-menu-item px-2.5 py-1.5 max-sm:min-h-10 text-sm text-foreground outline-none transition-[background-color,color] focus:bg-default focus:text-foreground data-[highlighted]:bg-default data-[highlighted]:text-foreground data-[state=open]:bg-default data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0";
23
17
  export const menuItemClass = "relative flex cursor-pointer select-none items-center gap-2 rounded-menu-item px-2.5 py-1.5 max-sm:min-h-10 text-sm outline-none transition-[background-color,color] focus:bg-default focus:text-foreground data-[highlighted]:bg-default data-[highlighted]:text-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:pointer-events-none";
@@ -1,15 +1,6 @@
1
1
  import { fieldFocusClass } from "./_field-classes.js";
2
-
3
- // input-styled trigger shared by TimePicker and the date pickers
4
2
  export const pickerTriggerClass = `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}`;
5
-
6
- // selected item in a picker popover (TimePicker columns, calendar days, months)
7
3
  export const pickerSelectedClass = "bg-primary text-primary-foreground";
8
4
  export const pickerItemHoverClass = "hover:bg-surface-tertiary/50";
9
5
  export const pickerFocusClass = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring";
10
-
11
- // wrapper around a trigger and its siblings (clear control, second picker). it
12
- // shrinks to the trigger, grows with a `w-*` className, and goes full width
13
- // when a trigger inside is `w-full` (a percent width cannot resolve against a
14
- // shrink-to-fit wrapper)
15
6
  export const pickerFieldClass = "relative inline-flex max-w-full align-middle has-[.w-full]:flex has-[.w-full]:w-full";
@@ -2,12 +2,6 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import * as React from "react";
3
3
  import { IconChevronDown } from "@tabler/icons-react";
4
4
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion.js";
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
5
  import { jsx as _jsx } from "react/jsx-runtime";
12
6
  function AccordionAlt(props) {
13
7
  const $ = _c(2);
@@ -24,8 +18,6 @@ function AccordionAlt(props) {
24
18
  }
25
19
  return t0;
26
20
  }
27
-
28
- /** @deprecated Use `AccordionItem`. Kept for existing consumers; removed in a later minor after they move. */
29
21
  function AccordionItemAlt(props) {
30
22
  const $ = _c(3);
31
23
  let t0;
@@ -55,8 +47,6 @@ const triggerClasses = {
55
47
  header: "flex",
56
48
  trigger: "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"
57
49
  };
58
-
59
- /** @deprecated Use `AccordionTrigger`. Kept for existing consumers; removed in a later minor after they move. */
60
50
  function AccordionTriggerAlt(props) {
61
51
  const $ = _c(3);
62
52
  let t0;
@@ -87,8 +77,6 @@ const contentClasses = {
87
77
  content: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
88
78
  contentInner: "pb-4 pt-0 text-muted-foreground"
89
79
  };
90
-
91
- /** @deprecated Use `AccordionContent`. Kept for existing consumers; removed in a later minor after they move. */
92
80
  function AccordionContentAlt(props) {
93
81
  const $ = _c(2);
94
82
  let t0;
@@ -7,7 +7,6 @@ const badgeVariantClasses = {
7
7
  default: "border-border bg-default text-foreground",
8
8
  secondary: "border-separator bg-default text-default-foreground",
9
9
  destructive: "border-danger/25 bg-danger/12 text-danger",
10
- // Neutral border with a faint danger tint, e.g. a revoked or expired status.
11
10
  "destructive-soft": "border-border bg-danger/10 text-danger",
12
11
  outline: "border-separator bg-transparent text-muted-foreground",
13
12
  success: "border-success/25 bg-success/12 text-success",
@@ -8,8 +8,6 @@ import { useCn } from "./ui-config.js";
8
8
 
9
9
  /** Beam colour: neutral, the in-progress hue, or a two-colour sweep. */
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
- // `beam-*`, not `border-beam-*` — tailwind-merge reads a `border-` prefix as a
12
- // border-colour utility and would drop the base class as a variant conflict.
13
11
  const sizeClass = {
14
12
  sm: "beam-sm",
15
13
  md: "",
@@ -2,11 +2,6 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import * as React from "react";
3
3
  import { Slot } from "@radix-ui/react-slot";
4
4
  import { cn } from "../utils/cn.js";
5
-
6
- // breadcrumb, navigation trail for the current page location renders its children as a horizontal list with `/` separators automatically
7
- // inserted between them designed to replace the page title + back button on
8
- // detail pages: the parent route(s) act as the "up" affordance and the final
9
- // segment identifies the current page example: <breadcrumb> <breadcrumblink aschild> <link to="/wiki">wiki</link> </breadcrumblink> <breadcrumbpage>overview</breadcrumbpage> </breadcrumb>
10
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
6
  const Breadcrumb = /*#__PURE__*/React.forwardRef((t0, ref) => {
12
7
  const $ = _c(21);
@@ -85,11 +80,6 @@ const Breadcrumb = /*#__PURE__*/React.forwardRef((t0, ref) => {
85
80
  return t6;
86
81
  });
87
82
  Breadcrumb.displayName = "Breadcrumb";
88
-
89
- // clickable breadcrumb segment (parent routes) muted + medium weight, one
90
- // step quieter than the current page, shifts to foreground on hover pass
91
- // `aschild` to render as your router's link component while keeping the
92
- // styling, preserves type, safe routing
93
83
  const BreadcrumbLink = /*#__PURE__*/React.forwardRef((t0, ref) => {
94
84
  const $ = _c(11);
95
85
  let className;
@@ -138,9 +128,6 @@ const BreadcrumbLink = /*#__PURE__*/React.forwardRef((t0, ref) => {
138
128
  return t3;
139
129
  });
140
130
  BreadcrumbLink.displayName = "BreadcrumbLink";
141
-
142
- // current page segment (last in the trail) inherits the page-title weight
143
- // (semibold) at foreground colour, and not clickable, signals "you are here"
144
131
  const BreadcrumbPage = /*#__PURE__*/React.forwardRef((t0, ref) => {
145
132
  const $ = _c(9);
146
133
  let className;
@@ -183,8 +170,6 @@ const BreadcrumbPage = /*#__PURE__*/React.forwardRef((t0, ref) => {
183
170
  return t2;
184
171
  });
185
172
  BreadcrumbPage.displayName = "BreadcrumbPage";
186
-
187
- // separator rendered automatically between breadcrumb children
188
173
  const BreadcrumbSeparator = () => {
189
174
  const $ = _c(1);
190
175
  let t0;
@@ -23,12 +23,6 @@ import { IconDots, IconX } from "@tabler/icons-react";
23
23
  */
24
24
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
25
25
  const barButtonToneClass = action => action.destructive ? "text-destructive hover:bg-destructive/10 hover:text-destructive" : "text-muted-foreground hover:bg-surface-secondary hover:text-foreground";
26
-
27
- /**
28
- * An icon-only button with its label in a tooltip. The tooltip trigger is a
29
- * wrapper span, so the tooltip still shows while the button is disabled (a
30
- * disabled button gets no pointer events).
31
- */
32
26
  function TooltipBarButton(t0) {
33
27
  const $ = _c(21);
34
28
  const {
@@ -128,11 +122,6 @@ function TooltipBarButton(t0) {
128
122
  }
129
123
  return t10;
130
124
  }
131
-
132
- /**
133
- * A single labelled button inside the action bar. The label collapses to
134
- * icon-only below the `sm` breakpoint (HeroUI "responsive labels" pattern).
135
- */
136
125
  function BarButton(t0) {
137
126
  const $ = _c(23);
138
127
  const {
@@ -9,16 +9,6 @@ const ghostClass = "text-muted-foreground hover:bg-surface-tertiary hover:text-f
9
9
  const buttonBaseClasses = "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium tracking-normal transition-[transform,background-color,box-shadow,opacity,border-color] duration-200 ease-smooth focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 active:scale-[0.96] active:duration-[var(--motion-fast,150ms)] [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0";
10
10
  const defaultVariantClass = "bg-primary text-primary-foreground hover:-translate-y-0.5 hover:opacity-90";
11
11
  const destructiveVariantClass = "bg-[oklch(47.2%_0.195_25.7)] text-white hover:bg-[oklch(42.5%_0.185_25.7)]";
12
-
13
- /**
14
- * Variant hierarchy:
15
- * - `primary` (alias of `default`): the one main action.
16
- * - `secondary`: an alternative action.
17
- * - `tertiary` (alias of `ghost`): a dismissive action.
18
- * - `destructive` (alias `danger`): a destructive action.
19
- * - `success`, `warning`: status.
20
- * - `outline`, `link`, `flat`: visual treatments with no fixed role.
21
- */
22
12
  const buttonVariantClasses = {
23
13
  default: defaultVariantClass,
24
14
  primary: defaultVariantClass,
@@ -29,17 +19,13 @@ const buttonVariantClasses = {
29
19
  ghost: ghostClass,
30
20
  tertiary: ghostClass,
31
21
  link: "text-primary underline-offset-4 hover:underline active:scale-100",
32
- // Ghost plus an override; tailwind-merge drops the clashing ghost classes.
33
22
  flat: `${ghostClass} bg-transparent text-muted hover:bg-surface-tertiary hover:text-foreground`,
34
23
  // check-tokens-allow: text-muted
35
24
  success: `${ghostClass} bg-success text-success-foreground hover:bg-success/90`,
36
25
  warning: `${ghostClass} bg-warning text-warning-foreground hover:bg-warning/90`
37
26
  };
38
-
39
- // No radius here: `shape` sets it.
40
27
  const buttonSizeClasses = {
41
28
  default: "h-10 px-4 py-2",
42
- // Alias of `default`, for the canonical sm / md / lg scale.
43
29
  md: "h-10 px-4 py-2",
44
30
  xs: "h-7 px-2 text-xs hit-target [&_svg:not([class*='size-'])]:size-3.5",
45
31
  sm: "h-8 px-3 text-xs max-sm:hit-target",
@@ -48,9 +34,6 @@ const buttonSizeClasses = {
48
34
  "icon-sm": "h-8 w-8 max-sm:hit-target",
49
35
  "icon-xs": "h-7 w-7 hit-target"
50
36
  };
51
-
52
- // `pill` (default) is fully round, so icon sizes are circles. `rounded` is
53
- // the radius from before 0.31.0, for joined edges and field addons.
54
37
  const buttonShapeClasses = {
55
38
  pill: "rounded-full",
56
39
  rounded: "rounded-lg"
@@ -60,7 +43,6 @@ const buttonShapeClasses = {
60
43
 
61
44
  /** `md` aliases `default` (`h-10`). */
62
45
 
63
- // `rounded` keeps the smaller radius the two 28px sizes had.
64
46
  const roundedSmallSizes = ["xs", "icon-xs"];
65
47
  const roundedSmallClass = "rounded-md";
66
48
 
@@ -86,8 +68,6 @@ export const buttonVariants = cva(buttonBaseClasses, {
86
68
  shape: "pill"
87
69
  }
88
70
  });
89
-
90
- /** Built-in radius for the config path. Matches the cva variant and compound variant. */
91
71
  function buttonShapeClass(shape, size) {
92
72
  return shape === "rounded" && roundedSmallSizes.includes(size) ? roundedSmallClass : buttonShapeClasses[shape];
93
73
  }
@@ -13,11 +13,6 @@ import { useCn, useUiConfig } from "./ui-config.js";
13
13
  * default for the prop, applied over the built-in Root and Chevron.
14
14
  */
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
- // shadcn's v9 calendar on package tokens: no background of its own (it takes
17
- // the popover or card surface it sits on), selected days use the picker
18
- // active treatment, today gets a dot, outside days are muted and disabled
19
- // days dimmed. day state lives on the cell (`data-selected`, `data-today`,
20
- // ...), so the day button reads it through `group/day`
21
16
  const navButtonClass = cn("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", pickerFocusClass);
22
17
  function CalendarRoot(t0) {
23
18
  const $ = _c(8);
@@ -154,15 +149,7 @@ function Calendar({
154
149
  week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
155
150
  week_number: cn("select-none text-[10px] text-muted-foreground", defaultClassNames.week_number),
156
151
  day: cn("group/day relative aspect-square h-full w-full select-none p-0 text-center", defaultClassNames.day),
157
- day_button: cn("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", pickerFocusClass,
158
- // today, outside and hover rules exclude selected days, so the
159
- // selected tone never depends on the order Tailwind emits rules in.
160
- // the today dot is `bg-current`: foreground, or primary-foreground
161
- // when selected
162
- "not-group-data-selected/day:enabled:hover:bg-surface-tertiary/50", "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", "group-data-outside/day:not-group-data-selected/day:text-muted-foreground",
163
- // spelled out (not built from pickerSelectedClass) so Tailwind's
164
- // scanner sees it
165
- "group-data-selected/day:bg-primary group-data-selected/day:text-primary-foreground", defaultClassNames.day_button),
152
+ day_button: cn("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", pickerFocusClass, "not-group-data-selected/day:enabled:hover:bg-surface-tertiary/50", "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", "group-data-outside/day:not-group-data-selected/day:text-muted-foreground", "group-data-selected/day:bg-primary group-data-selected/day:text-primary-foreground", defaultClassNames.day_button),
166
153
  range_start: cn("rounded-l-lg", defaultClassNames.range_start),
167
154
  range_middle: cn("rounded-none", defaultClassNames.range_middle),
168
155
  range_end: cn("rounded-r-lg", defaultClassNames.range_end),
@@ -179,12 +166,6 @@ function Calendar({
179
166
  ...props
180
167
  });
181
168
  }
182
-
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
169
  function CalendarDayButton(t0) {
189
170
  const $ = _c(9);
190
171
  let modifiers;
@@ -2,7 +2,6 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import * as React from "react";
3
3
  import { useCn, useUiConfig } from "./ui-config.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- /** The app's class string for `part` (else `fallback`), merged with the caller `className`. */
6
5
  function useCardClass(part, fallback, className) {
7
6
  const $ = _c(4);
8
7
  const merge = useCn();
@@ -223,8 +222,6 @@ const CardFooter = /*#__PURE__*/React.forwardRef((t0, ref) => {
223
222
  return t2;
224
223
  });
225
224
  CardFooter.displayName = "CardFooter";
226
-
227
- /** Top-right slot of a grid header (`grid-cols-[1fr_auto]`): spans the title and description rows. */
228
225
  const CardAction = /*#__PURE__*/React.forwardRef((t0, ref) => {
229
226
  const $ = _c(7);
230
227
  let className;
@@ -526,7 +526,6 @@ function CarouselNext(t0) {
526
526
  }
527
527
  return t8;
528
528
  }
529
- /** One dot per snap; the selected one is wider. Renders nothing for a single page. */
530
529
  function CarouselDots(t0) {
531
530
  const $ = _c(22);
532
531
  const {
@@ -8,15 +8,6 @@ const altClasses = {
8
8
  input: `flex h-10 w-full rounded-field border border-border bg-field-background px-3.5 py-2 text-sm transition-[border-color,background-color] duration-200 ease-smooth placeholder:text-field-placeholder disabled:cursor-not-allowed disabled:opacity-50 ${fieldFocusClass}`,
9
9
  button: "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
-
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
11
  const ClearInputAlt = /*#__PURE__*/React.forwardRef((t0, ref) => {
21
12
  const $ = _c(7);
22
13
  let placeholder;
@@ -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(root, name, fallback) {
6
2
  const raw = getComputedStyle(root).getPropertyValue(name).trim();
7
3
  const parsed = parseFloat(raw);
@@ -53,24 +53,9 @@ const Command = /*#__PURE__*/React.forwardRef((t0, ref) => {
53
53
  return t3;
54
54
  });
55
55
  Command.displayName = CommandPrimitive.displayName;
56
-
57
- // The list is pinned rather than `max-h`: a palette that resizes on every
58
- // keystroke shifts the whole dialog under the cursor.
59
56
  const commandDialogPinnedClass = "[&_[cmdk-list]]:h-80 [&_[cmdk-list]]:max-h-[60dvh] [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-widest [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-1.5 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input]]:h-11 [&_[cmdk-item]]:rounded-menu-item [&_[cmdk-item]]:px-2.5 [&_[cmdk-item]]:py-2 [&_[cmdk-item]_svg]:h-4 [&_[cmdk-item]_svg]:w-4";
60
-
61
- // Keyboard surface: the palette opens and closes in the same frame. Override
62
- // the `t-modal` timing variables on the content element (do not fork the CSS).
63
- // `--modal-close-dur` is 1ms, not 0ms, so the `t-modal-presence-wait` animation
64
- // still fires `animationend` and Radix Presence unmounts the palette; a 0ms
65
- // animation is not guaranteed to fire that event in every browser.
66
57
  const commandDialogInstantClass = "[--modal-open-dur:0ms] [--modal-close-dur:1ms] [--modal-scale:1] [--modal-scale-close:1]";
67
-
68
- // Drop the overlay fade so no backdrop is left behind on close. `animation:none`
69
- // means Radix Presence sees no animation and unmounts the overlay at once;
70
- // `!important` wins over the data-state motion classes without a specificity war.
71
58
  const commandOverlayInstantClass = "[animation:none!important]";
72
-
73
- // The list sizes itself and items keep the caller's styling.
74
59
  const commandDialogAutoClass = "[&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-widest [&_[cmdk-group-heading]]:text-muted [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-1.5 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input]]:h-11 [&_[cmdk-item]_svg]:h-4 [&_[cmdk-item]_svg]:w-4"; // check-tokens-allow: text-muted
75
60
 
76
61
  function CommandDialog(t0) {
@@ -4,11 +4,9 @@ import { createPortal } from "react-dom";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const PIECE_COUNT = 90;
6
6
  const DURATION_MS = 1800;
7
- /** The last share of the burst fades out instead of cutting. */
8
7
  const FADE_FROM = 0.65;
9
8
  const GRAVITY = 0.32;
10
9
  const DRAG = 0.985;
11
- /** Theme chart colours (RGB triplets), so the burst follows the accent. */
12
10
  const DEFAULT_COLOR_VARS = ["--chart-1", "--chart-2", "--chart-3", "--chart-4", "--chart-5"];
13
11
  const FALLBACK_COLOR = "rgb(120 120 120)";
14
12
  function resolveColors(colors) {
@@ -21,7 +19,6 @@ function spawnPieces(originX, originY, colors) {
21
19
  return Array.from({
22
20
  length: PIECE_COUNT
23
21
  }, (_, index) => {
24
- // A fan pointing down and out of the anchor, wider than it is deep.
25
22
  const angle = Math.PI / 2 + (Math.random() - 0.5) * Math.PI * 0.9;
26
23
  const speed = 6 + Math.random() * 9;
27
24
  return {
@@ -81,7 +81,6 @@ function Root({
81
81
  });
82
82
  }
83
83
  Root.displayName = "ConfirmDialog.Root";
84
- /** Alert or plain dialog content (from Root `alert`); `sm` and `md` cap the width. */
85
84
  function Content(t0) {
86
85
  const $ = _c(11);
87
86
  let className;
@@ -270,9 +269,7 @@ function Description(t0) {
270
269
  }
271
270
  return t4;
272
271
  }
273
- // Matched by `DialogContent` when it checks an alert dialog for a description.
274
272
  Description.displayName = "ConfirmDialog.Description";
275
- /** Plain `<div>` for extra content. No default classes (`UiConfig.ConfirmDialog.classes.body` if set). */
276
273
  function Body(t0) {
277
274
  const $ = _c(9);
278
275
  let className;
@@ -391,12 +388,6 @@ function Footer(t0) {
391
388
  return t5;
392
389
  }
393
390
  Footer.displayName = "ConfirmDialog.Footer";
394
- /**
395
- * Alert: a `DialogClose` outline button. Otherwise a ghost button that runs
396
- * `onClick` and then, unless it called `preventDefault()`, the Root's
397
- * `onOpenChange(false)`. Disabled while pending. With Root `focusCancel`
398
- * it also gets `data-alert-cancel`.
399
- */
400
391
  function Cancel(t0) {
401
392
  const $ = _c(25);
402
393
  let disabled;
@@ -498,7 +489,6 @@ function Cancel(t0) {
498
489
  return t7;
499
490
  }
500
491
  Cancel.displayName = "ConfirmDialog.Cancel";
501
- /** Confirm button. Does not close the dialog. Disabled while pending or until the confirm phrase matches. */
502
492
  function Action(t0) {
503
493
  const $ = _c(25);
504
494
  let children;
@@ -600,7 +590,6 @@ function Action(t0) {
600
590
  return t4;
601
591
  }
602
592
  Action.displayName = "ConfirmDialog.Action";
603
- /** Type-to-confirm input bound to the Root `confirmPhrase`. */
604
593
  function Field(t0) {
605
594
  const $ = _c(33);
606
595
  const {
@@ -198,11 +198,5 @@ function LegacyConfirmDialog(t0) {
198
198
  return t14;
199
199
  }
200
200
  LegacyConfirmDialog.displayName = "ConfirmDialog";
201
-
202
- /**
203
- * Confirm dialog. Call it with props (the legacy prop-driven API), or compose
204
- * the parts: `ConfirmDialog.Root`, `.Content`, `.Header`, `.Title`,
205
- * `.Description`, `.Body`, `.Footer`, `.Cancel`, `.Action` and `.Field`.
206
- */
207
201
  const ConfirmDialog = Object.assign(LegacyConfirmDialog, Parts);
208
202
  export { ConfirmDialog };
@@ -29,8 +29,6 @@ const DEFAULT_ICON_MOTION = {
29
29
  },
30
30
  transition: DEFAULT_TRANSITION
31
31
  };
32
-
33
- /** Near-imperceptible swap for high-frequency toggles (150ms, no blur). */
34
32
  const SOFT_ICON_MOTION = {
35
33
  initial: {
36
34
  scale: 0.96,
@@ -7,28 +7,17 @@ import { pickerFocusClass, pickerFieldClass, pickerItemHoverClass, pickerSelecte
7
7
  import { Calendar } from "./calendar.js";
8
8
  import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
9
9
  import { TimePicker } from "./time-picker.js";
10
-
11
- // controlled replacements for `<input type="date">`, `"datetime-local"` and
12
- // `"month">`: the values are the native strings ("YYYY-MM-DD",
13
- // "YYYY-MM-DDTHH:mm", "YYYY-MM", "" when empty), read and written as local
14
- // calendar dates. there is no timezone logic; like TimePicker, the consumer
15
- // owns any local↔utc conversion
16
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
11
  const DATE_RE = /^(\d{4})-(\d{2})-(\d{2})$/;
18
12
  const MONTH_RE = /^(\d{4})-(\d{2})$/;
19
13
  const DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/;
20
14
  const pad = (n, width = 2) => String(n).padStart(width, "0");
21
-
22
- // "YYYY-MM-DD" -> local midnight, or undefined for "" and invalid dates
23
- // (2025-02-30). never `new Date("YYYY-MM-DD")`, which parses as utc midnight
24
- // and lands on the previous day west of greenwich
25
15
  function parseDateValue(value) {
26
16
  const match = DATE_RE.exec(value);
27
17
  if (!match) return undefined;
28
18
  const year = Number(match[1]);
29
19
  const month = Number(match[2]) - 1;
30
20
  const day = Number(match[3]);
31
- // setFullYear keeps years 0-99 literal (the Date constructor maps them to 19xx)
32
21
  const date = new Date(2000, 0, 1);
33
22
  date.setFullYear(year, month, day);
34
23
  if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
@@ -36,8 +25,6 @@ function parseDateValue(value) {
36
25
  }
37
26
  return date;
38
27
  }
39
-
40
- // local calendar date -> "YYYY-MM-DD" ("" for an invalid date)
41
28
  function formatDateValue(date) {
42
29
  if (Number.isNaN(date.getTime())) return "";
43
30
  return `${pad(date.getFullYear(), 4)}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
@@ -59,13 +46,6 @@ function localDate(year, month) {
59
46
  date.setFullYear(year, month, 1);
60
47
  return date;
61
48
  }
62
-
63
- // wrapper, input-styled trigger, optional clear control and hidden input
64
- // shared by DatePicker and MonthPicker. the clear control is a sibling of the
65
- // trigger (buttons cannot nest), overlaid inside the field on the right, and
66
- // hands focus back to the trigger. the trigger grows with the wrapper, so a
67
- // width on either `className` or `triggerClassName` sizes the field
68
-
69
49
  function PickerField(t0) {
70
50
  const $ = _c(39);
71
51
  const {
@@ -771,8 +751,6 @@ const MonthPicker = /*#__PURE__*/React.forwardRef((t0, ref) => {
771
751
  return t11;
772
752
  });
773
753
  MonthPicker.displayName = "MonthPicker";
774
- // mounted only while the popover is open, so the shown year starts at the
775
- // selected one (else the current year, kept inside min/max) on every open
776
754
  function MonthGrid(t0) {
777
755
  const $ = _c(46);
778
756
  const {