@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
package/src/tokens/base.css
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
/* The shadow family, valued by craft.css. Names stay because
|
|
2
4
|
170-odd call sites use them. Shadow only, since these elements draw their own border. */
|
|
3
5
|
|
|
4
|
-
/* New work: use `shadow-btn`, `shadow-card`, `shadow-raised` and `shadow-overlay`.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/* New work: use `shadow-btn`, `shadow-card`, `shadow-raised` and `shadow-overlay`.
|
|
7
|
+
`@utility`, so `hover:shadow-soft-md` and the other variants work. */
|
|
8
|
+
@utility shadow-soft-sm {
|
|
9
|
+
box-shadow: var(--elev-btn);
|
|
10
|
+
}
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
@utility shadow-soft {
|
|
13
|
+
box-shadow: var(--elev-card);
|
|
14
|
+
}
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
@utility shadow-soft-md {
|
|
17
|
+
box-shadow: var(--elev-raised);
|
|
18
|
+
}
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
/* The one step that answers a pointer rather than describing a resting
|
|
21
|
+
height, so it borrows the step above whatever it was at rest. */
|
|
22
|
+
@utility shadow-soft-hover {
|
|
23
|
+
box-shadow: var(--elev-raised);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
/* The nine bits-ui state variants
|
|
26
|
-
2026. app.css imports that before this file. */
|
|
26
|
+
/* The nine bits-ui state variants live in primitives.css. */
|
|
27
27
|
|
|
28
28
|
@utility no-scrollbar {
|
|
29
29
|
-ms-overflow-style: none;
|
|
@@ -54,35 +54,37 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
57
|
+
@layer components {
|
|
58
|
+
/* WHY: below sm the dialog docks as a bottom sheet. The .t-modal scale would lift
|
|
59
|
+
it off the edge. A sheet enters from the edge it rests on. */
|
|
60
|
+
@media (max-width: 639px) {
|
|
61
|
+
[data-slot="dialog-content"]:not([data-command-dialog]).t-modal {
|
|
62
|
+
transform: translateY(100%);
|
|
63
|
+
transition:
|
|
64
|
+
transform var(--modal-open-dur) var(--modal-ease),
|
|
65
|
+
opacity var(--modal-open-dur) var(--modal-ease);
|
|
66
|
+
}
|
|
67
|
+
[data-slot="dialog-content"]:not([data-command-dialog]).t-modal[data-state="open"] {
|
|
68
|
+
transform: translateY(0);
|
|
69
|
+
}
|
|
70
|
+
[data-slot="dialog-content"]:not([data-command-dialog]).t-modal[data-state="closed"] {
|
|
71
|
+
transform: translateY(100%);
|
|
72
|
+
transition:
|
|
73
|
+
transform var(--modal-close-dur) var(--modal-ease),
|
|
74
|
+
opacity var(--modal-close-dur) var(--modal-ease);
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
|
-
}
|
|
76
77
|
|
|
77
|
-
/* ── The palette does not animate ──────────────────────
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
/* ── The palette does not animate ──────────────────────
|
|
79
|
+
WHY: it's opened by shortcut dozens of times a day, so an entrance feels like
|
|
80
|
+
lag. Raycast and Spotlight don't animate either. */
|
|
80
81
|
|
|
81
|
-
/* The backdrop is a sibling in the portal, so it's named via `overlayClass`.
|
|
82
|
-
|
|
83
|
-
[data-slot="dialog-content"][data-command-dialog].t-modal,
|
|
84
|
-
[data-slot="dialog-overlay"].t-modal-backdrop.t-instant {
|
|
85
|
-
|
|
82
|
+
/* The backdrop is a sibling in the portal, so it's named via `overlayClass`.
|
|
83
|
+
Reaching across the portal would also hit a dialog open underneath. */
|
|
84
|
+
[data-slot="dialog-content"][data-command-dialog].t-modal,
|
|
85
|
+
[data-slot="dialog-overlay"].t-modal-backdrop.t-instant {
|
|
86
|
+
transition: none;
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
@layer base {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
/* `./design`: the craft layer and the bits-ui variants without the palette, for an app that
|
|
4
|
+
* brings its own colours. tokens.css already loads both, so import one or the other.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@import "./craft.css";
|
|
8
|
+
@import "./primitives.css";
|
package/src/tokens/index.css
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* Tailwind's own order, written down: kit CSS sits in `components`, so a utility on a kit part wins. */
|
|
2
|
+
@layer theme, base, components, utilities;
|
|
3
|
+
|
|
1
4
|
/* tokens.css: import once, right after `@import "tailwindcss"`. Override any
|
|
2
5
|
* variable on :root to retheme; the parts load in this order because later ones
|
|
3
6
|
* read earlier variables.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Button } from "../shadcn/button/index.js";
|
|
3
3
|
import { Input } from "../shadcn/input/index.js";
|
|
4
4
|
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { focusAfterRender } from "../lib/focus.js";
|
|
5
6
|
import { DEFAULT_TRIAGE_PLAN_LABELS, type TriagePlanLabels } from "./types.js";
|
|
6
7
|
|
|
7
8
|
interface Props {
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
/** A failed attempt, shown on the card. */
|
|
22
23
|
error?: string | null;
|
|
23
24
|
labels?: Partial<TriagePlanLabels>;
|
|
24
|
-
/** Run the plan. The buttons stay
|
|
25
|
+
/** Run the plan. The buttons stay unavailable until it settles. */
|
|
25
26
|
onApprove: () => void | Promise<void>;
|
|
26
27
|
/** Run a task the person typed instead of the plan. */
|
|
27
28
|
onPick: (task: string) => void | Promise<void>;
|
|
@@ -50,8 +51,13 @@
|
|
|
50
51
|
let picking = $state(false);
|
|
51
52
|
let busy = $state(false);
|
|
52
53
|
let task = $state("");
|
|
54
|
+
let card: HTMLElement | undefined = $state();
|
|
55
|
+
|
|
56
|
+
// aria-disabled, not disabled, while busy: a disabled button drops focus to the page.
|
|
57
|
+
const busyLook = "aria-disabled:pointer-events-none aria-disabled:opacity-50";
|
|
53
58
|
|
|
54
59
|
async function run(job: () => void | Promise<void>) {
|
|
60
|
+
if (busy) return;
|
|
55
61
|
busy = true;
|
|
56
62
|
try {
|
|
57
63
|
await job();
|
|
@@ -59,11 +65,27 @@
|
|
|
59
65
|
busy = false;
|
|
60
66
|
}
|
|
61
67
|
}
|
|
68
|
+
|
|
69
|
+
async function setPicking(on: boolean) {
|
|
70
|
+
picking = on;
|
|
71
|
+
await focusAfterRender(card, on ? `[id="${id}-task"]` : "[data-triage-pick]");
|
|
72
|
+
}
|
|
62
73
|
</script>
|
|
63
74
|
|
|
64
|
-
<article
|
|
75
|
+
<article
|
|
76
|
+
bind:this={card}
|
|
77
|
+
tabindex="-1"
|
|
78
|
+
aria-labelledby="{id}-heading"
|
|
79
|
+
class={cn(
|
|
80
|
+
"bg-card border-border rounded-xl border p-5 outline-none focus-visible:shadow-(--ring-focus)",
|
|
81
|
+
className,
|
|
82
|
+
)}
|
|
83
|
+
>
|
|
65
84
|
<div class="flex items-start justify-between gap-3">
|
|
66
|
-
<h2
|
|
85
|
+
<h2
|
|
86
|
+
id="{id}-heading"
|
|
87
|
+
class="text-foreground min-w-0 text-sm font-semibold [overflow-wrap:anywhere]"
|
|
88
|
+
>
|
|
67
89
|
{sender}: “{subject}”
|
|
68
90
|
</h2>
|
|
69
91
|
{#if received}
|
|
@@ -92,7 +114,7 @@
|
|
|
92
114
|
|
|
93
115
|
{#if error}
|
|
94
116
|
<p
|
|
95
|
-
class="bg-destructive/10 text-destructive mt-3 rounded-lg px-3 py-2 text-sm [overflow-wrap:anywhere]"
|
|
117
|
+
class="bg-destructive/10 text-destructive-ink mt-3 rounded-lg px-3 py-2 text-sm [overflow-wrap:anywhere]"
|
|
96
118
|
role="alert"
|
|
97
119
|
>
|
|
98
120
|
{error}
|
|
@@ -100,20 +122,27 @@
|
|
|
100
122
|
{/if}
|
|
101
123
|
|
|
102
124
|
{#if picking}
|
|
125
|
+
<!-- WHY: Esc from any control in the form cancels, so one listener sits on the form. -->
|
|
126
|
+
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
103
127
|
<form
|
|
104
128
|
class="mt-4 space-y-2"
|
|
105
129
|
onsubmit={(event) => {
|
|
106
130
|
event.preventDefault();
|
|
107
131
|
run(() => onPick(task.trim()));
|
|
108
132
|
}}
|
|
133
|
+
onkeydown={(event) => {
|
|
134
|
+
if (event.key !== "Escape") return;
|
|
135
|
+
event.preventDefault();
|
|
136
|
+
void setPicking(false);
|
|
137
|
+
}}
|
|
109
138
|
>
|
|
110
139
|
<label for="{id}-task" class="text-foreground block text-sm font-medium">
|
|
111
140
|
{words.taskLabel}
|
|
112
141
|
</label>
|
|
113
142
|
<Input id="{id}-task" bind:value={task} required autocomplete="off" />
|
|
114
143
|
<div class="flex flex-wrap gap-2">
|
|
115
|
-
<Button type="submit" disabled={busy}>{words.useTask}</Button>
|
|
116
|
-
<Button type="button" variant="outline" onclick={() => (
|
|
144
|
+
<Button type="submit" aria-disabled={busy} class={busyLook}>{words.useTask}</Button>
|
|
145
|
+
<Button type="button" variant="outline" onclick={() => setPicking(false)}>
|
|
117
146
|
{words.cancel}
|
|
118
147
|
</Button>
|
|
119
148
|
</div>
|
|
@@ -121,10 +150,14 @@
|
|
|
121
150
|
{:else}
|
|
122
151
|
<div class="mt-4 flex flex-wrap gap-2">
|
|
123
152
|
{#if plan}
|
|
124
|
-
<Button disabled={busy} onclick={() => run(onApprove)}>
|
|
125
|
-
|
|
153
|
+
<Button aria-disabled={busy} class={busyLook} onclick={() => run(onApprove)}>
|
|
154
|
+
{words.approve}
|
|
155
|
+
</Button>
|
|
156
|
+
<Button variant="outline" data-triage-pick onclick={() => setPicking(true)}>
|
|
157
|
+
{words.pick}
|
|
158
|
+
</Button>
|
|
126
159
|
{/if}
|
|
127
|
-
<Button variant="ghost" disabled={busy} onclick={() => run(onDismiss)}>
|
|
160
|
+
<Button variant="ghost" aria-disabled={busy} class={busyLook} onclick={() => run(onDismiss)}>
|
|
128
161
|
{words.dismiss}
|
|
129
162
|
</Button>
|
|
130
163
|
</div>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type TriagePlanLabels } from "./types.js";
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Who sent the email. */
|
|
4
|
+
sender: string;
|
|
5
|
+
subject: string;
|
|
6
|
+
/** The first lines of the body. */
|
|
7
|
+
snippet?: string;
|
|
8
|
+
/** When it arrived, as text the host already formatted. */
|
|
9
|
+
received?: string | null;
|
|
10
|
+
/** The ISO time behind `received`, for the `time` element. */
|
|
11
|
+
receivedAt?: string | null;
|
|
12
|
+
/** What the plan will do, as one sentence. Without it the card only offers to dismiss. */
|
|
13
|
+
plan?: string | null;
|
|
14
|
+
/** Why the model wasn't sure. */
|
|
15
|
+
reason?: string | null;
|
|
16
|
+
/** A failed attempt, shown on the card. */
|
|
17
|
+
error?: string | null;
|
|
18
|
+
labels?: Partial<TriagePlanLabels>;
|
|
19
|
+
/** Run the plan. The buttons stay unavailable until it settles. */
|
|
20
|
+
onApprove: () => void | Promise<void>;
|
|
21
|
+
/** Run a task the person typed instead of the plan. */
|
|
22
|
+
onPick: (task: string) => void | Promise<void>;
|
|
23
|
+
onDismiss: () => void | Promise<void>;
|
|
24
|
+
class?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
27
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
28
|
+
export default $$Component;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
2
|
import type { Snippet } from "svelte";
|
|
3
3
|
import { cn } from "../lib/utils.js";
|
|
4
|
+
import { focusAfterRender } from "../lib/focus.js";
|
|
4
5
|
|
|
5
6
|
interface Props {
|
|
6
7
|
items: readonly T[];
|
|
@@ -21,28 +22,65 @@
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
let { items, key, kind = "plans", row, empty, icon, class: className }: Props = $props();
|
|
25
|
+
|
|
26
|
+
let root: HTMLDivElement | undefined = $state();
|
|
27
|
+
// The key of the row that last held focus, and the keys in the order they were drawn.
|
|
28
|
+
let focusedKey: string | null = null;
|
|
29
|
+
let drawn: string[] = [];
|
|
30
|
+
|
|
31
|
+
function onfocusin(event: FocusEvent) {
|
|
32
|
+
const rows = root?.querySelector("[data-triage-rows]")?.children;
|
|
33
|
+
const at = rows ? [...rows].findIndex((r) => r.contains(event.target as Node)) : -1;
|
|
34
|
+
focusedKey = drawn[at] ?? null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function onfocusout(event: FocusEvent) {
|
|
38
|
+
const next = event.relatedTarget;
|
|
39
|
+
if (next instanceof Node && !root?.contains(next)) focusedKey = null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// A row that leaves takes focus with it, so focus goes to the row now in its place, or the empty state.
|
|
43
|
+
$effect(() => {
|
|
44
|
+
const keys = items.map(key);
|
|
45
|
+
const held = focusedKey;
|
|
46
|
+
const at = held !== null && !keys.includes(held) ? drawn.indexOf(held) : -1;
|
|
47
|
+
drawn = keys;
|
|
48
|
+
if (at === -1) return;
|
|
49
|
+
focusedKey = null;
|
|
50
|
+
const active = document.activeElement;
|
|
51
|
+
if (active && active !== document.body) return;
|
|
52
|
+
const next = Math.min(at, keys.length - 1) + 1;
|
|
53
|
+
void focusAfterRender(root, `[data-triage-rows] > :nth-child(${next})`, "[data-triage-empty]");
|
|
54
|
+
});
|
|
24
55
|
</script>
|
|
25
56
|
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{
|
|
57
|
+
<div bind:this={root} class="contents" {onfocusin} {onfocusout}>
|
|
58
|
+
{#if items.length === 0}
|
|
59
|
+
<div
|
|
60
|
+
tabindex="-1"
|
|
61
|
+
data-triage-empty
|
|
62
|
+
class={cn(
|
|
63
|
+
"border-border flex flex-col items-center gap-3 rounded-xl border border-dashed px-6 py-14 text-center outline-none focus-visible:shadow-(--ring-focus)",
|
|
64
|
+
className,
|
|
65
|
+
)}
|
|
66
|
+
>
|
|
67
|
+
<span class="text-muted-foreground" aria-hidden="true">{@render icon?.()}</span>
|
|
68
|
+
<p class="text-muted-foreground text-sm">{empty}</p>
|
|
69
|
+
</div>
|
|
70
|
+
{:else if kind === "plans"}
|
|
71
|
+
<div data-triage-rows class={cn("space-y-4", className)}>
|
|
72
|
+
{#each items as item (key(item))}
|
|
73
|
+
{@render row(item)}
|
|
74
|
+
{/each}
|
|
75
|
+
</div>
|
|
76
|
+
{:else}
|
|
77
|
+
<ul
|
|
78
|
+
data-triage-rows
|
|
79
|
+
class={cn("bg-card border-border divide-border divide-y rounded-xl border", className)}
|
|
80
|
+
>
|
|
81
|
+
{#each items as item (key(item))}
|
|
82
|
+
{@render row(item)}
|
|
83
|
+
{/each}
|
|
84
|
+
</ul>
|
|
85
|
+
{/if}
|
|
86
|
+
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
declare function $$render<T>(): {
|
|
3
|
+
props: {
|
|
4
|
+
items: readonly T[];
|
|
5
|
+
/** The key a row is tracked by. */
|
|
6
|
+
key: (item: T) => string;
|
|
7
|
+
/**
|
|
8
|
+
* `plans` stacks cards that need a decision. `tasks` is one divided list of what was
|
|
9
|
+
* decided.
|
|
10
|
+
*/
|
|
11
|
+
kind?: "plans" | "tasks";
|
|
12
|
+
/** One row: a `TriagePlan` for `plans`, a `TriageTask` for `tasks`. */
|
|
13
|
+
row: Snippet<[T]>;
|
|
14
|
+
/** What the person reads when nothing is waiting. */
|
|
15
|
+
empty: string;
|
|
16
|
+
/** The glyph above the empty text. */
|
|
17
|
+
icon?: Snippet;
|
|
18
|
+
class?: string;
|
|
19
|
+
};
|
|
20
|
+
exports: {};
|
|
21
|
+
bindings: "";
|
|
22
|
+
slots: {};
|
|
23
|
+
events: {};
|
|
24
|
+
};
|
|
25
|
+
declare class __sveltets_Render<T> {
|
|
26
|
+
props(): ReturnType<typeof $$render<T>>['props'];
|
|
27
|
+
events(): ReturnType<typeof $$render<T>>['events'];
|
|
28
|
+
slots(): ReturnType<typeof $$render<T>>['slots'];
|
|
29
|
+
bindings(): "";
|
|
30
|
+
exports(): {};
|
|
31
|
+
}
|
|
32
|
+
interface $$IsomorphicComponent {
|
|
33
|
+
new <T>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
34
|
+
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
35
|
+
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
36
|
+
<T>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
37
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
38
|
+
}
|
|
39
|
+
declare const $$Component: $$IsomorphicComponent;
|
|
40
|
+
type $$Component<T> = InstanceType<typeof $$Component<T>>;
|
|
41
|
+
export default $$Component;
|
|
@@ -45,7 +45,9 @@
|
|
|
45
45
|
let words = $derived({ ...DEFAULT_TRIAGE_TASK_LABELS, ...labels });
|
|
46
46
|
let busy = $state(false);
|
|
47
47
|
|
|
48
|
+
// aria-disabled, not disabled, while busy: a disabled button drops focus to the page.
|
|
48
49
|
async function undo() {
|
|
50
|
+
if (busy) return;
|
|
49
51
|
busy = true;
|
|
50
52
|
try {
|
|
51
53
|
await onUndo?.();
|
|
@@ -56,8 +58,9 @@
|
|
|
56
58
|
</script>
|
|
57
59
|
|
|
58
60
|
<li
|
|
61
|
+
tabindex="-1"
|
|
59
62
|
class={cn(
|
|
60
|
-
"flex flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between",
|
|
63
|
+
"flex flex-col gap-3 px-5 py-4 outline-none focus-visible:shadow-(--ring-focus) sm:flex-row sm:items-center sm:justify-between",
|
|
61
64
|
className,
|
|
62
65
|
)}
|
|
63
66
|
>
|
|
@@ -83,12 +86,17 @@
|
|
|
83
86
|
<p class="text-muted-foreground text-xs [overflow-wrap:anywhere]">{detail}</p>
|
|
84
87
|
{/if}
|
|
85
88
|
{#if error}
|
|
86
|
-
<p class="text-destructive text-xs [overflow-wrap:anywhere]" role="alert">{error}</p>
|
|
89
|
+
<p class="text-destructive-ink text-xs [overflow-wrap:anywhere]" role="alert">{error}</p>
|
|
87
90
|
{/if}
|
|
88
91
|
</div>
|
|
89
92
|
|
|
90
93
|
{#if onUndo}
|
|
91
|
-
<Button
|
|
94
|
+
<Button
|
|
95
|
+
variant="outline"
|
|
96
|
+
class="shrink-0 aria-disabled:pointer-events-none aria-disabled:opacity-50"
|
|
97
|
+
aria-disabled={busy}
|
|
98
|
+
onclick={undo}
|
|
99
|
+
>
|
|
92
100
|
{words.undo}
|
|
93
101
|
</Button>
|
|
94
102
|
{/if}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type TriageOutcome, type TriageTaskLabels, type TriageTaskLink } from "./types.js";
|
|
2
|
+
interface Props {
|
|
3
|
+
sender: string;
|
|
4
|
+
subject: string;
|
|
5
|
+
/** What happened to the email. */
|
|
6
|
+
outcome: TriageOutcome;
|
|
7
|
+
/** The task it became. */
|
|
8
|
+
task?: TriageTaskLink | null;
|
|
9
|
+
/** When it settled, as text the host already formatted. */
|
|
10
|
+
when: string;
|
|
11
|
+
whenAt?: string | null;
|
|
12
|
+
/** Why it failed. */
|
|
13
|
+
detail?: string | null;
|
|
14
|
+
error?: string | null;
|
|
15
|
+
labels?: Partial<TriageTaskLabels>;
|
|
16
|
+
/** Takes the change back. The button shows only when this is passed. */
|
|
17
|
+
onUndo?: () => void | Promise<void>;
|
|
18
|
+
class?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const $$Component: import("svelte").Component<Props, {}, "">;
|
|
21
|
+
type $$Component = ReturnType<typeof $$Component>;
|
|
22
|
+
export default $$Component;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { createRawSnippet, flushSync, mount, tick, unmount } from "svelte";
|
|
2
|
+
import { describe, expect, it } from "vite-plus/test";
|
|
3
|
+
import TriagePlan from "./triage-plan.svelte";
|
|
4
|
+
import TriageQueue from "./triage-queue.svelte";
|
|
5
|
+
|
|
6
|
+
type Mail = { id: string; subject: string };
|
|
7
|
+
|
|
8
|
+
const row = createRawSnippet((mail: () => Mail) => ({
|
|
9
|
+
render: () =>
|
|
10
|
+
`<article tabindex="-1" data-mail="${mail().id}"><button>Approve</button></article>`,
|
|
11
|
+
}));
|
|
12
|
+
|
|
13
|
+
function mountIn<P extends Record<string, unknown>>(component: never, props: P) {
|
|
14
|
+
const target = document.createElement("div");
|
|
15
|
+
document.body.appendChild(target);
|
|
16
|
+
const app = mount(component, { target, props });
|
|
17
|
+
flushSync();
|
|
18
|
+
return {
|
|
19
|
+
target,
|
|
20
|
+
done: () => {
|
|
21
|
+
void unmount(app);
|
|
22
|
+
target.remove();
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async function settle() {
|
|
28
|
+
for (let i = 0; i < 4; i++) await tick();
|
|
29
|
+
flushSync();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
describe("TriageQueue focus", () => {
|
|
33
|
+
function renderQueue() {
|
|
34
|
+
const props = $state({
|
|
35
|
+
items: [
|
|
36
|
+
{ id: "m1", subject: "One" },
|
|
37
|
+
{ id: "m2", subject: "Two" },
|
|
38
|
+
] as Mail[],
|
|
39
|
+
key: (m: Mail) => m.id,
|
|
40
|
+
row,
|
|
41
|
+
empty: "Nothing waiting.",
|
|
42
|
+
});
|
|
43
|
+
return { props, ...mountIn(TriageQueue as never, props) };
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
it("moves focus to the card now in the place of one that left", async () => {
|
|
47
|
+
const { props, target, done } = renderQueue();
|
|
48
|
+
target.querySelector<HTMLElement>('[data-mail="m1"] button')?.focus();
|
|
49
|
+
props.items = props.items.slice(1);
|
|
50
|
+
await settle();
|
|
51
|
+
expect(document.activeElement).toBe(target.querySelector('[data-mail="m2"]'));
|
|
52
|
+
done();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it("moves focus to the empty state when the last card leaves", async () => {
|
|
56
|
+
const { props, target, done } = renderQueue();
|
|
57
|
+
target.querySelector<HTMLElement>('[data-mail="m2"] button')?.focus();
|
|
58
|
+
props.items = props.items.slice(0, 1);
|
|
59
|
+
await settle();
|
|
60
|
+
expect(document.activeElement).toBe(target.querySelector('[data-mail="m1"]'));
|
|
61
|
+
target.querySelector<HTMLElement>('[data-mail="m1"]')?.focus();
|
|
62
|
+
props.items = [];
|
|
63
|
+
await settle();
|
|
64
|
+
expect(document.activeElement?.textContent).toContain("Nothing waiting.");
|
|
65
|
+
done();
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
describe("TriagePlan focus", () => {
|
|
70
|
+
function renderPlan() {
|
|
71
|
+
return mountIn(TriagePlan as never, {
|
|
72
|
+
sender: "Ada",
|
|
73
|
+
subject: "Invoice",
|
|
74
|
+
plan: "File it",
|
|
75
|
+
onApprove: () => {},
|
|
76
|
+
onPick: () => {},
|
|
77
|
+
onDismiss: () => {},
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const button = (target: HTMLElement, text: string) =>
|
|
82
|
+
[...target.querySelectorAll("button")].find((b) => b.textContent?.trim() === text);
|
|
83
|
+
|
|
84
|
+
it("keeps a busy button focusable and runs it once", async () => {
|
|
85
|
+
let calls = 0;
|
|
86
|
+
let finish = () => {};
|
|
87
|
+
const { target, done } = mountIn(TriagePlan as never, {
|
|
88
|
+
sender: "Ada",
|
|
89
|
+
subject: "Invoice",
|
|
90
|
+
plan: "File it",
|
|
91
|
+
onApprove: () => {
|
|
92
|
+
calls++;
|
|
93
|
+
return new Promise<void>((resolve) => (finish = resolve));
|
|
94
|
+
},
|
|
95
|
+
onPick: () => {},
|
|
96
|
+
onDismiss: () => {},
|
|
97
|
+
});
|
|
98
|
+
const approve = button(target, "Approve");
|
|
99
|
+
approve?.focus();
|
|
100
|
+
approve?.click();
|
|
101
|
+
await settle();
|
|
102
|
+
approve?.click();
|
|
103
|
+
expect(calls).toBe(1);
|
|
104
|
+
expect(approve?.disabled).toBe(false);
|
|
105
|
+
expect(approve?.getAttribute("aria-disabled")).toBe("true");
|
|
106
|
+
expect(document.activeElement).toBe(approve);
|
|
107
|
+
finish();
|
|
108
|
+
done();
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it("puts focus in the task field on Pick, and back on Pick after Cancel or Esc", async () => {
|
|
112
|
+
const { target, done } = renderPlan();
|
|
113
|
+
button(target, "Pick another task")?.click();
|
|
114
|
+
await settle();
|
|
115
|
+
expect(document.activeElement?.tagName).toBe("INPUT");
|
|
116
|
+
|
|
117
|
+
button(target, "Cancel")?.click();
|
|
118
|
+
await settle();
|
|
119
|
+
expect(document.activeElement).toBe(button(target, "Pick another task"));
|
|
120
|
+
|
|
121
|
+
button(target, "Pick another task")?.click();
|
|
122
|
+
await settle();
|
|
123
|
+
document.activeElement?.dispatchEvent(
|
|
124
|
+
new KeyboardEvent("keydown", { key: "Escape", bubbles: true }),
|
|
125
|
+
);
|
|
126
|
+
await settle();
|
|
127
|
+
expect(document.activeElement).toBe(button(target, "Pick another task"));
|
|
128
|
+
done();
|
|
129
|
+
});
|
|
130
|
+
});
|
package/src/work/README.md
CHANGED
|
@@ -156,7 +156,7 @@ matches no group is drawn at the top level.
|
|
|
156
156
|
inclusive ISO dates (`"2026-10-16"`). Drag a bar to move it, drag an edge to
|
|
157
157
|
resize it, and the bar glides from day to day while a tip shows the new range.
|
|
158
158
|
A focused bar moves a day with the arrow keys, and Shift plus an arrow moves
|
|
159
|
-
its end. Leave out `
|
|
159
|
+
its end. Leave out `onDatesChange` and the chart is read only.
|
|
160
160
|
|
|
161
161
|
```svelte
|
|
162
162
|
<TaskGantt
|
|
@@ -168,7 +168,7 @@ its end. Leave out `onChange` and the chart is read only.
|
|
|
168
168
|
getDependsOn={(task) => task.blockedBy}
|
|
169
169
|
groups={columns}
|
|
170
170
|
getGroup={(task) => task.column}
|
|
171
|
-
|
|
171
|
+
onDatesChange={(id, { start, end }) => save(id, start, end)}
|
|
172
172
|
/>
|
|
173
173
|
```
|
|
174
174
|
|
|
@@ -176,7 +176,7 @@ its end. Leave out `onChange` and the chart is read only.
|
|
|
176
176
|
| -------------- | ----------------------------------------- | ----------------------------------------------------------- |
|
|
177
177
|
| `items`, `getId`, `getTitle` | | Required. |
|
|
178
178
|
| `getStart`, `getEnd` | `(item: T) => string \| null \| undefined` | ISO dates, inclusive. A one-day task has the same start and end. One date alone is a one-day task, none is undated. A parent with no dates draws the span of its children as an outline bar. |
|
|
179
|
-
| `
|
|
179
|
+
| `onDatesChange` | `(id, { start, end }) => void \| Promise<void>` | Called after a drag, a resize or a key nudge. |
|
|
180
180
|
| `onSelect` | `(id) => void` | A click or Enter that didn't move the bar. |
|
|
181
181
|
| `getHue` | `(item: T) => string \| undefined` | Bar color. Falls back to the group hue, then `--color-primary`. |
|
|
182
182
|
| `getProgress` | `(item: T) => number \| undefined` | 0 to 1, filled from the left. |
|
|
@@ -207,7 +207,7 @@ icon, so `ChartBarHorizontal` stands in.
|
|
|
207
207
|
`SidePanel` is a sheet for one record: a title, a description, status chips, doors
|
|
208
208
|
out to other tools (`openIn`), a copy-a-prompt `handoff`, a strip of `stats`, then
|
|
209
209
|
the body and an optional pinned `footer`. You pass the tools; the panel knows none.
|
|
210
|
-
Import it from `@heyramzi/ui/panel
|
|
210
|
+
Import it from `@heyramzi/ui/panel`.
|
|
211
211
|
|
|
212
212
|
```svelte
|
|
213
213
|
<SidePanel
|
|
@@ -266,7 +266,7 @@ and fetches nothing. You pass entries in and persist what it hands back.
|
|
|
266
266
|
| `locale`, `labels`, `class` | | `labels` overrides any string in `DEFAULT_TIME_LABELS`. |
|
|
267
267
|
|
|
268
268
|
Alt+S starts and stops the timer. A screen reader hears the start, one update a
|
|
269
|
-
minute and the stop. Import it
|
|
269
|
+
minute and the stop. Import it from `@heyramzi/ui/work`.
|
|
270
270
|
|
|
271
271
|
For boards and lists: `TimeChip` (`minutes`, `estimate?`, `running?`) shows the
|
|
272
272
|
logged total, with a pulsing dot while a timer runs and a small ring against an
|
|
@@ -303,8 +303,9 @@ same values when they aren't. Everything goes still under
|
|
|
303
303
|
|
|
304
304
|
## Demo
|
|
305
305
|
|
|
306
|
-
`src/
|
|
307
|
-
|
|
306
|
+
The docs site's `/work` page (`site/src/lib/demos/pages/work.svelte`) puts one
|
|
307
|
+
task list behind a Board, List and Gantt filter, with sorting, a Days and Weeks
|
|
308
|
+
scale and a status badge strip.
|
|
308
309
|
|
|
309
310
|
The fractional ordering in `board-order.ts` is the CC0 algorithm from
|
|
310
311
|
[Implementing Fractional Indexing](https://observablehq.com/@dgreensp/implementing-fractional-indexing).
|