@adea-ai/ui 0.152.3 → 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
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
* lightness step reads as the same step in every hue and a re-hue does not
|
|
17
17
|
* need its ramp re-derived by eye.
|
|
18
18
|
* - **`@adea-ai/themes` supplies the values.** The two default themes are composed
|
|
19
|
-
* there from upstream palettes
|
|
19
|
+
* there from upstream palettes: GitHub Dark Default's canvas and greyscale,
|
|
20
20
|
* re-greyed to violet, for Adea Dark; GitHub Light Default's white canvas for Adea
|
|
21
|
-
* Light; and GitHub's dark hues for both
|
|
21
|
+
* Light; and GitHub's dark hues for both, and normalized against measured
|
|
22
22
|
* contrast floors. The colour declarations in sections 1 and 2
|
|
23
23
|
* are *generated* from that catalogue (`bun run theme:build`) rather than written
|
|
24
24
|
* here; everything else in this file is this system's own.
|
|
25
25
|
*
|
|
26
26
|
* ## The accent is a selection, not a constant
|
|
27
27
|
*
|
|
28
|
-
* Each default theme has one interactive colour of its own
|
|
29
|
-
* hue at different lightnesses, which is what makes them a pair
|
|
28
|
+
* Each default theme has one interactive colour of its own, the two are the same
|
|
29
|
+
* hue at different lightnesses, which is what makes them a pair, and a user can
|
|
30
30
|
* override it with an independently chosen **accent**, which replaces the primary, its
|
|
31
31
|
* label and the focus ring. That model is preserved here as the `[data-accent]` blocks
|
|
32
32
|
* below, and it is why nothing in this system should hard-code a hue.
|
|
33
33
|
*
|
|
34
34
|
* ## Provenance
|
|
35
35
|
*
|
|
36
|
-
* The *structure
|
|
37
|
-
* geometry, the focus treatment, the motion
|
|
36
|
+
* The *structure*, the surface ladder, the control and row ladders, the shell
|
|
37
|
+
* geometry, the focus treatment, the motion, is translated from KiroCrew
|
|
38
38
|
* (Apache-2.0; see NOTICE). The *palette* is adea's. An earlier revision of this
|
|
39
39
|
* file took KiroCrew's colours as well, which changed the product's appearance for
|
|
40
40
|
* no reason: the neutrals became blue-tinted, the primary became an emerald adea
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* ========================================================================== */
|
|
43
43
|
|
|
44
44
|
/* ---------------------------------------------------------------------------
|
|
45
|
-
* 1. Colour
|
|
45
|
+
* 1. Colour: light theme (the `:root` fallback; Storybook opens dark)
|
|
46
46
|
*
|
|
47
47
|
* Contrast: body text 15.8:1 on the canvas and 14.3:1 on a card, `--muted-foreground`
|
|
48
48
|
* 6.2:1 on the canvas and 5.6:1 on a card and the sidebar, `--primary-foreground` on
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
* dark one's and nearly none at all on the palest accent.
|
|
141
141
|
*
|
|
142
142
|
* Both values come from @adea-ai/themes, so the accent blocks below are the same
|
|
143
|
-
* rule rather than a matching one
|
|
143
|
+
* rule rather than a matching one, which is what they were not, before.
|
|
144
144
|
*/
|
|
145
145
|
--primary-hover: oklch(0.4643 0.1668 301.69);
|
|
146
146
|
/*
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
--chrome: var(--surface);
|
|
154
154
|
/*
|
|
155
155
|
* Below the canvas: a code well, an inset panel. Not a catalogue role, because
|
|
156
|
-
* the catalogue's ladder only goes *up* from the canvas
|
|
156
|
+
* the catalogue's ladder only goes *up* from the canvas, the four rungs it
|
|
157
157
|
* derives are all surfaces something sits on. This is the one value in the
|
|
158
158
|
* ladder that runs the other way, so it is computed rather than mapped.
|
|
159
159
|
*
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
|
|
170
170
|
/*
|
|
171
171
|
* The modal veil. One value in both appearances because a scrim sits over
|
|
172
|
-
* media rather than over the application
|
|
172
|
+
* media rather than over the application, a video, a screenshot, and a veil
|
|
173
173
|
* that changed with the theme would be a veil that is wrong half the time.
|
|
174
174
|
*/
|
|
175
175
|
--scrim: oklch(0.1919 0.025 264.7);
|
|
@@ -180,10 +180,10 @@
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/* ---------------------------------------------------------------------------
|
|
183
|
-
* 2. Colour
|
|
183
|
+
* 2. Colour: dark theme
|
|
184
184
|
*
|
|
185
|
-
* A near-black violet-grey canvas
|
|
186
|
-
* halved and its hue turned from blue to violet
|
|
185
|
+
* A near-black violet-grey canvas: GitHub Dark Default's greyscale with its chroma
|
|
186
|
+
* halved and its hue turned from blue to violet, and a bright violet primary that
|
|
187
187
|
* carries a near-black label. The tint is what pairs it with the light theme's
|
|
188
188
|
* violet; it is deliberately not the blue-tinted dark of the donor this system's
|
|
189
189
|
* structure came from.
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
* dark one's and nearly none at all on the palest accent.
|
|
285
285
|
*
|
|
286
286
|
* Both values come from @adea-ai/themes, so the accent blocks below are the same
|
|
287
|
-
* rule rather than a matching one
|
|
287
|
+
* rule rather than a matching one, which is what they were not, before.
|
|
288
288
|
*/
|
|
289
289
|
--primary-hover: oklch(0.7823 0.1668 301.69);
|
|
290
290
|
/*
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
--chrome: var(--surface);
|
|
298
298
|
/*
|
|
299
299
|
* Below the canvas: a code well, an inset panel. Not a catalogue role, because
|
|
300
|
-
* the catalogue's ladder only goes *up* from the canvas
|
|
300
|
+
* the catalogue's ladder only goes *up* from the canvas, the four rungs it
|
|
301
301
|
* derives are all surfaces something sits on. This is the one value in the
|
|
302
302
|
* ladder that runs the other way, so it is computed rather than mapped.
|
|
303
303
|
*
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
* 3. The accent axis
|
|
317
317
|
*
|
|
318
318
|
* adea's six accent presets, as a selection rather than a constant. `data-accent` sits on
|
|
319
|
-
* the same element as `dark
|
|
319
|
+
* the same element as `dark`, in both applications that is `<html>`, and each
|
|
320
320
|
* block overrides the roles an accent owns: the interactive primary, its label,
|
|
321
321
|
* its hover rung and the focus ring.
|
|
322
322
|
*
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
*
|
|
332
332
|
* 1. **A 3:1 interaction minimum against the surface the accent is drawn on**,
|
|
333
333
|
* so an accent can never ship unreadable on its own background.
|
|
334
|
-
* 2. **A label chosen by measurement, not convention
|
|
334
|
+
* 2. **A label chosen by measurement, not convention**: black or white,
|
|
335
335
|
* whichever wins on contrast. The accent flips polarity between the themes
|
|
336
336
|
* for exactly this reason: a bright violet in dark mode carries a black
|
|
337
337
|
* label, and the same accent's deep light-mode form carries a white one.
|
|
@@ -433,34 +433,34 @@
|
|
|
433
433
|
* `DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS` does.
|
|
434
434
|
*
|
|
435
435
|
* `system` is deliberately first-class rather than a fallback: an application that
|
|
436
|
-
* wants the platform's own face
|
|
437
|
-
* usually look best in
|
|
436
|
+
* wants the platform's own face, which is what a terminal and a code editor
|
|
437
|
+
* usually look best in, should be able to say so without losing the rest of the
|
|
438
438
|
* system.
|
|
439
439
|
*
|
|
440
440
|
* ## Width compensation
|
|
441
441
|
*
|
|
442
442
|
* A monospace face is roughly 20% wider than Space Grotesk at the same size, and
|
|
443
|
-
* every measurement in this library
|
|
444
|
-
* button's padding
|
|
443
|
+
* every measurement in this library, control heights, a rail's label budget, a
|
|
444
|
+
* button's padding, was drawn against the proportional face. Switching the UI
|
|
445
445
|
* font to mono without compensating therefore overflows exactly the tight places:
|
|
446
446
|
* a rail label truncates, a two-word button wraps, a status pill clips.
|
|
447
447
|
*
|
|
448
448
|
* `--ui-tracking` and `--ui-word-spacing` are the remedy, and they are tokens
|
|
449
449
|
* rather than one blanket rule because the two families want *opposite*
|
|
450
|
-
* treatment. Mono's space character is a full advance-width cell
|
|
451
|
-
* Space Grotesk's
|
|
450
|
+
* treatment. Mono's space character is a full advance-width cell, three times
|
|
451
|
+
* Space Grotesk's, so a two-word label reads as two floating words and needs
|
|
452
452
|
* negative word spacing; its glyphs also carry more sidebearing, so a tighter
|
|
453
453
|
* track is safe. Neither correction is wanted on a proportional face, which is
|
|
454
454
|
* why the defaults are `normal`.
|
|
455
455
|
*
|
|
456
456
|
* Apply them where chrome is measured: `tracking-(--ui-tracking)
|
|
457
|
-
* word-spacing-(--ui-word-spacing)`. Body copy does not need them
|
|
457
|
+
* word-spacing-(--ui-word-spacing)`. Body copy does not need them, it wraps.
|
|
458
458
|
* ------------------------------------------------------------------------- */
|
|
459
459
|
|
|
460
460
|
/* The default, and it has to be declared *before* the blocks below.
|
|
461
461
|
*
|
|
462
462
|
* `:root` and `[data-font='…']` have the same specificity, so the later one wins
|
|
463
|
-
* outright
|
|
463
|
+
* outright, there is no cascade subtlety here, only a position in the file. Written
|
|
464
464
|
* after them, where it naturally belongs next to the `--font-family-*` stacks it
|
|
465
465
|
* references, the default shadowed all five selections: every typeface resolved to
|
|
466
466
|
* Space Grotesk while the toolbar reported something else.
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
/* ---------------------------------------------------------------------------
|
|
505
505
|
* 4. Non-colour scales
|
|
506
506
|
*
|
|
507
|
-
* Outside the theme blocks because they do not change with polarity
|
|
507
|
+
* Outside the theme blocks because they do not change with polarity, only with a
|
|
508
508
|
* deliberate density or shape decision.
|
|
509
509
|
* ------------------------------------------------------------------------- */
|
|
510
510
|
:root {
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
/* --- Type ---------------------------------------------------------------
|
|
521
521
|
* The families are declared once, and `--font-sans`/`--font-mono` resolve from
|
|
522
522
|
* a *selection* rather than naming one face directly. That is what makes the
|
|
523
|
-
* family a user preference
|
|
523
|
+
* family a user preference, the same shape as the accent axis, instead of a
|
|
524
524
|
* hard-coded choice an application cannot override without restating the
|
|
525
525
|
* stacks.
|
|
526
526
|
*
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
--text-2xs--line-height: 1.45;
|
|
554
554
|
--text-xs: 0.75rem; /* 12px */
|
|
555
555
|
--text-xs--line-height: 1.5;
|
|
556
|
-
--text-sm: 0.875rem; /* 14px
|
|
556
|
+
--text-sm: 0.875rem; /* 14px, the interface default */
|
|
557
557
|
--text-sm--line-height: 1.55;
|
|
558
558
|
--text-base: 1rem;
|
|
559
559
|
--text-base--line-height: 1.5;
|
|
@@ -566,16 +566,16 @@
|
|
|
566
566
|
--text-3xl: 1.875rem;
|
|
567
567
|
--text-3xl--line-height: 1.2;
|
|
568
568
|
|
|
569
|
-
/* Control density. KiroCrew's centre of gravity
|
|
569
|
+
/* Control density. KiroCrew's centre of gravity, a 28px control in toolbars and
|
|
570
570
|
a 32px control in forms — is kept, because the density is the structural half
|
|
571
571
|
of the design language even though the palette is adea's. */
|
|
572
572
|
--control-height-2xs: 1.25rem; /* 20px */
|
|
573
573
|
--control-height-xs: 1.5rem; /* 24px */
|
|
574
|
-
--control-height-sm: 1.75rem; /* 28px
|
|
575
|
-
--control-height-md: 2rem; /* 32px
|
|
574
|
+
--control-height-sm: 1.75rem; /* 28px, toolbar default */
|
|
575
|
+
--control-height-md: 2rem; /* 32px, form default */
|
|
576
576
|
--control-height-lg: 2.25rem; /* 36px */
|
|
577
577
|
--control-height-xl: 2.5rem; /* 40px */
|
|
578
|
-
--control-height-2xl: 3rem; /* 48px
|
|
578
|
+
--control-height-2xl: 3rem; /* 48px, stable touch target */
|
|
579
579
|
|
|
580
580
|
--control-padding-2xs: 0.375rem;
|
|
581
581
|
--control-padding-xs: 0.5rem;
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
--rail-item-height: 2.25rem;
|
|
600
600
|
--sidebar-width: 16rem; /* 256px */
|
|
601
601
|
--sidebar-width-compact: 3rem;
|
|
602
|
-
/* A side pane's width
|
|
602
|
+
/* A side pane's width, a source list or a context panel beside the work, and
|
|
603
603
|
the same pane when a narrow window moves it into a sheet. */
|
|
604
604
|
--panel-width: 24.375rem; /* 390px */
|
|
605
605
|
--topbar-height: 3rem;
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
* relationship between the rungs is identical at either density and a control keeps
|
|
659
659
|
* its place in the ladder. Height moves by 4px per rung and padding by 2px, which is
|
|
660
660
|
* the step each already uses, and the row heights move by the same 4px. A `sm`
|
|
661
|
-
* control goes from 28px to 24px
|
|
661
|
+
* control goes from 28px to 24px, the `xs` control's comfortable height. That is the
|
|
662
662
|
* intended meaning, not an oversight. The `2xl` touch target is intentionally
|
|
663
663
|
* omitted here so it stays at least 48px at either density.
|
|
664
664
|
*
|
|
@@ -672,7 +672,7 @@
|
|
|
672
672
|
* shadowed, and nothing outside this block declares these properties.
|
|
673
673
|
*/
|
|
674
674
|
[data-density='compact'] {
|
|
675
|
-
--control-height-2xs: 1rem; /* 16px
|
|
675
|
+
--control-height-2xs: 1rem; /* 16px, the floor */
|
|
676
676
|
--control-height-xs: 1.25rem; /* 20px */
|
|
677
677
|
--control-height-sm: 1.5rem; /* 24px */
|
|
678
678
|
--control-height-md: 1.75rem; /* 28px */
|
package/dist/r/tooltip.json
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"lib"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "src/components/ui/tooltip/deferred-tooltip.tsx",
|
|
15
|
+
"type": "registry:ui",
|
|
16
|
+
"target": "components/ui/tooltip/deferred-tooltip.tsx"
|
|
17
|
+
},
|
|
13
18
|
{
|
|
14
19
|
"path": "src/components/ui/tooltip/index.ts",
|
|
15
20
|
"type": "registry:ui",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.153.0",
|
|
4
4
|
"description": "The Adea design system: Kobalte-backed Solid components, semantic OKLCH tokens, and the app-shell layout primitives shared by Adea and Cortana.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adea",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"./globals.css": "./src/styles/globals.css",
|
|
75
75
|
"./theme.css": "./src/styles/theme.css",
|
|
76
76
|
"./theme-variants.css": "./src/styles/theme-variants.css",
|
|
77
|
+
"./themes/*.css": "./src/styles/themes/*.css",
|
|
77
78
|
"./base.css": "./src/styles/base.css",
|
|
78
79
|
"./appearance-font-settings.css": "./src/styles/appearance-font-settings.css",
|
|
79
80
|
"./fonts.css": "./src/styles/fonts.css",
|
package/registry.json
CHANGED
|
@@ -1690,6 +1690,11 @@
|
|
|
1690
1690
|
"lib"
|
|
1691
1691
|
],
|
|
1692
1692
|
"files": [
|
|
1693
|
+
{
|
|
1694
|
+
"path": "src/components/ui/tooltip/deferred-tooltip.tsx",
|
|
1695
|
+
"type": "registry:ui",
|
|
1696
|
+
"target": "components/ui/tooltip/deferred-tooltip.tsx"
|
|
1697
|
+
},
|
|
1693
1698
|
{
|
|
1694
1699
|
"path": "src/components/ui/tooltip/index.ts",
|
|
1695
1700
|
"type": "registry:ui",
|
|
@@ -2286,6 +2291,7 @@
|
|
|
2286
2291
|
"lucide-solid@^1.71.0"
|
|
2287
2292
|
],
|
|
2288
2293
|
"registryDependencies": [
|
|
2294
|
+
"@adea-ai/ui/avatar",
|
|
2289
2295
|
"@adea-ai/ui/button",
|
|
2290
2296
|
"@adea-ai/ui/dropdown-menu",
|
|
2291
2297
|
"@adea-ai/ui/side-rail",
|
|
@@ -3727,6 +3733,11 @@
|
|
|
3727
3733
|
"type": "registry:lib",
|
|
3728
3734
|
"target": "lib/cn-tables.generated.ts"
|
|
3729
3735
|
},
|
|
3736
|
+
{
|
|
3737
|
+
"path": "src/lib/create-poll.ts",
|
|
3738
|
+
"type": "registry:lib",
|
|
3739
|
+
"target": "lib/create-poll.ts"
|
|
3740
|
+
},
|
|
3730
3741
|
{
|
|
3731
3742
|
"path": "src/lib/download.ts",
|
|
3732
3743
|
"type": "registry:lib",
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
13
13
|
import { For, Show, createSignal, splitProps } from 'solid-js'
|
|
14
14
|
import { cn } from '#lib/utils'
|
|
15
|
+
import { Avatar, AvatarImage } from '../../ui/avatar'
|
|
15
16
|
import { Button, type ButtonProps } from '../../ui/button'
|
|
16
17
|
import { SideRailButton } from '../../layout/side-rail'
|
|
17
18
|
import {
|
|
@@ -98,6 +99,11 @@ export type AccountMenuProps = {
|
|
|
98
99
|
busy?: boolean
|
|
99
100
|
/** The name shown on the trigger's accessible label. */
|
|
100
101
|
label?: string
|
|
102
|
+
/**
|
|
103
|
+
* A profile photo drawn on the trigger in place of the user glyph. A photo that
|
|
104
|
+
* fails to load leaves the glyph showing.
|
|
105
|
+
*/
|
|
106
|
+
avatarSrc?: string
|
|
101
107
|
onSignIn?: () => void
|
|
102
108
|
onSignOut?: () => void
|
|
103
109
|
/** Fires on hover or focus of the trigger — a chance to prefetch. */
|
|
@@ -128,6 +134,7 @@ export function AccountMenu(props: AccountMenuProps) {
|
|
|
128
134
|
'showSession',
|
|
129
135
|
'busy',
|
|
130
136
|
'label',
|
|
137
|
+
'avatarSrc',
|
|
131
138
|
'onSignIn',
|
|
132
139
|
'onSignOut',
|
|
133
140
|
'onIntent',
|
|
@@ -145,6 +152,19 @@ export function AccountMenu(props: AccountMenuProps) {
|
|
|
145
152
|
// which is why the names are extended here rather than left to the caller.
|
|
146
153
|
const triggerName = () =>
|
|
147
154
|
`${local.label ?? 'Account and settings'}${local.updateAvailable ? ', update available' : ''}`
|
|
155
|
+
const glyph = () => (
|
|
156
|
+
// Keyed: a new photo gets a fresh image, so one that failed to load does not hide the next.
|
|
157
|
+
<Show when={local.avatarSrc} keyed fallback={<UserRound aria-hidden="true" />}>
|
|
158
|
+
{(src) => (
|
|
159
|
+
<Avatar size="xs" aria-hidden="true" data-slot="account-menu-avatar">
|
|
160
|
+
<AvatarImage src={src} />
|
|
161
|
+
<span class="flex size-full items-center justify-center">
|
|
162
|
+
<UserRound />
|
|
163
|
+
</span>
|
|
164
|
+
</Avatar>
|
|
165
|
+
)}
|
|
166
|
+
</Show>
|
|
167
|
+
)
|
|
148
168
|
const updateDot = () => (
|
|
149
169
|
<Show when={local.updateAvailable}>
|
|
150
170
|
<span
|
|
@@ -184,7 +204,7 @@ export function AccountMenu(props: AccountMenuProps) {
|
|
|
184
204
|
onPointerEnter={() => local.onIntent?.()}
|
|
185
205
|
{...rest}
|
|
186
206
|
>
|
|
187
|
-
|
|
207
|
+
{glyph()}
|
|
188
208
|
{updateDot()}
|
|
189
209
|
</TooltipTrigger>
|
|
190
210
|
}
|
|
@@ -202,7 +222,7 @@ export function AccountMenu(props: AccountMenuProps) {
|
|
|
202
222
|
onPointerEnter={() => local.onIntent?.()}
|
|
203
223
|
{...rest}
|
|
204
224
|
>
|
|
205
|
-
|
|
225
|
+
{glyph()}
|
|
206
226
|
{updateDot()}
|
|
207
227
|
</DropdownMenuTrigger>
|
|
208
228
|
</Show>
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Show,
|
|
3
3
|
createRoot,
|
|
4
|
+
mergeProps,
|
|
4
5
|
createSignal,
|
|
6
|
+
createUniqueId,
|
|
5
7
|
splitProps,
|
|
6
|
-
type ComponentProps,
|
|
7
8
|
type JSX,
|
|
8
9
|
type ValidComponent,
|
|
9
10
|
} from 'solid-js'
|
|
10
11
|
import { callHandler } from '#lib/events'
|
|
11
12
|
import { Button, type ButtonProps } from '../../ui/button'
|
|
12
13
|
import { Spinner } from '../../ui/spinner'
|
|
13
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
14
|
+
import { createDeferredTooltip, Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* ActionButton.
|
|
@@ -19,7 +20,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
|
19
20
|
* simple action that needs these states; actions with product-specific rules
|
|
20
21
|
* should compose Button directly.
|
|
21
22
|
*
|
|
22
|
-
* The tooltip trigger
|
|
23
|
+
* The tooltip trigger is the polymorphic Button itself; the tooltip mounts on
|
|
24
|
+
* its first hover or keyboard focus (see createDeferredTooltip). A disabled native
|
|
23
25
|
* control cannot receive pointer or keyboard events. When a tooltip is set,
|
|
24
26
|
* disabled actions therefore use focusable `aria-disabled` semantics and guard
|
|
25
27
|
* activation; without a tooltip, native buttons retain native disabling.
|
|
@@ -52,15 +54,15 @@ function invokeHandler(handler: unknown, event: Event) {
|
|
|
52
54
|
callHandler(handler as ForwardedHandler, event as ForwardedEvent)
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
function chainedHandler(handler: unknown, before: (event: Event) => void) {
|
|
57
|
+
function chainedHandler(handler: () => unknown, before: (event: Event) => void) {
|
|
56
58
|
return (event: Event) => {
|
|
57
59
|
before(event)
|
|
58
|
-
invokeHandler(handler, event)
|
|
60
|
+
invokeHandler(handler(), event)
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
function guardedClick(
|
|
63
|
-
handler: unknown,
|
|
65
|
+
handler: () => unknown,
|
|
64
66
|
disabled: () => boolean,
|
|
65
67
|
onActivate: (event: MouseEvent) => void = () => {}
|
|
66
68
|
) {
|
|
@@ -81,23 +83,12 @@ function guardedClick(
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
onActivate(event)
|
|
84
|
-
invokeHandler(handler, event)
|
|
86
|
+
invokeHandler(handler(), event)
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
type ButtonTargetProps<T extends ValidComponent = 'button'> = Omit<ButtonProps<T>, 'as'> & {
|
|
89
|
-
actionAs?: T
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** Adapter keeps TooltipTrigger's `as` separate from Button's polymorphic `as`. */
|
|
93
|
-
function ButtonTarget<T extends ValidComponent = 'button'>(props: ButtonTargetProps<T>) {
|
|
94
|
-
const [local, rest] = splitProps(props as ButtonTargetProps, ['actionAs'])
|
|
95
|
-
const PolymorphicButton = Button as (targetProps: ButtonProps<T>) => JSX.Element
|
|
96
|
-
return <PolymorphicButton as={(local.actionAs ?? 'button') as T} {...(rest as ButtonProps<T>)} />
|
|
97
|
-
}
|
|
98
|
-
|
|
99
90
|
export function ActionButton<T extends ValidComponent = 'button'>(props: ActionButtonProps<T>) {
|
|
100
|
-
const [local, rest] = splitProps(props as ActionButtonProps, [
|
|
91
|
+
const [local, rest] = splitProps(props as ActionButtonProps & { href?: string }, [
|
|
101
92
|
'as',
|
|
102
93
|
'variant',
|
|
103
94
|
'size',
|
|
@@ -111,51 +102,112 @@ export function ActionButton<T extends ValidComponent = 'button'>(props: ActionB
|
|
|
111
102
|
'tooltipIcon',
|
|
112
103
|
'busy',
|
|
113
104
|
'busyLabel',
|
|
105
|
+
// Split, not read from `rest`: mergeProps falls back to an earlier source when a
|
|
106
|
+
// getter returns undefined, so a disabled link could not drop its href otherwise.
|
|
107
|
+
'href',
|
|
114
108
|
])
|
|
115
109
|
const busy = () => local.busy ?? false
|
|
116
110
|
const disabled = () => busy() || !!local.disabled
|
|
117
111
|
const busyStatus = () => local.busyLabel ?? 'Working'
|
|
118
112
|
const [tooltipOpen, setTooltipOpen] = createSignal(false)
|
|
113
|
+
const tooltipId = `action-button-tooltip-${createUniqueId()}`
|
|
114
|
+
// The tooltip mounts on the first hover or keyboard focus; until then the
|
|
115
|
+
// button renders alone (see createDeferredTooltip).
|
|
116
|
+
const deferred = createDeferredTooltip({
|
|
117
|
+
enabled: () => !!local.tooltip,
|
|
118
|
+
onPointerEnter: () => rest.onPointerEnter,
|
|
119
|
+
onFocus: () => rest.onFocus,
|
|
120
|
+
})
|
|
119
121
|
const [tooltipSuppression, setTooltipSuppression] = createSignal<'pointer' | 'focus' | null>(null)
|
|
120
|
-
const
|
|
122
|
+
const forwarded = rest as Record<string, unknown>
|
|
121
123
|
const PolymorphicButton = Button as (buttonProps: ButtonProps<T>) => JSX.Element
|
|
122
|
-
const PolymorphicButtonTarget = ButtonTarget as (targetProps: ButtonTargetProps<T>) => JSX.Element
|
|
123
124
|
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
// One props object for the life of the button. Each value is a getter, so it stays
|
|
126
|
+
// reactive per key, and the handlers are created once and read the caller's handler
|
|
127
|
+
// when they run. (Spreading a function's result instead compiles to a memo that
|
|
128
|
+
// rebuilds every key and handler whenever any prop it reads changes.)
|
|
129
|
+
const buttonProps = mergeProps(rest, {
|
|
126
130
|
// The inner Button would otherwise announce itself as a plain `button`; a
|
|
127
131
|
// caller's own slot still wins.
|
|
128
|
-
'data-slot'
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
get 'data-slot'() {
|
|
133
|
+
return (forwarded['data-slot'] as string | undefined) ?? 'action-button'
|
|
134
|
+
},
|
|
135
|
+
get variant() {
|
|
136
|
+
return local.variant
|
|
137
|
+
},
|
|
138
|
+
get size() {
|
|
139
|
+
return local.size
|
|
140
|
+
},
|
|
141
|
+
get touchTarget() {
|
|
142
|
+
return local.touchTarget
|
|
143
|
+
},
|
|
144
|
+
get class() {
|
|
145
|
+
return [local.class, local.tooltip && disabled() && 'aria-disabled:pointer-events-auto']
|
|
146
|
+
.filter(Boolean)
|
|
147
|
+
.join(' ')
|
|
148
|
+
},
|
|
149
|
+
get disabled() {
|
|
150
|
+
return disabled() && !local.tooltip
|
|
151
|
+
},
|
|
152
|
+
get 'aria-disabled'() {
|
|
153
|
+
return disabled() ? true : rest['aria-disabled']
|
|
154
|
+
},
|
|
137
155
|
// Make tooltip-bearing native controls explicit tab stops in WebKit configurations that
|
|
138
156
|
// otherwise skip implicit button stops. A caller's tabIndex remains authoritative.
|
|
139
|
-
tabIndex
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
get tabIndex() {
|
|
158
|
+
return (
|
|
159
|
+
rest.tabIndex ??
|
|
160
|
+
(local.as === 'a' && disabled() ? (local.tooltip ? 0 : -1) : local.tooltip ? 0 : undefined)
|
|
161
|
+
)
|
|
162
|
+
},
|
|
163
|
+
get role() {
|
|
164
|
+
return local.as === 'a' && disabled() ? 'link' : rest.role
|
|
165
|
+
},
|
|
166
|
+
get href() {
|
|
167
|
+
return local.as === 'a' && disabled() ? undefined : local.href
|
|
168
|
+
},
|
|
169
|
+
get 'aria-busy'() {
|
|
170
|
+
return busy() || local['aria-busy']
|
|
171
|
+
},
|
|
172
|
+
get 'aria-describedby'() {
|
|
173
|
+
return (
|
|
174
|
+
(forwarded['aria-describedby'] as string | undefined) ??
|
|
175
|
+
(local.tooltip && tooltipOpen() ? tooltipId : undefined)
|
|
176
|
+
)
|
|
177
|
+
},
|
|
178
|
+
ref: (element: HTMLElement) => {
|
|
179
|
+
deferred.ref(element)
|
|
180
|
+
const callerRef = forwarded.ref
|
|
181
|
+
if (typeof callerRef === 'function') callerRef(element)
|
|
182
|
+
},
|
|
183
|
+
onPointerEnter: deferred.onPointerEnter,
|
|
184
|
+
onFocus: deferred.onFocus,
|
|
185
|
+
onClick: guardedClick(
|
|
186
|
+
() => rest.onClick,
|
|
187
|
+
disabled,
|
|
188
|
+
(event) => {
|
|
189
|
+
if (!local.tooltip) return
|
|
190
|
+
setTooltipSuppression(event.detail > 0 ? 'pointer' : 'focus')
|
|
191
|
+
setTooltipOpen(false)
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
onPointerLeave: chainedHandler(
|
|
195
|
+
() => rest.onPointerLeave,
|
|
196
|
+
() => {
|
|
197
|
+
if (tooltipSuppression() === 'pointer') setTooltipSuppression(null)
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
onBlur: chainedHandler(
|
|
201
|
+
() => rest.onBlur,
|
|
202
|
+
() => {
|
|
203
|
+
if (tooltipSuppression() === 'focus') setTooltipSuppression(null)
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
onClickCapture: forwarded.onClickCapture
|
|
207
|
+
? guardedClick(() => forwarded.onClickCapture, disabled)
|
|
208
|
+
: undefined,
|
|
209
|
+
'on:click': guardedClick(() => forwarded['on:click'], disabled),
|
|
210
|
+
'oncapture:click': guardedClick(() => forwarded['oncapture:click'], disabled),
|
|
159
211
|
})
|
|
160
212
|
|
|
161
213
|
const contents = () => (
|
|
@@ -169,34 +221,28 @@ export function ActionButton<T extends ValidComponent = 'button'>(props: ActionB
|
|
|
169
221
|
|
|
170
222
|
return (
|
|
171
223
|
<>
|
|
172
|
-
<
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
<PolymorphicButton
|
|
176
|
-
as={(local.as ?? 'button') as T}
|
|
177
|
-
{...(buttonProps() as unknown as ButtonProps<T>)}
|
|
178
|
-
>
|
|
179
|
-
{contents()}
|
|
180
|
-
</PolymorphicButton>
|
|
181
|
-
}
|
|
224
|
+
<PolymorphicButton
|
|
225
|
+
as={(local.as ?? 'button') as T}
|
|
226
|
+
{...(buttonProps as unknown as ButtonProps<T>)}
|
|
182
227
|
>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
actionAs={(local.as ?? 'button') as T}
|
|
228
|
+
{contents()}
|
|
229
|
+
</PolymorphicButton>
|
|
230
|
+
<Show when={deferred.armed() && local.tooltip}>
|
|
231
|
+
{(tooltipSlot) => (
|
|
232
|
+
<Tooltip
|
|
233
|
+
placement={local.tooltipSide ?? 'bottom'}
|
|
234
|
+
open={tooltipOpen()}
|
|
235
|
+
onOpenChange={(open) => {
|
|
236
|
+
if (open && tooltipSuppression()) return
|
|
237
|
+
setTooltipOpen(open)
|
|
238
|
+
}}
|
|
195
239
|
>
|
|
196
|
-
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
240
|
+
<TooltipTrigger as={deferred.Target} />
|
|
241
|
+
<TooltipContent id={tooltipId} icon={local.tooltipIcon}>
|
|
242
|
+
{tooltipSlot()}
|
|
243
|
+
</TooltipContent>
|
|
244
|
+
</Tooltip>
|
|
245
|
+
)}
|
|
200
246
|
</Show>
|
|
201
247
|
<Show when={busy()}>
|
|
202
248
|
<span role="status" aria-live="polite" class="visually-hidden">
|
|
@@ -39,12 +39,12 @@ export type AccentSwatchGroupsProps = {
|
|
|
39
39
|
themeDefaultColor: string
|
|
40
40
|
/**
|
|
41
41
|
* Whether the group leads with the "Theme default" swatch. Hosts whose
|
|
42
|
-
* default accent already is a preset omit it
|
|
42
|
+
* default accent already is a preset omit it, a second entry for the same
|
|
43
43
|
* colour reads as a duplicate choice.
|
|
44
44
|
*/
|
|
45
45
|
showThemeDefault?: boolean
|
|
46
46
|
/**
|
|
47
|
-
* `grid
|
|
47
|
+
* `grid`, the default, wraps at four to a line. `row` keeps every swatch on
|
|
48
48
|
* one line at a smaller size, the columns sharing the width equally, so a
|
|
49
49
|
* narrow panel does not wrap them; each colour is then the fill of an SVG
|
|
50
50
|
* circle, which is where a host that asserts on swatch colours reads it.
|
|
@@ -55,7 +55,7 @@ export type AccentSwatchGroupsProps = {
|
|
|
55
55
|
/**
|
|
56
56
|
* The accent choices, as ONE group: the theme's own primary first, then every
|
|
57
57
|
* preset the host feeds, each painted with its value for the resolved
|
|
58
|
-
* appearance
|
|
58
|
+
* appearance, which is what makes the group theme-scoped rather than a
|
|
59
59
|
* catalogue table. The custom-color entry is the host's (`AccentChoices`
|
|
60
60
|
* renders it beside this grid), because whether a free-form colour is accepted
|
|
61
61
|
* is the host's validation to own.
|