@adea-ai/ui 0.152.4 → 0.153.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/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 +4 -4
- 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 +35 -34
- 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 +7 -7
- 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 +2 -2
- package/dist/components/ui/kbd/kbd.js +2 -2
- 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 +5 -5
- package/dist/lib/overlay.js +5 -5
- 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/registry.json +11 -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 +4 -4
- 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 +38 -22
- 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 +8 -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 +27 -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 +2 -2
- 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 +5 -5
- 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/package.json +2 -1
- package/registry.json +11 -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 +4 -4
- 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 +38 -22
- 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 +8 -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 +27 -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 +2 -2
- 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 +5 -5
- 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
|
@@ -34,6 +34,8 @@ type FocusCycle = {
|
|
|
34
34
|
closed: boolean
|
|
35
35
|
focusMovedOutside: boolean
|
|
36
36
|
closeAutoFocusScheduled: boolean
|
|
37
|
+
/** The restore deadline passed: stop waiting on the opener after the frame that is due. */
|
|
38
|
+
deadlinePassed: boolean
|
|
37
39
|
frame?: number
|
|
38
40
|
fallbackTimer?: number
|
|
39
41
|
observer?: MutationObserver
|
|
@@ -76,6 +78,9 @@ function anotherLayerOpen(content: HTMLElement, opener: HTMLElement): boolean {
|
|
|
76
78
|
* The focus-return half of the layer rules, for a layer whose open state is
|
|
77
79
|
* `open`. Returns the autofocus handlers to give the Kobalte content.
|
|
78
80
|
*/
|
|
81
|
+
/** How long a closed layer may wait for its opener to become focusable again. */
|
|
82
|
+
const FOCUS_RESTORE_DEADLINE_MS = 1000
|
|
83
|
+
|
|
79
84
|
export function createDialogFocusReturn(
|
|
80
85
|
open: Accessor<boolean>,
|
|
81
86
|
options: DialogLayerOptions
|
|
@@ -137,9 +142,17 @@ export function createDialogFocusReturn(
|
|
|
137
142
|
return
|
|
138
143
|
}
|
|
139
144
|
|
|
145
|
+
// Nothing to restore: stop watching the document now.
|
|
146
|
+
if (!cycle.openerEligible) {
|
|
147
|
+
finishFocusCycle(cycle)
|
|
148
|
+
return
|
|
149
|
+
}
|
|
140
150
|
// Kobalte removes the `inert` / `aria-hidden` it put on the background
|
|
141
151
|
// only after the layer unmounts; the observer below brings us back here.
|
|
142
|
-
if (opener.closest('[inert], [aria-hidden="true"]'))
|
|
152
|
+
if (opener.closest('[inert], [aria-hidden="true"]')) {
|
|
153
|
+
if (cycle.deadlinePassed) finishFocusCycle(cycle)
|
|
154
|
+
return
|
|
155
|
+
}
|
|
143
156
|
if (cycle.openerEligible && canRestoreFocus(opener)) {
|
|
144
157
|
opener.focus({ preventScroll: true })
|
|
145
158
|
}
|
|
@@ -167,6 +180,7 @@ export function createDialogFocusReturn(
|
|
|
167
180
|
closed: false,
|
|
168
181
|
focusMovedOutside: false,
|
|
169
182
|
closeAutoFocusScheduled: false,
|
|
183
|
+
deadlinePassed: false,
|
|
170
184
|
onFocusIn: (focusEvent) => {
|
|
171
185
|
const target = focusEvent.target
|
|
172
186
|
if (
|
|
@@ -218,6 +232,18 @@ export function createDialogFocusReturn(
|
|
|
218
232
|
subtree: true,
|
|
219
233
|
})
|
|
220
234
|
scheduleFocusRestore(cycle)
|
|
235
|
+
// The observer watches every mutation in the document. If the opener stays
|
|
236
|
+
// under an `inert` or `aria-hidden` that is not this layer's, nothing above
|
|
237
|
+
// finishes the cycle, and a streaming page would schedule a frame per DOM
|
|
238
|
+
// change for good. Kobalte clears its own markers within a frame or two.
|
|
239
|
+
// The deadline stops the watching, not a restore already asked for: a busy
|
|
240
|
+
// or throttled page (WebKit under load) can hold the frame past it.
|
|
241
|
+
cycle.fallbackTimer = window.setTimeout(() => {
|
|
242
|
+
cycle.fallbackTimer = undefined
|
|
243
|
+
cycle.deadlinePassed = true
|
|
244
|
+
cycle.observer?.disconnect()
|
|
245
|
+
if (cycle.frame === undefined) finishFocusCycle(cycle)
|
|
246
|
+
}, FOCUS_RESTORE_DEADLINE_MS)
|
|
221
247
|
}
|
|
222
248
|
|
|
223
249
|
onCleanup(() => {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
// AlertDialog assigns to the shared DialogRoot.Content object, so these named exports stay role-stable.
|
|
7
7
|
import { X } from 'lucide-solid'
|
|
8
8
|
import type { Accessor, ComponentProps, JSX } from 'solid-js'
|
|
9
|
-
import { Show, splitProps } from 'solid-js'
|
|
9
|
+
import { children as resolveChildren, Show, splitProps } from 'solid-js'
|
|
10
10
|
import {
|
|
11
11
|
dialogSurface,
|
|
12
12
|
overlayCornerClose,
|
|
@@ -122,6 +122,7 @@ export function DialogContent(props: DialogContentProps) {
|
|
|
122
122
|
onCloseAutoFocus: (event) => local.onCloseAutoFocus?.(event),
|
|
123
123
|
})
|
|
124
124
|
|
|
125
|
+
const closeButton = resolveChildren(() => local.closeButton)
|
|
125
126
|
return (
|
|
126
127
|
<KobalteDialog.Portal>
|
|
127
128
|
<DialogOverlay />
|
|
@@ -140,7 +141,7 @@ export function DialogContent(props: DialogContentProps) {
|
|
|
140
141
|
>
|
|
141
142
|
<DialogEscapeTarget onEscapeKeyDown={props.onEscapeKeyDown}>
|
|
142
143
|
{local.children}
|
|
143
|
-
<Show when={
|
|
144
|
+
<Show when={closeButton() !== false}>
|
|
144
145
|
{/* The corner close is icon-only, so it carries the shared tooltip
|
|
145
146
|
treatment. */}
|
|
146
147
|
<Tooltip>
|
|
@@ -150,7 +151,7 @@ export function DialogContent(props: DialogContentProps) {
|
|
|
150
151
|
aria-label={local.closeLabel ?? 'Close'}
|
|
151
152
|
class={overlayCornerClose}
|
|
152
153
|
>
|
|
153
|
-
{
|
|
154
|
+
{closeButton() ?? <X class="size-4" />}
|
|
154
155
|
</TooltipTrigger>
|
|
155
156
|
<TooltipContent>
|
|
156
157
|
{local.closeLabel ? `${local.closeLabel}.` : 'Close dialog.'}
|
|
@@ -10,7 +10,7 @@ import { cn } from '../../../lib/utils'
|
|
|
10
10
|
* fix from a caller: whether a line is an addition, a deletion, a hunk header,
|
|
11
11
|
* a file header, or context depends on state — a line beginning with `+++` is a
|
|
12
12
|
* file header *before* the first hunk and an added line beginning with `++`
|
|
13
|
-
* *inside* one
|
|
13
|
+
* *inside* one, and a renderer that tested prefixes without that state would
|
|
14
14
|
* mis-colour real patches.
|
|
15
15
|
*
|
|
16
16
|
* The line grammar:
|
|
@@ -25,13 +25,13 @@ import { cn } from '../../../lib/utils'
|
|
|
25
25
|
* | anything else, including a leading space | context |
|
|
26
26
|
*
|
|
27
27
|
* Tones are pairs of surface and text, so an addition is readable in both
|
|
28
|
-
* polarities and with any accent
|
|
28
|
+
* polarities and with any accent, the greens and reds are the theme's own
|
|
29
29
|
* `success` and `destructive` at low alpha, not fixed hexes. Colour is never the
|
|
30
30
|
* only signal: the gutter carries `+` or `-` as well, which is what makes the
|
|
31
31
|
* block usable in greyscale and by anyone who cannot separate the two hues.
|
|
32
32
|
*
|
|
33
33
|
* Split (side-by-side) view is deliberately not implemented. It is a different
|
|
34
|
-
* layout algorithm
|
|
34
|
+
* layout algorithm, pairing deletions with additions across hunks, and a
|
|
35
35
|
* half-correct one is worse than none. `view="unified"` is the only value, and
|
|
36
36
|
* the prop exists so that adding the second is not a breaking change.
|
|
37
37
|
*/
|
|
@@ -58,7 +58,7 @@ const HUNK_HEADER = /^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/
|
|
|
58
58
|
* `headerState` is what makes `---` and `+++` unambiguous: git writes them as
|
|
59
59
|
* file headers before the first `@@` and as content after it, and the two need
|
|
60
60
|
* different tones. `oldLine`/`newLine` are tracked so the gutter can number both
|
|
61
|
-
* sides
|
|
61
|
+
* sides, the numbers a reader uses to find the change in their editor.
|
|
62
62
|
*/
|
|
63
63
|
export function parseDiff(patch: string): readonly DiffLine[] {
|
|
64
64
|
const lines: DiffLine[] = []
|
|
@@ -134,8 +134,8 @@ export function diffStats(
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* The target path from a unified diff's file header. Prefers `+++ b/<path
|
|
138
|
-
* git's explicit new-side marker
|
|
137
|
+
* The target path from a unified diff's file header. Prefers `+++ b/<path>`,
|
|
138
|
+
* git's explicit new-side marker, and skips `/dev/null`, which marks an added
|
|
139
139
|
* or deleted side rather than naming a file. Only lines outside a hunk are
|
|
140
140
|
* considered, for the same reason the parser tracks state.
|
|
141
141
|
*/
|
|
@@ -9,12 +9,12 @@ import { cn } from '../../../lib/utils'
|
|
|
9
9
|
*
|
|
10
10
|
* A sheet the user can drag away: it opens from an edge, carries a handle, and
|
|
11
11
|
* closes by swipe as well as by button. That drag affordance is the reason to
|
|
12
|
-
* choose it over Sheet
|
|
12
|
+
* choose it over Sheet, the gesture is for content the user is *finishing*
|
|
13
13
|
* with (a summary, a queue, a confirmation), not for browsing.
|
|
14
14
|
*
|
|
15
15
|
* On a large window a Drawer is usually the wrong control: dragging is a touch
|
|
16
16
|
* idiom, and on a desktop the same content is better as a Sheet or a Dialog.
|
|
17
|
-
* The exceptions are the surfaces a pointer also drags naturally
|
|
17
|
+
* The exceptions are the surfaces a pointer also drags naturally, a bottom
|
|
18
18
|
* console, a media panel.
|
|
19
19
|
*
|
|
20
20
|
* corvu supplies the drag physics, the snap points and the pointer capture.
|
|
@@ -55,7 +55,7 @@ export type DrawerContentProps = Omit<ComponentProps<typeof DrawerPrimitive.Cont
|
|
|
55
55
|
*
|
|
56
56
|
* It is an affordance, not the drag target: corvu makes the whole sheet
|
|
57
57
|
* draggable, exactly as the platform's own sheets behave. So this is
|
|
58
|
-
* `aria-hidden` decoration that tells the user the sheet can be pulled
|
|
58
|
+
* `aria-hidden` decoration that tells the user the sheet can be pulled, it
|
|
59
59
|
* carries no behaviour and must not be the only thing that moves.
|
|
60
60
|
*/
|
|
61
61
|
withHandle?: boolean
|
|
@@ -34,8 +34,8 @@ type DropdownMenuTriggerPointerEvent = HandlerEvent<
|
|
|
34
34
|
* selected value needs the field-style control, and Popover for arbitrary
|
|
35
35
|
* content.
|
|
36
36
|
*
|
|
37
|
-
* Kobalte supplies the full menu contract
|
|
38
|
-
* highlight, Escape to close and return focus
|
|
37
|
+
* Kobalte supplies the full menu contract, arrow keys, typeahead, the roving
|
|
38
|
+
* highlight, Escape to close and return focus, which is exactly what a
|
|
39
39
|
* hand-rolled `div` with click handlers gets wrong.
|
|
40
40
|
* Menus are nonmodal by default so their generated focus guards do not become
|
|
41
41
|
* invalid direct children of the ARIA menu. Set `modal` explicitly when the
|
|
@@ -45,7 +45,7 @@ type DropdownMenuTriggerPointerEvent = HandlerEvent<
|
|
|
45
45
|
* highlighted tint while keeping its label on the body foreground. Pairing it
|
|
46
46
|
* with an AlertDialog is the caller's job.
|
|
47
47
|
*
|
|
48
|
-
* An item that opens something else
|
|
48
|
+
* An item that opens something else, a dialog, a sheet, passes it as
|
|
49
49
|
* `onSelectAfterClose`, which runs once the menu has closed and returned focus
|
|
50
50
|
* to its trigger, so the next layer captures the trigger as the control to
|
|
51
51
|
* return to.
|
|
@@ -178,7 +178,7 @@ export function DropdownMenuTrigger(props: ComponentProps<typeof KobalteDropdown
|
|
|
178
178
|
trigger.focus({ preventScroll: true })
|
|
179
179
|
// Focusing first is not enough in WebKit: the press's default mousedown
|
|
180
180
|
// action runs afterwards and moves focus off a button to the nearest
|
|
181
|
-
// focusable ancestor
|
|
181
|
+
// focusable ancestor, inside a dialog, the dialog, so the menu that
|
|
182
182
|
// just opened still reads focus leaving it and closes. Cancelling the
|
|
183
183
|
// default keeps focus where it was put.
|
|
184
184
|
if (event.pointerType !== 'touch') event.preventDefault()
|
|
@@ -266,7 +266,7 @@ export type DropdownMenuContentProps = ComponentProps<typeof KobalteDropdownMenu
|
|
|
266
266
|
/**
|
|
267
267
|
* Kept for callers that hid the arrow explicitly; the arrow is now hidden by
|
|
268
268
|
* default. Pass `false` to draw one. The default flipped because Kobalte
|
|
269
|
-
* reserves half of the arrow's 30px box as popper gutter
|
|
269
|
+
* reserves half of the arrow's 30px box as popper gutter, a menu anchored to
|
|
270
270
|
* its trigger floated 15px off it, which read as a gap rather than as a
|
|
271
271
|
* pointer, and every anchored caller already passed `hideArrow`.
|
|
272
272
|
*/
|
|
@@ -378,7 +378,7 @@ const parts = createMenuParts(KobalteDropdownMenu, 'dropdown-menu')
|
|
|
378
378
|
export function DropdownMenuItem(
|
|
379
379
|
props: ComponentProps<typeof parts.Item> & {
|
|
380
380
|
/**
|
|
381
|
-
* Runs after the menu has closed and returned focus to its trigger
|
|
381
|
+
* Runs after the menu has closed and returned focus to its trigger, the
|
|
382
382
|
* place to open a dialog or sheet, which then returns focus to the trigger.
|
|
383
383
|
*/
|
|
384
384
|
onSelectAfterClose?: () => void
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import { cn } from '../../../lib/utils'
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* The rows and panels every Kobalte menu family draws alike
|
|
21
|
+
* The rows and panels every Kobalte menu family draws alike: DropdownMenu,
|
|
22
22
|
* ContextMenu and Menubar. Kobalte builds all three from the same menu
|
|
23
23
|
* primitives; each family passes its own namespace and keeps its own exported
|
|
24
24
|
* names, so a row looks and reads the same whichever menu it is in.
|
|
@@ -51,12 +51,12 @@ export type MenuItemProps<Item> = Item & {
|
|
|
51
51
|
shortcut?: string
|
|
52
52
|
/**
|
|
53
53
|
* The parseable chord behind `shortcut`, e.g. `Meta+E`. The drawn glyph is
|
|
54
|
-
* `aria-hidden
|
|
54
|
+
* `aria-hidden`, reading it out would pollute the item's accessible name,
|
|
55
55
|
* so this is what assistive technology announces instead. Supply it
|
|
56
56
|
* whenever `shortcut` is drawn.
|
|
57
57
|
*/
|
|
58
58
|
keyshortcuts?: string
|
|
59
|
-
/** Draw a leading colour dot from the shared tone ladder
|
|
59
|
+
/** Draw a leading colour dot from the shared tone ladder, the accent or
|
|
60
60
|
* status role the option's card badge carries. `aria-hidden`; the label
|
|
61
61
|
* carries the meaning. */
|
|
62
62
|
swatch?: MenuSwatchTone
|
|
@@ -132,7 +132,7 @@ export function createMenuParts(
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
// Selection indicators read in the accent, like every other selected state
|
|
135
|
-
// in the system
|
|
135
|
+
// in the system, a canvas-coloured mark on a checked row reads as decoration.
|
|
136
136
|
function CheckboxItem(
|
|
137
137
|
props: MenuChoiceItemProps<ComponentProps<typeof KobalteDropdownMenu.CheckboxItem>>
|
|
138
138
|
) {
|
|
@@ -176,7 +176,7 @@ export function createMenuParts(
|
|
|
176
176
|
* child of the group it names: Kobalte reads the group from context, so a
|
|
177
177
|
* label placed directly in the content throws `useMenuGroupContext must be
|
|
178
178
|
* used within a Menu.Group` the moment the menu opens. For an ungrouped
|
|
179
|
-
* caption, wrap the label and its items in a group anyway
|
|
179
|
+
* caption, wrap the label and its items in a group anyway, the grouping is
|
|
180
180
|
* what a screen reader announces.
|
|
181
181
|
*/
|
|
182
182
|
function Label(props: ComponentProps<typeof KobalteDropdownMenu.GroupLabel>) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Search } from 'lucide-solid'
|
|
2
2
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
3
|
-
import { Show, splitProps } from 'solid-js'
|
|
3
|
+
import { children as resolveChildren, Show, splitProps } from 'solid-js'
|
|
4
4
|
import { ActionButton } from '../../composites/action-button'
|
|
5
5
|
import { cn } from '../../../lib/utils'
|
|
6
6
|
import { Spinner } from '../spinner'
|
|
@@ -58,6 +58,7 @@ export function EmptyState(props: EmptyStateProps) {
|
|
|
58
58
|
'class',
|
|
59
59
|
])
|
|
60
60
|
|
|
61
|
+
const icon = resolveChildren(() => local.icon)
|
|
61
62
|
return (
|
|
62
63
|
<Empty
|
|
63
64
|
{...rest}
|
|
@@ -67,12 +68,12 @@ export function EmptyState(props: EmptyStateProps) {
|
|
|
67
68
|
aria-busy={local.busy || undefined}
|
|
68
69
|
>
|
|
69
70
|
<EmptyHeader>
|
|
70
|
-
<Show when={local.busy ||
|
|
71
|
+
<Show when={local.busy || icon()}>
|
|
71
72
|
<EmptyMedia variant="icon">
|
|
72
73
|
{local.busy ? (
|
|
73
74
|
<Spinner label={false} aria-hidden="true" />
|
|
74
75
|
) : (
|
|
75
|
-
(
|
|
76
|
+
(icon() ?? <Search aria-hidden="true" />)
|
|
76
77
|
)}
|
|
77
78
|
</EmptyMedia>
|
|
78
79
|
</Show>
|
|
@@ -84,23 +85,27 @@ export function EmptyState(props: EmptyStateProps) {
|
|
|
84
85
|
<Show when={local.action || local.secondaryAction}>
|
|
85
86
|
<EmptyContent class={cn({ 'flex-row flex-wrap justify-center': !!local.secondaryAction })}>
|
|
86
87
|
<Show when={local.action}>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
{(actionSlot) => (
|
|
89
|
+
<ActionButton
|
|
90
|
+
tooltip={local.actionTooltip ?? local.actionLabel ?? 'Try again'}
|
|
91
|
+
aria-label={local.actionLabel ?? 'Try again'}
|
|
92
|
+
onClick={actionSlot()}
|
|
93
|
+
>
|
|
94
|
+
{local.actionLabel ?? 'Try again'}
|
|
95
|
+
</ActionButton>
|
|
96
|
+
)}
|
|
94
97
|
</Show>
|
|
95
98
|
<Show when={local.secondaryAction}>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
{(secondaryActionSlot) => (
|
|
100
|
+
<ActionButton
|
|
101
|
+
variant="secondary"
|
|
102
|
+
tooltip={local.secondaryActionTooltip ?? local.secondaryActionLabel}
|
|
103
|
+
aria-label={local.secondaryActionLabel}
|
|
104
|
+
onClick={secondaryActionSlot()}
|
|
105
|
+
>
|
|
106
|
+
{local.secondaryActionLabel}
|
|
107
|
+
</ActionButton>
|
|
108
|
+
)}
|
|
104
109
|
</Show>
|
|
105
110
|
</EmptyContent>
|
|
106
111
|
</Show>
|
|
@@ -10,7 +10,7 @@ import { cn } from '../../../lib/utils'
|
|
|
10
10
|
* apps most often improvise: a bare grey sentence in one view and a centred
|
|
11
11
|
* illustration with two buttons in another.
|
|
12
12
|
*
|
|
13
|
-
* The shape is fixed
|
|
13
|
+
* The shape is fixed, media, title, description, actions, so the only
|
|
14
14
|
* decisions a caller makes are which parts to include. A region with an
|
|
15
15
|
* action to offer must give `EmptyContent` something focusable, otherwise the
|
|
16
16
|
* state is a dead end.
|
|
@@ -193,7 +193,11 @@ export function EntityIcon(props: EntityIconProps) {
|
|
|
193
193
|
{(src) => <EntityIconImage src={src} />}
|
|
194
194
|
</Show>
|
|
195
195
|
<Show when={local.badge}>
|
|
196
|
-
|
|
196
|
+
{(badgeSlot) => (
|
|
197
|
+
<span class="absolute right-0 bottom-0 translate-x-1/4 translate-y-1/4">
|
|
198
|
+
{badgeSlot()}
|
|
199
|
+
</span>
|
|
200
|
+
)}
|
|
197
201
|
</Show>
|
|
198
202
|
</span>
|
|
199
203
|
)
|
|
@@ -75,14 +75,18 @@ export function FormField(props: FormFieldProps) {
|
|
|
75
75
|
const help = () => (
|
|
76
76
|
<>
|
|
77
77
|
<Show when={local.hint}>
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
|
|
78
|
+
{(hintSlot) => (
|
|
79
|
+
<p id={descriptionId} class="text-muted-foreground text-sm">
|
|
80
|
+
{hintSlot()}
|
|
81
|
+
</p>
|
|
82
|
+
)}
|
|
81
83
|
</Show>
|
|
82
84
|
<Show when={local.error}>
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
|
|
85
|
+
{(errorSlot) => (
|
|
86
|
+
<p id={errorId} role="alert" class="text-foreground text-sm">
|
|
87
|
+
{errorSlot()}
|
|
88
|
+
</p>
|
|
89
|
+
)}
|
|
86
90
|
</Show>
|
|
87
91
|
</>
|
|
88
92
|
)
|
|
@@ -247,7 +251,11 @@ export function FieldSeparator(props: {
|
|
|
247
251
|
<div class={cn('relative flex items-center gap-3 py-1', local.class)} {...rest}>
|
|
248
252
|
<span class="bg-border h-px flex-1" />
|
|
249
253
|
<Show when={local.children}>
|
|
250
|
-
|
|
254
|
+
{(childrenSlot) => (
|
|
255
|
+
<span class="text-muted-foreground text-2xs tracking-wide uppercase">
|
|
256
|
+
{childrenSlot()}
|
|
257
|
+
</span>
|
|
258
|
+
)}
|
|
251
259
|
</Show>
|
|
252
260
|
<span class="bg-border h-px flex-1" />
|
|
253
261
|
</div>
|
|
@@ -54,7 +54,7 @@ const text = (value: number | null) => (value === null ? '' : String(value))
|
|
|
54
54
|
* A controlled numeric field that keeps an editable draft while validating
|
|
55
55
|
* range, integer and step constraints. Invalid drafts are announced and restored
|
|
56
56
|
* to the latest controlled value when focus leaves the input, so `onChange`
|
|
57
|
-
* only ever receives a value the field accepts
|
|
57
|
+
* only ever receives a value the field accepts, a caller never needs a
|
|
58
58
|
* `Number(value) || fallback` of its own. With `optional`, blank is accepted and
|
|
59
59
|
* reported as `null`.
|
|
60
60
|
*/
|
|
@@ -9,7 +9,7 @@ import { cn } from '../../../lib/utils'
|
|
|
9
9
|
*
|
|
10
10
|
* A rich preview shown on hover: a user's profile, a file's summary, a link's
|
|
11
11
|
* destination. The difference from Tooltip is that this may be hovered *into*
|
|
12
|
-
*
|
|
12
|
+
* the pointer can leave the trigger, cross the gap, and read the card.
|
|
13
13
|
*
|
|
14
14
|
* Because it only opens on hover, its content must also be reachable another
|
|
15
15
|
* way (clicking the trigger, for instance). A hover card that holds the only
|
|
@@ -9,7 +9,7 @@ import { cn } from '../../../lib/utils'
|
|
|
9
9
|
* A field with attached chrome: a leading icon, a unit, a trailing button, a
|
|
10
10
|
* clear affordance. The point of the component is that the adornments and the
|
|
11
11
|
* input share *one* border and *one* focus ring, so the group reads as a single
|
|
12
|
-
* control. Two separate elements side by side always drift
|
|
12
|
+
* control. Two separate elements side by side always drift, the ring appears
|
|
13
13
|
* on the wrong box, or the border doubles where they meet.
|
|
14
14
|
*
|
|
15
15
|
* The focus ring therefore lives on the group and follows `focus-within`. A
|
|
@@ -12,7 +12,7 @@ import { cn } from '../../../lib/utils'
|
|
|
12
12
|
*
|
|
13
13
|
* That split is the whole reason to use a component rather than six inputs. Six
|
|
14
14
|
* inputs cannot be pasted into, cannot be autofilled, and announce as six unrelated
|
|
15
|
-
* fields
|
|
15
|
+
* fields, every one of which is a defect a user hits on the first try.
|
|
16
16
|
*
|
|
17
17
|
* corvu supplies the value handling, the caret movement, the paste split and the
|
|
18
18
|
* keyboard behaviour.
|
|
@@ -83,26 +83,30 @@ export function Item(props: ItemProps) {
|
|
|
83
83
|
{...rest}
|
|
84
84
|
>
|
|
85
85
|
<Show when={local.media}>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
{(mediaSlot) => (
|
|
87
|
+
<span
|
|
88
|
+
data-slot="item-media"
|
|
89
|
+
class="flex size-8 shrink-0 items-center justify-center [&_svg]:size-4"
|
|
90
|
+
>
|
|
91
|
+
{mediaSlot()}
|
|
92
|
+
</span>
|
|
93
|
+
)}
|
|
92
94
|
</Show>
|
|
93
95
|
<div data-slot="item-body" class="flex min-w-0 flex-1 flex-col gap-0.5">
|
|
94
96
|
{local.children}
|
|
95
97
|
</div>
|
|
96
98
|
<Show when={local.trailing}>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
{(trailingSlot) => (
|
|
100
|
+
<span
|
|
101
|
+
data-slot="item-trailing"
|
|
102
|
+
class={cn('flex shrink-0 items-center gap-2', {
|
|
103
|
+
'@max-md/item:w-full @max-md/item:flex-wrap @max-md/item:justify-end':
|
|
104
|
+
local.stackTrailing,
|
|
105
|
+
})}
|
|
106
|
+
>
|
|
107
|
+
{trailingSlot()}
|
|
108
|
+
</span>
|
|
109
|
+
)}
|
|
106
110
|
</Show>
|
|
107
111
|
</div>
|
|
108
112
|
)
|
|
@@ -153,9 +157,11 @@ export function ItemGroup(
|
|
|
153
157
|
return (
|
|
154
158
|
<div data-slot="item-group" class={cn('flex flex-col gap-2', local.class)} {...rest}>
|
|
155
159
|
<Show when={local.label}>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
{(labelSlot) => (
|
|
161
|
+
<div class="text-muted-foreground text-2xs font-medium tracking-wide uppercase">
|
|
162
|
+
{labelSlot()}
|
|
163
|
+
</div>
|
|
164
|
+
)}
|
|
159
165
|
</Show>
|
|
160
166
|
<div role="list" aria-label={local.listLabel ?? local.label} class="flex flex-col gap-2">
|
|
161
167
|
{local.children}
|
|
@@ -10,7 +10,7 @@ import { cn } from '../../../lib/utils'
|
|
|
10
10
|
* `<kbd>` so the semantics survive copy-paste, and the mono face is what makes
|
|
11
11
|
* a shortcut visually distinct from the sentence around it.
|
|
12
12
|
*
|
|
13
|
-
* `size="compact"` exists for the dense rows a default cap would outweigh
|
|
13
|
+
* `size="compact"` exists for the dense rows a default cap would outweigh, a
|
|
14
14
|
* rail search row, a sidebar shortcut hint. It drops a height rung, and it
|
|
15
15
|
* lightens the fill and weight with it because at that size a solid muted cap
|
|
16
16
|
* reads heavier than the row text it sits in. The default rendering is every
|
|
@@ -90,7 +90,7 @@ export type KbdChordProps = Omit<ComponentProps<'span'>, 'children'> & {
|
|
|
90
90
|
* A written chord drawn as caps, one per character. Decoration only: the
|
|
91
91
|
* composition renders `aria-hidden`, so the accessible name and the parseable
|
|
92
92
|
* `aria-keyshortcuts` stay on the control the chord belongs to. That is why
|
|
93
|
-
* there is no children
|
|
93
|
+
* there is no children, the chord says what was drawn, nothing more.
|
|
94
94
|
*/
|
|
95
95
|
export function KbdChord(props: KbdChordProps) {
|
|
96
96
|
const [local, rest] = splitProps(props, ['keys', 'size', 'class'])
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Which modifier a chord should advertise.
|
|
3
3
|
*
|
|
4
4
|
* Every global chord in the product binds `(metaKey || ctrlKey)`, so the
|
|
5
|
-
* working key is the platform's command modifier wherever the app runs
|
|
5
|
+
* working key is the platform's command modifier wherever the app runs, but
|
|
6
6
|
* Apple platforms draw it as ⌘ and everyone else spells it Ctrl. A chord
|
|
7
7
|
* label drawn from anything else (a hardcoded ⌘, say) advertises a key that
|
|
8
8
|
* does not work as drawn on Windows and Linux.
|
|
9
9
|
*
|
|
10
10
|
* These helpers are the one place that decides the glyph, so every surface
|
|
11
|
-
* that draws or announces a shortcut
|
|
12
|
-
* field
|
|
11
|
+
* that draws or announces a shortcut, rail rows, menus, a pane's search
|
|
12
|
+
* field, draws the same one. They sit next to the `Kbd` caps because the
|
|
13
13
|
* glyph is a property of the drawing, not of the feature that shows it: a
|
|
14
14
|
* spelled-out `Ctrl` needs one cap per word (a `KbdGroup`), while `⌘K` can
|
|
15
15
|
* ride `KbdChord`'s one-cap-per-character split.
|
|
@@ -6,7 +6,7 @@ import { cn } from '../../../lib/utils'
|
|
|
6
6
|
* Label.
|
|
7
7
|
*
|
|
8
8
|
* A plain `<label>` rather than a Kobalte control. Kobalte has no standalone
|
|
9
|
-
* label primitive
|
|
9
|
+
* label primitive, its labels are parts of `TextField`, `Checkbox` and
|
|
10
10
|
* friends, and those parts carry the association wiring for *their* control.
|
|
11
11
|
* A free-standing label has to be the real element so the browser's native
|
|
12
12
|
* `for` → control association, click-to-focus, and `aria-labelledby` all keep
|
|
@@ -72,15 +72,19 @@ export function Marker(props: MarkerProps) {
|
|
|
72
72
|
</Show>
|
|
73
73
|
<span class="flex min-w-0 items-center gap-1.5">
|
|
74
74
|
<Show when={local.icon}>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
{(iconSlot) => (
|
|
76
|
+
<span aria-hidden="true" class="grid shrink-0 place-items-center [&_svg]:size-3.5">
|
|
77
|
+
{iconSlot()}
|
|
78
|
+
</span>
|
|
79
|
+
)}
|
|
78
80
|
</Show>
|
|
79
81
|
<span class="font-medium [overflow-wrap:anywhere]">{local.label}</span>
|
|
80
82
|
<Show when={local.description}>
|
|
81
|
-
|
|
83
|
+
{(descriptionSlot) => (
|
|
84
|
+
<span class="text-muted-foreground [overflow-wrap:anywhere]">{descriptionSlot()}</span>
|
|
85
|
+
)}
|
|
82
86
|
</Show>
|
|
83
|
-
<Show when={local.action}>{
|
|
87
|
+
<Show when={local.action}>{(actionSlot) => <>{actionSlot()}</>}</Show>
|
|
84
88
|
</span>
|
|
85
89
|
<Show when={rule()}>
|
|
86
90
|
<span aria-hidden="true" class="h-px min-w-4 flex-1 bg-border" />
|
|
@@ -8,7 +8,7 @@ import { createMenuParts, menuPanel } from '../dropdown-menu/menu-parts'
|
|
|
8
8
|
/**
|
|
9
9
|
* Menubar.
|
|
10
10
|
*
|
|
11
|
-
* A persistent row of menus at the top of a surface
|
|
11
|
+
* A persistent row of menus at the top of a surface, the desktop application
|
|
12
12
|
* pattern. Each trigger opens its own menu, and the arrow keys move *between*
|
|
13
13
|
* menus once one is open, which is what makes a menubar a single control rather
|
|
14
14
|
* than five menus that happen to be adjacent.
|
|
@@ -84,7 +84,7 @@ export const MenubarSubTrigger = parts.SubTrigger
|
|
|
84
84
|
export const MenubarSubContent = parts.SubContent
|
|
85
85
|
export {
|
|
86
86
|
/**
|
|
87
|
-
* One top-level menu: a trigger and the panel it opens. Required
|
|
87
|
+
* One top-level menu: a trigger and the panel it opens. Required, the
|
|
88
88
|
* menubar's arrow keys move *between* menus, which only works when each
|
|
89
89
|
* trigger belongs to a menu the bar knows about. `value` names it.
|
|
90
90
|
*/
|