@heyramzi/ui 2.24.0 → 3.1.0
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/COMPONENTS.md +13 -9
- package/README.md +5 -4
- package/dist/canvas/index.js +0 -1
- package/dist/canvas/pen/node-name.svelte.js +25 -0
- package/dist/canvas/ui/tools.js +7 -0
- package/dist/charts/chart-a11y.js +59 -0
- package/dist/charts/dashboard/index.js +0 -1
- package/dist/charts/dual-axis.js +38 -0
- package/dist/components/data-table/menu-key.js +19 -0
- package/dist/components/list-page/index.js +0 -1
- package/dist/components/theme/index.js +0 -1
- package/dist/components/toolbar/index.js +2 -4
- package/dist/components/work-parts/index.js +0 -1
- package/dist/editor/block-move.js +40 -0
- package/dist/editor/doc-blocks.js +2 -2
- package/dist/editor/extensions.js +14 -1
- package/dist/effects/border-beam/index.js +2 -0
- package/dist/effects/image-comparison/index.js +1 -0
- package/dist/effects/interactive-hover-button/index.js +1 -0
- package/dist/effects/magic-card/index.js +1 -0
- package/dist/effects/marquee/index.js +1 -0
- package/dist/effects/progressive-blur/index.js +1 -0
- package/dist/effects/spotlight/index.js +1 -0
- package/dist/effects/theme-toggle/index.js +1 -0
- package/dist/inbox/index.js +1 -1
- package/dist/lib/focus.js +15 -0
- package/dist/lib/tone.js +3 -4
- package/dist/shadcn/alert/alert-variants.js +1 -1
- package/dist/shadcn/attachment/context.js +10 -0
- package/dist/shadcn/dropdown-menu/menu-item.js +1 -1
- package/dist/shadcn/hooks/highlighter.js +58 -5
- package/dist/shadcn/sidebar/constants.js +1 -1
- package/dist/shadcn/sidebar/context.svelte.js +12 -1
- package/dist/slides/deck-controller.svelte.js +64 -34
- package/dist/slides/layout.js +3 -2
- package/dist/status/index.js +0 -1
- package/dist/work/index.js +0 -1
- package/dist/work/kanban-keyboard.js +10 -5
- package/package.json +44 -107
- package/scripts/svelte-dts.mjs +65 -0
- package/scripts/sync-shadcn.mjs +3 -1
- package/src/agents/agent-avatar.svelte +24 -12
- package/src/agents/agent-avatar.svelte.d.ts +6 -0
- package/src/agents/agent-avatar.test.ts +40 -0
- package/src/agents/agent-cast.svelte +83 -78
- package/src/agents/agent-cast.svelte.d.ts +20 -0
- package/src/agents/types.ts +1 -0
- package/src/ai/ai-button/AiButton.svelte +21 -10
- package/src/ai/ai-button/AiButton.svelte.d.ts +16 -0
- package/src/ai/ai-button/ai-button.svelte.test.ts +27 -0
- package/src/ai/confirmation/Confirmation.svelte +20 -4
- package/src/ai/confirmation/Confirmation.svelte.d.ts +12 -0
- package/src/ai/confirmation/ConfirmationAction.svelte +10 -3
- package/src/ai/confirmation/ConfirmationAction.svelte.d.ts +8 -0
- package/src/ai/confirmation/ConfirmationActions.svelte.d.ts +9 -0
- package/src/ai/confirmation/ConfirmationState.svelte.d.ts +10 -0
- package/src/ai/confirmation/ConfirmationTitle.svelte.d.ts +9 -0
- package/src/ai/confirmation/confirmation-focus.test.svelte +33 -0
- package/src/ai/confirmation/confirmation-focus.test.svelte.d.ts +8 -0
- package/src/ai/confirmation/confirmation-focus.test.ts +34 -0
- package/src/ai/confirmation/confirmation-parts.test.svelte.d.ts +7 -0
- package/src/ai/generation-progress/GenerationProgress.svelte +198 -171
- package/src/ai/generation-progress/GenerationProgress.svelte.d.ts +15 -0
- package/src/ai/generation-progress/generation-progress.test.ts +37 -0
- package/src/ai/loading-state/PixelLoader.svelte +41 -36
- package/src/ai/loading-state/PixelLoader.svelte.d.ts +13 -0
- package/src/ai/prompt-input/PromptInput.svelte +1 -1
- package/src/ai/prompt-input/PromptInput.svelte.d.ts +14 -0
- package/src/ai/prompt-input/PromptInputBody.svelte.d.ts +9 -0
- package/src/ai/prompt-input/PromptInputSubmit.svelte +3 -3
- package/src/ai/prompt-input/PromptInputSubmit.svelte.d.ts +19 -0
- package/src/ai/prompt-input/PromptInputTextarea.svelte +6 -1
- package/src/ai/prompt-input/PromptInputTextarea.svelte.d.ts +14 -0
- package/src/ai/prompt-input/PromptInputToolbar.svelte.d.ts +9 -0
- package/src/ai/prompt-input/prompt-input.test.ts +64 -0
- package/src/ai/reasoning/Reasoning.svelte.d.ts +10 -0
- package/src/ai/reasoning/ReasoningContent.svelte.d.ts +8 -0
- package/src/ai/reasoning/ReasoningTrigger.svelte +2 -1
- package/src/ai/reasoning/ReasoningTrigger.svelte.d.ts +8 -0
- package/src/ai/response/Response.css +23 -19
- package/src/ai/response/Response.svelte.d.ts +11 -0
- package/src/ai/suggestion/Suggestion.svelte.d.ts +10 -0
- package/src/ai/suggestion/Suggestions.svelte +5 -2
- package/src/ai/suggestion/Suggestions.svelte.d.ts +11 -0
- package/src/ai/typing-dots/TypingDots.css +27 -23
- package/src/ai/typing-dots/TypingDots.svelte.d.ts +12 -0
- package/src/ai/voice-waveform/VoiceWaveform.css +31 -27
- package/src/ai/voice-waveform/VoiceWaveform.svelte.d.ts +10 -0
- package/src/animations/avatar-group-hover.css +25 -21
- package/src/animations/card-tilt.css +71 -65
- package/src/animations/digit-pop-in.css +49 -40
- package/src/animations/dropdown.css +125 -107
- package/src/animations/input-clear-dissolve.css +69 -59
- package/src/animations/input-shake.css +55 -48
- package/src/animations/learn-more-hover.css +53 -43
- package/src/animations/like-button.css +74 -62
- package/src/animations/modal.css +83 -74
- package/src/animations/page-side-by-side.css +50 -42
- package/src/animations/plus-menu-morph.css +96 -87
- package/src/animations/resize.css +16 -13
- package/src/animations/shimmer-text.css +46 -40
- package/src/animations/spinning-counter.css +50 -43
- package/src/animations/success-check.css +69 -58
- package/src/animations/text-swap.css +35 -31
- package/src/animations/thinking-states.css +61 -54
- package/src/canvas/card/card-frame.svelte.d.ts +14 -0
- package/src/canvas/card/card.css +16 -10
- package/src/canvas/card/resize-handles.svelte.d.ts +11 -0
- package/src/canvas/chrome/chrome-zoom.svelte.d.ts +3 -0
- package/src/canvas/chrome/chrome.css +75 -69
- package/src/canvas/chrome/lock-badge.svelte.d.ts +8 -0
- package/src/canvas/chrome/side-handles.svelte.d.ts +6 -0
- package/src/canvas/chrome/size-chip.svelte.d.ts +3 -0
- package/src/canvas/chrome/snap-guides.svelte +16 -12
- package/src/canvas/chrome/snap-guides.svelte.d.ts +9 -0
- package/src/canvas/components/icons/ToolIcon.svelte.d.ts +8 -0
- package/src/canvas/components/shared/svg/PreviewSvg.svelte +9 -5
- package/src/canvas/components/shared/svg/PreviewSvg.svelte.d.ts +13 -0
- package/src/canvas/components/shared/svg/ShapeOutline.svelte +8 -4
- package/src/canvas/components/shared/svg/ShapeOutline.svelte.d.ts +15 -0
- package/src/canvas/components/shared/svg/StrokeNode.svelte +21 -11
- package/src/canvas/components/shared/svg/StrokeNode.svelte.d.ts +5 -0
- package/src/canvas/components/shared/svg/TextRule.svelte +8 -4
- package/src/canvas/components/shared/svg/TextRule.svelte.d.ts +9 -0
- package/src/canvas/edges/bend-handle.svelte +18 -14
- package/src/canvas/edges/bend-handle.svelte.d.ts +10 -0
- package/src/canvas/edges/edge-gradient.svelte.d.ts +16 -0
- package/src/canvas/edges/gradient-edge.svelte.d.ts +21 -0
- package/src/canvas/index.ts +0 -1
- package/src/canvas/lod/lod-switch.svelte +38 -33
- package/src/canvas/lod/lod-switch.svelte.d.ts +14 -0
- package/src/canvas/pen/PenField.svelte.d.ts +26 -0
- package/src/canvas/pen/PenOverlay.svelte +10 -6
- package/src/canvas/pen/PenOverlay.svelte.d.ts +23 -0
- package/src/canvas/pen/ShapeNode.svelte +6 -0
- package/src/canvas/pen/ShapeNode.svelte.d.ts +5 -0
- package/src/canvas/pen/TextNode.svelte +12 -2
- package/src/canvas/pen/TextNode.svelte.d.ts +5 -0
- package/src/canvas/pen/host-field.test.svelte.d.ts +6 -0
- package/src/canvas/pen/node-name.svelte.ts +32 -0
- package/src/canvas/pen/pen.css +69 -63
- package/src/canvas/screen/GlyphIcon.svelte.d.ts +9 -0
- package/src/canvas/screen/PartView.svelte +25 -25
- package/src/canvas/screen/PartView.svelte.d.ts +17 -0
- package/src/canvas/screen/ScreenBody.svelte +4 -4
- package/src/canvas/screen/ScreenBody.svelte.d.ts +11 -0
- package/src/canvas/screen/ScreenCard.svelte.d.ts +9 -0
- package/src/canvas/screen/screen.css +509 -505
- package/src/canvas/ui/CanvasToolbar.svelte.d.ts +30 -0
- package/src/canvas/ui/FrameLayer.svelte +18 -14
- package/src/canvas/ui/FrameLayer.svelte.d.ts +9 -0
- package/src/canvas/ui/PenLayer.svelte.d.ts +15 -0
- package/src/canvas/ui/StylePanel.svelte +41 -37
- package/src/canvas/ui/StylePanel.svelte.d.ts +32 -0
- package/src/canvas/ui/canvas-grid.svelte.d.ts +11 -0
- package/src/canvas/ui/canvas-ui.css +286 -277
- package/src/canvas/ui/tools.test.ts +39 -0
- package/src/canvas/ui/tools.ts +8 -0
- package/src/charts/README.md +2 -2
- package/src/charts/animated-value.css +6 -2
- package/src/charts/animated-value.svelte.d.ts +24 -0
- package/src/charts/area-chart.css +33 -21
- package/src/charts/area-chart.svelte +157 -27
- package/src/charts/area-chart.svelte.d.ts +69 -0
- package/src/charts/bar-chart.css +112 -102
- package/src/charts/bar-chart.svelte +39 -41
- package/src/charts/bar-chart.svelte.d.ts +64 -0
- package/src/charts/chart-a11y.css +23 -0
- package/src/charts/chart-a11y.test.ts +59 -0
- package/src/charts/chart-a11y.ts +92 -0
- package/src/charts/chart-plot.svelte +106 -0
- package/src/charts/chart-plot.svelte.d.ts +18 -0
- package/src/charts/chart-tokens.css +53 -51
- package/src/charts/charts.css +154 -142
- package/src/charts/crosshair.svelte.d.ts +7 -0
- package/src/charts/dashboard/dashboard-section.svelte +19 -3
- package/src/charts/dashboard/dashboard-section.svelte.d.ts +17 -0
- package/src/charts/dashboard/data-table.svelte +1 -1
- package/src/charts/dashboard/data-table.svelte.d.ts +86 -0
- package/src/charts/dashboard/index.ts +0 -1
- package/src/charts/dashboard/panel-grid.svelte +1 -1
- package/src/charts/dashboard/panel-grid.svelte.d.ts +14 -0
- package/src/charts/dashboard/period-filter.svelte.d.ts +37 -0
- package/src/charts/dashboard/rating-chip.svelte.d.ts +9 -0
- package/src/charts/dashboard/stat-band.svelte.d.ts +14 -0
- package/src/charts/dashboard/stat-tile.svelte +9 -5
- package/src/charts/dashboard/stat-tile.svelte.d.ts +62 -0
- package/src/charts/donut-chart.css +52 -46
- package/src/charts/donut-chart.svelte.d.ts +39 -0
- package/src/charts/dual-axis.test.ts +40 -0
- package/src/charts/dual-axis.ts +43 -0
- package/src/charts/edge-fade.svelte.d.ts +9 -0
- package/src/charts/figure.css +104 -91
- package/src/charts/figure.svelte.d.ts +40 -0
- package/src/charts/gauge-chart.css +74 -70
- package/src/charts/gauge-chart.svelte.d.ts +58 -0
- package/src/charts/hover-focus.svelte.d.ts +14 -0
- package/src/charts/legend.css +112 -108
- package/src/charts/legend.svelte +3 -3
- package/src/charts/legend.svelte.d.ts +30 -0
- package/src/charts/line-chart.css +27 -21
- package/src/charts/line-chart.svelte +61 -37
- package/src/charts/line-chart.svelte.d.ts +53 -0
- package/src/charts/number-chart.css +185 -163
- package/src/charts/number-chart.svelte +8 -4
- package/src/charts/number-chart.svelte.d.ts +58 -0
- package/src/charts/pop-value.svelte.d.ts +9 -0
- package/src/charts/primitives/chart-container.svelte.d.ts +9 -0
- package/src/charts/primitives/chart-style.svelte.d.ts +8 -0
- package/src/charts/primitives/chart-tooltip.svelte +1 -1
- package/src/charts/primitives/chart-tooltip.svelte.d.ts +26 -0
- package/src/charts/reference-line.css +18 -14
- package/src/charts/reference-line.svelte.d.ts +15 -0
- package/src/charts/reveal.svelte.d.ts +9 -0
- package/src/charts/ring-chart.css +82 -78
- package/src/charts/ring-chart.svelte +3 -3
- package/src/charts/ring-chart.svelte.d.ts +41 -0
- package/src/charts/sparkline.css +43 -34
- package/src/charts/sparkline.svelte +52 -8
- package/src/charts/sparkline.svelte.d.ts +51 -0
- package/src/charts/stat-card.css +110 -92
- package/src/charts/stat-card.svelte.d.ts +65 -0
- package/src/charts/time-series-chart.css +24 -19
- package/src/charts/time-series-chart.svelte +43 -10
- package/src/charts/time-series-chart.svelte.d.ts +30 -0
- package/src/charts/trend-pill.css +39 -32
- package/src/charts/trend-pill.svelte.d.ts +14 -0
- package/src/class-tokens.test.ts +34 -0
- package/src/components/chip/count-chip.svelte.d.ts +12 -0
- package/src/components/chip/tag-chip.svelte +6 -6
- package/src/components/chip/tag-chip.svelte.d.ts +20 -0
- package/src/components/copy/copy-button.svelte +22 -18
- package/src/components/copy/copy-button.svelte.d.ts +37 -0
- package/src/components/data-table/infinite-scroll.svelte.d.ts +37 -0
- package/src/components/data-table/menu-key.ts +22 -0
- package/src/components/data-table/pagination.svelte +36 -11
- package/src/components/data-table/pagination.svelte.d.ts +14 -0
- package/src/components/data-table/row-arrow.svelte.d.ts +6 -0
- package/src/components/data-table/row-context-menu.svelte +7 -6
- package/src/components/data-table/row-context-menu.svelte.d.ts +15 -0
- package/src/components/data-table/sortable-head.svelte +13 -18
- package/src/components/data-table/sortable-head.svelte.d.ts +38 -0
- package/src/components/data-table/table-skeleton.svelte.d.ts +18 -0
- package/src/components/docs/doc-page.svelte +8 -4
- package/src/components/docs/doc-page.svelte.d.ts +34 -0
- package/src/components/docs/on-this-page.svelte +109 -101
- package/src/components/docs/on-this-page.svelte.d.ts +17 -0
- package/src/components/field-row/field-row.svelte.d.ts +16 -0
- package/src/components/hold-to-confirm/hold-to-confirm.svelte +113 -66
- package/src/components/hold-to-confirm/hold-to-confirm.svelte.d.ts +22 -0
- package/src/components/hold-to-confirm/hold-to-confirm.test.ts +105 -0
- package/src/components/language-flag/language-flag.svelte +2 -1
- package/src/components/language-flag/language-flag.svelte.d.ts +11 -0
- package/src/components/list-page/detail-header.svelte.d.ts +15 -0
- package/src/components/list-page/detail-row.svelte.d.ts +9 -0
- package/src/components/list-page/detail-stack.svelte.d.ts +9 -0
- package/src/components/list-page/empty-state.svelte +16 -12
- package/src/components/list-page/empty-state.svelte.d.ts +23 -0
- package/src/components/list-page/filter-item.svelte +1 -1
- package/src/components/list-page/filter-item.svelte.d.ts +10 -0
- package/src/components/list-page/filter-popover.svelte +1 -1
- package/src/components/list-page/filter-popover.svelte.d.ts +20 -0
- package/src/components/list-page/grouped-list.svelte +1 -0
- package/src/components/list-page/grouped-list.svelte.d.ts +49 -0
- package/src/components/list-page/index.ts +0 -1
- package/src/components/list-page/list-page-shell.svelte.d.ts +31 -0
- package/src/components/list-page/master-detail-focus.test.ts +28 -0
- package/src/components/list-page/master-detail.svelte +57 -28
- package/src/components/list-page/master-detail.svelte.d.ts +18 -0
- package/src/components/list-page/master-detail.test.ts +1 -1
- package/src/components/list-page/notice-bar.svelte.d.ts +14 -0
- package/src/components/list-page/prev-next.svelte +7 -7
- package/src/components/list-page/prev-next.svelte.d.ts +14 -0
- package/src/components/list-page/rail-body.svelte.d.ts +8 -0
- package/src/components/list-page/rail-head.svelte.d.ts +10 -0
- package/src/components/list-page/rail-row.svelte.d.ts +18 -0
- package/src/components/mark/mark.svelte +2 -0
- package/src/components/mark/mark.svelte.d.ts +16 -0
- package/src/components/open-in/open-in.svelte +3 -3
- package/src/components/open-in/open-in.svelte.d.ts +35 -0
- package/src/components/picker/mark-picker.svelte +2 -2
- package/src/components/picker/mark-picker.svelte.d.ts +38 -0
- package/src/components/picker/picker.svelte +47 -3
- package/src/components/picker/picker.svelte.d.ts +59 -0
- package/src/components/picker/picker.test.ts +71 -0
- package/src/components/section-card/section-card.svelte.d.ts +13 -0
- package/src/components/section-header/section-header.svelte.d.ts +17 -0
- package/src/components/section-header/section-label.svelte.d.ts +10 -0
- package/src/components/segmented/animated-tabs.svelte.d.ts +61 -0
- package/src/components/segmented/section-runs.svelte.d.ts +23 -0
- package/src/components/segmented/segment.svelte +1 -1
- package/src/components/segmented/segment.svelte.d.ts +30 -0
- package/src/components/segmented/segmented-filter.svelte +4 -4
- package/src/components/segmented/segmented-filter.svelte.d.ts +43 -0
- package/src/components/segmented/segmented-nav.svelte.d.ts +17 -0
- package/src/components/segmented/segmented-overflow.svelte +1 -0
- package/src/components/segmented/segmented-overflow.svelte.d.ts +37 -0
- package/src/components/segmented/segmented-track.svelte +107 -103
- package/src/components/segmented/segmented-track.svelte.d.ts +19 -0
- package/src/components/star-rating-input/star-rating-input.svelte +151 -146
- package/src/components/star-rating-input/star-rating-input.svelte.d.ts +31 -0
- package/src/components/star-rating-input/star-rating-input.test.ts +90 -0
- package/src/components/svg/svg.svelte.d.ts +7 -0
- package/src/components/table-view/table-view.svelte +34 -28
- package/src/components/table-view/table-view.svelte.d.ts +96 -0
- package/src/components/table-view/table-view.test.ts +32 -6
- package/src/components/tags-input/tags-input.svelte +68 -16
- package/src/components/tags-input/tags-input.svelte.d.ts +40 -0
- package/src/components/tags-input/tags-input.test.ts +101 -0
- package/src/components/theme/index.ts +0 -1
- package/src/components/theme/theme-provider.svelte +8 -3
- package/src/components/theme/theme-provider.svelte.d.ts +19 -0
- package/src/components/theme/theme-provider.test.ts +5 -5
- package/src/components/toolbar/index.ts +2 -4
- package/src/components/toolbar/toolbar-search.svelte +4 -0
- package/src/components/toolbar/toolbar-search.svelte.d.ts +11 -0
- package/src/components/toolbar/toolbar.svelte +1 -1
- package/src/components/toolbar/toolbar.svelte.d.ts +47 -0
- package/src/components/toolbar/toolbar.test.ts +7 -0
- package/src/components/work-parts/group-head.svelte.d.ts +16 -0
- package/src/components/work-parts/index.ts +0 -1
- package/src/components/work-parts/property-row.svelte.d.ts +19 -0
- package/src/components/work-parts/work-card.svelte.d.ts +11 -0
- package/src/components/work-parts/work-well.svelte.d.ts +13 -0
- package/src/css-layers.test.ts +138 -0
- package/src/editor/README.md +1 -1
- package/src/editor/block-move.test.ts +58 -0
- package/src/editor/block-move.ts +52 -0
- package/src/editor/content.css +356 -352
- package/src/editor/doc-blocks.ts +3 -3
- package/src/editor/doc-page.css +328 -324
- package/src/editor/editor-toolbar.svelte +65 -50
- package/src/editor/editor-toolbar.svelte.d.ts +13 -0
- package/src/editor/editor.svelte +219 -158
- package/src/editor/editor.svelte.d.ts +27 -0
- package/src/editor/extensions.ts +18 -2
- package/src/editor/image-align.test.ts +35 -0
- package/src/editor/image-toolbar.svelte +73 -57
- package/src/editor/image-toolbar.svelte.d.ts +11 -0
- package/src/editor/inline-editor.svelte +27 -16
- package/src/editor/inline-editor.svelte.d.ts +40 -0
- package/src/editor/renderer.svelte.d.ts +11 -0
- package/src/editor/slash-menu.svelte +103 -88
- package/src/editor/slash-menu.svelte.d.ts +17 -0
- package/src/effects/animated-beam/AnimatedBeam.svelte.d.ts +4 -0
- package/src/effects/animated-beam/diagrams/BeamSvg.svelte.d.ts +22 -0
- package/src/effects/border-beam/BorderBeam.svelte.d.ts +4 -0
- package/src/effects/border-beam/index.ts +10 -0
- package/src/effects/image-comparison/ImageComparison.css +114 -97
- package/src/effects/image-comparison/ImageComparison.svelte.d.ts +44 -0
- package/src/effects/image-comparison/index.ts +4 -0
- package/src/effects/image-reveal/ImageReveal.css +14 -9
- package/src/effects/image-reveal/ImageReveal.svelte.d.ts +11 -0
- package/src/effects/interactive-hover-button/InteractiveHoverButton.svelte +234 -222
- package/src/effects/interactive-hover-button/InteractiveHoverButton.svelte.d.ts +16 -0
- package/src/effects/interactive-hover-button/index.ts +1 -0
- package/src/effects/magic-card/MagicCard.css +49 -45
- package/src/effects/magic-card/MagicCard.svelte.d.ts +15 -0
- package/src/effects/magic-card/index.ts +1 -0
- package/src/effects/marquee/Marquee.css +81 -62
- package/src/effects/marquee/Marquee.svelte +1 -0
- package/src/effects/marquee/Marquee.svelte.d.ts +27 -0
- package/src/effects/marquee/index.ts +1 -0
- package/src/effects/marquee/marquee.test.ts +24 -0
- package/src/effects/progressive-blur/ProgressiveBlur.css +13 -8
- package/src/effects/progressive-blur/ProgressiveBlur.svelte.d.ts +14 -0
- package/src/effects/progressive-blur/index.ts +1 -0
- package/src/effects/reveal/AnimatedGroup.svelte.d.ts +14 -0
- package/src/effects/reveal/InView.svelte.d.ts +12 -0
- package/src/effects/reveal/TextEffect.svelte.d.ts +16 -0
- package/src/effects/reveal/reveal.css +89 -73
- package/src/effects/shader-gradient/ShaderGradient.svelte.d.ts +4 -0
- package/src/effects/spotlight/Spotlight.css +8 -4
- package/src/effects/spotlight/Spotlight.svelte.d.ts +8 -0
- package/src/effects/spotlight/index.ts +1 -0
- package/src/effects/theme-toggle/ThemeToggle.css +165 -160
- package/src/effects/theme-toggle/ThemeToggle.svelte +12 -6
- package/src/effects/theme-toggle/ThemeToggle.svelte.d.ts +24 -0
- package/src/effects/theme-toggle/index.ts +1 -0
- package/src/icon-names.test.ts +88 -0
- package/src/inbox/index.ts +1 -2
- package/src/inbox/thread-inbox.svelte +1 -1
- package/src/inbox/thread-inbox.svelte.d.ts +52 -0
- package/src/lib/focus.ts +19 -0
- package/src/lib/live-region.svelte +14 -0
- package/src/lib/live-region.svelte.d.ts +5 -0
- package/src/lib/panel.svelte +2 -2
- package/src/lib/panel.svelte.d.ts +30 -0
- package/src/lib/tone.ts +3 -4
- package/src/modules.test.ts +119 -7
- package/src/onboarding/README.md +2 -2
- package/src/onboarding/onboarding-provider.svelte +1 -1
- package/src/onboarding/onboarding-provider.svelte.d.ts +17 -0
- package/src/onboarding/tour-card.svelte +10 -10
- package/src/onboarding/tour-card.svelte.d.ts +21 -0
- package/src/onboarding/tour-runner.svelte +62 -60
- package/src/onboarding/tour-runner.svelte.d.ts +11 -0
- package/src/panel/side-panel.svelte +4 -9
- package/src/panel/side-panel.svelte.d.ts +48 -0
- package/src/record/field-section.svelte.d.ts +19 -0
- package/src/record/info-list.svelte +4 -3
- package/src/record/info-list.svelte.d.ts +25 -0
- package/src/record/next-up.svelte.d.ts +14 -0
- package/src/record/project-list.svelte.d.ts +18 -0
- package/src/record/record-header.svelte.d.ts +27 -0
- package/src/record/record-rail.svelte.d.ts +23 -0
- package/src/record/record-shell.svelte.d.ts +48 -0
- package/src/record/record-stats.svelte.d.ts +10 -0
- package/src/record/record-timeline.svelte +3 -1
- package/src/record/record-timeline.svelte.d.ts +29 -0
- package/src/record/steps-rail.svelte +9 -9
- package/src/record/steps-rail.svelte.d.ts +23 -0
- package/src/record/where-we-are.svelte.d.ts +25 -0
- package/src/shadcn/accordion/accordion-content.svelte.d.ts +4 -0
- package/src/shadcn/accordion/accordion-item.svelte.d.ts +4 -0
- package/src/shadcn/accordion/accordion-trigger.svelte +1 -1
- package/src/shadcn/accordion/accordion-trigger.svelte.d.ts +12 -0
- package/src/shadcn/accordion/accordion.svelte.d.ts +4 -0
- package/src/shadcn/alert/alert-description.svelte.d.ts +5 -0
- package/src/shadcn/alert/alert-title.svelte.d.ts +5 -0
- package/src/shadcn/alert/alert-variants.ts +1 -1
- package/src/shadcn/alert/alert.svelte.d.ts +10 -0
- package/src/shadcn/alert-dialog/alert-dialog-action.svelte.d.ts +4 -0
- package/src/shadcn/alert-dialog/alert-dialog-cancel.svelte.d.ts +4 -0
- package/src/shadcn/alert-dialog/alert-dialog-content.svelte.d.ts +10 -0
- package/src/shadcn/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
- package/src/shadcn/alert-dialog/alert-dialog-footer.svelte.d.ts +9 -0
- package/src/shadcn/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
- package/src/shadcn/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
- package/src/shadcn/alert-dialog/alert-dialog-portal.svelte.d.ts +3 -0
- package/src/shadcn/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
- package/src/shadcn/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
- package/src/shadcn/alert-dialog/alert-dialog.svelte.d.ts +3 -0
- package/src/shadcn/attachment/attachment-action.svelte +7 -0
- package/src/shadcn/attachment/attachment-action.svelte.d.ts +4 -0
- package/src/shadcn/attachment/attachment-actions.svelte.d.ts +5 -0
- package/src/shadcn/attachment/attachment-content.svelte.d.ts +5 -0
- package/src/shadcn/attachment/attachment-description.svelte.d.ts +5 -0
- package/src/shadcn/attachment/attachment-group.svelte.d.ts +5 -0
- package/src/shadcn/attachment/attachment-media.svelte.d.ts +16 -0
- package/src/shadcn/attachment/attachment-title.svelte +3 -0
- package/src/shadcn/attachment/attachment-title.svelte.d.ts +5 -0
- package/src/shadcn/attachment/attachment-trigger.svelte +5 -0
- package/src/shadcn/attachment/attachment-trigger.svelte.d.ts +11 -0
- package/src/shadcn/attachment/attachment.svelte +4 -0
- package/src/shadcn/attachment/attachment.svelte.d.ts +25 -0
- package/src/shadcn/attachment/context.ts +13 -0
- package/src/shadcn/avatar/avatar-badge.svelte.d.ts +5 -0
- package/src/shadcn/avatar/avatar-fallback.svelte.d.ts +4 -0
- package/src/shadcn/avatar/avatar-group-count.svelte.d.ts +5 -0
- package/src/shadcn/avatar/avatar-group.svelte.d.ts +5 -0
- package/src/shadcn/avatar/avatar-image.svelte.d.ts +4 -0
- package/src/shadcn/avatar/avatar.svelte.d.ts +7 -0
- package/src/shadcn/badge/badge.svelte.d.ts +13 -0
- package/src/shadcn/breadcrumb/breadcrumb-ellipsis.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +5 -0
- package/src/shadcn/breadcrumb/breadcrumb-item.svelte.d.ts +5 -0
- package/src/shadcn/breadcrumb/breadcrumb-link.svelte.d.ts +11 -0
- package/src/shadcn/breadcrumb/breadcrumb-list.svelte.d.ts +5 -0
- package/src/shadcn/breadcrumb/breadcrumb-page.svelte.d.ts +5 -0
- package/src/shadcn/breadcrumb/breadcrumb-separator.svelte +1 -1
- package/src/shadcn/breadcrumb/breadcrumb-separator.svelte.d.ts +5 -0
- package/src/shadcn/breadcrumb/breadcrumb.svelte.d.ts +5 -0
- package/src/shadcn/bubble/bubble-content.svelte.d.ts +11 -0
- package/src/shadcn/bubble/bubble-group.svelte.d.ts +5 -0
- package/src/shadcn/bubble/bubble-reactions.svelte.d.ts +22 -0
- package/src/shadcn/bubble/bubble.svelte +1 -1
- package/src/shadcn/bubble/bubble.svelte.d.ts +22 -0
- package/src/shadcn/button/button.svelte +1 -1
- package/src/shadcn/button/button.svelte.d.ts +33 -0
- package/src/shadcn/calendar/calendar-caption.svelte.d.ts +19 -0
- package/src/shadcn/calendar/calendar-cell.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-day.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-grid-body.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-grid-head.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-grid-row.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-grid.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-head-cell.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-header.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-heading.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-month-select.svelte +1 -1
- package/src/shadcn/calendar/calendar-month-select.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar-month.svelte.d.ts +5 -0
- package/src/shadcn/calendar/calendar-months.svelte.d.ts +5 -0
- package/src/shadcn/calendar/calendar-nav.svelte.d.ts +5 -0
- package/src/shadcn/calendar/calendar-next-button.svelte +1 -1
- package/src/shadcn/calendar/calendar-next-button.svelte.d.ts +8 -0
- package/src/shadcn/calendar/calendar-prev-button.svelte +1 -1
- package/src/shadcn/calendar/calendar-prev-button.svelte.d.ts +8 -0
- package/src/shadcn/calendar/calendar-year-select.svelte +1 -1
- package/src/shadcn/calendar/calendar-year-select.svelte.d.ts +4 -0
- package/src/shadcn/calendar/calendar.svelte.d.ts +21 -0
- package/src/shadcn/card/card-action.svelte.d.ts +5 -0
- package/src/shadcn/card/card-content.svelte.d.ts +5 -0
- package/src/shadcn/card/card-description.svelte.d.ts +5 -0
- package/src/shadcn/card/card-footer.svelte.d.ts +5 -0
- package/src/shadcn/card/card-header.svelte.d.ts +5 -0
- package/src/shadcn/card/card-title.svelte.d.ts +8 -0
- package/src/shadcn/card/card.svelte.d.ts +8 -0
- package/src/shadcn/checkbox/checkbox.svelte +2 -2
- package/src/shadcn/checkbox/checkbox.svelte.d.ts +4 -0
- package/src/shadcn/code-block/code-block-actions.svelte.d.ts +5 -0
- package/src/shadcn/code-block/code-block-content.svelte +1 -1
- package/src/shadcn/code-block/code-block-content.svelte.d.ts +12 -0
- package/src/shadcn/code-block/code-block-copy-button.svelte.d.ts +3 -0
- package/src/shadcn/code-block/code-block-footer.svelte.d.ts +5 -0
- package/src/shadcn/code-block/code-block-header.svelte +1 -1
- package/src/shadcn/code-block/code-block-header.svelte.d.ts +5 -0
- package/src/shadcn/code-block/code-block-line.svelte +1 -1
- package/src/shadcn/code-block/code-block-line.svelte.d.ts +25 -0
- package/src/shadcn/code-block/code-block-title.svelte +1 -1
- package/src/shadcn/code-block/code-block-title.svelte.d.ts +5 -0
- package/src/shadcn/code-block/code-block.svelte +3 -2
- package/src/shadcn/code-block/code-block.svelte.d.ts +18 -0
- package/src/shadcn/collapsible/collapsible-content.svelte.d.ts +4 -0
- package/src/shadcn/collapsible/collapsible-trigger.svelte.d.ts +4 -0
- package/src/shadcn/collapsible/collapsible.svelte.d.ts +4 -0
- package/src/shadcn/command/command-dialog.svelte.d.ts +14 -0
- package/src/shadcn/command/command-empty.svelte.d.ts +4 -0
- package/src/shadcn/command/command-group.svelte.d.ts +7 -0
- package/src/shadcn/command/command-input.svelte +2 -2
- package/src/shadcn/command/command-input.svelte.d.ts +13 -0
- package/src/shadcn/command/command-item.svelte +1 -1
- package/src/shadcn/command/command-item.svelte.d.ts +4 -0
- package/src/shadcn/command/command-link-item.svelte.d.ts +4 -0
- package/src/shadcn/command/command-list.svelte +7 -1
- package/src/shadcn/command/command-list.svelte.d.ts +4 -0
- package/src/shadcn/command/command-loading.svelte.d.ts +4 -0
- package/src/shadcn/command/command-separator.svelte.d.ts +4 -0
- package/src/shadcn/command/command-shortcut.svelte.d.ts +5 -0
- package/src/shadcn/command/command.svelte.d.ts +8 -0
- package/src/shadcn/context-menu/context-menu-checkbox-item.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-checkbox-item.svelte.d.ts +10 -0
- package/src/shadcn/context-menu/context-menu-content.svelte.d.ts +10 -0
- package/src/shadcn/context-menu/context-menu-group-heading.svelte.d.ts +7 -0
- package/src/shadcn/context-menu/context-menu-group.svelte.d.ts +4 -0
- package/src/shadcn/context-menu/context-menu-item.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-item.svelte.d.ts +8 -0
- package/src/shadcn/context-menu/context-menu-label.svelte.d.ts +8 -0
- package/src/shadcn/context-menu/context-menu-portal.svelte.d.ts +3 -0
- package/src/shadcn/context-menu/context-menu-radio-group.svelte.d.ts +4 -0
- package/src/shadcn/context-menu/context-menu-radio-item.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-radio-item.svelte.d.ts +8 -0
- package/src/shadcn/context-menu/context-menu-separator.svelte.d.ts +4 -0
- package/src/shadcn/context-menu/context-menu-shortcut.svelte.d.ts +5 -0
- package/src/shadcn/context-menu/context-menu-sub-content.svelte.d.ts +4 -0
- package/src/shadcn/context-menu/context-menu-sub-trigger.svelte +1 -1
- package/src/shadcn/context-menu/context-menu-sub-trigger.svelte.d.ts +8 -0
- package/src/shadcn/context-menu/context-menu-sub.svelte.d.ts +3 -0
- package/src/shadcn/context-menu/context-menu-trigger.svelte.d.ts +4 -0
- package/src/shadcn/context-menu/context-menu.svelte.d.ts +3 -0
- package/src/shadcn/dialog/dialog-body.svelte.d.ts +5 -0
- package/src/shadcn/dialog/dialog-close.svelte.d.ts +4 -0
- package/src/shadcn/dialog/dialog-content.svelte +3 -4
- package/src/shadcn/dialog/dialog-content.svelte.d.ts +16 -0
- package/src/shadcn/dialog/dialog-description.svelte.d.ts +4 -0
- package/src/shadcn/dialog/dialog-footer.svelte.d.ts +15 -0
- package/src/shadcn/dialog/dialog-header.svelte.d.ts +5 -0
- package/src/shadcn/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/src/shadcn/dialog/dialog-portal.svelte.d.ts +3 -0
- package/src/shadcn/dialog/dialog-title.svelte.d.ts +4 -0
- package/src/shadcn/dialog/dialog-trigger.svelte.d.ts +4 -0
- package/src/shadcn/dialog/dialog.svelte.d.ts +3 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +4 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte +2 -2
- package/src/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +9 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-content.svelte.d.ts +10 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +8 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-group.svelte.d.ts +4 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-item.svelte.d.ts +8 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-portal.svelte.d.ts +3 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +4 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/src/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-sub.svelte.d.ts +3 -0
- package/src/shadcn/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +4 -0
- package/src/shadcn/dropdown-menu/dropdown-menu.svelte.d.ts +3 -0
- package/src/shadcn/dropdown-menu/menu-item.ts +1 -1
- package/src/shadcn/empty/empty-content.svelte.d.ts +5 -0
- package/src/shadcn/empty/empty-description.svelte.d.ts +5 -0
- package/src/shadcn/empty/empty-header.svelte.d.ts +5 -0
- package/src/shadcn/empty/empty-media.svelte.d.ts +16 -0
- package/src/shadcn/empty/empty-title.svelte.d.ts +5 -0
- package/src/shadcn/empty/empty.svelte.d.ts +5 -0
- package/src/shadcn/field/field-content.svelte.d.ts +5 -0
- package/src/shadcn/field/field-description.svelte.d.ts +5 -0
- package/src/shadcn/field/field-error.svelte +1 -1
- package/src/shadcn/field/field-error.svelte.d.ts +12 -0
- package/src/shadcn/field/field-group.svelte.d.ts +5 -0
- package/src/shadcn/field/field-label.svelte.d.ts +10 -0
- package/src/shadcn/field/field-legend.svelte.d.ts +8 -0
- package/src/shadcn/field/field-separator.svelte.d.ts +9 -0
- package/src/shadcn/field/field-set.svelte.d.ts +5 -0
- package/src/shadcn/field/field-title.svelte.d.ts +5 -0
- package/src/shadcn/field/field.svelte +1 -1
- package/src/shadcn/field/field.svelte.d.ts +17 -0
- package/src/shadcn/field/simple-field.svelte.d.ts +15 -0
- package/src/shadcn/hooks/highlighter.ts +51 -2
- package/src/shadcn/hover-card/hover-card-content.svelte.d.ts +10 -0
- package/src/shadcn/hover-card/hover-card-portal.svelte.d.ts +3 -0
- package/src/shadcn/hover-card/hover-card-trigger.svelte.d.ts +4 -0
- package/src/shadcn/hover-card/hover-card.svelte.d.ts +3 -0
- package/src/shadcn/input/input.svelte.d.ts +13 -0
- package/src/shadcn/input/secret-input.svelte +3 -3
- package/src/shadcn/input/secret-input.svelte.d.ts +9 -0
- package/src/shadcn/input-otp/input-otp-group.svelte.d.ts +5 -0
- package/src/shadcn/input-otp/input-otp-separator.svelte.d.ts +5 -0
- package/src/shadcn/input-otp/input-otp-slot.svelte.d.ts +4 -0
- package/src/shadcn/input-otp/input-otp.svelte.d.ts +4 -0
- package/src/shadcn/kbd/kbd-group.svelte.d.ts +5 -0
- package/src/shadcn/kbd/kbd.svelte.d.ts +5 -0
- package/src/shadcn/label/label.svelte.d.ts +4 -0
- package/src/shadcn/marker/marker-content.svelte.d.ts +5 -0
- package/src/shadcn/marker/marker-icon.svelte.d.ts +5 -0
- package/src/shadcn/marker/marker.svelte.d.ts +21 -0
- package/src/shadcn/message/message-avatar.svelte.d.ts +5 -0
- package/src/shadcn/message/message-content.svelte.d.ts +5 -0
- package/src/shadcn/message/message-footer.svelte.d.ts +5 -0
- package/src/shadcn/message/message-group.svelte.d.ts +5 -0
- package/src/shadcn/message/message-header.svelte.d.ts +5 -0
- package/src/shadcn/message/message.svelte.d.ts +8 -0
- package/src/shadcn/message-scroller/message-scroller-button.svelte +13 -1
- package/src/shadcn/message-scroller/message-scroller-button.svelte.d.ts +9 -0
- package/src/shadcn/message-scroller/message-scroller-content.svelte.d.ts +4 -0
- package/src/shadcn/message-scroller/message-scroller-item.svelte.d.ts +4 -0
- package/src/shadcn/message-scroller/message-scroller-provider.svelte.d.ts +4 -0
- package/src/shadcn/message-scroller/message-scroller-viewport.svelte.d.ts +4 -0
- package/src/shadcn/message-scroller/message-scroller.svelte.d.ts +4 -0
- package/src/shadcn/popover/popover-close.svelte.d.ts +4 -0
- package/src/shadcn/popover/popover-content.svelte.d.ts +10 -0
- package/src/shadcn/popover/popover-description.svelte.d.ts +5 -0
- package/src/shadcn/popover/popover-header.svelte.d.ts +5 -0
- package/src/shadcn/popover/popover-portal.svelte.d.ts +3 -0
- package/src/shadcn/popover/popover-title.svelte.d.ts +5 -0
- package/src/shadcn/popover/popover-trigger.svelte.d.ts +4 -0
- package/src/shadcn/popover/popover.svelte.d.ts +3 -0
- package/src/shadcn/progress/progress.svelte.d.ts +10 -0
- package/src/shadcn/radio-group/radio-group-item.svelte +1 -1
- package/src/shadcn/radio-group/radio-group-item.svelte.d.ts +4 -0
- package/src/shadcn/radio-group/radio-group.svelte.d.ts +4 -0
- package/src/shadcn/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -0
- package/src/shadcn/scroll-area/scroll-area.svelte +1 -0
- package/src/shadcn/scroll-area/scroll-area.svelte.d.ts +11 -0
- package/src/shadcn/select/select-content.svelte.d.ts +11 -0
- package/src/shadcn/select/select-group-heading.svelte.d.ts +10 -0
- package/src/shadcn/select/select-group.svelte.d.ts +4 -0
- package/src/shadcn/select/select-item.svelte +1 -1
- package/src/shadcn/select/select-item.svelte.d.ts +4 -0
- package/src/shadcn/select/select-label.svelte.d.ts +6 -0
- package/src/shadcn/select/select-portal.svelte.d.ts +3 -0
- package/src/shadcn/select/select-scroll-down-button.svelte +1 -1
- package/src/shadcn/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/src/shadcn/select/select-scroll-up-button.svelte +1 -1
- package/src/shadcn/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/src/shadcn/select/select-separator.svelte.d.ts +4 -0
- package/src/shadcn/select/select-trigger.svelte +1 -0
- package/src/shadcn/select/select-trigger.svelte.d.ts +8 -0
- package/src/shadcn/select/select.svelte.d.ts +3 -0
- package/src/shadcn/separator/separator.svelte.d.ts +4 -0
- package/src/shadcn/sheet/sheet-body.svelte.d.ts +5 -0
- package/src/shadcn/sheet/sheet-close.svelte.d.ts +4 -0
- package/src/shadcn/sheet/sheet-content.svelte +5 -7
- package/src/shadcn/sheet/sheet-content.svelte.d.ts +21 -0
- package/src/shadcn/sheet/sheet-description.svelte.d.ts +4 -0
- package/src/shadcn/sheet/sheet-footer.svelte.d.ts +12 -0
- package/src/shadcn/sheet/sheet-header.svelte.d.ts +5 -0
- package/src/shadcn/sheet/sheet-overlay.svelte.d.ts +4 -0
- package/src/shadcn/sheet/sheet-portal.svelte.d.ts +3 -0
- package/src/shadcn/sheet/sheet-title.svelte.d.ts +4 -0
- package/src/shadcn/sheet/sheet-trigger.svelte.d.ts +4 -0
- package/src/shadcn/sheet/sheet.css +47 -43
- package/src/shadcn/sheet/sheet.svelte.d.ts +3 -0
- package/src/shadcn/sidebar/constants.ts +1 -1
- package/src/shadcn/sidebar/context.svelte.ts +16 -1
- package/src/shadcn/sidebar/sidebar-content.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-footer.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-group-action.svelte.d.ts +11 -0
- package/src/shadcn/sidebar/sidebar-group-content.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-group-label.svelte.d.ts +11 -0
- package/src/shadcn/sidebar/sidebar-group.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-header.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-input.svelte.d.ts +11 -0
- package/src/shadcn/sidebar/sidebar-inset.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-menu-action.svelte.d.ts +12 -0
- package/src/shadcn/sidebar/sidebar-menu-badge.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-menu-button.svelte.d.ts +31 -0
- package/src/shadcn/sidebar/sidebar-menu-item.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-menu-skeleton.svelte.d.ts +8 -0
- package/src/shadcn/sidebar/sidebar-menu-sub-button.svelte.d.ts +13 -0
- package/src/shadcn/sidebar/sidebar-menu-sub-item.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-menu-sub.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-menu.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-provider.svelte +3 -0
- package/src/shadcn/sidebar/sidebar-provider.svelte.d.ts +9 -0
- package/src/shadcn/sidebar/sidebar-rail.svelte.d.ts +5 -0
- package/src/shadcn/sidebar/sidebar-separator.svelte.d.ts +13 -0
- package/src/shadcn/sidebar/sidebar-trigger.svelte +3 -1
- package/src/shadcn/sidebar/sidebar-trigger.svelte.d.ts +8 -0
- package/src/shadcn/sidebar/sidebar.svelte +3 -0
- package/src/shadcn/sidebar/sidebar.svelte.d.ts +10 -0
- package/src/shadcn/sidebar/sidebar.test.ts +69 -0
- package/src/shadcn/skeleton/skeleton-delay.svelte.d.ts +20 -0
- package/src/shadcn/skeleton/skeleton.svelte.d.ts +5 -0
- package/src/shadcn/slider/slider.svelte.d.ts +11 -0
- package/src/shadcn/sonner/sonner.svelte +4 -4
- package/src/shadcn/sonner/sonner.svelte.d.ts +4 -0
- package/src/shadcn/spinner/spinner.svelte.d.ts +4 -0
- package/src/shadcn/switch/switch.svelte.d.ts +8 -0
- package/src/shadcn/table/table-body.svelte.d.ts +5 -0
- package/src/shadcn/table/table-caption.svelte.d.ts +5 -0
- package/src/shadcn/table/table-cell.svelte +16 -12
- package/src/shadcn/table/table-cell.svelte.d.ts +9 -0
- package/src/shadcn/table/table-footer.svelte.d.ts +5 -0
- package/src/shadcn/table/table-head.svelte.d.ts +5 -0
- package/src/shadcn/table/table-header.svelte.d.ts +5 -0
- package/src/shadcn/table/table-row.svelte.d.ts +5 -0
- package/src/shadcn/table/table.svelte.d.ts +5 -0
- package/src/shadcn/tabs/tabs-content.svelte.d.ts +4 -0
- package/src/shadcn/tabs/tabs-list.svelte.d.ts +8 -0
- package/src/shadcn/tabs/tabs-trigger.svelte.d.ts +4 -0
- package/src/shadcn/tabs/tabs.svelte.d.ts +4 -0
- package/src/shadcn/textarea/textarea.svelte.d.ts +5 -0
- package/src/shadcn/toggle/toggle.svelte.d.ts +10 -0
- package/src/shadcn/toggle-group/toggle-group-item.svelte.d.ts +6 -0
- package/src/shadcn/toggle-group/toggle-group.svelte.d.ts +15 -0
- package/src/shadcn/tooltip/tooltip-content.svelte.d.ts +11 -0
- package/src/shadcn/tooltip/tooltip-portal.svelte.d.ts +4 -0
- package/src/shadcn/tooltip/tooltip-provider.svelte.d.ts +4 -0
- package/src/shadcn/tooltip/tooltip-trigger.svelte.d.ts +4 -0
- package/src/shadcn/tooltip/tooltip.svelte.d.ts +4 -0
- package/src/shadcn/trace/trace-collapsible-content.svelte.d.ts +4 -0
- package/src/shadcn/trace/trace-collapsible-trigger.svelte +2 -2
- package/src/shadcn/trace/trace-collapsible-trigger.svelte.d.ts +4 -0
- package/src/shadcn/trace/trace-collapsible.svelte.d.ts +4 -0
- package/src/shadcn/trace/trace-description.svelte +1 -1
- package/src/shadcn/trace/trace-description.svelte.d.ts +5 -0
- package/src/shadcn/trace/trace-icon.svelte.d.ts +5 -0
- package/src/shadcn/trace/trace-line.svelte +1 -1
- package/src/shadcn/trace/trace-line.svelte.d.ts +9 -0
- package/src/shadcn/trace/trace-title.svelte.d.ts +5 -0
- package/src/shadcn/trace/trace.svelte.d.ts +5 -0
- package/src/slides/Controls.svelte +96 -92
- package/src/slides/Controls.svelte.d.ts +10 -0
- package/src/slides/Deck.svelte +77 -60
- package/src/slides/Deck.svelte.d.ts +5 -0
- package/src/slides/Fragment.svelte +25 -21
- package/src/slides/Fragment.svelte.d.ts +15 -0
- package/src/slides/Overview.svelte +71 -60
- package/src/slides/Overview.svelte.d.ts +8 -0
- package/src/slides/Presenter.svelte +146 -139
- package/src/slides/Presenter.svelte.d.ts +8 -0
- package/src/slides/README.md +2 -2
- package/src/slides/Slide.svelte +74 -63
- package/src/slides/Slide.svelte.d.ts +18 -0
- package/src/slides/SlideList.svelte.d.ts +9 -0
- package/src/slides/deck-controller.svelte.ts +63 -36
- package/src/slides/deck-keys.test.ts +49 -0
- package/src/slides/layout.ts +3 -2
- package/src/slides/theme.css +227 -177
- package/src/slides/types.ts +2 -1
- package/src/status/index.ts +0 -1
- package/src/status/status-badge.svelte +7 -5
- package/src/status/status-badge.svelte.d.ts +28 -0
- package/src/status/status-badge.test.ts +44 -0
- package/src/status/status-dot.svelte +54 -49
- package/src/status/status-dot.svelte.d.ts +16 -0
- package/src/status/status-icon.svelte +19 -6
- package/src/status/status-icon.svelte.d.ts +14 -0
- package/src/status/status-pill.svelte.d.ts +13 -0
- package/src/test-setup.test.ts +5 -0
- package/src/thread/thread-body.svelte.d.ts +9 -0
- package/src/thread/thread-events.svelte.d.ts +8 -0
- package/src/thread/thread-focus.svelte.test.ts +90 -0
- package/src/thread/thread.svelte +70 -15
- package/src/thread/thread.svelte.d.ts +40 -0
- package/src/tokens/base.css +47 -45
- package/src/tokens/design.css +8 -0
- package/src/tokens/index.css +3 -0
- package/src/triage/triage-plan.svelte +42 -9
- package/src/triage/triage-plan.svelte.d.ts +28 -0
- package/src/triage/triage-queue.svelte +61 -23
- package/src/triage/triage-queue.svelte.d.ts +41 -0
- package/src/triage/triage-task.svelte +11 -3
- package/src/triage/triage-task.svelte.d.ts +22 -0
- package/src/triage/triage.svelte.test.ts +130 -0
- package/src/work/README.md +8 -7
- package/src/work/detail/task-chip.svelte.d.ts +10 -0
- package/src/work/detail/task-detail.svelte.d.ts +36 -0
- package/src/work/docs/doc-editor-page.svelte +20 -16
- package/src/work/docs/doc-editor-page.svelte.d.ts +31 -0
- package/src/work/docs/doc-menu.svelte +44 -38
- package/src/work/docs/doc-menu.svelte.d.ts +35 -0
- package/src/work/docs/edited-chip.svelte +9 -9
- package/src/work/docs/edited-chip.svelte.d.ts +26 -0
- package/src/work/gantt/gantt-bar.svelte +87 -78
- package/src/work/gantt/gantt-bar.svelte.d.ts +29 -0
- package/src/work/gantt/gantt-grid.svelte +30 -26
- package/src/work/gantt/gantt-grid.svelte.d.ts +14 -0
- package/src/work/gantt/gantt-group-row.svelte +12 -8
- package/src/work/gantt/gantt-group-row.svelte.d.ts +12 -0
- package/src/work/gantt/gantt-header.svelte +2 -4
- package/src/work/gantt/gantt-header.svelte.d.ts +17 -0
- package/src/work/gantt/gantt-task-row.svelte +43 -36
- package/src/work/gantt/gantt-task-row.svelte.d.ts +53 -0
- package/src/work/gantt/gantt.css +14 -10
- package/src/work/gantt/gantt.test.ts +14 -2
- package/src/work/inbox/inbox-card.svelte +13 -16
- package/src/work/inbox/inbox-card.svelte.d.ts +22 -0
- package/src/work/inbox/inbox-draft.svelte +3 -3
- package/src/work/inbox/inbox-draft.svelte.d.ts +18 -0
- package/src/work/inbox/inbox-trace.svelte.d.ts +11 -0
- package/src/work/index.ts +0 -24
- package/src/work/kanban-board.svelte +103 -66
- package/src/work/kanban-board.svelte.d.ts +107 -0
- package/src/work/kanban-board.svelte.test.ts +89 -0
- package/src/work/kanban-column-head.svelte.d.ts +40 -0
- package/src/work/kanban-column.svelte +45 -43
- package/src/work/kanban-column.svelte.d.ts +20 -0
- package/src/work/kanban-fold-chevron.svelte +15 -11
- package/src/work/kanban-fold-chevron.svelte.d.ts +8 -0
- package/src/work/kanban-hidden-rail.svelte +2 -1
- package/src/work/kanban-hidden-rail.svelte.d.ts +39 -0
- package/src/work/kanban-keyboard.ts +8 -6
- package/src/work/task-gantt.svelte +18 -4
- package/src/work/task-gantt.svelte.d.ts +85 -0
- package/src/work/task-list.svelte +166 -116
- package/src/work/task-list.svelte.d.ts +81 -0
- package/src/work/task-list.svelte.test.ts +113 -0
- package/src/work/time/time-chip.svelte +2 -4
- package/src/work/time/time-chip.svelte.d.ts +14 -0
- package/src/work/time/time-dot.svelte +30 -25
- package/src/work/time/time-dot.svelte.d.ts +9 -0
- package/src/work/time/time-ring.svelte +15 -11
- package/src/work/time/time-ring.svelte.d.ts +18 -0
- package/src/work/time/time-tracker.svelte +49 -44
- package/src/work/time/time-tracker.svelte.d.ts +59 -0
- package/dist/ai/index.js +0 -40
- package/dist/index.js +0 -18
- package/dist/record/demo-data.js +0 -485
- package/dist/test-setup.js +0 -30
- package/src/agents/demo.svelte +0 -137
- package/src/ai/index.ts +0 -101
- package/src/design/index.css +0 -215
- package/src/design/polish.css +0 -150
- package/src/index.ts +0 -53
- package/src/onboarding/demo.svelte +0 -105
- package/src/record/demo-data.ts +0 -352
- package/src/record/record-demo.svelte +0 -342
- package/src/slides/demo-slides.svelte +0 -382
- package/src/slides/demo.svelte +0 -180
- package/src/test-setup.ts +0 -34
- package/src/work/demo.svelte +0 -561
- package/src/work/detail/detail-demo.svelte +0 -258
- package/src/work/docs/docs-demo.svelte +0 -227
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { createRawSnippet, flushSync, mount, unmount } from "svelte";
|
|
2
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";
|
|
3
|
+
import HoldToConfirm from "./hold-to-confirm.svelte";
|
|
4
|
+
|
|
5
|
+
const text = (label: string) => createRawSnippet(() => ({ render: () => `<span>${label}</span>` }));
|
|
6
|
+
|
|
7
|
+
function render(duration = 800) {
|
|
8
|
+
const onConfirm = vi.fn();
|
|
9
|
+
const target = document.createElement("div");
|
|
10
|
+
document.body.appendChild(target);
|
|
11
|
+
const app = mount(HoldToConfirm, {
|
|
12
|
+
target,
|
|
13
|
+
props: { duration, onConfirm, idle: text("Hold to delete"), holding: text("Deleting") },
|
|
14
|
+
});
|
|
15
|
+
flushSync();
|
|
16
|
+
const button = target.querySelector("button");
|
|
17
|
+
if (!button) throw new Error("HoldToConfirm rendered no button");
|
|
18
|
+
const key = (type: "keydown" | "keyup", k: string, repeat = false) => {
|
|
19
|
+
button.dispatchEvent(new KeyboardEvent(type, { key: k, repeat, bubbles: true }));
|
|
20
|
+
flushSync();
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
button,
|
|
24
|
+
onConfirm,
|
|
25
|
+
key,
|
|
26
|
+
done: () => {
|
|
27
|
+
void unmount(app);
|
|
28
|
+
target.remove();
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// The OS repeats keydown about every 33ms while a key is held. The 10 Nov audit saw Space stall at 6%.
|
|
34
|
+
async function holdWithRepeat(key: ReturnType<typeof render>["key"], k: string, ms: number) {
|
|
35
|
+
key("keydown", k);
|
|
36
|
+
for (let t = 33; t <= ms; t += 33) {
|
|
37
|
+
await vi.advanceTimersByTimeAsync(33);
|
|
38
|
+
key("keydown", k, true);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
describe("HoldToConfirm keyboard", () => {
|
|
43
|
+
beforeEach(() =>
|
|
44
|
+
vi.useFakeTimers({
|
|
45
|
+
toFake: ["requestAnimationFrame", "cancelAnimationFrame", "performance", "setTimeout"],
|
|
46
|
+
}),
|
|
47
|
+
);
|
|
48
|
+
afterEach(() => vi.useRealTimers());
|
|
49
|
+
|
|
50
|
+
for (const k of [" ", "Enter"]) {
|
|
51
|
+
it(`confirms when ${k === " " ? "Space" : k} is held through key repeat`, async () => {
|
|
52
|
+
const { onConfirm, key, done } = render();
|
|
53
|
+
await holdWithRepeat(key, k, 900);
|
|
54
|
+
expect(onConfirm).toHaveBeenCalledTimes(1);
|
|
55
|
+
key("keyup", k);
|
|
56
|
+
done();
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
it("cancels when the key is let go early", async () => {
|
|
61
|
+
const { button, onConfirm, key, done } = render();
|
|
62
|
+
await holdWithRepeat(key, " ", 400);
|
|
63
|
+
key("keyup", " ");
|
|
64
|
+
await vi.advanceTimersByTimeAsync(800);
|
|
65
|
+
expect(onConfirm).not.toHaveBeenCalled();
|
|
66
|
+
expect(button.dataset.holding).toBe("false");
|
|
67
|
+
done();
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// 10 Nov 2026: a screen reader's activate presses and lets go at once, so the hold never completed.
|
|
71
|
+
it("arms on an assistive-tech click and confirms on a second one", async () => {
|
|
72
|
+
const { button, onConfirm, done } = render();
|
|
73
|
+
const status = button.parentElement?.querySelector('[role="status"]');
|
|
74
|
+
expect(status?.textContent).toBe("");
|
|
75
|
+
button.dispatchEvent(new MouseEvent("click", { detail: 0, bubbles: true }));
|
|
76
|
+
flushSync();
|
|
77
|
+
expect(onConfirm).not.toHaveBeenCalled();
|
|
78
|
+
expect(status?.textContent).toBe("Press again to confirm");
|
|
79
|
+
button.dispatchEvent(new MouseEvent("click", { detail: 0, bubbles: true }));
|
|
80
|
+
flushSync();
|
|
81
|
+
expect(onConfirm).toHaveBeenCalledTimes(1);
|
|
82
|
+
done();
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it("lets the armed state lapse and ignores pointer clicks", async () => {
|
|
86
|
+
const { button, onConfirm, done } = render();
|
|
87
|
+
button.dispatchEvent(new MouseEvent("click", { detail: 0, bubbles: true }));
|
|
88
|
+
await vi.advanceTimersByTimeAsync(6000);
|
|
89
|
+
button.dispatchEvent(new MouseEvent("click", { detail: 0, bubbles: true }));
|
|
90
|
+
button.dispatchEvent(new MouseEvent("click", { detail: 1, bubbles: true }));
|
|
91
|
+
flushSync();
|
|
92
|
+
expect(onConfirm).not.toHaveBeenCalled();
|
|
93
|
+
done();
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it("cancels when focus leaves mid-hold", async () => {
|
|
97
|
+
const { button, onConfirm, key, done } = render();
|
|
98
|
+
await holdWithRepeat(key, "Enter", 300);
|
|
99
|
+
button.dispatchEvent(new FocusEvent("blur"));
|
|
100
|
+
flushSync();
|
|
101
|
+
await vi.advanceTimersByTimeAsync(800);
|
|
102
|
+
expect(onConfirm).not.toHaveBeenCalled();
|
|
103
|
+
done();
|
|
104
|
+
});
|
|
105
|
+
});
|
|
@@ -35,11 +35,12 @@
|
|
|
35
35
|
<!-- =========================== -->
|
|
36
36
|
<!-- MARKUP -->
|
|
37
37
|
<!-- =========================== -->
|
|
38
|
+
<!-- With the label shown, the flag is decorative, or the code is read twice. -->
|
|
38
39
|
{#if src}
|
|
39
40
|
<span class={cn("inline-flex items-center gap-1.5", className)}>
|
|
40
41
|
<img
|
|
41
42
|
{src}
|
|
42
|
-
alt={language.toUpperCase()}
|
|
43
|
+
alt={showLabel ? "" : language.toUpperCase()}
|
|
43
44
|
class={cn("shrink-0 rounded-sm", sizeClass)}
|
|
44
45
|
loading="lazy"
|
|
45
46
|
/>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
language: string;
|
|
3
|
+
/** Language code to image URL, for another set or path. */
|
|
4
|
+
flags?: Record<string, string>;
|
|
5
|
+
size?: "sm" | "md";
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
class?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
11
|
+
export default $$Component;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string;
|
|
4
|
+
badge?: Snippet;
|
|
5
|
+
leading?: Snippet;
|
|
6
|
+
meta?: Array<string | null | undefined | false>;
|
|
7
|
+
note?: string | null;
|
|
8
|
+
actions?: Snippet;
|
|
9
|
+
corner?: Snippet;
|
|
10
|
+
children?: Snippet;
|
|
11
|
+
class?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
14
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
15
|
+
export default $$Component;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
interface Props {
|
|
3
|
+
muted?: boolean;
|
|
4
|
+
children: Snippet;
|
|
5
|
+
class?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
9
|
+
export default $$Component;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
interface Props {
|
|
3
|
+
fill?: boolean;
|
|
4
|
+
children: Snippet;
|
|
5
|
+
class?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
9
|
+
export default $$Component;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<Empty.Header class={look.header}>
|
|
120
120
|
{#if Icon && !look.icon}
|
|
121
121
|
<Empty.Media class="mb-3 size-12 rounded-xl bg-card text-foreground shadow-card">
|
|
122
|
-
<Icon weight={iconWeight} class="size-6" />
|
|
122
|
+
<Icon aria-hidden="true" weight={iconWeight} class="size-6" />
|
|
123
123
|
</Empty.Media>
|
|
124
124
|
{/if}
|
|
125
125
|
<Empty.Title
|
|
@@ -147,10 +147,21 @@
|
|
|
147
147
|
<!-- STYLE -->
|
|
148
148
|
<!-- =========================== -->
|
|
149
149
|
<style>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
@layer theme, base, components, utilities;
|
|
151
|
+
|
|
152
|
+
@layer components {
|
|
153
|
+
/* Never `:nth-child` here: one such rule makes every DOM insert on the page restyle its later siblings. */
|
|
154
|
+
:global(.t-empty) > :global(*) {
|
|
155
|
+
animation: t-empty-in var(--duration-slow) var(--ease-smooth-out) both;
|
|
156
|
+
animation-delay: calc((sibling-index() - 1) * var(--duration-stagger));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (prefers-reduced-motion: reduce) {
|
|
160
|
+
:global(.t-empty) > :global(*) {
|
|
161
|
+
animation-name: t-empty-fade;
|
|
162
|
+
animation-delay: 0s;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
154
165
|
}
|
|
155
166
|
|
|
156
167
|
@keyframes -global-t-empty-in {
|
|
@@ -169,11 +180,4 @@
|
|
|
169
180
|
opacity: 0;
|
|
170
181
|
}
|
|
171
182
|
}
|
|
172
|
-
|
|
173
|
-
@media (prefers-reduced-motion: reduce) {
|
|
174
|
-
:global(.t-empty) > :global(*) {
|
|
175
|
-
animation-name: t-empty-fade;
|
|
176
|
-
animation-delay: 0s;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
183
|
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
import type { PhosphorIcon, IconWeight } from "../../lib/icon-types.js";
|
|
3
|
+
interface Props {
|
|
4
|
+
icon?: PhosphorIcon;
|
|
5
|
+
iconWeight?: IconWeight;
|
|
6
|
+
/** Replaces the muted colour of a bare icon. Ignored by the tile, which stays foreground. */
|
|
7
|
+
iconClass?: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
actionLabel?: string;
|
|
11
|
+
actionHref?: string;
|
|
12
|
+
onAction?: () => void;
|
|
13
|
+
/** Several ways out, drawn in one row after the single action. */
|
|
14
|
+
actions?: Snippet;
|
|
15
|
+
/** `card` fills the white panel; `dashed` frames a whole dashboard section. */
|
|
16
|
+
surface?: "plain" | "card" | "dashed";
|
|
17
|
+
/** `sm` fits a 280px rail: a bare icon and one line of small type. */
|
|
18
|
+
size?: "default" | "sm";
|
|
19
|
+
class?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
22
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
23
|
+
export default $$Component;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
interface Props {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onclick: () => void;
|
|
5
|
+
variant?: "checkbox" | "radio";
|
|
6
|
+
children: Snippet;
|
|
7
|
+
}
|
|
8
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
10
|
+
export default $$Component;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<!-- =========================== -->
|
|
66
66
|
<Popover.Root bind:open>
|
|
67
67
|
<Popover.Trigger class={toolbarTriggerClass({ active: isActive, className: triggerClass })}>
|
|
68
|
-
<IconComponent class="size-3.5" />
|
|
68
|
+
<IconComponent aria-hidden="true" class="size-3.5" />
|
|
69
69
|
<span>{label}</span>
|
|
70
70
|
{#if trailing}
|
|
71
71
|
{@render trailing()}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
import type { PhosphorIcon } from "../../lib/icon-types.js";
|
|
3
|
+
interface Props {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: PhosphorIcon;
|
|
6
|
+
count?: number;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
onClear?: () => void;
|
|
9
|
+
align?: "start" | "center" | "end";
|
|
10
|
+
width?: `w-${string}`;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
clearLabel?: string;
|
|
13
|
+
triggerClass?: string;
|
|
14
|
+
contentClass?: string;
|
|
15
|
+
children: Snippet;
|
|
16
|
+
trailing?: Snippet;
|
|
17
|
+
}
|
|
18
|
+
declare const $$Component: import("svelte").Component<Props, {}, "open">;
|
|
19
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
20
|
+
export default $$Component;
|
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
<!-- The accordion chevron: it turns on the fast step and holds still under
|
|
104
104
|
reduced motion, where the open state is aria-expanded and the rows. -->
|
|
105
105
|
<CaretDown
|
|
106
|
+
aria-hidden="true"
|
|
106
107
|
class={cn(
|
|
107
108
|
"size-3 shrink-0 text-muted-foreground transition-transform duration-fast ease-smooth-out motion-reduce:transition-none",
|
|
108
109
|
isCollapsed && "-rotate-90",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type Snippet } from "svelte";
|
|
2
|
+
declare function $$render<TGroup>(): {
|
|
3
|
+
props: {
|
|
4
|
+
groups: TGroup[];
|
|
5
|
+
getKey: (group: TGroup) => string;
|
|
6
|
+
defaultCollapsed?: string[];
|
|
7
|
+
/** WHY: a page that drives its own keyboard cursor has to know which rows
|
|
8
|
+
are on screen, and the collapsed set is the only thing that says so. */
|
|
9
|
+
onCollapsedChange?: (keys: string[]) => void;
|
|
10
|
+
header: Snippet<[TGroup, {
|
|
11
|
+
collapsed: boolean;
|
|
12
|
+
}]>;
|
|
13
|
+
/** Controls beside the header, outside its toggle button so a click on
|
|
14
|
+
one doesn't collapse the group. Shown on hover of the header row. */
|
|
15
|
+
actions?: Snippet<[TGroup]>;
|
|
16
|
+
rows: Snippet<[TGroup]>;
|
|
17
|
+
/** A count beside the header, in a small pill. Leave it out when the header draws its own. */
|
|
18
|
+
getCount?: (group: TGroup) => number;
|
|
19
|
+
/** Shows an add button at the end of the header row. */
|
|
20
|
+
onAdd?: (group: TGroup) => void;
|
|
21
|
+
/** The add button's accessible name. */
|
|
22
|
+
addLabel?: string;
|
|
23
|
+
class?: string;
|
|
24
|
+
onGroupDragOver?: (e: DragEvent, group: TGroup) => void;
|
|
25
|
+
onGroupDragLeave?: (e: DragEvent) => void;
|
|
26
|
+
onGroupDrop?: (e: DragEvent, group: TGroup) => void;
|
|
27
|
+
};
|
|
28
|
+
exports: {};
|
|
29
|
+
bindings: "";
|
|
30
|
+
slots: {};
|
|
31
|
+
events: {};
|
|
32
|
+
};
|
|
33
|
+
declare class __sveltets_Render<TGroup> {
|
|
34
|
+
props(): ReturnType<typeof $$render<TGroup>>['props'];
|
|
35
|
+
events(): ReturnType<typeof $$render<TGroup>>['events'];
|
|
36
|
+
slots(): ReturnType<typeof $$render<TGroup>>['slots'];
|
|
37
|
+
bindings(): "";
|
|
38
|
+
exports(): {};
|
|
39
|
+
}
|
|
40
|
+
interface $$IsomorphicComponent {
|
|
41
|
+
new <TGroup>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<TGroup>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<TGroup>['props']>, ReturnType<__sveltets_Render<TGroup>['events']>, ReturnType<__sveltets_Render<TGroup>['slots']>> & {
|
|
42
|
+
$$bindings?: ReturnType<__sveltets_Render<TGroup>['bindings']>;
|
|
43
|
+
} & ReturnType<__sveltets_Render<TGroup>['exports']>;
|
|
44
|
+
<TGroup>(internal: unknown, props: ReturnType<__sveltets_Render<TGroup>['props']> & {}): ReturnType<__sveltets_Render<TGroup>['exports']>;
|
|
45
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
46
|
+
}
|
|
47
|
+
declare const $$Component: $$IsomorphicComponent;
|
|
48
|
+
type $$Component<TGroup> = InstanceType<typeof $$Component<TGroup>>;
|
|
49
|
+
export default $$Component;
|
|
@@ -10,7 +10,6 @@ export { default as NoticeBar } from "./notice-bar.svelte";
|
|
|
10
10
|
export { default as RailBody } from "./rail-body.svelte";
|
|
11
11
|
export { default as RailHead } from "./rail-head.svelte";
|
|
12
12
|
export { default as RailRow } from "./rail-row.svelte";
|
|
13
|
-
export { default as SectionLabel } from "../section-header/section-label.svelte";
|
|
14
13
|
export { queueRailClass, queueRailWidth } from "./queue-rail.js";
|
|
15
14
|
export { default as FilterPopover } from "./filter-popover.svelte";
|
|
16
15
|
export { filterSectionClass } from "./filter-section.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
import type { PhosphorIcon, IconWeight } from "../../lib/icon-types.js";
|
|
3
|
+
type EmptyConfig = {
|
|
4
|
+
icon?: PhosphorIcon;
|
|
5
|
+
iconWeight?: IconWeight;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
onAction?: () => void;
|
|
10
|
+
actionHref?: string;
|
|
11
|
+
};
|
|
12
|
+
interface Props {
|
|
13
|
+
isEmpty?: boolean;
|
|
14
|
+
emptyState?: EmptyConfig;
|
|
15
|
+
hideToolbarWhenEmpty?: boolean;
|
|
16
|
+
maxWidth?: string | false;
|
|
17
|
+
fillHeight?: boolean;
|
|
18
|
+
containerClass?: string;
|
|
19
|
+
toolbarClass?: string;
|
|
20
|
+
tabs?: Snippet;
|
|
21
|
+
search?: Snippet;
|
|
22
|
+
filters?: Snippet;
|
|
23
|
+
rightActions?: Snippet;
|
|
24
|
+
summary?: Snippet;
|
|
25
|
+
content?: Snippet;
|
|
26
|
+
empty?: Snippet;
|
|
27
|
+
extra?: Snippet;
|
|
28
|
+
}
|
|
29
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
30
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
31
|
+
export default $$Component;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRawSnippet, flushSync, mount, tick, unmount } from "svelte";
|
|
2
|
+
import { describe, expect, it } from "vite-plus/test";
|
|
3
|
+
import MasterDetail from "./master-detail.svelte";
|
|
4
|
+
|
|
5
|
+
const rail = createRawSnippet(() => ({
|
|
6
|
+
render: () => `<div><button>Ada</button><button aria-current="page">Grace</button></div>`,
|
|
7
|
+
}));
|
|
8
|
+
const detail = createRawSnippet(() => ({ render: () => `<p>Grace's record</p>` }));
|
|
9
|
+
|
|
10
|
+
describe("MasterDetail focus while stacked", () => {
|
|
11
|
+
it("puts focus back on the list's current row when Back is pressed", async () => {
|
|
12
|
+
const target = document.createElement("div");
|
|
13
|
+
document.body.appendChild(target);
|
|
14
|
+
const app = mount(MasterDetail, { target, props: { rail, detail, pane: "detail" } });
|
|
15
|
+
flushSync();
|
|
16
|
+
|
|
17
|
+
const back = [...target.querySelectorAll("button")].find(
|
|
18
|
+
(b) => b.textContent?.trim() === "Back to the list",
|
|
19
|
+
);
|
|
20
|
+
back?.focus();
|
|
21
|
+
back?.click();
|
|
22
|
+
for (let i = 0; i < 3; i++) await tick();
|
|
23
|
+
|
|
24
|
+
expect(document.activeElement?.textContent).toBe("Grace");
|
|
25
|
+
void unmount(app);
|
|
26
|
+
target.remove();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
// IMPORTS
|
|
4
4
|
// =========================
|
|
5
5
|
import type { Snippet } from "svelte";
|
|
6
|
-
import { setContext } from "svelte";
|
|
6
|
+
import { setContext, tick } from "svelte";
|
|
7
|
+
import { focusAfterRender } from "../../lib/focus.js";
|
|
7
8
|
import { CaretLeft } from "phosphor-svelte";
|
|
8
9
|
import { cn } from "../../lib/utils.js";
|
|
9
10
|
import { Button } from "../../shadcn/button/index.js";
|
|
@@ -62,6 +63,14 @@
|
|
|
62
63
|
class: className,
|
|
63
64
|
}: Props = $props();
|
|
64
65
|
|
|
66
|
+
// =========================
|
|
67
|
+
// STATE
|
|
68
|
+
// =========================
|
|
69
|
+
let railEl = $state<HTMLElement>();
|
|
70
|
+
let detailEl = $state<HTMLElement>();
|
|
71
|
+
// Plain, not state: only back() reads it.
|
|
72
|
+
let opener: HTMLElement | null = null;
|
|
73
|
+
|
|
65
74
|
// =========================
|
|
66
75
|
// DERIVED
|
|
67
76
|
// =========================
|
|
@@ -85,10 +94,23 @@
|
|
|
85
94
|
// `RailRow` calls this when a record is picked. Above the breakpoint the classes
|
|
86
95
|
// that read `pane` are all prefixed away, so the flag changes nothing there.
|
|
87
96
|
setContext<MasterDetailPane>(MASTER_DETAIL_PANE, {
|
|
88
|
-
open: () =>
|
|
89
|
-
if (stackBelow) pane = "detail";
|
|
90
|
-
},
|
|
97
|
+
open: () => void openDetail(),
|
|
91
98
|
});
|
|
99
|
+
|
|
100
|
+
// Stacked, the rail hides under the focused row, so focus follows into the record.
|
|
101
|
+
async function openDetail() {
|
|
102
|
+
if (!stackBelow) return;
|
|
103
|
+
opener = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
104
|
+
pane = "detail";
|
|
105
|
+
await tick();
|
|
106
|
+
if (railEl?.getClientRects().length === 0) await focusAfterRender(null, detailEl);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Back puts focus on the row that opened the record, or the current one.
|
|
110
|
+
function back() {
|
|
111
|
+
pane = "rail";
|
|
112
|
+
void focusAfterRender(railEl, opener, '[aria-current="page"]');
|
|
113
|
+
}
|
|
92
114
|
</script>
|
|
93
115
|
|
|
94
116
|
<!-- =========================== -->
|
|
@@ -109,13 +131,16 @@
|
|
|
109
131
|
data-stack={stackBelow ?? undefined}
|
|
110
132
|
>
|
|
111
133
|
<aside
|
|
134
|
+
bind:this={railEl}
|
|
112
135
|
class={cn("md-rail min-h-0", railClass, stackBelow && pane === "detail" && hideWhileStacked)}
|
|
113
136
|
>
|
|
114
137
|
{@render rail()}
|
|
115
138
|
</aside>
|
|
116
139
|
<div
|
|
140
|
+
bind:this={detailEl}
|
|
141
|
+
tabindex="-1"
|
|
117
142
|
class={cn(
|
|
118
|
-
"md-detail flex min-h-0 min-w-0 flex-col",
|
|
143
|
+
"md-detail flex min-h-0 min-w-0 flex-col outline-none",
|
|
119
144
|
stackBelow && pane === "rail" && hideWhileStacked,
|
|
120
145
|
)}
|
|
121
146
|
>
|
|
@@ -126,9 +151,9 @@
|
|
|
126
151
|
variant="ghost"
|
|
127
152
|
size="sm"
|
|
128
153
|
class={cn("-mx-1 mb-2 self-start px-1 text-muted-foreground", stackedOnly)}
|
|
129
|
-
onclick={
|
|
154
|
+
onclick={back}
|
|
130
155
|
>
|
|
131
|
-
<CaretLeft size={16} weight="bold" />
|
|
156
|
+
<CaretLeft aria-hidden="true" size={16} weight="bold" />
|
|
132
157
|
{backLabel}
|
|
133
158
|
</Button>
|
|
134
159
|
{/if}
|
|
@@ -154,25 +179,36 @@
|
|
|
154
179
|
<!-- STYLE -->
|
|
155
180
|
<!-- =========================== -->
|
|
156
181
|
<style>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
@
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
182
|
+
@layer theme, base, components, utilities;
|
|
183
|
+
|
|
184
|
+
@layer components {
|
|
185
|
+
/* The stacked list-to-record swap. The incoming pane moves: forward from the
|
|
186
|
+
right, back from the left. It runs when `data-pane` flips. */
|
|
187
|
+
@media (max-width: 1023px) {
|
|
188
|
+
.md-cols[data-stack="lg"][data-pane="detail"] > .md-detail {
|
|
189
|
+
animation: md-in-forward var(--duration-fast) var(--ease-smooth-out) both;
|
|
190
|
+
}
|
|
163
191
|
|
|
164
|
-
|
|
165
|
-
|
|
192
|
+
.md-cols[data-stack="lg"][data-pane="rail"] > .md-rail {
|
|
193
|
+
animation: md-in-back var(--duration-fast) var(--ease-smooth-out) both;
|
|
194
|
+
}
|
|
166
195
|
}
|
|
167
|
-
}
|
|
168
196
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
197
|
+
@media (max-width: 1279px) {
|
|
198
|
+
.md-cols[data-stack="xl"][data-pane="detail"] > .md-detail {
|
|
199
|
+
animation: md-in-forward var(--duration-fast) var(--ease-smooth-out) both;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.md-cols[data-stack="xl"][data-pane="rail"] > .md-rail {
|
|
203
|
+
animation: md-in-back var(--duration-fast) var(--ease-smooth-out) both;
|
|
204
|
+
}
|
|
172
205
|
}
|
|
173
206
|
|
|
174
|
-
|
|
175
|
-
|
|
207
|
+
@media (prefers-reduced-motion: reduce) {
|
|
208
|
+
.md-cols > .md-rail,
|
|
209
|
+
.md-cols > .md-detail {
|
|
210
|
+
animation: none;
|
|
211
|
+
}
|
|
176
212
|
}
|
|
177
213
|
}
|
|
178
214
|
|
|
@@ -197,11 +233,4 @@
|
|
|
197
233
|
transform: none;
|
|
198
234
|
}
|
|
199
235
|
}
|
|
200
|
-
|
|
201
|
-
@media (prefers-reduced-motion: reduce) {
|
|
202
|
-
.md-cols > .md-rail,
|
|
203
|
-
.md-cols > .md-detail {
|
|
204
|
-
animation: none;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
236
|
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
interface Props {
|
|
3
|
+
rail: Snippet;
|
|
4
|
+
detail: Snippet;
|
|
5
|
+
banner?: Snippet;
|
|
6
|
+
railWidth?: string;
|
|
7
|
+
stackBelow?: "lg" | "xl" | null;
|
|
8
|
+
backLabel?: string;
|
|
9
|
+
pane?: "rail" | "detail";
|
|
10
|
+
gap?: boolean;
|
|
11
|
+
pad?: boolean;
|
|
12
|
+
railClass?: string;
|
|
13
|
+
detailClass?: string;
|
|
14
|
+
class?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const $$Component: import("svelte").Component<Props, {}, "pane">;
|
|
17
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
18
|
+
export default $$Component;
|
|
@@ -21,7 +21,7 @@ describe("master detail on a phone", () => {
|
|
|
21
21
|
|
|
22
22
|
it("draws a way back to the list, and only while stacked", () => {
|
|
23
23
|
expect(shell).toContain('stackBelow === "xl" ? "xl:hidden" : "lg:hidden"');
|
|
24
|
-
expect(shell).toContain(
|
|
24
|
+
expect(shell).toContain("onclick={back}");
|
|
25
25
|
expect(shell).toContain("{backLabel}");
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
import { type Tone as SeverityTone } from "../../lib/tone.js";
|
|
3
|
+
import type { PhosphorIcon } from "../../lib/icon-types.js";
|
|
4
|
+
type Tone = Extract<SeverityTone, "destructive" | "warning" | "info" | "success">;
|
|
5
|
+
interface Props {
|
|
6
|
+
tone?: Tone;
|
|
7
|
+
icon?: PhosphorIcon;
|
|
8
|
+
actions?: Snippet;
|
|
9
|
+
children: Snippet;
|
|
10
|
+
class?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
13
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
14
|
+
export default $$Component;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/** Ids in the order the list shows them. */
|
|
15
15
|
ids: readonly string[];
|
|
16
16
|
current: string | null | undefined;
|
|
17
|
-
|
|
17
|
+
onSelect: (id: string) => void;
|
|
18
18
|
previousLabel?: string;
|
|
19
19
|
nextLabel?: string;
|
|
20
20
|
/** Off when two steppers share a page, so one key press moves one list. */
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
let {
|
|
29
29
|
ids,
|
|
30
30
|
current,
|
|
31
|
-
|
|
31
|
+
onSelect,
|
|
32
32
|
previousLabel = "Previous",
|
|
33
33
|
nextLabel = "Next",
|
|
34
34
|
keys = true,
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
const id = targetFor(event.key);
|
|
68
68
|
if (!id) return;
|
|
69
69
|
event.preventDefault();
|
|
70
|
-
|
|
70
|
+
onSelect(id);
|
|
71
71
|
}
|
|
72
72
|
</script>
|
|
73
73
|
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
icon
|
|
82
82
|
class="text-muted-foreground"
|
|
83
83
|
disabled={!prev}
|
|
84
|
-
onclick={() => prev &&
|
|
84
|
+
onclick={() => prev && onSelect(prev)}
|
|
85
85
|
aria-label={previousLabel}
|
|
86
86
|
title={`${previousLabel} (K)`}
|
|
87
87
|
>
|
|
88
|
-
<CaretLeft size={15} />
|
|
88
|
+
<CaretLeft aria-hidden="true" size={15} />
|
|
89
89
|
</Button>
|
|
90
90
|
<span class="min-w-9 text-center text-xs tabular-nums">{index + 1}/{ids.length}</span>
|
|
91
91
|
<Button
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
icon
|
|
95
95
|
class="text-muted-foreground"
|
|
96
96
|
disabled={!next}
|
|
97
|
-
onclick={() => next &&
|
|
97
|
+
onclick={() => next && onSelect(next)}
|
|
98
98
|
aria-label={nextLabel}
|
|
99
99
|
title={`${nextLabel} (J)`}
|
|
100
100
|
>
|
|
101
|
-
<CaretRight size={15} />
|
|
101
|
+
<CaretRight aria-hidden="true" size={15} />
|
|
102
102
|
</Button>
|
|
103
103
|
</div>
|
|
104
104
|
{/if}
|