@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 KIND_GLYPH = {
|
|
5
5
|
agent: "\u25C7",
|
|
6
6
|
artifact: "\u25CC",
|
|
@@ -53,7 +53,7 @@ const PlaybackGhost = ({
|
|
|
53
53
|
{
|
|
54
54
|
"aria-label": ariaLabel,
|
|
55
55
|
className: cn(
|
|
56
|
-
"pointer-events-none absolute z-10 inline-flex -translate-x-1/2 -translate-y-1/2 items-center justify-center gap-1.5 rounded-md
|
|
56
|
+
"pointer-events-none absolute z-10 inline-flex -translate-x-1/2 -translate-y-1/2 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground",
|
|
57
57
|
className
|
|
58
58
|
),
|
|
59
59
|
"data-playback-ghost": true,
|
|
@@ -64,13 +64,21 @@ const PlaybackGhost = ({
|
|
|
64
64
|
left: x,
|
|
65
65
|
minHeight: safeSize,
|
|
66
66
|
minWidth: safeSize,
|
|
67
|
-
opacity: safeOpacity,
|
|
68
67
|
top: y
|
|
69
68
|
},
|
|
70
69
|
...rest,
|
|
71
70
|
children: [
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
"span",
|
|
73
|
+
{
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
className: "absolute inset-0 rounded-md border border-dashed border-border/70 bg-background/40 backdrop-blur-sm",
|
|
76
|
+
"data-playback-ghost-frame": true,
|
|
77
|
+
style: { opacity: safeOpacity }
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
kind ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "relative", children: KIND_GLYPH[kind] }) : null,
|
|
81
|
+
label ? /* @__PURE__ */ jsx("span", { className: "relative truncate", "data-playback-ghost-label": true, children: label }) : null
|
|
74
82
|
]
|
|
75
83
|
}
|
|
76
84
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
const Popover = PopoverPrimitive.Root;
|
|
6
6
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7
7
|
const PopoverAnchor = PopoverPrimitive.Anchor;
|
|
@@ -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 STATUS_DOT = {
|
|
5
5
|
active: "bg-emerald-500",
|
|
6
6
|
away: "bg-amber-500",
|
|
@@ -17,10 +17,15 @@ const Avatar = (props) => {
|
|
|
17
17
|
return /* @__PURE__ */ jsxs(
|
|
18
18
|
"span",
|
|
19
19
|
{
|
|
20
|
-
className:
|
|
20
|
+
className: cn(
|
|
21
|
+
"relative -ml-2 inline-flex size-7 items-center justify-center rounded-full border-2 border-background text-[11px] font-semibold shadow-sm first:ml-0",
|
|
22
|
+
user.color ? "text-white" : "bg-foreground text-background"
|
|
23
|
+
),
|
|
21
24
|
"data-presence-stack-status": status,
|
|
22
25
|
"data-presence-stack-user": user.id,
|
|
23
|
-
style:
|
|
26
|
+
style: user.color ? {
|
|
27
|
+
backgroundColor: `color-mix(in oklab, ${user.color} 55%, oklch(0 0 0))`
|
|
28
|
+
} : void 0,
|
|
24
29
|
title: user.name,
|
|
25
30
|
children: [
|
|
26
31
|
user.initial,
|
|
@@ -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 STATE_LABEL = {
|
|
5
5
|
error: "Sync error",
|
|
6
6
|
live: "Live",
|
|
@@ -12,8 +12,8 @@ const STATE_DOT = {
|
|
|
12
12
|
error: "bg-red-500",
|
|
13
13
|
live: "bg-emerald-500",
|
|
14
14
|
offline: "bg-muted-foreground",
|
|
15
|
-
reconnecting: "bg-amber-500 animate-pulse",
|
|
16
|
-
syncing: "bg-blue-500 animate-pulse"
|
|
15
|
+
reconnecting: "bg-amber-500 animate-pulse motion-reduce:animate-none",
|
|
16
|
+
syncing: "bg-blue-500 animate-pulse motion-reduce:animate-none"
|
|
17
17
|
};
|
|
18
18
|
const STATE_TEXT = {
|
|
19
19
|
error: "text-red-700 dark:text-red-300",
|
|
@@ -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 variantStyles = {
|
|
4
4
|
advanced: {
|
|
5
5
|
className: "border-purple-500/50 bg-purple-500/10 text-purple-700 dark:text-purple-300",
|
|
@@ -42,6 +42,7 @@ function ProTip({
|
|
|
42
42
|
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-full bg-current/10 flex-shrink-0", children: icon ? /* @__PURE__ */ jsx("span", { className: "size-4", children: icon }) : /* @__PURE__ */ jsx(
|
|
43
43
|
"svg",
|
|
44
44
|
{
|
|
45
|
+
"aria-hidden": "true",
|
|
45
46
|
className: "size-4",
|
|
46
47
|
fill: "none",
|
|
47
48
|
stroke: "currentColor",
|
|
@@ -73,6 +74,7 @@ function CommonMistakeFix({
|
|
|
73
74
|
fixIcon ? /* @__PURE__ */ jsx("span", { className: "size-5 text-green-500 flex-shrink-0 mt-0.5", children: fixIcon }) : /* @__PURE__ */ jsx(
|
|
74
75
|
"svg",
|
|
75
76
|
{
|
|
77
|
+
"aria-hidden": "true",
|
|
76
78
|
className: "size-5 text-green-500 flex-shrink-0 mt-0.5",
|
|
77
79
|
fill: "none",
|
|
78
80
|
stroke: "currentColor",
|
|
@@ -114,6 +116,7 @@ function CommonMistake({
|
|
|
114
116
|
icon ? /* @__PURE__ */ jsx("span", { className: "size-5 text-red-500 flex-shrink-0 mt-0.5", children: icon }) : /* @__PURE__ */ jsx(
|
|
115
117
|
"svg",
|
|
116
118
|
{
|
|
119
|
+
"aria-hidden": "true",
|
|
117
120
|
className: "size-5 text-red-500 flex-shrink-0 mt-0.5",
|
|
118
121
|
fill: "none",
|
|
119
122
|
stroke: "currentColor",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
function ProgressBar({
|
|
4
4
|
className,
|
|
5
5
|
completedLabel,
|
|
@@ -23,8 +23,8 @@ function ProgressBar({
|
|
|
23
23
|
),
|
|
24
24
|
children: [
|
|
25
25
|
showLabels ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between mb-2 h-5", children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
-
/* @__PURE__ */ jsx("span", { className: "h-5 w-16 bg-muted rounded animate-pulse" }),
|
|
27
|
-
/* @__PURE__ */ jsx("span", { className: "h-5 w-24 bg-muted rounded animate-pulse" })
|
|
26
|
+
/* @__PURE__ */ jsx("span", { className: "h-5 w-16 bg-muted rounded animate-pulse motion-reduce:animate-none" }),
|
|
27
|
+
/* @__PURE__ */ jsx("span", { className: "h-5 w-24 bg-muted rounded animate-pulse motion-reduce:animate-none" })
|
|
28
28
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
29
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium leading-5", children: currentLabel ?? (isComplete ? "Complete" : "Progress") }),
|
|
30
30
|
/* @__PURE__ */ jsxs("span", { className: "text-sm text-muted-foreground leading-5", children: [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { LoaderCircle, SendHorizontal } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
const SUBMIT_KEY = "Enter";
|
|
7
7
|
const REM_PER_ROW = 1.5;
|
|
8
8
|
function autoResize(element) {
|
|
@@ -103,7 +103,13 @@ function PromptInputActions({
|
|
|
103
103
|
className: "inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary text-primary-foreground transition-opacity hover:opacity-90 disabled:opacity-40",
|
|
104
104
|
disabled: !canSubmit,
|
|
105
105
|
type: "submit",
|
|
106
|
-
children: isLoading ? /* @__PURE__ */ jsx(
|
|
106
|
+
children: isLoading ? /* @__PURE__ */ jsx(
|
|
107
|
+
LoaderCircle,
|
|
108
|
+
{
|
|
109
|
+
className: "size-4 animate-spin motion-reduce:[animation-duration:1.5s]",
|
|
110
|
+
"data-motion": "essential"
|
|
111
|
+
}
|
|
112
|
+
) : /* @__PURE__ */ jsx(SendHorizontal, { className: "size-4" })
|
|
107
113
|
}
|
|
108
114
|
)
|
|
109
115
|
] });
|
|
@@ -143,7 +149,7 @@ const PromptInput = ({
|
|
|
143
149
|
"form",
|
|
144
150
|
{
|
|
145
151
|
className: cn(
|
|
146
|
-
"flex flex-col gap-2 rounded-2xl border border-
|
|
152
|
+
"flex flex-col gap-2 rounded-2xl border border-input bg-background p-2 shadow-sm transition-colors focus-within:ring-1 focus-within:ring-ring",
|
|
147
153
|
className
|
|
148
154
|
),
|
|
149
155
|
onSubmit: handleFormSubmit,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, 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: "Properties"
|
|
6
6
|
};
|
|
@@ -17,7 +17,7 @@ const Grid = (props) => /* @__PURE__ */ jsx(
|
|
|
17
17
|
"data-property-id": entry.id,
|
|
18
18
|
children: [
|
|
19
19
|
/* @__PURE__ */ jsx("span", { children: entry.label }),
|
|
20
|
-
entry.sublabel ? /* @__PURE__ */ jsx("span", { className: "text-[10px] uppercase tracking-wide text-muted-foreground
|
|
20
|
+
entry.sublabel ? /* @__PURE__ */ jsx("span", { className: "text-[10px] uppercase tracking-wide text-muted-foreground", children: entry.sublabel }) : null
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
const proseStyles = cn(
|
|
4
4
|
"font-[family-name:var(--font-sans)] text-[length:var(--font-size-body)] leading-[var(--line-height-body)] text-foreground",
|
|
5
5
|
"[&>*+*]:mt-4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { create } from "qrcode";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
function buildPath(data, count, margin) {
|
|
5
5
|
return Array.from({ length: count * count }).reduce(
|
|
6
6
|
(path, _cell, index) => {
|
|
@@ -12,6 +12,32 @@ function buildPath(data, count, margin) {
|
|
|
12
12
|
""
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
|
+
const ENCODING_CACHE_LIMIT = 32;
|
|
16
|
+
const encodingCache = /* @__PURE__ */ new Map();
|
|
17
|
+
function encodeQrCode(value, level, margin) {
|
|
18
|
+
const cacheable = typeof window !== "undefined";
|
|
19
|
+
const key = `${level}|${margin}|${value}`;
|
|
20
|
+
const cached = cacheable ? encodingCache.get(key) : void 0;
|
|
21
|
+
if (cached) {
|
|
22
|
+
return cached;
|
|
23
|
+
}
|
|
24
|
+
const { modules } = create(value, { errorCorrectionLevel: level });
|
|
25
|
+
const encoding = {
|
|
26
|
+
count: modules.size,
|
|
27
|
+
path: buildPath(modules.data, modules.size, margin)
|
|
28
|
+
};
|
|
29
|
+
if (!cacheable) {
|
|
30
|
+
return encoding;
|
|
31
|
+
}
|
|
32
|
+
encodingCache.set(key, encoding);
|
|
33
|
+
if (encodingCache.size > ENCODING_CACHE_LIMIT) {
|
|
34
|
+
const oldest = encodingCache.keys().next().value;
|
|
35
|
+
if (oldest !== void 0) {
|
|
36
|
+
encodingCache.delete(oldest);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return encoding;
|
|
40
|
+
}
|
|
15
41
|
const QrCode = ({
|
|
16
42
|
className,
|
|
17
43
|
level = "M",
|
|
@@ -22,10 +48,8 @@ const QrCode = ({
|
|
|
22
48
|
value,
|
|
23
49
|
...props
|
|
24
50
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
const count = modules?.size ?? 0;
|
|
51
|
+
const { count, path } = value ? encodeQrCode(value, level, margin) : { count: 0, path: "" };
|
|
27
52
|
const dimension = count + margin * 2;
|
|
28
|
-
const path = modules ? buildPath(modules.data, count, margin) : "";
|
|
29
53
|
return /* @__PURE__ */ jsx(
|
|
30
54
|
"svg",
|
|
31
55
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
function QuizResultIcon({
|
|
6
6
|
className,
|
|
7
7
|
d
|
|
@@ -9,6 +9,7 @@ function QuizResultIcon({
|
|
|
9
9
|
return /* @__PURE__ */ jsx(
|
|
10
10
|
"svg",
|
|
11
11
|
{
|
|
12
|
+
"aria-hidden": "true",
|
|
12
13
|
className,
|
|
13
14
|
fill: "none",
|
|
14
15
|
stroke: "currentColor",
|
|
@@ -112,6 +113,7 @@ function QuizHeader({ Heading, question }) {
|
|
|
112
113
|
/* @__PURE__ */ jsx(
|
|
113
114
|
"svg",
|
|
114
115
|
{
|
|
116
|
+
"aria-hidden": "true",
|
|
115
117
|
className: "size-5 text-primary flex-shrink-0 mt-0.5",
|
|
116
118
|
fill: "none",
|
|
117
119
|
stroke: "currentColor",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
4
|
import { Circle } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
const RadioGroup = ({
|
|
7
7
|
className,
|
|
8
8
|
ref,
|
|
@@ -2,12 +2,19 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo, useState } from "react";
|
|
4
4
|
import { Star } from "lucide-react";
|
|
5
|
-
import {
|
|
5
|
+
import { moveRovingFocus } from "../../../lib/roving-focus.js";
|
|
6
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
7
|
const sizeClasses = {
|
|
7
8
|
lg: "size-6",
|
|
8
9
|
md: "size-5",
|
|
9
10
|
sm: "size-4"
|
|
10
11
|
};
|
|
12
|
+
function handleRadioKeyDown(event) {
|
|
13
|
+
moveRovingFocus(event, '[role="radio"]', {
|
|
14
|
+
activate: true,
|
|
15
|
+
orientation: "both"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
11
18
|
function RatingStars({
|
|
12
19
|
activeValue,
|
|
13
20
|
hoveredValue,
|
|
@@ -23,12 +30,15 @@ function RatingStars({
|
|
|
23
30
|
[max]
|
|
24
31
|
);
|
|
25
32
|
const displayValue = hoveredValue || activeValue;
|
|
33
|
+
const tabStopValue = activeValue >= 1 && activeValue <= max ? activeValue : 1;
|
|
26
34
|
return /* @__PURE__ */ jsx(
|
|
27
35
|
"div",
|
|
28
36
|
{
|
|
29
37
|
"aria-label": label,
|
|
30
38
|
className: "inline-flex items-center gap-1",
|
|
39
|
+
onKeyDown: handleRadioKeyDown,
|
|
31
40
|
role: "radiogroup",
|
|
41
|
+
tabIndex: -1,
|
|
32
42
|
children: stars.map((starValue) => {
|
|
33
43
|
const isFilled = starValue <= displayValue;
|
|
34
44
|
return /* @__PURE__ */ jsx(
|
|
@@ -38,8 +48,8 @@ function RatingStars({
|
|
|
38
48
|
"aria-label": `${starValue} ${starValue === 1 ? "star" : "stars"}`,
|
|
39
49
|
className: cn(
|
|
40
50
|
"rounded-sm text-muted-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
41
|
-
!readOnly && "hover:text-amber-500",
|
|
42
|
-
isFilled && "text-amber-500"
|
|
51
|
+
!readOnly && "hover:text-amber-600 dark:hover:text-amber-500",
|
|
52
|
+
isFilled && "text-amber-600 dark:text-amber-500"
|
|
43
53
|
),
|
|
44
54
|
disabled: readOnly,
|
|
45
55
|
onBlur: () => {
|
|
@@ -57,6 +67,7 @@ function RatingStars({
|
|
|
57
67
|
onHoverChange(0);
|
|
58
68
|
},
|
|
59
69
|
role: "radio",
|
|
70
|
+
tabIndex: starValue === tabStopValue ? 0 : -1,
|
|
60
71
|
type: "button",
|
|
61
72
|
children: /* @__PURE__ */ jsx(
|
|
62
73
|
Star,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useId, useState } from "react";
|
|
4
4
|
import { Brain, ChevronDown } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
function ReasoningTrigger({
|
|
7
7
|
contentId,
|
|
8
8
|
duration,
|
|
@@ -24,7 +24,7 @@ function ReasoningTrigger({
|
|
|
24
24
|
isStreaming ? "Reasoning" : "Reasoned",
|
|
25
25
|
typeof duration === "number" ? ` for ${duration}s` : null
|
|
26
26
|
] }),
|
|
27
|
-
isStreaming ? /* @__PURE__ */ jsx("span", { className: "animate-pulse", children: "\u2026" }) : null,
|
|
27
|
+
isStreaming ? /* @__PURE__ */ jsx("span", { className: "animate-pulse motion-reduce:animate-none", children: "\u2026" }) : null,
|
|
28
28
|
/* @__PURE__ */ jsx(
|
|
29
29
|
ChevronDown,
|
|
30
30
|
{
|
|
@@ -59,7 +59,14 @@ function ReasoningContent({
|
|
|
59
59
|
},
|
|
60
60
|
`${index}-${step.slice(0, 12)}`
|
|
61
61
|
)) }) : /* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap", children }),
|
|
62
|
-
isStreaming ? /* @__PURE__ */ jsx(
|
|
62
|
+
isStreaming ? /* @__PURE__ */ jsx(
|
|
63
|
+
"span",
|
|
64
|
+
{
|
|
65
|
+
"aria-hidden": true,
|
|
66
|
+
className: "ml-0.5 animate-pulse motion-reduce:animate-none",
|
|
67
|
+
children: "\u258B"
|
|
68
|
+
}
|
|
69
|
+
) : null
|
|
63
70
|
]
|
|
64
71
|
}
|
|
65
72
|
);
|
|
@@ -76,11 +83,13 @@ const Reasoning = ({
|
|
|
76
83
|
const [isOpen, setIsOpen] = useState(isStreaming);
|
|
77
84
|
const contentId = useId();
|
|
78
85
|
useEffect(() => {
|
|
79
|
-
if (isStreaming)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
if (!isStreaming) return;
|
|
87
|
+
const frame = requestAnimationFrame(() => {
|
|
88
|
+
setIsOpen(true);
|
|
89
|
+
});
|
|
90
|
+
return () => {
|
|
91
|
+
cancelAnimationFrame(frame);
|
|
92
|
+
};
|
|
84
93
|
}, [isStreaming]);
|
|
85
94
|
const handleToggle = useCallback(() => {
|
|
86
95
|
setIsOpen((previous) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { GripVertical } from "lucide-react";
|
|
4
4
|
import { Group, Panel, Separator } from "react-resizable-panels";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
const ResizablePanelGroup = ({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
@@ -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 usePrefersReducedMotion() {
|
|
6
6
|
const [reduced, setReduced] = React.useState(false);
|
|
7
7
|
React.useEffect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
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
|
function usePrefersReducedMotion() {
|
|
6
6
|
const [reduced, setReduced] = React.useState(false);
|
|
7
7
|
React.useEffect(() => {
|
|
@@ -59,16 +59,10 @@ const ScrambleText = ({
|
|
|
59
59
|
clearInterval(timer);
|
|
60
60
|
};
|
|
61
61
|
}, [duration, reduced, scrambleCharacters, text]);
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
"span",
|
|
64
|
-
{
|
|
65
|
-
|
|
66
|
-
className: cn("font-mono", className),
|
|
67
|
-
ref,
|
|
68
|
-
...props,
|
|
69
|
-
children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: display })
|
|
70
|
-
}
|
|
71
|
-
);
|
|
62
|
+
return /* @__PURE__ */ jsxs("span", { className: cn("font-mono", className), ref, ...props, children: [
|
|
63
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: text }),
|
|
64
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: display })
|
|
65
|
+
] });
|
|
72
66
|
};
|
|
73
67
|
ScrambleText.displayName = "ScrambleText";
|
|
74
68
|
export {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
6
|
+
function useOverflows(viewportRef) {
|
|
7
|
+
const [overflows, setOverflows] = React.useState(false);
|
|
8
|
+
React.useLayoutEffect(() => {
|
|
9
|
+
const viewport = viewportRef.current;
|
|
10
|
+
if (!viewport) return;
|
|
11
|
+
const measure = () => {
|
|
12
|
+
setOverflows(
|
|
13
|
+
viewport.scrollHeight > viewport.clientHeight || viewport.scrollWidth > viewport.clientWidth
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
measure();
|
|
17
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
18
|
+
const observer = new ResizeObserver(measure);
|
|
19
|
+
observer.observe(viewport);
|
|
20
|
+
if (viewport.firstElementChild) {
|
|
21
|
+
observer.observe(viewport.firstElementChild);
|
|
22
|
+
}
|
|
23
|
+
return () => {
|
|
24
|
+
observer.disconnect();
|
|
25
|
+
};
|
|
26
|
+
}, [viewportRef]);
|
|
27
|
+
return overflows;
|
|
28
|
+
}
|
|
29
|
+
const ScrollArea = ({
|
|
30
|
+
"aria-label": ariaLabel,
|
|
31
|
+
"aria-labelledby": ariaLabelledBy,
|
|
32
|
+
children,
|
|
33
|
+
className,
|
|
34
|
+
ref,
|
|
35
|
+
...props
|
|
36
|
+
}) => {
|
|
37
|
+
const viewportRef = React.useRef(null);
|
|
38
|
+
const overflows = useOverflows(viewportRef);
|
|
39
|
+
const named = Boolean(ariaLabel ?? ariaLabelledBy);
|
|
40
|
+
return /* @__PURE__ */ jsxs(
|
|
41
|
+
ScrollAreaPrimitive.Root,
|
|
42
|
+
{
|
|
43
|
+
className: cn("relative overflow-hidden", className),
|
|
44
|
+
ref,
|
|
45
|
+
...props,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(
|
|
48
|
+
ScrollAreaPrimitive.Viewport,
|
|
49
|
+
{
|
|
50
|
+
"aria-label": ariaLabel,
|
|
51
|
+
"aria-labelledby": ariaLabelledBy,
|
|
52
|
+
className: "h-full w-full rounded-[inherit] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
53
|
+
ref: viewportRef,
|
|
54
|
+
role: named ? "region" : void 0,
|
|
55
|
+
tabIndex: overflows ? 0 : void 0,
|
|
56
|
+
children
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
60
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
66
|
+
const ScrollBar = ({
|
|
67
|
+
className,
|
|
68
|
+
orientation = "vertical",
|
|
69
|
+
ref,
|
|
70
|
+
...props
|
|
71
|
+
}) => /* @__PURE__ */ jsx(
|
|
72
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
73
|
+
{
|
|
74
|
+
className: cn(
|
|
75
|
+
"flex touch-none select-none transition-colors",
|
|
76
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
77
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
78
|
+
className
|
|
79
|
+
),
|
|
80
|
+
orientation,
|
|
81
|
+
ref,
|
|
82
|
+
...props,
|
|
83
|
+
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
87
|
+
export {
|
|
88
|
+
ScrollArea,
|
|
89
|
+
ScrollBar
|
|
90
|
+
};
|
|
@@ -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 computeProgress() {
|
|
6
6
|
const element = document.documentElement;
|
|
7
7
|
const scrollable = element.scrollHeight - element.clientHeight;
|
|
@@ -18,18 +18,27 @@ const ScrollProgress = ({
|
|
|
18
18
|
}) => {
|
|
19
19
|
const [progress, setProgress] = React.useState(0);
|
|
20
20
|
React.useEffect(() => {
|
|
21
|
-
|
|
21
|
+
let frame = null;
|
|
22
|
+
const update = () => {
|
|
23
|
+
frame = null;
|
|
22
24
|
setProgress(computeProgress());
|
|
23
25
|
};
|
|
24
|
-
onScroll()
|
|
26
|
+
const onScroll = () => {
|
|
27
|
+
frame ?? (frame = requestAnimationFrame(update));
|
|
28
|
+
};
|
|
29
|
+
update();
|
|
25
30
|
window.addEventListener("scroll", onScroll, { passive: true });
|
|
26
31
|
return () => {
|
|
27
32
|
window.removeEventListener("scroll", onScroll);
|
|
33
|
+
if (frame !== null) {
|
|
34
|
+
cancelAnimationFrame(frame);
|
|
35
|
+
}
|
|
28
36
|
};
|
|
29
37
|
}, []);
|
|
30
38
|
return /* @__PURE__ */ jsx(
|
|
31
39
|
"div",
|
|
32
40
|
{
|
|
41
|
+
"aria-label": props["aria-labelledby"] ? void 0 : "Reading progress",
|
|
33
42
|
"aria-valuemax": 100,
|
|
34
43
|
"aria-valuemin": 0,
|
|
35
44
|
"aria-valuenow": Math.round(progress),
|