@vllnt/ui 0.4.0-canary.sha09f2705 → 0.4.0-canary.sha0abbc44
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 +136 -1
- package/README.md +93 -9
- package/dist/components/{accordion → atoms/accordion}/accordion.js +2 -1
- package/dist/components/{agent-activity → atoms/agent-activity}/agent-activity.js +9 -2
- package/dist/components/{ai-source-citation → atoms/ai-source-citation}/ai-source-citation.js +1 -1
- package/dist/components/{ai-streaming-text → atoms/ai-streaming-text}/ai-streaming-text.js +2 -2
- package/dist/components/{alert → atoms/alert}/alert.js +1 -1
- package/dist/components/{alert-pulse → atoms/alert-pulse}/alert-pulse.js +2 -2
- package/dist/components/{anchor-port → atoms/anchor-port}/anchor-port.js +1 -1
- package/dist/components/{animated-beam → atoms/animated-beam}/animated-beam.js +1 -1
- package/dist/components/{animated-grid-pattern → atoms/animated-grid-pattern}/animated-grid-pattern.js +1 -1
- package/dist/components/{animated-list → atoms/animated-list}/animated-list.js +1 -1
- package/dist/components/{animated-tabs → atoms/animated-tabs}/animated-tabs.js +16 -4
- package/dist/components/{animated-testimonials → atoms/animated-testimonials}/animated-testimonials.js +1 -1
- package/dist/components/{animated-text → atoms/animated-text}/animated-text.js +29 -8
- package/dist/components/{animated-tooltip → atoms/animated-tooltip}/animated-tooltip.js +11 -1
- package/dist/components/{avatar → atoms/avatar}/avatar.js +1 -1
- package/dist/components/{badge → atoms/badge}/badge.js +1 -1
- package/dist/components/{banner → atoms/banner}/banner.js +1 -1
- package/dist/components/{bento-grid → atoms/bento-grid}/bento-grid.js +1 -1
- package/dist/components/{blur-reveal → atoms/blur-reveal}/blur-reveal.js +1 -1
- package/dist/components/{border-beam → atoms/border-beam}/border-beam.js +2 -5
- package/dist/components/{bottom-activity-strip → atoms/bottom-activity-strip}/bottom-activity-strip.js +3 -2
- package/dist/components/{bottom-bar → atoms/bottom-bar}/bottom-bar.js +1 -1
- package/dist/components/{breadcrumb → atoms/breadcrumb}/breadcrumb.js +2 -2
- package/dist/components/{button → atoms/button}/button.js +1 -1
- package/dist/components/{button-group → atoms/button-group}/button-group.js +1 -1
- package/dist/components/{callout → atoms/callout}/callout.js +1 -1
- package/dist/components/{card → atoms/card}/card.js +1 -1
- package/dist/components/{card-flip → atoms/card-flip}/card-flip.js +1 -1
- package/dist/components/{chain-of-thought → atoms/chain-of-thought}/chain-of-thought.js +8 -2
- package/dist/components/{checkbox → atoms/checkbox}/checkbox.js +1 -1
- package/dist/components/{checklist → atoms/checklist}/checklist.js +5 -2
- package/dist/components/{comment-pin → atoms/comment-pin}/comment-pin.js +8 -5
- package/dist/components/{comparison → atoms/comparison}/comparison.js +41 -27
- package/dist/components/{context-lens → atoms/context-lens}/context-lens.js +1 -1
- package/dist/components/{context-menu → atoms/context-menu}/context-menu.js +1 -1
- package/dist/components/{curriculum → atoms/curriculum}/curriculum.js +8 -6
- package/dist/components/atoms/cursor/cursor.js +91 -0
- package/dist/components/{data-list → atoms/data-list}/data-list.js +1 -1
- package/dist/components/{date-field → atoms/date-field}/date-field.js +1 -1
- package/dist/components/{dialog → atoms/dialog}/dialog.js +1 -1
- package/dist/components/{display → atoms/display}/display.js +1 -1
- package/dist/components/atoms/dock/dock.js +167 -0
- package/dist/components/{document-sibling-nav → atoms/document-sibling-nav}/document-sibling-nav.js +1 -1
- package/dist/components/{dot-pattern → atoms/dot-pattern}/dot-pattern.js +1 -1
- package/dist/components/{drawer → atoms/drawer}/drawer.js +3 -1
- package/dist/components/{dropdown-menu → atoms/dropdown-menu}/dropdown-menu.js +1 -1
- package/dist/components/{edge-label → atoms/edge-label}/edge-label.js +1 -1
- package/dist/components/{empty-state → atoms/empty-state}/empty-state.js +1 -1
- package/dist/components/{era-comparison → atoms/era-comparison}/era-comparison.js +2 -2
- package/dist/components/{expandable-cards → atoms/expandable-cards}/expandable-cards.js +1 -1
- package/dist/components/{faq → atoms/faq}/faq.js +1 -1
- package/dist/components/{fieldset → atoms/fieldset}/fieldset.js +1 -1
- package/dist/components/{floating-action-button → atoms/floating-action-button}/floating-action-button.js +1 -1
- package/dist/components/{floating-navbar → atoms/floating-navbar}/floating-navbar.js +1 -1
- package/dist/components/{floating-toolbar → atoms/floating-toolbar}/floating-toolbar.js +1 -1
- package/dist/components/{follow-mode → atoms/follow-mode}/follow-mode.js +7 -7
- package/dist/components/{gauge-chart → atoms/gauge-chart}/gauge-chart.js +1 -1
- package/dist/components/{glass-card → atoms/glass-card}/glass-card.js +1 -1
- package/dist/components/{glass-panel → atoms/glass-panel}/glass-panel.js +1 -1
- package/dist/components/{glass-progress → atoms/glass-progress}/glass-progress.js +2 -1
- package/dist/components/{grid → atoms/grid}/grid.js +1 -1
- package/dist/components/{group-hull → atoms/group-hull}/group-hull.js +1 -1
- package/dist/components/{handoff-beacon → atoms/handoff-beacon}/handoff-beacon.js +2 -2
- package/dist/components/{heading → atoms/heading}/heading.js +1 -1
- package/dist/components/{heat-overlay → atoms/heat-overlay}/heat-overlay.js +1 -1
- package/dist/components/{hover-card → atoms/hover-card}/hover-card.js +1 -1
- package/dist/components/{infinite-plane → atoms/infinite-plane}/infinite-plane.js +1 -1
- package/dist/components/{input → atoms/input}/input.js +1 -1
- package/dist/components/{input-group → atoms/input-group}/input-group.js +1 -1
- package/dist/components/{input-otp → atoms/input-otp}/input-otp.js +2 -2
- package/dist/components/{item → atoms/item}/item.js +1 -1
- package/dist/components/{jarvis-dock → atoms/jarvis-dock}/jarvis-dock.js +1 -1
- package/dist/components/{kbd → atoms/kbd}/kbd.js +1 -1
- package/dist/components/{key-concept → atoms/key-concept}/key-concept.js +5 -3
- package/dist/components/{keyboard-shortcuts-help → atoms/keyboard-shortcuts-help}/keyboard-shortcuts-help.js +10 -5
- package/dist/components/{label → atoms/label}/label.js +1 -1
- package/dist/components/{learning-objectives → atoms/learning-objectives}/learning-objectives.js +24 -10
- package/dist/components/{left-rail → atoms/left-rail}/left-rail.js +1 -1
- package/dist/components/{link → atoms/link}/link.js +1 -1
- package/dist/components/{liquid-glass → atoms/liquid-glass}/liquid-glass.js +2 -3
- package/dist/components/{list-box → atoms/list-box}/list-box.js +56 -5
- package/dist/components/{live-cursor → atoms/live-cursor}/live-cursor.js +10 -5
- package/dist/components/atoms/magnetic/magnetic.js +110 -0
- package/dist/components/atoms/magnetic-button/magnetic-button.js +111 -0
- package/dist/components/atoms/marquee/marquee.js +156 -0
- package/dist/components/{menubar → atoms/menubar}/menubar.js +1 -1
- package/dist/components/{meteors → atoms/meteors}/meteors.js +3 -3
- package/dist/components/{meter → atoms/meter}/meter.js +1 -1
- package/dist/components/{metric-cluster → atoms/metric-cluster}/metric-cluster.js +1 -1
- package/dist/components/{mini-map-panel → atoms/mini-map-panel}/mini-map-panel.js +1 -1
- package/dist/components/{multi-select-lasso → atoms/multi-select-lasso}/multi-select-lasso.js +1 -1
- package/dist/components/{native-select → atoms/native-select}/native-select.js +1 -1
- package/dist/components/{navigation-menu → atoms/navigation-menu}/navigation-menu.js +1 -1
- package/dist/components/{number-ticker → atoms/number-ticker}/number-ticker.js +1 -1
- package/dist/components/{object-handle → atoms/object-handle}/object-handle.js +2 -2
- package/dist/components/{object-inspector → atoms/object-inspector}/object-inspector.js +2 -2
- package/dist/components/{order-book → atoms/order-book}/order-book.js +14 -8
- package/dist/components/{panel → atoms/panel}/panel.js +1 -1
- package/dist/components/{particles → atoms/particles}/particles.js +3 -3
- package/dist/components/{password-input → atoms/password-input}/password-input.js +1 -1
- package/dist/components/{phone-input → atoms/phone-input}/phone-input.js +1 -1
- package/dist/components/{playback-ghost → atoms/playback-ghost}/playback-ghost.js +13 -5
- package/dist/components/{policy-delivery-panel → atoms/policy-delivery-panel}/policy-delivery-panel.js +1 -1
- package/dist/components/{popover → atoms/popover}/popover.js +1 -1
- package/dist/components/{presence-stack → atoms/presence-stack}/presence-stack.js +8 -3
- package/dist/components/{presence-sync-indicator → atoms/presence-sync-indicator}/presence-sync-indicator.js +3 -3
- package/dist/components/{pro-tip → atoms/pro-tip}/pro-tip.js +4 -1
- package/dist/components/{progress-bar → atoms/progress-bar}/progress-bar.js +3 -3
- package/dist/components/{progressive-blur → atoms/progressive-blur}/progressive-blur.js +1 -1
- package/dist/components/{prompt-input → atoms/prompt-input}/prompt-input.js +8 -2
- package/dist/components/{property-section → atoms/property-section}/property-section.js +2 -2
- package/dist/components/{prose → atoms/prose}/prose.js +1 -1
- package/dist/components/{qr-code → atoms/qr-code}/qr-code.js +28 -4
- package/dist/components/{quiz → atoms/quiz}/quiz.js +3 -1
- package/dist/components/{radio-group → atoms/radio-group}/radio-group.js +1 -1
- package/dist/components/{rating → atoms/rating}/rating.js +14 -3
- package/dist/components/{reasoning → atoms/reasoning}/reasoning.js +17 -8
- package/dist/components/{relationship-inspector → atoms/relationship-inspector}/relationship-inspector.js +1 -1
- package/dist/components/{resizable → atoms/resizable}/resizable.js +1 -1
- package/dist/components/{reveal-text → atoms/reveal-text}/reveal-text.js +1 -1
- package/dist/components/{right-dock → atoms/right-dock}/right-dock.js +1 -1
- package/dist/components/{routing-assignment-panel → atoms/routing-assignment-panel}/routing-assignment-panel.js +1 -1
- package/dist/components/{runtime-overview-panel → atoms/runtime-overview-panel}/runtime-overview-panel.js +1 -1
- package/dist/components/{scramble-text → atoms/scramble-text}/scramble-text.js +6 -12
- package/dist/components/atoms/scroll-area/scroll-area.js +90 -0
- package/dist/components/{scroll-progress → atoms/scroll-progress}/scroll-progress.js +12 -3
- package/dist/components/{search-field → atoms/search-field}/search-field.js +3 -3
- package/dist/components/{segmented-control → atoms/segmented-control}/segmented-control.js +1 -1
- package/dist/components/{select → atoms/select}/select.js +1 -1
- package/dist/components/{selection-halo → atoms/selection-halo}/selection-halo.js +11 -3
- package/dist/components/{selection-presence → atoms/selection-presence}/selection-presence.js +4 -2
- package/dist/components/{separator → atoms/separator}/separator.js +1 -1
- package/dist/components/{severity-badge → atoms/severity-badge}/severity-badge.js +11 -11
- package/dist/components/{sheet → atoms/sheet}/sheet.js +1 -1
- package/dist/components/{shimmer-button → atoms/shimmer-button}/shimmer-button.js +1 -1
- package/dist/components/{shimmer-text → atoms/shimmer-text}/shimmer-text.js +1 -1
- package/dist/components/{shine-border → atoms/shine-border}/shine-border.js +2 -5
- package/dist/components/{shiny-button → atoms/shiny-button}/shiny-button.js +1 -1
- package/dist/components/{skeleton → atoms/skeleton}/skeleton.js +5 -2
- package/dist/components/{slider → atoms/slider}/slider.js +13 -2
- package/dist/components/{snap-guides → atoms/snap-guides}/snap-guides.js +2 -1
- package/dist/components/{social-fab → atoms/social-fab}/social-fab.js +1 -1
- package/dist/components/{sparkles → atoms/sparkles}/sparkles.js +3 -3
- package/dist/components/{sparkline-grid → atoms/sparkline-grid}/sparkline-grid.js +6 -6
- package/dist/components/{spinner → atoms/spinner}/spinner.js +3 -2
- package/dist/components/{spinner → atoms/spinner}/unicode-spinner.js +1 -1
- package/dist/components/{spinning-text → atoms/spinning-text}/spinning-text.js +15 -13
- package/dist/components/atoms/spotlight-card/spotlight-card.js +77 -0
- package/dist/components/{state-badge-overlay → atoms/state-badge-overlay}/state-badge-overlay.js +3 -3
- package/dist/components/{status-indicator → atoms/status-indicator}/status-indicator.js +2 -2
- package/dist/components/{step-by-step → atoms/step-by-step}/step-by-step.js +4 -2
- package/dist/components/{step-navigation → atoms/step-navigation}/step-navigation.js +1 -1
- package/dist/components/{stepper → atoms/stepper}/stepper.js +2 -1
- package/dist/components/{sticky-metric → atoms/sticky-metric}/sticky-metric.js +1 -1
- package/dist/components/{switch → atoms/switch}/switch.js +1 -1
- package/dist/components/{table → atoms/table}/table.js +1 -1
- package/dist/components/{table-of-contents → atoms/table-of-contents}/table-of-contents.js +1 -1
- package/dist/components/{table-of-contents-panel → atoms/table-of-contents-panel}/table-of-contents-panel.js +7 -3
- package/dist/components/atoms/tabs/tabs.js +227 -0
- package/dist/components/{tag-group → atoms/tag-group}/tag-group.js +1 -1
- package/dist/components/{tags-input → atoms/tags-input}/tags-input.js +1 -1
- package/dist/components/{text → atoms/text}/text.js +1 -1
- package/dist/components/{text-animate → atoms/text-animate}/text-animate.js +1 -1
- package/dist/components/{text-reveal → atoms/text-reveal}/text-reveal.js +33 -18
- package/dist/components/{text-shimmer → atoms/text-shimmer}/text-shimmer.js +1 -1
- package/dist/components/{textarea → atoms/textarea}/textarea.js +1 -1
- package/dist/components/{theme-preset-provider → atoms/theme-preset-provider}/theme-preset-provider.js +2 -2
- package/dist/components/{theme-switcher → atoms/theme-switcher}/theme-switcher.js +15 -4
- package/dist/components/{thinking-block → atoms/thinking-block}/thinking-block.js +10 -8
- package/dist/components/{thread-bubble → atoms/thread-bubble}/thread-bubble.js +4 -2
- package/dist/components/{threshold-ring → atoms/threshold-ring}/threshold-ring.js +1 -1
- package/dist/components/atoms/tilt-card/tilt-card.js +115 -0
- package/dist/components/{time-field → atoms/time-field}/time-field.js +1 -1
- package/dist/components/{timeline → atoms/timeline}/timeline.js +1 -1
- package/dist/components/{timeline-scrubber → atoms/timeline-scrubber}/timeline-scrubber.js +1 -1
- package/dist/components/{tldr-section → atoms/tldr-section}/tldr-section.js +11 -6
- package/dist/components/atoms/toast/sonner-toast.js +4 -0
- package/dist/components/{toast → atoms/toast}/toast.js +16 -17
- package/dist/components/{toast → atoms/toast}/toaster.js +7 -1
- package/dist/components/{toggle → atoms/toggle}/toggle.js +1 -1
- package/dist/components/{toolbar → atoms/toolbar}/toolbar.js +2 -1
- package/dist/components/{tooltip → atoms/tooltip}/tooltip.js +1 -1
- package/dist/components/{top-bar → atoms/top-bar}/top-bar.js +1 -1
- package/dist/components/{truncated-text → atoms/truncated-text}/truncated-text.js +1 -1
- package/dist/components/{tutorial-intro-content → atoms/tutorial-intro-content}/tutorial-intro-content.js +1 -1
- package/dist/components/{typewriter → atoms/typewriter}/typewriter.js +3 -2
- package/dist/components/{typography → atoms/typography}/typography.js +1 -1
- package/dist/components/{video-embed → atoms/video-embed}/video-embed.js +3 -1
- package/dist/components/{view-switcher → atoms/view-switcher}/view-switcher.js +55 -44
- package/dist/components/{viewport-bookmarks → atoms/viewport-bookmarks}/viewport-bookmarks.js +1 -1
- package/dist/components/{watchlist → atoms/watchlist}/watchlist.js +10 -9
- package/dist/components/{workspace-switcher → atoms/workspace-switcher}/workspace-switcher.js +40 -11
- package/dist/components/{world-breadcrumbs → atoms/world-breadcrumbs}/world-breadcrumbs.js +1 -1
- package/dist/components/index.js +377 -322
- package/dist/components/{activity-log → molecules/activity-log}/activity-log.js +7 -7
- package/dist/components/{ai-artifact → molecules/ai-artifact}/ai-artifact.js +8 -4
- package/dist/components/{ai-chat-input → molecules/ai-chat-input}/ai-chat-input.js +11 -4
- package/dist/components/{ai-message-bubble → molecules/ai-message-bubble}/ai-message-bubble.js +3 -3
- package/dist/components/{ai-sidebar → molecules/ai-sidebar}/ai-sidebar.js +3 -3
- package/dist/components/{ai-tool-call-display → molecules/ai-tool-call-display}/ai-tool-call-display.js +3 -3
- package/dist/components/{alert-dialog → molecules/alert-dialog}/alert-dialog.js +2 -2
- package/dist/components/{annotation → molecules/annotation}/annotation.js +6 -2
- package/dist/components/{auto-reload → molecules/auto-reload}/auto-reload.js +4 -4
- package/dist/components/{avatar-group → molecules/avatar-group}/avatar-group.js +3 -3
- package/dist/components/{blog-card → molecules/blog-card}/blog-card.js +2 -2
- package/dist/components/{calendar → molecules/calendar}/calendar.js +2 -2
- package/dist/components/{carousel → molecules/carousel}/carousel.js +2 -2
- package/dist/components/{category-filter → molecules/category-filter}/category-filter.js +1 -1
- package/dist/components/{chat-dock-section → molecules/chat-dock-section}/chat-dock-section.js +2 -2
- package/dist/components/{checkbox-group → molecules/checkbox-group}/checkbox-group.js +3 -3
- package/dist/components/{civilization-card → molecules/civilization-card}/civilization-card.js +2 -2
- package/dist/components/{color-picker → molecules/color-picker}/color-picker.js +55 -42
- package/dist/components/{command → molecules/command}/command.js +35 -16
- package/dist/components/molecules/completion-dialog/completion-dialog.js +163 -0
- package/dist/components/{connector-edge → molecules/connector-edge}/connector-edge.js +3 -2
- package/dist/components/{content-intro → molecules/content-intro}/content-intro.js +5 -3
- package/dist/components/{conversation-thread → molecules/conversation-thread}/conversation-thread.js +7 -6
- package/dist/components/{cookie-consent → molecules/cookie-consent}/cookie-consent.js +2 -2
- package/dist/components/{copy-button → molecules/copy-button}/copy-button.js +7 -47
- package/dist/components/molecules/copy-button/use-copy-to-clipboard.js +42 -0
- package/dist/components/{countdown-timer → molecules/countdown-timer}/countdown-timer.js +5 -5
- package/dist/components/{credit-badge → molecules/credit-badge}/credit-badge.js +2 -2
- package/dist/components/{exercise → molecules/exercise}/exercise.js +5 -5
- package/dist/components/{field → molecules/field}/field.js +2 -2
- package/dist/components/{file-upload → molecules/file-upload}/file-upload.js +45 -43
- package/dist/components/{filter-bar → molecules/filter-bar}/filter-bar.js +5 -5
- package/dist/components/{flashcard → molecules/flashcard}/flashcard.js +4 -4
- package/dist/components/{form → molecules/form}/form.js +2 -2
- package/dist/components/{historical-figure-card → molecules/historical-figure-card}/historical-figure-card.js +4 -4
- package/dist/components/{horizontal-scroll-row → molecules/horizontal-scroll-row}/horizontal-scroll-row.js +3 -3
- package/dist/components/{inline-input → molecules/inline-input}/inline-input.js +6 -2
- package/dist/components/{knowledge-check → molecules/knowledge-check}/knowledge-check.js +3 -3
- package/dist/components/{live-feed → molecules/live-feed}/live-feed.js +7 -7
- package/dist/components/{metric-gauge → molecules/metric-gauge}/metric-gauge.js +5 -5
- package/dist/components/{model-comparison → molecules/model-comparison}/model-comparison.js +3 -3
- package/dist/components/{newsletter-signup → molecules/newsletter-signup}/newsletter-signup.js +11 -4
- package/dist/components/{number-input → molecules/number-input}/number-input.js +8 -2
- package/dist/components/{object-card → molecules/object-card}/object-card.js +8 -7
- package/dist/components/{overview-board → molecules/overview-board}/overview-board.js +3 -2
- package/dist/components/molecules/pagination/pagination.js +76 -0
- package/dist/components/{plan-badge → molecules/plan-badge}/plan-badge.js +2 -2
- package/dist/components/{pricing-table → molecules/pricing-table}/pricing-table.js +2 -2
- package/dist/components/{profile-section → molecules/profile-section}/profile-section.js +1 -1
- package/dist/components/{progress-card → molecules/progress-card}/progress-card.js +21 -11
- package/dist/components/{progress-tracker → molecules/progress-tracker}/progress-tracker.js +45 -37
- package/dist/components/{prompt-templates → molecules/prompt-templates}/prompt-templates.js +4 -4
- package/dist/components/{role-badge → molecules/role-badge}/role-badge.js +2 -2
- package/dist/components/{scope-selector → molecules/scope-selector}/scope-selector.js +13 -9
- package/dist/components/{search-bar → molecules/search-bar}/search-bar.js +18 -12
- package/dist/components/{sidebar → molecules/sidebar}/sidebar.js +6 -6
- package/dist/components/{sidebar-toggle → molecules/sidebar-toggle}/sidebar-toggle.js +2 -2
- package/dist/components/{stat-card → molecules/stat-card}/stat-card.js +9 -4
- package/dist/components/{status-board → molecules/status-board}/status-board.js +10 -4
- package/dist/components/{text-field → molecules/text-field}/text-field.js +3 -3
- package/dist/components/{theme-toggle → molecules/theme-toggle}/theme-toggle.js +3 -3
- package/dist/components/{ticker-tape → molecules/ticker-tape}/ticker-tape.js +43 -15
- package/dist/components/{time-picker → molecules/time-picker}/time-picker.js +72 -29
- package/dist/components/{toggle-group → molecules/toggle-group}/toggle-group.js +2 -2
- package/dist/components/{tour → molecules/tour}/tour.js +18 -10
- package/dist/components/{transaction-list → molecules/transaction-list}/transaction-list.js +3 -3
- package/dist/components/{tutorial-card → molecules/tutorial-card}/tutorial-card.js +11 -9
- package/dist/components/{tutorial-filters → molecules/tutorial-filters}/tutorial-filters.js +4 -4
- package/dist/components/{usage-breakdown → molecules/usage-breakdown}/usage-breakdown.js +3 -3
- package/dist/components/{world-clock-bar → molecules/world-clock-bar}/world-clock-bar.js +3 -3
- package/dist/components/{zoom-hud → molecules/zoom-hud}/zoom-hud.js +3 -2
- package/dist/components/{activity-heatmap → organisms/activity-heatmap}/activity-heatmap.js +2 -2
- package/dist/components/{candlestick-chart → organisms/candlestick-chart}/candlestick-chart.js +5 -5
- package/dist/components/{canvas-view → organisms/canvas-view}/canvas-view.js +11 -15
- package/dist/components/{chart → organisms/chart}/area-chart.js +1 -1
- package/dist/components/{chart → organisms/chart}/bar-chart.js +2 -2
- package/dist/components/{chart → organisms/chart}/line-chart.js +1 -1
- package/dist/components/{choropleth-map → organisms/choropleth-map}/choropleth-map.js +10 -3
- package/dist/components/{chronological-timeline → organisms/chronological-timeline}/chronological-timeline.js +3 -5
- package/dist/components/{code-block → organisms/code-block}/code-block.js +45 -18
- package/dist/components/{code-playground → organisms/code-playground}/code-playground.js +11 -4
- package/dist/components/{combobox → organisms/combobox}/combobox.js +33 -11
- package/dist/components/{contribution-graph → organisms/contribution-graph}/contribution-graph.js +1 -1
- package/dist/components/{data-table → organisms/data-table}/data-table.js +45 -25
- package/dist/components/{date-picker → organisms/date-picker}/date-picker.js +30 -12
- package/dist/components/{date-range-picker → organisms/date-range-picker}/date-range-picker.js +28 -12
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-canvas.js +4 -1
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-controls.js +8 -2
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-diagram.js +1 -1
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-error-boundary.js +1 -1
- package/dist/components/{flow-diagram → organisms/flow-diagram}/flow-fullscreen.js +7 -3
- package/dist/components/{flow-diagram → organisms/flow-diagram}/use-flow-diagram.js +27 -13
- package/dist/components/{gantt-chart → organisms/gantt-chart}/gantt-chart.js +7 -3
- package/dist/components/{geography-quiz-map → organisms/geography-quiz-map}/geography-quiz-map.js +44 -21
- package/dist/components/{globe-3d → organisms/globe-3d}/globe-3d.js +2 -2
- package/dist/components/{heat-map-overlay → organisms/heat-map-overlay}/heat-map-overlay.js +1 -1
- package/dist/components/{historic-timeline → organisms/historic-timeline}/historic-timeline.js +2 -2
- package/dist/components/{interactive-timeline → organisms/interactive-timeline}/interactive-timeline.js +7 -7
- package/dist/components/{map-2d → organisms/map-2d}/map-2d.js +4 -1
- package/dist/components/{map-timeline → organisms/map-timeline}/map-timeline.js +1 -1
- package/dist/components/{market-treemap → organisms/market-treemap}/market-treemap.js +11 -4
- package/dist/components/{model-selector → organisms/model-selector}/model-selector.js +69 -52
- package/dist/components/{multi-select → organisms/multi-select}/multi-select.js +23 -6
- package/dist/components/{navbar-saas → organisms/navbar-saas}/navbar-saas.js +4 -4
- package/dist/components/{parallel-timeline → organisms/parallel-timeline}/parallel-timeline.js +3 -2
- package/dist/components/{pie-chart → organisms/pie-chart}/pie-chart.js +1 -1
- package/dist/components/{primary-source-viewer → organisms/primary-source-viewer}/primary-source-viewer.js +2 -2
- package/dist/components/{radar-chart → organisms/radar-chart}/radar-chart.js +1 -1
- package/dist/components/{range-calendar → organisms/range-calendar}/range-calendar.js +1 -1
- package/dist/components/{route-map → organisms/route-map}/route-map.js +1 -1
- package/dist/components/{run-timeline → organisms/run-timeline}/run-timeline.js +3 -3
- package/dist/components/{sankey-chart → organisms/sankey-chart}/sankey-chart.js +1 -1
- package/dist/components/{search-dialog → organisms/search-dialog}/search-dialog.js +3 -3
- package/dist/components/{share-dialog → organisms/share-dialog}/share-dialog.js +41 -27
- package/dist/components/{slideshow → organisms/slideshow}/slideshow.js +30 -15
- package/dist/components/{static-code → organisms/static-code}/static-code-copy.js +2 -2
- package/dist/components/{static-code → organisms/static-code}/static-code.js +1 -1
- package/dist/components/{story-map → organisms/story-map}/story-map.js +1 -1
- package/dist/components/{subscription-card → organisms/subscription-card}/subscription-card.js +6 -4
- package/dist/components/{terminal → organisms/terminal}/terminal.js +6 -6
- package/dist/components/{tree-view → organisms/tree-view}/tree-view.js +42 -5
- package/dist/components/{tutorial-complete → organisms/tutorial-complete}/tutorial-complete.js +3 -3
- package/dist/components/{tutorial-mdx → organisms/tutorial-mdx}/tutorial-mdx.js +27 -21
- package/dist/components/{wallet-card → organisms/wallet-card}/wallet-card.js +4 -4
- package/dist/components/{canvas-shell → templates/canvas-shell}/canvas-shell.js +1 -1
- package/dist/index.d.ts +1352 -1068
- package/dist/index.js +14 -0
- package/dist/lib/focus-calendar-day.js +13 -0
- package/dist/lib/roving-focus.js +70 -0
- package/dist/lib/use-escape-key.js +6 -3
- package/dist/lib/use-event-callback.js +15 -0
- package/dist/lib/use-focus-containment.js +74 -0
- package/dist/lib/use-return-focus.js +23 -0
- package/dist/tailwind-preset.js +16 -0
- package/dist/types/side-effect-imports.d.js +0 -0
- package/package.json +73 -71
- package/styles.css +48 -0
- package/themes/default.css +19 -0
- package/themes/products.css +146 -0
- package/dist/components/completion-dialog/completion-dialog.js +0 -204
- package/dist/components/cursor/cursor.js +0 -52
- package/dist/components/dock/dock.js +0 -109
- package/dist/components/magnetic/magnetic.js +0 -63
- package/dist/components/magnetic-button/magnetic-button.js +0 -64
- package/dist/components/marquee/marquee.js +0 -97
- package/dist/components/pagination/pagination.js +0 -44
- package/dist/components/scroll-area/scroll-area.js +0 -48
- package/dist/components/spotlight-card/spotlight-card.js +0 -53
- package/dist/components/tabs/tabs.js +0 -132
- package/dist/components/tilt-card/tilt-card.js +0 -70
- /package/dist/components/{aspect-ratio → atoms/aspect-ratio}/aspect-ratio.js +0 -0
- /package/dist/components/{collapsible → atoms/collapsible}/collapsible.js +0 -0
- /package/dist/components/{lang-provider → atoms/lang-provider}/lang-provider.js +0 -0
- /package/dist/components/{share-section → atoms/share-section}/share-section.js +0 -0
- /package/dist/components/{sidebar-provider → atoms/sidebar-provider}/sidebar-provider.js +0 -0
- /package/dist/components/{social-fab → atoms/social-fab}/use-social-fab.js +0 -0
- /package/dist/components/{theme-provider → atoms/theme-provider}/theme-provider.js +0 -0
- /package/dist/components/{flow-diagram → organisms/flow-diagram}/index.js +0 -0
- /package/dist/components/{flow-diagram → organisms/flow-diagram}/types.js +0 -0
- /package/dist/components/{mdx-content → organisms/mdx-content}/mdx-content.js +0 -0
- /package/dist/components/{navbar-saas → organisms/navbar-saas}/use-mobile.js +0 -0
- /package/dist/components/{canvas-shell → templates/canvas-shell}/canvas-shell-route-config.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,14 +8,149 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- **Product themes stylesheet** - `@vllnt/ui/themes/products.css` ships the
|
|
12
|
+
Maia and PaaS themes as `html[data-theme="maia"]` and
|
|
13
|
+
`html[data-theme="paas"]`, each with a `.dark` block. It is generated from
|
|
14
|
+
`packages/design/tokens.json`. Load Figtree (Maia) and JetBrains Mono
|
|
15
|
+
(Maia, PaaS) in your app; the package does not ship the fonts.
|
|
16
|
+
- **Status and diff colors** - CSS variables `--success`, `--warning`,
|
|
17
|
+
`--info`, their `-foreground` pairs, `--diff-added` and `--diff-removed` in
|
|
18
|
+
`themes/default.css` and `styles.css`, and matching Tailwind colors
|
|
19
|
+
(`success`, `warning`, `info`, `diff.added`, `diff.removed`) in the preset.
|
|
20
|
+
- **Label type step** - `--font-size-label`, `--line-height-label` and
|
|
21
|
+
`--font-weight-label`.
|
|
22
|
+
|
|
23
|
+
## [0.4.0] - 2026-10-31
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **New hooks** - `useFocusContainment` (trap Tab inside a custom modal and
|
|
28
|
+
restore focus on close) and `useEventCallback` (stable callback that always
|
|
29
|
+
calls the latest closure). Registry items import them from `@vllnt/ui`.
|
|
30
|
+
- **Props types exported from the barrel** - `BreadcrumbProps`,
|
|
31
|
+
`CommandDialogProps`, `SheetContentProps`, `CarouselProps`, `CodeBlockProps`,
|
|
32
|
+
`MDXContentProps`, `SidebarProps`, `TableOfContentsProps`,
|
|
33
|
+
`CategoryFilterProps`, `SearchBarProps`, `ShareSectionProps`,
|
|
34
|
+
`SearchDialogProps`, `LangProviderProps`, `ThemeToggleProps`,
|
|
35
|
+
`ProfileSectionProps`, `TLDRSectionProps`, `AreaChartProps`, `BarChartProps`,
|
|
36
|
+
`LineChartProps` and `ThemePresetProviderProps`.
|
|
37
|
+
|
|
38
|
+
- Source-only React Native renderer and shared design contracts (`@vllnt/ui-core`, `@vllnt/ui-native`). They are experimental and not published with this release; installing `@vllnt/ui` is unchanged.
|
|
12
39
|
- Localized Native catalog discovery, dependency/capability comparison, and extensible React/React Native source tabs in a single component preview surface.
|
|
40
|
+
- **Accessibility gate** - the Storybook test-runner runs axe-core (WCAG 2.0,
|
|
41
|
+
2.1 and 2.2, levels A and AA) on every story in the light and dark theme and
|
|
42
|
+
fails on any violation. A story can turn a rule off only through
|
|
43
|
+
`parameters.a11y.config.rules` with a written `reason`. (#543)
|
|
44
|
+
- **Optional accessibility props** (English defaults, nothing required):
|
|
45
|
+
`popoverLabel` on Combobox, MultiSelect, DatePicker, DateRangePicker,
|
|
46
|
+
TimePicker and ColorPicker; `aria-label` / `aria-labelledby` /
|
|
47
|
+
`aria-describedby` / `id` on Combobox; `aria-label` / `aria-labelledby` on
|
|
48
|
+
InlineInput and ScrollArea; NumberInput `incrementLabel` / `decrementLabel`;
|
|
49
|
+
Marquee and TickerTape `pauseControl` + `labels`; TabsContent `tabIndex`;
|
|
50
|
+
GanttChartLabels `region`; CompletionDialog `modal`; Pagination `labels`;
|
|
51
|
+
AIArtifactLabels `content`; ModelSelector `listLabel`; DataTableFilter
|
|
52
|
+
`ariaLabel`; VideoEmbed `playLabel`. (#543)
|
|
53
|
+
- **New exports** - `moveRovingFocus` (+ `RovingFocusOptions`,
|
|
54
|
+
`RovingOrientation`), `useReturnFocus` (+ `ReturnFocusHandlers`),
|
|
55
|
+
`focusCalendarDay`, `CHECKLIST_PROGRESS_EVENT`, `parseChecklistStorageValue`,
|
|
56
|
+
`MarqueeLabels`, `TickerTapeLabels`, `PaginationLabels`. Registry items now
|
|
57
|
+
import these from `@vllnt/ui`, so installing them needs a `@vllnt/ui` release
|
|
58
|
+
that contains them (the registry pins `^0.3.0`, which does not).
|
|
59
|
+
`registry:integrity` now fails when a registry item imports a name that
|
|
60
|
+
`@vllnt/ui` does not export. (#543)
|
|
61
|
+
|
|
62
|
+
### Changed
|
|
63
|
+
|
|
64
|
+
- **Colour tokens meet WCAG AA** (#538). The default light theme uses a darker
|
|
65
|
+
`--muted-foreground`, `--destructive` and `--input`; in the dark theme
|
|
66
|
+
`--destructive` is lighter with a dark foreground and `--input` is lighter, so
|
|
67
|
+
input borders are easier to see in both. Presets adjust `--primary`,
|
|
68
|
+
`--destructive`, `--input` and `--ring` the same way. Visual snapshots change.
|
|
69
|
+
- **Font tokens on `:root`** - `styles.css` now defines `--font-sans`,
|
|
70
|
+
`--font-display` and `--font-mono` on `:root`. If your app sets variables
|
|
71
|
+
with these names, declare them later in the cascade or on `body` so yours win.
|
|
72
|
+
- **Lighter imports** (#541) - CodeBlock renders its code as plain text first
|
|
73
|
+
and highlights it once the Prism build loads on the client; TutorialMDX loads
|
|
74
|
+
the MDX compiler only for content with JSX, and FlowDiagram loads
|
|
75
|
+
`html-to-image` only when copied. Apps that use neither `toast` nor
|
|
76
|
+
`Toaster` no longer bundle sonner.
|
|
77
|
+
- **Smaller package** - the tarball has 361 files instead of 659: the
|
|
78
|
+
per-component re-export stubs and `dist/test-setup.js` are gone.
|
|
79
|
+
Only the `exports` entry points are public, so imports do not change.
|
|
80
|
+
|
|
81
|
+
- **Peer dependency ranges now match what the package needs.** `next` is
|
|
82
|
+
`>=15.0.0` (Next 14 peers React 18, which the React 19 build cannot use),
|
|
83
|
+
`tailwindcss` is `^3.4.0` (components use `size-*`, `text-balance` and
|
|
84
|
+
`has-[]`, and the preset and CSS are Tailwind v3 only), and `next-themes` is
|
|
85
|
+
now a required peer because the root entry imports it. `next` stays optional
|
|
86
|
+
in metadata, but the root entry still imports `next/link`, `next/image` and
|
|
87
|
+
`next/navigation`, so non-Next apps must alias them (see the README
|
|
88
|
+
workaround). `react` and `react-dom` stay `>=19.0.0`: SearchBar and Slideshow
|
|
89
|
+
no longer call React 19.2's `useEffectEvent`, so 19.0 and 19.1 work.
|
|
90
|
+
|
|
91
|
+
- **Accessibility behaviour changes** (#543):
|
|
92
|
+
- Drawer moves focus into its content on open (`autoFocus` now defaults to
|
|
93
|
+
`true`; pass `autoFocus={false}` for vaul's previous behaviour).
|
|
94
|
+
- CompletionDialog is built on the Radix dialog: it traps focus, closes on
|
|
95
|
+
Escape and returns focus to the opener. `modal` (default `true`) maps to
|
|
96
|
+
Radix `modal`; `modal={false}` leaves the page behind it interactive.
|
|
97
|
+
Shortcuts work only while focus is inside the dialog, an empty string turns
|
|
98
|
+
one off, and Enter no longer confirms from any focused element.
|
|
99
|
+
- Marquee and TickerTape show a 24px pause/play button by default
|
|
100
|
+
(`pauseControl={false}` hides it). It overlays the top-right corner of the
|
|
101
|
+
Marquee and the right edge of the TickerTape, and hides under reduced
|
|
102
|
+
motion, when nothing moves.
|
|
103
|
+
- Pagination renders a `nav` landmark of single links styled as buttons, with
|
|
104
|
+
`aria-current="page"` on the current page (it used to nest a button in each
|
|
105
|
+
link).
|
|
106
|
+
- CodeBlock syntax colours come from the `--vllnt-code-*` CSS variables
|
|
107
|
+
(OKLCH channels) instead of JS theme detection. The defaults reach 4.5:1 on
|
|
108
|
+
the background in light and dark mode for the default theme and every
|
|
109
|
+
preset; override the variables to restyle.
|
|
110
|
+
- CommandSeparator renders an `aria-hidden` divider.
|
|
111
|
+
- Under `prefers-reduced-motion`, components stop their own decorative
|
|
112
|
+
animation and AnimatedText shows its final text at once; loaders marked
|
|
113
|
+
`data-motion="essential"` keep spinning, slower. The stylesheet changes
|
|
114
|
+
motion only on library components, never on your own elements.
|
|
115
|
+
- TabsContent is a tab stop only when the panel holds no focusable element;
|
|
116
|
+
the ScrollArea viewport is a tab stop only while its content scrolls.
|
|
117
|
+
- TreeView supports Home / End, ArrowRight to the first child and ArrowLeft
|
|
118
|
+
to the parent, and keeps the active row in view.
|
|
13
119
|
|
|
14
120
|
### Fixed
|
|
15
121
|
|
|
122
|
+
- **Setup docs** - the Tailwind config in both READMEs, the installation page
|
|
123
|
+
and the agent skill now lists `./node_modules/@vllnt/ui/dist/**/*.js` in
|
|
124
|
+
`content`. Tailwind 3 ignores a preset's `content` once the app sets its own,
|
|
125
|
+
so the documented config generated no component styles. The agent skill's
|
|
126
|
+
peer ranges and colour format (OKLCH) are corrected too.
|
|
127
|
+
- **Tailwind preset dependency** - `tailwindcss-animate`, which
|
|
128
|
+
`@vllnt/ui/tailwind-preset` imports, is now a runtime dependency. With 0.3.0
|
|
129
|
+
the preset failed to load unless the app installed it.
|
|
130
|
+
- **Duplicate React keys** - Terminal, FileUpload, AvatarGroup, Breadcrumb and
|
|
131
|
+
about 20 other list renderers no longer key rows by content or label alone,
|
|
132
|
+
so repeated or blank entries stop triggering duplicate-key errors. FileUpload
|
|
133
|
+
adds an identical file (same name, size and lastModified) once, so removal
|
|
134
|
+
removes one entry, and a selection that adds nothing new does not call
|
|
135
|
+
`onFilesChange`.
|
|
136
|
+
- **`"use client"` directives** - Toolbar, Stepper, AIChatInput, ObjectCard,
|
|
137
|
+
OverviewBoard and ZoomHUD use event handlers or browser globals and now carry
|
|
138
|
+
the directive. `check:use-client` also flags handler props and browser globals.
|
|
139
|
+
- **Focus in custom dialogs** - KeyboardShortcutsHelp, TableOfContentsPanel,
|
|
140
|
+
the FlowDiagram fullscreen view and the Slideshow contents panel keep Tab and
|
|
141
|
+
Shift+Tab inside the dialog and return focus to the opener on close.
|
|
142
|
+
- **DataTable** sortable headers expose `aria-sort`.
|
|
143
|
+
- **Contrast** - Rating stars and the green success icons in Checklist,
|
|
144
|
+
Curriculum and LearningObjectives reach 3:1 against the background in light
|
|
145
|
+
and dark themes.
|
|
146
|
+
- **Decorative inline `<svg>` icons** are hidden from assistive technology.
|
|
147
|
+
|
|
16
148
|
- Preserve nested scrolling, reduced-motion behavior and sidebar keyboard focus in the affected Web components.
|
|
17
149
|
- Forward explicit tab accessibility relationships and label/keyboard handlers without changing default tab navigation.
|
|
18
150
|
- Emit JSON-LD graph documents and localized Native discovery metadata without advertising unpublished npm packages.
|
|
151
|
+
- Accessible names, ARIA structure, APG keyboard patterns (tabs, radio groups,
|
|
152
|
+
listbox, tree, dialogs and focus return), reduced motion and hard-coded
|
|
153
|
+
palette contrast across the Web components flagged by the #535 audit. (#543)
|
|
19
154
|
|
|
20
155
|
## [0.3.0] - 2026-06-26
|
|
21
156
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @vllnt/ui
|
|
2
2
|
|
|
3
|
-
React component library —
|
|
3
|
+
React component library — 313 components built on Radix UI primitives, Tailwind CSS, and CVA.
|
|
4
4
|
|
|
5
5
|
See [CHANGELOG.md](./CHANGELOG.md) for release history.
|
|
6
6
|
|
|
@@ -15,15 +15,69 @@ pnpm add @vllnt/ui
|
|
|
15
15
|
Required:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
pnpm add react react-dom tailwindcss
|
|
18
|
+
pnpm add react react-dom tailwindcss next-themes
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
`react` and `react-dom` >= 19.0.0, `tailwindcss` ^3.4.0, `next-themes` >= 0.4.0 (a React-only library; it works outside Next.js).
|
|
22
|
+
|
|
23
|
+
Next.js (>= 15.0.0) is an optional peer, but the root entry imports `next/link`, `next/image` and `next/navigation` at module level. Install `next` unless you alias those modules (below).
|
|
22
24
|
|
|
23
25
|
```bash
|
|
24
|
-
pnpm add next
|
|
26
|
+
pnpm add next
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### Without Next.js (workaround)
|
|
30
|
+
|
|
31
|
+
Importing anything from `@vllnt/ui` loads every component, including the ones that use `next/*`. In a bundler without Next.js (for example Vite), alias the three modules to small stubs. Verified to build with Vite 7; runtime behaviour of the stubbed components (`Breadcrumb`, `Pagination`, `Sidebar`, `SearchBar`, `NavbarSaas`, ...) is not guaranteed.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
// vite.config.ts - workaround, not an officially supported setup
|
|
35
|
+
import { fileURLToPath } from "node:url";
|
|
36
|
+
import { defineConfig } from "vite";
|
|
37
|
+
|
|
38
|
+
const stub = (file: string) =>
|
|
39
|
+
fileURLToPath(new URL(`./next-stubs/${file}`, import.meta.url));
|
|
40
|
+
|
|
41
|
+
export default defineConfig({
|
|
42
|
+
resolve: {
|
|
43
|
+
alias: [
|
|
44
|
+
{ find: /^next\/link$/, replacement: stub("link.js") },
|
|
45
|
+
{ find: /^next\/image$/, replacement: stub("image.js") },
|
|
46
|
+
{ find: /^next\/navigation$/, replacement: stub("navigation.js") },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Stub files (workaround for non-Next bundlers; place them in `next-stubs/`):
|
|
53
|
+
|
|
54
|
+
```jsx
|
|
55
|
+
// next-stubs/link.js
|
|
56
|
+
import { createElement } from "react";
|
|
57
|
+
export default function Link({ href, prefetch, replace, scroll, ...props }) {
|
|
58
|
+
return createElement("a", { href: typeof href === "string" ? href : href?.pathname, ...props });
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
```jsx
|
|
63
|
+
// next-stubs/image.js
|
|
64
|
+
import { createElement } from "react";
|
|
65
|
+
export default function Image({ src, alt = "", fill, priority, quality, placeholder, blurDataURL, loader, unoptimized, ...props }) {
|
|
66
|
+
return createElement("img", { src: typeof src === "string" ? src : src?.src, alt, ...props });
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
// next-stubs/navigation.js
|
|
72
|
+
export const usePathname = () => "/";
|
|
73
|
+
export const useRouter = () => ({
|
|
74
|
+
push() {}, replace() {}, back() {}, forward() {}, refresh() {}, prefetch() {},
|
|
75
|
+
});
|
|
76
|
+
export const useSearchParams = () => new URLSearchParams();
|
|
25
77
|
```
|
|
26
78
|
|
|
79
|
+
Plain Node ESM import is not supported.
|
|
80
|
+
|
|
27
81
|
## Setup
|
|
28
82
|
|
|
29
83
|
### 1. Tailwind Preset
|
|
@@ -38,7 +92,9 @@ export default {
|
|
|
38
92
|
presets: [uiPreset],
|
|
39
93
|
content: [
|
|
40
94
|
"./src/**/*.{ts,tsx}",
|
|
41
|
-
//
|
|
95
|
+
// Required: Tailwind 3 ignores a preset's `content` once your config sets
|
|
96
|
+
// its own, so list the package's compiled components here.
|
|
97
|
+
"./node_modules/@vllnt/ui/dist/**/*.js",
|
|
42
98
|
],
|
|
43
99
|
};
|
|
44
100
|
```
|
|
@@ -60,6 +116,8 @@ import "@vllnt/ui/styles.css";
|
|
|
60
116
|
|
|
61
117
|
This imports Tailwind base/components/utilities + default theme variables + safe-area utilities.
|
|
62
118
|
|
|
119
|
+
If TypeScript reports TS2882 for this import (newer versions check side-effect imports), add `declare module "*.css";` to a `.d.ts` file in your app.
|
|
120
|
+
|
|
63
121
|
### 3. Use Components
|
|
64
122
|
|
|
65
123
|
```tsx
|
|
@@ -84,6 +142,7 @@ export function Example() {
|
|
|
84
142
|
| `@vllnt/ui/styles.css` | Full styles (Tailwind base + theme variables + utilities) |
|
|
85
143
|
| `@vllnt/ui/themes/default.css` | Theme CSS variables only (no Tailwind base) |
|
|
86
144
|
| `@vllnt/ui/themes/presets.css` | Built-in color presets (applied via `data-theme`) |
|
|
145
|
+
| `@vllnt/ui/themes/products.css` | Product themes `maia` and `paas` (generated; applied via `data-theme`) |
|
|
87
146
|
|
|
88
147
|
## Theming
|
|
89
148
|
|
|
@@ -133,6 +192,31 @@ at runtime with `<ThemeSwitcher />` (or `setThemePreset` / `useThemePreset`),
|
|
|
133
192
|
which set `data-theme` on the document root. Render `<ThemePresetProvider />`
|
|
134
193
|
once near the root to restore the saved preset before paint.
|
|
135
194
|
|
|
195
|
+
### Product themes
|
|
196
|
+
|
|
197
|
+
`@vllnt/ui/themes/products.css` adds two full product themes, generated from
|
|
198
|
+
`packages/design/tokens.json`. Import it after `styles.css`, set
|
|
199
|
+
`data-theme="maia"` or `data-theme="paas"` on `<html>`, and keep using the
|
|
200
|
+
`dark` class for dark mode:
|
|
201
|
+
|
|
202
|
+
```html
|
|
203
|
+
<html data-theme="maia" class="dark">
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
- `maia`: pink primary, Figtree and JetBrains Mono, tighter type scale and radius.
|
|
207
|
+
Its Label step is capitals in the design: add `uppercase` where you use it.
|
|
208
|
+
- `paas`: core neutrals and status tones in JetBrains Mono. Dark is the design
|
|
209
|
+
default; light works too.
|
|
210
|
+
|
|
211
|
+
The package does not ship fonts. Load Figtree (Maia) and JetBrains Mono (Maia
|
|
212
|
+
and PaaS) in your app, for example with `next/font` or a font `<link>`; without
|
|
213
|
+
them the themes fall back to the system font stack (`system-ui` for Maia,
|
|
214
|
+
`ui-monospace` for PaaS).
|
|
215
|
+
|
|
216
|
+
Both define `success`, `warning`, `info`, `diff-added` and `diff-removed` roles
|
|
217
|
+
(the core theme defines them as well). Web `--radius` carries the theme's
|
|
218
|
+
`md` step only; the other radius steps ship in the `@vllnt/ui-core` outputs.
|
|
219
|
+
|
|
136
220
|
To design and export your own theme, use the visual editor at
|
|
137
221
|
[`/themes`](https://ui.vllnt.com/themes) — it exports a CSS block, a
|
|
138
222
|
`npx shadcn add` command, or design tokens.
|
|
@@ -436,10 +520,10 @@ import type {
|
|
|
436
520
|
|
|
437
521
|
## Requirements
|
|
438
522
|
|
|
439
|
-
- React >=
|
|
440
|
-
- Tailwind CSS
|
|
441
|
-
-
|
|
442
|
-
-
|
|
523
|
+
- React >= 19.0.0
|
|
524
|
+
- Tailwind CSS ^3.4.0 (`size-*`, `text-balance` and `has-[...]` utilities need 3.4; Tailwind 4 is not supported)
|
|
525
|
+
- `next-themes` >= 0.4.0 (required peer)
|
|
526
|
+
- Next.js >= 15.0.0 (optional peer, but the root entry imports `next/*`; see Peer Dependencies for the no-Next workaround). Next 14 only supports React 18.
|
|
443
527
|
|
|
444
528
|
## License
|
|
445
529
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, use, useCallback, useMemo, useState } from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
const AccordionContext = createContext(null);
|
|
6
6
|
function useAccordionContext() {
|
|
7
7
|
const context = use(AccordionContext);
|
|
@@ -106,6 +106,7 @@ function AccordionTrigger({
|
|
|
106
106
|
) : /* @__PURE__ */ jsx(
|
|
107
107
|
"svg",
|
|
108
108
|
{
|
|
109
|
+
"aria-hidden": "true",
|
|
109
110
|
className: cn(
|
|
110
111
|
"size-4 flex-shrink-0 transition-transform duration-200",
|
|
111
112
|
isOpen && "rotate-180"
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
Loader2,
|
|
17
17
|
MinusCircle
|
|
18
18
|
} from "lucide-react";
|
|
19
|
-
import { cn } from "
|
|
19
|
+
import { cn } from "../../../lib/utils.js";
|
|
20
20
|
const STATUS_CLASSES = {
|
|
21
21
|
completed: {
|
|
22
22
|
iconClass: "text-emerald-600 dark:text-emerald-400",
|
|
@@ -48,7 +48,14 @@ const DEFAULT_STATUS_ICON = {
|
|
|
48
48
|
completed: /* @__PURE__ */ jsx(CheckCircle2, { "aria-hidden": "true", className: "size-4" }),
|
|
49
49
|
error: /* @__PURE__ */ jsx(AlertTriangle, { "aria-hidden": "true", className: "size-4" }),
|
|
50
50
|
pending: /* @__PURE__ */ jsx(Circle, { "aria-hidden": "true", className: "size-4" }),
|
|
51
|
-
running: /* @__PURE__ */ jsx(
|
|
51
|
+
running: /* @__PURE__ */ jsx(
|
|
52
|
+
Loader2,
|
|
53
|
+
{
|
|
54
|
+
"aria-hidden": "true",
|
|
55
|
+
className: "size-4 animate-spin motion-reduce:[animation-duration:1.5s]",
|
|
56
|
+
"data-motion": "essential"
|
|
57
|
+
}
|
|
58
|
+
),
|
|
52
59
|
skipped: /* @__PURE__ */ jsx(MinusCircle, { "aria-hidden": "true", className: "size-4" })
|
|
53
60
|
};
|
|
54
61
|
const StepContext = createContext({ status: "pending" });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
const AIStreamingText = ({
|
|
4
4
|
className,
|
|
5
5
|
cursor = "\u258D",
|
|
@@ -25,7 +25,7 @@ const AIStreamingText = ({
|
|
|
25
25
|
"span",
|
|
26
26
|
{
|
|
27
27
|
"aria-hidden": "true",
|
|
28
|
-
className: "ml-0.5 inline-block animate-pulse text-muted-foreground",
|
|
28
|
+
className: "ml-0.5 inline-block animate-pulse text-muted-foreground motion-reduce:animate-none",
|
|
29
29
|
children: cursor
|
|
30
30
|
}
|
|
31
31
|
) : null
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
const alertVariants = cva(
|
|
5
5
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
6
6
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
const SEVERITY_STROKE = {
|
|
5
5
|
error: "stroke-red-500",
|
|
6
6
|
info: "stroke-blue-500",
|
|
@@ -73,7 +73,7 @@ const AlertPulse = ({
|
|
|
73
73
|
"origin-center",
|
|
74
74
|
SEVERITY_STROKE[severity],
|
|
75
75
|
SEVERITY_FILL[severity],
|
|
76
|
-
reducedMotion ? null : "animate-ping"
|
|
76
|
+
reducedMotion ? null : "animate-ping motion-reduce:animate-none"
|
|
77
77
|
),
|
|
78
78
|
cx: size / 2,
|
|
79
79
|
cy: size / 2,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "../../../lib/utils.js";
|
|
3
3
|
const toneClasses = {
|
|
4
4
|
bidirectional: "border-violet-500/40 bg-violet-500/15 text-violet-700 dark:text-violet-300",
|
|
5
5
|
input: "border-sky-500/40 bg-sky-500/15 text-sky-700 dark:text-sky-300",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
function usePrefersReducedMotion() {
|
|
6
6
|
const [reduced, setReduced] = React.useState(false);
|
|
7
7
|
React.useEffect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
function createSquares(count) {
|
|
6
6
|
return Array.from({ length: count }, () => ({
|
|
7
7
|
delay: Math.random() * 5,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { moveRovingFocus } from "../../../lib/roving-focus.js";
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
6
|
function indicatorPosition(button) {
|
|
6
7
|
if (button === null) {
|
|
7
8
|
return { left: 0, width: 0 };
|
|
@@ -12,7 +13,8 @@ function TabButton({
|
|
|
12
13
|
active,
|
|
13
14
|
label,
|
|
14
15
|
onSelect,
|
|
15
|
-
reference
|
|
16
|
+
reference,
|
|
17
|
+
tabStop
|
|
16
18
|
}) {
|
|
17
19
|
return /* @__PURE__ */ jsx(
|
|
18
20
|
"button",
|
|
@@ -25,6 +27,7 @@ function TabButton({
|
|
|
25
27
|
onClick: onSelect,
|
|
26
28
|
ref: reference,
|
|
27
29
|
role: "tab",
|
|
30
|
+
tabIndex: tabStop ? 0 : -1,
|
|
28
31
|
type: "button",
|
|
29
32
|
children: label
|
|
30
33
|
}
|
|
@@ -33,6 +36,7 @@ function TabButton({
|
|
|
33
36
|
const AnimatedTabs = ({
|
|
34
37
|
className,
|
|
35
38
|
defaultValue,
|
|
39
|
+
onKeyDown,
|
|
36
40
|
onValueChange,
|
|
37
41
|
ref,
|
|
38
42
|
tabs,
|
|
@@ -51,6 +55,11 @@ const AnimatedTabs = ({
|
|
|
51
55
|
setActive(value);
|
|
52
56
|
onValueChange?.(value);
|
|
53
57
|
};
|
|
58
|
+
const hasActiveTab = tabs.some((tab) => tab.value === active);
|
|
59
|
+
const handleKeyDown = (event) => {
|
|
60
|
+
onKeyDown?.(event);
|
|
61
|
+
moveRovingFocus(event, '[role="tab"]', { activate: true });
|
|
62
|
+
};
|
|
54
63
|
return /* @__PURE__ */ jsxs(
|
|
55
64
|
"div",
|
|
56
65
|
{
|
|
@@ -58,8 +67,10 @@ const AnimatedTabs = ({
|
|
|
58
67
|
"relative inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1",
|
|
59
68
|
className
|
|
60
69
|
),
|
|
70
|
+
onKeyDown: handleKeyDown,
|
|
61
71
|
ref,
|
|
62
72
|
role: "tablist",
|
|
73
|
+
tabIndex: -1,
|
|
63
74
|
...props,
|
|
64
75
|
children: [
|
|
65
76
|
/* @__PURE__ */ jsx(
|
|
@@ -70,7 +81,7 @@ const AnimatedTabs = ({
|
|
|
70
81
|
style: { left: indicator.left, width: indicator.width }
|
|
71
82
|
}
|
|
72
83
|
),
|
|
73
|
-
tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
84
|
+
tabs.map((tab, index) => /* @__PURE__ */ jsx(
|
|
74
85
|
TabButton,
|
|
75
86
|
{
|
|
76
87
|
active: tab.value === active,
|
|
@@ -84,7 +95,8 @@ const AnimatedTabs = ({
|
|
|
84
95
|
} else {
|
|
85
96
|
buttons.current.set(tab.value, node);
|
|
86
97
|
}
|
|
87
|
-
}
|
|
98
|
+
},
|
|
99
|
+
tabStop: tab.value === active || !hasActiveTab && index === 0
|
|
88
100
|
},
|
|
89
101
|
tab.value
|
|
90
102
|
))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
const glyphSegmenterCache = {};
|
|
6
6
|
function splitGlyphs(text) {
|
|
7
7
|
if (glyphSegmenterCache.segmenter === void 0) {
|
|
@@ -91,12 +91,31 @@ function buildRevealPlan(direction, length, randomness) {
|
|
|
91
91
|
});
|
|
92
92
|
return revealPlan;
|
|
93
93
|
}
|
|
94
|
+
const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
95
|
+
const COMPLETE = Number.POSITIVE_INFINITY;
|
|
96
|
+
function subscribeReducedMotion(onChange) {
|
|
97
|
+
const query = typeof window.matchMedia === "function" ? window.matchMedia(REDUCED_MOTION_QUERY) : void 0;
|
|
98
|
+
query?.addEventListener("change", onChange);
|
|
99
|
+
return () => {
|
|
100
|
+
query?.removeEventListener("change", onChange);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function getReducedMotion() {
|
|
104
|
+
return typeof window.matchMedia === "function" && window.matchMedia(REDUCED_MOTION_QUERY).matches;
|
|
105
|
+
}
|
|
106
|
+
function usePrefersReducedMotion() {
|
|
107
|
+
return React.useSyncExternalStore(
|
|
108
|
+
subscribeReducedMotion,
|
|
109
|
+
getReducedMotion,
|
|
110
|
+
() => false
|
|
111
|
+
);
|
|
112
|
+
}
|
|
94
113
|
function useRevealProgress(active, length, stagger) {
|
|
95
|
-
const [progress, setProgress] = React.useState(() => active ? 0 :
|
|
114
|
+
const [progress, setProgress] = React.useState(() => active ? 0 : COMPLETE);
|
|
96
115
|
const [revealKey, setRevealKey] = React.useState({ active, length, stagger });
|
|
97
116
|
if (revealKey.active !== active || revealKey.length !== length || revealKey.stagger !== stagger) {
|
|
98
117
|
setRevealKey({ active, length, stagger });
|
|
99
|
-
setProgress(active ? 0 :
|
|
118
|
+
setProgress(active ? 0 : COMPLETE);
|
|
100
119
|
}
|
|
101
120
|
React.useEffect(() => {
|
|
102
121
|
if (!active) {
|
|
@@ -187,13 +206,15 @@ function useAnimatedTextFrames({
|
|
|
187
206
|
variant
|
|
188
207
|
}) {
|
|
189
208
|
const isOldSchool = variant !== "reveal";
|
|
209
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
210
|
+
const animate = isOldSchool && !reducedMotion;
|
|
190
211
|
const revealPlan = React.useMemo(
|
|
191
212
|
() => isOldSchool ? buildRevealPlan(direction, segments.length, randomness) : Array.from({ length: segments.length }, (_, index) => index),
|
|
192
213
|
[direction, isOldSchool, randomness, segments.length]
|
|
193
214
|
);
|
|
194
|
-
const progress = useRevealProgress(
|
|
215
|
+
const progress = useRevealProgress(animate, segments.length, stagger);
|
|
195
216
|
const matrixFrame = useMatrixFrame({
|
|
196
|
-
active: variant === "matrix" || variant === "decipher",
|
|
217
|
+
active: animate && (variant === "matrix" || variant === "decipher"),
|
|
197
218
|
progress,
|
|
198
219
|
randomCharacters,
|
|
199
220
|
revealPlan,
|
|
@@ -224,7 +245,7 @@ function useAnimatedTextFrames({
|
|
|
224
245
|
}
|
|
225
246
|
function getSegmentClasses(variant, isRevealed) {
|
|
226
247
|
if (variant === "reveal") {
|
|
227
|
-
return "inline-block whitespace-pre opacity-0 [animation-duration:var(--vllnt-animated-text-duration)] [animation-fill-mode:forwards] [animation-name:vllnt-animated-text-reveal] [animation-timing-function:cubic-bezier(0.16,1,0.3,1)]";
|
|
248
|
+
return "inline-block whitespace-pre opacity-0 [animation-duration:var(--vllnt-animated-text-duration)] [animation-fill-mode:forwards] [animation-name:vllnt-animated-text-reveal] [animation-timing-function:cubic-bezier(0.16,1,0.3,1)] motion-reduce:animate-none motion-reduce:opacity-100";
|
|
228
249
|
}
|
|
229
250
|
if (variant === "matrix" || variant === "decipher") {
|
|
230
251
|
return cn(
|
|
@@ -252,7 +273,7 @@ function AnimatedTextCursor({
|
|
|
252
273
|
{
|
|
253
274
|
"aria-hidden": "true",
|
|
254
275
|
className: cn(
|
|
255
|
-
"ml-0.5 inline-block whitespace-pre font-mono [animation:vllnt-terminal-cursor-blink_1s_steps(1,end)_infinite]",
|
|
276
|
+
"ml-0.5 inline-block whitespace-pre font-mono [animation:vllnt-terminal-cursor-blink_1s_steps(1,end)_infinite] motion-reduce:animate-none",
|
|
256
277
|
cursorToneClass
|
|
257
278
|
),
|
|
258
279
|
children: cursorChar
|
|
@@ -297,7 +318,6 @@ const AnimatedText = ({
|
|
|
297
318
|
return /* @__PURE__ */ jsxs(
|
|
298
319
|
"p",
|
|
299
320
|
{
|
|
300
|
-
"aria-label": text,
|
|
301
321
|
className: cn(getContainerClasses(variant), className),
|
|
302
322
|
ref,
|
|
303
323
|
style: {
|
|
@@ -305,6 +325,7 @@ const AnimatedText = ({
|
|
|
305
325
|
},
|
|
306
326
|
...props,
|
|
307
327
|
children: [
|
|
328
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: text }),
|
|
308
329
|
segmentFrames.map((segmentFrame) => /* @__PURE__ */ jsx(
|
|
309
330
|
"span",
|
|
310
331
|
{
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useEscapeKey } from "../../../lib/use-escape-key.js";
|
|
5
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
6
|
function Tooltip({
|
|
6
7
|
content,
|
|
7
8
|
side
|
|
@@ -27,6 +28,15 @@ const AnimatedTooltip = ({
|
|
|
27
28
|
...props
|
|
28
29
|
}) => {
|
|
29
30
|
const [open, setOpen] = React.useState(false);
|
|
31
|
+
const close = React.useCallback(() => {
|
|
32
|
+
setOpen(false);
|
|
33
|
+
}, []);
|
|
34
|
+
useEscapeKey(close, {
|
|
35
|
+
capture: true,
|
|
36
|
+
enabled: open,
|
|
37
|
+
preventDefault: true,
|
|
38
|
+
stopPropagation: true
|
|
39
|
+
});
|
|
30
40
|
return /* @__PURE__ */ jsxs(
|
|
31
41
|
"div",
|
|
32
42
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
const badgeVariants = cva(
|
|
5
5
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
6
6
|
{
|