@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
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { createEffect, createSignal, onCleanup, untrack, type Accessor } from 'solid-js'
|
|
2
|
+
import { isServer } from 'solid-js/web'
|
|
3
|
+
|
|
4
|
+
export type PollOptions = {
|
|
5
|
+
/** Run once as soon as the poll starts, before the first interval. Default `true`. */
|
|
6
|
+
immediate?: boolean
|
|
7
|
+
/**
|
|
8
|
+
* Keep polling while the document is hidden (a background tab, a minimised
|
|
9
|
+
* window). Default `false`: a hidden page pauses, and becoming visible again
|
|
10
|
+
* runs at once when an interval was missed, then resumes the schedule.
|
|
11
|
+
*/
|
|
12
|
+
whileHidden?: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type Poll = {
|
|
16
|
+
/** Run now, outside the schedule, and restart the interval from here. */
|
|
17
|
+
refresh: () => Promise<void>
|
|
18
|
+
/** Whether a run is in flight. */
|
|
19
|
+
running: Accessor<boolean>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A polling loop with the behaviour every hand-written one has to remember.
|
|
24
|
+
*
|
|
25
|
+
* - **Paused while hidden.** A background window does not wake the CPU or hit the
|
|
26
|
+
* network for data nobody can see; on return it catches up with one run.
|
|
27
|
+
* - **No overlap.** The next interval is scheduled after the previous run settles,
|
|
28
|
+
* so a slow request cannot stack up behind itself.
|
|
29
|
+
* - **Reactive interval.** `interval` may be an accessor; `false` (or `0`) stops the
|
|
30
|
+
* loop, and a new value reschedules it.
|
|
31
|
+
* - **Owned.** It stops with the owner that created it.
|
|
32
|
+
*
|
|
33
|
+
* A failed run is the task's business: a rejection is caught so the loop survives,
|
|
34
|
+
* and the next interval runs as usual.
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* const poll = createPoll(() => refetch(), 5_000)
|
|
38
|
+
* // after a user action that changes the data:
|
|
39
|
+
* void poll.refresh()
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export function createPoll(
|
|
43
|
+
task: () => unknown,
|
|
44
|
+
interval: number | false | Accessor<number | false>,
|
|
45
|
+
options: PollOptions = {}
|
|
46
|
+
): Poll {
|
|
47
|
+
const [running, setRunning] = createSignal(false)
|
|
48
|
+
const [hidden, setHidden] = createSignal(
|
|
49
|
+
!isServer && !options.whileHidden && typeof document !== 'undefined' && document.hidden
|
|
50
|
+
)
|
|
51
|
+
const period = typeof interval === 'function' ? interval : () => interval
|
|
52
|
+
let timer: ReturnType<typeof setTimeout> | undefined
|
|
53
|
+
let missed = false
|
|
54
|
+
let disposed = false
|
|
55
|
+
let inFlight: Promise<void> | undefined
|
|
56
|
+
|
|
57
|
+
const clear = () => {
|
|
58
|
+
if (timer !== undefined) clearTimeout(timer)
|
|
59
|
+
timer = undefined
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const schedule = () => {
|
|
63
|
+
clear()
|
|
64
|
+
const ms = untrack(period)
|
|
65
|
+
if (disposed || !ms || ms <= 0) return
|
|
66
|
+
timer = setTimeout(() => {
|
|
67
|
+
timer = undefined
|
|
68
|
+
if (untrack(hidden)) {
|
|
69
|
+
missed = true
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
void run()
|
|
73
|
+
}, ms)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const run = (): Promise<void> => {
|
|
77
|
+
if (inFlight) return inFlight
|
|
78
|
+
clear()
|
|
79
|
+
setRunning(true)
|
|
80
|
+
// The task starts synchronously; only its settling is awaited. A task that
|
|
81
|
+
// throws before returning is still a settled run, never a stuck one.
|
|
82
|
+
let result: unknown
|
|
83
|
+
try {
|
|
84
|
+
result = task()
|
|
85
|
+
} catch {
|
|
86
|
+
result = undefined
|
|
87
|
+
}
|
|
88
|
+
inFlight = Promise.resolve(result)
|
|
89
|
+
.catch(() => {
|
|
90
|
+
// The task reports its own failures; the loop keeps going.
|
|
91
|
+
})
|
|
92
|
+
.then(() => {
|
|
93
|
+
inFlight = undefined
|
|
94
|
+
if (!disposed) {
|
|
95
|
+
setRunning(false)
|
|
96
|
+
schedule()
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
return inFlight
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (!isServer && !options.whileHidden && typeof document !== 'undefined') {
|
|
103
|
+
const onVisibility = () => setHidden(document.hidden)
|
|
104
|
+
document.addEventListener('visibilitychange', onVisibility)
|
|
105
|
+
onCleanup(() => document.removeEventListener('visibilitychange', onVisibility))
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let started = false
|
|
109
|
+
let lastPeriod: number | false = false
|
|
110
|
+
let rescheduleOnVisible = false
|
|
111
|
+
createEffect(() => {
|
|
112
|
+
const ms = period()
|
|
113
|
+
const isHidden = hidden()
|
|
114
|
+
if (isServer) return
|
|
115
|
+
const periodChanged = ms !== lastPeriod
|
|
116
|
+
lastPeriod = ms
|
|
117
|
+
if (!ms || ms <= 0) {
|
|
118
|
+
clear()
|
|
119
|
+
return
|
|
120
|
+
}
|
|
121
|
+
if (!started) {
|
|
122
|
+
started = true
|
|
123
|
+
if (options.immediate === false || isHidden) {
|
|
124
|
+
// A start while hidden owes the immediate run to the first visible moment.
|
|
125
|
+
missed = isHidden && options.immediate !== false
|
|
126
|
+
schedule()
|
|
127
|
+
} else void run()
|
|
128
|
+
return
|
|
129
|
+
}
|
|
130
|
+
if (isHidden) {
|
|
131
|
+
// A new interval while hidden is owed a schedule on return: no timer may be
|
|
132
|
+
// pending (a `false` cleared it), and nothing else would start one.
|
|
133
|
+
if (periodChanged) rescheduleOnVisible = true
|
|
134
|
+
return
|
|
135
|
+
}
|
|
136
|
+
const reschedule = periodChanged || rescheduleOnVisible
|
|
137
|
+
rescheduleOnVisible = false
|
|
138
|
+
if (missed) {
|
|
139
|
+
missed = false
|
|
140
|
+
void run()
|
|
141
|
+
} else if (reschedule && !inFlight) schedule()
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
onCleanup(() => {
|
|
145
|
+
disposed = true
|
|
146
|
+
clear()
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
return { refresh: run, running }
|
|
150
|
+
}
|
package/src/lib/font-zoom.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The platform zoom chords, mapped onto Adea's three text roles.
|
|
6
6
|
*
|
|
7
|
-
* macOS (and Windows/Linux) zoom shortcuts
|
|
8
|
-
* `0
|
|
7
|
+
* macOS (and Windows/Linux) zoom shortcuts: Cmd/Ctrl with `=`, `+`, `-`, or
|
|
8
|
+
* `0`, normally scale the browser's page zoom. In Adea every text element is
|
|
9
9
|
* already tied to one of the three appearance font tiers (the UI tier drives
|
|
10
10
|
* the whole `text-*` scale through `--font-ui-scale`; content and code roles
|
|
11
11
|
* scale through their own tokens), so stepping those tiers reproduces zoom
|
|
@@ -49,7 +49,7 @@ export function fontZoomShortcut(event: {
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* Step every text tier by `delta` pixels, clamped to the range the appearance editor
|
|
52
|
-
* enforces. The axes move together
|
|
52
|
+
* enforces. The axes move together, that is what makes the chord read as zoom, and
|
|
53
53
|
* each keeps its own family choice.
|
|
54
54
|
*/
|
|
55
55
|
export function stepAppearanceFontSizes(
|
package/src/lib/keyed-rows.ts
CHANGED
|
@@ -24,7 +24,8 @@ export type KeyedRow<T> = Readonly<{ item: Accessor<T> }>
|
|
|
24
24
|
*
|
|
25
25
|
* `equals` decides whether a fresh item replaces the row's stored value. The
|
|
26
26
|
* default treats every new object as a change, which is correct for a projection
|
|
27
|
-
* whose fields are all rendered
|
|
27
|
+
* whose fields are all rendered; the same object passed again is not one, so a
|
|
28
|
+
* list that rebuilds its array around unchanged items updates no row. Pass a field-level comparator — a version
|
|
28
29
|
* stamp, a revision number — to skip redundant downstream updates entirely.
|
|
29
30
|
*
|
|
30
31
|
* ```tsx
|
|
@@ -52,7 +53,7 @@ export function keyedRows<T, K>(
|
|
|
52
53
|
const [holder, setHolder] = createSignal<readonly [T]>([item], {
|
|
53
54
|
equals:
|
|
54
55
|
equals === false
|
|
55
|
-
?
|
|
56
|
+
? (previousHolder, nextHolder) => previousHolder[0] === nextHolder[0]
|
|
56
57
|
: (previousHolder, nextHolder) => equals(previousHolder[0], nextHolder[0]),
|
|
57
58
|
})
|
|
58
59
|
entry = { row: { item: () => holder()[0] }, set: (nextItem) => setHolder([nextItem]) }
|
package/src/lib/overlay.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* These live here rather than in each component because the overlay family is
|
|
6
6
|
* where consistency is most visible and least likely to survive duplication.
|
|
7
7
|
* A dialog, a sheet and a dropdown that disagree about their border, radius,
|
|
8
|
-
* motion or shadow read as three different apps
|
|
8
|
+
* motion or shadow read as three different apps, and an app that adopts this
|
|
9
9
|
* library would inherit all three. Declaring the surface once is what makes
|
|
10
10
|
* "an overlay looks like this" a fact rather than a convention.
|
|
11
11
|
*/
|
|
@@ -23,8 +23,8 @@ export const overlaySurface =
|
|
|
23
23
|
*
|
|
24
24
|
* `--popover` is the catalogue's `surfaceElevated`, whose derivation amplifies
|
|
25
25
|
* the canvas hue's chroma on the elevated step. On the dark default's violet
|
|
26
|
-
* canvas that makes the dialog the most chromatic surface in the ladder
|
|
27
|
-
* `oklch(0.2406 0.0088 300.91)`, red above green in sRGB
|
|
26
|
+
* canvas that makes the dialog the most chromatic surface in the ladder,
|
|
27
|
+
* `oklch(0.2406 0.0088 300.91)`, red above green in sRGB, and on a full dialog
|
|
28
28
|
* panel that cast reads as a warm tint the canvas never has. shadcn's own
|
|
29
29
|
* convention already splits the two: a Dialog paints `bg-background`, menus and
|
|
30
30
|
* popovers paint `bg-popover`. The veil, the hairline and the elevation shadow
|
|
@@ -138,7 +138,7 @@ export const menuSeparator = 'bg-border -mx-1 my-1 h-px'
|
|
|
138
138
|
/**
|
|
139
139
|
* A leading colour swatch on a menu or select row: the sanctioned way to carry
|
|
140
140
|
* a card-tone colour into a list of options. The tones are the system's accent
|
|
141
|
-
* and status roles
|
|
141
|
+
* and status roles, the vocabulary a Badge already speaks, so the colour an
|
|
142
142
|
* option shows in a menu is the colour its badge carries on a card, and a
|
|
143
143
|
* caller never passes a raw colour into a list. The dot is `aria-hidden`; the
|
|
144
144
|
* label carries the meaning, so a tone is never the only signal.
|
|
@@ -164,7 +164,7 @@ export type MenuSwatchTone = NonNullable<VariantProps<typeof menuSwatchTone>['to
|
|
|
164
164
|
export const menuContentPadding = 'p-1'
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* Marks a floating layer
|
|
167
|
+
* Marks a floating layer, a menu, a listbox, a popover, as part of the top
|
|
168
168
|
* layer.
|
|
169
169
|
*
|
|
170
170
|
* A modal dialog hides everything outside itself from assistive technology
|
|
@@ -59,8 +59,8 @@ export type RecoveryEnvelope = Readonly<{
|
|
|
59
59
|
* Run `operation`, or answer `otherwise` if it throws.
|
|
60
60
|
*
|
|
61
61
|
* The one place a storage failure is swallowed. Storage throws for reasons outside
|
|
62
|
-
* the code
|
|
63
|
-
* not JSON
|
|
62
|
+
* the code, blocked by a sandbox or a privacy mode, full, or holding bytes that are
|
|
63
|
+
* not JSON, and a host's codec or persistence is code this system has not seen. In
|
|
64
64
|
* every case the preference is lost for the session and the switch that read or saved
|
|
65
65
|
* it still works.
|
|
66
66
|
*/
|
package/src/lib/safe-script.ts
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* there: it leaves `<` and `>` alone, so a value containing `</script>` ends the tag
|
|
7
7
|
* early and everything after it is parsed as HTML. That is the classic inline-script
|
|
8
8
|
* injection, and it is a real one even when the value is a developer-supplied prop
|
|
9
|
-
* rather than user input
|
|
9
|
+
* rather than user input, a prop can come from configuration, and a key that happens
|
|
10
10
|
* to contain a closing tag should not be able to execute.
|
|
11
11
|
*
|
|
12
12
|
* The escape is also correct JavaScript: `\u003c` is `<` to the parser, so the value
|
|
13
13
|
* is byte-identical at runtime and inert to the HTML tokenizer. `\u2028` and `\u2029`
|
|
14
|
-
* are escaped for the neighbouring reason
|
|
14
|
+
* are escaped for the neighbouring reason, they are legal inside a JSON string and
|
|
15
15
|
* were, before ES2019, line terminators to a JavaScript parser.
|
|
16
16
|
*
|
|
17
17
|
* CodeQL flags the unescaped form as `js/bad-code-sanitization`, which is how this
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ratios (0.67 CSS px at 150% zoom, 0.8 at 125%): the scroller's resting
|
|
18
18
|
* maximum scrollTop lands on a fractional value, so `|scrollTop - target|`
|
|
19
19
|
* stays just above 0.5 even when the viewport is visually pinned to the
|
|
20
|
-
* bottom
|
|
20
|
+
* bottom, making the pin re-fire on every ResizeObserver tick. Scaling the
|
|
21
21
|
* epsilon to the device pixel (never below 1 CSS px) absorbs that fractional
|
|
22
22
|
* resting error. `devicePixelRatio` is read defensively so a jsdom / SSR
|
|
23
23
|
* environment that leaves it undefined falls back to 1 (→ 1.5px).
|
package/src/lib/text.ts
CHANGED
|
@@ -34,7 +34,7 @@ function stripHidden(value: string): string {
|
|
|
34
34
|
* Untrusted text, made safe to lay out: hidden and direction-overriding
|
|
35
35
|
* characters removed, runs of whitespace (including newlines) collapsed to one
|
|
36
36
|
* space, and clipped to `limit` with an ellipsis. It is still only ever rendered
|
|
37
|
-
* as a text node
|
|
37
|
+
* as a text node, this is about length and spoofing, not escaping.
|
|
38
38
|
*/
|
|
39
39
|
export function boundText(value: string, limit: number): string {
|
|
40
40
|
// Clip before the regex passes so a multi-megabyte value costs a slice, not a scan.
|
package/src/lib/theme-accents.ts
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `@adea-ai/themes` offers two kinds of accent. The presets (`ACCENTS`) are brand
|
|
5
5
|
* colours, the same six on every theme. Since 0.9 the catalogue also offers the
|
|
6
|
-
* accent-shaped colours a theme carries itself
|
|
6
|
+
* accent-shaped colours a theme carries itself, its ANSI blue, magenta, cyan and
|
|
7
7
|
* green, paired across a light and a dark theme and kept only when they clear the
|
|
8
|
-
* catalogue's accent floors
|
|
8
|
+
* catalogue's accent floors, through `themeAccentPresets`. Those read as part of
|
|
9
9
|
* the palette rather than as visitors on it, which is why they are offered here.
|
|
10
10
|
*
|
|
11
11
|
* Their ids are role-shaped (`ansi-blue`), not value-shaped: a stored theme accent
|
|
12
12
|
* survives switching themes and resolves to the *new* theme's blue. That has one
|
|
13
13
|
* consequence a consumer must handle, and this module is where it is handled once:
|
|
14
14
|
* a stored theme accent may name a slot the current pair does not offer, and then
|
|
15
|
-
* it resolves to nothing and the theme's own primary applies
|
|
15
|
+
* it resolves to nothing and the theme's own primary applies, the same fallback a
|
|
16
16
|
* stale preset id gets.
|
|
17
17
|
*
|
|
18
18
|
* This module holds only the id test, and reads only the schema entry: the
|
package/src/lib/theme-css.ts
CHANGED
|
@@ -76,7 +76,7 @@ export function themeCssVariablesWith(
|
|
|
76
76
|
'--primary-foreground': c.primaryForeground,
|
|
77
77
|
/*
|
|
78
78
|
* The two tokens derived from the primary, and they are here rather than left to
|
|
79
|
-
* `theme.css` because they must follow `--primary
|
|
79
|
+
* `theme.css` because they must follow `--primary`, which this function writes
|
|
80
80
|
* for *any* theme in the catalogue, not just the two defaults `theme.css` carries.
|
|
81
81
|
*
|
|
82
82
|
* `--primary-hover` is a resolved colour, not a `color-mix()`: a uniform hover
|
|
@@ -87,7 +87,7 @@ export function themeCssVariablesWith(
|
|
|
87
87
|
* own, but its *strength* is per theme: `primarySubtleCss(record)` lowers the
|
|
88
88
|
* appearance ceiling only as far as this theme needs for body text to clear 4.5:1
|
|
89
89
|
* on the tint, over every surface, for every accent it offers. It has to be
|
|
90
|
-
* written per theme for that reason
|
|
90
|
+
* written per theme for that reason, the appearance-wide value is not legible on
|
|
91
91
|
* every palette.
|
|
92
92
|
*/
|
|
93
93
|
'--primary-hover': primaryHover(c.primary, theme.appearance),
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The catalogue (`@adea-ai/themes`, 34 themes) is the heavy part of the theme
|
|
6
6
|
* system. Most hosts start on the default pair, paint a catalogue theme from a
|
|
7
|
-
* stylesheet, and open a picker rarely, so the rules every layer applies
|
|
8
|
-
* engines, `lib/themes`, the persistence and the boot script
|
|
7
|
+
* stylesheet, and open a picker rarely, so the rules every layer applies, the
|
|
8
|
+
* engines, `lib/themes`, the persistence and the boot script, live here, beside the
|
|
9
9
|
* few catalogue facts they need: every catalogue id with its appearance and the
|
|
10
10
|
* default pair as complete variants.
|
|
11
11
|
*
|
|
@@ -97,8 +97,8 @@ export function storedThemeId(value: unknown, appearance: ThemeAppearance): stri
|
|
|
97
97
|
/**
|
|
98
98
|
* The variant a stored id means, or the default of the same appearance.
|
|
99
99
|
*
|
|
100
|
-
* An id the registry does not hold
|
|
101
|
-
* catalogue entry that was renamed
|
|
100
|
+
* An id the registry does not hold, an imported theme that was deleted, a
|
|
101
|
+
* catalogue entry that was renamed, must still paint *something of the appearance
|
|
102
102
|
* being shown*. Falling back to whichever variant happens to be first in the
|
|
103
103
|
* registry painted a dark palette under a light `color-scheme` for a light id, so
|
|
104
104
|
* the fallback is the appearance's own default, then any variant of that
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* with the provider, with no catalogue code or data (see `lib/theme-engine`).
|
|
4
4
|
*
|
|
5
5
|
* It always answers. Where the exact answer needs the catalogue it gives the one the
|
|
6
|
-
* shipped data supports
|
|
7
|
-
* measure, no theme accents for a pair it does not hold
|
|
6
|
+
* shipped data supports, the appearance's tint strength for a theme it cannot
|
|
7
|
+
* measure, no theme accents for a pair it does not hold, and calls `onIncomplete`,
|
|
8
8
|
* which is how the lazy provider learns to load the catalogue. Painting never relies
|
|
9
9
|
* on such an answer: the provider asks `needsCatalogue` first and waits.
|
|
10
10
|
*/
|
package/src/lib/theme-engine.ts
CHANGED
|
@@ -93,8 +93,8 @@ export function pairNeedsData(pair: ThemePair): boolean {
|
|
|
93
93
|
*
|
|
94
94
|
* True when the variant being shown, the pinned terminal theme, or (for a
|
|
95
95
|
* theme-derived `ansi-*` accent) either theme of the pair is a catalogue theme other
|
|
96
|
-
* than the two defaults. Everything else
|
|
97
|
-
* every preset and custom accent
|
|
96
|
+
* than the two defaults. Everything else, the default pair, a host's own variants,
|
|
97
|
+
* every preset and custom accent, the light engine answers from shipped data.
|
|
98
98
|
*/
|
|
99
99
|
export function needsCatalogue(
|
|
100
100
|
selection: ThemePair & { accent: string; terminalThemeId?: string },
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Adea imports user themes: a file is validated, repaired toward the readable floor,
|
|
5
5
|
* and projected onto the hex values the host persists. That projection is the
|
|
6
6
|
* catalogue's own (`shadcnVariables`, the xterm adapter, the editor roles), so it is
|
|
7
|
-
* re-exported here and the host depends on this package alone for it
|
|
7
|
+
* re-exported here and the host depends on this package alone for it, the pin
|
|
8
8
|
* between this package and `@adea-ai/themes` cannot drift from the host's.
|
|
9
9
|
*
|
|
10
10
|
* Its own module, with no catalogue data and no definition of its own beyond the two
|
|
@@ -43,7 +43,7 @@ export function defaultThemeRecord(appearance: 'light' | 'dark'): AdeaThemeRecor
|
|
|
43
43
|
/**
|
|
44
44
|
* The accents a light/dark pair of records carries itself, beside the presets.
|
|
45
45
|
*
|
|
46
|
-
* For a host whose pair is not in the catalogue
|
|
46
|
+
* For a host whose pair is not in the catalogue, an imported theme, where
|
|
47
47
|
* `themeAccentsFor` (which looks the pair up by id) cannot answer. A slot is offered
|
|
48
48
|
* only when both themes clear the catalogue's accent floors.
|
|
49
49
|
*/
|
package/src/lib/theme-records.ts
CHANGED
|
@@ -101,8 +101,8 @@ function provenanceOf(theme: AdeaThemeRecord): ThemeProvenance {
|
|
|
101
101
|
/**
|
|
102
102
|
* The design system's view of one catalogue record, built in full and at once.
|
|
103
103
|
*
|
|
104
|
-
* For a host that holds a record the catalogue does not
|
|
105
|
-
* reconstruction from stored data
|
|
104
|
+
* For a host that holds a record the catalogue does not, an imported theme, a
|
|
105
|
+
* reconstruction from stored data, and wants a variant it can hand to
|
|
106
106
|
* `ThemeProvider`'s `themes`. It throws for a record the shadcn projection cannot
|
|
107
107
|
* map, here and now, rather than on first paint. The catalogue itself goes through
|
|
108
108
|
* {@link lazyVariantFromRecord} instead.
|
package/src/lib/theme-types.ts
CHANGED
|
@@ -156,7 +156,7 @@ export type ThemeVariant = {
|
|
|
156
156
|
/**
|
|
157
157
|
* Custom properties written verbatim over `themeCssVariables`, last.
|
|
158
158
|
*
|
|
159
|
-
* For a variant a host built from data it does not control the derivation of
|
|
159
|
+
* For a variant a host built from data it does not control the derivation of,
|
|
160
160
|
* an imported theme whose painted colours must stay exactly what the user
|
|
161
161
|
* imported. The catalogue's own variants never carry it, so the derived roles
|
|
162
162
|
* stay the only source of truth for them.
|
package/src/lib/themes.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* the design system: the translation between the catalogue's **canonical** role
|
|
6
6
|
* names and the **shadcn** vocabulary every component here is written against, plus
|
|
7
7
|
* the handful of custom properties this system declares that are presentations of
|
|
8
|
-
* data the catalogue already holds
|
|
8
|
+
* data the catalogue already holds, the `--terminal-*` ramp, the `--editor-*` ramp,
|
|
9
9
|
* and `--chrome`.
|
|
10
10
|
*
|
|
11
11
|
* ## Why it is a bridge and not a copy
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* This file used to hold thirteen themes as hand-written hex literal tables, with its
|
|
14
14
|
* own contrast validator, its own terminal and editor palettes, and its own
|
|
15
15
|
* provenance records. That is a lot of surface to maintain for one consumer of a
|
|
16
|
-
* palette, and it meant every product that wanted the same themes
|
|
16
|
+
* palette, and it meant every product that wanted the same themes, Adea, Cortana,
|
|
17
17
|
* either imported this package or wrote its own. The catalogue moved out so that
|
|
18
18
|
* there is one answer to "what is Catppuccin Mocha", and this file is the part that
|
|
19
19
|
* genuinely belongs to the design system.
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
* The package-owned `shadcnVariables` adapter maps canonical roles onto this
|
|
28
28
|
* system's vocabulary. One entry will trip a reader: the catalogue's `accent`
|
|
29
29
|
* becomes this system's `primary`, because in the shadcn vocabulary `--primary` is
|
|
30
|
-
* the action colour
|
|
31
|
-
* in
|
|
30
|
+
* the action colour, the fill of a primary button, the thing a focus ring is drawn
|
|
31
|
+
* in, while `--accent` is a low-contrast hover wash. The catalogue's `accent` is
|
|
32
32
|
* the former, so it goes to `--primary`, and `--accent` is filled from
|
|
33
33
|
* `surfaceHover`, which is what shadcn components actually use it for.
|
|
34
34
|
*/
|
|
@@ -135,7 +135,7 @@ export function themeFamilies(): { family: string; label: string; themes: ThemeV
|
|
|
135
135
|
*
|
|
136
136
|
* {@link builtinThemes} is this system's projection of the catalogue onto the
|
|
137
137
|
* shadcn vocabulary, which is what a document is painted with. A *preview* of a
|
|
138
|
-
* theme
|
|
138
|
+
* theme, the miniatures `AppearanceEditor` and `ThemeMiniature` draw, reads the
|
|
139
139
|
* catalogue's own roles instead (`surfaceActive`, `borderMuted`, `textSubtle`…),
|
|
140
140
|
* several of which the projection folds together. These are those records, so a
|
|
141
141
|
* consumer hands the editor exactly what it takes rather than reconstructing it
|
|
@@ -154,7 +154,7 @@ function recordPair(pair: ThemePair) {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
* The accents the selected light/dark pair carries
|
|
157
|
+
* The accents the selected light/dark pair carries, offered beside the presets.
|
|
158
158
|
*
|
|
159
159
|
* Computed per pair rather than per theme because a theme accent is a *pair* of
|
|
160
160
|
* values, like a preset: a slot is offered only when both themes can offer it.
|
|
@@ -170,7 +170,7 @@ export function themeAccentsFor(
|
|
|
170
170
|
/**
|
|
171
171
|
* An accent id resolved against a theme pair: a preset, a theme accent the pair
|
|
172
172
|
* offers, or `undefined` for `theme`, an unknown id, or a slot this pair cannot
|
|
173
|
-
* offer
|
|
173
|
+
* offer, each of which means "use the theme's own primary".
|
|
174
174
|
*
|
|
175
175
|
* Theme accent ids are role-shaped (`ansi-blue`), so a stored one survives a theme
|
|
176
176
|
* switch and resolves to the new theme's blue; when the new pair cannot offer the
|
|
@@ -207,8 +207,8 @@ export function withAccent<T extends AdeaTheme>(theme: T, accent: AccentPreset |
|
|
|
207
207
|
/**
|
|
208
208
|
* The two preview themes an appearance selection resolves to, accent applied.
|
|
209
209
|
*
|
|
210
|
-
* The adapter between a stored selection and `AppearanceEditor`: it takes ids
|
|
211
|
-
* what a preference holds
|
|
210
|
+
* The adapter between a stored selection and `AppearanceEditor`: it takes ids,
|
|
211
|
+
* what a preference holds, and returns the canonical records the editor's
|
|
212
212
|
* `lightTheme` and `darkTheme` props take, so a host does not map roles by hand.
|
|
213
213
|
* Unknown ids fall back to the defaults and an accent the pair cannot offer falls
|
|
214
214
|
* back to the theme's own, exactly as `ThemeProvider` resolves them.
|
|
@@ -229,24 +229,24 @@ export function appearancePreviewThemes(selection: {
|
|
|
229
229
|
* ## Why this exists rather than relying on the `[data-accent]` blocks
|
|
230
230
|
*
|
|
231
231
|
* `theme.css` carries a `[data-accent='…']` block per preset, and those blocks are
|
|
232
|
-
* correct
|
|
232
|
+
* correct, but they are unreachable at runtime. `ThemeProvider` writes a theme's
|
|
233
233
|
* whole role set onto `<html>` as *inline* custom properties, and an inline
|
|
234
234
|
* declaration outranks any stylesheet selector regardless of specificity. The
|
|
235
235
|
* attribute was set, the rules existed, the values were right, and every one of the
|
|
236
236
|
* seven accents rendered as the same blue.
|
|
237
237
|
*
|
|
238
238
|
* The blocks are kept, because they are what styles the window between the document
|
|
239
|
-
* arriving and the provider mounting
|
|
239
|
+
* arriving and the provider mounting, which is the whole reason `themeScript`
|
|
240
240
|
* exists. But the authoritative value has to be applied by the same code that
|
|
241
241
|
* applies the theme, from the same source, or the two can drift again. So both the
|
|
242
242
|
* provider and the CSS generator call `accentRoles` out of `@adea-ai/themes`, and
|
|
243
243
|
* `tests/appearance-axes.test.ts` asserts the two agree value for value.
|
|
244
244
|
*
|
|
245
245
|
* A theme accent (`ansi-blue`) has no block: its value depends on the theme pair,
|
|
246
|
-
* so it is resolved against `pair
|
|
246
|
+
* so it is resolved against `pair`, the selection's light and dark theme ids,
|
|
247
247
|
* and only ever applied here. Without a pair it resolves against the defaults.
|
|
248
248
|
*
|
|
249
|
-
* Returns `undefined` for `theme
|
|
249
|
+
* Returns `undefined` for `theme`, the variant's own primary, for an id the
|
|
250
250
|
* catalogue does not have, and for a theme accent the pair does not offer, so a
|
|
251
251
|
* stale stored preference falls back to the theme rather than blanking the primary.
|
|
252
252
|
*/
|
|
@@ -368,7 +368,7 @@ export function themeCssVariables(
|
|
|
368
368
|
*
|
|
369
369
|
* Delegated. The floors are the catalogue's, because they are what makes the
|
|
370
370
|
* catalogue able to hold other people's palettes at all, and a second set of floors
|
|
371
|
-
* here would be a second answer to the same question
|
|
371
|
+
* here would be a second answer to the same question, and the one that drifts.
|
|
372
372
|
* ------------------------------------------------------------------------- */
|
|
373
373
|
|
|
374
374
|
export type ThemeFinding = {
|
package/src/lib/tokens.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The design system's token manifest.
|
|
3
3
|
*
|
|
4
4
|
* `theme.css` is the source of truth for token *values*. This file is the
|
|
5
|
-
* source of truth for token *names and meaning
|
|
5
|
+
* source of truth for token *names and meaning*, what each one is for, and
|
|
6
6
|
* which ones a theme may vary.
|
|
7
7
|
*
|
|
8
8
|
* It exists because a manifest that is only documentation rots. Two things read
|
|
@@ -43,7 +43,7 @@ export type TokenDefinition = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Colour roles, in the order they appear in a page: surfaces first, then text,
|
|
45
45
|
* then the lines between them, then the semantic fills. The order is the
|
|
46
|
-
* documentation
|
|
46
|
+
* documentation, reading the gallery top to bottom walks the surface ladder.
|
|
47
47
|
*/
|
|
48
48
|
export const colorTokens: TokenDefinition[] = [
|
|
49
49
|
// Surfaces
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Tooltips open on active hover over the control, or on keyboard focus that
|
|
3
3
|
* follows a Tab key press. They must never open from programmatic focus: the
|
|
4
4
|
* autofocus a dialog or sheet gives its first control, and the focus a closing
|
|
5
|
-
* overlay restores to its opener, both land on buttons that carry tooltips
|
|
5
|
+
* overlay restores to its opener, both land on buttons that carry tooltips,
|
|
6
6
|
* and the tooltip primitive opens immediately on focus and pins the tooltip
|
|
7
7
|
* until blur. That is the "tooltip auto-displays when a sheet opens" report,
|
|
8
8
|
* and the pinned tooltip is the "tooltip gets stuck and never disappears"
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
* any element listener runs: the tooltip never learns about the focus. Hover
|
|
18
18
|
* opens are untouched (they ride pointer events), and the separate `focusin`
|
|
19
19
|
* event still flows, so dialog focus-cycle tracking, `:focus-visible` styling,
|
|
20
|
-
* and focus restoration all keep working. Focus still lands
|
|
21
|
-
* is stopped
|
|
20
|
+
* and focus restoration all keep working. Focus still lands, only the event
|
|
21
|
+
* is stopped, so `document.activeElement` and scripted `.blur()` behave.
|
|
22
22
|
*
|
|
23
|
-
* The keyboard-intent signal is a Tab key press immediately before the focus
|
|
23
|
+
* The keyboard-intent signal is a Tab key press immediately before the focus,
|
|
24
24
|
* the only key that moves focus natively. Enter and Space open overlays too,
|
|
25
25
|
* so any "recent key" window wide enough for those would let an overlay's own
|
|
26
26
|
* autofocus back through; Tab-only keeps autofocus suppressed no matter how
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
*
|
|
30
30
|
* Suppression is scoped to button-like targets (`button`, `a[href]`,
|
|
31
31
|
* `[role="button"]`, `[role="link"]`). Composite widgets that move focus
|
|
32
|
-
* programmatically
|
|
32
|
+
* programmatically, menu items, listbox options, grid cells, are other
|
|
33
33
|
* element types whose roving-focus highlighting must keep receiving focus
|
|
34
34
|
* events, and text controls keep their own focus behaviour (select on focus,
|
|
35
35
|
* caret placement).
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
* a trigger that is `activeElement` as keyboard-held: while a tooltip on it is
|
|
40
40
|
* open, pointer movement away only *requests* a close and the request is
|
|
41
41
|
* refused for as long as the pointer keeps moving. Left alone, a later real
|
|
42
|
-
* hover on that control would open the tip and never let it leave
|
|
42
|
+
* hover on that control would open the tip and never let it leave, the
|
|
43
43
|
* residual "stuck" case. The gate therefore treats a suppressed focus as a
|
|
44
44
|
* phantom and releases it: the first pointer activity after the focus (a
|
|
45
45
|
* pointer session taking over from a script) blurs the element. Keyboard
|
|
46
|
-
* sessions never release it and never need to
|
|
46
|
+
* sessions never release it and never need to, keyboard focus moves by Tab,
|
|
47
47
|
* which is never suppressed, so nothing pins; and the release only runs for
|
|
48
48
|
* elements still holding `activeElement`, so a Tab already taken from the
|
|
49
49
|
* phantom is left alone.
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
*
|
|
72
72
|
* The gate is installed by the `Tooltip` root for the lifetime of the first
|
|
73
73
|
* tooltip in a document and removed when the last one unmounts, so every
|
|
74
|
-
* consumer of the primitive
|
|
75
|
-
* tooltips
|
|
74
|
+
* consumer of the primitive, including composites that build their own
|
|
75
|
+
* tooltips, inherits the contract without wiring of its own.
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
/** How long after a Tab key press a resulting focus event still counts as
|
|
@@ -116,8 +116,8 @@ export function isButtonLikeFocusTarget(target: unknown): boolean {
|
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* The suppression decision: a button-like focus target hides a tooltip only
|
|
119
|
-
* when no keyboard navigation is in flight. Anything else
|
|
120
|
-
* focus, or focus on a non-button element
|
|
119
|
+
* when no keyboard navigation is in flight. Anything else, a Tab-driven
|
|
120
|
+
* focus, or focus on a non-button element, passes through untouched.
|
|
121
121
|
*/
|
|
122
122
|
export function shouldSuppressTooltipFocus(input: {
|
|
123
123
|
isButtonLike: boolean
|
package/src/lib/utils.ts
CHANGED
|
@@ -18,7 +18,7 @@ import tables from '#lib/cn-tables.generated'
|
|
|
18
18
|
* token-derived utility (`h-control-md`, `w-rail`, `p-control-lg`, …) is an
|
|
19
19
|
* unknown name to a default merge instance. Left unregistered,
|
|
20
20
|
* `cn('h-control-md', 'h-control-sm')` keeps both classes and the winner is
|
|
21
|
-
* decided by stylesheet order rather than by the caller
|
|
21
|
+
* decided by stylesheet order rather than by the caller, a bug that only
|
|
22
22
|
* shows up as a control that ignores its `size` prop, long after the line
|
|
23
23
|
* that caused it was written.
|
|
24
24
|
*
|
package/src/lib/variants.ts
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Three axes recur across the system, and components must reuse these names
|
|
11
11
|
* rather than inventing synonyms:
|
|
12
12
|
*
|
|
13
|
-
* variant what the control *is for
|
|
14
|
-
* size how much room it takes
|
|
15
|
-
* tone what it *communicates
|
|
13
|
+
* variant what the control *is for*, primary, secondary, destructive, …
|
|
14
|
+
* size how much room it takes, 2xs, xs, sm, md, lg, xl, 2xl
|
|
15
|
+
* tone what it *communicates*, neutral, success, warning, …
|
|
16
16
|
*
|
|
17
17
|
* A component that needs a fourth axis is usually two components.
|
|
18
18
|
*/
|
|
@@ -55,7 +55,7 @@ export type ControlSize = (typeof controlSizes)[number]
|
|
|
55
55
|
*
|
|
56
56
|
* Kept in one place so hover, active, focus and disabled read identically on a
|
|
57
57
|
* button, a toggle, a menu row and a tab. The `active:` step is only one
|
|
58
|
-
* lightness rung below hover
|
|
58
|
+
* lightness rung below hover, enough to feel pressed, not enough to look like
|
|
59
59
|
* a different state.
|
|
60
60
|
*/
|
|
61
61
|
export const controlInteractive =
|