@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
package/README.md
CHANGED
|
@@ -7,15 +7,23 @@ their domain compositions, persistence, services, and native capabilities.
|
|
|
7
7
|
bun add @adea-ai/ui
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
SolidJS, Tailwind v4, Kobalte
|
|
11
|
-
|
|
10
|
+
Built on SolidJS, Tailwind v4, Kobalte and corvu. `solid-js` is a peer, and the
|
|
11
|
+
four heavy optional peers (`chart.js`,
|
|
12
12
|
`embla-carousel`, `embla-carousel-solid`, `solid-chartjs`) are marked optional
|
|
13
13
|
so installing the library does not drag in a charting or carousel engine you
|
|
14
14
|
never use.
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Contents
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
- [Getting started](#getting-started) and [entry points](#entry-points)
|
|
19
|
+
- [Theming](#theming) and [fonts](#fonts)
|
|
20
|
+
- Components: [forms and navigation](#forms-and-navigation), [catalog browser](#catalog-browser), [composer](#composer), [transcript](#transcript), [split layout](#split-layout), [scene controls](#scene-controls)
|
|
21
|
+
- [Package checks](#package-checks)
|
|
22
|
+
- [Adding a component](#adding-a-component) and [reviewing it](#reviewing-it)
|
|
23
|
+
|
|
24
|
+
## Getting started
|
|
25
|
+
|
|
26
|
+
Import the stylesheet and wrap your app in the provider.
|
|
19
27
|
|
|
20
28
|
```tsx
|
|
21
29
|
import { ThemeProvider } from '@adea-ai/ui/components/theme'
|
|
@@ -34,6 +42,24 @@ export function App() {
|
|
|
34
42
|
persists the choice. Without it you get the two default variants and nothing
|
|
35
43
|
else.
|
|
36
44
|
|
|
45
|
+
Tailwind ignores dependency directories by default. Register the component
|
|
46
|
+
directories your application uses in its stylesheet, relative to that stylesheet:
|
|
47
|
+
|
|
48
|
+
```css
|
|
49
|
+
@import 'tailwindcss';
|
|
50
|
+
@import '@adea-ai/ui/theme.css';
|
|
51
|
+
@import '@adea-ai/ui/base.css';
|
|
52
|
+
@import '@adea-ai/ui/appearance-font-settings.css'; /* optional: shared font roles and Appearance controls */
|
|
53
|
+
@source '../node_modules/@adea-ai/ui/src/components/ui/button';
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`globals.css` combines Tailwind, base styles, and theme tokens. Fonts require a
|
|
57
|
+
separate explicit `@adea-ai/ui/fonts.css` import. The packed-artifact gate expands
|
|
58
|
+
all component and library export conditions and rejects leaked story/test files,
|
|
59
|
+
including declaration output.
|
|
60
|
+
|
|
61
|
+
## Entry points
|
|
62
|
+
|
|
37
63
|
Folder subpaths such as `@adea-ai/ui/components/ui/button` resolve the folder's
|
|
38
64
|
public index under the types, Solid source, development, and compiled conditions.
|
|
39
65
|
The package includes source for Solid compilation and Tailwind discovery, and
|
|
@@ -45,7 +71,201 @@ For shortcut labels in server-side or other non-UI code, import
|
|
|
45
71
|
This entry does not load the keyboard components; the keyboard folder entry
|
|
46
72
|
continues to export the same helper for component consumers.
|
|
47
73
|
|
|
48
|
-
|
|
74
|
+
Charts and carousels are exported only from their subpaths, so root imports
|
|
75
|
+
work without their optional peers:
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
import { Button } from '@adea-ai/ui'
|
|
79
|
+
import { LineChart } from '@adea-ai/ui/components/ui/chart'
|
|
80
|
+
import { Carousel, CarouselSlide } from '@adea-ai/ui/components/ui/carousel'
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Install `chart.js` and `solid-chartjs` for charts, or `embla-carousel` and
|
|
84
|
+
`embla-carousel-solid` for carousels. Their helpers and types live on the same
|
|
85
|
+
subpaths.
|
|
86
|
+
|
|
87
|
+
### Split-layout tree imports
|
|
88
|
+
|
|
89
|
+
Scoped persistence decoders can import `MAX_LAYOUT_LEAVES`, `MAX_LAYOUT_DEPTH`,
|
|
90
|
+
`MIN_SPLIT_RATIO`, `MAX_SPLIT_RATIO`, `listLeaves`, `countLeaves`, `layoutDepth`,
|
|
91
|
+
and the opaque tree types from
|
|
92
|
+
`@adea-ai/ui/components/layout/split-layout/tree`. This read-only entry has no
|
|
93
|
+
UI runtime, renderer, or pane-editing dependencies. The existing `/model` entry
|
|
94
|
+
re-exports the same functions and types for compatibility. Use `/model` for
|
|
95
|
+
split, close, move, resize, and undo operations; use the component entry when
|
|
96
|
+
rendering the layout.
|
|
97
|
+
|
|
98
|
+
## Theming
|
|
99
|
+
|
|
100
|
+
The catalogue is 34 themes across two appearances, grouped into families. The
|
|
101
|
+
provider takes an initial selection and every axis is a plain value:
|
|
102
|
+
|
|
103
|
+
```tsx
|
|
104
|
+
<ThemeProvider
|
|
105
|
+
initial={{
|
|
106
|
+
appearance: 'system', // 'light' | 'dark' | 'system'
|
|
107
|
+
lightThemeId: 'adea-light',
|
|
108
|
+
darkThemeId: 'adea-dark',
|
|
109
|
+
accent: 'theme', // or 'violet' | 'blue' | 'green' | 'amber' | 'cyan' | 'pink',
|
|
110
|
+
// or a theme-carried accent such as 'ansi-blue'
|
|
111
|
+
fonts: {
|
|
112
|
+
ui: { family: 'system', size: 14 },
|
|
113
|
+
content: { family: 'system', size: 14 },
|
|
114
|
+
code: { family: 'system', size: 12 },
|
|
115
|
+
},
|
|
116
|
+
}}
|
|
117
|
+
>
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
| Axis | Values | How it is applied |
|
|
121
|
+
| ---------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
122
|
+
| Appearance | `light`, `dark`, `system` | a `dark` class plus `color-scheme` on `<html>` |
|
|
123
|
+
| Theme | any of the 34 catalogue ids | the variant's tokens, written as custom properties on `<html>` |
|
|
124
|
+
| Accent | `theme` (follow the variant), one of six presets, or an accent the theme pair carries (`ansi-blue`…) | a `data-accent` attribute on `<html>`, plus the resolved roles as custom properties |
|
|
125
|
+
| Fonts | UI, content and code family ids from the shared catalogue; sizes from 10–32px | Stable `data-*-font` ids plus resolved `--font-*` family and pixel-size properties |
|
|
126
|
+
|
|
127
|
+
Older single-font `font` preferences remain readable and migrate their family to
|
|
128
|
+
the UI axis; new preferences store `fonts` with one family and size per axis.
|
|
129
|
+
Canonical size properties stay in pixels for native editor integrations; the
|
|
130
|
+
shared text tokens use rem-relative ratios so browser root-text enlargement still
|
|
131
|
+
scales UI, prose, keyboard keys and code.
|
|
132
|
+
|
|
133
|
+
Read and change the current selection with `useTheme()`:
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
const { selection, resolvedAppearance, setSelection, themes, themeAccents } = useTheme()
|
|
137
|
+
setSelection({ accent: 'amber' })
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`themeAccents()` lists the accents the selected light/dark theme pair carries
|
|
141
|
+
itself (`@adea-ai/themes`' `themeAccentPresets`): the palette's own blue,
|
|
142
|
+
magenta, cyan and green, offered only when both themes clear the catalogue's
|
|
143
|
+
accent floors. Their ids are role-shaped, so `ansi-blue` follows a theme switch
|
|
144
|
+
to the new theme's blue; a slot the new pair cannot offer falls back to the
|
|
145
|
+
theme's own primary. The primary grid is the theme default plus five standard
|
|
146
|
+
presets; Violet remains available under Additional colors, and theme accents
|
|
147
|
+
have their own group.
|
|
148
|
+
|
|
149
|
+
Two components ship for the settings surface: `AppearancePanel` is the whole
|
|
150
|
+
appearance view, and `ThemeToggle` is the light/dark switch on its own.
|
|
151
|
+
|
|
152
|
+
`SettingsLayout` composes a controlled vertical tab root, grouped `SettingsNavigation`,
|
|
153
|
+
and a scrollable panel viewport. Supply the selected `value`, `onChange`, navigation
|
|
154
|
+
groups, and matching `TabsContent` panels. The host owns URL or preference updates
|
|
155
|
+
and panel content; below 48rem of viewport width the rail becomes a horizontal,
|
|
156
|
+
scrollable strip of tabs above the panels (groups in order, Left/Right keys,
|
|
157
|
+
`aria-orientation="horizontal"`), and `navigationLayout="rail" | "strip"` pins one
|
|
158
|
+
shape at every width. The layout reports repeated activation through `onReselect`
|
|
159
|
+
and reveals the selected row on either axis by default. Use `SettingsNavigation`
|
|
160
|
+
directly when you already own the surrounding tabs composition; it follows the
|
|
161
|
+
enclosing `Tabs` orientation.
|
|
162
|
+
Shared tabs associate panels with custom trigger IDs in browser and server renders;
|
|
163
|
+
an explicit panel `aria-labelledby` takes precedence. Independent tab roots keep
|
|
164
|
+
their associations separate.
|
|
165
|
+
|
|
166
|
+
### Controlled appearance mode
|
|
167
|
+
|
|
168
|
+
`ThemeModeToggle` provides the shared light/dark/system selector for hosts that
|
|
169
|
+
own their preference provider and storage. Pass `mode` and `onModeChange`; the
|
|
170
|
+
control owns roving keyboard focus, pressed state and explanatory tooltips. It
|
|
171
|
+
does not require or mount the shared `ThemeProvider`. `ThemeToggle` retains its
|
|
172
|
+
existing provider-bound API.
|
|
173
|
+
|
|
174
|
+
### Controlled appearance editor
|
|
175
|
+
|
|
176
|
+
`AppearanceEditor` and `AppearancePopover` retain the accepted Zeron-derived
|
|
177
|
+
System/Light/Dark miniature cards, independent light/dark theme rows, palette
|
|
178
|
+
swatches, default/preset/custom accent choices and Theme default/Frosted/Opaque
|
|
179
|
+
surface choices. The popup supports live host preview and Save/Cancel/Reset;
|
|
180
|
+
Kobalte provides radio navigation, selection, dismissal and focus restoration. Since
|
|
181
|
+
its menus prevent Tab, the theme row carries Tab and Shift+Tab through the enclosing
|
|
182
|
+
dialog's focus order. `DropdownMenuContent.portalMount` keeps the theme menu within
|
|
183
|
+
its enclosing modal's accessible subtree.
|
|
184
|
+
|
|
185
|
+
Supply canonical `AdeaTheme` previews and `AdeaThemeRecord` choices.
|
|
186
|
+
`themeRecords`/`themeRecordById` export those records, and
|
|
187
|
+
`appearancePreviewThemes({ lightThemeId, darkThemeId, accent })` resolves a
|
|
188
|
+
draft's ids and accent, a preset or a theme-carried accent, into the two
|
|
189
|
+
preview themes, exactly as `ThemeProvider` would apply them; `withAccent` is the
|
|
190
|
+
overlay on its own. `builtinThemes` is the shadcn projection a document is
|
|
191
|
+
painted with, not an editor input. Pass `themeAccentOptions`,
|
|
192
|
+
`themeAccentsFor(lightThemeId, darkThemeId)`, to offer the accents the previewed
|
|
193
|
+
pair carries after the presets; the editor itself loads no catalogue or
|
|
194
|
+
normalization. Hosts own saved-ID recovery, validation, draft snapshots,
|
|
195
|
+
System appearance resolution, native transparency, live application tokens,
|
|
196
|
+
Save persistence and restoration on Cancel/dismissal. `saving`,
|
|
197
|
+
`saveDisabledReason`, `recoveryNotice`, `customAccentError`, and
|
|
198
|
+
`surfaceCapability` expose those outcomes; an unavailable import or Frosted
|
|
199
|
+
capability stays visibly unavailable. App-specific persisted versions and the
|
|
200
|
+
legacy `translucent` value need an app-owned adapter to the editor's `theme`
|
|
201
|
+
surface selection. The library does not silently migrate stored preferences.
|
|
202
|
+
|
|
203
|
+
A host recomposes the editor through props, never by forking it. Every option keeps
|
|
204
|
+
the default below, so an existing consumer renders as before:
|
|
205
|
+
|
|
206
|
+
| Prop | Default | What it changes |
|
|
207
|
+
| -------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
208
|
+
| `fontSettingsPlacement` | `inline` | `end` closes the option list with the typefaces, after Glass, Reduce transparency and Theme library. |
|
|
209
|
+
| `accentEntryStyle` | `swatches` | `labels` renders every choice as a named chip. `row` draws the presets as circles in one equally spaced line (it holds at 320px, where the grid wraps) and turns Custom into a button that opens the native colour selector: only a chosen colour changes the draft. |
|
|
210
|
+
| `showThemeDefaultAccent` | `true` | `false` drops the leading "Theme default" entry, for a host whose default accent already is a preset. |
|
|
211
|
+
| `showCustomAccentCaption` | `true` | `false` drops the "Custom" caption over the `swatches` style's custom chip. No effect on `labels` or `row`. |
|
|
212
|
+
| `showModeIcons` | `false` | A sun, moon or monitor glyph beside each mode card's label. |
|
|
213
|
+
| `triggerVariant` (popover) | `ghost` | `toolbar` holds the pressed rung while the sheet is open and repeats the palette glyph in the tooltip, like the other toolbar actions. |
|
|
214
|
+
|
|
215
|
+
`customAccentValue` seeds the native selector (`row`) and the draft the `swatches`
|
|
216
|
+
Custom chip commits; hand it your starting colour.
|
|
217
|
+
|
|
218
|
+
### Avoiding the flash
|
|
219
|
+
|
|
220
|
+
A themed app has to know the appearance before the first paint, or it paints
|
|
221
|
+
once in the wrong mode. `themeScript` emits the inline script that does it:
|
|
222
|
+
|
|
223
|
+
```tsx
|
|
224
|
+
<head>
|
|
225
|
+
<script innerHTML={themeScript('my-app-appearance')} />
|
|
226
|
+
</head>
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Pass the same key to `ThemeProvider` as `storageKey`, and the two agree.
|
|
230
|
+
|
|
231
|
+
## Fonts
|
|
232
|
+
|
|
233
|
+
Font preference roles and font assets are separate opt-ins. Import
|
|
234
|
+
`appearance-font-settings.css` after the theme and base styles to enable the
|
|
235
|
+
shared UI/content/code projections and utilities. `globals.css` does not import
|
|
236
|
+
font assets; import `fonts.css` explicitly when those faces are wanted:
|
|
237
|
+
|
|
238
|
+
```css
|
|
239
|
+
@import '@adea-ai/ui/theme.css';
|
|
240
|
+
@import '@adea-ai/ui/base.css';
|
|
241
|
+
@import '@adea-ai/ui/appearance-font-settings.css';
|
|
242
|
+
@import '@adea-ai/ui/fonts.css'; /* omit to bring your own */
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
`appearance-font-settings.css` defaults `--font-ui`, `--font-content` and
|
|
246
|
+
`--font-code` to System and scales each text role. Import it after `theme.css` and
|
|
247
|
+
`base.css`, then apply settings with the shared runtime or prepaint helper; the
|
|
248
|
+
helper resolves catalogue ids to family tokens and writes canonical pixel sizes.
|
|
249
|
+
This stylesheet does not load any font files.
|
|
250
|
+
The `font-ui-size`, `font-content-size` and `font-code-size` entries in the token
|
|
251
|
+
gallery are runtime-projected properties: `applyAppearanceFontSettings` and
|
|
252
|
+
`fontSettingsBootstrapScript` write their pixel values from normalized font
|
|
253
|
+
settings. They are not fixed declarations in the theme stylesheet.
|
|
254
|
+
`--font-sans` and `--font-mono` remain compatibility aliases for UI and code.
|
|
255
|
+
The shared projection and prepaint helpers are exported from
|
|
256
|
+
`@adea-ai/ui/lib/appearance-font-settings`; hosts can normalize persisted ids,
|
|
257
|
+
apply the shared data attributes, resolve family ids through the published
|
|
258
|
+
`--font-family-*` tokens, and reuse the same bootstrap snippet without
|
|
259
|
+
duplicating catalogue rules.
|
|
260
|
+
For versioned host preferences, pass the expected version as the bootstrap
|
|
261
|
+
helper's second argument. Only an exact version match is applied before paint;
|
|
262
|
+
missing or unsupported records use the System defaults. Omitting the argument
|
|
263
|
+
retains the unversioned helper behavior.
|
|
264
|
+
Each UI, Content and Code chooser keeps the complete font catalogue, and Code
|
|
265
|
+
uses the exact selected catalogue family. Choose a `Mono` option when you want a
|
|
266
|
+
monospace face; `System` uses the platform's monospace counterpart for Code.
|
|
267
|
+
|
|
268
|
+
## Forms and navigation
|
|
49
269
|
|
|
50
270
|
Use `NativeSelect` for a compact list of known choices that should keep native
|
|
51
271
|
keyboard, form submission, option, and label behavior:
|
|
@@ -83,8 +303,6 @@ ref props still apply to the input.
|
|
|
83
303
|
`size="settings"` with `SettingsPage` for a wider,
|
|
84
304
|
viewport-bounded settings surface; the shared layout keeps its panel content
|
|
85
305
|
scrollable while the dialog title remains visible.
|
|
86
|
-
The settings navigation and modal sizing browser contracts run against the
|
|
87
|
-
packed artifact in both pull-request validation and publishing.
|
|
88
306
|
|
|
89
307
|
`ThreadPanel.headerActions` accepts shared controls for host actions such as
|
|
90
308
|
marking a thread unread. Closing the thread remains a separate labelled,
|
|
@@ -115,6 +333,22 @@ Ctrl/Cmd + arrow moves skip disabled columns without wrapping at the edges.
|
|
|
115
333
|
After a controlled move settles, focus follows the moved card only when the
|
|
116
334
|
source card owned focus; another focus or pointer action cancels restoration.
|
|
117
335
|
|
|
336
|
+
Square icon controls use the control-height tokens through the Tailwind `--size`
|
|
337
|
+
mapping; `--spacing-control-*` remains the separate inline-padding ladder.
|
|
338
|
+
Text controls, icon buttons and toggles share the same height in both densities.
|
|
339
|
+
Dimensions remain rem-based and follow the consumer's root font size. The browser
|
|
340
|
+
geometry lane checks the standard density rungs, heights and padding under both
|
|
341
|
+
themes/densities; the `2xl` touch target remains 48px under compact density.
|
|
342
|
+
|
|
343
|
+
On narrow screens, the shared `TopBar` keeps a usable middle Search target while
|
|
344
|
+
side groups scroll horizontally when their actions do not fit. Keyboard focus
|
|
345
|
+
reveals each action. Groups opt out of native window dragging.
|
|
346
|
+
Use `TopBarTitle align="center"` to center text within its slot; the host controls
|
|
347
|
+
slot placement. Use layout-only visibility classes when a title should yield
|
|
348
|
+
space to essential controls.
|
|
349
|
+
|
|
350
|
+
## Catalog browser
|
|
351
|
+
|
|
118
352
|
`CatalogBrowser` presents a host-owned searchable catalog with ordered category
|
|
119
353
|
groups, discover/installed tabs, bounded group expansion, optional filters and
|
|
120
354
|
supplemental tabs. Give `entries` the full set of detail records so opening an
|
|
@@ -198,179 +432,44 @@ const groups: readonly CatalogBrowserGroup<VerifiedPlugin>[] = /* visible filter
|
|
|
198
432
|
The `CatalogBrowser` story demonstrates category expansion, search, separate
|
|
199
433
|
installed content, a supplemental navigation surface, and host-provided details.
|
|
200
434
|
|
|
201
|
-
|
|
202
|
-
|
|
435
|
+
Catalog detail summaries place actions and feedback beneath identity on narrow
|
|
436
|
+
screens, preserving readable title/description flow. Grouped field sections keep
|
|
437
|
+
their content at the top while sharing the outline and dividers.
|
|
203
438
|
|
|
204
|
-
|
|
205
|
-
@import 'tailwindcss';
|
|
206
|
-
@import '@adea-ai/ui/theme.css';
|
|
207
|
-
@import '@adea-ai/ui/base.css';
|
|
208
|
-
@import '@adea-ai/ui/appearance-font-settings.css'; /* optional: shared font roles and Appearance controls */
|
|
209
|
-
@source '../node_modules/@adea-ai/ui/src/components/ui/button';
|
|
210
|
-
```
|
|
439
|
+
## Composer
|
|
211
440
|
|
|
212
|
-
|
|
213
|
-
separate explicit `@adea-ai/ui/fonts.css` import. The packed-artifact gate expands
|
|
214
|
-
all component and library export conditions and rejects leaked story/test files,
|
|
215
|
-
including declaration output.
|
|
441
|
+
### Chat composer
|
|
216
442
|
|
|
217
|
-
|
|
443
|
+
`ChatComposer` translates the pinned Kiro composer hierarchy: knowledge context,
|
|
444
|
+
follow-ups and adjacent band, approval/notices, staged content, input/action
|
|
445
|
+
rows and the context shelf. It composes the existing IME and busy-action units.
|
|
446
|
+
Its optional controlled `collapse` contract unmounts input and shelf and replaces
|
|
447
|
+
them with a labeled bar showing the waiting draft's first line. Collapse keeps
|
|
448
|
+
the host draft and caret selection; `controlRef` exposes instance-scoped
|
|
449
|
+
`focus()`/`expandAndFocus()` instead of a global shortcut or broadcast.
|
|
218
450
|
|
|
219
|
-
|
|
220
|
-
|
|
451
|
+
The host supplies `value`, `onValueChange` and `onSubmit({text, action})`; it owns
|
|
452
|
+
attachments and runtime authority and clears its draft only after confirmation.
|
|
453
|
+
The shared input guards pending delivery, reports failure, visibly blocks
|
|
454
|
+
unsupported delivery and fences local feedback on `resetKey`. Enter follows the
|
|
455
|
+
controlled busy mode, while Ctrl/Cmd+Enter requests the other supported busy
|
|
456
|
+
action. `sendableActions` declares non-text payload eligibility per action: a
|
|
457
|
+
reference-only draft can send or queue without becoming steerable. Explicit false
|
|
458
|
+
also vetoes delivery when the draft contains text; alternate-action hints appear
|
|
459
|
+
only when that action is eligible. Mode selection
|
|
460
|
+
itself never fires. `approvalFocus` is host-derived
|
|
461
|
+
presentation, not a permission decision. Agent and model controls remain distinct
|
|
462
|
+
host contributions in `context`.
|
|
221
463
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
import { LineChart } from '@adea-ai/ui/components/ui/chart'
|
|
225
|
-
import { Carousel, CarouselSlide } from '@adea-ai/ui/components/ui/carousel'
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
Install `chart.js` and `solid-chartjs` for charts, or `embla-carousel` and
|
|
229
|
-
`embla-carousel-solid` for carousels. All chart helpers and types move with the
|
|
230
|
-
chart entry; all carousel helpers and types move with the carousel entry.
|
|
231
|
-
Folder export conditions, registry distribution and component behavior remain
|
|
232
|
-
available. This is an intentional breaking export change, recorded in release
|
|
233
|
-
notes through the breaking Conventional Commit, rather than a silent patch.
|
|
234
|
-
|
|
235
|
-
## Theming
|
|
236
|
-
|
|
237
|
-
The catalogue is 34 themes across two appearances, grouped into families. The
|
|
238
|
-
provider takes an initial selection and every axis is a plain value:
|
|
239
|
-
|
|
240
|
-
```tsx
|
|
241
|
-
<ThemeProvider
|
|
242
|
-
initial={{
|
|
243
|
-
appearance: 'system', // 'light' | 'dark' | 'system'
|
|
244
|
-
lightThemeId: 'adea-light',
|
|
245
|
-
darkThemeId: 'adea-dark',
|
|
246
|
-
accent: 'theme', // or 'violet' | 'blue' | 'green' | 'amber' | 'cyan' | 'pink',
|
|
247
|
-
// or a theme-carried accent such as 'ansi-blue'
|
|
248
|
-
fonts: {
|
|
249
|
-
ui: { family: 'system', size: 14 },
|
|
250
|
-
content: { family: 'system', size: 14 },
|
|
251
|
-
code: { family: 'system', size: 12 },
|
|
252
|
-
},
|
|
253
|
-
}}
|
|
254
|
-
>
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
| Axis | Values | How it is applied |
|
|
258
|
-
| ---------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
259
|
-
| Appearance | `light`, `dark`, `system` | a `dark` class plus `color-scheme` on `<html>` |
|
|
260
|
-
| Theme | any of the 34 catalogue ids | the variant's tokens, written as custom properties on `<html>` |
|
|
261
|
-
| Accent | `theme` (follow the variant), one of six presets, or an accent the theme pair carries (`ansi-blue`…) | a `data-accent` attribute on `<html>`, plus the resolved roles as custom properties |
|
|
262
|
-
| Fonts | UI, content and code family ids from the shared catalogue; sizes from 10–32px | Stable `data-*-font` ids plus resolved `--font-*` family and pixel-size properties |
|
|
263
|
-
|
|
264
|
-
Older single-font `font` preferences remain readable and migrate their family to
|
|
265
|
-
the UI axis; new preferences store `fonts` with one family and size per axis.
|
|
266
|
-
Canonical size properties stay in pixels for native editor integrations; the
|
|
267
|
-
shared text tokens use rem-relative ratios so browser root-text enlargement still
|
|
268
|
-
scales UI, prose, keyboard keys and code.
|
|
269
|
-
|
|
270
|
-
Read and change the current selection with `useTheme()`:
|
|
271
|
-
|
|
272
|
-
```tsx
|
|
273
|
-
const { selection, resolvedAppearance, setSelection, themes, themeAccents } = useTheme()
|
|
274
|
-
setSelection({ accent: 'amber' })
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
`themeAccents()` lists the accents the selected light/dark theme pair carries
|
|
278
|
-
itself (`@adea-ai/themes`' `themeAccentPresets`): the palette's own blue,
|
|
279
|
-
magenta, cyan and green, offered only when both themes clear the catalogue's
|
|
280
|
-
accent floors. Their ids are role-shaped, so `ansi-blue` follows a theme switch
|
|
281
|
-
to the new theme's blue; a slot the new pair cannot offer falls back to the
|
|
282
|
-
theme's own primary. The primary grid is the theme default plus five standard
|
|
283
|
-
presets; Violet remains available under Additional colors, and theme accents
|
|
284
|
-
have their own group.
|
|
285
|
-
|
|
286
|
-
Two components ship for the settings surface: `AppearancePanel` is the whole
|
|
287
|
-
appearance view, and `ThemeToggle` is the light/dark switch on its own.
|
|
288
|
-
|
|
289
|
-
`SettingsLayout` composes a controlled vertical tab root, grouped `SettingsNavigation`,
|
|
290
|
-
and a scrollable panel viewport. Supply the selected `value`, `onChange`, navigation
|
|
291
|
-
groups, and matching `TabsContent` panels. The host owns URL or preference updates
|
|
292
|
-
and panel content; below 48rem of viewport width the rail becomes a horizontal,
|
|
293
|
-
scrollable strip of tabs above the panels (groups in order, Left/Right keys,
|
|
294
|
-
`aria-orientation="horizontal"`), and `navigationLayout="rail" | "strip"` pins one
|
|
295
|
-
shape at every width. The layout reports repeated activation through `onReselect`
|
|
296
|
-
and reveals the selected row on either axis by default. Use `SettingsNavigation`
|
|
297
|
-
directly when you already own the surrounding tabs composition; it follows the
|
|
298
|
-
enclosing `Tabs` orientation.
|
|
299
|
-
Shared tabs associate panels with custom trigger IDs in browser and server renders;
|
|
300
|
-
an explicit panel `aria-labelledby` takes precedence. Independent tab roots keep
|
|
301
|
-
their associations separate.
|
|
302
|
-
|
|
303
|
-
### Avoiding the flash
|
|
304
|
-
|
|
305
|
-
A themed app has to know the appearance before the first paint, or it paints
|
|
306
|
-
once in the wrong mode. `themeScript` emits the inline script that does it:
|
|
307
|
-
|
|
308
|
-
```tsx
|
|
309
|
-
<head>
|
|
310
|
-
<script innerHTML={themeScript('my-app-appearance')} />
|
|
311
|
-
</head>
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
Pass the same key to `ThemeProvider` as `storageKey`, and the two agree.
|
|
315
|
-
|
|
316
|
-
## Fonts
|
|
317
|
-
|
|
318
|
-
Font preference roles and font assets are separate opt-ins. Import
|
|
319
|
-
`appearance-font-settings.css` after the theme and base styles to enable the
|
|
320
|
-
shared UI/content/code projections and utilities. `globals.css` does not import
|
|
321
|
-
font assets; import `fonts.css` explicitly when those faces are wanted:
|
|
322
|
-
|
|
323
|
-
```css
|
|
324
|
-
@import '@adea-ai/ui/theme.css';
|
|
325
|
-
@import '@adea-ai/ui/base.css';
|
|
326
|
-
@import '@adea-ai/ui/appearance-font-settings.css';
|
|
327
|
-
@import '@adea-ai/ui/fonts.css'; /* omit to bring your own */
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
`appearance-font-settings.css` defaults `--font-ui`, `--font-content` and
|
|
331
|
-
`--font-code` to System and scales each text role. Import it after `theme.css` and
|
|
332
|
-
`base.css`, then apply settings with the shared runtime or prepaint helper; the
|
|
333
|
-
helper resolves catalogue ids to family tokens and writes canonical pixel sizes.
|
|
334
|
-
This stylesheet does not load any font files.
|
|
335
|
-
The `font-ui-size`, `font-content-size` and `font-code-size` entries in the token
|
|
336
|
-
gallery are runtime-projected properties: `applyAppearanceFontSettings` and
|
|
337
|
-
`fontSettingsBootstrapScript` write their pixel values from normalized font
|
|
338
|
-
settings. They are not fixed declarations in the theme stylesheet.
|
|
339
|
-
`--font-sans` and `--font-mono` remain compatibility aliases for UI and code.
|
|
340
|
-
The shared projection and prepaint helpers are exported from
|
|
341
|
-
`@adea-ai/ui/lib/appearance-font-settings`; hosts can normalize persisted ids,
|
|
342
|
-
apply the shared data attributes, resolve family ids through the published
|
|
343
|
-
`--font-family-*` tokens, and reuse the same bootstrap snippet without
|
|
344
|
-
duplicating catalogue rules.
|
|
345
|
-
For versioned host preferences, pass the expected version as the bootstrap
|
|
346
|
-
helper's second argument. Only an exact version match is applied before paint;
|
|
347
|
-
missing or unsupported records use the System defaults. Omitting the argument
|
|
348
|
-
retains the unversioned helper behavior.
|
|
349
|
-
Each UI, Content and Code chooser keeps the complete font catalogue, and Code
|
|
350
|
-
uses the exact selected catalogue family. Choose a `Mono` option when you want a
|
|
351
|
-
monospace face; `System` uses the platform's monospace counterpart for Code.
|
|
464
|
+
Sent-prompt history, manual resize, uploads, voice and stop/resume are not part
|
|
465
|
+
of the shared composer; hosts build them.
|
|
352
466
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
```sh
|
|
358
|
-
bunx shadcn@latest add https://adea-ai.github.io/ui/r/button.json
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
## Reviewing it
|
|
362
|
-
|
|
363
|
-
Every component, every variant and the token galleries are in the workshop:
|
|
364
|
-
|
|
365
|
-
```sh
|
|
366
|
-
bun run storybook
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
The toolbar switches theme, accent, fonts and density live, which is the
|
|
370
|
-
fastest way to see how a component behaves across the catalogue rather than in
|
|
371
|
-
one theme.
|
|
467
|
+
`sendableActions` is the host's payload eligibility contract: explicit `false`
|
|
468
|
+
refuses that action even with typed text, explicit `true` supports structured
|
|
469
|
+
payloads without text, and omitted entries fall back to nonempty text. Selecting
|
|
470
|
+
an unavailable action cannot override this contract through keyboard delivery.
|
|
372
471
|
|
|
373
|
-
|
|
472
|
+
### Keyboard and IME
|
|
374
473
|
|
|
375
474
|
`MessageComposer` preserves native IME candidate commits and suppresses sending
|
|
376
475
|
during composition, including the 50 ms commit window when browser flags have
|
|
@@ -388,81 +487,7 @@ maximum; `inputResize` selects one of the Textarea's named resize behaviors.
|
|
|
388
487
|
`Textarea` owns both its standalone and borderless `variant="composer"`
|
|
389
488
|
appearances, so consumers do not need to style a nested control.
|
|
390
489
|
|
|
391
|
-
|
|
392
|
-
Chromium and WebKit. The event-sequence tests exercise browser handling of
|
|
393
|
-
composition flags, timers and focus recovery; manual operating-system IME
|
|
394
|
-
acceptance and each application's mounted chat journey remain separate gates.
|
|
395
|
-
|
|
396
|
-
## Transcript follow
|
|
397
|
-
|
|
398
|
-
`ConversationSurface` follows streamed text, earlier-row growth, turn collapse
|
|
399
|
-
and pane resizing using the KiroCrew plain-scroller decision contract. A
|
|
400
|
-
deliberate upward scroll releases follow, including small moves near the bottom.
|
|
401
|
-
Returning to the bottom or choosing **Jump to latest** re-arms it; the action
|
|
402
|
-
does not estimate unread messages from pixel distance. Instant pins keep
|
|
403
|
-
self-scroll attribution synchronized. Keyboard jumping returns focus to the
|
|
404
|
-
transcript when its jump control disappears; automatic pins never move focus.
|
|
405
|
-
|
|
406
|
-
`threshold` controls jump-button visibility (80px by default), independently of
|
|
407
|
-
follow intent. `follow={false}` is fully inert: positioning belongs to the host,
|
|
408
|
-
with no observer or mount pin. Re-enabling it explicitly re-arms at the bottom
|
|
409
|
-
unless the host supplies `initialReadingPosition: { top, following }`. That
|
|
410
|
-
snapshot is consumed only on mount, identity reset or follow re-enable; ordinary
|
|
411
|
-
snapshot prop changes never reposition the reader. A parked snapshot releases
|
|
412
|
-
follow until an explicit jump or native return to the bottom. The
|
|
413
|
-
`onReadingPositionChange` callback reports native offset and actual follow intent,
|
|
414
|
-
including small upward moves inside the jump visibility threshold. An optional
|
|
415
|
-
`resetKey` resets follow or consumes the current identity's snapshot. Canonical
|
|
416
|
-
session identity, durable restoration and virtualized transcript windows remain
|
|
417
|
-
application-owned. `ref` and `onScroll` still reach the inner scroller.
|
|
418
|
-
|
|
419
|
-
`bun run test:components` checks the built component in Chromium and WebKit.
|
|
420
|
-
The `SurfaceFollowing` story exercises streaming, collapse and pane resizing;
|
|
421
|
-
source/license/test provenance is recorded in `NOTICE`.
|
|
422
|
-
|
|
423
|
-
## Packed conversation pilot
|
|
424
|
-
|
|
425
|
-
After building, run `bun run check:packed-conversation` to pack the actual npm
|
|
426
|
-
artifact and install it into a disposable consumer without optional heavy peers.
|
|
427
|
-
The composition imports the documented conversation subpath and builds under
|
|
428
|
-
both default compiled and Solid source conditions. Headless Chromium and WebKit
|
|
429
|
-
check failed-draft retention, recovery, native IME candidate defaults and commit
|
|
430
|
-
latch, reader intent, keyboard jump focus and external Tailwind utility delivery.
|
|
431
|
-
The output records retained module paths, JS/gzip/CSS totals, font exclusion and
|
|
432
|
-
one Solid runtime. Its first measured baseline was 23,880/23,936 gzip JS bytes
|
|
433
|
-
(compiled/Solid) and 40,203 raw CSS bytes. The fixture gates 26 KiB gzip JS and
|
|
434
|
-
42 KiB raw CSS, alongside independent module exclusions. The packed Apache license
|
|
435
|
-
and all four selected KiroCrew attribution sections must be present. This pilot adds no server
|
|
436
|
-
and removes its temporary consumer.
|
|
437
|
-
|
|
438
|
-
A separate packed busy-action fixture imports only `BusySendButton`. Both
|
|
439
|
-
conditions and engines check disabled firing with live mode selection, the scoped
|
|
440
|
-
Tab cycle, focus restoration, action-only execution, unavailable-mode recovery
|
|
441
|
-
and square-control token delivery (24 check groups, plus the conversation's 28).
|
|
442
|
-
Its measured gzip JS baseline is 50,308/50,429 bytes with a separate 50 KiB cap;
|
|
443
|
-
both fixtures share the 42 KiB raw CSS cap. Their module graphs must exclude each
|
|
444
|
-
other's unrelated components as well as charts, editors, terminal/highlighter,
|
|
445
|
-
theme JS, fonts and workshop assets. Tailwind scans the required external source
|
|
446
|
-
folders explicitly; this check does not assume consumer node_modules scanning.
|
|
447
|
-
|
|
448
|
-
This lane complements `check:packed-consumer`; it does not replace its required
|
|
449
|
-
root imports, lightweight controls, overlay and shell checks. Chart and Carousel use explicit optional-engine subpaths; core root imports do not
|
|
450
|
-
require their peers. The root-contract lane independently checks that API. These
|
|
451
|
-
composition fixtures do not certify full donor Chat, rendered Dev/Chat state
|
|
452
|
-
restoration or production adoption.
|
|
453
|
-
|
|
454
|
-
## Licence
|
|
455
|
-
|
|
456
|
-
Apache-2.0.
|
|
457
|
-
|
|
458
|
-
## Busy composer action
|
|
459
|
-
|
|
460
|
-
Square icon controls use the control-height tokens through the Tailwind `--size`
|
|
461
|
-
mapping; `--spacing-control-*` remains the separate inline-padding ladder.
|
|
462
|
-
Text controls, icon buttons and toggles share the same height in both densities.
|
|
463
|
-
Dimensions remain rem-based and follow the consumer's root font size. The browser
|
|
464
|
-
geometry lane checks the standard density rungs, heights and padding under both
|
|
465
|
-
themes/densities; the `2xl` touch target remains 48px under compact density.
|
|
490
|
+
### Busy send button
|
|
466
491
|
|
|
467
492
|
`BusySendButton` translates KiroCrew's split fire/mode-picker composition. Pass
|
|
468
493
|
controlled `mode`, `onModeChange` and `onFire`. `disabled` prevents firing while
|
|
@@ -473,138 +498,12 @@ when the host implements the described keyboard chord. The component adds no
|
|
|
473
498
|
keyboard chord, preference storage, runtime command or queue. Persistence and
|
|
474
499
|
same-session preference synchronization remain application-owned.
|
|
475
500
|
|
|
476
|
-
## Scene controls
|
|
477
|
-
|
|
478
|
-
`SceneControls` composes movement, jump and optional zoom actions for a host
|
|
479
|
-
scene. `onMovementChange(direction, pressed)` and `onJumpChange(pressed)` report
|
|
480
|
-
held state from pointer or keyboard input; zoom callbacks fire once per
|
|
481
|
-
activation. The shared controls capture pointers and release held actions on
|
|
482
|
-
pointer end/cancel, lost capture, window blur and component cleanup. The host
|
|
483
|
-
maps these typed callbacks to its own camera or movement system; the component
|
|
484
|
-
does not synthesize keyboard events or access host globals. Each icon action
|
|
485
|
-
uses the shared tooltip and a `2xl` 48px target that stays that size under
|
|
486
|
-
compact density. Rounded movement and zoom group surfaces use the shared
|
|
487
|
-
scrim treatment, which follows the library's reduced-transparency and fallback
|
|
488
|
-
policy.
|
|
489
|
-
|
|
490
|
-
```tsx
|
|
491
|
-
import { SceneControls } from '@adea-ai/ui/components/composites/scene-controls'
|
|
492
|
-
|
|
493
|
-
;<SceneControls
|
|
494
|
-
onMovementChange={(direction, pressed) => setMovement(direction, pressed)}
|
|
495
|
-
onJumpChange={(pressed) => setJumping(pressed)}
|
|
496
|
-
onZoomIn={zoomIn}
|
|
497
|
-
onZoomOut={zoomOut}
|
|
498
|
-
/>
|
|
499
|
-
```
|
|
500
|
-
|
|
501
|
-
Labels default to English and can be supplied through `labels` for a host's
|
|
502
|
-
locale. Hold actions have separate accessible names and explanatory tooltip
|
|
503
|
-
strings so localization can describe the gesture without changing the action
|
|
504
|
-
name. `SceneControls` owns control arrangement and interaction lifecycle;
|
|
505
|
-
the host owns placement, persistence and scene behavior.
|
|
506
|
-
|
|
507
|
-
After building, `bun run check:packed-scene-controls` verifies the installed npm
|
|
508
|
-
archive under both compiled and Solid export conditions. It reuses the
|
|
509
|
-
SceneControls and ActionButton consumer fixtures to check held callback release,
|
|
510
|
-
localized labels, keyboard and pointer cleanup, and the opt-in touch target at
|
|
511
|
-
320px and 200% text. It also checks packed type declarations, license/NOTICE,
|
|
512
|
-
native Node SSR, module separation, and the existing 40 KiB gzip / 32 KiB CSS
|
|
513
|
-
control budgets. The ActionButton fixture with menus and popovers uses the
|
|
514
|
-
existing 38 KiB gzip / 40 KiB CSS overlay budgets. These packed consumer checks
|
|
515
|
-
do not replace product-level native-device acceptance.
|
|
516
|
-
|
|
517
501
|
Kobalte owns the menu and focus lifecycle. Its Tab prevention lacks row cycling,
|
|
518
502
|
so a menu-scoped donor translation cycles enabled rows without a document listener.
|
|
519
503
|
Stories cover before-typing, working,
|
|
520
|
-
unavailable and read-only states.
|
|
521
|
-
Solid composition headlessly in Chromium and WebKit. Full Chat composition,
|
|
522
|
-
packed distribution and real consumer/native acceptance remain separate gates.
|
|
523
|
-
|
|
524
|
-
## Composed Chat input pilot
|
|
525
|
-
|
|
526
|
-
`ChatComposer` translates the pinned Kiro composer hierarchy: knowledge context,
|
|
527
|
-
follow-ups and adjacent band, approval/notices, staged content, input/action
|
|
528
|
-
rows and the context shelf. It composes the existing IME and busy-action units.
|
|
529
|
-
Its optional controlled `collapse` contract unmounts input and shelf and replaces
|
|
530
|
-
them with a labeled bar showing the waiting draft's first line. Collapse keeps
|
|
531
|
-
the host draft and caret selection; `controlRef` exposes instance-scoped
|
|
532
|
-
`focus()`/`expandAndFocus()` instead of a global shortcut or broadcast.
|
|
533
|
-
|
|
534
|
-
The host supplies `value`, `onValueChange` and `onSubmit({text, action})`; it owns
|
|
535
|
-
attachments and runtime authority and clears its draft only after confirmation.
|
|
536
|
-
The shared input guards pending delivery, reports failure, visibly blocks
|
|
537
|
-
unsupported delivery and fences local feedback on `resetKey`. Enter follows the
|
|
538
|
-
controlled busy mode, while Ctrl/Cmd+Enter requests the other supported busy
|
|
539
|
-
action. `sendableActions` declares non-text payload eligibility per action: a
|
|
540
|
-
reference-only draft can send or queue without becoming steerable. Explicit false
|
|
541
|
-
also vetoes delivery when the draft contains text; alternate-action hints appear
|
|
542
|
-
only when that action is eligible. Mode selection
|
|
543
|
-
itself never fires. `approvalFocus` is host-derived
|
|
544
|
-
presentation, not a permission decision. Agent and model controls remain distinct
|
|
545
|
-
host contributions in `context`.
|
|
546
|
-
|
|
547
|
-
This is an unshipped release proposal for UI issue #21, dependent on the
|
|
548
|
-
packing/IME/follow/busy PRs #16/#18/#19/#20. It is not full donor Chat,
|
|
549
|
-
canonical runtime restoration or application adoption. The separately scoped,
|
|
550
|
-
opt-in paste-token editor for issue #532 is documented below. Sent-prompt
|
|
551
|
-
undo/history, manual resize, upload/skill/voice/optimizer and stop/resume
|
|
552
|
-
operations are not claimed by these ports. They require their own mapped reusable
|
|
553
|
-
behavior or application composition as the owning issues specify.
|
|
554
|
-
|
|
555
|
-
The composed-input packed fixture checks collapse/draft retention, shelf unmount,
|
|
556
|
-
focus restoration, failed-delivery recovery, controlled busy mode, its alternate
|
|
557
|
-
gesture, native IME defaults and external Tailwind styles under both exports and
|
|
558
|
-
both engines, including reference-only queue eligibility/steer refusal and the
|
|
559
|
-
pending-delivery state with its explicitly scanned spinner CSS. On the current
|
|
560
|
-
actual-tarball run, its gzip JS is 53,554 bytes compiled and 53,650 bytes Solid,
|
|
561
|
-
below the unchanged 55,296-byte cap; CSS is 41,624 bytes under the shared 43,008-byte
|
|
562
|
-
cap. The separate atomic fixture measures 58,922/59,043 gzip JS and 42,289 CSS.
|
|
563
|
-
Its measured incremental cost over the same-condition composed fixture is
|
|
564
|
-
5,368/5,393 gzip JS, with 751 bytes of headroom under the accepted 6 KiB feature
|
|
565
|
-
increment ceiling, and 665 additional CSS bytes. The gate applies the 6 KiB
|
|
566
|
-
limit to that paired-fixture delta; modules retained in both bundles are excluded
|
|
567
|
-
from the increment. The unchanged 54 KiB composed ceiling and shared 43,008-byte
|
|
568
|
-
CSS ceiling still apply, and no production bundle cap has changed. The gate checks
|
|
569
|
-
both export conditions and engines, reports native Node SSR separately, and keeps
|
|
570
|
-
plain/atomic module ownership separate. Selected Kiro NOTICE attributions and the
|
|
571
|
-
license must survive the tarball.
|
|
572
|
-
Native CSS content sizing replaces live-field measurement on the two verified
|
|
573
|
-
engines, both of which support it; legacy-engine fallback is not claimed.
|
|
574
|
-
|
|
575
|
-
The release gate `bun run check:packed-conversation` installs the actual tarball
|
|
576
|
-
with optional engines absent, checks compiled and Solid browser conditions in
|
|
577
|
-
Chromium and WebKit, and compiles installed Solid source for native Node SSR.
|
|
578
|
-
The expanded server output includes the input and context; collapsed output
|
|
579
|
-
keeps the draft preview while omitting both, and token-mode SSR retains its
|
|
580
|
-
highlight mirror and token text. Browser cases check opaque menu surfaces,
|
|
581
|
-
control sizing, streaming follow, IME ownership, draft recovery, collapse/focus,
|
|
582
|
-
busy actions, pending spinner styling, atomic token paste/pruning, accessible
|
|
583
|
-
previews and the referenced-block submit snapshot.
|
|
584
|
-
|
|
585
|
-
External CSS discovery includes the exact component files used by the fixture,
|
|
586
|
-
Button's `src/lib/variants.ts`, the token editor and Tooltip source, and menu
|
|
587
|
-
compositions' `src/lib/overlay.ts`.
|
|
588
|
-
`node_modules` is excluded from automatic Tailwind scanning; importing a
|
|
589
|
-
stylesheet alone does not discover these shared class strings. Stories are
|
|
590
|
-
excluded from discovery. Earlier plain and busy CSS measurements were 37,060
|
|
591
|
-
and 40,644 bytes; current composed and atomic fixture measurements are listed
|
|
592
|
-
above, all under the existing shared 43,008-byte cap. Existing gzip JS caps
|
|
593
|
-
remain 26, 50 and 54 KiB for the plain, busy and composed fixtures,
|
|
594
|
-
respectively. This fixture proves the published component contract; mounted
|
|
595
|
-
Adea/Cortana services, hydration and manual IME/assistive-technology acceptance
|
|
596
|
-
remain application evidence lanes.
|
|
597
|
-
|
|
598
|
-
`sendableActions` is the host's payload eligibility contract: explicit `false`
|
|
599
|
-
refuses that action even with typed text, explicit `true` supports structured
|
|
600
|
-
payloads without text, and omitted entries fall back to nonempty text. Selecting
|
|
601
|
-
an unavailable action cannot override this contract through keyboard delivery.
|
|
602
|
-
|
|
603
|
-
Local packed interaction gates require `bunx playwright install chromium webkit`
|
|
604
|
-
after dependency installation. On Linux, use `--with-deps` when required system
|
|
605
|
-
libraries are absent. Automation uses headless disposable browser contexts.
|
|
504
|
+
unavailable and read-only states.
|
|
606
505
|
|
|
607
|
-
|
|
506
|
+
### Paste tokens
|
|
608
507
|
|
|
609
508
|
`@adea-ai/ui/components/conversation` also exports the pure paste-token model:
|
|
610
509
|
`PasteBlock`, `isPasteBlock`, `countLines`, `shouldCollapse`, `nextSeq`,
|
|
@@ -614,10 +513,9 @@ threshold and marker constants. Hosts provide stable, bounded ASCII block IDs an
|
|
|
614
513
|
draft state, persistence, message reconciliation and editor behavior. The model
|
|
615
514
|
does not read storage or the clipboard, upload files, edit a textarea, or
|
|
616
515
|
provide undo/history, previews or chips. The opt-in editor below composes this
|
|
617
|
-
pure model with a controlled textarea.
|
|
618
|
-
attribution are recorded in the issue #532 entries in `NOTICE`.
|
|
516
|
+
pure model with a controlled textarea. Source attribution is in `NOTICE`.
|
|
619
517
|
|
|
620
|
-
|
|
518
|
+
#### Atomic paste editor
|
|
621
519
|
|
|
622
520
|
`ChatComposer` keeps its plain-text API and bundle closure. Consumers that need
|
|
623
521
|
atomic paste editing import `AtomicChatComposer` from the direct
|
|
@@ -629,7 +527,7 @@ referenced `blocks` before delivery starts. Both entries share a private
|
|
|
629
527
|
composition shell; the UI owns no paste identity, history, storage, transport or
|
|
630
528
|
undo state.
|
|
631
529
|
|
|
632
|
-
The
|
|
530
|
+
The editor collapses text-only pastes at the existing three-line or
|
|
633
531
|
200-character thresholds, supports raw Cmd/Ctrl+Shift+V for the next paste,
|
|
634
532
|
preserves standalone and Markdown quote-prefix placement, and keeps token
|
|
635
533
|
deletion, navigation, selection and dropped-text replacement atomic.
|
|
@@ -645,25 +543,94 @@ while keeping focus in the textarea. The preview uses the existing tooltip
|
|
|
645
543
|
portal without intercepting textarea input.
|
|
646
544
|
|
|
647
545
|
Only `ClipboardEvent.clipboardData` text is read. Clipboard permissions,
|
|
648
|
-
images
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
546
|
+
images and files, uploads, rich editing, persistence and sent-prompt history stay
|
|
547
|
+
with the host. The `AtomicPasteTokens` story shows the controlled contract.
|
|
548
|
+
|
|
549
|
+
## Transcript
|
|
550
|
+
|
|
551
|
+
### Following new output
|
|
552
|
+
|
|
553
|
+
`ConversationSurface` follows streamed text, earlier-row growth, turn collapse
|
|
554
|
+
and pane resizing using the KiroCrew plain-scroller decision contract. A
|
|
555
|
+
deliberate upward scroll releases follow, including small moves near the bottom.
|
|
556
|
+
Returning to the bottom or choosing **Jump to latest** re-arms it; the action
|
|
557
|
+
does not estimate unread messages from pixel distance. Instant pins keep
|
|
558
|
+
self-scroll attribution synchronized. Keyboard jumping returns focus to the
|
|
559
|
+
transcript when its jump control disappears; automatic pins never move focus.
|
|
560
|
+
|
|
561
|
+
`threshold` controls jump-button visibility (80px by default), independently of
|
|
562
|
+
follow intent. `follow={false}` is fully inert: positioning belongs to the host,
|
|
563
|
+
with no observer or mount pin. Re-enabling it explicitly re-arms at the bottom
|
|
564
|
+
unless the host supplies `initialReadingPosition: { top, following }`. That
|
|
565
|
+
snapshot is consumed only on mount, identity reset or follow re-enable; ordinary
|
|
566
|
+
snapshot prop changes never reposition the reader. A parked snapshot releases
|
|
567
|
+
follow until an explicit jump or native return to the bottom. The
|
|
568
|
+
`onReadingPositionChange` callback reports native offset and actual follow intent,
|
|
569
|
+
including small upward moves inside the jump visibility threshold. An optional
|
|
570
|
+
`resetKey` resets follow or consumes the current identity's snapshot. Canonical
|
|
571
|
+
session identity, durable restoration and virtualized transcript windows remain
|
|
572
|
+
application-owned. `ref` and `onScroll` still reach the inner scroller.
|
|
573
|
+
|
|
574
|
+
The `SurfaceFollowing` story shows streaming, collapse and pane resizing.
|
|
575
|
+
|
|
576
|
+
### Transcript composition
|
|
577
|
+
|
|
578
|
+
`TranscriptComposition` assembles ordered host-classified rows, contiguous groups,
|
|
579
|
+
turn presentation and accessible fold controls. Import it from the public component
|
|
580
|
+
subpath:
|
|
581
|
+
|
|
582
|
+
```tsx
|
|
583
|
+
import {
|
|
584
|
+
TranscriptComposition,
|
|
585
|
+
type TranscriptCompositionRendererProps,
|
|
586
|
+
type TranscriptRow,
|
|
587
|
+
} from '@adea-ai/ui/components/conversation/transcript-composition'
|
|
588
|
+
|
|
589
|
+
type Message = { text: string }
|
|
590
|
+
const rows: readonly TranscriptRow<Message>[] = [
|
|
591
|
+
{ id: 'question-1', value: { text: 'Inspect the cursor.' }, opensTurn: 'reset' },
|
|
592
|
+
{
|
|
593
|
+
id: 'tool-1',
|
|
594
|
+
value: { text: 'Read the cursor.' },
|
|
595
|
+
fold: 'tool',
|
|
596
|
+
call: { phase: 'request', id: 'call-1' },
|
|
597
|
+
},
|
|
598
|
+
]
|
|
599
|
+
|
|
600
|
+
function HostMessage(props: TranscriptCompositionRendererProps<Message>) {
|
|
601
|
+
return <article>{props.row.value.text}</article>
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export function TranscriptPreview() {
|
|
605
|
+
return <TranscriptComposition rows={rows} renderRow={HostMessage} />
|
|
606
|
+
}
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
Each row needs a stable unique `id` within its transcript. The host supplies the
|
|
610
|
+
Solid row component and classifies turn boundaries, calls, conclusions,
|
|
611
|
+
always-visible actions and redacted values. The renderer does not parse protocol
|
|
612
|
+
payloads or decide permission, session, event, delivery or success state.
|
|
613
|
+
|
|
614
|
+
Settled tool folds start closed and unmount their hidden row payloads. Live rows
|
|
615
|
+
stay open until the host marks them settled; an explicit row choice survives that
|
|
616
|
+
running-state transition. `foldMode="prose"` folds host-marked eligible activity
|
|
617
|
+
before a host-designated conclusion, leaving that conclusion visible.
|
|
618
|
+
The `foldState="collapsed"` command keeps hidden
|
|
619
|
+
content mounted. It folds eligible rows before a host-marked conclusion; without
|
|
620
|
+
that boundary it leaves prose visible and can still collapse explicitly classified
|
|
621
|
+
tool calls. Always-visible rows stay in place. `disclosure` plus
|
|
622
|
+
`onDisclosureChange` lets an application restore explicit choices from its own
|
|
623
|
+
durable store using `transcriptDisclosureKey`.
|
|
624
|
+
|
|
625
|
+
## Split layout
|
|
626
|
+
|
|
627
|
+
The split-layout model (adapted from bb/Muxy; see `NOTICE`) is pure:
|
|
628
|
+
`createLayoutState`, `splitPane`,
|
|
661
629
|
`movePane`, `closePane`, `undoClosePane`, `focusPane`, `swapPanes`,
|
|
662
|
-
`resizeSplit`, `normalizeLayout` and the reading-order helpers
|
|
630
|
+
`resizeSplit`, `normalizeLayout` and the reading-order helpers.
|
|
663
631
|
Leaves extend `{kind: 'leaf', id: string}` with any host-owned payload. Closing
|
|
664
632
|
the last leaf calls an injected placeholder factory; it never selects a harness,
|
|
665
|
-
starts a terminal or deletes a project.
|
|
666
|
-
ratios preserve the accepted contract. Construct or validate a tree before
|
|
633
|
+
starts a terminal or deletes a project. The limits are eight leaves, depth eight and 10 to 90 percent split ratios. Construct or validate a tree before
|
|
667
634
|
editing it; the shared constructor validates visual structure and identities,
|
|
668
635
|
while applications still decode/scoped-persist preferences and retain unknown
|
|
669
636
|
future versions for recovery.
|
|
@@ -682,16 +649,10 @@ The new pane is focused, and the close-undo stack is cleared like other structur
|
|
|
682
649
|
explicit-axis `splitPane` operation is unchanged for hosts that do not want an
|
|
683
650
|
automatic reflow.
|
|
684
651
|
|
|
685
|
-
The model and maintained accessible renderer are implemented in this draft.
|
|
686
|
-
Stable content ownership and movement are exercised in component fixtures.
|
|
687
|
-
The packed renderer gate includes the UI #20 size-token correction and the host
|
|
688
|
-
presentation fixture. It checks the real package in compiled and Solid
|
|
689
|
-
conditions; complete shell composition, production adoption and release remain
|
|
690
|
-
required.
|
|
691
652
|
No persistent state, session services, native drag region or host framework is
|
|
692
653
|
imported into this model.
|
|
693
654
|
|
|
694
|
-
### Host pane presentation
|
|
655
|
+
### Host pane presentation
|
|
695
656
|
|
|
696
657
|
Controlled split ratios survive host visibility changes and disposal. Corvu panel
|
|
697
658
|
registration and unregistration callbacks with incomplete sizes, and callbacks
|
|
@@ -722,195 +683,123 @@ The `HostPresentation` story shows a decorative icon and host title, keyboard
|
|
|
722
683
|
pane stops, and a workspace-specific separator name. A narrow-width component
|
|
723
684
|
fixture also checks that a long host title does not widen its pane header.
|
|
724
685
|
|
|
725
|
-
|
|
726
|
-
consumer with peers omitted and scripts disabled, and exercises the direct model
|
|
727
|
-
subpath in native Node and the Solid source condition. It verifies zero runtime
|
|
728
|
-
imports and a 3 KiB gzip model budget (measured baseline: 2,455 bytes). This is
|
|
729
|
-
model-subpath evidence; it does not waive UI #16's package attribution/conditional
|
|
730
|
-
export corrections or the separate root compatibility gate.
|
|
731
|
-
|
|
732
|
-
`bun run check:packed-paste-model` installs the actual archive with peer and
|
|
733
|
-
optional packages omitted. It verifies the direct
|
|
734
|
-
`@adea-ai/ui/components/conversation/paste-tokens` entry in native Node and the
|
|
735
|
-
Solid source condition, a strict clean TypeScript consumer without ambient types,
|
|
736
|
-
round-trip/range/pruning and invalid-metadata behavior, and exact packed
|
|
737
|
-
LICENSE/NOTICE fidelity. The pure compiled module retains zero runtime imports
|
|
738
|
-
and stays within a 3 KiB gzip budget. This gate runs in local verification, CI
|
|
739
|
-
and publication; textarea editing and production adoption remain separate gates.
|
|
740
|
-
|
|
741
|
-
### Controlled appearance editor
|
|
742
|
-
|
|
743
|
-
`AppearanceEditor` and `AppearancePopover` retain the accepted Zeron-derived
|
|
744
|
-
System/Light/Dark miniature cards, independent light/dark theme rows, palette
|
|
745
|
-
swatches, default/preset/custom accent choices and Theme default/Frosted/Opaque
|
|
746
|
-
surface choices. The popup supports live host preview and Save/Cancel/Reset;
|
|
747
|
-
Kobalte provides radio navigation, selection, dismissal and focus restoration. Since
|
|
748
|
-
its menus prevent Tab, the theme row carries Tab and Shift+Tab through the enclosing
|
|
749
|
-
dialog's focus order. `DropdownMenuContent.portalMount` keeps the theme menu within
|
|
750
|
-
its enclosing modal's accessible subtree.
|
|
751
|
-
|
|
752
|
-
Supply canonical `AdeaTheme` previews and `AdeaThemeRecord` choices.
|
|
753
|
-
`themeRecords`/`themeRecordById` export those records, and
|
|
754
|
-
`appearancePreviewThemes({ lightThemeId, darkThemeId, accent })` resolves a
|
|
755
|
-
draft's ids and accent — a preset or a theme-carried accent — into the two
|
|
756
|
-
preview themes, exactly as `ThemeProvider` would apply them; `withAccent` is the
|
|
757
|
-
overlay on its own. `builtinThemes` is the shadcn projection a document is
|
|
758
|
-
painted with, not an editor input. Pass `themeAccentOptions` —
|
|
759
|
-
`themeAccentsFor(lightThemeId, darkThemeId)` — to offer the accents the previewed
|
|
760
|
-
pair carries after the presets; the editor itself loads no catalogue or
|
|
761
|
-
normalization. Hosts own saved-ID recovery, validation, draft snapshots,
|
|
762
|
-
System appearance resolution, native transparency, live application tokens,
|
|
763
|
-
Save persistence and restoration on Cancel/dismissal. `saving`,
|
|
764
|
-
`saveDisabledReason`, `recoveryNotice`, `customAccentError`, and
|
|
765
|
-
`surfaceCapability` expose those outcomes; an unavailable import or Frosted
|
|
766
|
-
capability stays visibly unavailable. App-specific persisted versions and the
|
|
767
|
-
legacy `translucent` value need an app-owned adapter to the editor's `theme`
|
|
768
|
-
surface selection. The library does not silently migrate stored preferences.
|
|
769
|
-
|
|
770
|
-
A host recomposes the editor through props, never by forking it. Every option keeps
|
|
771
|
-
the default below, so an existing consumer renders as before:
|
|
772
|
-
|
|
773
|
-
| Prop | Default | What it changes |
|
|
774
|
-
| -------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
775
|
-
| `fontSettingsPlacement` | `inline` | `end` closes the option list with the typefaces, after Glass, Reduce transparency and Theme library. |
|
|
776
|
-
| `accentEntryStyle` | `swatches` | `labels` renders every choice as a named chip. `row` draws the presets as circles in one equally spaced line (it holds at 320px, where the grid wraps) and turns Custom into a button that opens the native colour selector: only a chosen colour changes the draft. |
|
|
777
|
-
| `showThemeDefaultAccent` | `true` | `false` drops the leading "Theme default" entry, for a host whose default accent already is a preset. |
|
|
778
|
-
| `showCustomAccentCaption` | `true` | `false` drops the "Custom" caption over the `swatches` style's custom chip. No effect on `labels` or `row`. |
|
|
779
|
-
| `showModeIcons` | `false` | A sun, moon or monitor glyph beside each mode card's label. |
|
|
780
|
-
| `triggerVariant` (popover) | `ghost` | `toolbar` holds the pressed rung while the sheet is open and repeats the palette glyph in the tooltip, like the other toolbar actions. |
|
|
781
|
-
|
|
782
|
-
`customAccentValue` seeds the native selector (`row`) and the draft the `swatches`
|
|
783
|
-
Custom chip commits; hand it your starting colour.
|
|
784
|
-
|
|
785
|
-
The component browser lane uses a real Vite/Solid/Tailwind build in headless
|
|
786
|
-
Chromium without an app server. It checks keyboard mode selection, nested menu
|
|
787
|
-
accessibility, focus and pointer dismissal, Escape, live-preview rollback,
|
|
788
|
-
valid/invalid custom accents, Save pending state, mobile selection and
|
|
789
|
-
320/768/1024/1440px layouts. A separate native Node server-render fixture verifies the composed editor without
|
|
790
|
-
browser or application globals. These checks
|
|
791
|
-
are component integration evidence; they do not certify application persistence,
|
|
792
|
-
native effects, packaged applications or manual assistive technology acceptance.
|
|
793
|
-
|
|
794
|
-
### Packed appearance contract
|
|
795
|
-
|
|
796
|
-
`bun run check:packed-appearance` installs the actual tarball without optional
|
|
797
|
-
Chart/Carousel engines, then runs all 25 component cases in Chromium and WebKit
|
|
798
|
-
against compiled and Solid entries (100 execution runs total).
|
|
799
|
-
The same fixture verifies
|
|
800
|
-
Solid source SSR in native Node. Keyboard choices, live preview, save/cancel/reset,
|
|
801
|
-
nested dismissal, validation, pending save, narrow layouts with reachable footer actions, and automated accessibility
|
|
802
|
-
are covered. Production persistence, native transparency, hydration and manual AT
|
|
803
|
-
remain application acceptance gates.
|
|
804
|
-
|
|
805
|
-
The disposable host explicitly imports four isolated canonical theme records plus
|
|
806
|
-
color/CSS adapters from published `@adea-ai/themes`; the UI composition imports only
|
|
807
|
-
theme types. Both conditions retain one Solid runtime and one JS chunk, external CSS,
|
|
808
|
-
no fonts or unrelated engines, and full donor attribution. The combined host/editor
|
|
809
|
-
budgets are 64 KiB gzip JS and 50 KiB raw CSS; measured baselines are 63,599 gzip
|
|
810
|
-
JS / 50,059 raw CSS bytes for compiled and 64,126 gzip JS / 50,059 raw CSS bytes
|
|
811
|
-
for Solid, with complete discovery of nested controls and shared helpers. This
|
|
812
|
-
includes host theme-preview behavior, not just the editor primitive.
|
|
813
|
-
|
|
814
|
-
Local packed interaction gates require `bunx playwright install chromium webkit`
|
|
815
|
-
after dependency installation. On Linux, use `--with-deps` when the required
|
|
816
|
-
system libraries are absent. All automation runs headless with disposable profiles.
|
|
817
|
-
|
|
818
|
-
## Paste-token model (issue #532 selected unit)
|
|
819
|
-
|
|
820
|
-
`@adea-ai/ui/components/conversation` also exports the pure paste-token model:
|
|
821
|
-
`PasteBlock`, `isPasteBlock`, `countLines`, `shouldCollapse`, `nextSeq`,
|
|
822
|
-
`formatToken`, `findTokenRanges`, `tokenRangeAt`, `pruneBlocks`, `expandAll`,
|
|
823
|
-
`recollapsePastes`, `remapCarriedBlocks`, `stripTrailingBlankLines`, and the
|
|
824
|
-
threshold and marker constants. Hosts provide stable, bounded ASCII block IDs and own
|
|
825
|
-
draft state, persistence, message reconciliation and editor behavior. The model
|
|
826
|
-
does not read storage or the clipboard, upload files, edit a textarea, or
|
|
827
|
-
provide undo/history, previews or chips. Its selected source and Apache-2.0
|
|
828
|
-
attribution are recorded in the issue #532 entry in `NOTICE`.
|
|
829
|
-
|
|
830
|
-
## Transcript composition
|
|
686
|
+
## Scene controls
|
|
831
687
|
|
|
832
|
-
`
|
|
833
|
-
|
|
834
|
-
|
|
688
|
+
`SceneControls` composes movement, jump and optional zoom actions for a host
|
|
689
|
+
scene. `onMovementChange(direction, pressed)` and `onJumpChange(pressed)` report
|
|
690
|
+
held state from pointer or keyboard input; zoom callbacks fire once per
|
|
691
|
+
activation. The shared controls capture pointers and release held actions on
|
|
692
|
+
pointer end/cancel, lost capture, window blur and component cleanup. The host
|
|
693
|
+
maps these typed callbacks to its own camera or movement system; the component
|
|
694
|
+
does not synthesize keyboard events or access host globals. Each icon action
|
|
695
|
+
uses the shared tooltip and a `2xl` 48px target that stays that size under
|
|
696
|
+
compact density. Rounded movement and zoom group surfaces use the shared
|
|
697
|
+
scrim treatment, which follows the library's reduced-transparency and fallback
|
|
698
|
+
policy.
|
|
835
699
|
|
|
836
700
|
```tsx
|
|
837
|
-
import {
|
|
838
|
-
TranscriptComposition,
|
|
839
|
-
type TranscriptCompositionRendererProps,
|
|
840
|
-
type TranscriptRow,
|
|
841
|
-
} from '@adea-ai/ui/components/conversation/transcript-composition'
|
|
701
|
+
import { SceneControls } from '@adea-ai/ui/components/composites/scene-controls'
|
|
842
702
|
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
{
|
|
846
|
-
{
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
call: { phase: 'request', id: 'call-1' },
|
|
851
|
-
},
|
|
852
|
-
]
|
|
703
|
+
;<SceneControls
|
|
704
|
+
onMovementChange={(direction, pressed) => setMovement(direction, pressed)}
|
|
705
|
+
onJumpChange={(pressed) => setJumping(pressed)}
|
|
706
|
+
onZoomIn={zoomIn}
|
|
707
|
+
onZoomOut={zoomOut}
|
|
708
|
+
/>
|
|
709
|
+
```
|
|
853
710
|
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
711
|
+
Labels default to English and can be supplied through `labels` for a host's
|
|
712
|
+
locale. Hold actions have separate accessible names and explanatory tooltip
|
|
713
|
+
strings so localization can describe the gesture without changing the action
|
|
714
|
+
name. `SceneControls` owns control arrangement and interaction lifecycle;
|
|
715
|
+
the host owns placement, persistence and scene behavior.
|
|
857
716
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
717
|
+
## Package checks
|
|
718
|
+
|
|
719
|
+
Each `check:packed-*` script packs the real npm archive, installs it into a
|
|
720
|
+
throwaway consumer (optional peers left out, lifecycle scripts off) and checks it
|
|
721
|
+
under both the compiled and Solid source export conditions. Browser cases run
|
|
722
|
+
headless in Chromium and WebKit, and most also server-render in Node. Every check
|
|
723
|
+
confirms the packed `LICENSE` and `NOTICE` and enforces a size budget. Install the
|
|
724
|
+
browsers once with `bunx playwright install chromium webkit` (add `--with-deps` on
|
|
725
|
+
Linux if system libraries are missing).
|
|
726
|
+
|
|
727
|
+
| Script | What it covers | Budget (gzip JS / raw CSS) |
|
|
728
|
+
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
|
|
729
|
+
| `check:packed-conversation` | Conversation subpath: draft recovery, IME, follow, jump focus, busy actions, composer collapse, atomic paste tokens | 26 / 50 / 54 KiB (plain, busy, composed) / 42 KiB |
|
|
730
|
+
| `check:packed-transcript` | Transcript composition: row identity, tool folds, keyboard disclosure, accessibility | set in the script |
|
|
731
|
+
| `check:packed-appearance` | Appearance editor with real `@adea-ai/themes` records: keyboard, live preview, save, cancel and reset, narrow layouts | 64 KiB / 50 KiB |
|
|
732
|
+
| `check:packed-scene-controls` | Scene controls and ActionButton: held-action release, labels, 48px targets at 320px and 200% text | 40 KiB / 32 KiB |
|
|
733
|
+
| `check:packed-layout` | Split-layout model subpath in Node, with no runtime imports | 3 KiB |
|
|
734
|
+
| `check:packed-layout-renderer` | Split layout, sidebar and top bar rendering | 32 KiB / 34 KiB |
|
|
735
|
+
| `check:packed-paste-model` | Paste-token model subpath with a strict TypeScript consumer | 3 KiB |
|
|
736
|
+
| `check:packed-consumer` | Root imports, lightweight controls, overlays and the shell | set in the script |
|
|
737
|
+
|
|
738
|
+
The atomic paste editor may add at most 6 KiB of gzip JS over the composed
|
|
739
|
+
fixture. Tailwind discovery in these fixtures is explicit; they never rely on
|
|
740
|
+
scanning `node_modules`. The checks prove the published component contracts;
|
|
741
|
+
persistence, hydration and manual assistive-technology checks happen in the apps.
|
|
742
|
+
|
|
743
|
+
`bun run test:components` runs the component contracts against a real
|
|
744
|
+
Vite/Solid/Tailwind build in Chromium and WebKit.
|
|
745
|
+
|
|
746
|
+
### What one component costs
|
|
747
|
+
|
|
748
|
+
`bun run --cwd packages/ui check:tree-shaking` builds real bundles against the built
|
|
749
|
+
package. Each row uses the public entry, and importing one component does not pull in
|
|
750
|
+
the rest of the library. The script writes this table (`-- --write`) and CI fails when
|
|
751
|
+
the committed figures drift from what it measures.
|
|
752
|
+
|
|
753
|
+
<!-- tree-shaking:start — generated by `bun run check:tree-shaking --write`; do not edit by hand -->
|
|
754
|
+
|
|
755
|
+
| Public import | Gzipped | What it brings |
|
|
756
|
+
| --------------------------------------------------------------- | ---------- | ------------------------------------- |
|
|
757
|
+
| `@adea-ai/ui` → `Button` | 22.2 kB | the floor: Solid, `clsx`, `tw-merge` |
|
|
758
|
+
| `@adea-ai/ui` → `Board` | 22.6 kB | nothing |
|
|
759
|
+
| `@adea-ai/ui/components/composites/list-row` → `ListRowControl` | 21.9 kB | nothing: the row without its tooltip |
|
|
760
|
+
| `@adea-ai/ui` → `DiffBlock` | 23.2 kB | lucide icons |
|
|
761
|
+
| `@adea-ai/ui` → `CodeBlock` | 47.5 kB | lucide icons, Kobalte tooltip on copy |
|
|
762
|
+
| `@adea-ai/ui` → `MessageRow` | 27.2 kB | nothing |
|
|
763
|
+
| `@adea-ai/ui` → `CalendarSurface` | 30.0 kB | corvu calendar |
|
|
764
|
+
| `@adea-ai/ui` → `ModalDialog` | 50.8 kB | Kobalte dialog, the shared tooltip |
|
|
765
|
+
| `@adea-ai/ui/components/ui/carousel` → `Carousel` | 34.4 kB | embla |
|
|
766
|
+
| `@adea-ai/ui/components/composites/list-row` → `ListRow` | 41.9 kB | Kobalte tooltip |
|
|
767
|
+
| `@adea-ai/ui` → `NavigationMenu` | 56.8 kB | Kobalte navigation menu |
|
|
768
|
+
| `@adea-ai/ui/components/ui/chart` → `LineChart` | 89.9 kB | chart.js, the line controller only |
|
|
769
|
+
| _root plus chart and carousel entries_ | _453.0 kB_ | and `Button` is 4.9% of it |
|
|
770
|
+
|
|
771
|
+
The chart splits from itself, which is why chart.js was chosen: `LineChart` is
|
|
772
|
+
10.6 kB smaller than importing all seven chart types together (89.9 kB against 100.5 kB), because the
|
|
773
|
+
controllers are imported per component while the shared scales and plugins are
|
|
774
|
+
registered once. The gate fails if that stops being true.
|
|
775
|
+
|
|
776
|
+
Three budgets are enforced in CI: importing `Button` must stay under 40.0 kB
|
|
777
|
+
and under 25.0% of the whole library, and no sampled component may exceed
|
|
778
|
+
180.0 kB.
|
|
779
|
+
|
|
780
|
+
<!-- tree-shaking:end -->
|
|
862
781
|
|
|
863
|
-
|
|
864
|
-
Solid row component and classifies turn boundaries, calls, conclusions,
|
|
865
|
-
always-visible actions and redacted values. The renderer does not parse protocol
|
|
866
|
-
payloads or decide permission, session, event, delivery or success state.
|
|
782
|
+
## Adding a component
|
|
867
783
|
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
running-state transition. `foldMode="prose"` folds host-marked eligible activity
|
|
871
|
-
before a host-designated conclusion, leaving that conclusion visible.
|
|
872
|
-
The `foldState="collapsed"` command keeps hidden
|
|
873
|
-
content mounted. It folds eligible rows before a host-marked conclusion; without
|
|
874
|
-
that boundary it leaves prose visible and can still collapse explicitly classified
|
|
875
|
-
tool calls. Always-visible rows stay in place. `disclosure` plus
|
|
876
|
-
`onDisclosureChange` lets an application restore explicit choices from its own
|
|
877
|
-
durable store using `transcriptDisclosureKey`.
|
|
784
|
+
`shadcn add` installs an item from the registry on GitLab Pages (or from
|
|
785
|
+
`./packages/ui/public/r/<name>.json` in a checkout):
|
|
878
786
|
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
identity through loose-to-turn promotion, tool request counting, mounted prose,
|
|
883
|
-
keyboard disclosure, visible actions and automated accessibility. This is shared
|
|
884
|
-
composition evidence; bounded runtime projection, storage and production chat
|
|
885
|
-
integration remain application acceptance gates. Attribution for the selected
|
|
886
|
-
KiroCrew source contracts is recorded in the issue-specific `NOTICE` entry.
|
|
787
|
+
```sh
|
|
788
|
+
bunx shadcn@latest add https://adea-ai.gitlab.io/design-system/ui/r/button.json
|
|
789
|
+
```
|
|
887
790
|
|
|
888
|
-
|
|
889
|
-
side groups scroll horizontally when their actions do not fit. Keyboard focus
|
|
890
|
-
reveals each action. Groups opt out of native window dragging.
|
|
891
|
-
Use `TopBarTitle align="center"` to center text within its slot; the host controls
|
|
892
|
-
slot placement. Use layout-only visibility classes when a title should yield
|
|
893
|
-
space to essential controls.
|
|
791
|
+
## Reviewing it
|
|
894
792
|
|
|
895
|
-
|
|
793
|
+
Every component, every variant and the token galleries are in the workshop:
|
|
896
794
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
does not require or mount the shared `ThemeProvider`. `ThemeToggle` retains its
|
|
901
|
-
existing provider-bound API.
|
|
795
|
+
```sh
|
|
796
|
+
bun run storybook
|
|
797
|
+
```
|
|
902
798
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
799
|
+
The toolbar switches theme, accent, fonts and density live, which is the
|
|
800
|
+
fastest way to see how a component behaves across the catalogue rather than in
|
|
801
|
+
one theme.
|
|
906
802
|
|
|
907
|
-
|
|
803
|
+
## Licence
|
|
908
804
|
|
|
909
|
-
|
|
910
|
-
`MIN_SPLIT_RATIO`, `MAX_SPLIT_RATIO`, `listLeaves`, `countLeaves`, `layoutDepth`,
|
|
911
|
-
and the opaque tree types from
|
|
912
|
-
`@adea-ai/ui/components/layout/split-layout/tree`. This read-only entry has no
|
|
913
|
-
UI runtime, renderer, or pane-editing dependencies. The existing `/model` entry
|
|
914
|
-
re-exports the same functions and types for compatibility. Use `/model` for
|
|
915
|
-
split, close, move, resize, and undo operations; use the component entry when
|
|
916
|
-
rendering the layout.
|
|
805
|
+
Apache-2.0. Donor attributions are in `NOTICE`, which ships in the package.
|