@adea-ai/ui 0.152.4 → 0.154.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/README.md +469 -580
- package/dist/NOTICE +10 -1
- package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +37 -13
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +2 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +92 -66
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +57 -57
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +9 -9
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +6 -10
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +33 -37
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
- package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
- package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +1 -1
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts +2 -2
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/build-file-tree.d.ts +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +7 -3
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +1 -3
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/inline-citation/citation.d.ts +1 -1
- package/dist/components/composites/inline-citation/citation.js +1 -1
- package/dist/components/composites/inline-citation/citation.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +22 -22
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -0
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +75 -83
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +19 -5
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +263 -29
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/model-selector/models.d.ts +2 -2
- package/dist/components/composites/model-selector/models.js +1 -1
- package/dist/components/composites/model-selector/models.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +17 -15
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +5 -7
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
- package/dist/components/composites/reasoning/reasoning.js +4 -4
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +63 -14
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +32 -32
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/source.d.ts +1 -1
- package/dist/components/composites/sources/source.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +2 -2
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
- package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
- package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +14 -16
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +6 -4
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/ansi.d.ts +3 -3
- package/dist/components/composites/terminal/ansi.js.map +1 -1
- package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
- package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal-model.js +1 -1
- package/dist/components/composites/terminal/terminal-model.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +24 -11
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
- package/dist/components/composites/test-results/test-results-model.js +2 -2
- package/dist/components/composites/test-results/test-results-model.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +4 -4
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +1 -1
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +25 -18
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +14 -19
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/index.d.ts +1 -1
- package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +4 -5
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +19 -20
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +18 -20
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.js +3 -3
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +2 -4
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +6 -5
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.js +3 -7
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +76 -76
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +32 -38
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +79 -73
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
- package/dist/components/conversation/scroll-follow-core.js +4 -4
- package/dist/components/conversation/scroll-follow-core.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +19 -4
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +23 -23
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +2 -2
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.js +1 -1
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +4 -6
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +17 -17
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.js +2 -4
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +16 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +62 -57
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +23 -23
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +2 -2
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +1 -1
- package/dist/components/layout/status-bar/status-bar.js +1 -1
- package/dist/components/layout/status-bar/status-bar.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +15 -14
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/motion/presence.d.ts +2 -2
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +5 -5
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
- package/dist/components/theme/theme-catalogue-source.js +2 -2
- package/dist/components/theme/theme-catalogue-source.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +2 -2
- package/dist/components/theme/theme-context.js +3 -3
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-document.d.ts.map +1 -1
- package/dist/components/theme/theme-document.js +14 -9
- package/dist/components/theme/theme-document.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +5 -5
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +0 -6
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +9 -3
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-script.d.ts +14 -0
- package/dist/components/theme/theme-script.d.ts.map +1 -1
- package/dist/components/theme/theme-script.js +1 -0
- package/dist/components/theme/theme-script.js.map +1 -1
- package/dist/components/theme/theme-state.d.ts +7 -7
- package/dist/components/theme/theme-state.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +1 -1
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +4 -3
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/badge/badge.js +2 -2
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +10 -6
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +6 -4
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.js +2 -2
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.js +1 -1
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +6 -6
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +4 -4
- package/dist/components/ui/callout/callout.js +4 -4
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +2 -2
- package/dist/components/ui/card/card.js +2 -2
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +4 -4
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart-options.d.ts +7 -7
- package/dist/components/ui/chart/chart-options.js +9 -9
- package/dist/components/ui/chart/chart-options.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +16 -7
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +8 -6
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +8 -6
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +4 -4
- package/dist/components/ui/command/command.js +4 -4
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +13 -13
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +17 -1
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +4 -3
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
- package/dist/components/ui/diff-block/diff-block.js +3 -3
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +3 -3
- package/dist/components/ui/drawer/drawer.js +2 -2
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
- package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +33 -36
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.d.ts +1 -1
- package/dist/components/ui/empty/empty.js +1 -1
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +7 -7
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +15 -15
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.d.ts +1 -1
- package/dist/components/ui/field/number-field.js +1 -1
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +26 -26
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +25 -12
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +44 -13
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
- package/dist/components/ui/kbd/platform-modifier.js +3 -3
- package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/label/label.js +1 -1
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +17 -19
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +2 -2
- package/dist/components/ui/menubar/menubar.js +1 -1
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +16 -18
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +1 -1
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +5 -4
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.js +2 -4
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +11 -4
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +6 -8
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +73 -73
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +12 -6
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +2 -2
- package/dist/components/ui/resizable/resizable.js +3 -3
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +3 -3
- package/dist/components/ui/select/select.js +1 -1
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +4 -3
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton/skeleton.js +1 -1
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +1 -1
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/spinner/spinner.js +1 -1
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +11 -11
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +8 -6
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +4 -4
- package/dist/components/ui/tabs/tabs.js +4 -4
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.js +1 -1
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +13 -15
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.js +1 -1
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
- package/dist/components/ui/tooltip/index.d.ts +1 -0
- package/dist/components/ui/tooltip/index.d.ts.map +1 -1
- package/dist/components/ui/tooltip/index.js +3 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +6 -5
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +17 -17
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +3 -3
- package/dist/components/ui/typography/typography.js +5 -5
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/lib/accent-presets.d.ts +1 -1
- package/dist/lib/accent-presets.js.map +1 -1
- package/dist/lib/accent-roles.d.ts +2 -2
- package/dist/lib/accent-roles.js +2 -2
- package/dist/lib/accent-roles.js.map +1 -1
- package/dist/lib/appearance-font-settings.d.ts.map +1 -1
- package/dist/lib/appearance-font-settings.js +15 -7
- package/dist/lib/appearance-font-settings.js.map +1 -1
- package/dist/lib/create-poll.d.ts +39 -0
- package/dist/lib/create-poll.d.ts.map +1 -0
- package/dist/lib/create-poll.js +116 -0
- package/dist/lib/create-poll.js.map +1 -0
- package/dist/lib/font-zoom.d.ts +1 -1
- package/dist/lib/font-zoom.js +1 -1
- package/dist/lib/font-zoom.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts +2 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +3 -2
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +6 -6
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +6 -6
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/preference-store.d.ts +2 -2
- package/dist/lib/preference-store.js +2 -2
- package/dist/lib/preference-store.js.map +1 -1
- package/dist/lib/safe-script.d.ts +2 -2
- package/dist/lib/safe-script.js +2 -2
- package/dist/lib/safe-script.js.map +1 -1
- package/dist/lib/scroll-geometry.d.ts +1 -1
- package/dist/lib/scroll-geometry.js +1 -1
- package/dist/lib/scroll-geometry.js.map +1 -1
- package/dist/lib/text.d.ts +1 -1
- package/dist/lib/text.js +1 -1
- package/dist/lib/text.js.map +1 -1
- package/dist/lib/theme-accents.js +3 -3
- package/dist/lib/theme-accents.js.map +1 -1
- package/dist/lib/theme-css.js.map +1 -1
- package/dist/lib/theme-defaults.d.ts +4 -4
- package/dist/lib/theme-defaults.js +4 -4
- package/dist/lib/theme-defaults.js.map +1 -1
- package/dist/lib/theme-engine-light.js.map +1 -1
- package/dist/lib/theme-engine.d.ts +2 -2
- package/dist/lib/theme-engine.js +2 -2
- package/dist/lib/theme-engine.js.map +1 -1
- package/dist/lib/theme-projection.d.ts +1 -1
- package/dist/lib/theme-projection.js +2 -2
- package/dist/lib/theme-projection.js.map +1 -1
- package/dist/lib/theme-records.d.ts +2 -2
- package/dist/lib/theme-records.js +2 -2
- package/dist/lib/theme-records.js.map +1 -1
- package/dist/lib/theme-types.d.ts +1 -1
- package/dist/lib/theme-types.js.map +1 -1
- package/dist/lib/themes.d.ts +13 -13
- package/dist/lib/themes.js +13 -13
- package/dist/lib/themes.js.map +1 -1
- package/dist/lib/tokens.d.ts +2 -2
- package/dist/lib/tokens.js +1 -1
- package/dist/lib/tokens.js.map +1 -1
- package/dist/lib/tooltip-focus-gate.d.ts +2 -2
- package/dist/lib/tooltip-focus-gate.js +2 -2
- package/dist/lib/tooltip-focus-gate.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/variants.d.ts +4 -4
- package/dist/lib/variants.js +1 -1
- package/dist/lib/variants.js.map +1 -1
- package/dist/lib/version-notes.d.ts +4 -4
- package/dist/lib/version-notes.js +4 -4
- package/dist/lib/version-notes.js.map +1 -1
- package/dist/lint.js.map +1 -1
- package/dist/r/account-menu.json +1 -0
- package/dist/r/lib.json +5 -0
- package/dist/r/model-selector.json +1 -0
- package/dist/r/registry.json +14 -0
- package/dist/r/side-rail.json +1 -0
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/dist/r/src/components/composites/chat/chat.tsx +15 -9
- package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/dist/r/src/components/composites/context/context.tsx +2 -2
- package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +190 -14
- package/dist/r/src/components/composites/model-selector/models.ts +2 -2
- package/dist/r/src/components/composites/plan/plan.tsx +19 -11
- package/dist/r/src/components/composites/queue/queue.tsx +5 -3
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/dist/r/src/components/composites/settings/settings.tsx +14 -6
- package/dist/r/src/components/composites/sources/source.ts +1 -1
- package/dist/r/src/components/composites/sources/sources.tsx +2 -2
- package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/dist/r/src/components/composites/stat/stat.tsx +20 -16
- package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
- package/dist/r/src/components/composites/task/task.tsx +1 -1
- package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
- package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
- package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
- package/dist/r/src/components/composites/tool/tool.tsx +4 -4
- package/dist/r/src/components/composites/tree/tree.tsx +31 -15
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
- package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
- package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
- package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/dist/r/src/components/conversation/message-composer.tsx +4 -6
- package/dist/r/src/components/conversation/message-row.tsx +34 -26
- package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
- package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
- package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
- package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/dist/r/src/components/layout/page/page.tsx +15 -11
- package/dist/r/src/components/layout/panel/panel.tsx +1 -1
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +41 -28
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +4 -6
- package/dist/r/src/components/motion/presence.tsx +2 -2
- package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
- package/dist/r/src/components/theme/lazy.ts +1 -1
- package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
- package/dist/r/src/components/theme/theme-context.ts +3 -3
- package/dist/r/src/components/theme/theme-document.ts +22 -11
- package/dist/r/src/components/theme/theme-picker.tsx +5 -5
- package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
- package/dist/r/src/components/theme/theme-script.ts +20 -0
- package/dist/r/src/components/theme/theme-state.ts +7 -7
- package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
- package/dist/r/src/components/ui/alert/alert.tsx +4 -3
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/dist/r/src/components/ui/badge/badge.tsx +2 -2
- package/dist/r/src/components/ui/board/board.tsx +17 -5
- package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
- package/dist/r/src/components/ui/button/button.tsx +2 -2
- package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
- package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
- package/dist/r/src/components/ui/callout/callout.tsx +4 -4
- package/dist/r/src/components/ui/card/card.tsx +2 -2
- package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
- package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
- package/dist/r/src/components/ui/chart/chart.tsx +14 -1
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
- package/dist/r/src/components/ui/command/command.tsx +7 -7
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +25 -1
- package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
- package/dist/r/src/components/ui/empty/empty.tsx +1 -1
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/dist/r/src/components/ui/field/field.tsx +15 -7
- package/dist/r/src/components/ui/field/number-field.tsx +1 -1
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/dist/r/src/components/ui/item/item.tsx +24 -18
- package/dist/r/src/components/ui/kbd/kbd.tsx +55 -14
- package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/dist/r/src/components/ui/label/label.tsx +1 -1
- package/dist/r/src/components/ui/marker/marker.tsx +9 -5
- package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
- package/dist/r/src/components/ui/message/message.tsx +14 -13
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
- package/dist/r/src/components/ui/popover/popover.tsx +4 -2
- package/dist/r/src/components/ui/progress/progress.tsx +5 -3
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
- package/dist/r/src/components/ui/select/select.tsx +4 -4
- package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/dist/r/src/components/ui/slider/slider.tsx +1 -1
- package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/dist/r/src/components/ui/switch/switch.tsx +9 -6
- package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
- package/dist/r/src/components/ui/toast/toast.tsx +6 -4
- package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/dist/r/src/components/ui/tooltip/index.ts +1 -0
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/dist/r/src/components/ui/trace/trace.tsx +13 -9
- package/dist/r/src/components/ui/typography/typography.tsx +5 -5
- package/dist/r/src/lib/accent-presets.ts +1 -1
- package/dist/r/src/lib/accent-roles.ts +2 -2
- package/dist/r/src/lib/appearance-font-settings.ts +18 -7
- package/dist/r/src/lib/create-poll.ts +150 -0
- package/dist/r/src/lib/font-zoom.ts +3 -3
- package/dist/r/src/lib/keyed-rows.ts +3 -2
- package/dist/r/src/lib/overlay.ts +6 -6
- package/dist/r/src/lib/preference-store.ts +2 -2
- package/dist/r/src/lib/safe-script.ts +2 -2
- package/dist/r/src/lib/scroll-geometry.ts +1 -1
- package/dist/r/src/lib/text.ts +1 -1
- package/dist/r/src/lib/theme-accents.ts +3 -3
- package/dist/r/src/lib/theme-css.ts +2 -2
- package/dist/r/src/lib/theme-defaults.ts +4 -4
- package/dist/r/src/lib/theme-engine-light.ts +2 -2
- package/dist/r/src/lib/theme-engine.ts +2 -2
- package/dist/r/src/lib/theme-projection.ts +2 -2
- package/dist/r/src/lib/theme-records.ts +2 -2
- package/dist/r/src/lib/theme-types.ts +1 -1
- package/dist/r/src/lib/themes.ts +14 -14
- package/dist/r/src/lib/tokens.ts +2 -2
- package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
- package/dist/r/src/lib/utils.ts +1 -1
- package/dist/r/src/lib/variants.ts +4 -4
- package/dist/r/src/lib/version-notes.ts +4 -4
- package/dist/r/src/styles/base.css +12 -43
- package/dist/r/src/styles/fonts.css +1 -1
- package/dist/r/src/styles/theme.css +35 -35
- package/dist/r/tooltip.json +5 -0
- package/dist/r/top-bar.json +1 -0
- package/package.json +2 -1
- package/registry.json +14 -0
- package/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/src/components/composites/action-button/action-button.tsx +124 -78
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/src/components/composites/chat/chat.tsx +15 -9
- package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/src/components/composites/context/context.tsx +2 -2
- package/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/src/components/composites/inline-citation/citation.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/src/components/composites/list-row/list-row.tsx +69 -73
- package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/src/components/composites/model-selector/model-selector.tsx +190 -14
- package/src/components/composites/model-selector/models.ts +2 -2
- package/src/components/composites/plan/plan.tsx +19 -11
- package/src/components/composites/queue/queue.tsx +5 -3
- package/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/src/components/composites/settings/settings.tsx +14 -6
- package/src/components/composites/sources/source.ts +1 -1
- package/src/components/composites/sources/sources.tsx +2 -2
- package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/src/components/composites/stat/stat.tsx +20 -16
- package/src/components/composites/subagent/subagent.tsx +6 -4
- package/src/components/composites/task/task.tsx +1 -1
- package/src/components/composites/terminal/ansi.ts +3 -3
- package/src/components/composites/terminal/terminal-model.ts +3 -3
- package/src/components/composites/terminal/terminal.tsx +24 -12
- package/src/components/composites/test-results/test-results-model.ts +4 -4
- package/src/components/composites/test-results/test-results.tsx +1 -1
- package/src/components/composites/tool/tool.tsx +4 -4
- package/src/components/composites/tree/tree.tsx +31 -15
- package/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/src/components/composites/update-dialog/index.ts +1 -0
- package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/src/components/conversation/busy-send-button.tsx +6 -2
- package/src/components/conversation/composer-menu.tsx +3 -3
- package/src/components/conversation/conversation-avatar.tsx +1 -1
- package/src/components/conversation/conversation-pane.tsx +8 -5
- package/src/components/conversation/conversation-surface.tsx +2 -2
- package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/src/components/conversation/message-composer.tsx +4 -6
- package/src/components/conversation/message-row.tsx +34 -26
- package/src/components/conversation/scroll-follow-core.ts +8 -8
- package/src/components/conversation/scroll-follow.ts +24 -8
- package/src/components/conversation/thread-panel.tsx +7 -3
- package/src/components/conversation/transcript-composition.tsx +4 -2
- package/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/src/components/layout/page/page.tsx +15 -11
- package/src/components/layout/panel/panel.tsx +1 -1
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/src/components/layout/side-rail/side-rail.tsx +41 -28
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/src/components/layout/top-bar/top-bar.tsx +4 -6
- package/src/components/motion/presence.tsx +2 -2
- package/src/components/theme/appearance-panel.tsx +5 -5
- package/src/components/theme/lazy.ts +1 -1
- package/src/components/theme/theme-catalogue-source.ts +2 -2
- package/src/components/theme/theme-context.ts +3 -3
- package/src/components/theme/theme-document.ts +22 -11
- package/src/components/theme/theme-picker.tsx +5 -5
- package/src/components/theme/theme-provider-value.ts +15 -3
- package/src/components/theme/theme-script.ts +20 -0
- package/src/components/theme/theme-state.ts +7 -7
- package/src/components/theme/theme-toggle.tsx +1 -1
- package/src/components/ui/alert/alert.tsx +4 -3
- package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/src/components/ui/badge/badge.tsx +2 -2
- package/src/components/ui/board/board.tsx +17 -5
- package/src/components/ui/bubble/bubble.tsx +6 -4
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/button-group/button-group.tsx +1 -1
- package/src/components/ui/calendar/calendar.tsx +2 -2
- package/src/components/ui/callout/callout.tsx +4 -4
- package/src/components/ui/card/card.tsx +2 -2
- package/src/components/ui/carousel/carousel.tsx +6 -6
- package/src/components/ui/chart/chart-options.ts +9 -9
- package/src/components/ui/chart/chart.tsx +14 -1
- package/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/src/components/ui/code-block/code-block.tsx +14 -7
- package/src/components/ui/command/command.tsx +7 -7
- package/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/src/components/ui/dialog/dialog-layer.tsx +25 -1
- package/src/components/ui/dialog/dialog.tsx +4 -3
- package/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/src/components/ui/drawer/drawer.tsx +3 -3
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/src/components/ui/empty/empty-state.tsx +23 -18
- package/src/components/ui/empty/empty.tsx +1 -1
- package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/src/components/ui/field/field.tsx +15 -7
- package/src/components/ui/field/number-field.tsx +1 -1
- package/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/src/components/ui/input-group/input-group.tsx +1 -1
- package/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/src/components/ui/item/item.tsx +24 -18
- package/src/components/ui/kbd/kbd.tsx +55 -14
- package/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/src/components/ui/label/label.tsx +1 -1
- package/src/components/ui/marker/marker.tsx +9 -5
- package/src/components/ui/menubar/menubar.tsx +2 -2
- package/src/components/ui/message/message.tsx +14 -13
- package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/src/components/ui/native-select/native-select.tsx +1 -1
- package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/src/components/ui/pagination/pagination.tsx +1 -1
- package/src/components/ui/popover/popover.tsx +4 -2
- package/src/components/ui/progress/progress.tsx +5 -3
- package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/src/components/ui/resizable/resizable.tsx +5 -5
- package/src/components/ui/select/select.tsx +4 -4
- package/src/components/ui/sheet/sheet.tsx +4 -3
- package/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/src/components/ui/slider/slider.tsx +1 -1
- package/src/components/ui/spinner/spinner.tsx +1 -1
- package/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/src/components/ui/switch/switch.tsx +9 -6
- package/src/components/ui/tabs/tabs.tsx +4 -4
- package/src/components/ui/textarea/textarea.tsx +1 -1
- package/src/components/ui/toast/toast.tsx +6 -4
- package/src/components/ui/toggle/toggle.tsx +1 -1
- package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/src/components/ui/tooltip/index.ts +1 -0
- package/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/src/components/ui/trace/trace.tsx +13 -9
- package/src/components/ui/typography/typography.tsx +5 -5
- package/src/index.ts +1 -0
- package/src/lib/accent-presets.ts +1 -1
- package/src/lib/accent-roles.ts +2 -2
- package/src/lib/appearance-font-settings.ts +18 -7
- package/src/lib/create-poll.ts +150 -0
- package/src/lib/font-zoom.ts +3 -3
- package/src/lib/keyed-rows.ts +3 -2
- package/src/lib/overlay.ts +6 -6
- package/src/lib/preference-store.ts +2 -2
- package/src/lib/safe-script.ts +2 -2
- package/src/lib/scroll-geometry.ts +1 -1
- package/src/lib/text.ts +1 -1
- package/src/lib/theme-accents.ts +3 -3
- package/src/lib/theme-css.ts +2 -2
- package/src/lib/theme-defaults.ts +4 -4
- package/src/lib/theme-engine-light.ts +2 -2
- package/src/lib/theme-engine.ts +2 -2
- package/src/lib/theme-projection.ts +2 -2
- package/src/lib/theme-records.ts +2 -2
- package/src/lib/theme-types.ts +1 -1
- package/src/lib/themes.ts +14 -14
- package/src/lib/tokens.ts +2 -2
- package/src/lib/tooltip-focus-gate.ts +11 -11
- package/src/lib/utils.ts +1 -1
- package/src/lib/variants.ts +4 -4
- package/src/lib/version-notes.ts +4 -4
- package/src/lint/index.ts +1 -1
- package/src/styles/base.css +12 -43
- package/src/styles/fonts.css +1 -1
- package/src/styles/theme.css +35 -35
- package/src/styles/themes/aardvark-blue.css +98 -0
- package/src/styles/themes/aardvark-ink.css +98 -0
- package/src/styles/themes/adea-dark-colorblind.css +98 -0
- package/src/styles/themes/adea-dark-high-contrast.css +98 -0
- package/src/styles/themes/adea-dark.css +47 -0
- package/src/styles/themes/adea-light-colorblind.css +141 -0
- package/src/styles/themes/adea-light-high-contrast.css +141 -0
- package/src/styles/themes/adea-light.css +47 -0
- package/src/styles/themes/ayu-light.css +141 -0
- package/src/styles/themes/ayu-mirage.css +98 -0
- package/src/styles/themes/ayu.css +98 -0
- package/src/styles/themes/catppuccin-frappe.css +98 -0
- package/src/styles/themes/catppuccin-latte.css +141 -0
- package/src/styles/themes/catppuccin-macchiato.css +98 -0
- package/src/styles/themes/catppuccin-mocha.css +98 -0
- package/src/styles/themes/dracula.css +98 -0
- package/src/styles/themes/everforest-dark.css +98 -0
- package/src/styles/themes/everforest-light.css +141 -0
- package/src/styles/themes/gruvbox-dark.css +98 -0
- package/src/styles/themes/gruvbox-light.css +141 -0
- package/src/styles/themes/kanagawa.css +98 -0
- package/src/styles/themes/monokai.css +98 -0
- package/src/styles/themes/nord-light.css +141 -0
- package/src/styles/themes/nord.css +98 -0
- package/src/styles/themes/one-dark.css +98 -0
- package/src/styles/themes/rosepine-dawn.css +141 -0
- package/src/styles/themes/rosepine-moon.css +98 -0
- package/src/styles/themes/rosepine.css +98 -0
- package/src/styles/themes/solarized-dark.css +98 -0
- package/src/styles/themes/solarized-light.css +141 -0
- package/src/styles/themes/tokyonight-day.css +141 -0
- package/src/styles/themes/tokyonight-night.css +98 -0
- package/src/styles/themes/tokyonight-storm.css +98 -0
- package/src/styles/themes/vesper.css +98 -0
|
@@ -80,16 +80,23 @@ export function createScrollFollow(options: {
|
|
|
80
80
|
holdIntent = true
|
|
81
81
|
return false
|
|
82
82
|
}
|
|
83
|
+
// Reported on every scroll event and resize pin, which is about once a frame
|
|
84
|
+
// while a turn streams. A host that stores it would re-render each time, so an
|
|
85
|
+
// unchanged position is not reported again.
|
|
86
|
+
let reportedTop = Number.NaN
|
|
87
|
+
let reportedFollowing: boolean | undefined
|
|
83
88
|
const reportPosition = () => {
|
|
84
|
-
if (scroller)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
if (!scroller) return
|
|
90
|
+
const top = scroller.scrollTop
|
|
91
|
+
const following = untrack(options.enabled) && stick
|
|
92
|
+
if (top === reportedTop && following === reportedFollowing) return
|
|
93
|
+
reportedTop = top
|
|
94
|
+
reportedFollowing = following
|
|
95
|
+
untrack(() => options.onPositionChange?.({ top, following }))
|
|
91
96
|
}
|
|
92
97
|
onCleanup(reportPosition)
|
|
98
|
+
let unbindScroller: (() => void) | undefined
|
|
99
|
+
onCleanup(() => unbindScroller?.())
|
|
93
100
|
|
|
94
101
|
const rememberPosition = (element: HTMLDivElement) => {
|
|
95
102
|
endRow = content?.lastElementChild ?? null
|
|
@@ -273,6 +280,9 @@ export function createScrollFollow(options: {
|
|
|
273
280
|
contentObserver?.disconnect()
|
|
274
281
|
})
|
|
275
282
|
stick = true
|
|
283
|
+
// A new transcript (or re-enable) reports its first position even when it
|
|
284
|
+
// equals the last one the previous transcript reported.
|
|
285
|
+
reportedTop = Number.NaN
|
|
276
286
|
holdGeneration += 1
|
|
277
287
|
holds = 0
|
|
278
288
|
holdFollowing = false
|
|
@@ -362,7 +372,9 @@ export function createScrollFollow(options: {
|
|
|
362
372
|
|
|
363
373
|
if (!initial && enabled) writePin(scroller, bottomTarget(geometry(scroller)))
|
|
364
374
|
else if (initial && stick) writePin(scroller, bottomTarget(geometry(scroller)))
|
|
365
|
-
|
|
375
|
+
// Untracked: a new threshold changes what counts as the bottom from now on,
|
|
376
|
+
// it is not a reason to reset following and pin the reader to the end.
|
|
377
|
+
setAtBottom(computeAtBottom(geometry(scroller), untrack(options.threshold)))
|
|
366
378
|
reportPosition()
|
|
367
379
|
observe()
|
|
368
380
|
})
|
|
@@ -373,9 +385,13 @@ export function createScrollFollow(options: {
|
|
|
373
385
|
jump,
|
|
374
386
|
hold,
|
|
375
387
|
bindScroller: (element: HTMLDivElement) => {
|
|
388
|
+
unbindScroller?.()
|
|
376
389
|
scroller = element
|
|
377
390
|
for (const type of READER_INPUT_EVENTS)
|
|
378
391
|
element.addEventListener(type, noteReaderInput, { passive: true })
|
|
392
|
+
unbindScroller = () => {
|
|
393
|
+
for (const type of READER_INPUT_EVENTS) element.removeEventListener(type, noteReaderInput)
|
|
394
|
+
}
|
|
379
395
|
},
|
|
380
396
|
bindContent: (element: HTMLDivElement) => {
|
|
381
397
|
content = element
|
|
@@ -81,7 +81,9 @@ export function ThreadPanel(props: ThreadPanelProps) {
|
|
|
81
81
|
</header>
|
|
82
82
|
|
|
83
83
|
<Show when={local.root}>
|
|
84
|
-
|
|
84
|
+
{(rootSlot) => (
|
|
85
|
+
<div class="bg-muted/40 shrink-0 border-b border-border px-3 py-2">{rootSlot()}</div>
|
|
86
|
+
)}
|
|
85
87
|
</Show>
|
|
86
88
|
|
|
87
89
|
{/* The replies carry their own inline padding: a row brings only `px-1`, so
|
|
@@ -97,7 +99,7 @@ export function ThreadPanel(props: ThreadPanelProps) {
|
|
|
97
99
|
</div>
|
|
98
100
|
|
|
99
101
|
<Show when={local.composer}>
|
|
100
|
-
<div class="shrink-0 border-t border-border p-2">{
|
|
102
|
+
{(composerSlot) => <div class="shrink-0 border-t border-border p-2">{composerSlot()}</div>}
|
|
101
103
|
</Show>
|
|
102
104
|
</aside>
|
|
103
105
|
)
|
|
@@ -144,7 +146,9 @@ export function AttachmentCard(props: AttachmentCardProps) {
|
|
|
144
146
|
<span class="flex min-w-0 flex-col">
|
|
145
147
|
<span class="truncate text-xs font-medium">{local.name}</span>
|
|
146
148
|
<Show when={local.detail}>
|
|
147
|
-
|
|
149
|
+
{(detailSlot) => (
|
|
150
|
+
<span class="text-muted-foreground truncate text-2xs">{detailSlot()}</span>
|
|
151
|
+
)}
|
|
148
152
|
</Show>
|
|
149
153
|
</span>
|
|
150
154
|
</button>
|
|
@@ -370,7 +370,7 @@ function TranscriptRowEntry<T>(props: {
|
|
|
370
370
|
<div
|
|
371
371
|
id={id()}
|
|
372
372
|
data-slot="transcript-row-content"
|
|
373
|
-
class="group-data-[density=comfortable]/transcript:flex group-data-[density=comfortable]/transcript:flex-col"
|
|
373
|
+
class="group-data-[transcript-density=comfortable]/transcript:flex group-data-[transcript-density=comfortable]/transcript:flex-col"
|
|
374
374
|
hidden={collapsed()}
|
|
375
375
|
aria-hidden={collapsed() || undefined}
|
|
376
376
|
>
|
|
@@ -496,7 +496,9 @@ export function TranscriptComposition<T>(props: TranscriptCompositionProps<T>) {
|
|
|
496
496
|
<div
|
|
497
497
|
data-slot="transcript-composition"
|
|
498
498
|
data-fold-state={foldState()}
|
|
499
|
-
data-density
|
|
499
|
+
/* Its own name: a bare `data-density` matches the theme's global compact
|
|
500
|
+
ladder and shrank every control inside the transcript by one rung. */
|
|
501
|
+
data-transcript-density={local.density ?? 'compact'}
|
|
500
502
|
class={cn('group/transcript flex w-full min-w-0 flex-col gap-1', local.class)}
|
|
501
503
|
{...rest}
|
|
502
504
|
>
|
|
@@ -12,7 +12,7 @@ import { cn } from '../../../lib/utils'
|
|
|
12
12
|
* Its whole job is to be the *one* place that decides the geometry, so two
|
|
13
13
|
* applications built on this library cannot disagree about how tall the top bar
|
|
14
14
|
* is or where the content begins. Every dimension comes from a token — not from
|
|
15
|
-
* a class on a child
|
|
15
|
+
* a class on a child, which is why the regions do not accept a height.
|
|
16
16
|
*
|
|
17
17
|
* Both apps are desktop shells, so the arrangement is height-locked: the shell
|
|
18
18
|
* fills the viewport, each region scrolls internally, and the document itself
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps } from 'solid-js'
|
|
2
|
-
import { splitProps } from 'solid-js'
|
|
2
|
+
import { children as resolveChildren, splitProps } from 'solid-js'
|
|
3
3
|
import { cn } from '../../../lib/utils'
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -13,6 +13,7 @@ import { cn } from '../../../lib/utils'
|
|
|
13
13
|
export function SkipLink(props: ComponentProps<'a'>) {
|
|
14
14
|
const [local, rest] = splitProps(props, ['class', 'children', 'href', 'tabIndex'])
|
|
15
15
|
|
|
16
|
+
const label = resolveChildren(() => local.children)
|
|
16
17
|
return (
|
|
17
18
|
<a
|
|
18
19
|
data-slot="skip-link"
|
|
@@ -29,7 +30,7 @@ export function SkipLink(props: ComponentProps<'a'>) {
|
|
|
29
30
|
tabIndex={local.tabIndex ?? 0}
|
|
30
31
|
{...rest}
|
|
31
32
|
>
|
|
32
|
-
{
|
|
33
|
+
{label() ?? 'Skip to main content'}
|
|
33
34
|
</a>
|
|
34
35
|
)
|
|
35
36
|
}
|
|
@@ -91,19 +91,23 @@ export function PageSection(
|
|
|
91
91
|
{...rest}
|
|
92
92
|
>
|
|
93
93
|
<Show when={local.title}>
|
|
94
|
-
|
|
95
|
-
<div class="flex
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
{
|
|
100
|
-
|
|
94
|
+
{(titleSlot) => (
|
|
95
|
+
<div class="flex items-baseline justify-between gap-3">
|
|
96
|
+
<div class="flex min-w-0 flex-col gap-0.5">
|
|
97
|
+
<Heading size="section">{titleSlot()}</Heading>
|
|
98
|
+
<Show when={local.description}>
|
|
99
|
+
{(descriptionSlot) => (
|
|
100
|
+
<p class="max-w-prose text-sm text-muted-foreground text-pretty">
|
|
101
|
+
{descriptionSlot()}
|
|
102
|
+
</p>
|
|
103
|
+
)}
|
|
104
|
+
</Show>
|
|
105
|
+
</div>
|
|
106
|
+
<Show when={local.action}>
|
|
107
|
+
{(actionSlot) => <div class="flex shrink-0 items-center gap-2">{actionSlot()}</div>}
|
|
101
108
|
</Show>
|
|
102
109
|
</div>
|
|
103
|
-
|
|
104
|
-
<div class="flex shrink-0 items-center gap-2">{local.action}</div>
|
|
105
|
-
</Show>
|
|
106
|
-
</div>
|
|
110
|
+
)}
|
|
107
111
|
</Show>
|
|
108
112
|
{local.children}
|
|
109
113
|
</section>
|
|
@@ -51,9 +51,26 @@ export function PixelResizeHandle(props: PixelResizeHandleProps) {
|
|
|
51
51
|
startValue: number
|
|
52
52
|
handle: HTMLElement
|
|
53
53
|
}>()
|
|
54
|
+
// Pointer moves are applied once per frame: each `onChange` relays out the
|
|
55
|
+
// shell, and pointer events can arrive faster than frames (WebKit does not align
|
|
56
|
+
// them). Ending the gesture applies the last pending value first.
|
|
57
|
+
let pendingMove: number | undefined
|
|
58
|
+
let moveFrame: number | undefined
|
|
59
|
+
const flushMove = () => {
|
|
60
|
+
if (moveFrame !== undefined) cancelAnimationFrame(moveFrame)
|
|
61
|
+
moveFrame = undefined
|
|
62
|
+
const next = pendingMove
|
|
63
|
+
pendingMove = undefined
|
|
64
|
+
if (next !== undefined) move(next)
|
|
65
|
+
}
|
|
66
|
+
const scheduleMove = (next: number) => {
|
|
67
|
+
pendingMove = next
|
|
68
|
+
if (moveFrame === undefined) moveFrame = requestAnimationFrame(flushMove)
|
|
69
|
+
}
|
|
54
70
|
const endPointer = (shouldCommit: boolean) => {
|
|
55
71
|
const current = drag()
|
|
56
72
|
if (!current) return
|
|
73
|
+
flushMove()
|
|
57
74
|
setDrag(undefined)
|
|
58
75
|
if (current.handle.hasPointerCapture(current.pointerId))
|
|
59
76
|
current.handle.releasePointerCapture(current.pointerId)
|
|
@@ -125,8 +142,11 @@ export function PixelResizeHandle(props: PixelResizeHandleProps) {
|
|
|
125
142
|
return
|
|
126
143
|
}
|
|
127
144
|
const delta = (event.clientX - current.startX) * (isRight() ? -1 : 1)
|
|
128
|
-
|
|
145
|
+
scheduleMove(bounded(current.startValue + delta))
|
|
129
146
|
}}
|
|
147
|
+
// A press that lands in a text selection would start a native drag of it,
|
|
148
|
+
// and the browser cancels the pointer gesture for that drag.
|
|
149
|
+
onDragStart={(event) => event.preventDefault()}
|
|
130
150
|
onPointerUp={(event) => {
|
|
131
151
|
if (event.pointerId === drag()?.pointerId) endPointer(true)
|
|
132
152
|
}}
|
|
@@ -3,7 +3,7 @@ import { createContext, useContext } from 'solid-js'
|
|
|
3
3
|
/**
|
|
4
4
|
* The side rail's collapse state, shared with its items.
|
|
5
5
|
*
|
|
6
|
-
* A rail has two forms
|
|
6
|
+
* A rail has two forms, icon-only and labelled, and every item has to agree
|
|
7
7
|
* about which is showing. Threading a `collapsed` prop through each item would
|
|
8
8
|
* work in a demo and break in practice, because an app composes its rail from
|
|
9
9
|
* several components (a brand, a section, a footer) and would have to remember
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { Polymorphic, type PolymorphicProps } from '@kobalte/core/polymorphic'
|
|
2
2
|
import type { ComponentProps, JSX, ValidComponent } from 'solid-js'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
children as resolveChildren,
|
|
5
|
+
Show,
|
|
6
|
+
createMemo,
|
|
7
|
+
createSignal,
|
|
8
|
+
splitProps,
|
|
9
|
+
useContext,
|
|
10
|
+
} from 'solid-js'
|
|
4
11
|
import { Portal } from 'solid-js/web'
|
|
5
12
|
import { tooltipTip } from '../../../lib/overlay'
|
|
6
13
|
import { cn } from '../../../lib/utils'
|
|
14
|
+
import { KbdChord } from '../../ui/kbd'
|
|
7
15
|
import { SideRailContext } from './side-rail-context'
|
|
8
16
|
|
|
9
17
|
/**
|
|
@@ -121,9 +129,11 @@ export function SideRailSection(props: ComponentProps<'div'> & { label?: string
|
|
|
121
129
|
return (
|
|
122
130
|
<div data-slot="side-rail-section" class={cn('flex flex-col gap-0.5', local.class)} {...rest}>
|
|
123
131
|
<Show when={local.label}>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
132
|
+
{(labelSlot) => (
|
|
133
|
+
<div class="text-sidebar-muted-foreground px-2 pt-2 pb-1 text-2xs font-medium tracking-wide uppercase group-data-[collapsed=true]/rail:hidden">
|
|
134
|
+
{labelSlot()}
|
|
135
|
+
</div>
|
|
136
|
+
)}
|
|
127
137
|
</Show>
|
|
128
138
|
{local.children}
|
|
129
139
|
</div>
|
|
@@ -218,9 +228,7 @@ function RailTip(props: {
|
|
|
218
228
|
</span>
|
|
219
229
|
{props.label}
|
|
220
230
|
<Show when={props.shortcut}>
|
|
221
|
-
<
|
|
222
|
-
{props.shortcut}
|
|
223
|
-
</span>
|
|
231
|
+
{(shortcut) => <KbdChord keys={shortcut()} class="shrink-0" />}
|
|
224
232
|
</Show>
|
|
225
233
|
</div>
|
|
226
234
|
</Portal>
|
|
@@ -300,6 +308,7 @@ export function SideRailItem<T extends ValidComponent = 'a'>(props: SideRailItem
|
|
|
300
308
|
])
|
|
301
309
|
|
|
302
310
|
const tip = createRailTip()
|
|
311
|
+
const trailing = resolveChildren(() => local.trailing)
|
|
303
312
|
|
|
304
313
|
return (
|
|
305
314
|
<>
|
|
@@ -340,25 +349,28 @@ export function SideRailItem<T extends ValidComponent = 'a'>(props: SideRailItem
|
|
|
340
349
|
* the rail's edge.
|
|
341
350
|
*/}
|
|
342
351
|
<Show when={local.badge}>
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
352
|
+
{(badgeSlot) => (
|
|
353
|
+
<span
|
|
354
|
+
data-slot="side-rail-badge"
|
|
355
|
+
class="flex shrink-0 items-center justify-center group-data-[collapsed=true]/rail:absolute group-data-[collapsed=true]/rail:end-1/2 group-data-[collapsed=true]/rail:top-1/2 group-data-[collapsed=true]/rail:-me-3.5 group-data-[collapsed=true]/rail:-mt-3.5"
|
|
356
|
+
>
|
|
357
|
+
{badgeSlot()}
|
|
358
|
+
</span>
|
|
359
|
+
)}
|
|
349
360
|
</Show>
|
|
350
361
|
|
|
351
|
-
<Show when={
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
362
|
+
<Show when={trailing() === undefined && local.shortcut}>
|
|
363
|
+
{(shortcut) => (
|
|
364
|
+
<KbdChord
|
|
365
|
+
keys={shortcut()}
|
|
366
|
+
size="compact"
|
|
367
|
+
class="shrink-0 opacity-0 transition-opacity group-hover/rail-item:opacity-100 group-focus-visible/rail-item:opacity-100 group-data-[collapsed=true]/rail:hidden"
|
|
368
|
+
/>
|
|
369
|
+
)}
|
|
358
370
|
</Show>
|
|
359
371
|
|
|
360
|
-
<Show when={
|
|
361
|
-
<span class="ms-auto shrink-0">{
|
|
372
|
+
<Show when={trailing()}>
|
|
373
|
+
{(trailingSlot) => <span class="ms-auto shrink-0">{trailingSlot()}</span>}
|
|
362
374
|
</Show>
|
|
363
375
|
</Polymorphic>
|
|
364
376
|
|
|
@@ -410,12 +422,13 @@ export function SideRailButton(
|
|
|
410
422
|
{local.label}
|
|
411
423
|
</span>
|
|
412
424
|
<Show when={local.shortcut}>
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
425
|
+
{(shortcut) => (
|
|
426
|
+
<KbdChord
|
|
427
|
+
keys={shortcut()}
|
|
428
|
+
size="compact"
|
|
429
|
+
class="shrink-0 opacity-0 transition-opacity group-hover/rail-item:opacity-100 group-focus-visible/rail-item:opacity-100 group-data-[collapsed=true]/rail:hidden"
|
|
430
|
+
/>
|
|
431
|
+
)}
|
|
419
432
|
</Show>
|
|
420
433
|
</button>
|
|
421
434
|
|
|
@@ -252,15 +252,17 @@ export function SidebarNavSection(props: SidebarNavSectionProps) {
|
|
|
252
252
|
</Show>
|
|
253
253
|
</Polymorphic>
|
|
254
254
|
<Show when={local.action}>
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
'
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
255
|
+
{(actionSlot) => (
|
|
256
|
+
<span
|
|
257
|
+
data-slot="sidebar-nav-section-action"
|
|
258
|
+
class={cn('shrink-0', {
|
|
259
|
+
'opacity-0 transition-opacity ease-out group-hover/section-header:opacity-100 focus-within:opacity-100 [@media(any-pointer:coarse)]:opacity-100':
|
|
260
|
+
local.actionVisibility !== 'always',
|
|
261
|
+
})}
|
|
262
|
+
>
|
|
263
|
+
{actionSlot()}
|
|
264
|
+
</span>
|
|
265
|
+
)}
|
|
264
266
|
</Show>
|
|
265
267
|
</div>
|
|
266
268
|
<Show when={!local.collapsible || open()}>
|
|
@@ -294,12 +296,14 @@ export function SidebarNavRow(props: SidebarNavRowProps) {
|
|
|
294
296
|
>
|
|
295
297
|
{local.children}
|
|
296
298
|
<Show when={local.actions}>
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
{(actionsSlot) => (
|
|
300
|
+
<span
|
|
301
|
+
data-slot="sidebar-nav-row-actions"
|
|
302
|
+
class="ms-auto flex shrink-0 items-center gap-0.5 opacity-0 transition-opacity ease-out group-hover/sidebar-nav-row:opacity-100 group-focus-within/sidebar-nav-row:opacity-100 has-[[aria-haspopup=menu][aria-expanded=true]]:opacity-100 has-[[aria-haspopup=true][aria-expanded=true]]:opacity-100 [@media(any-pointer:coarse)]:opacity-100"
|
|
303
|
+
>
|
|
304
|
+
{actionsSlot()}
|
|
305
|
+
</span>
|
|
306
|
+
)}
|
|
303
307
|
</Show>
|
|
304
308
|
</div>
|
|
305
309
|
)
|
|
@@ -354,7 +358,9 @@ export function SidebarNavItem<T extends ValidComponent = 'a'>(props: SidebarNav
|
|
|
354
358
|
>
|
|
355
359
|
{local.children}
|
|
356
360
|
<Show when={local.trailing}>
|
|
357
|
-
|
|
361
|
+
{(trailingSlot) => (
|
|
362
|
+
<span class="ms-auto flex shrink-0 items-center gap-1">{trailingSlot()}</span>
|
|
363
|
+
)}
|
|
358
364
|
</Show>
|
|
359
365
|
</Polymorphic>
|
|
360
366
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSignal, type Accessor, type JSX } from 'solid-js'
|
|
1
|
+
import { createSignal, onCleanup, type Accessor, type JSX } from 'solid-js'
|
|
2
2
|
import {
|
|
3
3
|
clampSplitRatio,
|
|
4
4
|
listLeaves,
|
|
@@ -41,8 +41,29 @@ export default function SplitLayoutResizeController<L extends SplitLayoutLeaf>(
|
|
|
41
41
|
const next = clampSplitRatio(ratio)
|
|
42
42
|
if (Math.abs(next - props.branch().ratio) > 0.000001) props.onResize(props.branch().id, next)
|
|
43
43
|
}
|
|
44
|
+
// Pointer moves are measured and applied once per frame: each resize relays out
|
|
45
|
+
// the split, and reading the container's box right after the previous event's
|
|
46
|
+
// write forced a layout per event. Ending the drag applies the last position.
|
|
47
|
+
let pendingPoint: { x: number; y: number } | undefined
|
|
48
|
+
let moveFrame: number | undefined
|
|
49
|
+
const flushMove = () => {
|
|
50
|
+
if (moveFrame !== undefined) cancelAnimationFrame(moveFrame)
|
|
51
|
+
moveFrame = undefined
|
|
52
|
+
const point = pendingPoint
|
|
53
|
+
pendingPoint = undefined
|
|
54
|
+
const element = container()
|
|
55
|
+
if (!point || !element) return
|
|
56
|
+
const box = element.getBoundingClientRect()
|
|
57
|
+
const size = horizontal() ? box.width : box.height
|
|
58
|
+
if (size <= 0) return
|
|
59
|
+
resizeTo((horizontal() ? point.x - box.left : point.y - box.top) / size)
|
|
60
|
+
}
|
|
61
|
+
onCleanup(() => {
|
|
62
|
+
if (moveFrame !== undefined) cancelAnimationFrame(moveFrame)
|
|
63
|
+
})
|
|
44
64
|
const stopDrag = (handle: HTMLElement, event: PointerEvent) => {
|
|
45
65
|
if (activePointer !== event.pointerId) return
|
|
66
|
+
flushMove()
|
|
46
67
|
activePointer = undefined
|
|
47
68
|
handle.removeAttribute('data-dragging')
|
|
48
69
|
if (handle.hasPointerCapture(event.pointerId)) handle.releasePointerCapture(event.pointerId)
|
|
@@ -96,12 +117,9 @@ export default function SplitLayoutResizeController<L extends SplitLayoutLeaf>(
|
|
|
96
117
|
event.preventDefault()
|
|
97
118
|
}}
|
|
98
119
|
onPointerMove={(event) => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const size = horizontal() ? box.width : box.height
|
|
103
|
-
if (size <= 0) return
|
|
104
|
-
resizeTo((horizontal() ? event.clientX - box.left : event.clientY - box.top) / size)
|
|
120
|
+
if (activePointer !== event.pointerId || !container()) return
|
|
121
|
+
pendingPoint = { x: event.clientX, y: event.clientY }
|
|
122
|
+
if (moveFrame === undefined) moveFrame = requestAnimationFrame(flushMove)
|
|
105
123
|
}}
|
|
106
124
|
onPointerUp={(event) => stopDrag(event.currentTarget, event)}
|
|
107
125
|
onPointerCancel={(event) => stopDrag(event.currentTarget, event)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSignal, type Accessor, type JSX } from 'solid-js'
|
|
1
|
+
import { createSignal, onCleanup, type Accessor, type JSX } from 'solid-js'
|
|
2
2
|
import {
|
|
3
3
|
clampSplitRatio,
|
|
4
4
|
listLeaves,
|
|
@@ -41,8 +41,29 @@ export default function SplitLayoutResizeController<L extends SplitLayoutLeaf>(
|
|
|
41
41
|
const next = clampSplitRatio(ratio)
|
|
42
42
|
if (Math.abs(next - props.branch().ratio) > 0.000001) props.onResize(props.branch().id, next)
|
|
43
43
|
}
|
|
44
|
+
// Pointer moves are measured and applied once per frame: each resize relays out
|
|
45
|
+
// the split, and reading the container's box right after the previous event's
|
|
46
|
+
// write forced a layout per event. Ending the drag applies the last position.
|
|
47
|
+
let pendingPoint: { x: number; y: number } | undefined
|
|
48
|
+
let moveFrame: number | undefined
|
|
49
|
+
const flushMove = () => {
|
|
50
|
+
if (moveFrame !== undefined) cancelAnimationFrame(moveFrame)
|
|
51
|
+
moveFrame = undefined
|
|
52
|
+
const point = pendingPoint
|
|
53
|
+
pendingPoint = undefined
|
|
54
|
+
const element = container()
|
|
55
|
+
if (!point || !element) return
|
|
56
|
+
const box = element.getBoundingClientRect()
|
|
57
|
+
const size = horizontal() ? box.width : box.height
|
|
58
|
+
if (size <= 0) return
|
|
59
|
+
resizeTo((horizontal() ? point.x - box.left : point.y - box.top) / size)
|
|
60
|
+
}
|
|
61
|
+
onCleanup(() => {
|
|
62
|
+
if (moveFrame !== undefined) cancelAnimationFrame(moveFrame)
|
|
63
|
+
})
|
|
44
64
|
const stopDrag = (handle: HTMLElement, event: PointerEvent) => {
|
|
45
65
|
if (activePointer !== event.pointerId) return
|
|
66
|
+
flushMove()
|
|
46
67
|
activePointer = undefined
|
|
47
68
|
handle.removeAttribute('data-dragging')
|
|
48
69
|
if (handle.hasPointerCapture(event.pointerId)) handle.releasePointerCapture(event.pointerId)
|
|
@@ -96,12 +117,9 @@ export default function SplitLayoutResizeController<L extends SplitLayoutLeaf>(
|
|
|
96
117
|
event.preventDefault()
|
|
97
118
|
}}
|
|
98
119
|
onPointerMove={(event) => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const size = horizontal() ? box.width : box.height
|
|
103
|
-
if (size <= 0) return
|
|
104
|
-
resizeTo((horizontal() ? event.clientX - box.left : event.clientY - box.top) / size)
|
|
120
|
+
if (activePointer !== event.pointerId || !container()) return
|
|
121
|
+
pendingPoint = { x: event.clientX, y: event.clientY }
|
|
122
|
+
if (moveFrame === undefined) moveFrame = requestAnimationFrame(flushMove)
|
|
105
123
|
}}
|
|
106
124
|
onPointerUp={(event) => stopDrag(event.currentTarget, event)}
|
|
107
125
|
onPointerCancel={(event) => stopDrag(event.currentTarget, event)}
|
|
@@ -435,7 +435,9 @@ export function SplitLayout<L extends SplitLayoutLeaf>(props: SplitLayoutProps<L
|
|
|
435
435
|
<For each={leaves().map((leaf) => leaf.id)}>
|
|
436
436
|
{(id) => {
|
|
437
437
|
const initial = leafMap().get(id)!
|
|
438
|
-
|
|
438
|
+
// A memo: the map is rebuilt on every resize tick, but the leaf object
|
|
439
|
+
// only changes when the leaf does, so the host's renderers stay quiet.
|
|
440
|
+
const leaf = createMemo(() => leafMap().get(id) ?? initial)
|
|
439
441
|
const content = props.renderLeaf(leaf)
|
|
440
442
|
const paneLabel = props.renderPaneLabel?.(leaf)
|
|
441
443
|
const actions = props.renderPaneActions?.(leaf)
|
|
@@ -586,7 +588,9 @@ export function SplitLayout<L extends SplitLayoutLeaf>(props: SplitLayoutProps<L
|
|
|
586
588
|
<For each={branches().map((branch) => branch.id)}>
|
|
587
589
|
{(id) => {
|
|
588
590
|
const initial = branchMap().get(id)!
|
|
589
|
-
const branch: Accessor<SplitLayoutBranch<L>> = (
|
|
591
|
+
const branch: Accessor<SplitLayoutBranch<L>> = createMemo(
|
|
592
|
+
() => branchMap().get(id) ?? initial
|
|
593
|
+
)
|
|
590
594
|
const rect = () => frames().get(id)?.rect ?? { x: 0, y: 0, width: 0, height: 0 }
|
|
591
595
|
return (
|
|
592
596
|
<Show
|
|
@@ -8,7 +8,7 @@ import { cn } from '../../../lib/utils'
|
|
|
8
8
|
* The thin strip pinned to the bottom of the window. Its purpose is to hold
|
|
9
9
|
* *ambient* facts the user checks without acting: connection state, branch,
|
|
10
10
|
* counts, the current mode. Anything interactive belongs in the top bar or a
|
|
11
|
-
* pane
|
|
11
|
+
* pane, a status bar is read, not operated, and a control here is one the user
|
|
12
12
|
* will not find.
|
|
13
13
|
*
|
|
14
14
|
* Height comes from `--statusbar-height`, so a pane's bottom padding can
|
|
@@ -3,6 +3,7 @@ import { Show, splitProps } from 'solid-js'
|
|
|
3
3
|
import { Search } from 'lucide-solid'
|
|
4
4
|
import { callHandler } from '../../../lib/events'
|
|
5
5
|
import { cn } from '../../../lib/utils'
|
|
6
|
+
import { KbdChord } from '../../ui/kbd'
|
|
6
7
|
import { windowChromeClass, type WindowChromeProps } from './window-chrome'
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -186,12 +187,9 @@ export function TopBarSearch(props: TopBarSearchProps) {
|
|
|
186
187
|
<Search aria-hidden="true" class="size-4 shrink-0 sm:hidden" />
|
|
187
188
|
<span class="sr-only sm:not-sr-only sm:truncate">{local.placeholder ?? 'Search'}</span>
|
|
188
189
|
<Show when={local.shortcut}>
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
>
|
|
193
|
-
{local.shortcut}
|
|
194
|
-
</kbd>
|
|
190
|
+
{(shortcut) => (
|
|
191
|
+
<KbdChord keys={shortcut()} class="ms-auto hidden shrink-0 sm:inline-flex" />
|
|
192
|
+
)}
|
|
195
193
|
</Show>
|
|
196
194
|
</button>
|
|
197
195
|
)
|
|
@@ -5,7 +5,7 @@ import { Presence as MotionPresence } from 'solid-motionone'
|
|
|
5
5
|
* Presence.
|
|
6
6
|
*
|
|
7
7
|
* Enter and exit animation with a guarantee the CSS approach cannot make: an exit
|
|
8
|
-
* that is **interrupted
|
|
8
|
+
* that is **interrupted**, a menu reopened while it is still closing, returns the
|
|
9
9
|
* element to its shown state instead of finishing the close and then reopening,
|
|
10
10
|
* which is what a class-based `animate-out` does and what makes a fast user's
|
|
11
11
|
* interactions feel like the interface is lagging behind them.
|
|
@@ -27,7 +27,7 @@ import { Presence as MotionPresence } from 'solid-motionone'
|
|
|
27
27
|
* </Presence>
|
|
28
28
|
*
|
|
29
29
|
* `Presence` goes *outside* the condition: it has to outlive the `<Show>`'s child
|
|
30
|
-
* to keep that child mounted until its exit finishes. It takes only two booleans
|
|
30
|
+
* to keep that child mounted until its exit finishes. It takes only two booleans,
|
|
31
31
|
* `initial={false}` skips the enter animation on first render, `exitBeforeEnter`
|
|
32
32
|
* holds a replacement back until the outgoing element has left. The animation
|
|
33
33
|
* itself lives on the `Motion.*` element, which must be the direct child of the
|
|
@@ -20,19 +20,19 @@ import { Heading } from '../ui/typography'
|
|
|
20
20
|
*
|
|
21
21
|
* The appearance page, as a component rather than as a screen each application
|
|
22
22
|
* draws for itself. Two applications that both let a user choose a theme should
|
|
23
|
-
* offer the *same* choices in the *same* arrangement
|
|
23
|
+
* offer the *same* choices in the *same* arrangement, otherwise "Adea" and
|
|
24
24
|
* "Cortana" are two products that happen to share a component library, which is
|
|
25
25
|
* the opposite of what this system is for.
|
|
26
26
|
*
|
|
27
27
|
* Four axes, in the order a user thinks about them:
|
|
28
28
|
*
|
|
29
|
-
* 1. **Appearance
|
|
30
|
-
* 2. **Themes
|
|
29
|
+
* 1. **Appearance**: light, dark, or follow the system.
|
|
30
|
+
* 2. **Themes**: one for each appearance. Both are shown at once, because the
|
|
31
31
|
* choice is per-appearance and hiding the other half makes it feel like one
|
|
32
32
|
* setting that keeps changing.
|
|
33
|
-
* 3. **Accent
|
|
33
|
+
* 3. **Accent**: adea's presets, then the accents the selected theme pair
|
|
34
34
|
* carries itself, layered on whichever theme is active.
|
|
35
|
-
* 4. **Fonts
|
|
35
|
+
* 4. **Fonts**: separate families and sizes for interface, content and code.
|
|
36
36
|
*
|
|
37
37
|
* The panel reads and writes the provider's preference and keeps no state of its
|
|
38
38
|
* own, so it cannot disagree with what is applied. Its themes are the provider's, so
|
|
@@ -7,7 +7,7 @@ import { ThemeProviderWith, type ThemeProviderProps } from './theme-provider-val
|
|
|
7
7
|
*
|
|
8
8
|
* Everything here is free of the 34-theme catalogue: `import` this entry instead of
|
|
9
9
|
* `@adea-ai/ui/components/theme` in a host that paints its theme from a stylesheet.
|
|
10
|
-
* See {@link ThemeProvider} for the rules and
|
|
10
|
+
* See {@link ThemeProvider} for the rules and the package README for the setup.
|
|
11
11
|
*/
|
|
12
12
|
export * from './theme-api'
|
|
13
13
|
export { loadThemeCatalogue } from './theme-catalogue-source'
|