@vvedantb/ui 0.67.0 → 0.70.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/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 +0 -7
- 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 +0 -15
- package/dist/src/ai-elements/shimmer.js +0 -14
- package/dist/src/ai-elements/speech-input.js +0 -7
- package/dist/src/artifacts/artifact-frame.js +0 -2
- 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 +0 -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/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/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 +1 -1
- 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 +0 -40
- 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/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 +0 -32
- 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 +0 -19
- 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 +0 -7
- 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 +0 -5
- 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 +0 -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 +0 -10
- 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 +0 -11
- 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
package/src/icons/files-icon.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { NavIconBase, type
|
|
1
|
+
import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
|
|
2
2
|
|
|
3
|
-
/** Two stacked files; the back one slides out on hover. */
|
|
4
|
-
export function FilesIcon({ strokeWidth = 1.7, ...props }:
|
|
3
|
+
/** Two stacked files; the back one slides out on hover. Solid while `active`. */
|
|
4
|
+
export function FilesIcon({ strokeWidth = 1.7, cutoutColor, ...props }: CutoutIconProps) {
|
|
5
|
+
const { active } = props;
|
|
5
6
|
return (
|
|
6
7
|
<NavIconBase {...props} strokeWidth={strokeWidth} hoverScale="1.15" loop={1400}>
|
|
7
8
|
<g className="vv-icon-files-back">
|
|
@@ -9,8 +10,11 @@ export function FilesIcon({ strokeWidth = 1.7, ...props }: IconProps) {
|
|
|
9
10
|
<path d="M16 4v3h3" />
|
|
10
11
|
</g>
|
|
11
12
|
<g>
|
|
12
|
-
<path
|
|
13
|
-
|
|
13
|
+
<path
|
|
14
|
+
d="M6.5 8h6l3 3v9a1.5 1.5 0 0 1 -1.5 1.5h-7.5a1.5 1.5 0 0 1 -1.5 -1.5v-10.5a1.5 1.5 0 0 1 1.5 -1.5z"
|
|
15
|
+
fill={active ? "currentColor" : undefined}
|
|
16
|
+
/>
|
|
17
|
+
<path d="M12.5 8v3h3" style={cutoutStyle(active, "stroke", cutoutColor)} />
|
|
14
18
|
</g>
|
|
15
19
|
</NavIconBase>
|
|
16
20
|
);
|
|
@@ -9,7 +9,6 @@ export function InboxArrowIcon({ strokeWidth = 1.75, cutoutColor, ...props }: Cu
|
|
|
9
9
|
<path d="M3 13.5l3-7.5h12l3 7.5v5.5A2 2 0 0 1 19 21H5a2 2 0 0 1-2-2z" fill={active ? "currentColor" : "none"} />
|
|
10
10
|
<path d="M3 13.5h5.2l1 2h5.6l1-2H21" style={cutoutStroke} />
|
|
11
11
|
<g className="vv-icon-inbox-arrow">
|
|
12
|
-
{/* The arrow dips into the tray; a cut-out halo keeps it legible against the solid body. */}
|
|
13
12
|
{active ? (
|
|
14
13
|
<g strokeWidth={4} style={cutoutStroke}>
|
|
15
14
|
<line x1="12" y1="2.5" x2="12" y2="8" />
|
package/src/icons/inbox-icon.tsx
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { NavIconBase, type
|
|
1
|
+
import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
|
|
2
2
|
|
|
3
|
-
/** Tray with a letter dropping in on hover. */
|
|
4
|
-
export function InboxIcon({ strokeWidth = 1.7, ...props }:
|
|
3
|
+
/** Tray with a letter dropping in on hover. Solid while `active`. */
|
|
4
|
+
export function InboxIcon({ strokeWidth = 1.7, cutoutColor, ...props }: CutoutIconProps) {
|
|
5
|
+
const { active } = props;
|
|
5
6
|
return (
|
|
6
7
|
<NavIconBase {...props} strokeWidth={strokeWidth} hoverScale="1.15" loop={1300}>
|
|
7
|
-
|
|
8
|
+
{active ? (
|
|
9
|
+
<path d="M4 13l2 -8a1 1 0 0 1 1 -1h10a1 1 0 0 1 1 1l2 8v6a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1z" fill="currentColor" />
|
|
10
|
+
) : null}
|
|
11
|
+
<rect className="vv-icon-inbox-letter" x="9" y="8" width="6" height="4" rx="0.5" fill="currentColor" stroke="none" style={cutoutStyle(active, "fill", cutoutColor)} />
|
|
8
12
|
<path d="M4 13l2 -8a1 1 0 0 1 1 -1h10a1 1 0 0 1 1 1l2 8" />
|
|
9
13
|
<path d="M4 13v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1 -1v-6" />
|
|
10
|
-
<path d="M4 13h4l1 2h6l1 -2h4" />
|
|
14
|
+
<path d="M4 13h4l1 2h6l1 -2h4" style={cutoutStyle(active, "stroke", cutoutColor)} />
|
|
11
15
|
</NavIconBase>
|
|
12
16
|
);
|
|
13
17
|
}
|
package/src/icons/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Animated nav icons. Styles: `@vvedantb/ui/tokens/css/nav-icons.css` (also in `tokens/css/index.css`).
|
|
2
1
|
export { NavIconBase } from "./nav-icon-base";
|
|
3
2
|
export type { CutoutIconProps, IconAnimate, IconProps, NavIconBaseProps } from "./nav-icon-base";
|
|
4
3
|
export { MemoryIcon } from "./memory-icon";
|
|
@@ -21,3 +20,15 @@ export { BarChartIcon } from "./bar-chart-icon";
|
|
|
21
20
|
export { SearchIcon } from "./search-icon";
|
|
22
21
|
export { SidebarToggleIcon } from "./sidebar-toggle-icon";
|
|
23
22
|
export type { SidebarToggleIconProps } from "./sidebar-toggle-icon";
|
|
23
|
+
export {
|
|
24
|
+
ActivitySolidIcon,
|
|
25
|
+
BookSolidIcon,
|
|
26
|
+
BrainSolidIcon,
|
|
27
|
+
PaperclipSolidIcon,
|
|
28
|
+
PlugConnectedSolidIcon,
|
|
29
|
+
ReceiptSolidIcon,
|
|
30
|
+
ScanSolidIcon,
|
|
31
|
+
UserCircleSolidIcon,
|
|
32
|
+
UsersGroupSolidIcon,
|
|
33
|
+
} from "./solid-icons";
|
|
34
|
+
export { withActive } from "./with-active";
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { NavIconBase, type
|
|
1
|
+
import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
|
|
2
2
|
|
|
3
|
-
/** Brain with a synapse that fires on hover. */
|
|
4
|
-
export function MemoryIcon({ strokeWidth = 1.7, ...props }:
|
|
3
|
+
/** Brain with a synapse that fires on hover. Solid while `active`. */
|
|
4
|
+
export function MemoryIcon({ strokeWidth = 1.7, cutoutColor, ...props }: CutoutIconProps) {
|
|
5
|
+
const { active } = props;
|
|
6
|
+
const stroke = cutoutStyle(active, "stroke", cutoutColor);
|
|
5
7
|
return (
|
|
6
8
|
<NavIconBase {...props} strokeWidth={strokeWidth} hoverScale="1.15" loop={1000}>
|
|
7
|
-
{/* brain silhouette (symmetric about x=12) */}
|
|
8
9
|
<path
|
|
9
10
|
d="M12 3.5C8.5 2.2 5.5 3.3 5 6.5C2.8 7 2.5 8.5 3.5 10C2.2 11.5 2.5 13.5 4.5 14.5C4.5 17 6 18.5 8 18.5C9.5 20 11 19.6 12 19C13 19.6 14.5 20 16 18.5C18 18.5 19.5 17 19.5 14.5C21.5 13.5 21.8 11.5 20.5 10C21.5 8.5 21.2 7 19 6.5C18.5 3.3 15.5 2.2 12 3.5Z"
|
|
10
|
-
fill="none"
|
|
11
|
+
fill={active ? "currentColor" : "none"}
|
|
11
12
|
/>
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
<circle className="vv-icon-memory-ring" cx="12" cy="13.8" r="2.2" fill="none" />
|
|
16
|
-
{/* synapse core */}
|
|
17
|
-
<circle className="vv-icon-memory-core" cx="12" cy="13.8" r="1.7" fill="currentColor" stroke="none" />
|
|
13
|
+
<path d="M12 3.9C10.6 6.5 13.4 8.8 12 11.4" fill="none" style={stroke} />
|
|
14
|
+
<circle className="vv-icon-memory-ring" cx="12" cy="13.8" r="2.2" fill="none" style={stroke} />
|
|
15
|
+
<circle className="vv-icon-memory-core" cx="12" cy="13.8" r="1.7" fill="currentColor" stroke="none" style={cutoutStyle(active, "fill", cutoutColor)} />
|
|
18
16
|
</NavIconBase>
|
|
19
17
|
);
|
|
20
18
|
}
|
|
@@ -5,33 +5,23 @@ import { cn } from "../utils/cn";
|
|
|
5
5
|
export type IconAnimate = boolean | "hover";
|
|
6
6
|
|
|
7
7
|
export type IconProps = Omit<SVGProps<SVGSVGElement>, "children" | "color" | "height" | "width" | "strokeWidth"> & {
|
|
8
|
-
/** Width and height. Default 20. */
|
|
9
8
|
size?: number | string;
|
|
10
|
-
/** Sets the svg's CSS `color`, which every `currentColor` part follows. Default `currentColor` (no inline colour). */
|
|
11
9
|
color?: string;
|
|
12
|
-
/** Default: the icon's own stroke (1.7 or 1.75). Shapes with their own stroke width keep it. */
|
|
13
10
|
strokeWidth?: number | string;
|
|
14
|
-
/** Accessible name. Without it the icon is `aria-hidden`. */
|
|
15
11
|
title?: string;
|
|
16
|
-
/** Default `"hover"`. */
|
|
17
12
|
animate?: IconAnimate;
|
|
18
|
-
/** Solid variant on icons that have one; elsewhere only sets `data-active`. */
|
|
19
13
|
active?: boolean;
|
|
20
|
-
/** Length in ms of the icon's longest loop. Every other duration and delay in the icon scales with it. */
|
|
21
14
|
duration?: number;
|
|
22
15
|
};
|
|
23
16
|
|
|
24
17
|
/** Icons with a solid `active` variant. Inner details are painted in `cutoutColor`. */
|
|
25
18
|
export type CutoutIconProps = IconProps & {
|
|
26
|
-
/** Tone of the cut-out details while `active`. Default: the sidebar accent colour. */
|
|
27
19
|
cutoutColor?: string;
|
|
28
20
|
};
|
|
29
21
|
|
|
30
22
|
export type NavIconBaseProps = IconProps & {
|
|
31
23
|
children: ReactNode;
|
|
32
|
-
/** Root scale on group hover: `"1.15"` springs, `"1.12"` eases out. */
|
|
33
24
|
hoverScale: "1.15" | "1.12";
|
|
34
|
-
/** The icon's longest loop in ms, which `duration` replaces. */
|
|
35
25
|
loop: number;
|
|
36
26
|
};
|
|
37
27
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { NavIconBase, type
|
|
1
|
+
import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
|
|
2
2
|
|
|
3
|
-
/** Magnifying glass that scans with a lens glint on hover. */
|
|
4
|
-
export function SearchIcon({ strokeWidth = 1.75, ...props }:
|
|
3
|
+
/** Magnifying glass that scans with a lens glint on hover. Solid lens and heavier handle while `active`. */
|
|
4
|
+
export function SearchIcon({ strokeWidth = 1.75, cutoutColor, ...props }: CutoutIconProps) {
|
|
5
|
+
const { active } = props;
|
|
5
6
|
return (
|
|
6
7
|
<NavIconBase {...props} strokeWidth={strokeWidth} hoverScale="1.12" loop={1200}>
|
|
7
8
|
<g className="vv-icon-search">
|
|
8
|
-
<circle cx="10.5" cy="10.5" r="6.5" />
|
|
9
|
-
<line x1="15.2" y1="15.2" x2="20.5" y2="20.5" />
|
|
10
|
-
<circle cx="8.6" cy="8.6" r="1.1" fill="currentColor" stroke="none" className="vv-icon-search-glint" />
|
|
9
|
+
<circle cx="10.5" cy="10.5" r="6.5" fill={active ? "currentColor" : undefined} />
|
|
10
|
+
<line x1="15.2" y1="15.2" x2="20.5" y2="20.5" strokeWidth={active ? 3 : undefined} />
|
|
11
|
+
<circle cx="8.6" cy="8.6" r="1.1" fill="currentColor" stroke="none" className="vv-icon-search-glint" style={cutoutStyle(active, "fill", cutoutColor)} />
|
|
11
12
|
</g>
|
|
12
13
|
</NavIconBase>
|
|
13
14
|
);
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { NavIconBase, type
|
|
1
|
+
import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
|
|
2
2
|
|
|
3
|
-
export type SettingsIconProps =
|
|
4
|
-
/**
|
|
5
|
-
* `"spin"` (default): continuous 2.5s linear spin, stroke 1.7, springy 1.15 hover scale.
|
|
6
|
-
* `"turn"`: a gear drawn hub first that clicks round one tooth (60deg) at a time over 2.4s,
|
|
7
|
-
* stroke 1.75, eased 1.12 hover scale like the other 1.75-stroke icons.
|
|
8
|
-
*/
|
|
3
|
+
export type SettingsIconProps = CutoutIconProps & {
|
|
9
4
|
variant?: "spin" | "turn";
|
|
10
5
|
};
|
|
11
6
|
|
|
12
|
-
/** Gear that spins on hover, or turns one notch at a time with `variant="turn"`. */
|
|
13
|
-
export function SettingsIcon({ variant = "spin", strokeWidth, ...props }: SettingsIconProps) {
|
|
7
|
+
/** Gear that spins on hover, or turns one notch at a time with `variant="turn"`. Solid while `active`. */
|
|
8
|
+
export function SettingsIcon({ variant = "spin", strokeWidth, cutoutColor, ...props }: SettingsIconProps) {
|
|
9
|
+
const { active } = props;
|
|
10
|
+
const solid = active ? "currentColor" : undefined;
|
|
11
|
+
const holeStyle = active ? { ...cutoutStyle(active, "stroke", cutoutColor), ...cutoutStyle(active, "fill", cutoutColor) } : undefined;
|
|
14
12
|
if (variant === "turn") {
|
|
15
13
|
return (
|
|
16
14
|
<NavIconBase {...props} strokeWidth={strokeWidth ?? 1.75} hoverScale="1.12" loop={2400}>
|
|
17
15
|
<g className="vv-icon-gear-turn">
|
|
18
|
-
<circle cx="12" cy="12" r="3" />
|
|
19
|
-
<path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065" />
|
|
16
|
+
<circle cx="12" cy="12" r="3" style={holeStyle} />
|
|
17
|
+
<path fill={solid} d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065" />
|
|
20
18
|
</g>
|
|
21
19
|
</NavIconBase>
|
|
22
20
|
);
|
|
@@ -24,8 +22,8 @@ export function SettingsIcon({ variant = "spin", strokeWidth, ...props }: Settin
|
|
|
24
22
|
return (
|
|
25
23
|
<NavIconBase {...props} strokeWidth={strokeWidth ?? 1.7} hoverScale="1.15" loop={2500}>
|
|
26
24
|
<g className="vv-icon-gear">
|
|
27
|
-
<path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
|
|
28
|
-
<circle cx="12" cy="12" r="3" />
|
|
25
|
+
<path fill={solid} d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
|
|
26
|
+
<circle cx="12" cy="12" r="3" style={holeStyle} />
|
|
29
27
|
</g>
|
|
30
28
|
</NavIconBase>
|
|
31
29
|
);
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { NavIconBase, cutoutStyle, type CutoutIconProps } from "./nav-icon-base";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Solid (filled) twins of outline icons, for the active tab. Same 24x24 grid and
|
|
6
|
+
* weight as the outline glyph, so swapping them does not shift layout. Inner detail
|
|
7
|
+
* is painted in the cutout colour so it reads as a hole in the solid shape.
|
|
8
|
+
*/
|
|
9
|
+
function Solid({
|
|
10
|
+
strokeWidth = 1.75,
|
|
11
|
+
size = 22,
|
|
12
|
+
cutoutColor: _cutoutColor,
|
|
13
|
+
children,
|
|
14
|
+
...props
|
|
15
|
+
}: CutoutIconProps & { children: ReactNode }) {
|
|
16
|
+
return (
|
|
17
|
+
<NavIconBase {...props} size={size} strokeWidth={strokeWidth} animate={false} active hoverScale="1.12" loop={1000}>
|
|
18
|
+
{children}
|
|
19
|
+
</NavIconBase>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Closed book, solid, with the page rule and title line cut out. */
|
|
24
|
+
export function BookSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
|
|
25
|
+
const stroke = cutoutStyle(true, "stroke", cutoutColor);
|
|
26
|
+
return (
|
|
27
|
+
<Solid {...props}>
|
|
28
|
+
<path d="M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z" fill="currentColor" />
|
|
29
|
+
<path d="M19 16h-12a2 2 0 0 0 -2 2" style={stroke} />
|
|
30
|
+
<path d="M9 8h6" style={stroke} />
|
|
31
|
+
</Solid>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** Brain, solid, with the midline and folds cut out. */
|
|
36
|
+
export function BrainSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
|
|
37
|
+
const stroke = cutoutStyle(true, "stroke", cutoutColor);
|
|
38
|
+
return (
|
|
39
|
+
<Solid {...props}>
|
|
40
|
+
<g fill="currentColor">
|
|
41
|
+
<rect x="5" y="6.5" width="14" height="11" />
|
|
42
|
+
<circle cx="8.5" cy="6.5" r="3.5" />
|
|
43
|
+
<circle cx="6.5" cy="12.5" r="3.5" />
|
|
44
|
+
<circle cx="8.5" cy="17.5" r="3.5" />
|
|
45
|
+
<circle cx="15.5" cy="6.5" r="3.5" />
|
|
46
|
+
<circle cx="17.5" cy="12.5" r="3.5" />
|
|
47
|
+
<circle cx="15.5" cy="17.5" r="3.5" />
|
|
48
|
+
</g>
|
|
49
|
+
<path d="M12 6.5v10" style={stroke} />
|
|
50
|
+
<path d="M8.5 13a3.5 3.5 0 0 1 3.5 3.5" style={stroke} />
|
|
51
|
+
<path d="M15.5 13a3.5 3.5 0 0 0 -3.5 3.5" style={stroke} />
|
|
52
|
+
</Solid>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Paperclip drawn heavy so it reads as solid. */
|
|
57
|
+
export function PaperclipSolidIcon({ strokeWidth = 2.6, ...props }: CutoutIconProps) {
|
|
58
|
+
return (
|
|
59
|
+
<Solid {...props} strokeWidth={strokeWidth}>
|
|
60
|
+
<path d="M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5" />
|
|
61
|
+
</Solid>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Pulse line drawn heavy so it reads as solid. */
|
|
66
|
+
export function ActivitySolidIcon({ strokeWidth = 2.6, ...props }: CutoutIconProps) {
|
|
67
|
+
return (
|
|
68
|
+
<Solid {...props} strokeWidth={strokeWidth}>
|
|
69
|
+
<path d="M3 12h4l3 8l4 -16l3 8h4" />
|
|
70
|
+
</Solid>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Scan corners with a solid centre band. */
|
|
75
|
+
export function ScanSolidIcon(props: CutoutIconProps) {
|
|
76
|
+
return (
|
|
77
|
+
<Solid {...props}>
|
|
78
|
+
<path d="M3 7v-2a2 2 0 0 1 2 -2h2" />
|
|
79
|
+
<path d="M3 17v2a2 2 0 0 0 2 2h2" />
|
|
80
|
+
<path d="M17 3h2a2 2 0 0 1 2 2v2" />
|
|
81
|
+
<path d="M17 21h2a2 2 0 0 0 2 -2v-2" />
|
|
82
|
+
<rect x="5" y="10.5" width="14" height="3" rx="1.5" fill="currentColor" />
|
|
83
|
+
</Solid>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Three people, solid. */
|
|
88
|
+
export function UsersGroupSolidIcon(props: CutoutIconProps) {
|
|
89
|
+
return (
|
|
90
|
+
<Solid {...props}>
|
|
91
|
+
<g fill="currentColor">
|
|
92
|
+
<circle cx="12" cy="13" r="2" />
|
|
93
|
+
<circle cx="17" cy="5" r="2" />
|
|
94
|
+
<circle cx="7" cy="5" r="2" />
|
|
95
|
+
<path d="M8 21v-1a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v1z" />
|
|
96
|
+
<path d="M17 10h2a2 2 0 0 1 2 2v1h-4z" />
|
|
97
|
+
<path d="M7 10h-2a2 2 0 0 0 -2 2v1h4z" />
|
|
98
|
+
</g>
|
|
99
|
+
</Solid>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** Two plug halves, solid, with the contact marks cut out. */
|
|
104
|
+
export function PlugConnectedSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
|
|
105
|
+
const stroke = cutoutStyle(true, "stroke", cutoutColor);
|
|
106
|
+
return (
|
|
107
|
+
<Solid {...props}>
|
|
108
|
+
<path d="M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z" fill="currentColor" />
|
|
109
|
+
<path d="M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z" fill="currentColor" />
|
|
110
|
+
<path d="M3 21l2.5 -2.5" />
|
|
111
|
+
<path d="M18.5 5.5l2.5 -2.5" />
|
|
112
|
+
<path d="M10 11l-2 2" style={stroke} />
|
|
113
|
+
<path d="M13 14l-2 2" style={stroke} />
|
|
114
|
+
</Solid>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Receipt, solid, with the currency mark cut out. */
|
|
119
|
+
export function ReceiptSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
|
|
120
|
+
return (
|
|
121
|
+
<Solid {...props}>
|
|
122
|
+
<path d="M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2z" fill="currentColor" />
|
|
123
|
+
<path d="M14 8h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5m2 0v1.5m0 -9v1.5" style={cutoutStyle(true, "stroke", cutoutColor)} />
|
|
124
|
+
</Solid>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** Account circle, solid, with the head and shoulders cut out. */
|
|
129
|
+
export function UserCircleSolidIcon({ cutoutColor, ...props }: CutoutIconProps) {
|
|
130
|
+
const stroke = cutoutStyle(true, "stroke", cutoutColor);
|
|
131
|
+
return (
|
|
132
|
+
<Solid {...props}>
|
|
133
|
+
<circle cx="12" cy="12" r="9" fill="currentColor" />
|
|
134
|
+
<circle cx="12" cy="10" r="3" style={{ ...stroke, ...cutoutStyle(true, "fill", cutoutColor) }} />
|
|
135
|
+
<path d="M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855" style={stroke} />
|
|
136
|
+
</Solid>
|
|
137
|
+
);
|
|
138
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentType, JSX } from "react";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Locks an in-house nav icon to its solid `active` look. Call it once at module level, so the component identity stays stable across renders.
|
|
5
|
+
*/
|
|
6
|
+
export function withActive<P extends { active?: boolean }>(
|
|
7
|
+
Icon: ComponentType<P>,
|
|
8
|
+
): (props: Omit<P, "active">) => JSX.Element {
|
|
9
|
+
function ActiveIcon(props: Omit<P, "active">) {
|
|
10
|
+
return <Icon {...(props as P)} active />;
|
|
11
|
+
}
|
|
12
|
+
ActiveIcon.displayName = `Active(${Icon.displayName ?? Icon.name ?? "Icon"})`;
|
|
13
|
+
return ActiveIcon;
|
|
14
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// Colour, radius, shadow and font tokens live in @vvedantb/ui/tokens. Import that
|
|
2
|
-
// stylesheet in the app. This package does not ship a second token set.
|
|
3
1
|
export { cn } from "./utils/cn";
|
|
4
2
|
export { UiConfigProvider, useUiConfig } from "./ui/ui-config";
|
|
5
3
|
export type { UiConfig, UiConfigProviderProps } from "./ui/ui-config";
|
|
@@ -10,8 +8,6 @@ export * from "./motion/presets";
|
|
|
10
8
|
export * from "./motion/panel-transition";
|
|
11
9
|
export { ListEnter, useFirstPaintGate } from "./motion/list-enter";
|
|
12
10
|
export type { ListEnterProps } from "./motion/list-enter";
|
|
13
|
-
// Gesture physics and animation budget helpers (shared clock, on-screen and
|
|
14
|
-
// page-visibility pausing for infinite animations).
|
|
15
11
|
export { DRAG_ACTIVATION_DISTANCE_PX, projectVelocity, rubberband } from "./utils/gesture";
|
|
16
12
|
export {
|
|
17
13
|
bindRuntimeAnimation,
|
|
@@ -24,8 +20,6 @@ export { CAT_SLOT_COUNT, catColorForId, catColorForSlot, catSlotForId } from "./
|
|
|
24
20
|
export type { CatColorClasses, CatSlot } from "./utils/cat-color";
|
|
25
21
|
export { CONTROL_RADIUS_CLASS, SURFACE_RADIUS_CLASS } from "./utils/surface-radius";
|
|
26
22
|
export { restoreModalScrollLock } from "./ui/overlay-a11y";
|
|
27
|
-
// Generic hooks: media query, page visibility, trailing debounce,
|
|
28
|
-
// single-flight async calls and a persisted scroll container.
|
|
29
23
|
export * from "./hooks";
|
|
30
24
|
export { ErrorBoundary } from "./ui/error-boundary";
|
|
31
25
|
export type { ErrorBoundaryProps } from "./ui/error-boundary";
|
|
@@ -128,11 +122,8 @@ export * from "./ui/sheet";
|
|
|
128
122
|
export * from "./ui/visually-hidden";
|
|
129
123
|
export * from "./ui/clearInputDissolve";
|
|
130
124
|
|
|
131
|
-
// Animated nav icons. Styles: `@vvedantb/ui/tokens/css/nav-icons.css`.
|
|
132
125
|
export * from "./icons";
|
|
133
126
|
|
|
134
|
-
// Dual copies: the richer file uses the plain name. The deprecated `Alt` exports
|
|
135
|
-
// (accordion, clear input, input group) wrap the main parts with the old markup.
|
|
136
127
|
export * from "./ui/accordion";
|
|
137
128
|
export {
|
|
138
129
|
AccordionAlt,
|
|
@@ -184,9 +175,6 @@ export * from "./ai-elements/sources";
|
|
|
184
175
|
export * from "./ai-elements/speech-input";
|
|
185
176
|
export * from "./ai-elements/suggestion";
|
|
186
177
|
|
|
187
|
-
// Agent activity and run surfaces (moved from an app): the activity timeline and
|
|
188
|
-
// its step model, Trace lines, plan, test results, web preview, context usage
|
|
189
|
-
// and the model picker.
|
|
190
178
|
export * from "./ai-elements/activity-shared";
|
|
191
179
|
export * from "./ai-elements/activity-question";
|
|
192
180
|
export * from "./ai-elements/activity-tasks";
|
|
@@ -199,18 +187,11 @@ export * from "./ai-elements/context";
|
|
|
199
187
|
export * from "./ai-elements/model-picker";
|
|
200
188
|
export * from "./ai-elements/provider-icon";
|
|
201
189
|
|
|
202
|
-
// Artifact viewers: frame with the state bridge, card, list, toolbar, viewer.
|
|
203
|
-
// The core (schemas, state ops, document wrapper) comes from `@vvedantb/server`.
|
|
204
190
|
export * from "./artifacts";
|
|
205
191
|
|
|
206
|
-
// Kibo UI blocks: gantt, kanban, list, contribution graph, video player,
|
|
207
|
-
// cursor, avatar stack, theme switcher. Kanban, list and gantt drag with
|
|
208
|
-
// `useDragSensors`, the shared dnd-kit sensor split.
|
|
209
192
|
export * from "./kibo";
|
|
210
193
|
export { useDragSensors } from "./utils/useDragSensors";
|
|
211
194
|
|
|
212
|
-
// Markdown renderer (Streamdown + code blocks, callouts, links, KaTeX).
|
|
213
|
-
// Styles: `@vvedantb/ui/tokens/css/markdown.css`.
|
|
214
195
|
export * from "./markdown";
|
|
215
196
|
|
|
216
197
|
export * from "./audio";
|
|
@@ -218,8 +199,6 @@ export * from "./audio";
|
|
|
218
199
|
export * from "./composer";
|
|
219
200
|
export { toast } from "sonner";
|
|
220
201
|
|
|
221
|
-
// Shell: router-free pieces. Shell's own `cn` and `ClassValue` are not re-exported;
|
|
222
|
-
// use the root `cn` (clsx + tailwind-merge).
|
|
223
202
|
export { SidebarHeader } from "../shell/src/SidebarHeader";
|
|
224
203
|
export type { SidebarHeaderProps } from "../shell/src/SidebarHeader";
|
|
225
204
|
export { SidebarUpgradeCard } from "../shell/src/SidebarUpgradeCard";
|
|
@@ -233,8 +212,6 @@ export type {
|
|
|
233
212
|
SessionsHoverCardSurface,
|
|
234
213
|
} from "../shell/src/SessionsHoverCard";
|
|
235
214
|
|
|
236
|
-
// App shell: sidebar and main page layout. Widths come from the
|
|
237
|
-
// `--app-shell-*` CSS variables that `AppShell` sets.
|
|
238
215
|
export { AppShell } from "../shell/src/AppShell";
|
|
239
216
|
export type {
|
|
240
217
|
AppShellContentProps,
|
|
@@ -264,7 +241,6 @@ export type {
|
|
|
264
241
|
} from "../shell/src/SidePanelTabs";
|
|
265
242
|
export { AppSidebar } from "../shell/src/AppSidebar";
|
|
266
243
|
export type { AppSidebarProps } from "../shell/src/AppSidebar";
|
|
267
|
-
// Composable sidebar parts (`Sidebar.Root`, `Sidebar.Rail`, ...) and their prop types.
|
|
268
244
|
export * from "../shell/src/Sidebar";
|
|
269
245
|
export { SidebarRail, RailTile, RailDivider, RailCollapseTile, shellDockTileProps, useInRailGroup } from "../shell/src/SidebarRail";
|
|
270
246
|
export type {
|
|
@@ -314,8 +290,6 @@ export {
|
|
|
314
290
|
} from "../shell/src/app-shell-classes";
|
|
315
291
|
export type { SidebarNavItemClassOptions } from "../shell/src/app-shell-classes";
|
|
316
292
|
|
|
317
|
-
// Marketing: landing kit, site footer and pricing dialog. Router- and Motion-free;
|
|
318
|
-
// `createLandingKit` takes the app's `motion`. Styles: `@vvedantb/ui/landing.css`.
|
|
319
293
|
export {
|
|
320
294
|
LandingFeatureCard,
|
|
321
295
|
LandingFooter,
|
|
@@ -386,15 +360,11 @@ export type {
|
|
|
386
360
|
export { VProPricingModal } from "./marketing/VProPricingModal";
|
|
387
361
|
export type { VProPricingModalProps } from "./marketing/VProPricingModal";
|
|
388
362
|
|
|
389
|
-
// App helpers: confirm skip, update watcher, settings chrome, stable auth, Convex provider, VITE env and ensure-user.
|
|
390
363
|
export * from "../app/src/index";
|
|
391
364
|
|
|
392
|
-
// Family app marks (Icon* components, deprecated AppMark and raw SVG strings for favicons).
|
|
393
365
|
export * from "./brand";
|
|
394
366
|
|
|
395
|
-
// Third-party brand logos (`GitHubIcon`, `SlackIcon`, `ClaudeIcon`, ...). Also `@vvedantb/ui/logos`.
|
|
396
367
|
export * from "./logos";
|
|
397
368
|
|
|
398
|
-
// Native tokens (JS values that match tokens.css).
|
|
399
369
|
export { tokens } from "../tokens/src/native";
|
|
400
370
|
export type { Tokens } from "../tokens/src/native";
|
|
@@ -53,15 +53,6 @@ export const GanttFeatureDragHelper: FC<GanttFeatureDragHelperProps> = ({
|
|
|
53
53
|
>
|
|
54
54
|
<div
|
|
55
55
|
className={merge(
|
|
56
|
-
// The handle slides out on hover via translate, not `left`/`right`:
|
|
57
|
-
// an inset animation relayouts every frame, a transform does not.
|
|
58
|
-
// Only opacity and the slide transition, so this stays on the
|
|
59
|
-
// compositor while the user is mid-drag.
|
|
60
|
-
//
|
|
61
|
-
// The named property is `translate`, not `transform`: the slide is
|
|
62
|
-
// `translate-x-*`, which Tailwind compiles to `translate: …`, and an
|
|
63
|
-
// arbitrary `transition-[…]` matches property names literally — so
|
|
64
|
-
// the handle used to appear at its final offset in one frame.
|
|
65
56
|
classes.dragHandle,
|
|
66
57
|
direction === "left" ? "left-0" : "right-0",
|
|
67
58
|
direction === "left" ? "translate-x-2.5" : "-translate-x-2.5",
|
|
@@ -166,8 +157,6 @@ export const GanttFeatureItem: FC<GanttFeatureItemProps> = ({
|
|
|
166
157
|
|
|
167
158
|
const addRange = useMemo(() => getAddRange(gantt.range), [gantt.range]);
|
|
168
159
|
|
|
169
|
-
// Pixels per day for the active range, so drag deltas map to dates correctly
|
|
170
|
-
// in every zoom (daily columns are per-day; monthly/quarterly are per-month).
|
|
171
160
|
const pxPerDay = useMemo(() => {
|
|
172
161
|
const colW = (gantt.columnWidth * gantt.zoom) / 100;
|
|
173
162
|
return gantt.range === "daily" ? colW : colW / 30;
|
|
@@ -177,9 +166,6 @@ export const GanttFeatureItem: FC<GanttFeatureItemProps> = ({
|
|
|
177
166
|
const [previousStartAt, setPreviousStartAt] = useState(startAt);
|
|
178
167
|
const [previousEndAt, setPreviousEndAt] = useState(endAt);
|
|
179
168
|
|
|
180
|
-
// A `MouseSensor` alone meant a gantt bar could not be moved or resized by
|
|
181
|
-
// touch or pen at all — the three `DndContext`s below never armed off a
|
|
182
|
-
// finger.
|
|
183
169
|
const sensors = useDragSensors();
|
|
184
170
|
|
|
185
171
|
const handleItemDragStart = useCallback(() => {
|
|
@@ -228,8 +214,6 @@ export const GanttFeatureItem: FC<GanttFeatureItemProps> = ({
|
|
|
228
214
|
[pxPerDay, feature.endAt],
|
|
229
215
|
);
|
|
230
216
|
|
|
231
|
-
// When the bar sits outside the visible canvas, show a clickable date chip
|
|
232
|
-
// pinned to the viewport edge that scrolls back to it (Linear's "← date").
|
|
233
217
|
const viewportWidth = gantt.ref?.current?.clientWidth ?? 0;
|
|
234
218
|
const visibleEnd =
|
|
235
219
|
gantt.scrollX + Math.max(0, viewportWidth - gantt.sidebarWidth);
|
|
@@ -9,10 +9,7 @@ export type GanttContentHeaderProps = {
|
|
|
9
9
|
renderHeaderItem: (index: number) => ReactNode;
|
|
10
10
|
title: string;
|
|
11
11
|
columns: number;
|
|
12
|
-
/** Marks the column matching "now" so it can be visually emphasised. */
|
|
13
12
|
isColumnCurrent?: (index: number) => boolean;
|
|
14
|
-
/** When provided, only flagged columns get a left divider (e.g. week starts);
|
|
15
|
-
* otherwise every column gets a right divider. */
|
|
16
13
|
isColumnDivider?: (index: number) => boolean;
|
|
17
14
|
};
|
|
18
15
|
|
|
@@ -76,7 +73,6 @@ const DailyHeader: FC = () => {
|
|
|
76
73
|
.flatMap((quarter) => quarter.months)
|
|
77
74
|
.map((month, index) => {
|
|
78
75
|
const monthStart = new Date(year.year, index, 1);
|
|
79
|
-
// Linear's grid is weekly: label + divide only at week starts (Sundays).
|
|
80
76
|
const isWeekStart = (item: number) =>
|
|
81
77
|
dayjs(monthStart).add(item, "day").day() === 0;
|
|
82
78
|
return (
|