@vllnt/ui 0.4.0-canary.sha2f78bdd → 0.4.0-canary.sha36bfa21
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/CHANGELOG.md +96 -0
- package/README.md +64 -10
- package/dist/components/atoms/accordion/accordion.js +167 -0
- package/dist/components/atoms/agent-activity/agent-activity.js +338 -0
- package/dist/components/atoms/ai-source-citation/ai-source-citation.js +45 -0
- package/dist/components/atoms/ai-streaming-text/ai-streaming-text.js +39 -0
- package/dist/components/atoms/alert/alert.js +66 -0
- package/dist/components/atoms/alert-pulse/alert-pulse.js +93 -0
- package/dist/components/atoms/anchor-port/anchor-port.js +49 -0
- package/dist/components/atoms/animated-beam/animated-beam.js +157 -0
- package/dist/components/atoms/animated-grid-pattern/animated-grid-pattern.js +81 -0
- package/dist/components/atoms/animated-list/animated-list.js +28 -0
- package/dist/components/atoms/animated-tabs/animated-tabs.js +110 -0
- package/dist/components/atoms/animated-testimonials/animated-testimonials.js +97 -0
- package/dist/components/atoms/animated-text/animated-text.js +354 -0
- package/dist/components/atoms/animated-tooltip/animated-tooltip.js +68 -0
- package/dist/components/atoms/avatar/avatar.js +54 -0
- package/dist/components/atoms/badge/badge.js +26 -0
- package/dist/components/atoms/banner/banner.js +158 -0
- package/dist/components/atoms/bento-grid/bento-grid.js +46 -0
- package/dist/components/atoms/blur-reveal/blur-reveal.js +83 -0
- package/dist/components/atoms/border-beam/border-beam.js +46 -0
- package/dist/components/atoms/bottom-activity-strip/bottom-activity-strip.js +92 -0
- package/dist/components/atoms/bottom-bar/bottom-bar.js +29 -0
- package/dist/components/atoms/breadcrumb/breadcrumb.js +68 -0
- package/dist/components/atoms/button/button.js +52 -0
- package/dist/components/atoms/button-group/button-group.js +37 -0
- package/dist/components/atoms/callout/callout.js +59 -0
- package/dist/components/atoms/card/card.js +87 -0
- package/dist/components/atoms/card-flip/card-flip.js +67 -0
- package/dist/components/atoms/chain-of-thought/chain-of-thought.js +84 -0
- package/dist/components/atoms/checkbox/checkbox.js +31 -0
- package/dist/components/atoms/checklist/checklist.js +225 -0
- package/dist/components/atoms/comment-pin/comment-pin.js +105 -0
- package/dist/components/atoms/comparison/comparison.js +136 -0
- package/dist/components/atoms/context-lens/context-lens.js +99 -0
- package/dist/components/atoms/context-menu/context-menu.js +192 -0
- package/dist/components/atoms/curriculum/curriculum.js +351 -0
- package/dist/components/atoms/cursor/cursor.js +91 -0
- package/dist/components/atoms/data-list/data-list.js +114 -0
- package/dist/components/atoms/date-field/date-field.js +42 -0
- package/dist/components/atoms/dialog/dialog.js +121 -0
- package/dist/components/atoms/display/display.js +22 -0
- package/dist/components/atoms/dock/dock.js +167 -0
- package/dist/components/atoms/document-sibling-nav/document-sibling-nav.js +116 -0
- package/dist/components/atoms/dot-pattern/dot-pattern.js +36 -0
- package/dist/components/atoms/drawer/drawer.js +120 -0
- package/dist/components/atoms/dropdown-menu/dropdown-menu.js +190 -0
- package/dist/components/atoms/edge-label/edge-label.js +28 -0
- package/dist/components/atoms/empty-state/empty-state.js +89 -0
- package/dist/components/atoms/era-comparison/era-comparison.js +229 -0
- package/dist/components/atoms/expandable-cards/expandable-cards.js +61 -0
- package/dist/components/atoms/faq/faq.js +60 -0
- package/dist/components/atoms/fieldset/fieldset.js +49 -0
- package/dist/components/atoms/floating-action-button/floating-action-button.js +35 -0
- package/dist/components/atoms/floating-navbar/floating-navbar.js +67 -0
- package/dist/components/atoms/floating-toolbar/floating-toolbar.js +64 -0
- package/dist/components/atoms/follow-mode/follow-mode.js +87 -0
- package/dist/components/atoms/gauge-chart/gauge-chart.js +132 -0
- package/dist/components/atoms/glass-card/glass-card.js +25 -0
- package/dist/components/atoms/glass-panel/glass-panel.js +23 -0
- package/dist/components/atoms/glass-progress/glass-progress.js +40 -0
- package/dist/components/atoms/grid/grid.js +100 -0
- package/dist/components/atoms/group-hull/group-hull.js +34 -0
- package/dist/components/atoms/handoff-beacon/handoff-beacon.js +76 -0
- package/dist/components/atoms/heading/heading.js +40 -0
- package/dist/components/atoms/heat-overlay/heat-overlay.js +93 -0
- package/dist/components/atoms/hover-card/hover-card.js +31 -0
- package/dist/components/atoms/infinite-plane/infinite-plane.js +73 -0
- package/dist/components/atoms/input/input.js +25 -0
- package/dist/components/atoms/input-group/input-group.js +73 -0
- package/dist/components/atoms/input-otp/input-otp.js +71 -0
- package/dist/components/atoms/item/item.js +118 -0
- package/dist/components/atoms/jarvis-dock/jarvis-dock.js +96 -0
- package/dist/components/atoms/kbd/kbd.js +114 -0
- package/dist/components/atoms/key-concept/key-concept.js +82 -0
- package/dist/components/atoms/keyboard-shortcuts-help/keyboard-shortcuts-help.js +124 -0
- package/dist/components/atoms/label/label.js +24 -0
- package/dist/components/atoms/learning-objectives/learning-objectives.js +91 -0
- package/dist/components/atoms/left-rail/left-rail.js +29 -0
- package/dist/components/atoms/link/link.js +53 -0
- package/dist/components/atoms/liquid-glass/liquid-glass.js +38 -0
- package/dist/components/atoms/list-box/list-box.js +181 -0
- package/dist/components/atoms/live-cursor/live-cursor.js +65 -0
- package/dist/components/atoms/magnetic/magnetic.js +110 -0
- package/dist/components/atoms/magnetic-button/magnetic-button.js +111 -0
- package/dist/components/atoms/marquee/marquee.js +156 -0
- package/dist/components/atoms/menubar/menubar.js +230 -0
- package/dist/components/atoms/meteors/meteors.js +62 -0
- package/dist/components/atoms/meter/meter.js +76 -0
- package/dist/components/atoms/metric-cluster/metric-cluster.js +94 -0
- package/dist/components/atoms/mini-map-panel/mini-map-panel.js +79 -0
- package/dist/components/atoms/multi-select-lasso/multi-select-lasso.js +76 -0
- package/dist/components/atoms/native-select/native-select.js +28 -0
- package/dist/components/atoms/navigation-menu/navigation-menu.js +133 -0
- package/dist/components/atoms/number-ticker/number-ticker.js +69 -0
- package/dist/components/atoms/object-handle/object-handle.js +41 -0
- package/dist/components/atoms/object-inspector/object-inspector.js +134 -0
- package/dist/components/atoms/order-book/order-book.js +139 -0
- package/dist/components/atoms/panel/panel.js +95 -0
- package/dist/components/atoms/particles/particles.js +52 -0
- package/dist/components/atoms/password-input/password-input.js +44 -0
- package/dist/components/atoms/phone-input/phone-input.js +63 -0
- package/dist/components/atoms/playback-ghost/playback-ghost.js +89 -0
- package/dist/components/atoms/policy-delivery-panel/policy-delivery-panel.js +99 -0
- package/dist/components/atoms/popover/popover.js +33 -0
- package/dist/components/atoms/presence-stack/presence-stack.js +111 -0
- package/dist/components/atoms/presence-sync-indicator/presence-sync-indicator.js +73 -0
- package/dist/components/atoms/pro-tip/pro-tip.js +148 -0
- package/dist/components/atoms/progress-bar/progress-bar.js +56 -0
- package/dist/components/atoms/progressive-blur/progressive-blur.js +48 -0
- package/dist/components/atoms/prompt-input/prompt-input.js +191 -0
- package/dist/components/atoms/property-section/property-section.js +99 -0
- package/dist/components/atoms/prose/prose.js +21 -0
- package/dist/components/atoms/qr-code/qr-code.js +73 -0
- package/dist/components/atoms/quiz/quiz.js +222 -0
- package/dist/components/atoms/radio-group/radio-group.js +43 -0
- package/dist/components/atoms/rating/rating.js +132 -0
- package/dist/components/atoms/reasoning/reasoning.js +133 -0
- package/dist/components/atoms/relationship-inspector/relationship-inspector.js +102 -0
- package/dist/components/atoms/resizable/resizable.js +39 -0
- package/dist/components/atoms/reveal-text/reveal-text.js +93 -0
- package/dist/components/atoms/right-dock/right-dock.js +33 -0
- package/dist/components/atoms/routing-assignment-panel/routing-assignment-panel.js +122 -0
- package/dist/components/atoms/runtime-overview-panel/runtime-overview-panel.js +89 -0
- package/dist/components/atoms/scramble-text/scramble-text.js +70 -0
- package/dist/components/atoms/scroll-area/scroll-area.js +90 -0
- package/dist/components/atoms/scroll-progress/scroll-progress.js +59 -0
- package/dist/components/atoms/search-field/search-field.js +67 -0
- package/dist/components/atoms/segmented-control/segmented-control.js +70 -0
- package/dist/components/atoms/select/select.js +156 -0
- package/dist/components/atoms/selection-halo/selection-halo.js +71 -0
- package/dist/components/atoms/selection-presence/selection-presence.js +52 -0
- package/dist/components/atoms/separator/separator.js +28 -0
- package/dist/components/atoms/severity-badge/severity-badge.js +163 -0
- package/dist/components/atoms/sheet/sheet.js +133 -0
- package/dist/components/atoms/shimmer-button/shimmer-button.js +41 -0
- package/dist/components/atoms/shimmer-text/shimmer-text.js +40 -0
- package/dist/components/atoms/shine-border/shine-border.js +35 -0
- package/dist/components/atoms/shiny-button/shiny-button.js +39 -0
- package/dist/components/atoms/skeleton/skeleton.js +20 -0
- package/dist/components/atoms/slider/slider.js +38 -0
- package/dist/components/atoms/snap-guides/snap-guides.js +46 -0
- package/dist/components/atoms/social-fab/social-fab.js +212 -0
- package/dist/components/atoms/sparkles/sparkles.js +51 -0
- package/dist/components/atoms/sparkline-grid/sparkline-grid.js +92 -0
- package/dist/components/atoms/spinner/spinner.js +24 -0
- package/dist/components/atoms/spinner/unicode-spinner.js +712 -0
- package/dist/components/atoms/spinning-text/spinning-text.js +60 -0
- package/dist/components/atoms/spotlight-card/spotlight-card.js +77 -0
- package/dist/components/atoms/state-badge-overlay/state-badge-overlay.js +90 -0
- package/dist/components/atoms/status-indicator/status-indicator.js +173 -0
- package/dist/components/atoms/step-by-step/step-by-step.js +191 -0
- package/dist/components/atoms/step-navigation/step-navigation.js +100 -0
- package/dist/components/atoms/stepper/stepper.js +118 -0
- package/dist/components/atoms/sticky-metric/sticky-metric.js +81 -0
- package/dist/components/atoms/switch/switch.js +31 -0
- package/dist/components/atoms/table/table.js +118 -0
- package/dist/components/atoms/table-of-contents/table-of-contents.js +70 -0
- package/dist/components/atoms/table-of-contents-panel/table-of-contents-panel.js +244 -0
- package/dist/components/atoms/tabs/tabs.js +227 -0
- package/dist/components/atoms/tag-group/tag-group.js +127 -0
- package/dist/components/atoms/tags-input/tags-input.js +185 -0
- package/dist/components/atoms/text/text.js +48 -0
- package/dist/components/atoms/text-animate/text-animate.js +129 -0
- package/dist/components/atoms/text-reveal/text-reveal.js +105 -0
- package/dist/components/atoms/text-shimmer/text-shimmer.js +33 -0
- package/dist/components/atoms/textarea/textarea.js +23 -0
- package/dist/components/atoms/theme-preset-provider/theme-preset-provider.js +69 -0
- package/dist/components/atoms/theme-switcher/theme-switcher.js +54 -0
- package/dist/components/atoms/thinking-block/thinking-block.js +58 -0
- package/dist/components/atoms/thread-bubble/thread-bubble.js +85 -0
- package/dist/components/atoms/threshold-ring/threshold-ring.js +158 -0
- package/dist/components/atoms/tilt-card/tilt-card.js +115 -0
- package/dist/components/atoms/time-field/time-field.js +42 -0
- package/dist/components/atoms/timeline/timeline.js +243 -0
- package/dist/components/atoms/timeline-scrubber/timeline-scrubber.js +181 -0
- package/dist/components/atoms/tldr-section/tldr-section.js +111 -0
- package/dist/components/atoms/toast/sonner-toast.js +4 -0
- package/dist/components/atoms/toast/toast.js +104 -0
- package/dist/components/atoms/toast/toaster.js +44 -0
- package/dist/components/atoms/toggle/toggle.js +44 -0
- package/dist/components/atoms/toolbar/toolbar.js +88 -0
- package/dist/components/atoms/tooltip/tooltip.js +31 -0
- package/dist/components/atoms/top-bar/top-bar.js +37 -0
- package/dist/components/atoms/truncated-text/truncated-text.js +25 -0
- package/dist/components/atoms/tutorial-intro-content/tutorial-intro-content.js +138 -0
- package/dist/components/atoms/typewriter/typewriter.js +69 -0
- package/dist/components/atoms/typography/typography.js +173 -0
- package/dist/components/atoms/video-embed/video-embed.js +79 -0
- package/dist/components/atoms/view-switcher/view-switcher.js +103 -0
- package/dist/components/atoms/viewport-bookmarks/viewport-bookmarks.js +118 -0
- package/dist/components/atoms/watchlist/watchlist.js +107 -0
- package/dist/components/atoms/workspace-switcher/workspace-switcher.js +96 -0
- package/dist/components/atoms/world-breadcrumbs/world-breadcrumbs.js +112 -0
- package/dist/components/index.js +488 -325
- package/dist/components/molecules/activity-log/activity-log.js +256 -0
- package/dist/components/molecules/ai-artifact/ai-artifact.js +490 -0
- package/dist/components/molecules/ai-chat-input/ai-chat-input.js +114 -0
- package/dist/components/molecules/ai-message-bubble/ai-message-bubble.js +117 -0
- package/dist/components/molecules/ai-sidebar/ai-sidebar.js +277 -0
- package/dist/components/molecules/ai-tool-call-display/ai-tool-call-display.js +91 -0
- package/dist/components/molecules/alert-dialog/alert-dialog.js +140 -0
- package/dist/components/molecules/annotation/annotation.js +53 -0
- package/dist/components/molecules/auto-reload/auto-reload.js +405 -0
- package/dist/components/molecules/avatar-group/avatar-group.js +87 -0
- package/dist/components/molecules/blog-card/blog-card.js +52 -0
- package/dist/components/molecules/calendar/calendar.js +71 -0
- package/dist/components/molecules/carousel/carousel.js +265 -0
- package/dist/components/molecules/category-filter/category-filter.js +34 -0
- package/dist/components/molecules/chat-dock-section/chat-dock-section.js +54 -0
- package/dist/components/molecules/checkbox-group/checkbox-group.js +98 -0
- package/dist/components/molecules/civilization-card/civilization-card.js +278 -0
- package/dist/components/molecules/color-picker/color-picker.js +146 -0
- package/dist/components/molecules/command/command.js +166 -0
- package/dist/components/molecules/completion-dialog/completion-dialog.js +163 -0
- package/dist/components/molecules/connector-edge/connector-edge.js +72 -0
- package/dist/components/molecules/content-intro/content-intro.js +196 -0
- package/dist/components/molecules/conversation-thread/conversation-thread.js +373 -0
- package/dist/components/molecules/cookie-consent/cookie-consent.js +174 -0
- package/dist/components/molecules/copy-button/copy-button.js +146 -0
- package/dist/components/molecules/copy-button/use-copy-to-clipboard.js +42 -0
- package/dist/components/molecules/countdown-timer/countdown-timer.js +157 -0
- package/dist/components/molecules/credit-badge/credit-badge.js +57 -0
- package/dist/components/molecules/exercise/exercise.js +120 -0
- package/dist/components/molecules/field/field.js +137 -0
- package/dist/components/molecules/file-upload/file-upload.js +225 -0
- package/dist/components/molecules/filter-bar/filter-bar.js +263 -0
- package/dist/components/molecules/flashcard/flashcard.js +72 -0
- package/dist/components/molecules/form/form.js +451 -0
- package/dist/components/molecules/historical-figure-card/historical-figure-card.js +272 -0
- package/dist/components/molecules/horizontal-scroll-row/horizontal-scroll-row.js +67 -0
- package/dist/components/molecules/inline-input/inline-input.js +49 -0
- package/dist/components/molecules/knowledge-check/knowledge-check.js +465 -0
- package/dist/components/molecules/live-feed/live-feed.js +145 -0
- package/dist/components/molecules/metric-gauge/metric-gauge.js +211 -0
- package/dist/components/molecules/model-comparison/model-comparison.js +239 -0
- package/dist/components/molecules/newsletter-signup/newsletter-signup.js +278 -0
- package/dist/components/molecules/number-input/number-input.js +174 -0
- package/dist/components/molecules/object-card/object-card.js +125 -0
- package/dist/components/molecules/overview-board/overview-board.js +132 -0
- package/dist/components/molecules/pagination/pagination.js +76 -0
- package/dist/components/molecules/plan-badge/plan-badge.js +65 -0
- package/dist/components/molecules/pricing-table/pricing-table.js +285 -0
- package/dist/components/molecules/profile-section/profile-section.js +46 -0
- package/dist/components/molecules/progress-card/progress-card.js +82 -0
- package/dist/components/molecules/progress-tracker/progress-tracker.js +672 -0
- package/dist/components/molecules/prompt-templates/prompt-templates.js +395 -0
- package/dist/components/molecules/role-badge/role-badge.js +53 -0
- package/dist/components/molecules/scope-selector/scope-selector.js +339 -0
- package/dist/components/molecules/search-bar/search-bar.js +153 -0
- package/dist/components/molecules/sidebar/sidebar.js +520 -0
- package/dist/components/molecules/sidebar-toggle/sidebar-toggle.js +38 -0
- package/dist/components/molecules/stat-card/stat-card.js +105 -0
- package/dist/components/molecules/status-board/status-board.js +149 -0
- package/dist/components/molecules/text-field/text-field.js +59 -0
- package/dist/components/molecules/theme-toggle/theme-toggle.js +170 -0
- package/dist/components/molecules/ticker-tape/ticker-tape.js +135 -0
- package/dist/components/molecules/time-picker/time-picker.js +156 -0
- package/dist/components/molecules/toggle-group/toggle-group.js +60 -0
- package/dist/components/molecules/tour/tour.js +171 -0
- package/dist/components/molecules/transaction-list/transaction-list.js +259 -0
- package/dist/components/molecules/tutorial-card/tutorial-card.js +80 -0
- package/dist/components/molecules/tutorial-filters/tutorial-filters.js +205 -0
- package/dist/components/molecules/usage-breakdown/usage-breakdown.js +144 -0
- package/dist/components/molecules/world-clock-bar/world-clock-bar.js +95 -0
- package/dist/components/molecules/zoom-hud/zoom-hud.js +67 -0
- package/dist/components/organisms/activity-heatmap/activity-heatmap.js +164 -0
- package/dist/components/organisms/candlestick-chart/candlestick-chart.js +214 -0
- package/dist/components/organisms/canvas-view/canvas-view.js +498 -0
- package/dist/components/organisms/chart/area-chart.js +99 -0
- package/dist/components/organisms/chart/bar-chart.js +78 -0
- package/dist/components/organisms/chart/line-chart.js +97 -0
- package/dist/components/organisms/choropleth-map/choropleth-map.js +393 -0
- package/dist/components/organisms/chronological-timeline/chronological-timeline.js +343 -0
- package/dist/components/organisms/code-block/code-block.js +171 -0
- package/dist/components/organisms/code-playground/code-playground.js +95 -0
- package/dist/components/organisms/combobox/combobox.js +170 -0
- package/dist/components/organisms/contribution-graph/contribution-graph.js +118 -0
- package/dist/components/organisms/data-table/data-table.js +263 -0
- package/dist/components/organisms/date-picker/date-picker.js +86 -0
- package/dist/components/organisms/date-range-picker/date-range-picker.js +89 -0
- package/dist/components/organisms/flow-diagram/flow-canvas.js +112 -0
- package/dist/components/organisms/flow-diagram/flow-controls.js +146 -0
- package/dist/components/organisms/flow-diagram/flow-diagram.js +114 -0
- package/dist/components/organisms/flow-diagram/flow-error-boundary.js +63 -0
- package/dist/components/organisms/flow-diagram/flow-fullscreen.js +52 -0
- package/dist/components/organisms/flow-diagram/index.js +14 -0
- package/dist/components/organisms/flow-diagram/use-flow-diagram.js +149 -0
- package/dist/components/organisms/gantt-chart/gantt-chart.js +336 -0
- package/dist/components/organisms/geography-quiz-map/geography-quiz-map.js +377 -0
- package/dist/components/organisms/globe-3d/globe-3d.js +433 -0
- package/dist/components/organisms/heat-map-overlay/heat-map-overlay.js +215 -0
- package/dist/components/organisms/historic-timeline/historic-timeline.js +340 -0
- package/dist/components/organisms/interactive-timeline/interactive-timeline.js +752 -0
- package/dist/components/organisms/map-2d/map-2d.js +477 -0
- package/dist/components/organisms/map-timeline/map-timeline.js +527 -0
- package/dist/components/organisms/market-treemap/market-treemap.js +111 -0
- package/dist/components/organisms/mdx-content/mdx-content.js +163 -0
- package/dist/components/organisms/model-selector/model-selector.js +400 -0
- package/dist/components/organisms/multi-select/multi-select.js +273 -0
- package/dist/components/organisms/navbar-saas/navbar-saas.js +91 -0
- package/dist/components/organisms/parallel-timeline/parallel-timeline.js +250 -0
- package/dist/components/organisms/pie-chart/pie-chart.js +130 -0
- package/dist/components/organisms/primary-source-viewer/primary-source-viewer.js +488 -0
- package/dist/components/organisms/radar-chart/radar-chart.js +180 -0
- package/dist/components/organisms/range-calendar/range-calendar.js +35 -0
- package/dist/components/organisms/route-map/route-map.js +341 -0
- package/dist/components/organisms/run-timeline/run-timeline.js +219 -0
- package/dist/components/organisms/sankey-chart/sankey-chart.js +255 -0
- package/dist/components/organisms/search-dialog/search-dialog.js +535 -0
- package/dist/components/organisms/share-dialog/share-dialog.js +133 -0
- package/dist/components/organisms/slideshow/slideshow.js +551 -0
- package/dist/components/organisms/static-code/static-code-copy.js +24 -0
- package/dist/components/organisms/static-code/static-code.js +41 -0
- package/dist/components/organisms/story-map/story-map.js +420 -0
- package/dist/components/organisms/subscription-card/subscription-card.js +161 -0
- package/dist/components/organisms/terminal/terminal.js +135 -0
- package/dist/components/organisms/tree-view/tree-view.js +331 -0
- package/dist/components/organisms/tutorial-complete/tutorial-complete.js +205 -0
- package/dist/components/organisms/tutorial-mdx/tutorial-mdx.js +225 -0
- package/dist/components/organisms/wallet-card/wallet-card.js +113 -0
- package/dist/components/templates/canvas-shell/canvas-shell.js +266 -0
- package/dist/index.d.ts +1359 -1047
- package/dist/index.js +14 -0
- package/dist/lib/focus-calendar-day.js +13 -0
- package/dist/lib/roving-focus.js +70 -0
- package/dist/lib/use-escape-key.js +6 -3
- package/dist/lib/use-event-callback.js +15 -0
- package/dist/lib/use-focus-containment.js +74 -0
- package/dist/lib/use-return-focus.js +23 -0
- package/dist/types/side-effect-imports.d.js +0 -0
- package/package.json +70 -72
- package/styles.css +35 -6
- package/themes/default.css +6 -6
- package/themes/presets.css +76 -76
- package/dist/components/accordion/accordion.js +0 -166
- package/dist/components/accordion/index.js +0 -12
- package/dist/components/activity-heatmap/activity-heatmap.js +0 -164
- package/dist/components/activity-heatmap/index.js +0 -6
- package/dist/components/activity-log/activity-log.js +0 -256
- package/dist/components/activity-log/index.js +0 -6
- package/dist/components/agent-activity/agent-activity.js +0 -331
- package/dist/components/agent-activity/index.js +0 -18
- package/dist/components/ai-artifact/ai-artifact.js +0 -478
- package/dist/components/ai-artifact/index.js +0 -24
- package/dist/components/ai-chat-input/ai-chat-input.js +0 -107
- package/dist/components/ai-chat-input/index.js +0 -4
- package/dist/components/ai-message-bubble/ai-message-bubble.js +0 -117
- package/dist/components/ai-message-bubble/index.js +0 -6
- package/dist/components/ai-sidebar/ai-sidebar.js +0 -277
- package/dist/components/ai-sidebar/index.js +0 -22
- package/dist/components/ai-source-citation/ai-source-citation.js +0 -45
- package/dist/components/ai-source-citation/index.js +0 -6
- package/dist/components/ai-streaming-text/ai-streaming-text.js +0 -39
- package/dist/components/ai-streaming-text/index.js +0 -6
- package/dist/components/ai-tool-call-display/ai-tool-call-display.js +0 -91
- package/dist/components/ai-tool-call-display/index.js +0 -6
- package/dist/components/alert/alert.js +0 -66
- package/dist/components/alert/index.js +0 -7
- package/dist/components/alert-dialog/alert-dialog.js +0 -140
- package/dist/components/alert-dialog/index.js +0 -26
- package/dist/components/alert-pulse/alert-pulse.js +0 -93
- package/dist/components/alert-pulse/index.js +0 -6
- package/dist/components/anchor-port/anchor-port.js +0 -49
- package/dist/components/anchor-port/index.js +0 -4
- package/dist/components/animated-beam/animated-beam.js +0 -157
- package/dist/components/animated-beam/index.js +0 -4
- package/dist/components/animated-grid-pattern/animated-grid-pattern.js +0 -81
- package/dist/components/animated-grid-pattern/index.js +0 -6
- package/dist/components/animated-list/animated-list.js +0 -28
- package/dist/components/animated-list/index.js +0 -4
- package/dist/components/animated-tabs/animated-tabs.js +0 -98
- package/dist/components/animated-tabs/index.js +0 -6
- package/dist/components/animated-testimonials/animated-testimonials.js +0 -97
- package/dist/components/animated-testimonials/index.js +0 -6
- package/dist/components/animated-text/animated-text.js +0 -328
- package/dist/components/animated-text/index.js +0 -4
- package/dist/components/animated-tooltip/animated-tooltip.js +0 -58
- package/dist/components/animated-tooltip/index.js +0 -6
- package/dist/components/annotation/annotation.js +0 -49
- package/dist/components/annotation/index.js +0 -8
- package/dist/components/aspect-ratio/index.js +0 -4
- package/dist/components/auto-reload/auto-reload.js +0 -405
- package/dist/components/auto-reload/index.js +0 -6
- package/dist/components/avatar/avatar.js +0 -54
- package/dist/components/avatar/index.js +0 -6
- package/dist/components/avatar-group/avatar-group.js +0 -87
- package/dist/components/avatar-group/index.js +0 -10
- package/dist/components/badge/badge.js +0 -26
- package/dist/components/badge/index.js +0 -5
- package/dist/components/banner/banner.js +0 -158
- package/dist/components/banner/index.js +0 -10
- package/dist/components/bento-grid/bento-grid.js +0 -46
- package/dist/components/bento-grid/index.js +0 -8
- package/dist/components/blog-card/blog-card.js +0 -52
- package/dist/components/blog-card/index.js +0 -5
- package/dist/components/blur-reveal/blur-reveal.js +0 -83
- package/dist/components/blur-reveal/index.js +0 -4
- package/dist/components/border-beam/border-beam.js +0 -49
- package/dist/components/border-beam/index.js +0 -4
- package/dist/components/bottom-activity-strip/bottom-activity-strip.js +0 -91
- package/dist/components/bottom-activity-strip/index.js +0 -6
- package/dist/components/bottom-bar/bottom-bar.js +0 -29
- package/dist/components/bottom-bar/index.js +0 -4
- package/dist/components/breadcrumb/breadcrumb.js +0 -68
- package/dist/components/breadcrumb/index.js +0 -4
- package/dist/components/button/button.js +0 -52
- package/dist/components/button/index.js +0 -5
- package/dist/components/button-group/button-group.js +0 -37
- package/dist/components/button-group/index.js +0 -8
- package/dist/components/calendar/calendar.js +0 -71
- package/dist/components/calendar/index.js +0 -4
- package/dist/components/callout/callout.js +0 -59
- package/dist/components/callout/index.js +0 -4
- package/dist/components/candlestick-chart/candlestick-chart.js +0 -214
- package/dist/components/candlestick-chart/index.js +0 -6
- package/dist/components/canvas-shell/canvas-shell.js +0 -266
- package/dist/components/canvas-shell/index.js +0 -4
- package/dist/components/canvas-view/canvas-view.js +0 -502
- package/dist/components/canvas-view/index.js +0 -6
- package/dist/components/card/card.js +0 -87
- package/dist/components/card/index.js +0 -16
- package/dist/components/card-flip/card-flip.js +0 -67
- package/dist/components/card-flip/index.js +0 -4
- package/dist/components/carousel/carousel.js +0 -265
- package/dist/components/carousel/index.js +0 -14
- package/dist/components/category-filter/category-filter.js +0 -34
- package/dist/components/category-filter/index.js +0 -4
- package/dist/components/chain-of-thought/chain-of-thought.js +0 -78
- package/dist/components/chain-of-thought/index.js +0 -6
- package/dist/components/chart/area-chart.js +0 -99
- package/dist/components/chart/bar-chart.js +0 -78
- package/dist/components/chart/index.js +0 -3
- package/dist/components/chart/line-chart.js +0 -97
- package/dist/components/chat-dock-section/chat-dock-section.js +0 -54
- package/dist/components/chat-dock-section/index.js +0 -6
- package/dist/components/checkbox/checkbox.js +0 -31
- package/dist/components/checkbox/index.js +0 -4
- package/dist/components/checkbox-group/checkbox-group.js +0 -98
- package/dist/components/checkbox-group/index.js +0 -8
- package/dist/components/checklist/checklist.js +0 -216
- package/dist/components/checklist/index.js +0 -14
- package/dist/components/choropleth-map/choropleth-map.js +0 -386
- package/dist/components/choropleth-map/index.js +0 -10
- package/dist/components/chronological-timeline/chronological-timeline.js +0 -346
- package/dist/components/chronological-timeline/index.js +0 -8
- package/dist/components/civilization-card/civilization-card.js +0 -278
- package/dist/components/civilization-card/index.js +0 -8
- package/dist/components/code-block/code-block.js +0 -144
- package/dist/components/code-block/index.js +0 -4
- package/dist/components/code-playground/code-playground.js +0 -88
- package/dist/components/code-playground/index.js +0 -8
- package/dist/components/collapsible/index.js +0 -10
- package/dist/components/color-picker/color-picker.js +0 -133
- package/dist/components/color-picker/index.js +0 -4
- package/dist/components/combobox/combobox.js +0 -148
- package/dist/components/combobox/index.js +0 -4
- package/dist/components/command/command.js +0 -150
- package/dist/components/command/index.js +0 -22
- package/dist/components/comment-pin/comment-pin.js +0 -102
- package/dist/components/comment-pin/index.js +0 -6
- package/dist/components/comparison/comparison.js +0 -122
- package/dist/components/comparison/index.js +0 -8
- package/dist/components/completion-dialog/completion-dialog.js +0 -181
- package/dist/components/completion-dialog/index.js +0 -6
- package/dist/components/connector-edge/connector-edge.js +0 -71
- package/dist/components/connector-edge/index.js +0 -6
- package/dist/components/content-intro/content-intro.js +0 -151
- package/dist/components/content-intro/index.js +0 -6
- package/dist/components/context-lens/context-lens.js +0 -99
- package/dist/components/context-lens/index.js +0 -6
- package/dist/components/context-menu/context-menu.js +0 -192
- package/dist/components/context-menu/index.js +0 -34
- package/dist/components/contribution-graph/contribution-graph.js +0 -118
- package/dist/components/contribution-graph/index.js +0 -6
- package/dist/components/conversation-thread/conversation-thread.js +0 -372
- package/dist/components/conversation-thread/index.js +0 -20
- package/dist/components/cookie-consent/cookie-consent.js +0 -174
- package/dist/components/cookie-consent/index.js +0 -8
- package/dist/components/copy-button/copy-button.js +0 -186
- package/dist/components/copy-button/index.js +0 -8
- package/dist/components/countdown-timer/countdown-timer.js +0 -157
- package/dist/components/countdown-timer/index.js +0 -4
- package/dist/components/credit-badge/credit-badge.js +0 -57
- package/dist/components/credit-badge/index.js +0 -6
- package/dist/components/curriculum/curriculum.js +0 -349
- package/dist/components/curriculum/index.js +0 -10
- package/dist/components/cursor/cursor.js +0 -52
- package/dist/components/cursor/index.js +0 -4
- package/dist/components/data-list/data-list.js +0 -114
- package/dist/components/data-list/index.js +0 -16
- package/dist/components/data-table/data-table.js +0 -243
- package/dist/components/data-table/index.js +0 -6
- package/dist/components/date-field/date-field.js +0 -42
- package/dist/components/date-field/index.js +0 -4
- package/dist/components/date-picker/date-picker.js +0 -68
- package/dist/components/date-picker/index.js +0 -4
- package/dist/components/date-range-picker/date-range-picker.js +0 -73
- package/dist/components/date-range-picker/index.js +0 -6
- package/dist/components/dialog/dialog.js +0 -121
- package/dist/components/dialog/index.js +0 -24
- package/dist/components/display/display.js +0 -22
- package/dist/components/display/index.js +0 -4
- package/dist/components/dock/dock.js +0 -109
- package/dist/components/dock/index.js +0 -5
- package/dist/components/document-sibling-nav/document-sibling-nav.js +0 -116
- package/dist/components/document-sibling-nav/index.js +0 -8
- package/dist/components/dot-pattern/dot-pattern.js +0 -36
- package/dist/components/dot-pattern/index.js +0 -4
- package/dist/components/drawer/drawer.js +0 -118
- package/dist/components/drawer/index.js +0 -24
- package/dist/components/dropdown-menu/dropdown-menu.js +0 -190
- package/dist/components/dropdown-menu/index.js +0 -34
- package/dist/components/edge-label/edge-label.js +0 -28
- package/dist/components/edge-label/index.js +0 -4
- package/dist/components/empty-state/empty-state.js +0 -89
- package/dist/components/empty-state/index.js +0 -8
- package/dist/components/era-comparison/era-comparison.js +0 -229
- package/dist/components/era-comparison/index.js +0 -16
- package/dist/components/exercise/exercise.js +0 -120
- package/dist/components/exercise/index.js +0 -4
- package/dist/components/expandable-cards/expandable-cards.js +0 -61
- package/dist/components/expandable-cards/index.js +0 -6
- package/dist/components/faq/faq.js +0 -60
- package/dist/components/faq/index.js +0 -5
- package/dist/components/field/field.js +0 -137
- package/dist/components/field/index.js +0 -16
- package/dist/components/fieldset/fieldset.js +0 -49
- package/dist/components/fieldset/index.js +0 -10
- package/dist/components/file-upload/file-upload.js +0 -223
- package/dist/components/file-upload/index.js +0 -4
- package/dist/components/filter-bar/filter-bar.js +0 -245
- package/dist/components/filter-bar/index.js +0 -6
- package/dist/components/flashcard/flashcard.js +0 -72
- package/dist/components/flashcard/index.js +0 -4
- package/dist/components/floating-action-button/floating-action-button.js +0 -35
- package/dist/components/floating-action-button/index.js +0 -6
- package/dist/components/floating-navbar/floating-navbar.js +0 -67
- package/dist/components/floating-navbar/index.js +0 -4
- package/dist/components/floating-toolbar/floating-toolbar.js +0 -64
- package/dist/components/floating-toolbar/index.js +0 -6
- package/dist/components/flow-diagram/flow-canvas.js +0 -109
- package/dist/components/flow-diagram/flow-controls.js +0 -140
- package/dist/components/flow-diagram/flow-diagram.js +0 -114
- package/dist/components/flow-diagram/flow-error-boundary.js +0 -63
- package/dist/components/flow-diagram/flow-fullscreen.js +0 -48
- package/dist/components/flow-diagram/index.js +0 -12
- package/dist/components/flow-diagram/use-flow-diagram.js +0 -135
- package/dist/components/follow-mode/follow-mode.js +0 -87
- package/dist/components/follow-mode/index.js +0 -6
- package/dist/components/form/form.js +0 -451
- package/dist/components/form/index.js +0 -20
- package/dist/components/gantt-chart/gantt-chart.js +0 -332
- package/dist/components/gantt-chart/index.js +0 -6
- package/dist/components/gauge-chart/gauge-chart.js +0 -132
- package/dist/components/gauge-chart/index.js +0 -4
- package/dist/components/geography-quiz-map/geography-quiz-map.js +0 -354
- package/dist/components/geography-quiz-map/index.js +0 -12
- package/dist/components/glass-card/glass-card.js +0 -25
- package/dist/components/glass-card/index.js +0 -4
- package/dist/components/glass-panel/glass-panel.js +0 -23
- package/dist/components/glass-panel/index.js +0 -4
- package/dist/components/glass-progress/glass-progress.js +0 -39
- package/dist/components/glass-progress/index.js +0 -4
- package/dist/components/globe-3d/globe-3d.js +0 -433
- package/dist/components/globe-3d/index.js +0 -10
- package/dist/components/grid/grid.js +0 -100
- package/dist/components/grid/index.js +0 -4
- package/dist/components/group-hull/group-hull.js +0 -34
- package/dist/components/group-hull/index.js +0 -4
- package/dist/components/handoff-beacon/handoff-beacon.js +0 -76
- package/dist/components/handoff-beacon/index.js +0 -6
- package/dist/components/heading/heading.js +0 -40
- package/dist/components/heading/index.js +0 -4
- package/dist/components/heat-map-overlay/heat-map-overlay.js +0 -215
- package/dist/components/heat-map-overlay/index.js +0 -6
- package/dist/components/heat-overlay/heat-overlay.js +0 -93
- package/dist/components/heat-overlay/index.js +0 -6
- package/dist/components/historic-timeline/historic-timeline.js +0 -340
- package/dist/components/historic-timeline/index.js +0 -6
- package/dist/components/historical-figure-card/historical-figure-card.js +0 -272
- package/dist/components/historical-figure-card/index.js +0 -6
- package/dist/components/horizontal-scroll-row/horizontal-scroll-row.js +0 -67
- package/dist/components/horizontal-scroll-row/index.js +0 -6
- package/dist/components/hover-card/hover-card.js +0 -31
- package/dist/components/hover-card/index.js +0 -6
- package/dist/components/infinite-plane/index.js +0 -6
- package/dist/components/infinite-plane/infinite-plane.js +0 -73
- package/dist/components/inline-input/index.js +0 -4
- package/dist/components/inline-input/inline-input.js +0 -42
- package/dist/components/input/index.js +0 -4
- package/dist/components/input/input.js +0 -25
- package/dist/components/input-group/index.js +0 -14
- package/dist/components/input-group/input-group.js +0 -73
- package/dist/components/input-otp/index.js +0 -12
- package/dist/components/input-otp/input-otp.js +0 -71
- package/dist/components/interactive-timeline/index.js +0 -16
- package/dist/components/interactive-timeline/interactive-timeline.js +0 -752
- package/dist/components/item/index.js +0 -18
- package/dist/components/item/item.js +0 -118
- package/dist/components/jarvis-dock/index.js +0 -6
- package/dist/components/jarvis-dock/jarvis-dock.js +0 -96
- package/dist/components/kbd/index.js +0 -5
- package/dist/components/kbd/kbd.js +0 -114
- package/dist/components/key-concept/index.js +0 -8
- package/dist/components/key-concept/key-concept.js +0 -80
- package/dist/components/keyboard-shortcuts-help/index.js +0 -6
- package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +0 -111
- package/dist/components/knowledge-check/index.js +0 -6
- package/dist/components/knowledge-check/knowledge-check.js +0 -465
- package/dist/components/label/index.js +0 -4
- package/dist/components/label/label.js +0 -24
- package/dist/components/lang-provider/index.js +0 -4
- package/dist/components/learning-objectives/index.js +0 -10
- package/dist/components/learning-objectives/learning-objectives.js +0 -77
- package/dist/components/left-rail/index.js +0 -4
- package/dist/components/left-rail/left-rail.js +0 -29
- package/dist/components/link/index.js +0 -5
- package/dist/components/link/link.js +0 -53
- package/dist/components/liquid-glass/index.js +0 -4
- package/dist/components/liquid-glass/liquid-glass.js +0 -39
- package/dist/components/list-box/index.js +0 -8
- package/dist/components/list-box/list-box.js +0 -130
- package/dist/components/live-cursor/index.js +0 -6
- package/dist/components/live-cursor/live-cursor.js +0 -60
- package/dist/components/live-feed/index.js +0 -4
- package/dist/components/live-feed/live-feed.js +0 -145
- package/dist/components/magnetic/index.js +0 -4
- package/dist/components/magnetic/magnetic.js +0 -63
- package/dist/components/magnetic-button/index.js +0 -4
- package/dist/components/magnetic-button/magnetic-button.js +0 -64
- package/dist/components/map-2d/index.js +0 -20
- package/dist/components/map-2d/map-2d.js +0 -474
- package/dist/components/map-timeline/index.js +0 -16
- package/dist/components/map-timeline/map-timeline.js +0 -527
- package/dist/components/market-treemap/index.js +0 -6
- package/dist/components/market-treemap/market-treemap.js +0 -104
- package/dist/components/marquee/index.js +0 -4
- package/dist/components/marquee/marquee.js +0 -97
- package/dist/components/mdx-content/index.js +0 -4
- package/dist/components/mdx-content/mdx-content.js +0 -164
- package/dist/components/menubar/index.js +0 -36
- package/dist/components/menubar/menubar.js +0 -230
- package/dist/components/meteors/index.js +0 -4
- package/dist/components/meteors/meteors.js +0 -62
- package/dist/components/meter/index.js +0 -5
- package/dist/components/meter/meter.js +0 -76
- package/dist/components/metric-cluster/index.js +0 -6
- package/dist/components/metric-cluster/metric-cluster.js +0 -94
- package/dist/components/metric-gauge/index.js +0 -6
- package/dist/components/metric-gauge/metric-gauge.js +0 -211
- package/dist/components/mini-map-panel/index.js +0 -6
- package/dist/components/mini-map-panel/mini-map-panel.js +0 -79
- package/dist/components/model-comparison/index.js +0 -12
- package/dist/components/model-comparison/model-comparison.js +0 -239
- package/dist/components/model-selector/index.js +0 -6
- package/dist/components/model-selector/model-selector.js +0 -383
- package/dist/components/multi-select/index.js +0 -6
- package/dist/components/multi-select/multi-select.js +0 -256
- package/dist/components/multi-select-lasso/index.js +0 -6
- package/dist/components/multi-select-lasso/multi-select-lasso.js +0 -76
- package/dist/components/native-select/index.js +0 -4
- package/dist/components/native-select/native-select.js +0 -28
- package/dist/components/navbar-saas/index.js +0 -6
- package/dist/components/navbar-saas/navbar-saas.js +0 -91
- package/dist/components/navigation-menu/index.js +0 -22
- package/dist/components/navigation-menu/navigation-menu.js +0 -133
- package/dist/components/newsletter-signup/index.js +0 -8
- package/dist/components/newsletter-signup/newsletter-signup.js +0 -271
- package/dist/components/number-input/index.js +0 -4
- package/dist/components/number-input/number-input.js +0 -168
- package/dist/components/number-ticker/index.js +0 -4
- package/dist/components/number-ticker/number-ticker.js +0 -69
- package/dist/components/object-card/index.js +0 -6
- package/dist/components/object-card/object-card.js +0 -124
- package/dist/components/object-handle/index.js +0 -4
- package/dist/components/object-handle/object-handle.js +0 -41
- package/dist/components/object-inspector/index.js +0 -6
- package/dist/components/object-inspector/object-inspector.js +0 -134
- package/dist/components/order-book/index.js +0 -6
- package/dist/components/order-book/order-book.js +0 -133
- package/dist/components/overview-board/index.js +0 -8
- package/dist/components/overview-board/overview-board.js +0 -131
- package/dist/components/pagination/index.js +0 -4
- package/dist/components/pagination/pagination.js +0 -44
- package/dist/components/panel/index.js +0 -16
- package/dist/components/panel/panel.js +0 -95
- package/dist/components/parallel-timeline/index.js +0 -6
- package/dist/components/parallel-timeline/parallel-timeline.js +0 -249
- package/dist/components/particles/index.js +0 -4
- package/dist/components/particles/particles.js +0 -52
- package/dist/components/password-input/index.js +0 -4
- package/dist/components/password-input/password-input.js +0 -44
- package/dist/components/phone-input/index.js +0 -6
- package/dist/components/phone-input/phone-input.js +0 -63
- package/dist/components/pie-chart/index.js +0 -4
- package/dist/components/pie-chart/pie-chart.js +0 -130
- package/dist/components/plan-badge/index.js +0 -6
- package/dist/components/plan-badge/plan-badge.js +0 -65
- package/dist/components/playback-ghost/index.js +0 -6
- package/dist/components/playback-ghost/playback-ghost.js +0 -81
- package/dist/components/policy-delivery-panel/index.js +0 -6
- package/dist/components/policy-delivery-panel/policy-delivery-panel.js +0 -99
- package/dist/components/popover/index.js +0 -12
- package/dist/components/popover/popover.js +0 -33
- package/dist/components/presence-stack/index.js +0 -6
- package/dist/components/presence-stack/presence-stack.js +0 -106
- package/dist/components/presence-sync-indicator/index.js +0 -6
- package/dist/components/presence-sync-indicator/presence-sync-indicator.js +0 -73
- package/dist/components/pricing-table/index.js +0 -8
- package/dist/components/pricing-table/pricing-table.js +0 -285
- package/dist/components/primary-source-viewer/index.js +0 -26
- package/dist/components/primary-source-viewer/primary-source-viewer.js +0 -488
- package/dist/components/pro-tip/index.js +0 -8
- package/dist/components/pro-tip/pro-tip.js +0 -139
- package/dist/components/profile-section/index.js +0 -4
- package/dist/components/profile-section/profile-section.js +0 -46
- package/dist/components/progress-bar/index.js +0 -4
- package/dist/components/progress-bar/progress-bar.js +0 -56
- package/dist/components/progress-card/index.js +0 -6
- package/dist/components/progress-card/progress-card.js +0 -72
- package/dist/components/progress-tracker/index.js +0 -20
- package/dist/components/progress-tracker/progress-tracker.js +0 -537
- package/dist/components/progressive-blur/index.js +0 -6
- package/dist/components/progressive-blur/progressive-blur.js +0 -48
- package/dist/components/prompt-input/index.js +0 -4
- package/dist/components/prompt-input/prompt-input.js +0 -185
- package/dist/components/prompt-templates/index.js +0 -6
- package/dist/components/prompt-templates/prompt-templates.js +0 -395
- package/dist/components/property-section/index.js +0 -6
- package/dist/components/property-section/property-section.js +0 -99
- package/dist/components/prose/index.js +0 -4
- package/dist/components/prose/prose.js +0 -21
- package/dist/components/qr-code/index.js +0 -4
- package/dist/components/qr-code/qr-code.js +0 -49
- package/dist/components/quiz/index.js +0 -4
- package/dist/components/quiz/quiz.js +0 -211
- package/dist/components/radar-chart/index.js +0 -6
- package/dist/components/radar-chart/radar-chart.js +0 -180
- package/dist/components/radio-group/index.js +0 -5
- package/dist/components/radio-group/radio-group.js +0 -43
- package/dist/components/range-calendar/index.js +0 -4
- package/dist/components/range-calendar/range-calendar.js +0 -35
- package/dist/components/rating/index.js +0 -4
- package/dist/components/rating/rating.js +0 -121
- package/dist/components/reasoning/index.js +0 -4
- package/dist/components/reasoning/reasoning.js +0 -124
- package/dist/components/relationship-inspector/index.js +0 -6
- package/dist/components/relationship-inspector/relationship-inspector.js +0 -102
- package/dist/components/resizable/index.js +0 -10
- package/dist/components/resizable/resizable.js +0 -39
- package/dist/components/reveal-text/index.js +0 -6
- package/dist/components/reveal-text/reveal-text.js +0 -93
- package/dist/components/right-dock/index.js +0 -4
- package/dist/components/right-dock/right-dock.js +0 -33
- package/dist/components/role-badge/index.js +0 -6
- package/dist/components/role-badge/role-badge.js +0 -53
- package/dist/components/route-map/index.js +0 -6
- package/dist/components/route-map/route-map.js +0 -341
- package/dist/components/routing-assignment-panel/index.js +0 -6
- package/dist/components/routing-assignment-panel/routing-assignment-panel.js +0 -122
- package/dist/components/run-timeline/index.js +0 -6
- package/dist/components/run-timeline/run-timeline.js +0 -219
- package/dist/components/runtime-overview-panel/index.js +0 -6
- package/dist/components/runtime-overview-panel/runtime-overview-panel.js +0 -89
- package/dist/components/sankey-chart/index.js +0 -6
- package/dist/components/sankey-chart/sankey-chart.js +0 -255
- package/dist/components/scope-selector/index.js +0 -6
- package/dist/components/scope-selector/scope-selector.js +0 -335
- package/dist/components/scramble-text/index.js +0 -4
- package/dist/components/scramble-text/scramble-text.js +0 -76
- package/dist/components/scroll-area/index.js +0 -5
- package/dist/components/scroll-area/scroll-area.js +0 -48
- package/dist/components/scroll-progress/index.js +0 -4
- package/dist/components/scroll-progress/scroll-progress.js +0 -50
- package/dist/components/search-bar/index.js +0 -4
- package/dist/components/search-bar/search-bar.js +0 -147
- package/dist/components/search-dialog/index.js +0 -4
- package/dist/components/search-dialog/search-dialog.js +0 -535
- package/dist/components/search-field/index.js +0 -4
- package/dist/components/search-field/search-field.js +0 -67
- package/dist/components/segmented-control/index.js +0 -12
- package/dist/components/segmented-control/segmented-control.js +0 -70
- package/dist/components/select/index.js +0 -24
- package/dist/components/select/select.js +0 -156
- package/dist/components/selection-halo/index.js +0 -6
- package/dist/components/selection-halo/selection-halo.js +0 -63
- package/dist/components/selection-presence/index.js +0 -6
- package/dist/components/selection-presence/selection-presence.js +0 -50
- package/dist/components/separator/index.js +0 -4
- package/dist/components/separator/separator.js +0 -28
- package/dist/components/severity-badge/index.js +0 -8
- package/dist/components/severity-badge/severity-badge.js +0 -163
- package/dist/components/share-dialog/index.js +0 -6
- package/dist/components/share-dialog/share-dialog.js +0 -119
- package/dist/components/share-section/index.js +0 -6
- package/dist/components/sheet/index.js +0 -24
- package/dist/components/sheet/sheet.js +0 -133
- package/dist/components/shimmer-button/index.js +0 -4
- package/dist/components/shimmer-button/shimmer-button.js +0 -41
- package/dist/components/shimmer-text/index.js +0 -4
- package/dist/components/shimmer-text/shimmer-text.js +0 -40
- package/dist/components/shine-border/index.js +0 -4
- package/dist/components/shine-border/shine-border.js +0 -38
- package/dist/components/shiny-button/index.js +0 -4
- package/dist/components/shiny-button/shiny-button.js +0 -39
- package/dist/components/sidebar/index.js +0 -4
- package/dist/components/sidebar/sidebar.js +0 -429
- package/dist/components/sidebar-provider/index.js +0 -5
- package/dist/components/sidebar-toggle/index.js +0 -4
- package/dist/components/sidebar-toggle/sidebar-toggle.js +0 -38
- package/dist/components/skeleton/index.js +0 -4
- package/dist/components/skeleton/skeleton.js +0 -17
- package/dist/components/slider/index.js +0 -4
- package/dist/components/slider/slider.js +0 -27
- package/dist/components/slideshow/index.js +0 -6
- package/dist/components/slideshow/slideshow.js +0 -520
- package/dist/components/snap-guides/index.js +0 -6
- package/dist/components/snap-guides/snap-guides.js +0 -45
- package/dist/components/social-fab/index.js +0 -6
- package/dist/components/social-fab/social-fab.js +0 -212
- package/dist/components/sparkles/index.js +0 -4
- package/dist/components/sparkles/sparkles.js +0 -51
- package/dist/components/sparkline-grid/index.js +0 -6
- package/dist/components/sparkline-grid/sparkline-grid.js +0 -92
- package/dist/components/spinner/index.js +0 -8
- package/dist/components/spinner/spinner.js +0 -23
- package/dist/components/spinner/unicode-spinner.js +0 -712
- package/dist/components/spinning-text/index.js +0 -4
- package/dist/components/spinning-text/spinning-text.js +0 -58
- package/dist/components/spotlight-card/index.js +0 -4
- package/dist/components/spotlight-card/spotlight-card.js +0 -53
- package/dist/components/stat-card/index.js +0 -5
- package/dist/components/stat-card/stat-card.js +0 -100
- package/dist/components/state-badge-overlay/index.js +0 -6
- package/dist/components/state-badge-overlay/state-badge-overlay.js +0 -90
- package/dist/components/static-code/index.js +0 -4
- package/dist/components/static-code/static-code-copy.js +0 -24
- package/dist/components/static-code/static-code.js +0 -41
- package/dist/components/status-board/index.js +0 -6
- package/dist/components/status-board/status-board.js +0 -143
- package/dist/components/status-indicator/index.js +0 -10
- package/dist/components/status-indicator/status-indicator.js +0 -173
- package/dist/components/step-by-step/index.js +0 -8
- package/dist/components/step-by-step/step-by-step.js +0 -196
- package/dist/components/step-navigation/index.js +0 -4
- package/dist/components/step-navigation/step-navigation.js +0 -119
- package/dist/components/stepper/index.js +0 -4
- package/dist/components/stepper/stepper.js +0 -117
- package/dist/components/sticky-metric/index.js +0 -6
- package/dist/components/sticky-metric/sticky-metric.js +0 -81
- package/dist/components/story-map/index.js +0 -8
- package/dist/components/story-map/story-map.js +0 -420
- package/dist/components/subscription-card/index.js +0 -6
- package/dist/components/subscription-card/subscription-card.js +0 -159
- package/dist/components/switch/index.js +0 -4
- package/dist/components/switch/switch.js +0 -31
- package/dist/components/table/index.js +0 -20
- package/dist/components/table/table.js +0 -118
- package/dist/components/table-of-contents/index.js +0 -4
- package/dist/components/table-of-contents/table-of-contents.js +0 -70
- package/dist/components/table-of-contents-panel/index.js +0 -6
- package/dist/components/table-of-contents-panel/table-of-contents-panel.js +0 -193
- package/dist/components/tabs/index.js +0 -12
- package/dist/components/tabs/tabs.js +0 -118
- package/dist/components/tag-group/index.js +0 -8
- package/dist/components/tag-group/tag-group.js +0 -127
- package/dist/components/tags-input/index.js +0 -4
- package/dist/components/tags-input/tags-input.js +0 -185
- package/dist/components/terminal/index.js +0 -8
- package/dist/components/terminal/terminal.js +0 -135
- package/dist/components/text/index.js +0 -5
- package/dist/components/text/text.js +0 -48
- package/dist/components/text-animate/index.js +0 -6
- package/dist/components/text-animate/text-animate.js +0 -129
- package/dist/components/text-field/index.js +0 -4
- package/dist/components/text-field/text-field.js +0 -59
- package/dist/components/text-reveal/index.js +0 -4
- package/dist/components/text-reveal/text-reveal.js +0 -90
- package/dist/components/text-shimmer/index.js +0 -4
- package/dist/components/text-shimmer/text-shimmer.js +0 -33
- package/dist/components/textarea/index.js +0 -4
- package/dist/components/textarea/textarea.js +0 -23
- package/dist/components/theme-preset-provider/index.js +0 -4
- package/dist/components/theme-preset-provider/theme-preset-provider.js +0 -55
- package/dist/components/theme-provider/index.js +0 -4
- package/dist/components/theme-switcher/index.js +0 -4
- package/dist/components/theme-switcher/theme-switcher.js +0 -43
- package/dist/components/theme-toggle/index.js +0 -4
- package/dist/components/theme-toggle/theme-toggle.js +0 -170
- package/dist/components/thinking-block/index.js +0 -4
- package/dist/components/thinking-block/thinking-block.js +0 -56
- package/dist/components/thread-bubble/index.js +0 -6
- package/dist/components/thread-bubble/thread-bubble.js +0 -83
- package/dist/components/threshold-ring/index.js +0 -6
- package/dist/components/threshold-ring/threshold-ring.js +0 -158
- package/dist/components/ticker-tape/index.js +0 -6
- package/dist/components/ticker-tape/ticker-tape.js +0 -107
- package/dist/components/tilt-card/index.js +0 -4
- package/dist/components/tilt-card/tilt-card.js +0 -70
- package/dist/components/time-field/index.js +0 -4
- package/dist/components/time-field/time-field.js +0 -42
- package/dist/components/time-picker/index.js +0 -4
- package/dist/components/time-picker/time-picker.js +0 -113
- package/dist/components/timeline/index.js +0 -12
- package/dist/components/timeline/timeline.js +0 -243
- package/dist/components/timeline-scrubber/index.js +0 -6
- package/dist/components/timeline-scrubber/timeline-scrubber.js +0 -181
- package/dist/components/tldr-section/index.js +0 -4
- package/dist/components/tldr-section/tldr-section.js +0 -106
- package/dist/components/toast/index.js +0 -18
- package/dist/components/toast/toast.js +0 -105
- package/dist/components/toast/toaster.js +0 -38
- package/dist/components/toggle/index.js +0 -5
- package/dist/components/toggle/toggle.js +0 -44
- package/dist/components/toggle-group/index.js +0 -5
- package/dist/components/toggle-group/toggle-group.js +0 -60
- package/dist/components/toolbar/index.js +0 -8
- package/dist/components/toolbar/toolbar.js +0 -87
- package/dist/components/tooltip/index.js +0 -12
- package/dist/components/tooltip/tooltip.js +0 -31
- package/dist/components/top-bar/index.js +0 -4
- package/dist/components/top-bar/top-bar.js +0 -37
- package/dist/components/tour/index.js +0 -4
- package/dist/components/tour/tour.js +0 -163
- package/dist/components/transaction-list/index.js +0 -14
- package/dist/components/transaction-list/transaction-list.js +0 -259
- package/dist/components/tree-view/index.js +0 -6
- package/dist/components/tree-view/tree-view.js +0 -294
- package/dist/components/truncated-text/index.js +0 -4
- package/dist/components/truncated-text/truncated-text.js +0 -25
- package/dist/components/tutorial-card/index.js +0 -6
- package/dist/components/tutorial-card/tutorial-card.js +0 -78
- package/dist/components/tutorial-complete/index.js +0 -6
- package/dist/components/tutorial-complete/tutorial-complete.js +0 -136
- package/dist/components/tutorial-filters/index.js +0 -6
- package/dist/components/tutorial-filters/tutorial-filters.js +0 -205
- package/dist/components/tutorial-intro-content/index.js +0 -6
- package/dist/components/tutorial-intro-content/tutorial-intro-content.js +0 -141
- package/dist/components/tutorial-mdx/index.js +0 -8
- package/dist/components/tutorial-mdx/tutorial-mdx.js +0 -219
- package/dist/components/typewriter/index.js +0 -4
- package/dist/components/typewriter/typewriter.js +0 -68
- package/dist/components/typography/index.js +0 -26
- package/dist/components/typography/typography.js +0 -173
- package/dist/components/usage-breakdown/index.js +0 -6
- package/dist/components/usage-breakdown/usage-breakdown.js +0 -144
- package/dist/components/video-embed/index.js +0 -4
- package/dist/components/video-embed/video-embed.js +0 -77
- package/dist/components/view-switcher/index.js +0 -6
- package/dist/components/view-switcher/view-switcher.js +0 -92
- package/dist/components/viewport-bookmarks/index.js +0 -6
- package/dist/components/viewport-bookmarks/viewport-bookmarks.js +0 -118
- package/dist/components/wallet-card/index.js +0 -4
- package/dist/components/wallet-card/wallet-card.js +0 -113
- package/dist/components/watchlist/index.js +0 -6
- package/dist/components/watchlist/watchlist.js +0 -106
- package/dist/components/workspace-switcher/index.js +0 -6
- package/dist/components/workspace-switcher/workspace-switcher.js +0 -67
- package/dist/components/world-breadcrumbs/index.js +0 -6
- package/dist/components/world-breadcrumbs/world-breadcrumbs.js +0 -112
- package/dist/components/world-clock-bar/index.js +0 -6
- package/dist/components/world-clock-bar/world-clock-bar.js +0 -95
- package/dist/components/zoom-hud/index.js +0 -4
- package/dist/components/zoom-hud/zoom-hud.js +0 -66
- /package/dist/components/{aspect-ratio → atoms/aspect-ratio}/aspect-ratio.js +0 -0
- /package/dist/components/{collapsible → atoms/collapsible}/collapsible.js +0 -0
- /package/dist/components/{lang-provider → atoms/lang-provider}/lang-provider.js +0 -0
- /package/dist/components/{share-section → atoms/share-section}/share-section.js +0 -0
- /package/dist/components/{sidebar-provider → atoms/sidebar-provider}/sidebar-provider.js +0 -0
- /package/dist/components/{social-fab → atoms/social-fab}/use-social-fab.js +0 -0
- /package/dist/components/{theme-provider → atoms/theme-provider}/theme-provider.js +0 -0
- /package/dist/components/{flow-diagram → organisms/flow-diagram}/types.js +0 -0
- /package/dist/components/{navbar-saas → organisms/navbar-saas}/use-mobile.js +0 -0
- /package/dist/components/{canvas-shell → templates/canvas-shell}/canvas-shell-route-config.js +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { CalendarIcon } from "lucide-react";
|
|
5
|
+
import { focusCalendarDay } from "../../../lib/focus-calendar-day.js";
|
|
6
|
+
import { cn } from "../../../lib/utils.js";
|
|
7
|
+
import { Button } from "../../atoms/button/button.js";
|
|
8
|
+
import {
|
|
9
|
+
Popover,
|
|
10
|
+
PopoverContent,
|
|
11
|
+
PopoverTrigger
|
|
12
|
+
} from "../../atoms/popover/popover.js";
|
|
13
|
+
import { Calendar } from "../../molecules/calendar/calendar.js";
|
|
14
|
+
const rangeFormatter = new Intl.DateTimeFormat("en-US", {
|
|
15
|
+
day: "numeric",
|
|
16
|
+
month: "short",
|
|
17
|
+
year: "numeric"
|
|
18
|
+
});
|
|
19
|
+
function formatRange(range) {
|
|
20
|
+
if (!range?.from) {
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
if (!range.to) {
|
|
24
|
+
return rangeFormatter.format(range.from);
|
|
25
|
+
}
|
|
26
|
+
return `${rangeFormatter.format(range.from)} \u2013 ${rangeFormatter.format(range.to)}`;
|
|
27
|
+
}
|
|
28
|
+
const DateRangePicker = ({
|
|
29
|
+
buttonClassName,
|
|
30
|
+
className,
|
|
31
|
+
defaultValue,
|
|
32
|
+
numberOfMonths = 2,
|
|
33
|
+
onValueChange,
|
|
34
|
+
placeholder = "Pick a date range",
|
|
35
|
+
popoverLabel = "Choose date range",
|
|
36
|
+
ref,
|
|
37
|
+
value
|
|
38
|
+
}) => {
|
|
39
|
+
const [internalValue, setInternalValue] = React.useState(defaultValue);
|
|
40
|
+
const selected = value ?? internalValue;
|
|
41
|
+
const label = formatRange(selected);
|
|
42
|
+
const handleSelect = (range) => {
|
|
43
|
+
if (value === void 0) {
|
|
44
|
+
setInternalValue(range);
|
|
45
|
+
}
|
|
46
|
+
onValueChange?.(range);
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
50
|
+
Button,
|
|
51
|
+
{
|
|
52
|
+
className: cn(
|
|
53
|
+
"w-full justify-start text-left font-normal",
|
|
54
|
+
!label && "text-muted-foreground",
|
|
55
|
+
buttonClassName
|
|
56
|
+
),
|
|
57
|
+
ref,
|
|
58
|
+
variant: "outline",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx(CalendarIcon, { "aria-hidden": "true", className: "mr-2 size-4" }),
|
|
61
|
+
label ?? placeholder
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
) }),
|
|
65
|
+
/* @__PURE__ */ jsx(
|
|
66
|
+
PopoverContent,
|
|
67
|
+
{
|
|
68
|
+
align: "start",
|
|
69
|
+
"aria-label": popoverLabel,
|
|
70
|
+
className: cn("w-auto p-0", className),
|
|
71
|
+
onOpenAutoFocus: focusCalendarDay,
|
|
72
|
+
children: /* @__PURE__ */ jsx(
|
|
73
|
+
Calendar,
|
|
74
|
+
{
|
|
75
|
+
defaultMonth: selected?.from,
|
|
76
|
+
mode: "range",
|
|
77
|
+
numberOfMonths,
|
|
78
|
+
onSelect: handleSelect,
|
|
79
|
+
selected
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] });
|
|
85
|
+
};
|
|
86
|
+
DateRangePicker.displayName = "DateRangePicker";
|
|
87
|
+
export {
|
|
88
|
+
DateRangePicker
|
|
89
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import {
|
|
5
|
+
Background,
|
|
6
|
+
BackgroundVariant,
|
|
7
|
+
ReactFlow
|
|
8
|
+
} from "@xyflow/react";
|
|
9
|
+
import { useTheme } from "next-themes";
|
|
10
|
+
import { cn } from "../../../lib/utils.js";
|
|
11
|
+
import { FlowControls } from "./flow-controls.js";
|
|
12
|
+
const REACT_FLOW_CLASS = [
|
|
13
|
+
"[--xy-node-background-color:oklch(var(--card))]",
|
|
14
|
+
"[--xy-node-color:oklch(var(--card-foreground))]",
|
|
15
|
+
"[--xy-node-border:1px_solid_oklch(var(--border))]",
|
|
16
|
+
// Node container styling — no !important on bg/color so inline styles take precedence
|
|
17
|
+
"[&_.react-flow__node]:rounded-md",
|
|
18
|
+
"[&_.react-flow__node]:border",
|
|
19
|
+
"[&_.react-flow__node]:border-border",
|
|
20
|
+
"[&_.react-flow__node]:bg-card",
|
|
21
|
+
"[&_.react-flow__node]:px-4",
|
|
22
|
+
"[&_.react-flow__node]:py-2",
|
|
23
|
+
"[&_.react-flow__node]:shadow-sm",
|
|
24
|
+
// Node text styling — defaults, overridable by inline style.color
|
|
25
|
+
"[&_.react-flow__node]:text-sm",
|
|
26
|
+
"[&_.react-flow__node]:text-card-foreground",
|
|
27
|
+
"[&_.react-flow__node]:font-medium",
|
|
28
|
+
// Edge styling
|
|
29
|
+
"[&_.react-flow__edge-path]:!stroke-muted-foreground",
|
|
30
|
+
"[&_.react-flow__edge-path]:!stroke-2",
|
|
31
|
+
// Arrow marker styling
|
|
32
|
+
"[&_.react-flow__arrowhead_polyline]:!fill-muted-foreground",
|
|
33
|
+
"[&_.react-flow__arrowhead_polyline]:!stroke-muted-foreground"
|
|
34
|
+
].join(" ");
|
|
35
|
+
const FlowCanvas = memo(function FlowCanvas2({
|
|
36
|
+
allowCopy,
|
|
37
|
+
allowFullscreen,
|
|
38
|
+
className,
|
|
39
|
+
copyStatus,
|
|
40
|
+
edges,
|
|
41
|
+
fitView,
|
|
42
|
+
fitViewOptions,
|
|
43
|
+
height,
|
|
44
|
+
isFullscreen,
|
|
45
|
+
nodes,
|
|
46
|
+
onCopy,
|
|
47
|
+
onFitView,
|
|
48
|
+
onFullscreen,
|
|
49
|
+
onNodeClick,
|
|
50
|
+
onZoomIn,
|
|
51
|
+
onZoomOut,
|
|
52
|
+
showControls,
|
|
53
|
+
title
|
|
54
|
+
}) {
|
|
55
|
+
const { resolvedTheme } = useTheme();
|
|
56
|
+
const colorMode = resolvedTheme === "dark" ? "dark" : "light";
|
|
57
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("relative w-full", className), children: [
|
|
58
|
+
title ? /* @__PURE__ */ jsx("div", { className: "mb-2 text-sm font-medium text-foreground", children: title }) : null,
|
|
59
|
+
/* @__PURE__ */ jsx(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: "relative w-full rounded-lg border border-border bg-background overflow-hidden",
|
|
63
|
+
style: { height: isFullscreen ? "100%" : height },
|
|
64
|
+
children: /* @__PURE__ */ jsxs(
|
|
65
|
+
ReactFlow,
|
|
66
|
+
{
|
|
67
|
+
className: REACT_FLOW_CLASS,
|
|
68
|
+
colorMode,
|
|
69
|
+
edges,
|
|
70
|
+
elementsSelectable: false,
|
|
71
|
+
fitView,
|
|
72
|
+
fitViewOptions: fitViewOptions ?? { padding: 0.2 },
|
|
73
|
+
nodes,
|
|
74
|
+
nodesConnectable: false,
|
|
75
|
+
nodesDraggable: false,
|
|
76
|
+
onNodeClick,
|
|
77
|
+
panOnScroll: true,
|
|
78
|
+
proOptions: { hideAttribution: true },
|
|
79
|
+
zoomOnScroll: true,
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
Background,
|
|
83
|
+
{
|
|
84
|
+
className: "!bg-background [&>pattern>circle]:fill-muted-foreground/20",
|
|
85
|
+
gap: 16,
|
|
86
|
+
size: 1,
|
|
87
|
+
variant: BackgroundVariant.Dots
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
showControls ? /* @__PURE__ */ jsx(
|
|
91
|
+
FlowControls,
|
|
92
|
+
{
|
|
93
|
+
copyStatus,
|
|
94
|
+
onCopy,
|
|
95
|
+
onFitView,
|
|
96
|
+
onFullscreen,
|
|
97
|
+
onZoomIn,
|
|
98
|
+
onZoomOut,
|
|
99
|
+
showCopy: allowCopy,
|
|
100
|
+
showFullscreen: allowFullscreen
|
|
101
|
+
}
|
|
102
|
+
) : null
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] });
|
|
109
|
+
});
|
|
110
|
+
export {
|
|
111
|
+
FlowCanvas
|
|
112
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import {
|
|
5
|
+
Check,
|
|
6
|
+
Copy,
|
|
7
|
+
Loader2,
|
|
8
|
+
Maximize2,
|
|
9
|
+
Minus,
|
|
10
|
+
Move,
|
|
11
|
+
Plus,
|
|
12
|
+
X
|
|
13
|
+
} from "lucide-react";
|
|
14
|
+
import { cn } from "../../../lib/utils.js";
|
|
15
|
+
const BUTTON_CLASS = "flex size-8 items-center justify-center rounded hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed";
|
|
16
|
+
function ControlButton({
|
|
17
|
+
disabled,
|
|
18
|
+
icon,
|
|
19
|
+
label,
|
|
20
|
+
onClick,
|
|
21
|
+
title
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
"button",
|
|
25
|
+
{
|
|
26
|
+
"aria-label": label,
|
|
27
|
+
className: BUTTON_CLASS,
|
|
28
|
+
disabled,
|
|
29
|
+
onClick,
|
|
30
|
+
title,
|
|
31
|
+
type: "button",
|
|
32
|
+
children: icon
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function getCopyIcon(status) {
|
|
37
|
+
switch (status) {
|
|
38
|
+
case "copying":
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
|
+
Loader2,
|
|
41
|
+
{
|
|
42
|
+
className: "size-4 animate-spin motion-reduce:[animation-duration:1.5s]",
|
|
43
|
+
"data-motion": "essential"
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
case "success":
|
|
47
|
+
return /* @__PURE__ */ jsx(Check, { className: "size-4 text-green-500" });
|
|
48
|
+
case "error":
|
|
49
|
+
return /* @__PURE__ */ jsx(X, { className: "size-4 text-destructive" });
|
|
50
|
+
case "idle":
|
|
51
|
+
case void 0:
|
|
52
|
+
return /* @__PURE__ */ jsx(Copy, { className: "size-4" });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function getCopyTitle(status) {
|
|
56
|
+
switch (status) {
|
|
57
|
+
case "copying":
|
|
58
|
+
return "Copying...";
|
|
59
|
+
case "success":
|
|
60
|
+
return "Copied!";
|
|
61
|
+
case "error":
|
|
62
|
+
return "Copy failed";
|
|
63
|
+
case "idle":
|
|
64
|
+
case void 0:
|
|
65
|
+
return "Copy as image";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const FlowControls = memo(function FlowControls2({
|
|
69
|
+
className,
|
|
70
|
+
copyStatus,
|
|
71
|
+
onCopy,
|
|
72
|
+
onFitView,
|
|
73
|
+
onFullscreen,
|
|
74
|
+
onZoomIn,
|
|
75
|
+
onZoomOut,
|
|
76
|
+
showCopy = false,
|
|
77
|
+
showFullscreen = false
|
|
78
|
+
}) {
|
|
79
|
+
return /* @__PURE__ */ jsxs(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
className: cn(
|
|
83
|
+
"absolute bottom-4 left-4 z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 backdrop-blur-sm",
|
|
84
|
+
className
|
|
85
|
+
),
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
ControlButton,
|
|
89
|
+
{
|
|
90
|
+
icon: /* @__PURE__ */ jsx(Plus, { className: "size-4" }),
|
|
91
|
+
label: "Zoom in",
|
|
92
|
+
onClick: onZoomIn,
|
|
93
|
+
title: "Zoom in"
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
ControlButton,
|
|
98
|
+
{
|
|
99
|
+
icon: /* @__PURE__ */ jsx(Minus, { className: "size-4" }),
|
|
100
|
+
label: "Zoom out",
|
|
101
|
+
onClick: onZoomOut,
|
|
102
|
+
title: "Zoom out"
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-border" }),
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
ControlButton,
|
|
108
|
+
{
|
|
109
|
+
icon: /* @__PURE__ */ jsx(Move, { className: "size-4" }),
|
|
110
|
+
label: "Fit view",
|
|
111
|
+
onClick: onFitView,
|
|
112
|
+
title: "Fit view"
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
showCopy && onCopy ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
116
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-border" }),
|
|
117
|
+
/* @__PURE__ */ jsx(
|
|
118
|
+
ControlButton,
|
|
119
|
+
{
|
|
120
|
+
disabled: copyStatus === "copying",
|
|
121
|
+
icon: getCopyIcon(copyStatus),
|
|
122
|
+
label: getCopyTitle(copyStatus),
|
|
123
|
+
onClick: onCopy,
|
|
124
|
+
title: getCopyTitle(copyStatus)
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] }) : null,
|
|
128
|
+
showFullscreen && onFullscreen ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
129
|
+
/* @__PURE__ */ jsx("div", { className: "h-px bg-border" }),
|
|
130
|
+
/* @__PURE__ */ jsx(
|
|
131
|
+
ControlButton,
|
|
132
|
+
{
|
|
133
|
+
icon: /* @__PURE__ */ jsx(Maximize2, { className: "size-4" }),
|
|
134
|
+
label: "Fullscreen",
|
|
135
|
+
onClick: onFullscreen,
|
|
136
|
+
title: "Toggle fullscreen"
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] }) : null
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
});
|
|
144
|
+
export {
|
|
145
|
+
FlowControls
|
|
146
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import "@xyflow/react/dist/style.css";
|
|
4
|
+
import { memo, useCallback, useEffect } from "react";
|
|
5
|
+
import {
|
|
6
|
+
ReactFlowProvider
|
|
7
|
+
} from "@xyflow/react";
|
|
8
|
+
import { cn } from "../../../lib/utils.js";
|
|
9
|
+
import { FlowCanvas } from "./flow-canvas.js";
|
|
10
|
+
import { FlowErrorBoundary } from "./flow-error-boundary.js";
|
|
11
|
+
import { FlowFullscreen } from "./flow-fullscreen.js";
|
|
12
|
+
import { useFlowDiagram } from "./use-flow-diagram.js";
|
|
13
|
+
function validateFlowData(nodes, edges) {
|
|
14
|
+
if (nodes.length === 0 && edges.length > 0) {
|
|
15
|
+
console.warn(
|
|
16
|
+
"[FlowDiagram] Edges provided without nodes - edges will not render"
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
const nodeIds = new Set(nodes.map((n) => n.id));
|
|
20
|
+
const invalidEdges = edges.filter(
|
|
21
|
+
(e) => !nodeIds.has(e.source) || !nodeIds.has(e.target)
|
|
22
|
+
);
|
|
23
|
+
if (invalidEdges.length > 0) {
|
|
24
|
+
console.warn(
|
|
25
|
+
`[FlowDiagram] ${invalidEdges.length} edge(s) reference non-existent nodes:`,
|
|
26
|
+
invalidEdges.map((e) => `${e.id}: ${e.source} -> ${e.target}`)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
const nodesWithoutPosition = nodes.filter((n) => n.position === void 0);
|
|
30
|
+
if (nodesWithoutPosition.length > 0) {
|
|
31
|
+
console.warn(
|
|
32
|
+
`[FlowDiagram] ${nodesWithoutPosition.length} node(s) missing position:`,
|
|
33
|
+
nodesWithoutPosition.map((n) => n.id)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const FlowDiagramInner = memo(function FlowDiagramInner2({
|
|
38
|
+
allowCopy = false,
|
|
39
|
+
allowFullscreen = true,
|
|
40
|
+
className,
|
|
41
|
+
edges,
|
|
42
|
+
fitView = true,
|
|
43
|
+
fitViewOptions,
|
|
44
|
+
height = 400,
|
|
45
|
+
nodes,
|
|
46
|
+
onNodeClick,
|
|
47
|
+
showControls = true,
|
|
48
|
+
title
|
|
49
|
+
}) {
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
validateFlowData(nodes, edges);
|
|
52
|
+
}, [nodes, edges]);
|
|
53
|
+
const {
|
|
54
|
+
closeFullscreen,
|
|
55
|
+
copyStatus,
|
|
56
|
+
copyToClipboard,
|
|
57
|
+
fitView: handleFitView,
|
|
58
|
+
isFullscreen,
|
|
59
|
+
toggleFullscreen,
|
|
60
|
+
zoomIn,
|
|
61
|
+
zoomOut
|
|
62
|
+
} = useFlowDiagram({ allowCopy, allowFullscreen });
|
|
63
|
+
const handleNodeClick = useCallback(
|
|
64
|
+
(_event, node) => {
|
|
65
|
+
onNodeClick?.(node);
|
|
66
|
+
},
|
|
67
|
+
[onNodeClick]
|
|
68
|
+
);
|
|
69
|
+
const handleCopy = useCallback(() => {
|
|
70
|
+
void copyToClipboard();
|
|
71
|
+
}, [copyToClipboard]);
|
|
72
|
+
const canvasProps = {
|
|
73
|
+
allowCopy,
|
|
74
|
+
allowFullscreen,
|
|
75
|
+
className,
|
|
76
|
+
copyStatus,
|
|
77
|
+
edges,
|
|
78
|
+
fitView,
|
|
79
|
+
fitViewOptions,
|
|
80
|
+
height,
|
|
81
|
+
isFullscreen,
|
|
82
|
+
nodes,
|
|
83
|
+
onCopy: allowCopy ? handleCopy : void 0,
|
|
84
|
+
onFitView: handleFitView,
|
|
85
|
+
onFullscreen: allowFullscreen ? toggleFullscreen : void 0,
|
|
86
|
+
onNodeClick: onNodeClick ? handleNodeClick : void 0,
|
|
87
|
+
onZoomIn: zoomIn,
|
|
88
|
+
onZoomOut: zoomOut,
|
|
89
|
+
showControls,
|
|
90
|
+
title
|
|
91
|
+
};
|
|
92
|
+
if (isFullscreen) {
|
|
93
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
className: cn(
|
|
98
|
+
"rounded-lg border border-border bg-muted/50",
|
|
99
|
+
className
|
|
100
|
+
),
|
|
101
|
+
style: { height }
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ jsx(FlowFullscreen, { isOpen: isFullscreen, onClose: closeFullscreen, children: /* @__PURE__ */ jsx(FlowCanvas, { ...canvasProps }) })
|
|
105
|
+
] });
|
|
106
|
+
}
|
|
107
|
+
return /* @__PURE__ */ jsx(FlowCanvas, { ...canvasProps });
|
|
108
|
+
});
|
|
109
|
+
const FlowDiagram = memo(function FlowDiagram2(props) {
|
|
110
|
+
return /* @__PURE__ */ jsx(FlowErrorBoundary, { height: props.height, children: /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(FlowDiagramInner, { ...props }) }) });
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
FlowDiagram
|
|
114
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Component } from "react";
|
|
4
|
+
import { AlertTriangle, RefreshCw } from "lucide-react";
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
|
+
class FlowErrorBoundary extends Component {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
this.handleRetry = () => {
|
|
10
|
+
this.setState({ error: null, hasError: false });
|
|
11
|
+
};
|
|
12
|
+
this.state = { error: null, hasError: false };
|
|
13
|
+
}
|
|
14
|
+
static getDerivedStateFromError(error) {
|
|
15
|
+
return { error, hasError: true };
|
|
16
|
+
}
|
|
17
|
+
componentDidCatch(error, errorInfo) {
|
|
18
|
+
console.error("[FlowDiagram] Error caught by boundary:", error, errorInfo);
|
|
19
|
+
this.props.onError?.(error, errorInfo);
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const { children, className, fallback, height = 400 } = this.props;
|
|
23
|
+
const { error, hasError } = this.state;
|
|
24
|
+
if (hasError) {
|
|
25
|
+
if (fallback) {
|
|
26
|
+
return fallback;
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ jsxs(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
className: cn(
|
|
32
|
+
"flex flex-col items-center justify-center gap-4 rounded-lg border border-border bg-muted/50 p-8 text-center",
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
style: { height },
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-destructive/10", children: /* @__PURE__ */ jsx(AlertTriangle, { className: "size-6 text-destructive" }) }),
|
|
38
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
39
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-medium text-foreground", children: "Failed to render diagram" }),
|
|
40
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: error?.message ?? "An unexpected error occurred while rendering the flow diagram." })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ jsxs(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",
|
|
46
|
+
onClick: this.handleRetry,
|
|
47
|
+
type: "button",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsx(RefreshCw, { className: "size-4" }),
|
|
50
|
+
"Try again"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
return children;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
FlowErrorBoundary
|
|
63
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { memo, useRef } from "react";
|
|
4
|
+
import { X } from "lucide-react";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
6
|
+
import { useEscapeKey } from "../../../lib/use-escape-key.js";
|
|
7
|
+
import { useFocusContainment } from "../../../lib/use-focus-containment.js";
|
|
8
|
+
import { cn } from "../../../lib/utils.js";
|
|
9
|
+
const FlowFullscreen = memo(function FlowFullscreen2({
|
|
10
|
+
children,
|
|
11
|
+
isOpen,
|
|
12
|
+
onClose
|
|
13
|
+
}) {
|
|
14
|
+
const dialogRef = useRef(null);
|
|
15
|
+
useFocusContainment(dialogRef, isOpen);
|
|
16
|
+
useEscapeKey(onClose, { enabled: isOpen, target: "document" });
|
|
17
|
+
if (!isOpen) return null;
|
|
18
|
+
if (typeof document === "undefined") return null;
|
|
19
|
+
return createPortal(
|
|
20
|
+
/* @__PURE__ */ jsxs(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"aria-label": "Flow diagram fullscreen view",
|
|
24
|
+
"aria-modal": "true",
|
|
25
|
+
className: cn(
|
|
26
|
+
"fixed inset-0 z-[9999] flex flex-col bg-background",
|
|
27
|
+
"animate-in fade-in duration-200"
|
|
28
|
+
),
|
|
29
|
+
ref: dialogRef,
|
|
30
|
+
role: "dialog",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-12 items-center justify-end border-b border-border px-4", children: /* @__PURE__ */ jsx(
|
|
33
|
+
"button",
|
|
34
|
+
{
|
|
35
|
+
"aria-label": "Close fullscreen",
|
|
36
|
+
className: "flex size-8 items-center justify-center rounded hover:bg-muted transition-colors",
|
|
37
|
+
onClick: onClose,
|
|
38
|
+
title: "Close fullscreen (Esc)",
|
|
39
|
+
type: "button",
|
|
40
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-5" })
|
|
41
|
+
}
|
|
42
|
+
) }),
|
|
43
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-hidden", children })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
document.body
|
|
48
|
+
);
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
FlowFullscreen
|
|
52
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FlowDiagram } from "./flow-diagram.js";
|
|
2
|
+
import { FlowCanvas } from "./flow-canvas.js";
|
|
3
|
+
import { FlowControls } from "./flow-controls.js";
|
|
4
|
+
import { FlowErrorBoundary } from "./flow-error-boundary.js";
|
|
5
|
+
import { FlowFullscreen } from "./flow-fullscreen.js";
|
|
6
|
+
import { useFlowDiagram } from "./use-flow-diagram.js";
|
|
7
|
+
export {
|
|
8
|
+
FlowCanvas,
|
|
9
|
+
FlowControls,
|
|
10
|
+
FlowDiagram,
|
|
11
|
+
FlowErrorBoundary,
|
|
12
|
+
FlowFullscreen,
|
|
13
|
+
useFlowDiagram
|
|
14
|
+
};
|