@vllnt/ui 0.4.0-canary.sha008a929 → 0.4.0-canary.sha00eef56
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 +264 -1
- package/README.md +124 -12
- package/dist/components/{accordion → atoms/accordion}/accordion.js +30 -8
- package/dist/components/{agent-activity → atoms/agent-activity}/agent-activity.js +10 -3
- package/dist/components/{ai-source-citation → atoms/ai-source-citation}/ai-source-citation.js +2 -2
- package/dist/components/{ai-streaming-text → atoms/ai-streaming-text}/ai-streaming-text.js +2 -2
- package/dist/components/{alert → atoms/alert}/alert.js +2 -2
- package/dist/components/{alert-pulse → atoms/alert-pulse}/alert-pulse.js +9 -6
- 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/atoms/avatar/avatar.js +159 -0
- package/dist/components/atoms/badge/badge.js +105 -0
- 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 +6 -4
- package/dist/components/{bottom-bar → atoms/bottom-bar}/bottom-bar.js +1 -1
- package/dist/components/atoms/breadcrumb/breadcrumb.js +120 -0
- 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 +7 -4
- 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 +12 -10
- 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 +5 -3
- 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 +4 -2
- package/dist/components/{dropdown-menu → atoms/dropdown-menu}/dropdown-menu.js +2 -2
- 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 +24 -3
- package/dist/components/{follow-mode → atoms/follow-mode}/follow-mode.js +7 -7
- package/dist/components/{gauge-chart → atoms/gauge-chart}/gauge-chart.js +2 -2
- 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 +3 -2
- 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 +4 -3
- 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 +3 -3
- package/dist/components/{kbd → atoms/kbd}/kbd.js +44 -14
- 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 +11 -6
- 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 +2 -2
- package/dist/components/{meteors → atoms/meteors}/meteors.js +3 -3
- package/dist/components/{meter → atoms/meter}/meter.js +3 -3
- package/dist/components/{metric-cluster → atoms/metric-cluster}/metric-cluster.js +3 -2
- 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 +20 -11
- package/dist/components/{popover → atoms/popover}/popover.js +1 -1
- package/dist/components/{presence-stack → atoms/presence-stack}/presence-stack.js +9 -4
- 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/atoms/progress-bar/progress-bar.js +216 -0
- package/dist/components/{progressive-blur → atoms/progressive-blur}/progressive-blur.js +1 -1
- package/dist/components/{prompt-input → atoms/prompt-input}/prompt-input.js +9 -3
- package/dist/components/{property-section → atoms/property-section}/property-section.js +2 -2
- package/dist/components/{prose → atoms/prose}/prose.js +1 -1
- package/dist/components/atoms/pull-quote/pull-quote.js +77 -0
- package/dist/components/{qr-code → atoms/qr-code}/qr-code.js +28 -4
- package/dist/components/{quiz → atoms/quiz}/quiz.js +5 -3
- 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 +2 -2
- 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 +21 -12
- package/dist/components/{runtime-overview-panel → atoms/runtime-overview-panel}/runtime-overview-panel.js +3 -2
- package/dist/components/{scramble-text → atoms/scramble-text}/scramble-text.js +6 -12
- package/dist/components/atoms/scrim/scrim.js +32 -0
- 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 +3 -3
- package/dist/components/{select → atoms/select}/select.js +4 -4
- 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 +4 -3
- 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 +15 -17
- 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 +3 -2
- package/dist/components/{sticky-metric → atoms/sticky-metric}/sticky-metric.js +3 -2
- package/dist/components/{switch → atoms/switch}/switch.js +1 -1
- package/dist/components/{table → atoms/table}/table.js +2 -2
- package/dist/components/{table-of-contents → atoms/table-of-contents}/table-of-contents.js +2 -2
- package/dist/components/{table-of-contents-panel → atoms/table-of-contents-panel}/table-of-contents-panel.js +11 -7
- package/dist/components/atoms/tabs/tabs.js +250 -0
- package/dist/components/{tag-group → atoms/tag-group}/tag-group.js +11 -6
- package/dist/components/{tags-input → atoms/tags-input}/tags-input.js +2 -2
- package/dist/components/atoms/text/text.js +51 -0
- package/dist/components/{text-animate → atoms/text-animate}/text-animate.js +1 -1
- package/dist/components/{text-reveal → atoms/text-reveal}/text-reveal.js +33 -18
- package/dist/components/{text-shimmer → atoms/text-shimmer}/text-shimmer.js +1 -1
- package/dist/components/{textarea → atoms/textarea}/textarea.js +1 -1
- package/dist/components/{theme-preset-provider → atoms/theme-preset-provider}/theme-preset-provider.js +21 -7
- package/dist/components/{theme-switcher → atoms/theme-switcher}/theme-switcher.js +15 -4
- package/dist/components/{thinking-block → atoms/thinking-block}/thinking-block.js +10 -8
- package/dist/components/{thread-bubble → atoms/thread-bubble}/thread-bubble.js +5 -3
- package/dist/components/{threshold-ring → atoms/threshold-ring}/threshold-ring.js +4 -3
- 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 +16 -4
- package/dist/components/{timeline-scrubber → atoms/timeline-scrubber}/timeline-scrubber.js +4 -3
- package/dist/components/{tldr-section → atoms/tldr-section}/tldr-section.js +12 -7
- package/dist/components/atoms/toast/sonner-toast.js +4 -0
- package/dist/components/{toast → atoms/toast}/toast.js +17 -18
- package/dist/components/{toast → atoms/toast}/toaster.js +7 -1
- package/dist/components/{toggle → atoms/toggle}/toggle.js +2 -2
- package/dist/components/{toolbar → atoms/toolbar}/toolbar.js +2 -1
- package/dist/components/{tooltip → atoms/tooltip}/tooltip.js +1 -1
- package/dist/components/{top-bar → atoms/top-bar}/top-bar.js +1 -1
- package/dist/components/{truncated-text → atoms/truncated-text}/truncated-text.js +1 -1
- package/dist/components/{tutorial-intro-content → atoms/tutorial-intro-content}/tutorial-intro-content.js +3 -6
- package/dist/components/{typewriter → atoms/typewriter}/typewriter.js +3 -2
- package/dist/components/{typography → atoms/typography}/typography.js +1 -1
- package/dist/components/{video-embed → atoms/video-embed}/video-embed.js +3 -1
- package/dist/components/{view-switcher → atoms/view-switcher}/view-switcher.js +55 -44
- package/dist/components/{viewport-bookmarks → atoms/viewport-bookmarks}/viewport-bookmarks.js +2 -2
- package/dist/components/{watchlist → atoms/watchlist}/watchlist.js +11 -10
- package/dist/components/{workspace-switcher → atoms/workspace-switcher}/workspace-switcher.js +41 -12
- package/dist/components/{world-breadcrumbs → atoms/world-breadcrumbs}/world-breadcrumbs.js +1 -1
- package/dist/components/index.js +413 -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 +20 -18
- package/dist/components/{ai-chat-input → molecules/ai-chat-input}/ai-chat-input.js +12 -5
- package/dist/components/{ai-message-bubble → molecules/ai-message-bubble}/ai-message-bubble.js +3 -3
- package/dist/components/{ai-sidebar → molecules/ai-sidebar}/ai-sidebar.js +3 -3
- package/dist/components/{ai-tool-call-display → molecules/ai-tool-call-display}/ai-tool-call-display.js +3 -3
- package/dist/components/{alert-dialog → molecules/alert-dialog}/alert-dialog.js +2 -2
- package/dist/components/{annotation → molecules/annotation}/annotation.js +6 -2
- package/dist/components/molecules/approval-request/approval-request.js +168 -0
- 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 +3 -3
- 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 +6 -4
- package/dist/components/{conversation-thread → molecules/conversation-thread}/conversation-thread.js +12 -11
- package/dist/components/molecules/cookie-consent/cookie-consent.js +282 -0
- package/dist/components/{copy-button → molecules/copy-button}/copy-button.js +7 -47
- package/dist/components/molecules/copy-button/use-copy-to-clipboard.js +40 -0
- package/dist/components/{countdown-timer → molecules/countdown-timer}/countdown-timer.js +6 -6
- package/dist/components/molecules/credit-badge/credit-badge.js +54 -0
- 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 +8 -8
- 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 +5 -5
- 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 +13 -14
- package/dist/components/{pricing-table → molecules/pricing-table}/pricing-table.js +3 -3
- 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 +52 -53
- 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 +30 -15
- 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 +19 -11
- package/dist/components/{transaction-list → molecules/transaction-list}/transaction-list.js +10 -12
- package/dist/components/{tutorial-card → molecules/tutorial-card}/tutorial-card.js +11 -9
- package/dist/components/{tutorial-filters → molecules/tutorial-filters}/tutorial-filters.js +7 -7
- package/dist/components/{usage-breakdown → molecules/usage-breakdown}/usage-breakdown.js +4 -4
- 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/organisms/access-matrix/access-matrix.js +271 -0
- package/dist/components/{activity-heatmap → organisms/activity-heatmap}/activity-heatmap.js +3 -3
- 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/organisms/code-block/code-block.js +235 -0
- 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/organisms/cta-band/cta-band.js +79 -0
- 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 +9 -3
- 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 +8 -4
- 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 +8 -4
- 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 +3 -3
- 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 +5 -5
- package/dist/components/organisms/order-summary/order-summary.js +172 -0
- 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/organisms/settings-list/settings-list.js +125 -0
- package/dist/components/{share-dialog → organisms/share-dialog}/share-dialog.js +41 -27
- package/dist/components/organisms/share-dialog-people/share-dialog-people.js +412 -0
- package/dist/components/{slideshow → organisms/slideshow}/slideshow.js +36 -21
- 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 +16 -14
- 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 +5 -5
- 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 +2432 -1082
- package/dist/index.js +24 -0
- package/dist/lib/copy-text.js +64 -0
- package/dist/lib/focus-calendar-day.js +13 -0
- package/dist/lib/roving-focus.js +70 -0
- package/dist/lib/status-dot.js +33 -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 +86 -72
- package/styles.css +81 -11
- package/themes/default.css +52 -11
- package/themes/presets.css +76 -76
- package/themes/products.css +146 -0
- package/dist/components/avatar/avatar.js +0 -54
- package/dist/components/badge/badge.js +0 -26
- package/dist/components/breadcrumb/breadcrumb.js +0 -68
- package/dist/components/code-block/code-block.js +0 -144
- package/dist/components/completion-dialog/completion-dialog.js +0 -204
- package/dist/components/cookie-consent/cookie-consent.js +0 -174
- package/dist/components/credit-badge/credit-badge.js +0 -57
- 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/progress-bar/progress-bar.js +0 -56
- 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/text/text.js +0 -48
- 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,276 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- **Text `family` prop** - `family="mono"` sets body copy in `--font-mono`
|
|
12
|
+
(JetBrains Mono by default) with the same scale: `size="base"` 16/1.6,
|
|
13
|
+
`size="lead"` 18/1.7. The default stays `family="sans"`.
|
|
14
|
+
- **`@vllnt/ui/package.json` export** - tools can read the package manifest
|
|
15
|
+
(for example its version) without `ERR_PACKAGE_PATH_NOT_EXPORTED`.
|
|
16
|
+
|
|
17
|
+
## [0.4.0] - 2026-11-20
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- **Dialog overlay** - `DialogContent` takes `overlay="scrim"` (default, the
|
|
22
|
+
dimmed veil as before) or `overlay="none"` (no veil; the dialog stays modal).
|
|
23
|
+
(#601)
|
|
24
|
+
- **Design tokens** - `color.badge-label.*`, `brand.status.*`, `radius.control`
|
|
25
|
+
(6 px), `radius.surface` (8 px), `size.target.min` (44 px), `size.control-xs`
|
|
26
|
+
(32 px, and 44 px under a coarse pointer), `opacity.grain` and
|
|
27
|
+
`opacity.contact`. Only the radius, size and opacity tokens have CSS
|
|
28
|
+
variables. (#602)
|
|
29
|
+
- **Lock 2 tokens** - `shadow.raised`, `shadow.overlay` and `shadow.floating`
|
|
30
|
+
(`--shadow-raised`, `--shadow-overlay`, `--shadow-floating`, one list per
|
|
31
|
+
mode), `spacing.page-gutter`, `spacing.page-gutter-tablet` and
|
|
32
|
+
`spacing.page-gutter-desktop` (20, 48 and 96 px, as `--spacing-page-gutter*`),
|
|
33
|
+
`size.page-max` (1440 px) and `size.measure-narrow` (480 px) as
|
|
34
|
+
`--size-page-max` and `--size-measure-narrow`, and a `spacing.24` step
|
|
35
|
+
(96 px, no CSS variable). (#614)
|
|
36
|
+
- **Badge v1.3 props** - `tone`, `size`, `border`, `dot` and `variant="soft"`.
|
|
37
|
+
A status tone colours a dot, not the words. Existing props and defaults
|
|
38
|
+
render as before. (#610)
|
|
39
|
+
- **ProgressBar `blocks`** - draws ten blocks and fills one per whole 10% of
|
|
40
|
+
`value / max`; `aria-valuenow` stays exact. (#611)
|
|
41
|
+
- **Lint rule A12** (`vllnt/a12-no-status-text-colour`) - flags a status colour
|
|
42
|
+
used as text colour in component code. 56 existing files are allowlisted and
|
|
43
|
+
burn down in #604. (#607)
|
|
44
|
+
- **`warning` tone** - `AlertPulse` (`severity`), `BottomActivityStrip`,
|
|
45
|
+
`HeatOverlay`, `MetricCluster`, `RuntimeOverviewPanel`, `StickyMetric`,
|
|
46
|
+
`ThresholdRing` and `TimelineScrubber` (`tone`) accept `warning`, the name the
|
|
47
|
+
design library uses. (#616)
|
|
48
|
+
- **Product themes stylesheet** - `@vllnt/ui/themes/products.css` ships the
|
|
49
|
+
Maia and PaaS themes as `html[data-theme="maia"]` and
|
|
50
|
+
`html[data-theme="paas"]`, each with a `.dark` block. It is generated from
|
|
51
|
+
`packages/design/tokens.json`. Load JetBrains Mono (Maia, PaaS) in your
|
|
52
|
+
app; the package does not ship the font.
|
|
53
|
+
- **Status and diff colors** - CSS variables `--success`, `--warning`,
|
|
54
|
+
`--info`, their `-foreground` pairs, `--diff-added` and `--diff-removed` in
|
|
55
|
+
`themes/default.css` and `styles.css`, and matching Tailwind colors
|
|
56
|
+
(`success`, `warning`, `info`, `diff.added`, `diff.removed`) in the preset.
|
|
57
|
+
- **Label type step** - `--font-size-label`, `--line-height-label` and
|
|
58
|
+
`--font-weight-label`.
|
|
59
|
+
- **Sidebar `pathname` prop** - names the page the sidebar marks as current.
|
|
60
|
+
It defaults to the router's pathname, so existing usage is unchanged. Pass
|
|
61
|
+
it when the URL the visitor sees differs from the route that renders, such as
|
|
62
|
+
a prerendered locale or variant route, instead of overriding the router's
|
|
63
|
+
pathname context.
|
|
64
|
+
- **Sidebar `prefetch` prop** - set it to `false` to stop the sidebar's links
|
|
65
|
+
from prefetching their pages. Left unset, the links keep the router's default
|
|
66
|
+
prefetching, so existing usage is unchanged. A sidebar with dozens of links
|
|
67
|
+
in view otherwise prefetches every one of them on page load.
|
|
68
|
+
|
|
69
|
+
- **New hooks** - `useFocusContainment` (trap Tab inside a custom modal and
|
|
70
|
+
restore focus on close) and `useEventCallback` (stable callback that always
|
|
71
|
+
calls the latest closure). Registry items import them from `@vllnt/ui`.
|
|
72
|
+
- **Props types exported from the barrel** - `BreadcrumbProps`,
|
|
73
|
+
`CommandDialogProps`, `SheetContentProps`, `CarouselProps`, `CodeBlockProps`,
|
|
74
|
+
`MDXContentProps`, `SidebarProps`, `TableOfContentsProps`,
|
|
75
|
+
`CategoryFilterProps`, `SearchBarProps`, `ShareSectionProps`,
|
|
76
|
+
`SearchDialogProps`, `LangProviderProps`, `ThemeToggleProps`,
|
|
77
|
+
`ProfileSectionProps`, `TLDRSectionProps`, `AreaChartProps`, `BarChartProps`,
|
|
78
|
+
`LineChartProps` and `ThemePresetProviderProps`.
|
|
79
|
+
|
|
80
|
+
- 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
81
|
- Localized Native catalog discovery, dependency/capability comparison, and extensible React/React Native source tabs in a single component preview surface.
|
|
82
|
+
- **Accessibility gate** - the Storybook test-runner runs axe-core (WCAG 2.0,
|
|
83
|
+
2.1 and 2.2, levels A and AA) on every story in the light and dark theme and
|
|
84
|
+
fails on any violation. A story can turn a rule off only through
|
|
85
|
+
`parameters.a11y.config.rules` with a written `reason`. (#543)
|
|
86
|
+
- **Optional accessibility props** (English defaults, nothing required):
|
|
87
|
+
`popoverLabel` on Combobox, MultiSelect, DatePicker, DateRangePicker,
|
|
88
|
+
TimePicker and ColorPicker; `aria-label` / `aria-labelledby` /
|
|
89
|
+
`aria-describedby` / `id` on Combobox; `aria-label` / `aria-labelledby` on
|
|
90
|
+
InlineInput and ScrollArea; NumberInput `incrementLabel` / `decrementLabel`;
|
|
91
|
+
Marquee and TickerTape `pauseControl` + `labels`; TabsContent `tabIndex`;
|
|
92
|
+
GanttChartLabels `region`; CompletionDialog `modal`; Pagination `labels`;
|
|
93
|
+
AIArtifactLabels `content`; ModelSelector `listLabel`; DataTableFilter
|
|
94
|
+
`ariaLabel`; VideoEmbed `playLabel`. (#543)
|
|
95
|
+
- **New exports** - `moveRovingFocus` (+ `RovingFocusOptions`,
|
|
96
|
+
`RovingOrientation`), `useReturnFocus` (+ `ReturnFocusHandlers`),
|
|
97
|
+
`focusCalendarDay`, `CHECKLIST_PROGRESS_EVENT`, `parseChecklistStorageValue`,
|
|
98
|
+
`MarqueeLabels`, `TickerTapeLabels`, `PaginationLabels`. Registry items now
|
|
99
|
+
import these from `@vllnt/ui`, so installing them needs a `@vllnt/ui` release
|
|
100
|
+
that contains them (the registry pins `^0.3.0`, which does not).
|
|
101
|
+
`registry:integrity` now fails when a registry item imports a name that
|
|
102
|
+
`@vllnt/ui` does not export. (#543)
|
|
103
|
+
- **`copyText` helper** - `copyText(value): Promise<boolean>` is exported from
|
|
104
|
+
`@vllnt/ui`. It writes through the Clipboard API, falls back to a temporary
|
|
105
|
+
textarea and `document.execCommand("copy")` when that API is missing or
|
|
106
|
+
rejects, and resolves to `false` when neither path works. (#576)
|
|
107
|
+
|
|
108
|
+
### Changed
|
|
109
|
+
|
|
110
|
+
- **Dark surfaces are pure black** - the default dark theme now renders
|
|
111
|
+
`--background`, `--muted`, `--card` and `--popover` as `0 0 0` (#000000).
|
|
112
|
+
Hairline borders separate the surfaces: `--border`, `--secondary` and
|
|
113
|
+
`--accent` stay `0.2686` (#262626), and `--input` is unchanged. Before,
|
|
114
|
+
`--muted` was `0.2686` (#262626) and `--card` / `--popover` were `0.1445`
|
|
115
|
+
(#0a0a0a). A `bg-card` or `bg-popover` surface needs a `border` to show its
|
|
116
|
+
edge; every shipped one has it, and a test now fails on one that does not.
|
|
117
|
+
The separators in `DropdownMenu`, `Menubar` and `Select` draw with
|
|
118
|
+
`bg-border` instead of `bg-muted`, which is the page color now, and a test
|
|
119
|
+
fails on any one-pixel divider that uses `bg-muted`. Light mode is unchanged.
|
|
120
|
+
Themes that override these roles (presets, Maia) keep their values; PaaS and
|
|
121
|
+
any app that reads the dark `--muted`, `--card` or `--popover` directly get
|
|
122
|
+
black.
|
|
123
|
+
- **Hover, selected and data-state fills use `secondary`** - 32 component files
|
|
124
|
+
(`Table`, `Tabs` pill, `Toggle`, `Slideshow`, `FilterBar` and others) used
|
|
125
|
+
`bg-muted` for that feedback, which is now the page color in dark.
|
|
126
|
+
They use `bg-secondary` with the same opacity. In the default and PaaS themes
|
|
127
|
+
the fill is the same color as before in light and dark, because `--secondary`
|
|
128
|
+
equals the old `--muted` there. Theme presets keep a quiet neutral
|
|
129
|
+
`--secondary` (their `--accent` is a brand color), so text on these fills
|
|
130
|
+
stays at 6.65 to 12.53:1 in dark. The Maia theme has its own dark `--muted`
|
|
131
|
+
(`0.2002`) and a core dark `--secondary` (`0.2686`), so its dark hover fills
|
|
132
|
+
are one step lighter than before.
|
|
133
|
+
`SegmentedControl`, `ViewSwitcher`, `WorkspaceSwitcher` and the `PricingTable`
|
|
134
|
+
period toggle draw their track with `bg-secondary` for the same reason: the
|
|
135
|
+
selected segment is `bg-background` on that track.
|
|
136
|
+
- **Skeletons, tracks and handles use `secondary`** - 29 `bg-muted` fills in 23
|
|
137
|
+
component files were the whole visual of their element: `Skeleton`, the
|
|
138
|
+
`ProgressBar`, `Meter`, `Tour`, `Checklist`, `UsageBreakdown` and other
|
|
139
|
+
progress, meter and usage tracks, the `Drawer` handle, the empty cells of
|
|
140
|
+
`ActivityHeatmap` and the neutral `GanttChart` bar. They use `bg-secondary`
|
|
141
|
+
(#262626) with the same opacity, because `bg-muted` is the page color in dark
|
|
142
|
+
and they would disappear. Chips, code spans and panels keep `bg-muted`: their
|
|
143
|
+
text and border carry them. A test fails on a `bg-muted` skeleton or bar.
|
|
144
|
+
- **Alert destructive** - the title and body use the foreground colour. The
|
|
145
|
+
status colour stays on the border and the glyph. (#607)
|
|
146
|
+
- **Badge status chips** use a status dot. (#610)
|
|
147
|
+
- **Maia is Ink, and `--input` follows the design library** - Maia `--primary`
|
|
148
|
+
is black in light and white in dark (it was pink), Maia uses the core sans
|
|
149
|
+
font instead of Figtree, and its display and label weights are 600, not 700.
|
|
150
|
+
The default theme's `--input` is `0.6167` in light (was `0.66`) and `0.5208`
|
|
151
|
+
in dark (was `0.49`). (#614)
|
|
152
|
+
- **Theme presets meet the input 3:1 rule on muted** - the 12 runtime presets
|
|
153
|
+
(aura, chatgpt, claude, cyberlime, cyberpunk, dracula, dusk, gemini, matrix,
|
|
154
|
+
nord, synthwave and tron) get a new `--input` lightness in light and dark, by
|
|
155
|
+
0.048 at most, with hue and chroma unchanged. The control border now reaches
|
|
156
|
+
3:1 on background, card, popover and muted. (#620)
|
|
157
|
+
- **`warn` is deprecated** in the eight components above; pass `warning`. `warn`
|
|
158
|
+
still works and renders the same colour. Removing it would break consumers,
|
|
159
|
+
so that waits for a breaking release. `HeatOverlay` and `AlertPulse` now
|
|
160
|
+
default to `warning`. A `data-*` tone attribute echoes the value you pass.
|
|
161
|
+
- **Site header name** - `NavbarSaas` is the one code name for the design
|
|
162
|
+
library's `organism / Site header`. A `floating` style will join it as an
|
|
163
|
+
added prop, and `FloatingNavbar` stays a separate component until then.
|
|
164
|
+
`Display` is the design library's `atom / Heading` with `Level=display`.
|
|
165
|
+
- **Colour tokens meet WCAG AA** (#538). The default light theme uses a darker
|
|
166
|
+
`--muted-foreground`, `--destructive` and `--input`; in the dark theme
|
|
167
|
+
`--destructive` is lighter with a dark foreground and `--input` is lighter, so
|
|
168
|
+
input borders are easier to see in both. Presets adjust `--primary`,
|
|
169
|
+
`--destructive`, `--input` and `--ring` the same way. Visual snapshots change.
|
|
170
|
+
- **Font tokens on `:root`** - `styles.css` now defines `--font-sans`,
|
|
171
|
+
`--font-display` and `--font-mono` on `:root`. If your app sets variables
|
|
172
|
+
with these names, declare them later in the cascade or on `body` so yours win.
|
|
173
|
+
- **Lighter imports** (#541) - CodeBlock renders its code as plain text first
|
|
174
|
+
and highlights it once the Prism build loads on the client; TutorialMDX loads
|
|
175
|
+
the MDX compiler only for content with JSX, and FlowDiagram loads
|
|
176
|
+
`html-to-image` only when copied. Apps that use neither `toast` nor
|
|
177
|
+
`Toaster` no longer bundle sonner.
|
|
178
|
+
- **Smaller package** - the tarball has 361 files instead of 659: the
|
|
179
|
+
per-component re-export stubs and `dist/test-setup.js` are gone.
|
|
180
|
+
Only the `exports` entry points are public, so imports do not change.
|
|
181
|
+
|
|
182
|
+
- **Peer dependency ranges now match what the package needs.** `next` is
|
|
183
|
+
`>=15.0.0` (Next 14 peers React 18, which the React 19 build cannot use),
|
|
184
|
+
`tailwindcss` is `^3.4.0` (components use `size-*`, `text-balance` and
|
|
185
|
+
`has-[]`, and the preset and CSS are Tailwind v3 only), and `next-themes` is
|
|
186
|
+
now a required peer because the root entry imports it. `next` stays optional
|
|
187
|
+
in metadata, but the root entry still imports `next/link`, `next/image` and
|
|
188
|
+
`next/navigation`, so non-Next apps must alias them (see the README
|
|
189
|
+
workaround). `react` and `react-dom` stay `>=19.0.0`: SearchBar and Slideshow
|
|
190
|
+
no longer call React 19.2's `useEffectEvent`, so 19.0 and 19.1 work.
|
|
191
|
+
|
|
192
|
+
- **Accessibility behaviour changes** (#543):
|
|
193
|
+
- Drawer moves focus into its content on open (`autoFocus` now defaults to
|
|
194
|
+
`true`; pass `autoFocus={false}` for vaul's previous behaviour).
|
|
195
|
+
- CompletionDialog is built on the Radix dialog: it traps focus, closes on
|
|
196
|
+
Escape and returns focus to the opener. `modal` (default `true`) maps to
|
|
197
|
+
Radix `modal`; `modal={false}` leaves the page behind it interactive.
|
|
198
|
+
Shortcuts work only while focus is inside the dialog, an empty string turns
|
|
199
|
+
one off, and Enter no longer confirms from any focused element.
|
|
200
|
+
- Marquee and TickerTape show a 24px pause/play button by default
|
|
201
|
+
(`pauseControl={false}` hides it). It overlays the top-right corner of the
|
|
202
|
+
Marquee and the right edge of the TickerTape, and hides under reduced
|
|
203
|
+
motion, when nothing moves.
|
|
204
|
+
- Pagination renders a `nav` landmark of single links styled as buttons, with
|
|
205
|
+
`aria-current="page"` on the current page (it used to nest a button in each
|
|
206
|
+
link).
|
|
207
|
+
- CodeBlock syntax colours come from the `--vllnt-code-*` CSS variables
|
|
208
|
+
(OKLCH channels) instead of JS theme detection. The defaults reach 4.5:1 on
|
|
209
|
+
the background in light and dark mode for the default theme and every
|
|
210
|
+
preset; override the variables to restyle.
|
|
211
|
+
- CommandSeparator renders an `aria-hidden` divider.
|
|
212
|
+
- Under `prefers-reduced-motion`, components stop their own decorative
|
|
213
|
+
animation and AnimatedText shows its final text at once; loaders marked
|
|
214
|
+
`data-motion="essential"` keep spinning, slower. The stylesheet changes
|
|
215
|
+
motion only on library components, never on your own elements.
|
|
216
|
+
- TabsContent is a tab stop only when the panel holds no focusable element;
|
|
217
|
+
the ScrollArea viewport is a tab stop only while its content scrolls.
|
|
218
|
+
- TreeView supports Home / End, ArrowRight to the first child and ArrowLeft
|
|
219
|
+
to the parent, and keeps the active row in view.
|
|
13
220
|
|
|
14
221
|
### Fixed
|
|
15
222
|
|
|
223
|
+
- **Tap targets** - the NavbarSaas links, the Breadcrumb crumbs, the
|
|
224
|
+
TableOfContents buttons and the Sidebar family heading link are at least
|
|
225
|
+
24 px tall (WCAG 2.5.8); they were 20 px.
|
|
226
|
+
- **Close button target size** - the close buttons of `DialogContent`,
|
|
227
|
+
`SheetContent` and `CompletionDialog` were 16 px. They are at least 24 x 24 px
|
|
228
|
+
around the same 16 px icon (WCAG 2.5.8). (#576)
|
|
229
|
+
- **Copy without the Clipboard API** - `useCopyToClipboard` (so `CopyButton`,
|
|
230
|
+
`CodeBlock`, `Terminal` and the other copy controls) and
|
|
231
|
+
`AIArtifactCopyButton` fall back to a temporary textarea and
|
|
232
|
+
`document.execCommand("copy")` when `navigator.clipboard` is missing (plain
|
|
233
|
+
http, such as a Tailnet IP) or `writeText` rejects. The fallback works inside
|
|
234
|
+
modal dialogs, alert dialogs, native `dialog` elements and modal menus, keeps
|
|
235
|
+
the text the user had selected on the page, and returns focus only when it
|
|
236
|
+
came from the keyboard. `copied` stays `false` when both paths fail.
|
|
237
|
+
`FlowDiagram` copies a PNG, so it has no text fallback and keeps reporting
|
|
238
|
+
"Copy failed". (#576)
|
|
239
|
+
- **Accordion accessibility** - each trigger now has `aria-controls` pointing
|
|
240
|
+
at its panel, and each panel is a `region` labelled by its trigger. Closed
|
|
241
|
+
panels are `inert`, so screen readers no longer read closed answers and Tab
|
|
242
|
+
skips links inside them. The open and close animation is unchanged.
|
|
243
|
+
- **Select, SegmentedControl, FloatingToolbar and ProgressBar** - `Select`
|
|
244
|
+
shows `aria-invalid` with a destructive border. The `Select` menu animation,
|
|
245
|
+
the `SegmentedControl` selection transition, the `FloatingToolbar` colour
|
|
246
|
+
transition and the `ProgressBar` transitions stop under
|
|
247
|
+
`prefers-reduced-motion`. `FloatingToolbar` is one tab stop, and the arrow,
|
|
248
|
+
Home and End keys move between its actions and skip disabled ones. (#611)
|
|
249
|
+
- **Setup docs** - the Tailwind config in both READMEs, the installation page
|
|
250
|
+
and the agent skill now lists `./node_modules/@vllnt/ui/dist/**/*.js` in
|
|
251
|
+
`content`. Tailwind 3 ignores a preset's `content` once the app sets its own,
|
|
252
|
+
so the documented config generated no component styles. The agent skill's
|
|
253
|
+
peer ranges and colour format (OKLCH) are corrected too.
|
|
254
|
+
- **Tailwind preset dependency** - `tailwindcss-animate`, which
|
|
255
|
+
`@vllnt/ui/tailwind-preset` imports, is now a runtime dependency. With 0.3.0
|
|
256
|
+
the preset failed to load unless the app installed it.
|
|
257
|
+
- **Duplicate React keys** - Terminal, FileUpload, AvatarGroup, Breadcrumb and
|
|
258
|
+
about 20 other list renderers no longer key rows by content or label alone,
|
|
259
|
+
so repeated or blank entries stop triggering duplicate-key errors. FileUpload
|
|
260
|
+
adds an identical file (same name, size and lastModified) once, so removal
|
|
261
|
+
removes one entry, and a selection that adds nothing new does not call
|
|
262
|
+
`onFilesChange`.
|
|
263
|
+
- **`"use client"` directives** - Toolbar, Stepper, AIChatInput, ObjectCard,
|
|
264
|
+
OverviewBoard and ZoomHUD use event handlers or browser globals and now carry
|
|
265
|
+
the directive. `check:use-client` also flags handler props and browser globals.
|
|
266
|
+
- **Focus in custom dialogs** - KeyboardShortcutsHelp, TableOfContentsPanel,
|
|
267
|
+
the FlowDiagram fullscreen view and the Slideshow contents panel keep Tab and
|
|
268
|
+
Shift+Tab inside the dialog and return focus to the opener on close.
|
|
269
|
+
- **DataTable** sortable headers expose `aria-sort`.
|
|
270
|
+
- **Contrast** - Rating stars and the green success icons in Checklist,
|
|
271
|
+
Curriculum and LearningObjectives reach 3:1 against the background in light
|
|
272
|
+
and dark themes.
|
|
273
|
+
- **Decorative inline `<svg>` icons** are hidden from assistive technology.
|
|
274
|
+
|
|
16
275
|
- Preserve nested scrolling, reduced-motion behavior and sidebar keyboard focus in the affected Web components.
|
|
17
276
|
- Forward explicit tab accessibility relationships and label/keyboard handlers without changing default tab navigation.
|
|
18
277
|
- Emit JSON-LD graph documents and localized Native discovery metadata without advertising unpublished npm packages.
|
|
278
|
+
- Accessible names, ARIA structure, APG keyboard patterns (tabs, radio groups,
|
|
279
|
+
listbox, tree, dialogs and focus return), reduced motion and hard-coded
|
|
280
|
+
palette contrast across the Web components flagged by the #535 audit. (#543)
|
|
19
281
|
|
|
20
282
|
## [0.3.0] - 2026-06-26
|
|
21
283
|
|
|
@@ -164,6 +426,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
164
426
|
|
|
165
427
|
- Initial public publish to the public npm registry.
|
|
166
428
|
|
|
429
|
+
[0.4.0]: https://github.com/vllnt/ui/releases/tag/v0.4.0
|
|
167
430
|
[0.3.0]: https://github.com/vllnt/ui/releases/tag/v0.3.0
|
|
168
431
|
[0.2.1]: https://github.com/vllnt/ui/releases/tag/v0.2.1
|
|
169
432
|
[0.2.0]: https://github.com/vllnt/ui/releases/tag/v0.2.0
|
package/README.md
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
# @vllnt/ui
|
|
2
2
|
|
|
3
|
-
React
|
|
3
|
+
React components built on Radix UI primitives, Tailwind CSS, and CVA. For humans and AI agents.
|
|
4
4
|
|
|
5
5
|
See [CHANGELOG.md](./CHANGELOG.md) for release history.
|
|
6
6
|
|
|
7
|
+
## For AI agents
|
|
8
|
+
|
|
9
|
+
An agent can read this library as text and JSON, without scraping pages. The site is <https://ui.vllnt.com>.
|
|
10
|
+
|
|
11
|
+
| URL | Returns |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `https://ui.vllnt.com/llms.txt` | A short plain-text overview: install steps, docs links, and components grouped by category. |
|
|
14
|
+
| `https://ui.vllnt.com/llms-full.txt` | One long text file: guides, the design guide, latest release notes, templates, and a summary of every component. |
|
|
15
|
+
| `https://ui.vllnt.com/r/registry.json` | JSON index of every component in the shadcn registry. |
|
|
16
|
+
| `https://ui.vllnt.com/r/<name>` | One component as a shadcn registry item, with its source files inline. |
|
|
17
|
+
| `https://ui.vllnt.com/r/themes?t=<token>` | A shadcn theme item decoded from a theme token made in the theme editor. |
|
|
18
|
+
| `https://ui.vllnt.com/r/design.json` | The design tokens as JSON. |
|
|
19
|
+
| `https://ui.vllnt.com/design.txt` | The design guide as plain text. `https://ui.vllnt.com/DESIGN.md` is the same guide as Markdown. |
|
|
20
|
+
| `https://ui.vllnt.com/mcp` | An MCP server. It speaks JSON-RPC 2.0 over HTTP POST and has four read-only tools: `search_components`, `get_component`, `list_categories`, `list_platforms`. A GET returns server info. |
|
|
21
|
+
| `https://ui.vllnt.com/.well-known/api-catalog` | A catalog of these APIs (RFC 9727 linkset). |
|
|
22
|
+
|
|
23
|
+
The home page, the design and philosophy pages, and most docs and component pages also answer in Markdown. Send `Accept: text/markdown` to the same URL. A wildcard `Accept` does not select Markdown; the header must name `text/markdown`.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
curl -H "Accept: text/markdown" https://ui.vllnt.com/components/button
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
More: <https://ui.vllnt.com/docs/agents>.
|
|
30
|
+
|
|
7
31
|
## Install
|
|
8
32
|
|
|
9
33
|
```bash
|
|
@@ -15,15 +39,69 @@ pnpm add @vllnt/ui
|
|
|
15
39
|
Required:
|
|
16
40
|
|
|
17
41
|
```bash
|
|
18
|
-
pnpm add react react-dom tailwindcss
|
|
42
|
+
pnpm add react react-dom tailwindcss next-themes
|
|
19
43
|
```
|
|
20
44
|
|
|
21
|
-
|
|
45
|
+
`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).
|
|
46
|
+
|
|
47
|
+
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
48
|
|
|
23
49
|
```bash
|
|
24
|
-
pnpm add next
|
|
50
|
+
pnpm add next
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Without Next.js (workaround)
|
|
54
|
+
|
|
55
|
+
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.
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
// vite.config.ts - workaround, not an officially supported setup
|
|
59
|
+
import { fileURLToPath } from "node:url";
|
|
60
|
+
import { defineConfig } from "vite";
|
|
61
|
+
|
|
62
|
+
const stub = (file: string) =>
|
|
63
|
+
fileURLToPath(new URL(`./next-stubs/${file}`, import.meta.url));
|
|
64
|
+
|
|
65
|
+
export default defineConfig({
|
|
66
|
+
resolve: {
|
|
67
|
+
alias: [
|
|
68
|
+
{ find: /^next\/link$/, replacement: stub("link.js") },
|
|
69
|
+
{ find: /^next\/image$/, replacement: stub("image.js") },
|
|
70
|
+
{ find: /^next\/navigation$/, replacement: stub("navigation.js") },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Stub files (workaround for non-Next bundlers; place them in `next-stubs/`):
|
|
77
|
+
|
|
78
|
+
```jsx
|
|
79
|
+
// next-stubs/link.js
|
|
80
|
+
import { createElement } from "react";
|
|
81
|
+
export default function Link({ href, prefetch, replace, scroll, ...props }) {
|
|
82
|
+
return createElement("a", { href: typeof href === "string" ? href : href?.pathname, ...props });
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```jsx
|
|
87
|
+
// next-stubs/image.js
|
|
88
|
+
import { createElement } from "react";
|
|
89
|
+
export default function Image({ src, alt = "", fill, priority, quality, placeholder, blurDataURL, loader, unoptimized, ...props }) {
|
|
90
|
+
return createElement("img", { src: typeof src === "string" ? src : src?.src, alt, ...props });
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
```js
|
|
95
|
+
// next-stubs/navigation.js
|
|
96
|
+
export const usePathname = () => "/";
|
|
97
|
+
export const useRouter = () => ({
|
|
98
|
+
push() {}, replace() {}, back() {}, forward() {}, refresh() {}, prefetch() {},
|
|
99
|
+
});
|
|
100
|
+
export const useSearchParams = () => new URLSearchParams();
|
|
25
101
|
```
|
|
26
102
|
|
|
103
|
+
Plain Node ESM import is not supported.
|
|
104
|
+
|
|
27
105
|
## Setup
|
|
28
106
|
|
|
29
107
|
### 1. Tailwind Preset
|
|
@@ -38,7 +116,9 @@ export default {
|
|
|
38
116
|
presets: [uiPreset],
|
|
39
117
|
content: [
|
|
40
118
|
"./src/**/*.{ts,tsx}",
|
|
41
|
-
//
|
|
119
|
+
// Required: Tailwind 3 ignores a preset's `content` once your config sets
|
|
120
|
+
// its own, so list the package's compiled components here.
|
|
121
|
+
"./node_modules/@vllnt/ui/dist/**/*.js",
|
|
42
122
|
],
|
|
43
123
|
};
|
|
44
124
|
```
|
|
@@ -60,6 +140,8 @@ import "@vllnt/ui/styles.css";
|
|
|
60
140
|
|
|
61
141
|
This imports Tailwind base/components/utilities + default theme variables + safe-area utilities.
|
|
62
142
|
|
|
143
|
+
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.
|
|
144
|
+
|
|
63
145
|
### 3. Use Components
|
|
64
146
|
|
|
65
147
|
```tsx
|
|
@@ -84,6 +166,7 @@ export function Example() {
|
|
|
84
166
|
| `@vllnt/ui/styles.css` | Full styles (Tailwind base + theme variables + utilities) |
|
|
85
167
|
| `@vllnt/ui/themes/default.css` | Theme CSS variables only (no Tailwind base) |
|
|
86
168
|
| `@vllnt/ui/themes/presets.css` | Built-in color presets (applied via `data-theme`) |
|
|
169
|
+
| `@vllnt/ui/themes/products.css` | Product themes `maia` and `paas` (generated; applied via `data-theme`) |
|
|
87
170
|
|
|
88
171
|
## Theming
|
|
89
172
|
|
|
@@ -100,13 +183,13 @@ All colors are **OKLCH channel** CSS variables (`L C H`), consumed as
|
|
|
100
183
|
--secondary: 0.9703 0 0;
|
|
101
184
|
--secondary-foreground: 0.2044 0 0;
|
|
102
185
|
--muted: 0.9703 0 0;
|
|
103
|
-
--muted-foreground: 0.
|
|
186
|
+
--muted-foreground: 0.525 0 0;
|
|
104
187
|
--accent: 0.9703 0 0;
|
|
105
188
|
--accent-foreground: 0.2044 0 0;
|
|
106
|
-
--destructive: 0.
|
|
189
|
+
--destructive: 0.55 0.2078 25.326;
|
|
107
190
|
--destructive-foreground: 0.9848 0 0;
|
|
108
191
|
--border: 0.9219 0 0;
|
|
109
|
-
--input: 0.
|
|
192
|
+
--input: 0.6167 0 0;
|
|
110
193
|
--ring: 0.1445 0 0;
|
|
111
194
|
--radius: 0.5rem;
|
|
112
195
|
--card: 1 0 0;
|
|
@@ -133,6 +216,35 @@ at runtime with `<ThemeSwitcher />` (or `setThemePreset` / `useThemePreset`),
|
|
|
133
216
|
which set `data-theme` on the document root. Render `<ThemePresetProvider />`
|
|
134
217
|
once near the root to restore the saved preset before paint.
|
|
135
218
|
|
|
219
|
+
### Product themes
|
|
220
|
+
|
|
221
|
+
`@vllnt/ui/themes/products.css` adds two full product themes, generated from
|
|
222
|
+
`packages/design/tokens.json`. Import it after `styles.css`, set
|
|
223
|
+
`data-theme="maia"` or `data-theme="paas"` on `<html>`, and keep using the
|
|
224
|
+
`dark` class for dark mode:
|
|
225
|
+
|
|
226
|
+
```html
|
|
227
|
+
<html data-theme="maia" class="dark">
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
- `maia` (Ink): no accent; `--primary` is the ink colour (pure black `#000000`
|
|
231
|
+
in light on purpose, while core keeps `#171717`; white in dark). Core Inter
|
|
232
|
+
plus JetBrains Mono, weights 400 to 600, tighter type
|
|
233
|
+
scale and radius. Its Label step is capitals in the design: add `uppercase`
|
|
234
|
+
where you use it.
|
|
235
|
+
- `paas`: core neutrals and status tones in JetBrains Mono. Dark is the design
|
|
236
|
+
default; light works too.
|
|
237
|
+
|
|
238
|
+
The package does not ship fonts. Core puts Inter (sans) and JetBrains Mono
|
|
239
|
+
(mono) first, then the system stacks. Load Inter and JetBrains Mono (core, Maia
|
|
240
|
+
and PaaS) in your app, for example with `next/font` or a font `<link>`; without
|
|
241
|
+
them each stack falls back to the system font stack (`system-ui` for core sans
|
|
242
|
+
and Maia, `ui-monospace` for core mono and PaaS).
|
|
243
|
+
|
|
244
|
+
Both define `success`, `warning`, `info`, `diff-added` and `diff-removed` roles
|
|
245
|
+
(the core theme defines them as well). Web `--radius` carries the theme's
|
|
246
|
+
`md` step only; the other radius steps ship in the `@vllnt/ui-core` outputs.
|
|
247
|
+
|
|
136
248
|
To design and export your own theme, use the visual editor at
|
|
137
249
|
[`/themes`](https://ui.vllnt.com/themes) — it exports a CSS block, a
|
|
138
250
|
`npx shadcn add` command, or design tokens.
|
|
@@ -436,10 +548,10 @@ import type {
|
|
|
436
548
|
|
|
437
549
|
## Requirements
|
|
438
550
|
|
|
439
|
-
- React >=
|
|
440
|
-
- Tailwind CSS
|
|
441
|
-
-
|
|
442
|
-
-
|
|
551
|
+
- React >= 19.0.0
|
|
552
|
+
- Tailwind CSS ^3.4.0 (`size-*`, `text-balance` and `has-[...]` utilities need 3.4; Tailwind 4 is not supported)
|
|
553
|
+
- `next-themes` >= 0.4.0 (required peer)
|
|
554
|
+
- 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
555
|
|
|
444
556
|
## License
|
|
445
557
|
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
createContext,
|
|
5
|
+
use,
|
|
6
|
+
useCallback,
|
|
7
|
+
useId,
|
|
8
|
+
useMemo,
|
|
9
|
+
useState
|
|
10
|
+
} from "react";
|
|
11
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
12
|
const AccordionContext = createContext(null);
|
|
13
|
+
function getPartId(baseId, part, value) {
|
|
14
|
+
const key = value.replaceAll(
|
|
15
|
+
/[^\dA-Za-z-]/g,
|
|
16
|
+
(character) => `_${(character.codePointAt(0) ?? 0).toString(16)}_`
|
|
17
|
+
);
|
|
18
|
+
return `${baseId}-${part}-${key}`;
|
|
19
|
+
}
|
|
6
20
|
function useAccordionContext() {
|
|
7
21
|
const context = use(AccordionContext);
|
|
8
22
|
if (!context) {
|
|
@@ -16,6 +30,7 @@ function Accordion({
|
|
|
16
30
|
defaultValue,
|
|
17
31
|
type = "single"
|
|
18
32
|
}) {
|
|
33
|
+
const baseId = useId();
|
|
19
34
|
const [openItems, setOpenItems] = useState(() => {
|
|
20
35
|
if (!defaultValue) return /* @__PURE__ */ new Set();
|
|
21
36
|
if (Array.isArray(defaultValue)) return new Set(defaultValue);
|
|
@@ -39,8 +54,8 @@ function Accordion({
|
|
|
39
54
|
[type]
|
|
40
55
|
);
|
|
41
56
|
const contextValue = useMemo(
|
|
42
|
-
() => ({ openItems, toggleItem, type }),
|
|
43
|
-
[openItems, toggleItem, type]
|
|
57
|
+
() => ({ baseId, openItems, toggleItem, type }),
|
|
58
|
+
[baseId, openItems, toggleItem, type]
|
|
44
59
|
);
|
|
45
60
|
return /* @__PURE__ */ jsx(AccordionContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
46
61
|
"div",
|
|
@@ -76,18 +91,20 @@ function AccordionTrigger({
|
|
|
76
91
|
icon,
|
|
77
92
|
value
|
|
78
93
|
}) {
|
|
79
|
-
const { openItems, toggleItem } = useAccordionContext();
|
|
94
|
+
const { baseId, openItems, toggleItem } = useAccordionContext();
|
|
80
95
|
const isOpen = openItems.has(value);
|
|
81
96
|
return /* @__PURE__ */ jsxs(
|
|
82
97
|
"button",
|
|
83
98
|
{
|
|
99
|
+
"aria-controls": getPartId(baseId, "content", value),
|
|
84
100
|
"aria-expanded": isOpen,
|
|
85
101
|
className: cn(
|
|
86
102
|
"w-full flex items-center justify-between p-4 text-left font-medium transition-colors",
|
|
87
|
-
"hover:bg-
|
|
88
|
-
isOpen && "bg-
|
|
103
|
+
"hover:bg-secondary/50",
|
|
104
|
+
isOpen && "bg-secondary/30",
|
|
89
105
|
className
|
|
90
106
|
),
|
|
107
|
+
id: getPartId(baseId, "trigger", value),
|
|
91
108
|
onClick: () => {
|
|
92
109
|
toggleItem(value);
|
|
93
110
|
},
|
|
@@ -106,6 +123,7 @@ function AccordionTrigger({
|
|
|
106
123
|
) : /* @__PURE__ */ jsx(
|
|
107
124
|
"svg",
|
|
108
125
|
{
|
|
126
|
+
"aria-hidden": "true",
|
|
109
127
|
className: cn(
|
|
110
128
|
"size-4 flex-shrink-0 transition-transform duration-200",
|
|
111
129
|
isOpen && "rotate-180"
|
|
@@ -133,15 +151,19 @@ function AccordionContent({
|
|
|
133
151
|
className,
|
|
134
152
|
value
|
|
135
153
|
}) {
|
|
136
|
-
const { openItems } = useAccordionContext();
|
|
154
|
+
const { baseId, openItems } = useAccordionContext();
|
|
137
155
|
const isOpen = openItems.has(value);
|
|
138
156
|
return /* @__PURE__ */ jsx(
|
|
139
157
|
"div",
|
|
140
158
|
{
|
|
159
|
+
"aria-labelledby": getPartId(baseId, "trigger", value),
|
|
141
160
|
className: cn(
|
|
142
161
|
"overflow-hidden transition-all duration-200",
|
|
143
162
|
isOpen ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"
|
|
144
163
|
),
|
|
164
|
+
id: getPartId(baseId, "content", value),
|
|
165
|
+
inert: !isOpen,
|
|
166
|
+
role: "region",
|
|
145
167
|
children: /* @__PURE__ */ jsx(
|
|
146
168
|
"div",
|
|
147
169
|
{
|
|
@@ -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" });
|
|
@@ -289,7 +296,7 @@ const AgentStepProgress = ({
|
|
|
289
296
|
"aria-valuemax": 100,
|
|
290
297
|
"aria-valuemin": 0,
|
|
291
298
|
"aria-valuenow": clamped,
|
|
292
|
-
className: cn("h-1.5 w-full rounded-full bg-
|
|
299
|
+
className: cn("h-1.5 w-full rounded-full bg-secondary", className),
|
|
293
300
|
ref,
|
|
294
301
|
role: "progressbar",
|
|
295
302
|
...rest,
|
package/dist/components/{ai-source-citation → atoms/ai-source-citation}/ai-source-citation.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ExternalLink, Quote } from "lucide-react";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
4
|
const AISourceCitation = ({
|
|
5
5
|
className,
|
|
6
6
|
href,
|
|
@@ -15,7 +15,7 @@ const AISourceCitation = ({
|
|
|
15
15
|
"a",
|
|
16
16
|
{
|
|
17
17
|
className: cn(
|
|
18
|
-
"group inline-flex max-w-full flex-col gap-2 rounded-xl border border-border/70 bg-background px-3 py-2 text-left shadow-sm transition-colors hover:bg-
|
|
18
|
+
"group inline-flex max-w-full flex-col gap-2 rounded-xl border border-border/70 bg-background px-3 py-2 text-left shadow-sm transition-colors hover:bg-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
19
19
|
className
|
|
20
20
|
),
|
|
21
21
|
href,
|
|
@@ -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
|