@vllnt/ui 0.2.1 → 0.3.0-canary.00b20d6
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 +39 -0
- package/README.md +59 -30
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/activity-heatmap/activity-heatmap.js +18 -20
- package/dist/components/activity-log/activity-log.js +12 -11
- package/dist/components/agent-activity/agent-activity.js +317 -0
- package/dist/components/agent-activity/index.js +18 -0
- package/dist/components/ai-artifact/ai-artifact.js +439 -0
- package/dist/components/ai-artifact/index.js +24 -0
- package/dist/components/ai-chat-input/ai-chat-input.js +6 -4
- package/dist/components/ai-message-bubble/ai-message-bubble.js +3 -3
- package/dist/components/ai-sidebar/ai-sidebar.js +246 -0
- package/dist/components/ai-sidebar/index.js +22 -0
- package/dist/components/ai-source-citation/ai-source-citation.js +2 -2
- package/dist/components/ai-tool-call-display/ai-tool-call-display.js +5 -5
- package/dist/components/alert-pulse/alert-pulse.js +93 -0
- package/dist/components/alert-pulse/index.js +6 -0
- package/dist/components/anchor-port/anchor-port.js +51 -0
- package/dist/components/anchor-port/index.js +4 -0
- package/dist/components/animated-beam/animated-beam.js +158 -0
- package/dist/components/animated-beam/index.js +4 -0
- package/dist/components/animated-grid-pattern/animated-grid-pattern.js +74 -0
- package/dist/components/animated-grid-pattern/index.js +6 -0
- package/dist/components/animated-list/animated-list.js +32 -0
- package/dist/components/animated-list/index.js +4 -0
- package/dist/components/animated-tabs/animated-tabs.js +95 -0
- package/dist/components/animated-tabs/index.js +6 -0
- package/dist/components/animated-testimonials/animated-testimonials.js +91 -0
- package/dist/components/animated-testimonials/index.js +6 -0
- package/dist/components/animated-text/animated-text.js +8 -7
- package/dist/components/animated-tooltip/animated-tooltip.js +51 -0
- package/dist/components/animated-tooltip/index.js +6 -0
- package/dist/components/annotation/annotation.js +1 -1
- package/dist/components/auto-reload/auto-reload.js +401 -0
- package/dist/components/auto-reload/index.js +6 -0
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/avatar-group/avatar-group.js +5 -5
- package/dist/components/banner/banner.js +155 -0
- package/dist/components/banner/index.js +10 -0
- package/dist/components/bento-grid/bento-grid.js +41 -0
- package/dist/components/bento-grid/index.js +8 -0
- package/dist/components/blog-card/blog-card.js +5 -3
- package/dist/components/blur-reveal/blur-reveal.js +78 -0
- package/dist/components/blur-reveal/index.js +4 -0
- package/dist/components/border-beam/border-beam.js +2 -2
- package/dist/components/bottom-activity-strip/bottom-activity-strip.js +91 -0
- package/dist/components/bottom-activity-strip/index.js +6 -0
- package/dist/components/bottom-bar/bottom-bar.js +25 -0
- package/dist/components/bottom-bar/index.js +4 -0
- package/dist/components/breadcrumb/breadcrumb.js +33 -26
- package/dist/components/button/button.js +1 -1
- package/dist/components/button-group/button-group.js +35 -0
- package/dist/components/button-group/index.js +8 -0
- package/dist/components/calendar/calendar.js +6 -6
- package/dist/components/callout/callout.js +1 -1
- package/dist/components/candlestick-chart/candlestick-chart.js +13 -12
- package/dist/components/canvas-shell/canvas-foundation-demo.js +183 -0
- package/dist/components/canvas-shell/canvas-shell-route-config.js +0 -0
- package/dist/components/canvas-shell/canvas-shell.js +264 -0
- package/dist/components/canvas-shell/index.js +4 -0
- package/dist/components/canvas-view/canvas-view.js +504 -0
- package/dist/components/canvas-view/index.js +6 -0
- package/dist/components/card-flip/card-flip.js +78 -0
- package/dist/components/card-flip/index.js +4 -0
- package/dist/components/carousel/carousel.js +18 -10
- package/dist/components/category-filter/category-filter.js +1 -1
- package/dist/components/chain-of-thought/chain-of-thought.js +77 -0
- package/dist/components/chain-of-thought/index.js +6 -0
- package/dist/components/chart/area-chart.js +1 -0
- package/dist/components/chart/line-chart.js +1 -0
- package/dist/components/chat-dock-section/chat-dock-section.js +56 -0
- package/dist/components/chat-dock-section/index.js +6 -0
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.js +92 -0
- package/dist/components/checkbox-group/index.js +8 -0
- package/dist/components/checklist/checklist.js +45 -10
- package/dist/components/checklist/index.js +10 -2
- package/dist/components/choropleth-map/choropleth-map.js +378 -0
- package/dist/components/choropleth-map/index.js +10 -0
- package/dist/components/chronological-timeline/chronological-timeline.js +343 -0
- package/dist/components/chronological-timeline/index.js +8 -0
- package/dist/components/civilization-card/civilization-card.js +275 -0
- package/dist/components/civilization-card/index.js +8 -0
- package/dist/components/code-block/code-block.js +47 -29
- package/dist/components/code-playground/code-playground.js +20 -18
- package/dist/components/color-picker/color-picker.js +134 -0
- package/dist/components/color-picker/index.js +4 -0
- package/dist/components/combobox/combobox.js +49 -30
- package/dist/components/command/command.js +1 -1
- package/dist/components/comment-pin/comment-pin.js +104 -0
- package/dist/components/comment-pin/index.js +6 -0
- package/dist/components/comparison/comparison.js +11 -10
- package/dist/components/completion-dialog/completion-dialog.js +20 -12
- package/dist/components/connector-edge/connector-edge.js +66 -0
- package/dist/components/connector-edge/index.js +6 -0
- package/dist/components/content-intro/content-intro.js +29 -22
- package/dist/components/context-lens/context-lens.js +98 -0
- package/dist/components/context-lens/index.js +6 -0
- package/dist/components/context-menu/context-menu.js +4 -4
- package/dist/components/contribution-graph/contribution-graph.js +120 -0
- package/dist/components/contribution-graph/index.js +6 -0
- package/dist/components/conversation-thread/conversation-thread.js +348 -0
- package/dist/components/conversation-thread/index.js +20 -0
- package/dist/components/cookie-consent/cookie-consent.js +1 -1
- package/dist/components/copy-button/copy-button.js +189 -0
- package/dist/components/copy-button/index.js +8 -0
- package/dist/components/countdown-timer/countdown-timer.js +12 -35
- package/dist/components/credit-badge/credit-badge.js +1 -7
- package/dist/components/curriculum/curriculum.js +349 -0
- package/dist/components/curriculum/index.js +10 -0
- package/dist/components/cursor/cursor.js +48 -0
- package/dist/components/cursor/index.js +4 -0
- package/dist/components/data-list/data-list.js +2 -1
- package/dist/components/data-table/data-table.js +10 -9
- package/dist/components/date-field/date-field.js +37 -0
- package/dist/components/date-field/index.js +4 -0
- package/dist/components/date-picker/date-picker.js +4 -9
- package/dist/components/date-range-picker/date-range-picker.js +74 -0
- package/dist/components/date-range-picker/index.js +6 -0
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dock/dock.js +102 -0
- package/dist/components/dock/index.js +5 -0
- package/dist/components/document-sibling-nav/document-sibling-nav.js +111 -0
- package/dist/components/document-sibling-nav/index.js +8 -0
- package/dist/components/dot-pattern/dot-pattern.js +31 -0
- package/dist/components/dot-pattern/index.js +4 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/components/edge-label/edge-label.js +26 -0
- package/dist/components/edge-label/index.js +4 -0
- package/dist/components/empty-state/empty-state.js +93 -0
- package/dist/components/empty-state/index.js +8 -0
- package/dist/components/era-comparison/era-comparison.js +216 -0
- package/dist/components/era-comparison/index.js +16 -0
- package/dist/components/exercise/exercise.js +15 -7
- package/dist/components/expandable-cards/expandable-cards.js +56 -0
- package/dist/components/expandable-cards/index.js +6 -0
- package/dist/components/faq/faq.js +8 -4
- package/dist/components/field/field.js +121 -0
- package/dist/components/field/index.js +16 -0
- package/dist/components/fieldset/fieldset.js +47 -0
- package/dist/components/fieldset/index.js +10 -0
- package/dist/components/file-upload/file-upload.js +4 -9
- package/dist/components/filter-bar/filter-bar.js +9 -8
- package/dist/components/flashcard/flashcard.js +10 -4
- package/dist/components/floating-action-button/floating-action-button.js +1 -1
- package/dist/components/floating-navbar/floating-navbar.js +62 -0
- package/dist/components/floating-navbar/index.js +4 -0
- package/dist/components/floating-toolbar/floating-toolbar.js +66 -0
- package/dist/components/floating-toolbar/index.js +6 -0
- package/dist/components/flow-diagram/flow-controls.js +9 -9
- package/dist/components/flow-diagram/flow-error-boundary.js +2 -2
- package/dist/components/flow-diagram/flow-fullscreen.js +5 -15
- package/dist/components/flow-diagram/use-flow-diagram.js +7 -18
- package/dist/components/follow-mode/follow-mode.js +89 -0
- package/dist/components/follow-mode/index.js +6 -0
- package/dist/components/form/form.js +432 -0
- package/dist/components/form/index.js +20 -0
- package/dist/components/gantt-chart/gantt-chart.js +334 -0
- package/dist/components/gantt-chart/index.js +6 -0
- package/dist/components/gauge-chart/gauge-chart.js +134 -0
- package/dist/components/gauge-chart/index.js +4 -0
- package/dist/components/geography-quiz-map/geography-quiz-map.js +344 -0
- package/dist/components/geography-quiz-map/index.js +12 -0
- package/dist/components/glass-card/glass-card.js +23 -0
- package/dist/components/glass-card/index.js +4 -0
- package/dist/components/glass-panel/glass-panel.js +21 -0
- package/dist/components/glass-panel/index.js +4 -0
- package/dist/components/glass-progress/glass-progress.js +35 -0
- package/dist/components/glass-progress/index.js +4 -0
- package/dist/components/globe-3d/globe-3d.js +429 -0
- package/dist/components/globe-3d/index.js +10 -0
- package/dist/components/grid/grid.js +94 -0
- package/dist/components/grid/index.js +4 -0
- package/dist/components/group-hull/group-hull.js +29 -0
- package/dist/components/group-hull/index.js +4 -0
- package/dist/components/handoff-beacon/handoff-beacon.js +78 -0
- package/dist/components/handoff-beacon/index.js +6 -0
- package/dist/components/heat-map-overlay/heat-map-overlay.js +215 -0
- package/dist/components/heat-map-overlay/index.js +6 -0
- package/dist/components/heat-overlay/heat-overlay.js +92 -0
- package/dist/components/heat-overlay/index.js +6 -0
- package/dist/components/historic-timeline/historic-timeline.js +342 -0
- package/dist/components/historic-timeline/index.js +6 -0
- package/dist/components/historical-figure-card/historical-figure-card.js +270 -0
- package/dist/components/historical-figure-card/index.js +6 -0
- package/dist/components/horizontal-scroll-row/horizontal-scroll-row.js +6 -5
- package/dist/components/index.js +841 -1
- package/dist/components/infinite-plane/index.js +6 -0
- package/dist/components/infinite-plane/infinite-plane.js +75 -0
- package/dist/components/inline-input/inline-input.js +1 -1
- package/dist/components/input-group/index.js +14 -0
- package/dist/components/input-group/input-group.js +65 -0
- package/dist/components/input-otp/input-otp.js +1 -1
- package/dist/components/interactive-timeline/index.js +16 -0
- package/dist/components/interactive-timeline/interactive-timeline.js +724 -0
- package/dist/components/item/index.js +18 -0
- package/dist/components/item/item.js +103 -0
- package/dist/components/jarvis-dock/index.js +6 -0
- package/dist/components/jarvis-dock/jarvis-dock.js +98 -0
- package/dist/components/kbd/index.js +5 -0
- package/dist/components/kbd/kbd.js +125 -0
- package/dist/components/key-concept/key-concept.js +6 -5
- package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +11 -21
- package/dist/components/knowledge-check/index.js +6 -0
- package/dist/components/knowledge-check/knowledge-check.js +473 -0
- package/dist/components/lang-provider/lang-provider.js +3 -3
- package/dist/components/learning-objectives/learning-objectives.js +14 -13
- package/dist/components/left-rail/index.js +4 -0
- package/dist/components/left-rail/left-rail.js +25 -0
- package/dist/components/link/index.js +5 -0
- package/dist/components/link/link.js +55 -0
- package/dist/components/liquid-glass/index.js +4 -0
- package/dist/components/liquid-glass/liquid-glass.js +37 -0
- package/dist/components/list-box/index.js +8 -0
- package/dist/components/list-box/list-box.js +127 -0
- package/dist/components/live-cursor/index.js +6 -0
- package/dist/components/live-cursor/live-cursor.js +62 -0
- package/dist/components/live-feed/live-feed.js +20 -42
- package/dist/components/magnetic/index.js +4 -0
- package/dist/components/magnetic/magnetic.js +58 -0
- package/dist/components/magnetic-button/index.js +4 -0
- package/dist/components/magnetic-button/magnetic-button.js +57 -0
- package/dist/components/map-2d/index.js +20 -0
- package/dist/components/map-2d/map-2d.js +455 -0
- package/dist/components/map-timeline/index.js +16 -0
- package/dist/components/map-timeline/map-timeline.js +506 -0
- package/dist/components/market-treemap/market-treemap.js +5 -6
- package/dist/components/mdx-content/mdx-content.js +25 -11
- package/dist/components/menubar/menubar.js +4 -4
- package/dist/components/meteors/index.js +4 -0
- package/dist/components/meteors/meteors.js +59 -0
- package/dist/components/meter/index.js +5 -0
- package/dist/components/meter/meter.js +78 -0
- package/dist/components/metric-cluster/index.js +6 -0
- package/dist/components/metric-cluster/metric-cluster.js +96 -0
- package/dist/components/metric-gauge/metric-gauge.js +3 -3
- package/dist/components/mini-map-panel/index.js +6 -0
- package/dist/components/mini-map-panel/mini-map-panel.js +74 -0
- package/dist/components/model-comparison/index.js +12 -0
- package/dist/components/model-comparison/model-comparison.js +230 -0
- package/dist/components/model-selector/model-selector.js +8 -8
- package/dist/components/multi-select/index.js +6 -0
- package/dist/components/multi-select/multi-select.js +258 -0
- package/dist/components/multi-select-lasso/index.js +6 -0
- package/dist/components/multi-select-lasso/multi-select-lasso.js +76 -0
- package/dist/components/native-select/index.js +4 -0
- package/dist/components/native-select/native-select.js +25 -0
- package/dist/components/navbar-saas/navbar-saas.js +11 -10
- package/dist/components/navigation-menu/navigation-menu.js +2 -2
- package/dist/components/newsletter-signup/index.js +8 -0
- package/dist/components/newsletter-signup/newsletter-signup.js +269 -0
- package/dist/components/number-input/number-input.js +2 -2
- package/dist/components/number-ticker/number-ticker.js +11 -4
- package/dist/components/object-card/index.js +6 -0
- package/dist/components/object-card/object-card.js +126 -0
- package/dist/components/object-handle/index.js +4 -0
- package/dist/components/object-handle/object-handle.js +38 -0
- package/dist/components/object-inspector/index.js +6 -0
- package/dist/components/object-inspector/object-inspector.js +136 -0
- package/dist/components/order-book/order-book.js +2 -2
- package/dist/components/overview-board/index.js +8 -0
- package/dist/components/overview-board/overview-board.js +127 -0
- package/dist/components/panel/index.js +16 -0
- package/dist/components/panel/panel.js +81 -0
- package/dist/components/parallel-timeline/index.js +6 -0
- package/dist/components/parallel-timeline/parallel-timeline.js +251 -0
- package/dist/components/particles/index.js +4 -0
- package/dist/components/particles/particles.js +49 -0
- package/dist/components/password-input/password-input.js +1 -1
- package/dist/components/phone-input/index.js +6 -0
- package/dist/components/phone-input/phone-input.js +64 -0
- package/dist/components/pie-chart/index.js +4 -0
- package/dist/components/pie-chart/pie-chart.js +132 -0
- package/dist/components/plan-badge/plan-badge.js +1 -7
- package/dist/components/playback-ghost/index.js +6 -0
- package/dist/components/playback-ghost/playback-ghost.js +83 -0
- package/dist/components/policy-delivery-panel/index.js +6 -0
- package/dist/components/policy-delivery-panel/policy-delivery-panel.js +99 -0
- package/dist/components/presence-stack/index.js +6 -0
- package/dist/components/presence-stack/presence-stack.js +108 -0
- package/dist/components/presence-sync-indicator/index.js +6 -0
- package/dist/components/presence-sync-indicator/presence-sync-indicator.js +73 -0
- package/dist/components/pricing-table/index.js +8 -0
- package/dist/components/pricing-table/pricing-table.js +284 -0
- package/dist/components/primary-source-viewer/index.js +26 -0
- package/dist/components/primary-source-viewer/primary-source-viewer.js +439 -0
- package/dist/components/pro-tip/pro-tip.js +6 -6
- package/dist/components/profile-section/profile-section.js +3 -2
- package/dist/components/progress-card/progress-card.js +6 -5
- package/dist/components/progress-tracker/index.js +20 -0
- package/dist/components/progress-tracker/progress-tracker.js +537 -0
- package/dist/components/progressive-blur/index.js +6 -0
- package/dist/components/progressive-blur/progressive-blur.js +44 -0
- package/dist/components/prompt-input/index.js +4 -0
- package/dist/components/prompt-input/prompt-input.js +186 -0
- package/dist/components/prompt-templates/index.js +6 -0
- package/dist/components/prompt-templates/prompt-templates.js +395 -0
- package/dist/components/property-section/index.js +6 -0
- package/dist/components/property-section/property-section.js +101 -0
- package/dist/components/qr-code/index.js +4 -0
- package/dist/components/qr-code/qr-code.js +51 -0
- package/dist/components/quiz/quiz.js +7 -6
- package/dist/components/radar-chart/index.js +6 -0
- package/dist/components/radar-chart/radar-chart.js +181 -0
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/range-calendar/index.js +4 -0
- package/dist/components/range-calendar/range-calendar.js +35 -0
- package/dist/components/rating/rating.js +3 -3
- package/dist/components/reasoning/index.js +4 -0
- package/dist/components/reasoning/reasoning.js +118 -0
- package/dist/components/relationship-inspector/index.js +6 -0
- package/dist/components/relationship-inspector/relationship-inspector.js +102 -0
- package/dist/components/resizable/resizable.js +1 -1
- package/dist/components/reveal-text/index.js +6 -0
- package/dist/components/reveal-text/reveal-text.js +88 -0
- package/dist/components/right-dock/index.js +4 -0
- package/dist/components/right-dock/right-dock.js +28 -0
- package/dist/components/route-map/index.js +6 -0
- package/dist/components/route-map/route-map.js +339 -0
- package/dist/components/routing-assignment-panel/index.js +6 -0
- package/dist/components/routing-assignment-panel/routing-assignment-panel.js +122 -0
- package/dist/components/run-timeline/index.js +6 -0
- package/dist/components/run-timeline/run-timeline.js +221 -0
- package/dist/components/runtime-overview-panel/index.js +6 -0
- package/dist/components/runtime-overview-panel/runtime-overview-panel.js +89 -0
- package/dist/components/sankey-chart/index.js +6 -0
- package/dist/components/sankey-chart/sankey-chart.js +257 -0
- package/dist/components/scope-selector/scope-selector.js +13 -13
- package/dist/components/scramble-text/index.js +4 -0
- package/dist/components/scramble-text/scramble-text.js +77 -0
- package/dist/components/scroll-progress/index.js +4 -0
- package/dist/components/scroll-progress/scroll-progress.js +45 -0
- package/dist/components/search-bar/search-bar.js +24 -2
- package/dist/components/search-dialog/search-dialog.js +485 -52
- package/dist/components/search-field/index.js +4 -0
- package/dist/components/search-field/search-field.js +68 -0
- package/dist/components/segmented-control/index.js +12 -0
- package/dist/components/segmented-control/segmented-control.js +61 -0
- package/dist/components/select/select.js +5 -5
- package/dist/components/selection-halo/index.js +6 -0
- package/dist/components/selection-halo/selection-halo.js +72 -0
- package/dist/components/selection-presence/index.js +6 -0
- package/dist/components/selection-presence/selection-presence.js +50 -0
- package/dist/components/severity-badge/severity-badge.js +2 -2
- package/dist/components/share-dialog/share-dialog.js +8 -10
- package/dist/components/share-section/share-section.js +2 -1
- package/dist/components/sheet/sheet.js +1 -1
- package/dist/components/shimmer-button/index.js +4 -0
- package/dist/components/shimmer-button/shimmer-button.js +36 -0
- package/dist/components/shimmer-text/index.js +4 -0
- package/dist/components/shimmer-text/shimmer-text.js +36 -0
- package/dist/components/shine-border/index.js +4 -0
- package/dist/components/shine-border/shine-border.js +34 -0
- package/dist/components/shiny-button/index.js +4 -0
- package/dist/components/shiny-button/shiny-button.js +35 -0
- package/dist/components/sidebar/sidebar.js +31 -26
- package/dist/components/sidebar-toggle/sidebar-toggle.js +5 -3
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slideshow/slideshow.js +358 -281
- package/dist/components/snap-guides/index.js +6 -0
- package/dist/components/snap-guides/snap-guides.js +45 -0
- package/dist/components/social-fab/social-fab.js +12 -11
- package/dist/components/sparkles/index.js +4 -0
- package/dist/components/sparkles/sparkles.js +47 -0
- package/dist/components/sparkline-grid/sparkline-grid.js +6 -6
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/spinner/unicode-spinner.js +5 -2
- package/dist/components/spinning-text/index.js +4 -0
- package/dist/components/spinning-text/spinning-text.js +60 -0
- package/dist/components/spotlight-card/index.js +4 -0
- package/dist/components/spotlight-card/spotlight-card.js +48 -0
- package/dist/components/stat-card/stat-card.js +5 -5
- package/dist/components/state-badge-overlay/index.js +6 -0
- package/dist/components/state-badge-overlay/state-badge-overlay.js +90 -0
- package/dist/components/static-code/index.js +4 -0
- package/dist/components/static-code/static-code-copy.js +24 -0
- package/dist/components/static-code/static-code.js +41 -0
- package/dist/components/status-board/status-board.js +15 -8
- package/dist/components/status-indicator/status-indicator.js +3 -3
- package/dist/components/step-by-step/step-by-step.js +10 -8
- package/dist/components/step-navigation/step-navigation.js +2 -2
- package/dist/components/stepper/stepper.js +3 -3
- package/dist/components/sticky-metric/index.js +6 -0
- package/dist/components/sticky-metric/sticky-metric.js +83 -0
- package/dist/components/story-map/index.js +8 -0
- package/dist/components/story-map/story-map.js +414 -0
- package/dist/components/subscription-card/subscription-card.js +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/table-of-contents/table-of-contents.js +5 -2
- package/dist/components/table-of-contents-panel/table-of-contents-panel.js +15 -24
- package/dist/components/tabs/tabs.js +26 -8
- package/dist/components/tag-group/index.js +8 -0
- package/dist/components/tag-group/tag-group.js +124 -0
- package/dist/components/tags-input/index.js +4 -0
- package/dist/components/tags-input/tags-input.js +186 -0
- package/dist/components/terminal/terminal.js +68 -52
- package/dist/components/text-animate/index.js +6 -0
- package/dist/components/text-animate/text-animate.js +130 -0
- package/dist/components/text-field/index.js +4 -0
- package/dist/components/text-field/text-field.js +60 -0
- package/dist/components/text-reveal/index.js +4 -0
- package/dist/components/text-reveal/text-reveal.js +87 -0
- package/dist/components/text-shimmer/index.js +4 -0
- package/dist/components/text-shimmer/text-shimmer.js +29 -0
- package/dist/components/theme-preset-provider/index.js +4 -0
- package/dist/components/theme-preset-provider/theme-preset-provider.js +55 -0
- package/dist/components/theme-switcher/index.js +4 -0
- package/dist/components/theme-switcher/theme-switcher.js +43 -0
- package/dist/components/theme-toggle/theme-toggle.js +2 -2
- package/dist/components/thinking-block/thinking-block.js +3 -3
- package/dist/components/thread-bubble/index.js +6 -0
- package/dist/components/thread-bubble/thread-bubble.js +85 -0
- package/dist/components/threshold-ring/index.js +6 -0
- package/dist/components/threshold-ring/threshold-ring.js +160 -0
- package/dist/components/ticker-tape/ticker-tape.js +5 -8
- package/dist/components/tilt-card/index.js +4 -0
- package/dist/components/tilt-card/tilt-card.js +65 -0
- package/dist/components/time-field/index.js +4 -0
- package/dist/components/time-field/time-field.js +37 -0
- package/dist/components/time-picker/index.js +4 -0
- package/dist/components/time-picker/time-picker.js +114 -0
- package/dist/components/timeline/index.js +12 -0
- package/dist/components/timeline/timeline.js +239 -0
- package/dist/components/timeline-scrubber/index.js +6 -0
- package/dist/components/timeline-scrubber/timeline-scrubber.js +179 -0
- package/dist/components/tldr-section/tldr-section.js +11 -9
- package/dist/components/toolbar/index.js +8 -0
- package/dist/components/toolbar/toolbar.js +83 -0
- package/dist/components/top-bar/index.js +4 -0
- package/dist/components/top-bar/top-bar.js +31 -0
- package/dist/components/tour/tour.js +10 -4
- package/dist/components/transaction-list/index.js +14 -0
- package/dist/components/transaction-list/transaction-list.js +253 -0
- package/dist/components/tree-view/index.js +6 -0
- package/dist/components/tree-view/tree-view.js +298 -0
- package/dist/components/tutorial-card/tutorial-card.js +2 -2
- package/dist/components/tutorial-complete/tutorial-complete.js +18 -16
- package/dist/components/tutorial-filters/tutorial-filters.js +2 -2
- package/dist/components/tutorial-intro-content/tutorial-intro-content.js +5 -5
- package/dist/components/tutorial-mdx/tutorial-mdx.js +20 -20
- package/dist/components/typewriter/index.js +4 -0
- package/dist/components/typewriter/typewriter.js +66 -0
- package/dist/components/typography/index.js +26 -0
- package/dist/components/typography/typography.js +150 -0
- package/dist/components/usage-breakdown/usage-breakdown.js +12 -7
- package/dist/components/video-embed/video-embed.js +2 -2
- package/dist/components/viewport-bookmarks/index.js +6 -0
- package/dist/components/viewport-bookmarks/viewport-bookmarks.js +118 -0
- package/dist/components/wallet-card/wallet-card.js +1 -1
- package/dist/components/watchlist/watchlist.js +8 -10
- package/dist/components/workspace-switcher/index.js +6 -0
- package/dist/components/workspace-switcher/workspace-switcher.js +61 -0
- package/dist/components/world-breadcrumbs/index.js +6 -0
- package/dist/components/world-breadcrumbs/world-breadcrumbs.js +114 -0
- package/dist/components/world-clock-bar/world-clock-bar.js +33 -37
- package/dist/components/zoom-hud/index.js +4 -0
- package/dist/components/zoom-hud/zoom-hud.js +61 -0
- package/dist/index.d.ts +10150 -352
- package/dist/index.js +36 -1
- package/dist/lib/format.js +14 -0
- package/dist/lib/theme-presets.js +32 -0
- package/dist/lib/use-body-scroll-lock.js +30 -0
- package/dist/lib/use-escape-key.js +24 -0
- package/dist/lib/use-live-date.js +26 -0
- package/dist/lib/use-theme-preset.js +95 -0
- package/dist/tailwind-preset.js +19 -19
- package/package.json +17 -10
- package/styles.css +95 -38
- package/themes/default.css +39 -39
- package/themes/presets.css +547 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { AlertCircle, ArrowRight, Inbox, ListTodo, Siren } from "lucide-react";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
import { Button } from "../button/button";
|
|
6
|
+
const toneClassNames = {
|
|
7
|
+
danger: "border-red-500/30 bg-red-500/8",
|
|
8
|
+
default: "border-border/70 bg-background/80",
|
|
9
|
+
warning: "border-amber-500/30 bg-amber-500/8"
|
|
10
|
+
};
|
|
11
|
+
const toneAccentClassNames = {
|
|
12
|
+
danger: "text-red-600 dark:text-red-300",
|
|
13
|
+
default: "text-primary",
|
|
14
|
+
warning: "text-amber-600 dark:text-amber-300"
|
|
15
|
+
};
|
|
16
|
+
const OverviewCard = forwardRef(
|
|
17
|
+
({
|
|
18
|
+
className,
|
|
19
|
+
ctaLabel,
|
|
20
|
+
description,
|
|
21
|
+
handleCtaClick,
|
|
22
|
+
heading,
|
|
23
|
+
icon,
|
|
24
|
+
metric,
|
|
25
|
+
tone = "default",
|
|
26
|
+
...props
|
|
27
|
+
}, ref) => /* @__PURE__ */ jsxs(
|
|
28
|
+
"section",
|
|
29
|
+
{
|
|
30
|
+
className: cn(
|
|
31
|
+
"flex min-h-[172px] flex-col gap-4 rounded-2xl border p-5 shadow-[0_8px_30px_oklch(var(--foreground)/0.06)] backdrop-blur-xl",
|
|
32
|
+
toneClassNames[tone],
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
ref,
|
|
36
|
+
...props,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-[0.24em] text-muted-foreground", children: heading }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "text-3xl font-semibold tracking-tight text-foreground", children: metric })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: cn(
|
|
47
|
+
"flex size-10 items-center justify-center rounded-xl bg-background/80",
|
|
48
|
+
toneAccentClassNames[tone]
|
|
49
|
+
),
|
|
50
|
+
children: icon
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm leading-6 text-muted-foreground", children: description }),
|
|
55
|
+
ctaLabel ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
56
|
+
Button,
|
|
57
|
+
{
|
|
58
|
+
onClick: handleCtaClick,
|
|
59
|
+
size: "sm",
|
|
60
|
+
type: "button",
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
children: [
|
|
63
|
+
ctaLabel,
|
|
64
|
+
/* @__PURE__ */ jsx(ArrowRight, { className: "size-4" })
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
) }) : null
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
OverviewCard.displayName = "OverviewCard";
|
|
73
|
+
function getDefaultIcon(heading) {
|
|
74
|
+
if (typeof heading !== "string") {
|
|
75
|
+
return /* @__PURE__ */ jsx(Inbox, { className: "size-5" });
|
|
76
|
+
}
|
|
77
|
+
if (heading.toLowerCase().includes("error")) {
|
|
78
|
+
return /* @__PURE__ */ jsx(AlertCircle, { className: "size-5" });
|
|
79
|
+
}
|
|
80
|
+
if (heading.toLowerCase().includes("action")) {
|
|
81
|
+
return /* @__PURE__ */ jsx(ListTodo, { className: "size-5" });
|
|
82
|
+
}
|
|
83
|
+
if (heading.toLowerCase().includes("run")) {
|
|
84
|
+
return /* @__PURE__ */ jsx(Siren, { className: "size-5" });
|
|
85
|
+
}
|
|
86
|
+
return /* @__PURE__ */ jsx(Inbox, { className: "size-5" });
|
|
87
|
+
}
|
|
88
|
+
const OverviewBoard = forwardRef(
|
|
89
|
+
({ className, eyebrow, heading, items, subtitle, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
90
|
+
"section",
|
|
91
|
+
{
|
|
92
|
+
className: cn("mx-auto flex w-full max-w-6xl flex-col gap-6", className),
|
|
93
|
+
ref,
|
|
94
|
+
...props,
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
97
|
+
eyebrow ? /* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-[0.28em] text-muted-foreground", children: eyebrow }) : null,
|
|
98
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
99
|
+
/* @__PURE__ */ jsx("h2", { className: "text-3xl font-semibold tracking-tight text-foreground", children: heading }),
|
|
100
|
+
subtitle ? /* @__PURE__ */ jsx("p", { className: "max-w-3xl text-sm leading-6 text-muted-foreground", children: subtitle }) : null
|
|
101
|
+
] })
|
|
102
|
+
] }),
|
|
103
|
+
/* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 xl:grid-cols-3", children: items.map((item) => {
|
|
104
|
+
const handleCtaClick = item.handleCtaClick;
|
|
105
|
+
return /* @__PURE__ */ jsx(
|
|
106
|
+
OverviewCard,
|
|
107
|
+
{
|
|
108
|
+
ctaLabel: item.ctaLabel,
|
|
109
|
+
description: item.description,
|
|
110
|
+
handleCtaClick,
|
|
111
|
+
heading: item.heading,
|
|
112
|
+
icon: item.icon ?? getDefaultIcon(item.heading),
|
|
113
|
+
metric: item.metric,
|
|
114
|
+
tone: item.tone
|
|
115
|
+
},
|
|
116
|
+
item.id
|
|
117
|
+
);
|
|
118
|
+
}) })
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
);
|
|
123
|
+
OverviewBoard.displayName = "OverviewBoard";
|
|
124
|
+
export {
|
|
125
|
+
OverviewBoard,
|
|
126
|
+
OverviewCard
|
|
127
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
const Panel = forwardRef(
|
|
5
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: cn(
|
|
9
|
+
"rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
10
|
+
className
|
|
11
|
+
),
|
|
12
|
+
ref,
|
|
13
|
+
...props
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
Panel.displayName = "Panel";
|
|
18
|
+
const PanelHeader = forwardRef(
|
|
19
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: cn(
|
|
23
|
+
"flex flex-col gap-1.5 border-b border-border px-4 py-3",
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
ref,
|
|
27
|
+
...props
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
PanelHeader.displayName = "PanelHeader";
|
|
32
|
+
const PanelTitle = forwardRef(
|
|
33
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
34
|
+
"h3",
|
|
35
|
+
{
|
|
36
|
+
className: cn(
|
|
37
|
+
"text-sm font-semibold leading-none tracking-tight",
|
|
38
|
+
className
|
|
39
|
+
),
|
|
40
|
+
ref,
|
|
41
|
+
...props,
|
|
42
|
+
children
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
PanelTitle.displayName = "PanelTitle";
|
|
47
|
+
const PanelDescription = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
48
|
+
"p",
|
|
49
|
+
{
|
|
50
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
51
|
+
ref,
|
|
52
|
+
...props
|
|
53
|
+
}
|
|
54
|
+
));
|
|
55
|
+
PanelDescription.displayName = "PanelDescription";
|
|
56
|
+
const PanelBody = forwardRef(
|
|
57
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("px-4 py-3", className), ref, ...props })
|
|
58
|
+
);
|
|
59
|
+
PanelBody.displayName = "PanelBody";
|
|
60
|
+
const PanelFooter = forwardRef(
|
|
61
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
className: cn(
|
|
65
|
+
"flex items-center border-t border-border px-4 py-3",
|
|
66
|
+
className
|
|
67
|
+
),
|
|
68
|
+
ref,
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
PanelFooter.displayName = "PanelFooter";
|
|
74
|
+
export {
|
|
75
|
+
Panel,
|
|
76
|
+
PanelBody,
|
|
77
|
+
PanelDescription,
|
|
78
|
+
PanelFooter,
|
|
79
|
+
PanelHeader,
|
|
80
|
+
PanelTitle
|
|
81
|
+
};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import {
|
|
4
|
+
forwardRef,
|
|
5
|
+
useMemo
|
|
6
|
+
} from "react";
|
|
7
|
+
import { cn } from "../../lib/utils";
|
|
8
|
+
const DEFAULT_TICK_COUNT = 8;
|
|
9
|
+
const COLOR_CLASSES = {
|
|
10
|
+
amber: {
|
|
11
|
+
accent: "bg-amber-500",
|
|
12
|
+
chip: "bg-amber-500/15 text-amber-700 dark:text-amber-300",
|
|
13
|
+
marker: "border-amber-500 bg-amber-500"
|
|
14
|
+
},
|
|
15
|
+
blue: {
|
|
16
|
+
accent: "bg-blue-500",
|
|
17
|
+
chip: "bg-blue-500/15 text-blue-700 dark:text-blue-300",
|
|
18
|
+
marker: "border-blue-500 bg-blue-500"
|
|
19
|
+
},
|
|
20
|
+
emerald: {
|
|
21
|
+
accent: "bg-emerald-500",
|
|
22
|
+
chip: "bg-emerald-500/15 text-emerald-700 dark:text-emerald-300",
|
|
23
|
+
marker: "border-emerald-500 bg-emerald-500"
|
|
24
|
+
},
|
|
25
|
+
neutral: {
|
|
26
|
+
accent: "bg-muted-foreground/40",
|
|
27
|
+
chip: "bg-muted text-muted-foreground",
|
|
28
|
+
marker: "border-muted-foreground bg-muted-foreground"
|
|
29
|
+
},
|
|
30
|
+
purple: {
|
|
31
|
+
accent: "bg-purple-500",
|
|
32
|
+
chip: "bg-purple-500/15 text-purple-700 dark:text-purple-300",
|
|
33
|
+
marker: "border-purple-500 bg-purple-500"
|
|
34
|
+
},
|
|
35
|
+
red: {
|
|
36
|
+
accent: "bg-red-500",
|
|
37
|
+
chip: "bg-red-500/15 text-red-700 dark:text-red-300",
|
|
38
|
+
marker: "border-red-500 bg-red-500"
|
|
39
|
+
},
|
|
40
|
+
rose: {
|
|
41
|
+
accent: "bg-rose-500",
|
|
42
|
+
chip: "bg-rose-500/15 text-rose-700 dark:text-rose-300",
|
|
43
|
+
marker: "border-rose-500 bg-rose-500"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const DEFAULT_LABELS = {
|
|
47
|
+
region: "Parallel timeline"
|
|
48
|
+
};
|
|
49
|
+
function clamp(value, min, max) {
|
|
50
|
+
return Math.min(Math.max(value, min), max);
|
|
51
|
+
}
|
|
52
|
+
function formatYear(year) {
|
|
53
|
+
if (year < 0) return `${Math.abs(year).toString()} BCE`;
|
|
54
|
+
return `${year.toString()} CE`;
|
|
55
|
+
}
|
|
56
|
+
function yearToPercent(year, start, end) {
|
|
57
|
+
const span = end - start;
|
|
58
|
+
if (span <= 0) return 0;
|
|
59
|
+
return clamp((year - start) / span * 100, 0, 100);
|
|
60
|
+
}
|
|
61
|
+
function buildTicks(start, end, count) {
|
|
62
|
+
const safeCount = Math.max(2, count);
|
|
63
|
+
const span = end - start;
|
|
64
|
+
if (span <= 0) return [];
|
|
65
|
+
const step = span / (safeCount - 1);
|
|
66
|
+
return Array.from({ length: safeCount }).map((_, index) => {
|
|
67
|
+
const year = Math.round(start + step * index);
|
|
68
|
+
return {
|
|
69
|
+
label: formatYear(year),
|
|
70
|
+
offset: yearToPercent(year, start, end)
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function Axis({ ticks }) {
|
|
75
|
+
return /* @__PURE__ */ jsx(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
"aria-hidden": "true",
|
|
79
|
+
className: "relative h-7 border-b border-border text-[10px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
80
|
+
children: ticks.map((tick, index) => /* @__PURE__ */ jsx(
|
|
81
|
+
"span",
|
|
82
|
+
{
|
|
83
|
+
className: "absolute top-1 -translate-x-1/2",
|
|
84
|
+
style: { left: `${tick.offset.toString()}%` },
|
|
85
|
+
children: tick.label
|
|
86
|
+
},
|
|
87
|
+
`${tick.label}-${index.toString()}`
|
|
88
|
+
))
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function EraBands({ endYear, eras, startYear }) {
|
|
93
|
+
if (eras.length === 0) return null;
|
|
94
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0", children: eras.map((era) => {
|
|
95
|
+
const left = yearToPercent(era.start, startYear, endYear);
|
|
96
|
+
const right = yearToPercent(era.end, startYear, endYear);
|
|
97
|
+
const width = Math.max(0, right - left);
|
|
98
|
+
if (width <= 0) return null;
|
|
99
|
+
const palette = COLOR_CLASSES[era.color ?? "neutral"];
|
|
100
|
+
return /* @__PURE__ */ jsx(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
className: cn("absolute inset-y-0", palette.chip),
|
|
104
|
+
"data-era-id": era.id,
|
|
105
|
+
style: {
|
|
106
|
+
left: `${left.toString()}%`,
|
|
107
|
+
width: `${width.toString()}%`
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
era.id
|
|
111
|
+
);
|
|
112
|
+
}) });
|
|
113
|
+
}
|
|
114
|
+
function EventMarker({
|
|
115
|
+
color,
|
|
116
|
+
endYear,
|
|
117
|
+
event,
|
|
118
|
+
startYear
|
|
119
|
+
}) {
|
|
120
|
+
if (event.year < startYear || event.year > endYear) return null;
|
|
121
|
+
const left = yearToPercent(event.year, startYear, endYear);
|
|
122
|
+
const palette = COLOR_CLASSES[color];
|
|
123
|
+
const titleText = typeof event.title === "string" ? event.title : "";
|
|
124
|
+
const ariaLabel = titleText ? `${titleText}, ${formatYear(event.year)}` : void 0;
|
|
125
|
+
return /* @__PURE__ */ jsxs(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
"aria-label": ariaLabel,
|
|
129
|
+
className: "absolute top-1/2 z-10 -translate-x-1/2 -translate-y-1/2",
|
|
130
|
+
"data-event-id": event.id,
|
|
131
|
+
"data-event-year": event.year,
|
|
132
|
+
style: { left: `${left.toString()}%` },
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ jsx(
|
|
135
|
+
"div",
|
|
136
|
+
{
|
|
137
|
+
"aria-hidden": "true",
|
|
138
|
+
className: cn(
|
|
139
|
+
"size-3 rounded-full border-2 ring-2 ring-background",
|
|
140
|
+
palette.marker
|
|
141
|
+
)
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute left-1/2 top-4 w-40 -translate-x-1/2 text-center", children: [
|
|
145
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium text-foreground", children: event.title }),
|
|
146
|
+
/* @__PURE__ */ jsxs("p", { className: "truncate text-[10px] text-muted-foreground", children: [
|
|
147
|
+
formatYear(event.year),
|
|
148
|
+
event.meta ? /* @__PURE__ */ jsxs("span", { children: [
|
|
149
|
+
" \xB7 ",
|
|
150
|
+
event.meta
|
|
151
|
+
] }) : null
|
|
152
|
+
] })
|
|
153
|
+
] })
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
function TrackRow({ endYear, startYear, track }) {
|
|
159
|
+
const color = track.color ?? "neutral";
|
|
160
|
+
const palette = COLOR_CLASSES[color];
|
|
161
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative flex items-stretch gap-3 border-t border-border first:border-t-0", children: [
|
|
162
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-32 shrink-0 flex-col gap-1 border-r border-border bg-muted/20 p-3", children: [
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
"span",
|
|
165
|
+
{
|
|
166
|
+
"aria-hidden": "true",
|
|
167
|
+
className: cn("h-1 w-8 rounded-full", palette.accent)
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold tracking-tight text-foreground", children: track.name }),
|
|
171
|
+
track.region ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: track.region }) : null
|
|
172
|
+
] }),
|
|
173
|
+
/* @__PURE__ */ jsxs(
|
|
174
|
+
"div",
|
|
175
|
+
{
|
|
176
|
+
"aria-label": typeof track.name === "string" ? track.name : void 0,
|
|
177
|
+
className: "relative h-16 min-w-0 flex-1",
|
|
178
|
+
"data-track-id": track.id,
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 top-1/2 h-px -translate-y-1/2 bg-border" }),
|
|
181
|
+
track.events.map((event) => /* @__PURE__ */ jsx(
|
|
182
|
+
EventMarker,
|
|
183
|
+
{
|
|
184
|
+
color,
|
|
185
|
+
endYear,
|
|
186
|
+
event,
|
|
187
|
+
startYear
|
|
188
|
+
},
|
|
189
|
+
event.id
|
|
190
|
+
))
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
] });
|
|
195
|
+
}
|
|
196
|
+
const ParallelTimeline = forwardRef(
|
|
197
|
+
(props, ref) => {
|
|
198
|
+
const {
|
|
199
|
+
className,
|
|
200
|
+
endYear,
|
|
201
|
+
eras = [],
|
|
202
|
+
labels,
|
|
203
|
+
startYear,
|
|
204
|
+
tickCount = DEFAULT_TICK_COUNT,
|
|
205
|
+
tracks,
|
|
206
|
+
...rest
|
|
207
|
+
} = props;
|
|
208
|
+
const resolvedLabels = useMemo(
|
|
209
|
+
() => ({ ...DEFAULT_LABELS, ...labels }),
|
|
210
|
+
[labels]
|
|
211
|
+
);
|
|
212
|
+
const ticks = useMemo(
|
|
213
|
+
() => buildTicks(startYear, endYear, tickCount),
|
|
214
|
+
[endYear, startYear, tickCount]
|
|
215
|
+
);
|
|
216
|
+
return /* @__PURE__ */ jsxs(
|
|
217
|
+
"section",
|
|
218
|
+
{
|
|
219
|
+
"aria-label": resolvedLabels.region,
|
|
220
|
+
className: cn(
|
|
221
|
+
"flex w-full flex-col overflow-x-auto rounded-2xl border bg-background text-foreground",
|
|
222
|
+
className
|
|
223
|
+
),
|
|
224
|
+
ref,
|
|
225
|
+
...rest,
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-stretch gap-3 border-b border-border", children: [
|
|
228
|
+
/* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "w-32 shrink-0" }),
|
|
229
|
+
/* @__PURE__ */ jsx(Axis, { ticks })
|
|
230
|
+
] }),
|
|
231
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
232
|
+
/* @__PURE__ */ jsx(EraBands, { endYear, eras, startYear }),
|
|
233
|
+
tracks.map((track) => /* @__PURE__ */ jsx(
|
|
234
|
+
TrackRow,
|
|
235
|
+
{
|
|
236
|
+
endYear,
|
|
237
|
+
startYear,
|
|
238
|
+
track
|
|
239
|
+
},
|
|
240
|
+
track.id
|
|
241
|
+
))
|
|
242
|
+
] })
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
ParallelTimeline.displayName = "ParallelTimeline";
|
|
249
|
+
export {
|
|
250
|
+
ParallelTimeline
|
|
251
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
function createParticles(count) {
|
|
6
|
+
return Array.from({ length: count }, () => ({
|
|
7
|
+
delay: Math.random() * 4,
|
|
8
|
+
duration: 4 + Math.random() * 6,
|
|
9
|
+
left: Math.random() * 100,
|
|
10
|
+
size: 2 + Math.random() * 3,
|
|
11
|
+
top: Math.random() * 100
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
const Particles = React.forwardRef(
|
|
15
|
+
({ className, count = 30, ...props }, ref) => {
|
|
16
|
+
const [particles] = React.useState(() => createParticles(count));
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
className: cn(
|
|
22
|
+
"pointer-events-none absolute inset-0 overflow-hidden",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
ref,
|
|
26
|
+
...props,
|
|
27
|
+
children: particles.map((particle, index) => /* @__PURE__ */ jsx(
|
|
28
|
+
"span",
|
|
29
|
+
{
|
|
30
|
+
className: "absolute rounded-full bg-foreground/30 motion-reduce:animate-none",
|
|
31
|
+
style: {
|
|
32
|
+
animation: `vllnt-particle-float ${particle.duration}s linear infinite`,
|
|
33
|
+
animationDelay: `${particle.delay}s`,
|
|
34
|
+
height: `${particle.size}px`,
|
|
35
|
+
left: `${particle.left}%`,
|
|
36
|
+
top: `${particle.top}%`,
|
|
37
|
+
width: `${particle.size}px`
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
index
|
|
41
|
+
))
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
Particles.displayName = "Particles";
|
|
47
|
+
export {
|
|
48
|
+
Particles
|
|
49
|
+
};
|
|
@@ -33,7 +33,7 @@ const PasswordInput = React.forwardRef(
|
|
|
33
33
|
setVisible((previous) => !previous);
|
|
34
34
|
},
|
|
35
35
|
type: "button",
|
|
36
|
-
children: visible ? /* @__PURE__ */ jsx(EyeOff, { className: "
|
|
36
|
+
children: visible ? /* @__PURE__ */ jsx(EyeOff, { className: "size-4" }) : /* @__PURE__ */ jsx(Eye, { className: "size-4" })
|
|
37
37
|
}
|
|
38
38
|
)
|
|
39
39
|
] });
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
const defaultCountries = [
|
|
6
|
+
{ code: "US", dialCode: "+1", label: "United States" },
|
|
7
|
+
{ code: "GB", dialCode: "+44", label: "United Kingdom" },
|
|
8
|
+
{ code: "CA", dialCode: "+1", label: "Canada" },
|
|
9
|
+
{ code: "AU", dialCode: "+61", label: "Australia" },
|
|
10
|
+
{ code: "DE", dialCode: "+49", label: "Germany" },
|
|
11
|
+
{ code: "FR", dialCode: "+33", label: "France" },
|
|
12
|
+
{ code: "IN", dialCode: "+91", label: "India" },
|
|
13
|
+
{ code: "JP", dialCode: "+81", label: "Japan" }
|
|
14
|
+
];
|
|
15
|
+
const PhoneInput = React.forwardRef(
|
|
16
|
+
({
|
|
17
|
+
className,
|
|
18
|
+
countries = defaultCountries,
|
|
19
|
+
defaultCountry,
|
|
20
|
+
onCountryChange,
|
|
21
|
+
...props
|
|
22
|
+
}, ref) => {
|
|
23
|
+
const [country, setCountry] = React.useState(
|
|
24
|
+
defaultCountry ?? countries[0]?.code ?? ""
|
|
25
|
+
);
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: cn(
|
|
30
|
+
"flex h-10 w-full items-center rounded-md border border-input bg-background text-sm ring-offset-background focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
|
|
31
|
+
className
|
|
32
|
+
),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
"select",
|
|
36
|
+
{
|
|
37
|
+
"aria-label": "Country dialing code",
|
|
38
|
+
className: "h-full rounded-l-md border-0 border-r border-input bg-transparent py-2 pl-3 pr-2 text-sm focus-visible:outline-none disabled:cursor-not-allowed",
|
|
39
|
+
onChange: (event) => {
|
|
40
|
+
setCountry(event.target.value);
|
|
41
|
+
onCountryChange?.(event.target.value);
|
|
42
|
+
},
|
|
43
|
+
value: country,
|
|
44
|
+
children: countries.map((item) => /* @__PURE__ */ jsx("option", { value: item.code, children: item.dialCode }, item.code))
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ jsx(
|
|
48
|
+
"input",
|
|
49
|
+
{
|
|
50
|
+
...props,
|
|
51
|
+
className: "h-full w-full flex-1 rounded-r-md bg-transparent px-3 py-2 placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed",
|
|
52
|
+
ref,
|
|
53
|
+
type: "tel"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
PhoneInput.displayName = "PhoneInput";
|
|
62
|
+
export {
|
|
63
|
+
PhoneInput
|
|
64
|
+
};
|