@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
package/dist/index.js
CHANGED
|
@@ -3,13 +3,48 @@ import {
|
|
|
3
3
|
getOtherLanguage,
|
|
4
4
|
LANGUAGE_NAMES
|
|
5
5
|
} from "./lib/types";
|
|
6
|
+
import {
|
|
7
|
+
CUSTOM_THEME_NAME,
|
|
8
|
+
DEFAULT_THEME_PRESET,
|
|
9
|
+
isThemePresetName,
|
|
10
|
+
THEME_CUSTOM_CSS_STORAGE_KEY,
|
|
11
|
+
THEME_CUSTOM_STYLE_ID,
|
|
12
|
+
THEME_PRESET_STORAGE_KEY,
|
|
13
|
+
THEME_PRESETS
|
|
14
|
+
} from "./lib/theme-presets";
|
|
15
|
+
import { formatChange, normalizeDate } from "./lib/format";
|
|
16
|
+
import { useBodyScrollLock } from "./lib/use-body-scroll-lock";
|
|
6
17
|
import { useDebounce } from "./lib/use-debounce";
|
|
18
|
+
import { useEscapeKey } from "./lib/use-escape-key";
|
|
7
19
|
import { useHorizontalScroll } from "./lib/use-horizontal-scroll";
|
|
20
|
+
import { useLiveDate } from "./lib/use-live-date";
|
|
21
|
+
import { useMounted } from "./lib/use-mounted";
|
|
22
|
+
import {
|
|
23
|
+
setCustomTheme,
|
|
24
|
+
setThemePreset,
|
|
25
|
+
useThemePreset
|
|
26
|
+
} from "./lib/use-theme-preset";
|
|
8
27
|
import { cn } from "./lib/utils";
|
|
9
28
|
export {
|
|
29
|
+
CUSTOM_THEME_NAME,
|
|
30
|
+
DEFAULT_THEME_PRESET,
|
|
10
31
|
LANGUAGE_NAMES,
|
|
32
|
+
THEME_CUSTOM_CSS_STORAGE_KEY,
|
|
33
|
+
THEME_CUSTOM_STYLE_ID,
|
|
34
|
+
THEME_PRESETS,
|
|
35
|
+
THEME_PRESET_STORAGE_KEY,
|
|
11
36
|
cn,
|
|
37
|
+
formatChange,
|
|
12
38
|
getOtherLanguage,
|
|
39
|
+
isThemePresetName,
|
|
40
|
+
normalizeDate,
|
|
41
|
+
setCustomTheme,
|
|
42
|
+
setThemePreset,
|
|
43
|
+
useBodyScrollLock,
|
|
13
44
|
useDebounce,
|
|
14
|
-
|
|
45
|
+
useEscapeKey,
|
|
46
|
+
useHorizontalScroll,
|
|
47
|
+
useLiveDate,
|
|
48
|
+
useMounted,
|
|
49
|
+
useThemePreset
|
|
15
50
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function formatChange(change) {
|
|
2
|
+
const sign = change > 0 ? "+" : "";
|
|
3
|
+
return `${sign}${change.toFixed(2)}%`;
|
|
4
|
+
}
|
|
5
|
+
function normalizeDate(input) {
|
|
6
|
+
if (input instanceof Date) {
|
|
7
|
+
return new Date(input.getTime());
|
|
8
|
+
}
|
|
9
|
+
return new Date(input);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
formatChange,
|
|
13
|
+
normalizeDate
|
|
14
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const THEME_PRESET_STORAGE_KEY = "vllnt-theme-preset";
|
|
2
|
+
const CUSTOM_THEME_NAME = "custom";
|
|
3
|
+
const THEME_CUSTOM_CSS_STORAGE_KEY = "vllnt-theme-custom-css";
|
|
4
|
+
const THEME_CUSTOM_STYLE_ID = "vllnt-theme-custom-style";
|
|
5
|
+
const THEME_PRESETS = [
|
|
6
|
+
{ label: "Default", name: "default", swatch: "oklch(0.2044 0 0)" },
|
|
7
|
+
{ label: "Matrix", name: "matrix", swatch: "oklch(0.8 0.24 150)" },
|
|
8
|
+
{ label: "Dracula", name: "dracula", swatch: "oklch(0.72 0.16 300)" },
|
|
9
|
+
{ label: "Synthwave", name: "synthwave", swatch: "oklch(0.68 0.26 350)" },
|
|
10
|
+
{ label: "Tron", name: "tron", swatch: "oklch(0.78 0.15 215)" },
|
|
11
|
+
{ label: "Cyberpunk", name: "cyberpunk", swatch: "oklch(0.86 0.19 100)" },
|
|
12
|
+
{ label: "Nord", name: "nord", swatch: "oklch(0.72 0.08 230)" },
|
|
13
|
+
{ label: "Claude", name: "claude", swatch: "oklch(0.66 0.11 45)" },
|
|
14
|
+
{ label: "ChatGPT", name: "chatgpt", swatch: "oklch(0.68 0.12 168)" },
|
|
15
|
+
{ label: "Gemini", name: "gemini", swatch: "oklch(0.62 0.17 280)" },
|
|
16
|
+
{ label: "Future Dusk", name: "dusk", swatch: "oklch(0.62 0.13 290)" },
|
|
17
|
+
{ label: "Cyber Lime", name: "cyberlime", swatch: "oklch(0.88 0.22 128)" },
|
|
18
|
+
{ label: "Aura", name: "aura", swatch: "oklch(0.66 0.26 350)" }
|
|
19
|
+
];
|
|
20
|
+
const DEFAULT_THEME_PRESET = "default";
|
|
21
|
+
function isThemePresetName(value) {
|
|
22
|
+
return THEME_PRESETS.some((preset) => preset.name === value);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
CUSTOM_THEME_NAME,
|
|
26
|
+
DEFAULT_THEME_PRESET,
|
|
27
|
+
THEME_CUSTOM_CSS_STORAGE_KEY,
|
|
28
|
+
THEME_CUSTOM_STYLE_ID,
|
|
29
|
+
THEME_PRESETS,
|
|
30
|
+
THEME_PRESET_STORAGE_KEY,
|
|
31
|
+
isThemePresetName
|
|
32
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
let lockCount = 0;
|
|
4
|
+
let previousOverflow = "";
|
|
5
|
+
function lockBodyScroll() {
|
|
6
|
+
if (lockCount === 0) {
|
|
7
|
+
previousOverflow = document.body.style.overflow;
|
|
8
|
+
document.body.style.overflow = "hidden";
|
|
9
|
+
}
|
|
10
|
+
lockCount += 1;
|
|
11
|
+
}
|
|
12
|
+
function unlockBodyScroll() {
|
|
13
|
+
if (lockCount === 0) return;
|
|
14
|
+
lockCount -= 1;
|
|
15
|
+
if (lockCount === 0) {
|
|
16
|
+
document.body.style.overflow = previousOverflow;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function useBodyScrollLock(active) {
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (!active) return;
|
|
22
|
+
lockBodyScroll();
|
|
23
|
+
return () => {
|
|
24
|
+
unlockBodyScroll();
|
|
25
|
+
};
|
|
26
|
+
}, [active]);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
useBodyScrollLock
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
function useEscapeKey(onEscape, {
|
|
4
|
+
enabled = true,
|
|
5
|
+
preventDefault = false,
|
|
6
|
+
target = "window"
|
|
7
|
+
} = {}) {
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
if (!enabled) return;
|
|
10
|
+
const node = target === "document" ? document : window;
|
|
11
|
+
const handleKeyDown = (event) => {
|
|
12
|
+
if (!(event instanceof KeyboardEvent) || event.key !== "Escape") return;
|
|
13
|
+
if (preventDefault) event.preventDefault();
|
|
14
|
+
onEscape();
|
|
15
|
+
};
|
|
16
|
+
node.addEventListener("keydown", handleKeyDown);
|
|
17
|
+
return () => {
|
|
18
|
+
node.removeEventListener("keydown", handleKeyDown);
|
|
19
|
+
};
|
|
20
|
+
}, [enabled, onEscape, preventDefault, target]);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
useEscapeKey
|
|
24
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { normalizeDate } from "./format";
|
|
4
|
+
function useLiveDate(now, intervalMs) {
|
|
5
|
+
const fixedNow = React.useMemo(
|
|
6
|
+
() => now ? normalizeDate(now) : void 0,
|
|
7
|
+
[now]
|
|
8
|
+
);
|
|
9
|
+
const [liveNow, setLiveNow] = React.useState(fixedNow ?? /* @__PURE__ */ new Date());
|
|
10
|
+
React.useEffect(() => {
|
|
11
|
+
if (fixedNow) {
|
|
12
|
+
setLiveNow(fixedNow);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const interval = window.setInterval(() => {
|
|
16
|
+
setLiveNow(/* @__PURE__ */ new Date());
|
|
17
|
+
}, intervalMs);
|
|
18
|
+
return () => {
|
|
19
|
+
window.clearInterval(interval);
|
|
20
|
+
};
|
|
21
|
+
}, [fixedNow, intervalMs]);
|
|
22
|
+
return liveNow;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
useLiveDate
|
|
26
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useSyncExternalStore } from "react";
|
|
3
|
+
import {
|
|
4
|
+
CUSTOM_THEME_NAME,
|
|
5
|
+
DEFAULT_THEME_PRESET,
|
|
6
|
+
isThemePresetName,
|
|
7
|
+
THEME_CUSTOM_CSS_STORAGE_KEY,
|
|
8
|
+
THEME_CUSTOM_STYLE_ID,
|
|
9
|
+
THEME_PRESET_STORAGE_KEY,
|
|
10
|
+
THEME_PRESETS
|
|
11
|
+
} from "./theme-presets";
|
|
12
|
+
function safeIdent(value) {
|
|
13
|
+
return value.replaceAll(/[^\w-]/g, "");
|
|
14
|
+
}
|
|
15
|
+
function safeValue(value) {
|
|
16
|
+
return value.replaceAll(/[^\s\w%.-]/g, "");
|
|
17
|
+
}
|
|
18
|
+
function themeDeclarations(variables) {
|
|
19
|
+
return Object.entries(variables).map(([token, value]) => `--${safeIdent(token)}:${safeValue(value)}`).join(";");
|
|
20
|
+
}
|
|
21
|
+
function buildCustomCss(theme) {
|
|
22
|
+
const light = themeDeclarations(theme.light) + (theme.radius ? `;--radius:${safeValue(theme.radius)}` : "");
|
|
23
|
+
return `html[data-theme="${CUSTOM_THEME_NAME}"]{${light}}html[data-theme="${CUSTOM_THEME_NAME}"].dark{${themeDeclarations(theme.dark)}}`;
|
|
24
|
+
}
|
|
25
|
+
function clearCustomTheme() {
|
|
26
|
+
document.querySelector(`#${THEME_CUSTOM_STYLE_ID}`)?.remove();
|
|
27
|
+
try {
|
|
28
|
+
window.localStorage.removeItem(THEME_CUSTOM_CSS_STORAGE_KEY);
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
33
|
+
function emit() {
|
|
34
|
+
listeners.forEach((listener) => {
|
|
35
|
+
listener();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function subscribe(onStoreChange) {
|
|
39
|
+
listeners.add(onStoreChange);
|
|
40
|
+
return () => {
|
|
41
|
+
listeners.delete(onStoreChange);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function getSnapshot() {
|
|
45
|
+
const value = document.documentElement.dataset.theme;
|
|
46
|
+
if (value === CUSTOM_THEME_NAME) return CUSTOM_THEME_NAME;
|
|
47
|
+
return value && isThemePresetName(value) ? value : DEFAULT_THEME_PRESET;
|
|
48
|
+
}
|
|
49
|
+
function getServerSnapshot() {
|
|
50
|
+
return DEFAULT_THEME_PRESET;
|
|
51
|
+
}
|
|
52
|
+
function setThemePreset(name) {
|
|
53
|
+
clearCustomTheme();
|
|
54
|
+
const root = document.documentElement;
|
|
55
|
+
if (name === DEFAULT_THEME_PRESET) {
|
|
56
|
+
delete root.dataset.theme;
|
|
57
|
+
} else {
|
|
58
|
+
root.dataset.theme = name;
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
window.localStorage.setItem(THEME_PRESET_STORAGE_KEY, name);
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
emit();
|
|
65
|
+
}
|
|
66
|
+
function setCustomTheme(theme) {
|
|
67
|
+
const css = buildCustomCss(theme);
|
|
68
|
+
const existing = document.querySelector(`#${THEME_CUSTOM_STYLE_ID}`);
|
|
69
|
+
const style = existing instanceof HTMLStyleElement ? existing : document.createElement("style");
|
|
70
|
+
style.id = THEME_CUSTOM_STYLE_ID;
|
|
71
|
+
style.textContent = css;
|
|
72
|
+
if (!existing) {
|
|
73
|
+
document.head.append(style);
|
|
74
|
+
}
|
|
75
|
+
document.documentElement.dataset.theme = CUSTOM_THEME_NAME;
|
|
76
|
+
try {
|
|
77
|
+
window.localStorage.setItem(THEME_PRESET_STORAGE_KEY, CUSTOM_THEME_NAME);
|
|
78
|
+
window.localStorage.setItem(THEME_CUSTOM_CSS_STORAGE_KEY, css);
|
|
79
|
+
} catch {
|
|
80
|
+
}
|
|
81
|
+
emit();
|
|
82
|
+
}
|
|
83
|
+
function useThemePreset() {
|
|
84
|
+
const preset = useSyncExternalStore(
|
|
85
|
+
subscribe,
|
|
86
|
+
getSnapshot,
|
|
87
|
+
getServerSnapshot
|
|
88
|
+
);
|
|
89
|
+
return { preset, presets: THEME_PRESETS, setPreset: setThemePreset };
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
setCustomTheme,
|
|
93
|
+
setThemePreset,
|
|
94
|
+
useThemePreset
|
|
95
|
+
};
|
package/dist/tailwind-preset.js
CHANGED
|
@@ -27,37 +27,37 @@ const preset = {
|
|
|
27
27
|
},
|
|
28
28
|
colors: {
|
|
29
29
|
accent: {
|
|
30
|
-
DEFAULT: "
|
|
31
|
-
foreground: "
|
|
30
|
+
DEFAULT: "oklch(var(--accent) / <alpha-value>)",
|
|
31
|
+
foreground: "oklch(var(--accent-foreground) / <alpha-value>)"
|
|
32
32
|
},
|
|
33
|
-
background: "
|
|
34
|
-
border: "
|
|
33
|
+
background: "oklch(var(--background) / <alpha-value>)",
|
|
34
|
+
border: "oklch(var(--border) / <alpha-value>)",
|
|
35
35
|
card: {
|
|
36
|
-
DEFAULT: "
|
|
37
|
-
foreground: "
|
|
36
|
+
DEFAULT: "oklch(var(--card) / <alpha-value>)",
|
|
37
|
+
foreground: "oklch(var(--card-foreground) / <alpha-value>)"
|
|
38
38
|
},
|
|
39
39
|
destructive: {
|
|
40
|
-
DEFAULT: "
|
|
41
|
-
foreground: "
|
|
40
|
+
DEFAULT: "oklch(var(--destructive) / <alpha-value>)",
|
|
41
|
+
foreground: "oklch(var(--destructive-foreground) / <alpha-value>)"
|
|
42
42
|
},
|
|
43
|
-
foreground: "
|
|
44
|
-
input: "
|
|
43
|
+
foreground: "oklch(var(--foreground) / <alpha-value>)",
|
|
44
|
+
input: "oklch(var(--input) / <alpha-value>)",
|
|
45
45
|
muted: {
|
|
46
|
-
DEFAULT: "
|
|
47
|
-
foreground: "
|
|
46
|
+
DEFAULT: "oklch(var(--muted) / <alpha-value>)",
|
|
47
|
+
foreground: "oklch(var(--muted-foreground) / <alpha-value>)"
|
|
48
48
|
},
|
|
49
49
|
popover: {
|
|
50
|
-
DEFAULT: "
|
|
51
|
-
foreground: "
|
|
50
|
+
DEFAULT: "oklch(var(--popover) / <alpha-value>)",
|
|
51
|
+
foreground: "oklch(var(--popover-foreground) / <alpha-value>)"
|
|
52
52
|
},
|
|
53
53
|
primary: {
|
|
54
|
-
DEFAULT: "
|
|
55
|
-
foreground: "
|
|
54
|
+
DEFAULT: "oklch(var(--primary) / <alpha-value>)",
|
|
55
|
+
foreground: "oklch(var(--primary-foreground) / <alpha-value>)"
|
|
56
56
|
},
|
|
57
|
-
ring: "
|
|
57
|
+
ring: "oklch(var(--ring) / <alpha-value>)",
|
|
58
58
|
secondary: {
|
|
59
|
-
DEFAULT: "
|
|
60
|
-
foreground: "
|
|
59
|
+
DEFAULT: "oklch(var(--secondary) / <alpha-value>)",
|
|
60
|
+
foreground: "oklch(var(--secondary-foreground) / <alpha-value>)"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
fontFamily: {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "React component library —
|
|
3
|
+
"version": "0.3.0-canary.00b20d6",
|
|
4
|
+
"description": "React component library — 225 components built on Radix UI, Tailwind CSS, and CVA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vllnt",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://ui.vllnt.ai",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/vllnt/ui.git",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"import": "./dist/tailwind-preset.js"
|
|
37
37
|
},
|
|
38
38
|
"./styles.css": "./styles.css",
|
|
39
|
-
"./themes/default.css": "./themes/default.css"
|
|
39
|
+
"./themes/default.css": "./themes/default.css",
|
|
40
|
+
"./themes/presets.css": "./themes/presets.css"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"registry": "https://registry.npmjs.org",
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
}
|
|
69
70
|
},
|
|
70
71
|
"dependencies": {
|
|
72
|
+
"@hookform/resolvers": "^5.2.2",
|
|
71
73
|
"@mdx-js/mdx": "^3.1.1",
|
|
72
74
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
73
75
|
"@radix-ui/react-aspect-ratio": "^1.1.8",
|
|
@@ -101,13 +103,17 @@
|
|
|
101
103
|
"html-to-image": "^1.11.13",
|
|
102
104
|
"input-otp": "^1.4.2",
|
|
103
105
|
"lucide-react": "^0.468.0",
|
|
106
|
+
"qrcode": "1.5.4",
|
|
104
107
|
"react-day-picker": "^9.13.0",
|
|
108
|
+
"react-hook-form": "^7.73.1",
|
|
105
109
|
"react-markdown": "^10.1.0",
|
|
106
110
|
"react-resizable-panels": "^4.3.3",
|
|
107
111
|
"react-syntax-highlighter": "^16.1.1",
|
|
112
|
+
"remark-gfm": "^4.0.1",
|
|
108
113
|
"sonner": "^1.7.4",
|
|
109
114
|
"tailwind-merge": "^2.5.5",
|
|
110
|
-
"vaul": "^1.1.2"
|
|
115
|
+
"vaul": "^1.1.2",
|
|
116
|
+
"zod": "^4.3.6"
|
|
111
117
|
},
|
|
112
118
|
"devDependencies": {
|
|
113
119
|
"@chromatic-com/storybook": "^5.0.1",
|
|
@@ -123,25 +129,25 @@
|
|
|
123
129
|
"@testing-library/jest-dom": "^6.9.1",
|
|
124
130
|
"@testing-library/react": "^16.3.0",
|
|
125
131
|
"@types/node": "^22",
|
|
132
|
+
"@types/qrcode": "1.5.6",
|
|
126
133
|
"@types/react": "^19.1.6",
|
|
127
134
|
"@types/react-dom": "^19.1.6",
|
|
128
135
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
129
|
-
"@vitest/coverage-v8": "^4.
|
|
136
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
130
137
|
"@vllnt/eslint-config": "^1.0.0",
|
|
131
138
|
"@vllnt/typescript": "^1.0.0",
|
|
132
139
|
"autoprefixer": "^10.4.21",
|
|
133
140
|
"eslint": "^9.39.1",
|
|
134
141
|
"jsdom": "^26.1.0",
|
|
135
142
|
"playwright": "^1.57.0",
|
|
136
|
-
"postcss": "^8.5.
|
|
137
|
-
"remark-gfm": "^4.0.1",
|
|
143
|
+
"postcss": "^8.5.10",
|
|
138
144
|
"storybook": "^10.2.17",
|
|
139
145
|
"tailwindcss": "^3.4.17",
|
|
140
146
|
"tailwindcss-animate": "^1.0.7",
|
|
141
147
|
"tsup": "^8.5.0",
|
|
142
148
|
"tsx": "^4.21.0",
|
|
143
149
|
"typescript": "^5.9.3",
|
|
144
|
-
"vitest": "^4.
|
|
150
|
+
"vitest": "^4.1.9"
|
|
145
151
|
},
|
|
146
152
|
"scripts": {
|
|
147
153
|
"build": "tsup",
|
|
@@ -163,6 +169,7 @@
|
|
|
163
169
|
"storybook:generate-docs": "tsx scripts/generate-docs.ts",
|
|
164
170
|
"storybook:verify": "tsx scripts/verify-stories.ts",
|
|
165
171
|
"storybook:fix-stories": "tsx scripts/fix-stories.ts",
|
|
166
|
-
"check:stories": "tsx scripts/check-story-coverage.ts"
|
|
172
|
+
"check:stories": "tsx scripts/check-story-coverage.ts",
|
|
173
|
+
"check:use-client": "tsx scripts/check-use-client.ts"
|
|
167
174
|
}
|
|
168
175
|
}
|
package/styles.css
CHANGED
|
@@ -11,47 +11,47 @@
|
|
|
11
11
|
/* Default theme variables */
|
|
12
12
|
@layer base {
|
|
13
13
|
:root {
|
|
14
|
-
--background: 0 0
|
|
15
|
-
--foreground: 0 0
|
|
16
|
-
--card: 0 0
|
|
17
|
-
--card-foreground: 0 0
|
|
18
|
-
--popover: 0 0
|
|
19
|
-
--popover-foreground: 0 0
|
|
20
|
-
--primary: 0 0
|
|
21
|
-
--primary-foreground: 0 0
|
|
22
|
-
--secondary: 0 0
|
|
23
|
-
--secondary-foreground: 0 0
|
|
24
|
-
--muted: 0 0
|
|
25
|
-
--muted-foreground: 0 0
|
|
26
|
-
--accent: 0 0
|
|
27
|
-
--accent-foreground: 0 0
|
|
28
|
-
--destructive: 0
|
|
29
|
-
--destructive-foreground: 0 0
|
|
30
|
-
--border: 0 0
|
|
31
|
-
--input: 0 0
|
|
32
|
-
--ring: 0 0
|
|
14
|
+
--background: 1 0 0;
|
|
15
|
+
--foreground: 0.1445 0 0;
|
|
16
|
+
--card: 1 0 0;
|
|
17
|
+
--card-foreground: 0.1445 0 0;
|
|
18
|
+
--popover: 1 0 0;
|
|
19
|
+
--popover-foreground: 0.1445 0 0;
|
|
20
|
+
--primary: 0.2044 0 0;
|
|
21
|
+
--primary-foreground: 0.9848 0 0;
|
|
22
|
+
--secondary: 0.9703 0 0;
|
|
23
|
+
--secondary-foreground: 0.2044 0 0;
|
|
24
|
+
--muted: 0.9703 0 0;
|
|
25
|
+
--muted-foreground: 0.5555 0 0;
|
|
26
|
+
--accent: 0.9703 0 0;
|
|
27
|
+
--accent-foreground: 0.2044 0 0;
|
|
28
|
+
--destructive: 0.6368 0.2078 25.326;
|
|
29
|
+
--destructive-foreground: 0.9848 0 0;
|
|
30
|
+
--border: 0.9219 0 0;
|
|
31
|
+
--input: 0.9219 0 0;
|
|
32
|
+
--ring: 0.1445 0 0;
|
|
33
33
|
--radius: 0.5rem;
|
|
34
34
|
}
|
|
35
35
|
.dark {
|
|
36
|
-
--background: 0 0
|
|
37
|
-
--foreground: 0 0
|
|
38
|
-
--card: 0 0
|
|
39
|
-
--card-foreground: 0 0
|
|
40
|
-
--popover: 0 0
|
|
41
|
-
--popover-foreground: 0 0
|
|
42
|
-
--primary: 0 0
|
|
43
|
-
--primary-foreground: 0 0
|
|
44
|
-
--secondary: 0 0
|
|
45
|
-
--secondary-foreground: 0 0
|
|
46
|
-
--muted: 0 0
|
|
47
|
-
--muted-foreground: 0 0
|
|
48
|
-
--accent: 0 0
|
|
49
|
-
--accent-foreground: 0 0
|
|
50
|
-
--destructive: 0
|
|
51
|
-
--destructive-foreground: 0 0
|
|
52
|
-
--border: 0 0
|
|
53
|
-
--input: 0 0
|
|
54
|
-
--ring: 0 0
|
|
36
|
+
--background: 0 0 0;
|
|
37
|
+
--foreground: 0.9848 0 0;
|
|
38
|
+
--card: 0.1445 0 0;
|
|
39
|
+
--card-foreground: 0.9848 0 0;
|
|
40
|
+
--popover: 0.1445 0 0;
|
|
41
|
+
--popover-foreground: 0.9848 0 0;
|
|
42
|
+
--primary: 0.9848 0 0;
|
|
43
|
+
--primary-foreground: 0.2044 0 0;
|
|
44
|
+
--secondary: 0.2686 0 0;
|
|
45
|
+
--secondary-foreground: 0.9848 0 0;
|
|
46
|
+
--muted: 0.2686 0 0;
|
|
47
|
+
--muted-foreground: 0.7153 0 0;
|
|
48
|
+
--accent: 0.2686 0 0;
|
|
49
|
+
--accent-foreground: 0.9848 0 0;
|
|
50
|
+
--destructive: 0.3959 0.1331 25.721;
|
|
51
|
+
--destructive-foreground: 0.9848 0 0;
|
|
52
|
+
--border: 0.2686 0 0;
|
|
53
|
+
--input: 0.2686 0 0;
|
|
54
|
+
--ring: 0.8697 0 0;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -115,6 +115,63 @@
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
@keyframes vllnt-text-shimmer {
|
|
119
|
+
from {
|
|
120
|
+
background-position: 200% center;
|
|
121
|
+
}
|
|
122
|
+
to {
|
|
123
|
+
background-position: 0% center;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@keyframes vllnt-sparkle {
|
|
128
|
+
0%,
|
|
129
|
+
100% {
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transform: scale(0) rotate(0deg);
|
|
132
|
+
}
|
|
133
|
+
50% {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
transform: scale(1) rotate(90deg);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@keyframes vllnt-meteor {
|
|
140
|
+
0% {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
transform: rotate(var(--vllnt-meteor-angle, 215deg)) translateX(0);
|
|
143
|
+
}
|
|
144
|
+
70% {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
100% {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
transform: rotate(var(--vllnt-meteor-angle, 215deg)) translateX(-500px);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@keyframes vllnt-particle-float {
|
|
154
|
+
0%,
|
|
155
|
+
100% {
|
|
156
|
+
opacity: 0.3;
|
|
157
|
+
transform: translateY(0);
|
|
158
|
+
}
|
|
159
|
+
50% {
|
|
160
|
+
opacity: 0.85;
|
|
161
|
+
transform: translateY(-24px);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@keyframes vllnt-liquid-shift {
|
|
166
|
+
0%,
|
|
167
|
+
100% {
|
|
168
|
+
background-position: 0% 50%;
|
|
169
|
+
}
|
|
170
|
+
50% {
|
|
171
|
+
background-position: 100% 50%;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
118
175
|
.ml-safe {
|
|
119
176
|
margin-left: env(safe-area-inset-left, 0);
|
|
120
177
|
}
|
package/themes/default.css
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
/* Default theme variables */
|
|
1
|
+
/* Default theme variables. Values are OKLCH channels ("L C H"), consumed as oklch(var(--x)). */
|
|
2
2
|
:root {
|
|
3
|
-
--background: 0 0
|
|
4
|
-
--foreground: 0 0
|
|
5
|
-
--card: 0 0
|
|
6
|
-
--card-foreground: 0 0
|
|
7
|
-
--popover: 0 0
|
|
8
|
-
--popover-foreground: 0 0
|
|
9
|
-
--primary: 0 0
|
|
10
|
-
--primary-foreground: 0 0
|
|
11
|
-
--secondary: 0 0
|
|
12
|
-
--secondary-foreground: 0 0
|
|
13
|
-
--muted: 0 0
|
|
14
|
-
--muted-foreground: 0 0
|
|
15
|
-
--accent: 0 0
|
|
16
|
-
--accent-foreground: 0 0
|
|
17
|
-
--destructive: 0
|
|
18
|
-
--destructive-foreground: 0 0
|
|
19
|
-
--border: 0 0
|
|
20
|
-
--input: 0 0
|
|
21
|
-
--ring: 0 0
|
|
3
|
+
--background: 1 0 0;
|
|
4
|
+
--foreground: 0.1445 0 0;
|
|
5
|
+
--card: 1 0 0;
|
|
6
|
+
--card-foreground: 0.1445 0 0;
|
|
7
|
+
--popover: 1 0 0;
|
|
8
|
+
--popover-foreground: 0.1445 0 0;
|
|
9
|
+
--primary: 0.2044 0 0;
|
|
10
|
+
--primary-foreground: 0.9848 0 0;
|
|
11
|
+
--secondary: 0.9703 0 0;
|
|
12
|
+
--secondary-foreground: 0.2044 0 0;
|
|
13
|
+
--muted: 0.9703 0 0;
|
|
14
|
+
--muted-foreground: 0.5555 0 0;
|
|
15
|
+
--accent: 0.9703 0 0;
|
|
16
|
+
--accent-foreground: 0.2044 0 0;
|
|
17
|
+
--destructive: 0.6368 0.2078 25.326;
|
|
18
|
+
--destructive-foreground: 0.9848 0 0;
|
|
19
|
+
--border: 0.9219 0 0;
|
|
20
|
+
--input: 0.9219 0 0;
|
|
21
|
+
--ring: 0.1445 0 0;
|
|
22
22
|
--radius: 0.5rem;
|
|
23
23
|
}
|
|
24
24
|
.dark {
|
|
25
|
-
--background: 0 0
|
|
26
|
-
--foreground: 0 0
|
|
27
|
-
--card: 0 0
|
|
28
|
-
--card-foreground: 0 0
|
|
29
|
-
--popover: 0 0
|
|
30
|
-
--popover-foreground: 0 0
|
|
31
|
-
--primary: 0 0
|
|
32
|
-
--primary-foreground: 0 0
|
|
33
|
-
--secondary: 0 0
|
|
34
|
-
--secondary-foreground: 0 0
|
|
35
|
-
--muted: 0 0
|
|
36
|
-
--muted-foreground: 0 0
|
|
37
|
-
--accent: 0 0
|
|
38
|
-
--accent-foreground: 0 0
|
|
39
|
-
--destructive: 0
|
|
40
|
-
--destructive-foreground: 0 0
|
|
41
|
-
--border: 0 0
|
|
42
|
-
--input: 0 0
|
|
43
|
-
--ring: 0 0
|
|
25
|
+
--background: 0 0 0;
|
|
26
|
+
--foreground: 0.9848 0 0;
|
|
27
|
+
--card: 0.1445 0 0;
|
|
28
|
+
--card-foreground: 0.9848 0 0;
|
|
29
|
+
--popover: 0.1445 0 0;
|
|
30
|
+
--popover-foreground: 0.9848 0 0;
|
|
31
|
+
--primary: 0.9848 0 0;
|
|
32
|
+
--primary-foreground: 0.2044 0 0;
|
|
33
|
+
--secondary: 0.2686 0 0;
|
|
34
|
+
--secondary-foreground: 0.9848 0 0;
|
|
35
|
+
--muted: 0.2686 0 0;
|
|
36
|
+
--muted-foreground: 0.7153 0 0;
|
|
37
|
+
--accent: 0.2686 0 0;
|
|
38
|
+
--accent-foreground: 0.9848 0 0;
|
|
39
|
+
--destructive: 0.3959 0.1331 25.721;
|
|
40
|
+
--destructive-foreground: 0.9848 0 0;
|
|
41
|
+
--border: 0.2686 0 0;
|
|
42
|
+
--input: 0.2686 0 0;
|
|
43
|
+
--ring: 0.8697 0 0;
|
|
44
44
|
}
|