@vllnt/ui 0.4.0-canary.sha1342d11 → 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/{accordion → atoms/accordion}/accordion.js +2 -1
- package/dist/components/{agent-activity → atoms/agent-activity}/agent-activity.js +9 -2
- package/dist/components/{ai-source-citation → atoms/ai-source-citation}/ai-source-citation.js +1 -1
- package/dist/components/{ai-streaming-text → atoms/ai-streaming-text}/ai-streaming-text.js +2 -2
- package/dist/components/{alert → atoms/alert}/alert.js +1 -1
- package/dist/components/{alert-pulse → atoms/alert-pulse}/alert-pulse.js +2 -2
- package/dist/components/{anchor-port → atoms/anchor-port}/anchor-port.js +1 -1
- package/dist/components/{animated-beam → atoms/animated-beam}/animated-beam.js +1 -1
- package/dist/components/{animated-grid-pattern → atoms/animated-grid-pattern}/animated-grid-pattern.js +1 -1
- package/dist/components/{animated-list → atoms/animated-list}/animated-list.js +1 -1
- package/dist/components/{animated-tabs → atoms/animated-tabs}/animated-tabs.js +16 -4
- package/dist/components/{animated-testimonials → atoms/animated-testimonials}/animated-testimonials.js +1 -1
- package/dist/components/{animated-text → atoms/animated-text}/animated-text.js +29 -8
- package/dist/components/{animated-tooltip → atoms/animated-tooltip}/animated-tooltip.js +11 -1
- package/dist/components/{avatar → atoms/avatar}/avatar.js +1 -1
- package/dist/components/{badge → atoms/badge}/badge.js +1 -1
- package/dist/components/{banner → atoms/banner}/banner.js +1 -1
- package/dist/components/{bento-grid → atoms/bento-grid}/bento-grid.js +1 -1
- package/dist/components/{blur-reveal → atoms/blur-reveal}/blur-reveal.js +1 -1
- package/dist/components/{border-beam → atoms/border-beam}/border-beam.js +2 -5
- package/dist/components/{bottom-activity-strip → atoms/bottom-activity-strip}/bottom-activity-strip.js +3 -2
- package/dist/components/{bottom-bar → atoms/bottom-bar}/bottom-bar.js +1 -1
- package/dist/components/{breadcrumb → atoms/breadcrumb}/breadcrumb.js +2 -2
- package/dist/components/{button → atoms/button}/button.js +1 -1
- package/dist/components/{button-group → atoms/button-group}/button-group.js +1 -1
- package/dist/components/{callout → atoms/callout}/callout.js +1 -1
- package/dist/components/{card → atoms/card}/card.js +1 -1
- package/dist/components/{card-flip → atoms/card-flip}/card-flip.js +1 -1
- package/dist/components/{chain-of-thought → atoms/chain-of-thought}/chain-of-thought.js +8 -2
- package/dist/components/{checkbox → atoms/checkbox}/checkbox.js +1 -1
- package/dist/components/{checklist → atoms/checklist}/checklist.js +5 -2
- package/dist/components/{comment-pin → atoms/comment-pin}/comment-pin.js +8 -5
- package/dist/components/{comparison → atoms/comparison}/comparison.js +41 -27
- package/dist/components/{context-lens → atoms/context-lens}/context-lens.js +1 -1
- package/dist/components/{context-menu → atoms/context-menu}/context-menu.js +1 -1
- package/dist/components/{curriculum → atoms/curriculum}/curriculum.js +8 -6
- package/dist/components/atoms/cursor/cursor.js +91 -0
- package/dist/components/{data-list → atoms/data-list}/data-list.js +1 -1
- package/dist/components/{date-field → atoms/date-field}/date-field.js +1 -1
- package/dist/components/{dialog → atoms/dialog}/dialog.js +1 -1
- package/dist/components/{display → atoms/display}/display.js +1 -1
- package/dist/components/atoms/dock/dock.js +167 -0
- package/dist/components/{document-sibling-nav → atoms/document-sibling-nav}/document-sibling-nav.js +1 -1
- package/dist/components/{dot-pattern → atoms/dot-pattern}/dot-pattern.js +1 -1
- package/dist/components/{drawer → atoms/drawer}/drawer.js +3 -1
- package/dist/components/{dropdown-menu → atoms/dropdown-menu}/dropdown-menu.js +1 -1
- package/dist/components/{edge-label → atoms/edge-label}/edge-label.js +1 -1
- package/dist/components/{empty-state → atoms/empty-state}/empty-state.js +1 -1
- package/dist/components/{era-comparison → atoms/era-comparison}/era-comparison.js +2 -2
- package/dist/components/{expandable-cards → atoms/expandable-cards}/expandable-cards.js +1 -1
- package/dist/components/{faq → atoms/faq}/faq.js +1 -1
- package/dist/components/{fieldset → atoms/fieldset}/fieldset.js +1 -1
- package/dist/components/{floating-action-button → atoms/floating-action-button}/floating-action-button.js +1 -1
- package/dist/components/{floating-navbar → atoms/floating-navbar}/floating-navbar.js +1 -1
- package/dist/components/{floating-toolbar → atoms/floating-toolbar}/floating-toolbar.js +1 -1
- package/dist/components/{follow-mode → atoms/follow-mode}/follow-mode.js +7 -7
- package/dist/components/{gauge-chart → atoms/gauge-chart}/gauge-chart.js +1 -1
- package/dist/components/{glass-card → atoms/glass-card}/glass-card.js +1 -1
- package/dist/components/{glass-panel → atoms/glass-panel}/glass-panel.js +1 -1
- package/dist/components/{glass-progress → atoms/glass-progress}/glass-progress.js +2 -1
- package/dist/components/{grid → atoms/grid}/grid.js +1 -1
- package/dist/components/{group-hull → atoms/group-hull}/group-hull.js +1 -1
- package/dist/components/{handoff-beacon → atoms/handoff-beacon}/handoff-beacon.js +2 -2
- package/dist/components/{heading → atoms/heading}/heading.js +1 -1
- package/dist/components/{heat-overlay → atoms/heat-overlay}/heat-overlay.js +1 -1
- package/dist/components/{hover-card → atoms/hover-card}/hover-card.js +1 -1
- package/dist/components/{infinite-plane → atoms/infinite-plane}/infinite-plane.js +1 -1
- package/dist/components/{input → atoms/input}/input.js +1 -1
- package/dist/components/{input-group → atoms/input-group}/input-group.js +1 -1
- package/dist/components/{input-otp → atoms/input-otp}/input-otp.js +2 -2
- package/dist/components/{item → atoms/item}/item.js +1 -1
- package/dist/components/{jarvis-dock → atoms/jarvis-dock}/jarvis-dock.js +1 -1
- package/dist/components/{kbd → atoms/kbd}/kbd.js +3 -3
- package/dist/components/{key-concept → atoms/key-concept}/key-concept.js +5 -3
- package/dist/components/{keyboard-shortcuts-help → atoms/keyboard-shortcuts-help}/keyboard-shortcuts-help.js +10 -5
- package/dist/components/{label → atoms/label}/label.js +1 -1
- package/dist/components/{learning-objectives → atoms/learning-objectives}/learning-objectives.js +24 -10
- package/dist/components/{left-rail → atoms/left-rail}/left-rail.js +1 -1
- package/dist/components/{link → atoms/link}/link.js +1 -1
- package/dist/components/{liquid-glass → atoms/liquid-glass}/liquid-glass.js +2 -3
- package/dist/components/{list-box → atoms/list-box}/list-box.js +56 -5
- package/dist/components/{live-cursor → atoms/live-cursor}/live-cursor.js +10 -5
- 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/{menubar → atoms/menubar}/menubar.js +1 -1
- package/dist/components/{meteors → atoms/meteors}/meteors.js +3 -3
- package/dist/components/{meter → atoms/meter}/meter.js +1 -1
- package/dist/components/{metric-cluster → atoms/metric-cluster}/metric-cluster.js +1 -1
- package/dist/components/{mini-map-panel → atoms/mini-map-panel}/mini-map-panel.js +1 -1
- package/dist/components/{multi-select-lasso → atoms/multi-select-lasso}/multi-select-lasso.js +1 -1
- package/dist/components/{native-select → atoms/native-select}/native-select.js +1 -1
- package/dist/components/{navigation-menu → atoms/navigation-menu}/navigation-menu.js +1 -1
- package/dist/components/{number-ticker → atoms/number-ticker}/number-ticker.js +1 -1
- package/dist/components/{object-handle → atoms/object-handle}/object-handle.js +2 -2
- package/dist/components/{object-inspector → atoms/object-inspector}/object-inspector.js +2 -2
- package/dist/components/{order-book → atoms/order-book}/order-book.js +14 -8
- package/dist/components/{panel → atoms/panel}/panel.js +1 -1
- package/dist/components/{particles → atoms/particles}/particles.js +3 -3
- package/dist/components/{password-input → atoms/password-input}/password-input.js +1 -1
- package/dist/components/{phone-input → atoms/phone-input}/phone-input.js +1 -1
- package/dist/components/{playback-ghost → atoms/playback-ghost}/playback-ghost.js +13 -5
- package/dist/components/{policy-delivery-panel → atoms/policy-delivery-panel}/policy-delivery-panel.js +1 -1
- package/dist/components/{popover → atoms/popover}/popover.js +1 -1
- package/dist/components/{presence-stack → atoms/presence-stack}/presence-stack.js +8 -3
- package/dist/components/{presence-sync-indicator → atoms/presence-sync-indicator}/presence-sync-indicator.js +3 -3
- package/dist/components/{pro-tip → atoms/pro-tip}/pro-tip.js +4 -1
- package/dist/components/{progress-bar → atoms/progress-bar}/progress-bar.js +3 -3
- package/dist/components/{progressive-blur → atoms/progressive-blur}/progressive-blur.js +1 -1
- package/dist/components/{prompt-input → atoms/prompt-input}/prompt-input.js +9 -3
- package/dist/components/{property-section → atoms/property-section}/property-section.js +2 -2
- package/dist/components/{prose → atoms/prose}/prose.js +1 -1
- package/dist/components/{qr-code → atoms/qr-code}/qr-code.js +28 -4
- package/dist/components/{quiz → atoms/quiz}/quiz.js +3 -1
- package/dist/components/{radio-group → atoms/radio-group}/radio-group.js +1 -1
- package/dist/components/{rating → atoms/rating}/rating.js +14 -3
- package/dist/components/{reasoning → atoms/reasoning}/reasoning.js +17 -8
- package/dist/components/{relationship-inspector → atoms/relationship-inspector}/relationship-inspector.js +1 -1
- package/dist/components/{resizable → atoms/resizable}/resizable.js +1 -1
- package/dist/components/{reveal-text → atoms/reveal-text}/reveal-text.js +1 -1
- package/dist/components/{right-dock → atoms/right-dock}/right-dock.js +1 -1
- package/dist/components/{routing-assignment-panel → atoms/routing-assignment-panel}/routing-assignment-panel.js +1 -1
- package/dist/components/{runtime-overview-panel → atoms/runtime-overview-panel}/runtime-overview-panel.js +1 -1
- package/dist/components/{scramble-text → atoms/scramble-text}/scramble-text.js +6 -12
- package/dist/components/atoms/scroll-area/scroll-area.js +90 -0
- package/dist/components/{scroll-progress → atoms/scroll-progress}/scroll-progress.js +12 -3
- package/dist/components/{search-field → atoms/search-field}/search-field.js +3 -3
- package/dist/components/{segmented-control → atoms/segmented-control}/segmented-control.js +1 -1
- package/dist/components/{select → atoms/select}/select.js +1 -1
- package/dist/components/{selection-halo → atoms/selection-halo}/selection-halo.js +11 -3
- package/dist/components/{selection-presence → atoms/selection-presence}/selection-presence.js +4 -2
- package/dist/components/{separator → atoms/separator}/separator.js +1 -1
- package/dist/components/{severity-badge → atoms/severity-badge}/severity-badge.js +11 -11
- package/dist/components/{sheet → atoms/sheet}/sheet.js +1 -1
- package/dist/components/{shimmer-button → atoms/shimmer-button}/shimmer-button.js +1 -1
- package/dist/components/{shimmer-text → atoms/shimmer-text}/shimmer-text.js +1 -1
- package/dist/components/{shine-border → atoms/shine-border}/shine-border.js +2 -5
- package/dist/components/{shiny-button → atoms/shiny-button}/shiny-button.js +1 -1
- package/dist/components/{skeleton → atoms/skeleton}/skeleton.js +5 -2
- package/dist/components/{slider → atoms/slider}/slider.js +13 -2
- package/dist/components/{snap-guides → atoms/snap-guides}/snap-guides.js +2 -1
- package/dist/components/{social-fab → atoms/social-fab}/social-fab.js +1 -1
- package/dist/components/{sparkles → atoms/sparkles}/sparkles.js +3 -3
- package/dist/components/{sparkline-grid → atoms/sparkline-grid}/sparkline-grid.js +6 -6
- package/dist/components/{spinner → atoms/spinner}/spinner.js +3 -2
- package/dist/components/{spinner → atoms/spinner}/unicode-spinner.js +1 -1
- package/dist/components/{spinning-text → atoms/spinning-text}/spinning-text.js +15 -13
- package/dist/components/atoms/spotlight-card/spotlight-card.js +77 -0
- package/dist/components/{state-badge-overlay → atoms/state-badge-overlay}/state-badge-overlay.js +3 -3
- package/dist/components/{status-indicator → atoms/status-indicator}/status-indicator.js +2 -2
- package/dist/components/{step-by-step → atoms/step-by-step}/step-by-step.js +4 -2
- package/dist/components/{step-navigation → atoms/step-navigation}/step-navigation.js +1 -1
- package/dist/components/{stepper → atoms/stepper}/stepper.js +2 -1
- package/dist/components/{sticky-metric → atoms/sticky-metric}/sticky-metric.js +1 -1
- package/dist/components/{switch → atoms/switch}/switch.js +1 -1
- package/dist/components/{table → atoms/table}/table.js +1 -1
- package/dist/components/{table-of-contents → atoms/table-of-contents}/table-of-contents.js +1 -1
- package/dist/components/{table-of-contents-panel → atoms/table-of-contents-panel}/table-of-contents-panel.js +7 -3
- package/dist/components/atoms/tabs/tabs.js +227 -0
- package/dist/components/{tag-group → atoms/tag-group}/tag-group.js +1 -1
- package/dist/components/{tags-input → atoms/tags-input}/tags-input.js +1 -1
- package/dist/components/{text → atoms/text}/text.js +1 -1
- package/dist/components/{text-animate → atoms/text-animate}/text-animate.js +1 -1
- package/dist/components/{text-reveal → atoms/text-reveal}/text-reveal.js +33 -18
- package/dist/components/{text-shimmer → atoms/text-shimmer}/text-shimmer.js +1 -1
- package/dist/components/{textarea → atoms/textarea}/textarea.js +1 -1
- package/dist/components/{theme-preset-provider → atoms/theme-preset-provider}/theme-preset-provider.js +21 -7
- package/dist/components/{theme-switcher → atoms/theme-switcher}/theme-switcher.js +15 -4
- package/dist/components/{thinking-block → atoms/thinking-block}/thinking-block.js +10 -8
- package/dist/components/{thread-bubble → atoms/thread-bubble}/thread-bubble.js +4 -2
- package/dist/components/{threshold-ring → atoms/threshold-ring}/threshold-ring.js +1 -1
- package/dist/components/atoms/tilt-card/tilt-card.js +115 -0
- package/dist/components/{time-field → atoms/time-field}/time-field.js +1 -1
- package/dist/components/{timeline → atoms/timeline}/timeline.js +1 -1
- package/dist/components/{timeline-scrubber → atoms/timeline-scrubber}/timeline-scrubber.js +1 -1
- package/dist/components/{tldr-section → atoms/tldr-section}/tldr-section.js +11 -6
- package/dist/components/atoms/toast/sonner-toast.js +4 -0
- package/dist/components/{toast → atoms/toast}/toast.js +17 -18
- package/dist/components/{toast → atoms/toast}/toaster.js +7 -1
- package/dist/components/{toggle → atoms/toggle}/toggle.js +1 -1
- package/dist/components/{toolbar → atoms/toolbar}/toolbar.js +2 -1
- package/dist/components/{tooltip → atoms/tooltip}/tooltip.js +1 -1
- package/dist/components/{top-bar → atoms/top-bar}/top-bar.js +1 -1
- package/dist/components/{truncated-text → atoms/truncated-text}/truncated-text.js +1 -1
- package/dist/components/{tutorial-intro-content → atoms/tutorial-intro-content}/tutorial-intro-content.js +3 -6
- package/dist/components/{typewriter → atoms/typewriter}/typewriter.js +3 -2
- package/dist/components/{typography → atoms/typography}/typography.js +1 -1
- package/dist/components/{video-embed → atoms/video-embed}/video-embed.js +3 -1
- package/dist/components/{view-switcher → atoms/view-switcher}/view-switcher.js +55 -44
- package/dist/components/{viewport-bookmarks → atoms/viewport-bookmarks}/viewport-bookmarks.js +1 -1
- package/dist/components/{watchlist → atoms/watchlist}/watchlist.js +10 -9
- package/dist/components/{workspace-switcher → atoms/workspace-switcher}/workspace-switcher.js +40 -11
- package/dist/components/{world-breadcrumbs → atoms/world-breadcrumbs}/world-breadcrumbs.js +1 -1
- package/dist/components/index.js +379 -322
- package/dist/components/{activity-log → molecules/activity-log}/activity-log.js +7 -7
- package/dist/components/{ai-artifact → molecules/ai-artifact}/ai-artifact.js +18 -6
- package/dist/components/{ai-chat-input → molecules/ai-chat-input}/ai-chat-input.js +12 -5
- package/dist/components/{ai-message-bubble → molecules/ai-message-bubble}/ai-message-bubble.js +3 -3
- package/dist/components/{ai-sidebar → molecules/ai-sidebar}/ai-sidebar.js +3 -3
- package/dist/components/{ai-tool-call-display → molecules/ai-tool-call-display}/ai-tool-call-display.js +3 -3
- package/dist/components/{alert-dialog → molecules/alert-dialog}/alert-dialog.js +2 -2
- package/dist/components/{annotation → molecules/annotation}/annotation.js +6 -2
- package/dist/components/{auto-reload → molecules/auto-reload}/auto-reload.js +4 -4
- package/dist/components/{avatar-group → molecules/avatar-group}/avatar-group.js +3 -3
- package/dist/components/{blog-card → molecules/blog-card}/blog-card.js +2 -2
- package/dist/components/{calendar → molecules/calendar}/calendar.js +2 -2
- package/dist/components/{carousel → molecules/carousel}/carousel.js +2 -2
- package/dist/components/{category-filter → molecules/category-filter}/category-filter.js +1 -1
- package/dist/components/{chat-dock-section → molecules/chat-dock-section}/chat-dock-section.js +2 -2
- package/dist/components/{checkbox-group → molecules/checkbox-group}/checkbox-group.js +3 -3
- package/dist/components/{civilization-card → molecules/civilization-card}/civilization-card.js +2 -2
- package/dist/components/{color-picker → molecules/color-picker}/color-picker.js +55 -42
- package/dist/components/{command → molecules/command}/command.js +35 -16
- package/dist/components/molecules/completion-dialog/completion-dialog.js +163 -0
- package/dist/components/{connector-edge → molecules/connector-edge}/connector-edge.js +3 -2
- package/dist/components/{content-intro → molecules/content-intro}/content-intro.js +5 -3
- package/dist/components/{conversation-thread → molecules/conversation-thread}/conversation-thread.js +7 -6
- package/dist/components/{cookie-consent → molecules/cookie-consent}/cookie-consent.js +2 -2
- package/dist/components/{copy-button → molecules/copy-button}/copy-button.js +7 -47
- package/dist/components/molecules/copy-button/use-copy-to-clipboard.js +42 -0
- package/dist/components/{countdown-timer → molecules/countdown-timer}/countdown-timer.js +5 -5
- package/dist/components/{credit-badge → molecules/credit-badge}/credit-badge.js +2 -2
- package/dist/components/{exercise → molecules/exercise}/exercise.js +5 -5
- package/dist/components/{field → molecules/field}/field.js +2 -2
- package/dist/components/{file-upload → molecules/file-upload}/file-upload.js +45 -43
- package/dist/components/{filter-bar → molecules/filter-bar}/filter-bar.js +6 -6
- package/dist/components/{flashcard → molecules/flashcard}/flashcard.js +4 -4
- package/dist/components/{form → molecules/form}/form.js +2 -2
- package/dist/components/{historical-figure-card → molecules/historical-figure-card}/historical-figure-card.js +4 -4
- package/dist/components/{horizontal-scroll-row → molecules/horizontal-scroll-row}/horizontal-scroll-row.js +3 -3
- package/dist/components/{inline-input → molecules/inline-input}/inline-input.js +6 -2
- package/dist/components/{knowledge-check → molecules/knowledge-check}/knowledge-check.js +3 -3
- package/dist/components/{live-feed → molecules/live-feed}/live-feed.js +7 -7
- package/dist/components/{metric-gauge → molecules/metric-gauge}/metric-gauge.js +5 -5
- package/dist/components/{model-comparison → molecules/model-comparison}/model-comparison.js +3 -3
- package/dist/components/{newsletter-signup → molecules/newsletter-signup}/newsletter-signup.js +11 -4
- package/dist/components/{number-input → molecules/number-input}/number-input.js +8 -2
- package/dist/components/{object-card → molecules/object-card}/object-card.js +8 -7
- package/dist/components/{overview-board → molecules/overview-board}/overview-board.js +3 -2
- package/dist/components/molecules/pagination/pagination.js +76 -0
- package/dist/components/{plan-badge → molecules/plan-badge}/plan-badge.js +2 -2
- package/dist/components/{pricing-table → molecules/pricing-table}/pricing-table.js +2 -2
- package/dist/components/{profile-section → molecules/profile-section}/profile-section.js +1 -1
- package/dist/components/{progress-card → molecules/progress-card}/progress-card.js +21 -11
- package/dist/components/{progress-tracker → molecules/progress-tracker}/progress-tracker.js +45 -37
- package/dist/components/{prompt-templates → molecules/prompt-templates}/prompt-templates.js +4 -4
- package/dist/components/{role-badge → molecules/role-badge}/role-badge.js +2 -2
- package/dist/components/{scope-selector → molecules/scope-selector}/scope-selector.js +13 -9
- package/dist/components/{search-bar → molecules/search-bar}/search-bar.js +18 -12
- package/dist/components/{sidebar → molecules/sidebar}/sidebar.js +6 -6
- package/dist/components/{sidebar-toggle → molecules/sidebar-toggle}/sidebar-toggle.js +2 -2
- package/dist/components/{stat-card → molecules/stat-card}/stat-card.js +9 -4
- package/dist/components/{status-board → molecules/status-board}/status-board.js +10 -4
- package/dist/components/{text-field → molecules/text-field}/text-field.js +3 -3
- package/dist/components/{theme-toggle → molecules/theme-toggle}/theme-toggle.js +3 -3
- package/dist/components/{ticker-tape → molecules/ticker-tape}/ticker-tape.js +43 -15
- package/dist/components/{time-picker → molecules/time-picker}/time-picker.js +72 -29
- package/dist/components/{toggle-group → molecules/toggle-group}/toggle-group.js +2 -2
- package/dist/components/{tour → molecules/tour}/tour.js +18 -10
- package/dist/components/{transaction-list → molecules/transaction-list}/transaction-list.js +3 -3
- package/dist/components/{tutorial-card → molecules/tutorial-card}/tutorial-card.js +11 -9
- package/dist/components/{tutorial-filters → molecules/tutorial-filters}/tutorial-filters.js +5 -5
- package/dist/components/{usage-breakdown → molecules/usage-breakdown}/usage-breakdown.js +3 -3
- package/dist/components/{world-clock-bar → molecules/world-clock-bar}/world-clock-bar.js +3 -3
- package/dist/components/{zoom-hud → molecules/zoom-hud}/zoom-hud.js +3 -2
- package/dist/components/{activity-heatmap → organisms/activity-heatmap}/activity-heatmap.js +2 -2
- package/dist/components/{candlestick-chart → organisms/candlestick-chart}/candlestick-chart.js +5 -5
- package/dist/components/{canvas-view → organisms/canvas-view}/canvas-view.js +11 -15
- package/dist/components/{chart → organisms/chart}/area-chart.js +1 -1
- package/dist/components/{chart → organisms/chart}/bar-chart.js +2 -2
- package/dist/components/{chart → organisms/chart}/line-chart.js +1 -1
- package/dist/components/{choropleth-map → organisms/choropleth-map}/choropleth-map.js +10 -3
- package/dist/components/{chronological-timeline → organisms/chronological-timeline}/chronological-timeline.js +3 -5
- package/dist/components/{code-block → organisms/code-block}/code-block.js +45 -18
- package/dist/components/{code-playground → organisms/code-playground}/code-playground.js +11 -4
- package/dist/components/{combobox → organisms/combobox}/combobox.js +33 -11
- package/dist/components/{contribution-graph → organisms/contribution-graph}/contribution-graph.js +1 -1
- package/dist/components/{data-table → organisms/data-table}/data-table.js +45 -25
- package/dist/components/{date-picker → organisms/date-picker}/date-picker.js +30 -12
- package/dist/components/{date-range-picker → organisms/date-range-picker}/date-range-picker.js +28 -12
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-canvas.js +4 -1
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-controls.js +8 -2
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-diagram.js +1 -1
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-error-boundary.js +1 -1
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-fullscreen.js +7 -3
- package/dist/components/{flow-diagram → organisms/flow-diagram}/index.js +2 -0
- package/dist/components/{flow-diagram → organisms/flow-diagram}/use-flow-diagram.js +27 -13
- package/dist/components/{gantt-chart → organisms/gantt-chart}/gantt-chart.js +7 -3
- package/dist/components/{geography-quiz-map → organisms/geography-quiz-map}/geography-quiz-map.js +44 -21
- package/dist/components/{globe-3d → organisms/globe-3d}/globe-3d.js +2 -2
- package/dist/components/{heat-map-overlay → organisms/heat-map-overlay}/heat-map-overlay.js +1 -1
- package/dist/components/{historic-timeline → organisms/historic-timeline}/historic-timeline.js +2 -2
- package/dist/components/{interactive-timeline → organisms/interactive-timeline}/interactive-timeline.js +7 -7
- package/dist/components/{map-2d → organisms/map-2d}/map-2d.js +4 -1
- package/dist/components/{map-timeline → organisms/map-timeline}/map-timeline.js +1 -1
- package/dist/components/{market-treemap → organisms/market-treemap}/market-treemap.js +11 -4
- package/dist/components/{model-selector → organisms/model-selector}/model-selector.js +69 -52
- package/dist/components/{multi-select → organisms/multi-select}/multi-select.js +23 -6
- package/dist/components/{navbar-saas → organisms/navbar-saas}/navbar-saas.js +4 -4
- package/dist/components/{parallel-timeline → organisms/parallel-timeline}/parallel-timeline.js +3 -2
- package/dist/components/{pie-chart → organisms/pie-chart}/pie-chart.js +1 -1
- package/dist/components/{primary-source-viewer → organisms/primary-source-viewer}/primary-source-viewer.js +2 -2
- package/dist/components/{radar-chart → organisms/radar-chart}/radar-chart.js +1 -1
- package/dist/components/{range-calendar → organisms/range-calendar}/range-calendar.js +1 -1
- package/dist/components/{route-map → organisms/route-map}/route-map.js +1 -1
- package/dist/components/{run-timeline → organisms/run-timeline}/run-timeline.js +3 -3
- package/dist/components/{sankey-chart → organisms/sankey-chart}/sankey-chart.js +1 -1
- package/dist/components/{search-dialog → organisms/search-dialog}/search-dialog.js +3 -3
- package/dist/components/{share-dialog → organisms/share-dialog}/share-dialog.js +41 -27
- package/dist/components/{slideshow → organisms/slideshow}/slideshow.js +30 -15
- package/dist/components/{static-code → organisms/static-code}/static-code-copy.js +2 -2
- package/dist/components/{static-code → organisms/static-code}/static-code.js +1 -1
- package/dist/components/{story-map → organisms/story-map}/story-map.js +1 -1
- package/dist/components/{subscription-card → organisms/subscription-card}/subscription-card.js +6 -4
- package/dist/components/{terminal → organisms/terminal}/terminal.js +6 -6
- package/dist/components/{tree-view → organisms/tree-view}/tree-view.js +42 -5
- package/dist/components/{tutorial-complete → organisms/tutorial-complete}/tutorial-complete.js +3 -3
- package/dist/components/{tutorial-mdx → organisms/tutorial-mdx}/tutorial-mdx.js +27 -21
- package/dist/components/{wallet-card → organisms/wallet-card}/wallet-card.js +4 -4
- package/dist/components/{canvas-shell → templates/canvas-shell}/canvas-shell.js +1 -1
- package/dist/index.d.ts +1353 -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 -69
- package/styles.css +35 -6
- package/themes/default.css +6 -6
- package/themes/presets.css +76 -76
- package/dist/components/completion-dialog/completion-dialog.js +0 -204
- package/dist/components/cursor/cursor.js +0 -52
- package/dist/components/dock/dock.js +0 -109
- package/dist/components/magnetic/magnetic.js +0 -63
- package/dist/components/magnetic-button/magnetic-button.js +0 -64
- package/dist/components/marquee/marquee.js +0 -97
- package/dist/components/pagination/pagination.js +0 -44
- package/dist/components/scroll-area/scroll-area.js +0 -48
- package/dist/components/spotlight-card/spotlight-card.js +0 -53
- package/dist/components/tabs/tabs.js +0 -132
- package/dist/components/tilt-card/tilt-card.js +0 -70
- /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/{mdx-content → organisms/mdx-content}/mdx-content.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
const DEFAULT_LABELS = {
|
|
5
5
|
region: "Live cursor"
|
|
6
6
|
};
|
|
@@ -10,7 +10,7 @@ const LiveCursor = ({
|
|
|
10
10
|
}) => {
|
|
11
11
|
const { className, color, labels, name, status, x, y, ...rest } = props;
|
|
12
12
|
const resolvedLabels = { ...DEFAULT_LABELS, ...labels };
|
|
13
|
-
const resolvedColor = color ?? "var(--foreground)";
|
|
13
|
+
const resolvedColor = color ?? "oklch(var(--foreground))";
|
|
14
14
|
return /* @__PURE__ */ jsxs(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
@@ -41,12 +41,17 @@ const LiveCursor = ({
|
|
|
41
41
|
name === null || name === void 0 ? null : /* @__PURE__ */ jsxs(
|
|
42
42
|
"span",
|
|
43
43
|
{
|
|
44
|
-
className:
|
|
44
|
+
className: cn(
|
|
45
|
+
"ml-2 mt-2 inline-flex flex-col rounded-md px-1.5 py-0.5 text-[10px] font-medium shadow-sm",
|
|
46
|
+
color ? "text-white" : "bg-foreground text-background"
|
|
47
|
+
),
|
|
45
48
|
"data-live-cursor-chip": true,
|
|
46
|
-
style:
|
|
49
|
+
style: color ? {
|
|
50
|
+
backgroundColor: `color-mix(in oklab, ${color} 55%, oklch(0 0 0))`
|
|
51
|
+
} : void 0,
|
|
47
52
|
children: [
|
|
48
53
|
/* @__PURE__ */ jsx("span", { children: name }),
|
|
49
|
-
status ? /* @__PURE__ */ jsx("span", { className: "text-[9px]
|
|
54
|
+
status ? /* @__PURE__ */ jsx("span", { className: "text-[9px]", "data-live-cursor-status": true, children: status }) : null
|
|
50
55
|
]
|
|
51
56
|
}
|
|
52
57
|
)
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
|
+
function usePrefersReducedMotion() {
|
|
6
|
+
const [reduced, setReduced] = React.useState(false);
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const query = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
12
|
+
const onChange = () => {
|
|
13
|
+
setReduced(query.matches);
|
|
14
|
+
};
|
|
15
|
+
onChange();
|
|
16
|
+
query.addEventListener("change", onChange);
|
|
17
|
+
return () => {
|
|
18
|
+
query.removeEventListener("change", onChange);
|
|
19
|
+
};
|
|
20
|
+
}, []);
|
|
21
|
+
return reduced;
|
|
22
|
+
}
|
|
23
|
+
function usePointerTransform({
|
|
24
|
+
compute,
|
|
25
|
+
enabled,
|
|
26
|
+
keepTransform
|
|
27
|
+
}) {
|
|
28
|
+
const element = React.useRef(null);
|
|
29
|
+
const pointer = React.useRef({ x: 0, y: 0 });
|
|
30
|
+
const frame = React.useRef(null);
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
return () => {
|
|
33
|
+
if (frame.current !== null) {
|
|
34
|
+
cancelAnimationFrame(frame.current);
|
|
35
|
+
frame.current = null;
|
|
36
|
+
}
|
|
37
|
+
element.current = null;
|
|
38
|
+
};
|
|
39
|
+
}, []);
|
|
40
|
+
const writeTransform = (target, transform) => {
|
|
41
|
+
if (target && !keepTransform) {
|
|
42
|
+
target.style.transform = transform;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const applyFrame = () => {
|
|
46
|
+
frame.current = null;
|
|
47
|
+
const target = element.current;
|
|
48
|
+
if (target) {
|
|
49
|
+
writeTransform(
|
|
50
|
+
target,
|
|
51
|
+
compute(pointer.current, target.getBoundingClientRect())
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return {
|
|
56
|
+
handlePointerLeave: (event) => {
|
|
57
|
+
if (frame.current !== null) {
|
|
58
|
+
cancelAnimationFrame(frame.current);
|
|
59
|
+
frame.current = null;
|
|
60
|
+
}
|
|
61
|
+
writeTransform(event.currentTarget, "");
|
|
62
|
+
},
|
|
63
|
+
handlePointerMove: (event) => {
|
|
64
|
+
if (!enabled) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
element.current = event.currentTarget;
|
|
68
|
+
pointer.current = { x: event.clientX, y: event.clientY };
|
|
69
|
+
frame.current ?? (frame.current = requestAnimationFrame(applyFrame));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const Magnetic = ({
|
|
74
|
+
children,
|
|
75
|
+
className,
|
|
76
|
+
ref,
|
|
77
|
+
strength = 0.4,
|
|
78
|
+
style,
|
|
79
|
+
...props
|
|
80
|
+
}) => {
|
|
81
|
+
const reduced = usePrefersReducedMotion();
|
|
82
|
+
const { handlePointerLeave, handlePointerMove } = usePointerTransform({
|
|
83
|
+
compute: (pointer, bounds) => {
|
|
84
|
+
const offsetX = (pointer.x - bounds.left - bounds.width / 2) * strength;
|
|
85
|
+
const offsetY = (pointer.y - bounds.top - bounds.height / 2) * strength;
|
|
86
|
+
return `translate(${offsetX}px, ${offsetY}px)`;
|
|
87
|
+
},
|
|
88
|
+
enabled: !reduced,
|
|
89
|
+
keepTransform: style?.transform !== void 0
|
|
90
|
+
});
|
|
91
|
+
return /* @__PURE__ */ jsx(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
className: cn(
|
|
95
|
+
"transition-transform duration-200 ease-out will-change-transform",
|
|
96
|
+
className
|
|
97
|
+
),
|
|
98
|
+
onPointerLeave: handlePointerLeave,
|
|
99
|
+
onPointerMove: handlePointerMove,
|
|
100
|
+
ref,
|
|
101
|
+
style,
|
|
102
|
+
...props,
|
|
103
|
+
children
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
};
|
|
107
|
+
Magnetic.displayName = "Magnetic";
|
|
108
|
+
export {
|
|
109
|
+
Magnetic
|
|
110
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
|
+
function usePrefersReducedMotion() {
|
|
6
|
+
const [reduced, setReduced] = React.useState(false);
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const query = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
12
|
+
const onChange = () => {
|
|
13
|
+
setReduced(query.matches);
|
|
14
|
+
};
|
|
15
|
+
onChange();
|
|
16
|
+
query.addEventListener("change", onChange);
|
|
17
|
+
return () => {
|
|
18
|
+
query.removeEventListener("change", onChange);
|
|
19
|
+
};
|
|
20
|
+
}, []);
|
|
21
|
+
return reduced;
|
|
22
|
+
}
|
|
23
|
+
function usePointerTransform({
|
|
24
|
+
compute,
|
|
25
|
+
enabled,
|
|
26
|
+
keepTransform
|
|
27
|
+
}) {
|
|
28
|
+
const element = React.useRef(null);
|
|
29
|
+
const pointer = React.useRef({ x: 0, y: 0 });
|
|
30
|
+
const frame = React.useRef(null);
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
return () => {
|
|
33
|
+
if (frame.current !== null) {
|
|
34
|
+
cancelAnimationFrame(frame.current);
|
|
35
|
+
frame.current = null;
|
|
36
|
+
}
|
|
37
|
+
element.current = null;
|
|
38
|
+
};
|
|
39
|
+
}, []);
|
|
40
|
+
const writeTransform = (target, transform) => {
|
|
41
|
+
if (target && !keepTransform) {
|
|
42
|
+
target.style.transform = transform;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const applyFrame = () => {
|
|
46
|
+
frame.current = null;
|
|
47
|
+
const target = element.current;
|
|
48
|
+
if (target) {
|
|
49
|
+
writeTransform(
|
|
50
|
+
target,
|
|
51
|
+
compute(pointer.current, target.getBoundingClientRect())
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return {
|
|
56
|
+
handlePointerLeave: (event) => {
|
|
57
|
+
if (frame.current !== null) {
|
|
58
|
+
cancelAnimationFrame(frame.current);
|
|
59
|
+
frame.current = null;
|
|
60
|
+
}
|
|
61
|
+
writeTransform(event.currentTarget, "");
|
|
62
|
+
},
|
|
63
|
+
handlePointerMove: (event) => {
|
|
64
|
+
if (!enabled) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
element.current = event.currentTarget;
|
|
68
|
+
pointer.current = { x: event.clientX, y: event.clientY };
|
|
69
|
+
frame.current ?? (frame.current = requestAnimationFrame(applyFrame));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const MagneticButton = ({
|
|
74
|
+
children,
|
|
75
|
+
className,
|
|
76
|
+
ref,
|
|
77
|
+
strength = 0.4,
|
|
78
|
+
style,
|
|
79
|
+
...props
|
|
80
|
+
}) => {
|
|
81
|
+
const reduced = usePrefersReducedMotion();
|
|
82
|
+
const { handlePointerLeave, handlePointerMove } = usePointerTransform({
|
|
83
|
+
compute: (pointer, bounds) => {
|
|
84
|
+
const offsetX = (pointer.x - bounds.left - bounds.width / 2) * strength;
|
|
85
|
+
const offsetY = (pointer.y - bounds.top - bounds.height / 2) * strength;
|
|
86
|
+
return `translate(${offsetX}px, ${offsetY}px)`;
|
|
87
|
+
},
|
|
88
|
+
enabled: !reduced,
|
|
89
|
+
keepTransform: style?.transform !== void 0
|
|
90
|
+
});
|
|
91
|
+
return /* @__PURE__ */ jsx(
|
|
92
|
+
"button",
|
|
93
|
+
{
|
|
94
|
+
className: cn(
|
|
95
|
+
"transition-transform duration-200 ease-out will-change-transform",
|
|
96
|
+
className
|
|
97
|
+
),
|
|
98
|
+
onPointerLeave: handlePointerLeave,
|
|
99
|
+
onPointerMove: handlePointerMove,
|
|
100
|
+
ref,
|
|
101
|
+
style,
|
|
102
|
+
type: "button",
|
|
103
|
+
...props,
|
|
104
|
+
children
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
MagneticButton.displayName = "MagneticButton";
|
|
109
|
+
export {
|
|
110
|
+
MagneticButton
|
|
111
|
+
};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Pause, Play } from "lucide-react";
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
|
+
function getGapValue(gap) {
|
|
7
|
+
return typeof gap === "number" ? `${gap}px` : gap;
|
|
8
|
+
}
|
|
9
|
+
function getMaskImage(vertical) {
|
|
10
|
+
return vertical ? "linear-gradient(to bottom, transparent, black 12%, black 88%, transparent)" : "linear-gradient(to right, transparent, black 12%, black 88%, transparent)";
|
|
11
|
+
}
|
|
12
|
+
function getTrackItems(children, repeat) {
|
|
13
|
+
const items = React.Children.toArray(children);
|
|
14
|
+
return Array.from(
|
|
15
|
+
{ length: Math.max(1, repeat) },
|
|
16
|
+
(_, copyIndex) => items.map((item, itemIndex) => /* @__PURE__ */ jsx("div", { className: "shrink-0", children: item }, `${copyIndex}-${itemIndex}`))
|
|
17
|
+
).flat();
|
|
18
|
+
}
|
|
19
|
+
function getDuration(duration, speed) {
|
|
20
|
+
if (duration !== void 0) {
|
|
21
|
+
return duration;
|
|
22
|
+
}
|
|
23
|
+
switch (speed) {
|
|
24
|
+
case "fast":
|
|
25
|
+
return 10;
|
|
26
|
+
case "normal":
|
|
27
|
+
return 20;
|
|
28
|
+
case "slow":
|
|
29
|
+
return 32;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function PauseToggle({ labels, onToggle, paused }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
"button",
|
|
35
|
+
{
|
|
36
|
+
"aria-label": paused ? labels.play : labels.pause,
|
|
37
|
+
className: "absolute right-1 top-1 z-10 inline-flex size-6 items-center justify-center rounded-md border border-border bg-background/90 text-foreground shadow-sm hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:hidden",
|
|
38
|
+
onClick: onToggle,
|
|
39
|
+
type: "button",
|
|
40
|
+
children: paused ? /* @__PURE__ */ jsx(Play, { "aria-hidden": "true", className: "size-3" }) : /* @__PURE__ */ jsx(Pause, { "aria-hidden": "true", className: "size-3" })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function MarqueeTrack({
|
|
45
|
+
gap,
|
|
46
|
+
items,
|
|
47
|
+
paused,
|
|
48
|
+
pauseOnHover,
|
|
49
|
+
style,
|
|
50
|
+
vertical
|
|
51
|
+
}) {
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: cn(
|
|
56
|
+
"flex shrink-0 will-change-transform [animation-iteration-count:infinite] [animation-timing-function:linear] focus-within:[animation-play-state:paused] motion-reduce:animate-none motion-reduce:transform-none",
|
|
57
|
+
vertical ? "[animation-name:vllnt-marquee-y]" : "[animation-name:vllnt-marquee-x]",
|
|
58
|
+
pauseOnHover && "group-hover:[animation-play-state:paused]",
|
|
59
|
+
paused && "[animation-play-state:paused]",
|
|
60
|
+
vertical ? "min-h-full flex-col" : "min-w-full flex-row"
|
|
61
|
+
),
|
|
62
|
+
"data-marquee-track": "",
|
|
63
|
+
style,
|
|
64
|
+
children: [0, 1].map((groupIndex) => /* @__PURE__ */ jsx(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
"aria-hidden": groupIndex === 1,
|
|
68
|
+
className: cn(
|
|
69
|
+
"flex shrink-0",
|
|
70
|
+
vertical ? "flex-col items-stretch" : "flex-row items-center"
|
|
71
|
+
),
|
|
72
|
+
style: { gap },
|
|
73
|
+
children: items
|
|
74
|
+
},
|
|
75
|
+
groupIndex
|
|
76
|
+
))
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
const Marquee = ({
|
|
81
|
+
children,
|
|
82
|
+
className,
|
|
83
|
+
duration,
|
|
84
|
+
fade = true,
|
|
85
|
+
gap = "1rem",
|
|
86
|
+
labels,
|
|
87
|
+
pauseControl = true,
|
|
88
|
+
pauseOnHover = false,
|
|
89
|
+
ref,
|
|
90
|
+
repeat = 1,
|
|
91
|
+
reverse = false,
|
|
92
|
+
speed = "normal",
|
|
93
|
+
style,
|
|
94
|
+
vertical = false,
|
|
95
|
+
...props
|
|
96
|
+
}) => {
|
|
97
|
+
const [paused, setPaused] = React.useState(false);
|
|
98
|
+
const resolvedGap = getGapValue(gap);
|
|
99
|
+
const resolvedDuration = getDuration(duration, speed);
|
|
100
|
+
const trackItems = getTrackItems(children, repeat);
|
|
101
|
+
const animationStyle = {
|
|
102
|
+
animationDirection: reverse ? "reverse" : "normal",
|
|
103
|
+
animationDuration: `${resolvedDuration.toString()}s`
|
|
104
|
+
};
|
|
105
|
+
const maskImage = getMaskImage(vertical);
|
|
106
|
+
return /* @__PURE__ */ jsxs(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
className: cn(
|
|
110
|
+
"group relative overflow-hidden",
|
|
111
|
+
vertical ? "flex h-full flex-col" : "flex w-full flex-row",
|
|
112
|
+
className
|
|
113
|
+
),
|
|
114
|
+
ref,
|
|
115
|
+
style,
|
|
116
|
+
...props,
|
|
117
|
+
children: [
|
|
118
|
+
pauseControl ? /* @__PURE__ */ jsx(
|
|
119
|
+
PauseToggle,
|
|
120
|
+
{
|
|
121
|
+
labels: { pause: "Pause", play: "Play", ...labels },
|
|
122
|
+
onToggle: () => {
|
|
123
|
+
setPaused((value) => !value);
|
|
124
|
+
},
|
|
125
|
+
paused
|
|
126
|
+
}
|
|
127
|
+
) : null,
|
|
128
|
+
/* @__PURE__ */ jsx(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
className: cn(
|
|
132
|
+
"flex min-h-0 min-w-0 flex-1 overflow-hidden",
|
|
133
|
+
vertical ? "flex-col" : "flex-row"
|
|
134
|
+
),
|
|
135
|
+
style: fade ? { maskImage, WebkitMaskImage: maskImage } : void 0,
|
|
136
|
+
children: /* @__PURE__ */ jsx(
|
|
137
|
+
MarqueeTrack,
|
|
138
|
+
{
|
|
139
|
+
gap: resolvedGap,
|
|
140
|
+
items: trackItems,
|
|
141
|
+
paused,
|
|
142
|
+
pauseOnHover,
|
|
143
|
+
style: animationStyle,
|
|
144
|
+
vertical
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
Marquee.displayName = "Marquee";
|
|
154
|
+
export {
|
|
155
|
+
Marquee
|
|
156
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
4
4
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
const MenubarMenu = MenubarPrimitive.Menu;
|
|
7
7
|
const MenubarGroup = MenubarPrimitive.Group;
|
|
8
8
|
const MenubarPortal = MenubarPrimitive.Portal;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
function createMeteors(count) {
|
|
6
6
|
return Array.from({ length: count }, () => ({
|
|
7
7
|
delay: Math.random(),
|
|
@@ -13,8 +13,8 @@ function createMeteors(count) {
|
|
|
13
13
|
function meteorStyle(meteor) {
|
|
14
14
|
return {
|
|
15
15
|
"--vllnt-meteor-angle": "215deg",
|
|
16
|
-
animation: `vllnt-meteor ${meteor.duration}s linear infinite`,
|
|
17
16
|
animationDelay: `${meteor.delay}s`,
|
|
17
|
+
animationDuration: `${meteor.duration}s`,
|
|
18
18
|
left: `${meteor.left}%`,
|
|
19
19
|
top: `${meteor.top}%`
|
|
20
20
|
};
|
|
@@ -39,7 +39,7 @@ const Meteors = ({
|
|
|
39
39
|
children: meteors.map((meteor, index) => /* @__PURE__ */ jsx(
|
|
40
40
|
"span",
|
|
41
41
|
{
|
|
42
|
-
className: "absolute h-0.5 w-0.5 rounded-full bg-muted-foreground motion-reduce:animate-none",
|
|
42
|
+
className: "absolute h-0.5 w-0.5 rounded-full bg-muted-foreground [animation-name:vllnt-meteor] [animation-iteration-count:infinite] [animation-timing-function:linear] motion-reduce:animate-none",
|
|
43
43
|
style: meteorStyle(meteor),
|
|
44
44
|
children: /* @__PURE__ */ jsx(
|
|
45
45
|
"span",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
const meterFillVariants = cva("h-full transition-all", {
|
|
5
5
|
defaultVariants: {
|
|
6
6
|
variant: "default"
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { ChevronDown } from "lucide-react";
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../../lib/utils.js";
|
|
7
7
|
const NavigationMenu = ({
|
|
8
8
|
children,
|
|
9
9
|
className,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
const NUMBER_FORMATTER_CACHE = /* @__PURE__ */ new Map();
|
|
6
6
|
function getNumberTickerFormatter(locale, formatOptions) {
|
|
7
7
|
const key = `${locale ?? ""}|${formatOptions ? JSON.stringify(formatOptions) : ""}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
const ObjectHandle = ({
|
|
4
4
|
className,
|
|
5
5
|
hint,
|
|
@@ -31,7 +31,7 @@ const ObjectHandle = ({
|
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
33
|
/* @__PURE__ */ jsx("span", { children: label }),
|
|
34
|
-
hint ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground
|
|
34
|
+
hint ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: hint }) : null
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
const KIND_LABEL = {
|
|
5
5
|
agent: "Agent",
|
|
6
6
|
artifact: "Artifact",
|
|
@@ -22,7 +22,7 @@ const STATUS_DOT = {
|
|
|
22
22
|
failed: "bg-red-500",
|
|
23
23
|
idle: "bg-muted-foreground",
|
|
24
24
|
queued: "bg-amber-500",
|
|
25
|
-
running: "bg-blue-500 animate-pulse"
|
|
25
|
+
running: "bg-blue-500 animate-pulse motion-reduce:animate-none"
|
|
26
26
|
};
|
|
27
27
|
const STATUS_LABEL = {
|
|
28
28
|
complete: "Complete",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
function withCumulativeTotal(levels) {
|
|
4
4
|
let runningTotal = 0;
|
|
5
5
|
return levels.map((level) => {
|
|
@@ -10,11 +10,17 @@ function withCumulativeTotal(levels) {
|
|
|
10
10
|
};
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
+
const numberFormatters = /* @__PURE__ */ new Map();
|
|
13
14
|
function formatNumber(value, precision = 2) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
let formatter = numberFormatters.get(precision);
|
|
16
|
+
if (!formatter) {
|
|
17
|
+
formatter = new Intl.NumberFormat(void 0, {
|
|
18
|
+
maximumFractionDigits: precision,
|
|
19
|
+
minimumFractionDigits: precision
|
|
20
|
+
});
|
|
21
|
+
numberFormatters.set(precision, formatter);
|
|
22
|
+
}
|
|
23
|
+
return formatter.format(value);
|
|
18
24
|
}
|
|
19
25
|
function BookSide({
|
|
20
26
|
accent,
|
|
@@ -24,7 +30,7 @@ function BookSide({
|
|
|
24
30
|
}) {
|
|
25
31
|
const maxTotal = Math.max(...levels.map((level) => level.total ?? 0), 1);
|
|
26
32
|
const barClassName = accent === "ask" ? "bg-rose-500/12 border-rose-500/15" : "bg-emerald-500/12 border-emerald-500/15";
|
|
27
|
-
const priceClassName = accent === "ask" ? "text-rose-
|
|
33
|
+
const priceClassName = accent === "ask" ? "text-rose-700 dark:text-rose-400" : "text-emerald-700 dark:text-emerald-400";
|
|
28
34
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
29
35
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
30
36
|
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold uppercase tracking-[0.24em] text-muted-foreground", children: title }),
|
|
@@ -36,7 +42,7 @@ function BookSide({
|
|
|
36
42
|
/* @__PURE__ */ jsx("span", { className: "text-right", children: "Size" }),
|
|
37
43
|
/* @__PURE__ */ jsx("span", { className: "text-right", children: "Total" })
|
|
38
44
|
] }),
|
|
39
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: levels.map((level) => {
|
|
45
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: levels.map((level, index) => {
|
|
40
46
|
const width = `${(level.total ?? 0) / maxTotal * 100}%`;
|
|
41
47
|
return /* @__PURE__ */ jsxs(
|
|
42
48
|
"div",
|
|
@@ -60,7 +66,7 @@ function BookSide({
|
|
|
60
66
|
] })
|
|
61
67
|
]
|
|
62
68
|
},
|
|
63
|
-
`${accent}-${level.price}-${
|
|
69
|
+
`${accent}-${level.price}-${index.toString()}`
|
|
64
70
|
);
|
|
65
71
|
}) })
|
|
66
72
|
] })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
function createParticles(count) {
|
|
6
6
|
return Array.from({ length: count }, () => ({
|
|
7
7
|
delay: Math.random() * 4,
|
|
@@ -31,10 +31,10 @@ const Particles = ({
|
|
|
31
31
|
children: particles.map((particle, index) => /* @__PURE__ */ jsx(
|
|
32
32
|
"span",
|
|
33
33
|
{
|
|
34
|
-
className: "absolute rounded-full bg-foreground/30 motion-reduce:animate-none",
|
|
34
|
+
className: "absolute rounded-full bg-foreground/30 [animation-name:vllnt-particle-float] [animation-iteration-count:infinite] [animation-timing-function:linear] motion-reduce:animate-none",
|
|
35
35
|
style: {
|
|
36
|
-
animation: `vllnt-particle-float ${particle.duration}s linear infinite`,
|
|
37
36
|
animationDelay: `${particle.delay}s`,
|
|
37
|
+
animationDuration: `${particle.duration}s`,
|
|
38
38
|
height: `${particle.size}px`,
|
|
39
39
|
left: `${particle.left}%`,
|
|
40
40
|
top: `${particle.top}%`,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Eye, EyeOff } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
const PasswordInput = ({
|
|
7
7
|
className,
|
|
8
8
|
hideLabel = "Hide password",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
const defaultCountries = [
|
|
6
6
|
{ code: "US", dialCode: "+1", label: "United States" },
|
|
7
7
|
{ code: "GB", dialCode: "+44", label: "United Kingdom" },
|