@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.
- package/app/src/auth/useStableAuth.ts +0 -2
- package/app/src/confirm/ConfirmSkipHint.tsx +0 -2
- package/app/src/confirm/useAltHeld.ts +0 -17
- package/app/src/convex/ConvexClerkProvider.tsx +0 -3
- package/app/src/convex/env.ts +0 -4
- package/app/src/convex/errorMessage.ts +0 -1
- package/app/src/convex/useHeldResult.ts +0 -3
- package/app/src/page-motion/PageMotionProvider.tsx +0 -6
- package/app/src/page-title/createPageTitleContext.tsx +0 -14
- package/app/src/settings/SettingsEmptyState.tsx +0 -4
- package/app/src/settings/SettingsField.tsx +0 -4
- package/app/src/settings/SettingsPage.tsx +0 -12
- package/app/src/settings/SettingsSection.tsx +0 -14
- package/app/src/settings/ThemeModePicker.tsx +0 -6
- package/app/src/theme/createThemeProvider.tsx +0 -33
- package/app/src/time/compactRelativeTime.ts +0 -16
- package/app/src/update/staleDeployReload.ts +0 -40
- package/app/src/update/updateWatcher.ts +0 -8
- package/dist/app/src/auth/useStableAuth.js +0 -1
- package/dist/app/src/confirm/ConfirmSkipHint.js +0 -3
- package/dist/app/src/confirm/useAltHeld.js +0 -17
- package/dist/app/src/convex/env.js +0 -3
- package/dist/app/src/convex/errorMessage.js +0 -2
- package/dist/app/src/settings/ThemeModePicker.js +0 -1
- package/dist/app/src/theme/createThemeProvider.js +1 -11
- package/dist/app/src/time/compactRelativeTime.js +0 -8
- package/dist/app/src/update/staleDeployReload.js +3 -38
- package/dist/app/src/update/updateWatcher.js +1 -3
- package/dist/shell/src/AppShell.js +0 -14
- package/dist/shell/src/PageHeaderBar.js +0 -3
- package/dist/shell/src/SessionsHoverCard.js +0 -9
- package/dist/shell/src/SidePanelTabs.js +0 -36
- package/dist/shell/src/Sidebar.js +0 -1
- package/dist/shell/src/SidebarAccountMenu.js +1 -1
- package/dist/shell/src/SidebarChrome.js +0 -19
- package/dist/shell/src/SidebarIconTooltip.js +0 -1
- package/dist/shell/src/SidebarRail.js +0 -12
- package/dist/shell/src/SidebarResize.js +1 -4
- package/dist/shell/src/app-shell-classes.js +0 -10
- package/dist/shell/src/index.js +0 -1
- package/dist/shell/src/shell-panel-motion.js +0 -12
- package/dist/src/ai-elements/activity-shared.js +0 -6
- package/dist/src/ai-elements/activity-step-label.js +0 -6
- package/dist/src/ai-elements/activity-step-types.js +0 -4
- package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
- package/dist/src/ai-elements/activity-tasks.js +0 -55
- package/dist/src/ai-elements/artifact.js +0 -4
- package/dist/src/ai-elements/attachments.js +0 -41
- package/dist/src/ai-elements/code-block.js +0 -18
- package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
- package/dist/src/ai-elements/context.js +0 -13
- package/dist/src/ai-elements/conversation.js +0 -4
- package/dist/src/ai-elements/jump-rail.js +0 -5
- package/dist/src/ai-elements/message.js +3 -9
- package/dist/src/ai-elements/model-picker-types.js +0 -1
- package/dist/src/ai-elements/model-picker.js +1 -6
- package/dist/src/ai-elements/model-selector.js +0 -4
- package/dist/src/ai-elements/prompt-input-speech.js +0 -13
- package/dist/src/ai-elements/prompt-input.js +0 -1
- package/dist/src/ai-elements/provider-icon.js +0 -4
- package/dist/src/ai-elements/queue.js +2 -16
- package/dist/src/ai-elements/shimmer.js +0 -14
- package/dist/src/ai-elements/speech-input.js +0 -7
- package/dist/src/artifacts/artifact-card.js +1 -1
- package/dist/src/artifacts/artifact-frame.js +0 -2
- package/dist/src/artifacts/artifact-viewer.js +2 -1
- package/dist/src/audio/playChime.js +0 -2
- package/dist/src/audio/playTone.js +1 -4
- package/dist/src/brand/AppWordmark.js +0 -5
- package/dist/src/brand/svg.js +0 -6
- package/dist/src/client.js +0 -43
- package/dist/src/composer/Composer.js +0 -27
- package/dist/src/composer/input-area/InputArea.js +0 -3
- package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
- package/dist/src/composer/input-area/composerPrediction.js +0 -3
- package/dist/src/generative-ui/content.js +0 -2
- package/dist/src/generative-ui/index.js +0 -3
- package/dist/src/generative-ui/layout.js +0 -5
- package/dist/src/hooks/use-count-up-display.js +0 -2
- package/dist/src/hooks/use-idle-callback.js +0 -3
- package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
- package/dist/src/icons/animated/index.js +0 -4
- package/dist/src/icons/board-icon.js +74 -41
- package/dist/src/icons/bolt-icon.js +30 -20
- package/dist/src/icons/building-icon.js +125 -61
- package/dist/src/icons/files-icon.js +103 -43
- package/dist/src/icons/inbox-icon.js +101 -49
- package/dist/src/icons/index.js +2 -1
- package/dist/src/icons/memory-icon.js +135 -58
- package/dist/src/icons/search-icon.js +143 -46
- package/dist/src/icons/settings-icon.js +113 -53
- package/dist/src/icons/solid-icons.js +665 -0
- package/dist/src/icons/with-active.js +25 -0
- package/dist/src/index.js +0 -40
- package/dist/src/kibo/gantt-features.js +0 -10
- package/dist/src/kibo/gantt-provider.js +0 -34
- package/dist/src/kibo/kanban.js +0 -15
- package/dist/src/kibo/list.js +0 -3
- package/dist/src/kibo/video-player.js +0 -7
- package/dist/src/logos/index.js +0 -4
- package/dist/src/markdown/Markdown.js +0 -15
- package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
- package/dist/src/markdown/MarkdownInlineCode.js +0 -6
- package/dist/src/markdown/MarkdownLink.js +0 -5
- package/dist/src/markdown/codeFence.js +0 -1
- package/dist/src/markdown/codeHighlight.js +0 -19
- package/dist/src/markdown/incrementalBlocks.js +0 -45
- package/dist/src/markdown/markdownClipboard.js +0 -13
- package/dist/src/markdown/mermaid.js +0 -25
- package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
- package/dist/src/markdown/useSmoothText.js +0 -5
- package/dist/src/marketing/PricingModal.js +0 -2
- package/dist/src/marketing/ProductHero.js +0 -2
- package/dist/src/marketing/createLandingKit.js +0 -5
- package/dist/src/marketing/marketing-classes.js +0 -7
- package/dist/src/motion/dock-motion.js +0 -27
- package/dist/src/motion/panel-transition.js +0 -2
- package/dist/src/ui/_field-classes.js +0 -3
- package/dist/src/ui/_menu-classes.js +6 -6
- package/dist/src/ui/_picker-classes.js +0 -9
- package/dist/src/ui/accordion.alt.js +0 -12
- package/dist/src/ui/badge.js +0 -1
- package/dist/src/ui/border-beam.js +0 -2
- package/dist/src/ui/breadcrumb.js +0 -15
- package/dist/src/ui/bulk-action-bar.js +0 -11
- package/dist/src/ui/button.js +0 -20
- package/dist/src/ui/calendar.js +1 -20
- package/dist/src/ui/card.js +0 -3
- package/dist/src/ui/carousel.js +0 -1
- package/dist/src/ui/clear-input.alt.js +0 -9
- package/dist/src/ui/clearInputDissolve.js +0 -4
- package/dist/src/ui/command.js +0 -15
- package/dist/src/ui/confetti-burst.js +0 -3
- package/dist/src/ui/confirm-dialog-parts.js +0 -11
- package/dist/src/ui/confirm-dialog.js +0 -6
- package/dist/src/ui/context-menu.js +40 -34
- package/dist/src/ui/crossfade-icon.js +0 -2
- package/dist/src/ui/date-picker.js +0 -22
- package/dist/src/ui/dialog.js +0 -5
- package/dist/src/ui/dropdown-menu.js +40 -34
- package/dist/src/ui/empty-state.js +0 -7
- package/dist/src/ui/field.js +0 -21
- package/dist/src/ui/image-lightbox.js +0 -5
- package/dist/src/ui/input-group.alt.js +0 -24
- package/dist/src/ui/input-group.js +0 -4
- package/dist/src/ui/kbd.js +0 -3
- package/dist/src/ui/loading-state.js +0 -17
- package/dist/src/ui/marquee-on-hover.js +0 -3
- package/dist/src/ui/media-preview.js +0 -2
- package/dist/src/ui/modalTransition.js +0 -33
- package/dist/src/ui/overlay-a11y.js +0 -1
- package/dist/src/ui/page-title.js +0 -3
- package/dist/src/ui/refresh-spin-icon.js +0 -12
- package/dist/src/ui/search-input.js +0 -1
- package/dist/src/ui/select-field.js +0 -1
- package/dist/src/ui/send-queue-icon.js +0 -3
- package/dist/src/ui/sheet.js +0 -33
- package/dist/src/ui/slider.js +103 -82
- package/dist/src/ui/sonner-icons.js +0 -5
- package/dist/src/ui/sonner.js +0 -60
- package/dist/src/ui/spinner.js +0 -35
- package/dist/src/ui/status-dot.js +0 -2
- package/dist/src/ui/surface.js +0 -14
- package/dist/src/ui/switch.js +213 -36
- package/dist/src/ui/table.js +0 -1
- package/dist/src/ui/tabs-transition.js +0 -1
- package/dist/src/ui/tabs.js +0 -17
- package/dist/src/ui/tabsSliding.js +0 -6
- package/dist/src/ui/time-picker.js +0 -15
- package/dist/src/ui/toggle-search.js +0 -3
- package/dist/src/ui/ui-config.js +0 -16
- package/dist/src/utils/cat-color.js +0 -17
- package/dist/src/utils/cn.js +0 -5
- package/dist/src/utils/gesture.js +0 -8
- package/dist/src/utils/ref.js +0 -1
- package/dist/src/utils/runtimeVisibility.js +1 -22
- package/dist/src/utils/surface-radius.js +0 -11
- package/dist/src/utils/useDragSensors.js +0 -4
- package/dist/tokens/src/tailwind-preset.mjs +0 -3
- package/package.json +3 -3
- package/scripts/build-brand-assets.mjs +0 -8
- package/shell/src/AppShell.tsx +0 -37
- package/shell/src/AppSidebar.tsx +0 -14
- package/shell/src/ButtonTrack.tsx +0 -1
- package/shell/src/PageHeaderBar.tsx +0 -61
- package/shell/src/PageWrapper.tsx +0 -26
- package/shell/src/PillTabs.tsx +0 -1
- package/shell/src/SessionsHoverCard.tsx +0 -40
- package/shell/src/SidePanelTabs.tsx +0 -61
- package/shell/src/Sidebar.tsx +0 -1
- package/shell/src/SidebarAccountMenu.tsx +1 -41
- package/shell/src/SidebarChrome.tsx +0 -32
- package/shell/src/SidebarIconTooltip.tsx +0 -3
- package/shell/src/SidebarPanel.tsx +0 -20
- package/shell/src/SidebarRail.tsx +0 -44
- package/shell/src/SidebarResize.tsx +0 -6
- package/shell/src/SidebarUpgradeCard.tsx +0 -2
- package/shell/src/SignOutDialog.tsx +0 -6
- package/shell/src/app-shell-classes.ts +0 -15
- package/shell/src/index.ts +0 -1
- package/shell/src/shell-panel-motion.ts +0 -11
- package/shell/src/shell-variant.ts +0 -6
- package/src/ai-elements/__snapshots__/queue.test.tsx.snap +2 -2
- package/src/ai-elements/activity-question.tsx +0 -2
- package/src/ai-elements/activity-shared.tsx +0 -11
- package/src/ai-elements/activity-step-detail.tsx +0 -2
- package/src/ai-elements/activity-step-label.ts +0 -5
- package/src/ai-elements/activity-step-types.ts +0 -24
- package/src/ai-elements/activity-tasks-utils.ts +0 -13
- package/src/ai-elements/activity-tasks.tsx +0 -61
- package/src/ai-elements/artifact.tsx +0 -7
- package/src/ai-elements/attachments.tsx +0 -33
- package/src/ai-elements/chat-day-divider.tsx +0 -3
- package/src/ai-elements/chat-jump-rail.tsx +0 -9
- package/src/ai-elements/code-block.tsx +0 -28
- package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
- package/src/ai-elements/context.tsx +0 -10
- package/src/ai-elements/conversation.tsx +0 -16
- package/src/ai-elements/jump-rail.tsx +0 -31
- package/src/ai-elements/message.tsx +3 -34
- package/src/ai-elements/model-picker-content.tsx +0 -17
- package/src/ai-elements/model-picker-types.ts +0 -5
- package/src/ai-elements/model-picker.tsx +0 -36
- package/src/ai-elements/model-selector.tsx +0 -5
- package/src/ai-elements/prompt-input-speech.tsx +0 -11
- package/src/ai-elements/prompt-input.tsx +0 -26
- package/src/ai-elements/provider-icon.tsx +0 -2
- package/src/ai-elements/queue.tsx +2 -20
- package/src/ai-elements/reasoning.tsx +0 -4
- package/src/ai-elements/shimmer.tsx +0 -16
- package/src/ai-elements/simple-model-ladder.tsx +0 -1
- package/src/ai-elements/speech-input.tsx +0 -6
- package/src/ai-elements/test-results.tsx +0 -5
- package/src/ai-elements/trace.tsx +0 -2
- package/src/ai-elements/web-preview.tsx +0 -7
- package/src/artifacts/artifact-card.tsx +1 -8
- package/src/artifacts/artifact-dialogs.tsx +0 -4
- package/src/artifacts/artifact-frame.tsx +0 -10
- package/src/artifacts/artifact-list-toolbar.tsx +0 -6
- package/src/artifacts/artifact-list.tsx +0 -4
- package/src/artifacts/artifact-type-icon.tsx +0 -1
- package/src/artifacts/artifact-versions-menu.tsx +0 -3
- package/src/artifacts/artifact-viewer.tsx +2 -6
- package/src/artifacts/types.ts +0 -1
- package/src/audio/playChime.ts +0 -1
- package/src/audio/playTone.ts +0 -7
- package/src/brand/AppIcons.tsx +0 -5
- package/src/brand/AppMark.tsx +0 -6
- package/src/brand/AppWordmark.tsx +0 -10
- package/src/brand/familyApps.ts +0 -2
- package/src/brand/svg.ts +0 -9
- package/src/client.ts +0 -34
- package/src/composer/Composer.tsx +0 -70
- package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
- package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
- package/src/composer/input-area/FadePresence.tsx +0 -4
- package/src/composer/input-area/InputActions.tsx +0 -5
- package/src/composer/input-area/InputArea.tsx +1 -28
- package/src/composer/input-area/InputAreaEditor.tsx +0 -39
- package/src/composer/input-area/InputBanners.tsx +0 -1
- package/src/composer/input-area/PromoBanner.tsx +0 -1
- package/src/composer/input-area/composerPrediction.ts +0 -2
- package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
- package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
- package/src/composer/prediction.ts +0 -6
- package/src/composer/useComposerPrediction.ts +0 -2
- package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
- package/src/generative-ui/content.tsx +0 -2
- package/src/generative-ui/index.ts +0 -3
- package/src/generative-ui/layout.tsx +0 -5
- package/src/hooks/use-count-up-display.ts +0 -1
- package/src/hooks/use-idle-callback.ts +0 -5
- package/src/hooks/use-persisted-scroll-parent.ts +0 -4
- package/src/hooks/use-single-flight.ts +0 -5
- package/src/icons/animated/animated-bell-icon.tsx +0 -6
- package/src/icons/animated/animated-counter.tsx +0 -5
- package/src/icons/animated/animated-key-icon.tsx +0 -4
- package/src/icons/animated/animated-notification-icon.tsx +0 -14
- package/src/icons/animated/animated-progress.tsx +0 -10
- package/src/icons/animated/animated-status-dot.tsx +0 -4
- package/src/icons/animated/index.ts +0 -4
- package/src/icons/animated/morphing-menu-icon.tsx +0 -5
- package/src/icons/animated/morphing-mic-icon.tsx +0 -2
- package/src/icons/animated/pulsing-rings.tsx +0 -4
- package/src/icons/automation-icon.tsx +0 -1
- package/src/icons/board-icon.tsx +13 -10
- package/src/icons/bolt-icon.tsx +5 -4
- package/src/icons/building-icon.tsx +11 -9
- package/src/icons/draft-icon.tsx +0 -1
- package/src/icons/files-icon.tsx +9 -5
- package/src/icons/inbox-arrow-icon.tsx +0 -1
- package/src/icons/inbox-icon.tsx +9 -5
- package/src/icons/index.ts +12 -1
- package/src/icons/memory-icon.tsx +9 -11
- package/src/icons/nav-icon-base.tsx +0 -10
- package/src/icons/search-icon.tsx +7 -6
- package/src/icons/settings-icon.tsx +11 -13
- package/src/icons/sidebar-toggle-icon.tsx +0 -1
- package/src/icons/solid-icons.tsx +138 -0
- package/src/icons/with-active.tsx +14 -0
- package/src/index.ts +0 -30
- package/src/kibo/gantt-features.tsx +0 -16
- package/src/kibo/gantt-header.tsx +0 -4
- package/src/kibo/gantt-provider.tsx +0 -36
- package/src/kibo/gantt-sidebar.tsx +0 -7
- package/src/kibo/gantt-timeline.tsx +0 -4
- package/src/kibo/kanban.tsx +0 -49
- package/src/kibo/list.tsx +0 -8
- package/src/kibo/theme-switcher.tsx +0 -5
- package/src/kibo/video-player.tsx +0 -9
- package/src/logos/index.ts +0 -3
- package/src/logos/logo-svg.tsx +0 -5
- package/src/markdown/Markdown.tsx +0 -20
- package/src/markdown/MarkdownCodeBlock.tsx +0 -14
- package/src/markdown/MarkdownInlineCode.tsx +0 -6
- package/src/markdown/MarkdownLink.tsx +0 -4
- package/src/markdown/codeFence.ts +0 -3
- package/src/markdown/codeHighlight.ts +0 -16
- package/src/markdown/incrementalBlocks.ts +0 -49
- package/src/markdown/markdownClipboard.ts +0 -12
- package/src/markdown/mermaid.ts +0 -22
- package/src/markdown/rehypeGithubAlerts.ts +0 -3
- package/src/markdown/useSmoothText.ts +0 -5
- package/src/marketing/FloatingBar.tsx +0 -3
- package/src/marketing/PricingModal.tsx +0 -45
- package/src/marketing/ProductHero.tsx +0 -23
- package/src/marketing/ProductHeroOrbit.tsx +0 -5
- package/src/marketing/SiteFooter.tsx +0 -23
- package/src/marketing/SiteHeader.tsx +0 -14
- package/src/marketing/VProPricingModal.tsx +0 -5
- package/src/marketing/createLandingKit.tsx +0 -12
- package/src/marketing/landing.tsx +0 -12
- package/src/marketing/marketing-classes.ts +0 -7
- package/src/motion/dock-motion.ts +0 -25
- package/src/motion/list-enter.tsx +0 -4
- package/src/motion/panel-transition.tsx +0 -5
- package/src/ui/_field-classes.ts +0 -2
- package/src/ui/_menu-classes.ts +7 -4
- package/src/ui/_menu-parts.tsx +0 -5
- package/src/ui/_picker-classes.ts +0 -6
- package/src/ui/accordion.alt.tsx +0 -8
- package/src/ui/accordion.tsx +0 -4
- package/src/ui/badge.tsx +0 -1
- package/src/ui/border-beam.tsx +0 -11
- package/src/ui/breadcrumb.tsx +0 -13
- package/src/ui/bulk-action-bar.tsx +0 -24
- package/src/ui/button.tsx +0 -27
- package/src/ui/calendar.tsx +0 -18
- package/src/ui/card.tsx +0 -3
- package/src/ui/carousel.tsx +0 -4
- package/src/ui/checkbox.tsx +0 -1
- package/src/ui/clear-input.alt.tsx +0 -8
- package/src/ui/clear-input.tsx +0 -16
- package/src/ui/clearInputDissolve.ts +0 -4
- package/src/ui/command.tsx +0 -22
- package/src/ui/confetti-burst.tsx +0 -4
- package/src/ui/confirm-dialog-parts.tsx +0 -45
- package/src/ui/confirm-dialog.tsx +0 -26
- package/src/ui/context-menu.tsx +4 -11
- package/src/ui/count-pop.tsx +0 -2
- package/src/ui/crossfade-icon.tsx +0 -3
- package/src/ui/date-picker.tsx +0 -40
- package/src/ui/dialog.tsx +0 -18
- package/src/ui/dropdown-menu.tsx +4 -12
- package/src/ui/empty-state.tsx +0 -15
- package/src/ui/error-boundary.tsx +0 -7
- package/src/ui/field.tsx +0 -18
- package/src/ui/hover-card.tsx +0 -6
- package/src/ui/image-lightbox.tsx +0 -7
- package/src/ui/input-group.alt.tsx +0 -16
- package/src/ui/input-group.tsx +0 -3
- package/src/ui/kbd.tsx +0 -3
- package/src/ui/label.tsx +0 -1
- package/src/ui/labeled-slider-row.tsx +0 -2
- package/src/ui/list-row.tsx +0 -46
- package/src/ui/loading-state.tsx +0 -23
- package/src/ui/marquee-on-hover.tsx +1 -6
- package/src/ui/media-preview.tsx +0 -5
- package/src/ui/modalTransition.ts +0 -25
- package/src/ui/overlay-a11y.ts +0 -1
- package/src/ui/page-title.tsx +0 -4
- package/src/ui/popover.tsx +0 -8
- package/src/ui/progress.tsx +0 -1
- package/src/ui/refresh-spin-icon.tsx +0 -11
- package/src/ui/relative-date-time.tsx +0 -3
- package/src/ui/rolling-number.tsx +0 -2
- package/src/ui/search-input.tsx +0 -9
- package/src/ui/select-field.tsx +0 -5
- package/src/ui/select.tsx +0 -8
- package/src/ui/send-queue-icon.tsx +0 -3
- package/src/ui/separator.tsx +0 -1
- package/src/ui/sheet.tsx +0 -42
- package/src/ui/slide-over-panel.tsx +0 -2
- package/src/ui/slider.tsx +21 -9
- package/src/ui/sonner-icons.tsx +0 -4
- package/src/ui/sonner.tsx +0 -78
- package/src/ui/spinner.tsx +0 -50
- package/src/ui/status-dot.tsx +0 -10
- package/src/ui/surface.tsx +0 -13
- package/src/ui/switch.tsx +72 -3
- package/src/ui/table.tsx +0 -3
- package/src/ui/tabs-transition.tsx +0 -12
- package/src/ui/tabs.tsx +0 -17
- package/src/ui/tabsSliding.ts +0 -5
- package/src/ui/time-picker.tsx +0 -17
- package/src/ui/toggle-search.tsx +0 -6
- package/src/ui/toolbar-search-input.tsx +0 -3
- package/src/ui/tooltip.tsx +0 -5
- package/src/ui/ui-config.tsx +0 -19
- package/src/utils/cat-color.ts +0 -20
- package/src/utils/cn.ts +0 -4
- package/src/utils/gesture.ts +0 -8
- package/src/utils/ref.ts +0 -1
- package/src/utils/runtimeVisibility.ts +0 -19
- package/src/utils/surface-radius.ts +0 -11
- package/src/utils/useDragSensors.ts +0 -2
- package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
- package/tokens/examples/toaster/Fixture.tsx +0 -4
- package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
- package/tokens/examples/toaster/vite.config.ts +0 -2
- package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
- package/tokens/examples/tokens-moved/vite.config.ts +0 -2
- 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,11 +12,15 @@ 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";
|
|
18
|
+
|
|
19
|
+
/** Added to a menu item with `variant="destructive"`: red text, and a red wash on highlight. */
|
|
20
|
+
export const menuItemDestructiveClass = "text-danger focus:bg-danger/10 focus:text-danger data-[highlighted]:bg-danger/10 data-[highlighted]:text-danger";
|
|
21
|
+
|
|
22
|
+
/** Red text and a red wash on hover, for a quiet (ghost) icon button that deletes. */
|
|
23
|
+
export const destructiveGhostClass = "text-danger hover:bg-danger/10 hover:text-danger";
|
|
24
24
|
export const menuCheckboxRadioItemClass = "relative flex cursor-pointer select-none items-center rounded-menu-item py-1.5 max-sm:min-h-10 pl-8 pr-2.5 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";
|
|
25
25
|
export const menuLabelClass = "px-2.5 py-1.5 text-xs font-medium uppercase tracking-widest text-muted-foreground";
|
|
26
26
|
export const menuSeparatorClass = "-mx-1 my-1 h-px bg-separator";
|
|
@@ -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;
|
package/dist/src/ui/badge.js
CHANGED
|
@@ -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 {
|
package/dist/src/ui/button.js
CHANGED
|
@@ -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
|
}
|
package/dist/src/ui/calendar.js
CHANGED
|
@@ -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;
|
package/dist/src/ui/card.js
CHANGED
|
@@ -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;
|
package/dist/src/ui/carousel.js
CHANGED
|
@@ -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);
|
package/dist/src/ui/command.js
CHANGED
|
@@ -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 };
|