@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
|
@@ -2,7 +2,7 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
4
4
|
import { IconCheck, IconChevronRight, IconCircleFilled } from "@tabler/icons-react";
|
|
5
|
-
import { menuCheckboxRadioItemClass, menuContentClass, menuItemClass, menuLabelClass, menuSeparatorClass, menuShortcutClass, menuSubTriggerClass } from "./_menu-classes.js";
|
|
5
|
+
import { menuCheckboxRadioItemClass, menuContentClass, menuItemClass, menuItemDestructiveClass, menuLabelClass, menuSeparatorClass, menuShortcutClass, menuSubTriggerClass } from "./_menu-classes.js";
|
|
6
6
|
import { MenuItemRow, SubTriggerRow, suppressAltKeyDown } from "./_menu-parts.js";
|
|
7
7
|
import { useCn, useUiConfig } from "./ui-config.js";
|
|
8
8
|
|
|
@@ -308,7 +308,7 @@ const ContextMenuContent = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
308
308
|
});
|
|
309
309
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
310
310
|
const ContextMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
311
|
-
const $ = _c(
|
|
311
|
+
const $ = _c(28);
|
|
312
312
|
let asChild;
|
|
313
313
|
let children;
|
|
314
314
|
let className;
|
|
@@ -317,10 +317,12 @@ const ContextMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
317
317
|
let inset;
|
|
318
318
|
let props;
|
|
319
319
|
let startContent;
|
|
320
|
+
let variant;
|
|
320
321
|
if ($[0] !== t0) {
|
|
321
322
|
({
|
|
322
323
|
className,
|
|
323
324
|
inset,
|
|
325
|
+
variant,
|
|
324
326
|
startContent,
|
|
325
327
|
description,
|
|
326
328
|
endContent,
|
|
@@ -337,6 +339,7 @@ const ContextMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
337
339
|
$[6] = inset;
|
|
338
340
|
$[7] = props;
|
|
339
341
|
$[8] = startContent;
|
|
342
|
+
$[9] = variant;
|
|
340
343
|
} else {
|
|
341
344
|
asChild = $[1];
|
|
342
345
|
children = $[2];
|
|
@@ -346,58 +349,61 @@ const ContextMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
346
349
|
inset = $[6];
|
|
347
350
|
props = $[7];
|
|
348
351
|
startContent = $[8];
|
|
352
|
+
variant = $[9];
|
|
349
353
|
}
|
|
350
354
|
const item = useUiConfig("ContextMenu")?.classes?.item;
|
|
351
355
|
const merge = useCn();
|
|
352
356
|
const t1 = item ?? menuItemClass;
|
|
353
357
|
const t2 = inset && "pl-8";
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
$[10] =
|
|
359
|
-
$[11] =
|
|
360
|
-
$[12] =
|
|
361
|
-
$[13] =
|
|
358
|
+
const t3 = variant === "destructive" && menuItemDestructiveClass;
|
|
359
|
+
let t4;
|
|
360
|
+
if ($[10] !== className || $[11] !== merge || $[12] !== t1 || $[13] !== t2 || $[14] !== t3) {
|
|
361
|
+
t4 = merge(t1, t2, t3, className);
|
|
362
|
+
$[10] = className;
|
|
363
|
+
$[11] = merge;
|
|
364
|
+
$[12] = t1;
|
|
365
|
+
$[13] = t2;
|
|
366
|
+
$[14] = t3;
|
|
367
|
+
$[15] = t4;
|
|
362
368
|
} else {
|
|
363
|
-
|
|
369
|
+
t4 = $[15];
|
|
364
370
|
}
|
|
365
|
-
let
|
|
366
|
-
if ($[
|
|
367
|
-
|
|
371
|
+
let t5;
|
|
372
|
+
if ($[16] !== asChild || $[17] !== children || $[18] !== description || $[19] !== endContent || $[20] !== startContent) {
|
|
373
|
+
t5 = asChild || startContent === undefined && description === undefined && endContent === undefined ? children : /*#__PURE__*/_jsx(MenuItemRow, {
|
|
368
374
|
startContent: startContent,
|
|
369
375
|
description: description,
|
|
370
376
|
endContent: endContent,
|
|
371
377
|
children: children
|
|
372
378
|
});
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
+
$[16] = asChild;
|
|
380
|
+
$[17] = children;
|
|
381
|
+
$[18] = description;
|
|
382
|
+
$[19] = endContent;
|
|
383
|
+
$[20] = startContent;
|
|
384
|
+
$[21] = t5;
|
|
379
385
|
} else {
|
|
380
|
-
|
|
386
|
+
t5 = $[21];
|
|
381
387
|
}
|
|
382
|
-
let
|
|
383
|
-
if ($[
|
|
384
|
-
|
|
388
|
+
let t6;
|
|
389
|
+
if ($[22] !== asChild || $[23] !== props || $[24] !== ref || $[25] !== t4 || $[26] !== t5) {
|
|
390
|
+
t6 = /*#__PURE__*/_jsx(ContextMenuPrimitive.Item, {
|
|
385
391
|
ref: ref,
|
|
386
392
|
asChild: asChild,
|
|
387
|
-
className:
|
|
393
|
+
className: t4,
|
|
388
394
|
...props,
|
|
389
|
-
children:
|
|
395
|
+
children: t5
|
|
390
396
|
});
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
+
$[22] = asChild;
|
|
398
|
+
$[23] = props;
|
|
399
|
+
$[24] = ref;
|
|
400
|
+
$[25] = t4;
|
|
401
|
+
$[26] = t5;
|
|
402
|
+
$[27] = t6;
|
|
397
403
|
} else {
|
|
398
|
-
|
|
404
|
+
t6 = $[27];
|
|
399
405
|
}
|
|
400
|
-
return
|
|
406
|
+
return t6;
|
|
401
407
|
});
|
|
402
408
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
403
409
|
const ContextMenuCheckboxItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
@@ -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 {
|
package/dist/src/ui/dialog.js
CHANGED
|
@@ -516,11 +516,6 @@ const DialogBody = t0 => {
|
|
|
516
516
|
return t3;
|
|
517
517
|
};
|
|
518
518
|
DialogBody.displayName = "DialogBody";
|
|
519
|
-
|
|
520
|
-
// no fill of its own: the footer is not sticky, so it shows the content's
|
|
521
|
-
// surface. a token here (it was `bg-overlay`) showed as an inset block when
|
|
522
|
-
// that surface differs (an app's own `glass-panel-strong`, or `bg-*` on the
|
|
523
|
-
// content)
|
|
524
519
|
const DialogFooter = t0 => {
|
|
525
520
|
const $ = _c(12);
|
|
526
521
|
let className;
|
|
@@ -2,7 +2,7 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import { IconCheck, IconChevronRight, IconCircleFilled } from "@tabler/icons-react";
|
|
5
|
-
import { menuCheckboxRadioItemClass, menuContentClass, menuItemClass, menuLabelClass, menuSeparatorClass, menuShortcutClass, menuSubTriggerClass } from "./_menu-classes.js";
|
|
5
|
+
import { menuCheckboxRadioItemClass, menuContentClass, menuItemClass, menuItemDestructiveClass, menuLabelClass, menuSeparatorClass, menuShortcutClass, menuSubTriggerClass } from "./_menu-classes.js";
|
|
6
6
|
import { fitViewportClass, MenuItemRow, SubTriggerRow, suppressAltKeyDown } from "./_menu-parts.js";
|
|
7
7
|
import { restoreModalScrollLock } from "./overlay-a11y.js";
|
|
8
8
|
import { useCn, useUiConfig } from "./ui-config.js";
|
|
@@ -316,7 +316,7 @@ const DropdownMenuContent = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
316
316
|
});
|
|
317
317
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
318
318
|
const DropdownMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
319
|
-
const $ = _c(
|
|
319
|
+
const $ = _c(28);
|
|
320
320
|
let asChild;
|
|
321
321
|
let children;
|
|
322
322
|
let className;
|
|
@@ -325,10 +325,12 @@ const DropdownMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
325
325
|
let inset;
|
|
326
326
|
let props;
|
|
327
327
|
let startContent;
|
|
328
|
+
let variant;
|
|
328
329
|
if ($[0] !== t0) {
|
|
329
330
|
({
|
|
330
331
|
className,
|
|
331
332
|
inset,
|
|
333
|
+
variant,
|
|
332
334
|
startContent,
|
|
333
335
|
description,
|
|
334
336
|
endContent,
|
|
@@ -345,6 +347,7 @@ const DropdownMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
345
347
|
$[6] = inset;
|
|
346
348
|
$[7] = props;
|
|
347
349
|
$[8] = startContent;
|
|
350
|
+
$[9] = variant;
|
|
348
351
|
} else {
|
|
349
352
|
asChild = $[1];
|
|
350
353
|
children = $[2];
|
|
@@ -354,25 +357,28 @@ const DropdownMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
354
357
|
inset = $[6];
|
|
355
358
|
props = $[7];
|
|
356
359
|
startContent = $[8];
|
|
360
|
+
variant = $[9];
|
|
357
361
|
}
|
|
358
362
|
const item = useUiConfig("DropdownMenu")?.classes?.item;
|
|
359
363
|
const merge = useCn();
|
|
360
364
|
const t1 = item ?? menuItemClass;
|
|
361
365
|
const t2 = inset && "pl-8";
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
$[10] =
|
|
367
|
-
$[11] =
|
|
368
|
-
$[12] =
|
|
369
|
-
$[13] =
|
|
366
|
+
const t3 = variant === "destructive" && menuItemDestructiveClass;
|
|
367
|
+
let t4;
|
|
368
|
+
if ($[10] !== className || $[11] !== merge || $[12] !== t1 || $[13] !== t2 || $[14] !== t3) {
|
|
369
|
+
t4 = merge(t1, t2, t3, className);
|
|
370
|
+
$[10] = className;
|
|
371
|
+
$[11] = merge;
|
|
372
|
+
$[12] = t1;
|
|
373
|
+
$[13] = t2;
|
|
374
|
+
$[14] = t3;
|
|
375
|
+
$[15] = t4;
|
|
370
376
|
} else {
|
|
371
|
-
|
|
377
|
+
t4 = $[15];
|
|
372
378
|
}
|
|
373
|
-
let
|
|
374
|
-
if ($[
|
|
375
|
-
|
|
379
|
+
let t5;
|
|
380
|
+
if ($[16] !== asChild || $[17] !== children || $[18] !== description || $[19] !== endContent || $[20] !== startContent) {
|
|
381
|
+
t5 = asChild || startContent === undefined && description === undefined && endContent === undefined ? children : endContent !== undefined ? /*#__PURE__*/_jsx(MenuItemRow, {
|
|
376
382
|
startContent: startContent,
|
|
377
383
|
description: description,
|
|
378
384
|
endContent: endContent,
|
|
@@ -388,34 +394,34 @@ const DropdownMenuItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
388
394
|
})]
|
|
389
395
|
})]
|
|
390
396
|
});
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
+
$[16] = asChild;
|
|
398
|
+
$[17] = children;
|
|
399
|
+
$[18] = description;
|
|
400
|
+
$[19] = endContent;
|
|
401
|
+
$[20] = startContent;
|
|
402
|
+
$[21] = t5;
|
|
397
403
|
} else {
|
|
398
|
-
|
|
404
|
+
t5 = $[21];
|
|
399
405
|
}
|
|
400
|
-
let
|
|
401
|
-
if ($[
|
|
402
|
-
|
|
406
|
+
let t6;
|
|
407
|
+
if ($[22] !== asChild || $[23] !== props || $[24] !== ref || $[25] !== t4 || $[26] !== t5) {
|
|
408
|
+
t6 = /*#__PURE__*/_jsx(DropdownMenuPrimitive.Item, {
|
|
403
409
|
ref: ref,
|
|
404
410
|
asChild: asChild,
|
|
405
|
-
className:
|
|
411
|
+
className: t4,
|
|
406
412
|
...props,
|
|
407
|
-
children:
|
|
413
|
+
children: t5
|
|
408
414
|
});
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
+
$[22] = asChild;
|
|
416
|
+
$[23] = props;
|
|
417
|
+
$[24] = ref;
|
|
418
|
+
$[25] = t4;
|
|
419
|
+
$[26] = t5;
|
|
420
|
+
$[27] = t6;
|
|
415
421
|
} else {
|
|
416
|
-
|
|
422
|
+
t6 = $[27];
|
|
417
423
|
}
|
|
418
|
-
return
|
|
424
|
+
return t6;
|
|
419
425
|
});
|
|
420
426
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
421
427
|
const DropdownMenuCheckboxItem = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
@@ -6,9 +6,6 @@ import { motionEase } from "../motion/presets.js";
|
|
|
6
6
|
import { useUiConfig } from "./ui-config.js";
|
|
7
7
|
import { cn } from "../utils/cn.js";
|
|
8
8
|
|
|
9
|
-
// `default`: open centred block, large bare icon, one muted line (a page or list body).
|
|
10
|
-
// `panel`: filled rounded block with the icon in a tile (a detail panel or modal section).
|
|
11
|
-
|
|
12
9
|
/**
|
|
13
10
|
* App-wide look for `EmptyState`. `classes` merge after each part's built-in
|
|
14
11
|
* classes. `classes.iconWrap` puts the `default` icon in a wrapper (a circle,
|
|
@@ -105,8 +102,6 @@ function Root(t0) {
|
|
|
105
102
|
return t7;
|
|
106
103
|
}
|
|
107
104
|
Root.displayName = "EmptyState.Root";
|
|
108
|
-
|
|
109
|
-
// The DOM drag and animation handlers clash with Motion's own prop types.
|
|
110
105
|
function stripMotionConflicts(props) {
|
|
111
106
|
const {
|
|
112
107
|
onDrag: _onDrag,
|
|
@@ -117,8 +112,6 @@ function stripMotionConflicts(props) {
|
|
|
117
112
|
} = props;
|
|
118
113
|
return rest;
|
|
119
114
|
}
|
|
120
|
-
|
|
121
|
-
/** A part's own element: `m.*` with the item variants while the Root enters. */
|
|
122
115
|
function useItemMotion() {
|
|
123
116
|
return React.use(EmptyStateContext).enter ? {
|
|
124
117
|
variants: ITEM_VARIANTS
|
package/dist/src/ui/field.js
CHANGED
|
@@ -12,14 +12,6 @@ function useField(part) {
|
|
|
12
12
|
}
|
|
13
13
|
return value;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Stack for one labelled control. It generates the control `id` and the ids of
|
|
17
|
-
* the description and error, so `FieldLabel` (`htmlFor`) and `FieldControl`
|
|
18
|
-
* (`id`, `aria-describedby`) link up without any manual wiring.
|
|
19
|
-
*
|
|
20
|
-
* A plain `<Input />` does not need it. Use it when a field has a label, a
|
|
21
|
-
* hint or an error message.
|
|
22
|
-
*/
|
|
23
15
|
const Field = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
24
16
|
const $ = _c(20);
|
|
25
17
|
let className;
|
|
@@ -106,8 +98,6 @@ const Field = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
106
98
|
return t6;
|
|
107
99
|
});
|
|
108
100
|
Field.displayName = "Field";
|
|
109
|
-
|
|
110
|
-
/** `Label` with `htmlFor` set to the control id of the nearest `Field`. */
|
|
111
101
|
const FieldLabel = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
112
102
|
const $ = _c(4);
|
|
113
103
|
const {
|
|
@@ -130,13 +120,6 @@ const FieldLabel = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
130
120
|
return t0;
|
|
131
121
|
});
|
|
132
122
|
FieldLabel.displayName = "FieldLabel";
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* `Input` with the `id` of the nearest `Field`. `aria-describedby` lists the
|
|
136
|
-
* description and error ids that are rendered, and nothing when there are none.
|
|
137
|
-
* `aria-invalid` is set while a `FieldError` is rendered. Both merge with props
|
|
138
|
-
* you pass.
|
|
139
|
-
*/
|
|
140
123
|
const FieldControl = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
141
124
|
const $ = _c(14);
|
|
142
125
|
let describedBy;
|
|
@@ -213,8 +196,6 @@ function useRegister(set) {
|
|
|
213
196
|
}
|
|
214
197
|
React.useLayoutEffect(t0, t1);
|
|
215
198
|
}
|
|
216
|
-
|
|
217
|
-
/** Muted hint under the control. Its id joins the control's `aria-describedby`. */
|
|
218
199
|
const FieldDescription = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
219
200
|
const $ = _c(11);
|
|
220
201
|
let className;
|
|
@@ -263,8 +244,6 @@ const FieldDescription = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
263
244
|
return t3;
|
|
264
245
|
});
|
|
265
246
|
FieldDescription.displayName = "FieldDescription";
|
|
266
|
-
|
|
267
|
-
/** Error message under the control. Its id joins the control's `aria-describedby`, and the control becomes `aria-invalid`. */
|
|
268
247
|
const FieldError = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
269
248
|
const $ = _c(11);
|
|
270
249
|
let className;
|
|
@@ -5,11 +5,6 @@ import { animate, m, useMotionValue } from "motion/react";
|
|
|
5
5
|
import { projectVelocity } from "../utils/gesture.js";
|
|
6
6
|
import { Dialog, DialogContent, DialogTitle } from "./dialog.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
-
/**
|
|
9
|
-
* Controls (arrows, "open in new tab") opt out of the swipe surface: taking
|
|
10
|
-
* pointer capture on the container retargets the resulting `click` to the
|
|
11
|
-
* container, so a captured drag would swallow every button press.
|
|
12
|
-
*/
|
|
13
8
|
const CONTROL_SELECTOR = "[data-lightbox-control]";
|
|
14
9
|
|
|
15
10
|
/**
|
|
@@ -5,16 +5,6 @@ import { cn } from "../utils/cn.js";
|
|
|
5
5
|
import { fieldFocusWithinClass } from "./_field-classes.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
7
|
import { InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea } from "./input-group.js";
|
|
8
|
-
|
|
9
|
-
// The `Alt` look on the main parts: per-instance `classes` replace the main
|
|
10
|
-
// classes (and any `UiConfig.InputGroup` entry), and `role` / `data-slot`
|
|
11
|
-
// set to `undefined` drop the main attributes, so the markup is the
|
|
12
|
-
// pre-wrapper one. Two parts cannot go through the main ones without changing
|
|
13
|
-
// their markup: the root puts `data-input-group` (the addon's focus hook)
|
|
14
|
-
// before `class`, and the button has no default `type`; they stay a plain
|
|
15
|
-
// `<div>` and a `Button`.
|
|
16
|
-
|
|
17
|
-
/** @deprecated Use `InputGroup`. Kept for existing consumers; removed in a later minor after they move. */
|
|
18
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
9
|
const InputGroupAlt = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
20
10
|
const $ = _c(11);
|
|
@@ -75,8 +65,6 @@ const addonClasses = {
|
|
|
75
65
|
}
|
|
76
66
|
}
|
|
77
67
|
};
|
|
78
|
-
|
|
79
|
-
/** `align={null}` (allowed by the old variant props) adds no align classes. */
|
|
80
68
|
const addonClassesNoAlign = {
|
|
81
69
|
addon: {
|
|
82
70
|
base: "flex items-center",
|
|
@@ -85,15 +73,11 @@ const addonClassesNoAlign = {
|
|
|
85
73
|
}
|
|
86
74
|
}
|
|
87
75
|
};
|
|
88
|
-
|
|
89
|
-
/** Focuses the group's first textarea or input (the click target of an addon). */
|
|
90
76
|
function focusGroupField(event) {
|
|
91
77
|
const group = event.currentTarget.closest("[data-input-group]");
|
|
92
78
|
const field = group?.querySelector("textarea, input");
|
|
93
79
|
if (field instanceof HTMLElement) field.focus();
|
|
94
80
|
}
|
|
95
|
-
|
|
96
|
-
/** @deprecated Use `InputGroupAddon`. Kept for existing consumers; removed in a later minor after they move. */
|
|
97
81
|
function InputGroupAddonAlt(t0) {
|
|
98
82
|
const $ = _c(10);
|
|
99
83
|
let align;
|
|
@@ -152,8 +136,6 @@ const inputGroupButtonVariants = cva("shrink-0 shadow-none", {
|
|
|
152
136
|
size: "xs"
|
|
153
137
|
}
|
|
154
138
|
});
|
|
155
|
-
|
|
156
|
-
/** @deprecated Use `InputGroupButton`. Kept for existing consumers; removed in a later minor after they move. */
|
|
157
139
|
const InputGroupButtonAlt = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
158
140
|
const $ = _c(13);
|
|
159
141
|
let className;
|
|
@@ -213,8 +195,6 @@ InputGroupButtonAlt.displayName = "InputGroupButtonAlt";
|
|
|
213
195
|
const textClasses = {
|
|
214
196
|
text: "flex items-center text-sm text-muted-foreground/95"
|
|
215
197
|
};
|
|
216
|
-
|
|
217
|
-
/** @deprecated Use `InputGroupText`. Kept for existing consumers; removed in a later minor after they move. */
|
|
218
198
|
function InputGroupTextAlt(props) {
|
|
219
199
|
const $ = _c(2);
|
|
220
200
|
let t0;
|
|
@@ -233,8 +213,6 @@ function InputGroupTextAlt(props) {
|
|
|
233
213
|
const inputClasses = {
|
|
234
214
|
input: "h-full flex-1 rounded-none border-0 bg-transparent px-3 py-2 shadow-none focus-visible:border-0 focus-visible:ring-0"
|
|
235
215
|
};
|
|
236
|
-
|
|
237
|
-
/** @deprecated Use `InputGroupInput`. Kept for existing consumers; removed in a later minor after they move. */
|
|
238
216
|
function InputGroupInputAlt(props) {
|
|
239
217
|
const $ = _c(2);
|
|
240
218
|
let t0;
|
|
@@ -254,8 +232,6 @@ function InputGroupInputAlt(props) {
|
|
|
254
232
|
const textareaClasses = {
|
|
255
233
|
textarea: "flex-1 resize-none rounded-none border-0 bg-transparent px-3 py-2.5 shadow-none focus-visible:border-0 focus-visible:ring-0 field-sizing-content"
|
|
256
234
|
};
|
|
257
|
-
|
|
258
|
-
/** @deprecated Use `InputGroupTextarea`. Kept for existing consumers; removed in a later minor after they move. */
|
|
259
235
|
function InputGroupTextareaAlt(props) {
|
|
260
236
|
const $ = _c(2);
|
|
261
237
|
let t0;
|
|
@@ -157,10 +157,6 @@ const inputGroupButtonVariants = cva(inputGroupButtonBaseClasses, {
|
|
|
157
157
|
size: "xs"
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
|
|
161
|
-
// `shape="rounded"` keeps the field-addon radius under Button's pill default.
|
|
162
|
-
// `shape` is not a prop: the size classes set `rounded-lg`, so radius changes
|
|
163
|
-
// go through `className` (or `UiConfig.InputGroup.classes.button`).
|
|
164
160
|
function InputGroupButton(t0) {
|
|
165
161
|
const $ = _c(18);
|
|
166
162
|
let className;
|
package/dist/src/ui/kbd.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { cn } from "../utils/cn.js";
|
|
4
|
-
|
|
5
|
-
// `subtle`: plain filled key for inline hints; size and font come from the
|
|
6
|
-
// surrounding text.
|
|
7
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
5
|
const kbdVariantClasses = {
|
|
9
6
|
default: "pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded-md bg-surface-secondary px-1.5 font-mono text-[10px] font-medium text-muted-foreground",
|
|
@@ -32,7 +32,6 @@ import { useUiConfig } from "./ui-config.js";
|
|
|
32
32
|
/** Cell colours for the grid's left, middle and right column. */
|
|
33
33
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
34
34
|
const SIZE_TOKENS = {
|
|
35
|
-
// 3×3px + 2×1px gaps = 11px.
|
|
36
35
|
sm: {
|
|
37
36
|
cellPx: 3,
|
|
38
37
|
gapPx: 1,
|
|
@@ -77,15 +76,6 @@ const PATTERNS = {
|
|
|
77
76
|
};
|
|
78
77
|
const DEFAULT_COLORS = ["currentColor", "currentColor", "currentColor"];
|
|
79
78
|
const defaultLabelClass = "text-sm font-medium text-muted-foreground";
|
|
80
|
-
|
|
81
|
-
/** Started on attach, cancelled on detach. `undefined` for a gap cell. */
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* One ref callback per cell. The easing sits on the keyframes, not in the
|
|
85
|
-
* options, because CSS applies `animation-timing-function` per segment —
|
|
86
|
-
* as an option it would ease the whole cycle instead. No `fill`, so during
|
|
87
|
-
* its delay a cell keeps the static inline opacity, as under CSS.
|
|
88
|
-
*/
|
|
89
79
|
function pulseRefs(delays, dur) {
|
|
90
80
|
return delays.map(d => d === null ? undefined : cell => {
|
|
91
81
|
const pulse = cell.animate([{
|
|
@@ -104,13 +94,6 @@ function pulseRefs(delays, dur) {
|
|
|
104
94
|
return bindRuntimeAnimation(cell, pulse);
|
|
105
95
|
});
|
|
106
96
|
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Built once per variant, because these identities have to be stable: a ref
|
|
110
|
-
* callback built during render would be a new function every render, and React
|
|
111
|
-
* detaches and reattaches on identity change — restarting the pulse each time
|
|
112
|
-
* (the labelled variant re-renders 10×/s off `useElapsed`).
|
|
113
|
-
*/
|
|
114
97
|
const PULSE_REFS = {
|
|
115
98
|
Drive: pulseRefs(PATTERNS.Drive.delays, PATTERNS.Drive.dur),
|
|
116
99
|
Dots: pulseRefs(PATTERNS.Dots.delays, PATTERNS.Dots.dur),
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
3
|
import { useCn } from "./ui-config.js";
|
|
4
|
-
|
|
5
|
-
/** Pixels per second the revealed text travels: constant speed, so long labels do not whip by. */
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
5
|
const MARQUEE_SPEED_PX_PER_S = 60;
|
|
8
|
-
/** Clamp the scroll duration so very short and very long overflows both stay readable. */
|
|
9
6
|
const MIN_DURATION_S = 0.5;
|
|
10
7
|
const MAX_DURATION_S = 5;
|
|
11
8
|
/**
|
|
@@ -3,8 +3,6 @@ import { useState } from "react";
|
|
|
3
3
|
import { VideoPlayer, VideoPlayerContent, VideoPlayerControlBar, VideoPlayerFullscreenButton, VideoPlayerMuteButton, VideoPlayerPlayButton, VideoPlayerPlaybackRateButton, VideoPlayerSeekBackwardButton, VideoPlayerSeekForwardButton, VideoPlayerTimeDisplay, VideoPlayerTimeRange, VideoPlayerVolumeRange } from "../kibo/video-player.js";
|
|
4
4
|
import { ImageLightbox } from "./image-lightbox.js";
|
|
5
5
|
import { useCn } from "./ui-config.js";
|
|
6
|
-
|
|
7
|
-
/** Hairline ring that separates media from any surface, in light and dark. */
|
|
8
6
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
7
|
const MEDIA_OUTLINE = "ring-1 ring-black/10 dark:ring-white/10";
|
|
10
8
|
|