@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { Accessor, JSX } from 'solid-js'
|
|
2
|
+
import { createEffect, createSignal, onCleanup, splitProps } from 'solid-js'
|
|
3
|
+
import { isServer, spread } from 'solid-js/web'
|
|
4
|
+
import { callHandler } from '../../../lib/events'
|
|
5
|
+
import { acquireTooltipFocusGate, releaseTooltipFocusGate } from '../../../lib/tooltip-focus-gate'
|
|
6
|
+
|
|
7
|
+
type TriggerProps = {
|
|
8
|
+
ref?: (element: HTMLElement) => void
|
|
9
|
+
[key: string]: unknown
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type DeferredTooltip = {
|
|
13
|
+
/** True once the control has been hovered or focused: render the tooltip then. */
|
|
14
|
+
armed: Accessor<boolean>
|
|
15
|
+
/** Pass as the control's `ref`. */
|
|
16
|
+
ref: (element: HTMLElement) => void
|
|
17
|
+
/** Pass as the control's `onPointerEnter`. */
|
|
18
|
+
onPointerEnter: (event: PointerEvent) => void
|
|
19
|
+
/** Pass as the control's `onFocus`. */
|
|
20
|
+
onFocus: (event: FocusEvent) => void
|
|
21
|
+
/**
|
|
22
|
+
* Pass to `TooltipTrigger as={...}`. It renders nothing: it hands the trigger's
|
|
23
|
+
* handlers, state attributes and ref to the control that is already on screen.
|
|
24
|
+
*/
|
|
25
|
+
Target: (props: TriggerProps) => JSX.Element
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* A tooltip that costs nothing until it is wanted.
|
|
30
|
+
*
|
|
31
|
+
* Every tooltip trigger builds a Kobalte tooltip root, its popper wiring and a
|
|
32
|
+
* focus-gate registration when it mounts, and almost none of them are ever
|
|
33
|
+
* shown: a list or toolbar of tooltip controls paid for all of them up front.
|
|
34
|
+
* With this, the control renders plain and the tooltip mounts the first time a
|
|
35
|
+
* pointer enters it or keyboard focus reaches it.
|
|
36
|
+
*
|
|
37
|
+
* The control is never replaced. The trigger adopts the element already on
|
|
38
|
+
* screen (its handlers go on as native listeners next to the control's own;
|
|
39
|
+
* spreading them would take Solid's delegated slot and replace the control's
|
|
40
|
+
* `onClick`), so mounting late moves no focus and drops no hover. The event
|
|
41
|
+
* that armed the tooltip is replayed to the new trigger, so the tip opens on
|
|
42
|
+
* the same timing as an eagerly mounted one; the control's own handlers do not
|
|
43
|
+
* see the replay.
|
|
44
|
+
*
|
|
45
|
+
* The trigger never sets `type`, `aria-describedby` or children: the control
|
|
46
|
+
* owns those, and points `aria-describedby` at the content's id while the tip
|
|
47
|
+
* is open.
|
|
48
|
+
*
|
|
49
|
+
* The keyboard-focus gate is held for the control's lifetime, not from the
|
|
50
|
+
* moment its tooltip mounts, so it sees the Tab that precedes a first focus.
|
|
51
|
+
*/
|
|
52
|
+
export function createDeferredTooltip(options: {
|
|
53
|
+
enabled: Accessor<boolean>
|
|
54
|
+
onPointerEnter?: Accessor<unknown>
|
|
55
|
+
onFocus?: Accessor<unknown>
|
|
56
|
+
}): DeferredTooltip {
|
|
57
|
+
const [element, setElement] = createSignal<HTMLElement>()
|
|
58
|
+
const [armed, setArmed] = createSignal(false)
|
|
59
|
+
let replaying = false
|
|
60
|
+
|
|
61
|
+
// Held only while the control has a tooltip: a control without one needs no gate.
|
|
62
|
+
if (!isServer)
|
|
63
|
+
createEffect(() => {
|
|
64
|
+
if (!options.enabled()) return
|
|
65
|
+
acquireTooltipFocusGate()
|
|
66
|
+
onCleanup(releaseTooltipFocusGate)
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
const arm = (replay: () => void) => {
|
|
70
|
+
if (armed() || !options.enabled()) return
|
|
71
|
+
setArmed(true)
|
|
72
|
+
replaying = true
|
|
73
|
+
try {
|
|
74
|
+
replay()
|
|
75
|
+
} finally {
|
|
76
|
+
replaying = false
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const Target = (props: TriggerProps) => {
|
|
81
|
+
const control = element()
|
|
82
|
+
if (!control) return null
|
|
83
|
+
const [local, rest] = splitProps(props, ['ref', 'type', 'aria-describedby', 'children', 'as'])
|
|
84
|
+
local.ref?.(control)
|
|
85
|
+
const attributes: Record<string, unknown> = {}
|
|
86
|
+
for (const key of Object.keys(rest)) {
|
|
87
|
+
const value = rest[key]
|
|
88
|
+
if (/^on[A-Z]/.test(key) && typeof value === 'function') {
|
|
89
|
+
const type = key.slice(2).toLowerCase()
|
|
90
|
+
const listener = value as EventListener
|
|
91
|
+
control.addEventListener(type, listener)
|
|
92
|
+
onCleanup(() => control.removeEventListener(type, listener))
|
|
93
|
+
} else {
|
|
94
|
+
Object.defineProperty(attributes, key, { enumerable: true, get: () => rest[key] })
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
spread(control, attributes, false, true)
|
|
98
|
+
return null
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
armed,
|
|
103
|
+
ref: setElement,
|
|
104
|
+
onPointerEnter(event) {
|
|
105
|
+
if (replaying) return
|
|
106
|
+
callHandler(options.onPointerEnter?.() as never, event as never)
|
|
107
|
+
if (event.pointerType === 'touch' || event.defaultPrevented) return
|
|
108
|
+
const target = event.currentTarget as HTMLElement
|
|
109
|
+
arm(() =>
|
|
110
|
+
target.dispatchEvent(
|
|
111
|
+
new PointerEvent('pointerenter', {
|
|
112
|
+
pointerId: event.pointerId,
|
|
113
|
+
pointerType: event.pointerType,
|
|
114
|
+
clientX: event.clientX,
|
|
115
|
+
clientY: event.clientY,
|
|
116
|
+
})
|
|
117
|
+
)
|
|
118
|
+
)
|
|
119
|
+
},
|
|
120
|
+
onFocus(event) {
|
|
121
|
+
if (replaying) return
|
|
122
|
+
callHandler(options.onFocus?.() as never, event as never)
|
|
123
|
+
if (event.defaultPrevented) return
|
|
124
|
+
const target = event.currentTarget as HTMLElement
|
|
125
|
+
arm(() =>
|
|
126
|
+
target.dispatchEvent(new FocusEvent('focus', { relatedTarget: event.relatedTarget }))
|
|
127
|
+
)
|
|
128
|
+
},
|
|
129
|
+
Target,
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Tooltip as KobalteTooltip, useTooltipContext } from '@kobalte/core/tooltip'
|
|
2
2
|
import type { Accessor, ComponentProps, JSX } from 'solid-js'
|
|
3
3
|
import {
|
|
4
|
+
children as resolveChildren,
|
|
4
5
|
createContext,
|
|
5
6
|
createEffect,
|
|
6
7
|
createSignal,
|
|
@@ -405,6 +406,7 @@ export function TooltipContent(props: TooltipContentProps) {
|
|
|
405
406
|
|
|
406
407
|
// Kobalte keeps force-mounted and exiting content present after close. Hide
|
|
407
408
|
// that retained tooltip from assistive technology until it opens again.
|
|
409
|
+
const icon = resolveChildren(() => local.icon)
|
|
408
410
|
return (
|
|
409
411
|
<KobalteTooltip.Portal>
|
|
410
412
|
<KobalteTooltip.Content
|
|
@@ -421,7 +423,7 @@ export function TooltipContent(props: TooltipContentProps) {
|
|
|
421
423
|
tooltipMotion,
|
|
422
424
|
// An icon+label tip is one row that reads as a unit, so the label
|
|
423
425
|
// never wraps under the glyph.
|
|
424
|
-
{ 'flex items-center gap-2 whitespace-nowrap': !!
|
|
426
|
+
{ 'flex items-center gap-2 whitespace-nowrap': !!icon() },
|
|
425
427
|
local.class
|
|
426
428
|
)}
|
|
427
429
|
// A tooltip is never interactive: the content is plain text, and the
|
|
@@ -450,14 +452,14 @@ export function TooltipContent(props: TooltipContentProps) {
|
|
|
450
452
|
{...topLayerProps}
|
|
451
453
|
{...rest}
|
|
452
454
|
>
|
|
453
|
-
<Show when={
|
|
454
|
-
{(
|
|
455
|
+
<Show when={icon()}>
|
|
456
|
+
{(iconSlot) => (
|
|
455
457
|
<span
|
|
456
458
|
data-slot="tooltip-icon"
|
|
457
459
|
aria-hidden="true"
|
|
458
460
|
class="flex size-4 shrink-0 items-center justify-center [&_svg]:size-4"
|
|
459
461
|
>
|
|
460
|
-
{
|
|
462
|
+
{iconSlot()}
|
|
461
463
|
</span>
|
|
462
464
|
)}
|
|
463
465
|
</Show>
|
|
@@ -239,12 +239,14 @@ function LineHead(props: {
|
|
|
239
239
|
{props.title}
|
|
240
240
|
</span>
|
|
241
241
|
<Show when={props.description}>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
242
|
+
{(descriptionSlot) => (
|
|
243
|
+
<span
|
|
244
|
+
data-slot="trace-description"
|
|
245
|
+
class="min-w-0 truncate text-xs text-muted-foreground"
|
|
246
|
+
>
|
|
247
|
+
{descriptionSlot()}
|
|
248
|
+
</span>
|
|
249
|
+
)}
|
|
248
250
|
</Show>
|
|
249
251
|
</span>
|
|
250
252
|
<Show when={props.status}>
|
|
@@ -253,9 +255,11 @@ function LineHead(props: {
|
|
|
253
255
|
)}
|
|
254
256
|
</Show>
|
|
255
257
|
<Show when={props.meta}>
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
258
|
+
{(metaSlot) => (
|
|
259
|
+
<span data-slot="trace-meta" class="shrink-0 text-xs text-muted-foreground tabular-nums">
|
|
260
|
+
{metaSlot()}
|
|
261
|
+
</span>
|
|
262
|
+
)}
|
|
259
263
|
</Show>
|
|
260
264
|
{props.trailing}
|
|
261
265
|
</>
|
|
@@ -8,7 +8,7 @@ import { cn } from '../../../lib/utils'
|
|
|
8
8
|
*
|
|
9
9
|
* The type ladder in `theme.css` has eight rungs, each with its own leading. These
|
|
10
10
|
* two components are where a rung is paired with its weight and tracking, so a call
|
|
11
|
-
* site names a *role
|
|
11
|
+
* site names a *role*, a page title, a section heading, a caption, and never
|
|
12
12
|
* re-decides `text-xl font-semibold tracking-tight` for itself. Twenty call sites
|
|
13
13
|
* that each choose a size and a weight drift; twenty that name a role cannot.
|
|
14
14
|
*
|
|
@@ -20,7 +20,7 @@ import { cn } from '../../../lib/utils'
|
|
|
20
20
|
* in a settings section is an `h2`, so it says `as="h2"`. Never pick a `size` to get
|
|
21
21
|
* a heading level, and never pick an element to get a size.
|
|
22
22
|
*
|
|
23
|
-
* Headings are 600, and weights stop at 600
|
|
23
|
+
* Headings are 600, and weights stop at 600, on a dark surface a bold word blooms.
|
|
24
24
|
* Leading comes from the rung; `leading="none"` is for a title whose surrounding
|
|
25
25
|
* stack already sets the rhythm (a card or dialog header), and is the only other
|
|
26
26
|
* option.
|
|
@@ -29,7 +29,7 @@ import { cn } from '../../../lib/utils'
|
|
|
29
29
|
export const headingVariants = /* @__PURE__ */ cva('font-semibold', {
|
|
30
30
|
variants: {
|
|
31
31
|
size: {
|
|
32
|
-
/** 30px. An app-level headline
|
|
32
|
+
/** 30px. An app-level headline, a first-run or empty-app screen. Once per app. */
|
|
33
33
|
display: 'text-3xl tracking-tight',
|
|
34
34
|
/** 24px. A landing title or a headline figure larger than a stat's. */
|
|
35
35
|
title: 'text-2xl tracking-tight',
|
|
@@ -53,7 +53,7 @@ export const headingVariants = /* @__PURE__ */ cva('font-semibold', {
|
|
|
53
53
|
true: 'tabular-nums',
|
|
54
54
|
},
|
|
55
55
|
tone: {
|
|
56
|
-
/** Inherit the surrounding colour
|
|
56
|
+
/** Inherit the surrounding colour, right on every surface by construction. */
|
|
57
57
|
inherit: '',
|
|
58
58
|
foreground: 'text-foreground',
|
|
59
59
|
muted: 'text-muted-foreground',
|
|
@@ -131,7 +131,7 @@ export function Heading<T extends ValidComponent = 'h2'>(props: HeadingProps<T>)
|
|
|
131
131
|
*
|
|
132
132
|
* Defaults: `body` renders a `p`, `code` a `code`, every other variant a `span`.
|
|
133
133
|
*
|
|
134
|
-
* `overline` is the small uppercase label above a group
|
|
134
|
+
* `overline` is the small uppercase label above a group, a list group's
|
|
135
135
|
* heading, a settings navigation group, an eyebrow over a page title. It is the
|
|
136
136
|
* one variant whose tone defaults to `muted` rather than inheriting, because an
|
|
137
137
|
* overline in the body foreground competes with the heading it introduces. Pass
|
|
@@ -24,7 +24,7 @@ export function isPresetAccentId(id: string): boolean {
|
|
|
24
24
|
* The accent axis.
|
|
25
25
|
*
|
|
26
26
|
* adea's accent presets, as a selection rather than a constant. `theme` is the
|
|
27
|
-
* default and means "the variant's own primary"
|
|
27
|
+
* default and means "the variant's own primary", monochrome in adea's palette,
|
|
28
28
|
* and each named preset overrides the interactive roles through the
|
|
29
29
|
* `[data-accent]` blocks in `theme.css`.
|
|
30
30
|
*
|
|
@@ -168,8 +168,8 @@ export function normalizeAccentValue(
|
|
|
168
168
|
*
|
|
169
169
|
* Deliberately narrower than {@link parseColor}. A stored accent is compared,
|
|
170
170
|
* deduplicated and used as an attribute, so it has one spelling; a host that
|
|
171
|
-
* accepts `#abc` in a field expands it before storing. Anything else
|
|
172
|
-
* `rgb()`, a short or alpha form, a non-string
|
|
171
|
+
* accepts `#abc` in a field expands it before storing. Anything else, a name, an
|
|
172
|
+
* `rgb()`, a short or alpha form, a non-string, is not an accent and returns
|
|
173
173
|
* `undefined`.
|
|
174
174
|
*/
|
|
175
175
|
export function normalizeCustomAccent(value: unknown): string | undefined {
|
|
@@ -180,20 +180,31 @@ export function applyAppearanceFontSettings(
|
|
|
180
180
|
const normalized = normalizeAppearanceEditorFontSettings(value)
|
|
181
181
|
const { settings } = normalized
|
|
182
182
|
|
|
183
|
+
// Only changed values are written: this runs on every theme pass, and an
|
|
184
|
+
// unchanged attribute or property rewritten still dirties the document's style.
|
|
185
|
+
const readAttribute = (root as Partial<Pick<HTMLElement, 'getAttribute'>>).getAttribute
|
|
186
|
+
const setAttribute = (name: string, next: string) => {
|
|
187
|
+
if (readAttribute?.call(root, name) !== next) root.setAttribute(name, next)
|
|
188
|
+
}
|
|
189
|
+
const style = root.style as Pick<CSSStyleDeclaration, 'setProperty'> &
|
|
190
|
+
Partial<Pick<CSSStyleDeclaration, 'getPropertyValue'>>
|
|
191
|
+
const setProperty = (name: string, next: string) => {
|
|
192
|
+
if (style.getPropertyValue?.(name) !== next) style.setProperty(name, next)
|
|
193
|
+
}
|
|
183
194
|
root.removeAttribute('data-font')
|
|
184
|
-
|
|
195
|
+
setAttribute('data-font-settings', '')
|
|
185
196
|
for (const axis of APPEARANCE_EDITOR_FONT_AXES) {
|
|
186
197
|
const projection = fontAxisProjection[axis]
|
|
187
198
|
const setting = settings[axis]
|
|
188
199
|
const option = fontProjectionById[setting.family]
|
|
189
200
|
if (setting.family === DEFAULT_FONT_ID) root.removeAttribute(projection.familyAttribute)
|
|
190
|
-
else
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
201
|
+
else setAttribute(projection.familyAttribute, setting.family)
|
|
202
|
+
setProperty(projection.familyProperty, `var(${option.familyVariables[axis]})`)
|
|
203
|
+
setProperty(projection.sizeProperty, String(setting.size) + 'px')
|
|
204
|
+
setProperty(projection.scaleProperty, String(setting.size / projection.defaultSize))
|
|
194
205
|
if (axis === 'ui') {
|
|
195
|
-
|
|
196
|
-
|
|
206
|
+
setProperty('--ui-tracking', option.uiTracking)
|
|
207
|
+
setProperty('--ui-word-spacing', option.uiWordSpacing)
|
|
197
208
|
}
|
|
198
209
|
}
|
|
199
210
|
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { createEffect, createSignal, onCleanup, untrack, type Accessor } from 'solid-js'
|
|
2
|
+
import { isServer } from 'solid-js/web'
|
|
3
|
+
|
|
4
|
+
export type PollOptions = {
|
|
5
|
+
/** Run once as soon as the poll starts, before the first interval. Default `true`. */
|
|
6
|
+
immediate?: boolean
|
|
7
|
+
/**
|
|
8
|
+
* Keep polling while the document is hidden (a background tab, a minimised
|
|
9
|
+
* window). Default `false`: a hidden page pauses, and becoming visible again
|
|
10
|
+
* runs at once when an interval was missed, then resumes the schedule.
|
|
11
|
+
*/
|
|
12
|
+
whileHidden?: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type Poll = {
|
|
16
|
+
/** Run now, outside the schedule, and restart the interval from here. */
|
|
17
|
+
refresh: () => Promise<void>
|
|
18
|
+
/** Whether a run is in flight. */
|
|
19
|
+
running: Accessor<boolean>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A polling loop with the behaviour every hand-written one has to remember.
|
|
24
|
+
*
|
|
25
|
+
* - **Paused while hidden.** A background window does not wake the CPU or hit the
|
|
26
|
+
* network for data nobody can see; on return it catches up with one run.
|
|
27
|
+
* - **No overlap.** The next interval is scheduled after the previous run settles,
|
|
28
|
+
* so a slow request cannot stack up behind itself.
|
|
29
|
+
* - **Reactive interval.** `interval` may be an accessor; `false` (or `0`) stops the
|
|
30
|
+
* loop, and a new value reschedules it.
|
|
31
|
+
* - **Owned.** It stops with the owner that created it.
|
|
32
|
+
*
|
|
33
|
+
* A failed run is the task's business: a rejection is caught so the loop survives,
|
|
34
|
+
* and the next interval runs as usual.
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* const poll = createPoll(() => refetch(), 5_000)
|
|
38
|
+
* // after a user action that changes the data:
|
|
39
|
+
* void poll.refresh()
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export function createPoll(
|
|
43
|
+
task: () => unknown,
|
|
44
|
+
interval: number | false | Accessor<number | false>,
|
|
45
|
+
options: PollOptions = {}
|
|
46
|
+
): Poll {
|
|
47
|
+
const [running, setRunning] = createSignal(false)
|
|
48
|
+
const [hidden, setHidden] = createSignal(
|
|
49
|
+
!isServer && !options.whileHidden && typeof document !== 'undefined' && document.hidden
|
|
50
|
+
)
|
|
51
|
+
const period = typeof interval === 'function' ? interval : () => interval
|
|
52
|
+
let timer: ReturnType<typeof setTimeout> | undefined
|
|
53
|
+
let missed = false
|
|
54
|
+
let disposed = false
|
|
55
|
+
let inFlight: Promise<void> | undefined
|
|
56
|
+
|
|
57
|
+
const clear = () => {
|
|
58
|
+
if (timer !== undefined) clearTimeout(timer)
|
|
59
|
+
timer = undefined
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const schedule = () => {
|
|
63
|
+
clear()
|
|
64
|
+
const ms = untrack(period)
|
|
65
|
+
if (disposed || !ms || ms <= 0) return
|
|
66
|
+
timer = setTimeout(() => {
|
|
67
|
+
timer = undefined
|
|
68
|
+
if (untrack(hidden)) {
|
|
69
|
+
missed = true
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
void run()
|
|
73
|
+
}, ms)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const run = (): Promise<void> => {
|
|
77
|
+
if (inFlight) return inFlight
|
|
78
|
+
clear()
|
|
79
|
+
setRunning(true)
|
|
80
|
+
// The task starts synchronously; only its settling is awaited. A task that
|
|
81
|
+
// throws before returning is still a settled run, never a stuck one.
|
|
82
|
+
let result: unknown
|
|
83
|
+
try {
|
|
84
|
+
result = task()
|
|
85
|
+
} catch {
|
|
86
|
+
result = undefined
|
|
87
|
+
}
|
|
88
|
+
inFlight = Promise.resolve(result)
|
|
89
|
+
.catch(() => {
|
|
90
|
+
// The task reports its own failures; the loop keeps going.
|
|
91
|
+
})
|
|
92
|
+
.then(() => {
|
|
93
|
+
inFlight = undefined
|
|
94
|
+
if (!disposed) {
|
|
95
|
+
setRunning(false)
|
|
96
|
+
schedule()
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
return inFlight
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (!isServer && !options.whileHidden && typeof document !== 'undefined') {
|
|
103
|
+
const onVisibility = () => setHidden(document.hidden)
|
|
104
|
+
document.addEventListener('visibilitychange', onVisibility)
|
|
105
|
+
onCleanup(() => document.removeEventListener('visibilitychange', onVisibility))
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let started = false
|
|
109
|
+
let lastPeriod: number | false = false
|
|
110
|
+
let rescheduleOnVisible = false
|
|
111
|
+
createEffect(() => {
|
|
112
|
+
const ms = period()
|
|
113
|
+
const isHidden = hidden()
|
|
114
|
+
if (isServer) return
|
|
115
|
+
const periodChanged = ms !== lastPeriod
|
|
116
|
+
lastPeriod = ms
|
|
117
|
+
if (!ms || ms <= 0) {
|
|
118
|
+
clear()
|
|
119
|
+
return
|
|
120
|
+
}
|
|
121
|
+
if (!started) {
|
|
122
|
+
started = true
|
|
123
|
+
if (options.immediate === false || isHidden) {
|
|
124
|
+
// A start while hidden owes the immediate run to the first visible moment.
|
|
125
|
+
missed = isHidden && options.immediate !== false
|
|
126
|
+
schedule()
|
|
127
|
+
} else void run()
|
|
128
|
+
return
|
|
129
|
+
}
|
|
130
|
+
if (isHidden) {
|
|
131
|
+
// A new interval while hidden is owed a schedule on return: no timer may be
|
|
132
|
+
// pending (a `false` cleared it), and nothing else would start one.
|
|
133
|
+
if (periodChanged) rescheduleOnVisible = true
|
|
134
|
+
return
|
|
135
|
+
}
|
|
136
|
+
const reschedule = periodChanged || rescheduleOnVisible
|
|
137
|
+
rescheduleOnVisible = false
|
|
138
|
+
if (missed) {
|
|
139
|
+
missed = false
|
|
140
|
+
void run()
|
|
141
|
+
} else if (reschedule && !inFlight) schedule()
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
onCleanup(() => {
|
|
145
|
+
disposed = true
|
|
146
|
+
clear()
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
return { refresh: run, running }
|
|
150
|
+
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The platform zoom chords, mapped onto Adea's three text roles.
|
|
6
6
|
*
|
|
7
|
-
* macOS (and Windows/Linux) zoom shortcuts
|
|
8
|
-
* `0
|
|
7
|
+
* macOS (and Windows/Linux) zoom shortcuts: Cmd/Ctrl with `=`, `+`, `-`, or
|
|
8
|
+
* `0`, normally scale the browser's page zoom. In Adea every text element is
|
|
9
9
|
* already tied to one of the three appearance font tiers (the UI tier drives
|
|
10
10
|
* the whole `text-*` scale through `--font-ui-scale`; content and code roles
|
|
11
11
|
* scale through their own tokens), so stepping those tiers reproduces zoom
|
|
@@ -49,7 +49,7 @@ export function fontZoomShortcut(event: {
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* Step every text tier by `delta` pixels, clamped to the range the appearance editor
|
|
52
|
-
* enforces. The axes move together
|
|
52
|
+
* enforces. The axes move together, that is what makes the chord read as zoom, and
|
|
53
53
|
* each keeps its own family choice.
|
|
54
54
|
*/
|
|
55
55
|
export function stepAppearanceFontSizes(
|
|
@@ -24,7 +24,8 @@ export type KeyedRow<T> = Readonly<{ item: Accessor<T> }>
|
|
|
24
24
|
*
|
|
25
25
|
* `equals` decides whether a fresh item replaces the row's stored value. The
|
|
26
26
|
* default treats every new object as a change, which is correct for a projection
|
|
27
|
-
* whose fields are all rendered
|
|
27
|
+
* whose fields are all rendered; the same object passed again is not one, so a
|
|
28
|
+
* list that rebuilds its array around unchanged items updates no row. Pass a field-level comparator — a version
|
|
28
29
|
* stamp, a revision number — to skip redundant downstream updates entirely.
|
|
29
30
|
*
|
|
30
31
|
* ```tsx
|
|
@@ -52,7 +53,7 @@ export function keyedRows<T, K>(
|
|
|
52
53
|
const [holder, setHolder] = createSignal<readonly [T]>([item], {
|
|
53
54
|
equals:
|
|
54
55
|
equals === false
|
|
55
|
-
?
|
|
56
|
+
? (previousHolder, nextHolder) => previousHolder[0] === nextHolder[0]
|
|
56
57
|
: (previousHolder, nextHolder) => equals(previousHolder[0], nextHolder[0]),
|
|
57
58
|
})
|
|
58
59
|
entry = { row: { item: () => holder()[0] }, set: (nextItem) => setHolder([nextItem]) }
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* These live here rather than in each component because the overlay family is
|
|
6
6
|
* where consistency is most visible and least likely to survive duplication.
|
|
7
7
|
* A dialog, a sheet and a dropdown that disagree about their border, radius,
|
|
8
|
-
* motion or shadow read as three different apps
|
|
8
|
+
* motion or shadow read as three different apps, and an app that adopts this
|
|
9
9
|
* library would inherit all three. Declaring the surface once is what makes
|
|
10
10
|
* "an overlay looks like this" a fact rather than a convention.
|
|
11
11
|
*/
|
|
@@ -23,8 +23,8 @@ export const overlaySurface =
|
|
|
23
23
|
*
|
|
24
24
|
* `--popover` is the catalogue's `surfaceElevated`, whose derivation amplifies
|
|
25
25
|
* the canvas hue's chroma on the elevated step. On the dark default's violet
|
|
26
|
-
* canvas that makes the dialog the most chromatic surface in the ladder
|
|
27
|
-
* `oklch(0.2406 0.0088 300.91)`, red above green in sRGB
|
|
26
|
+
* canvas that makes the dialog the most chromatic surface in the ladder,
|
|
27
|
+
* `oklch(0.2406 0.0088 300.91)`, red above green in sRGB, and on a full dialog
|
|
28
28
|
* panel that cast reads as a warm tint the canvas never has. shadcn's own
|
|
29
29
|
* convention already splits the two: a Dialog paints `bg-background`, menus and
|
|
30
30
|
* popovers paint `bg-popover`. The veil, the hairline and the elevation shadow
|
|
@@ -138,7 +138,7 @@ export const menuSeparator = 'bg-border -mx-1 my-1 h-px'
|
|
|
138
138
|
/**
|
|
139
139
|
* A leading colour swatch on a menu or select row: the sanctioned way to carry
|
|
140
140
|
* a card-tone colour into a list of options. The tones are the system's accent
|
|
141
|
-
* and status roles
|
|
141
|
+
* and status roles, the vocabulary a Badge already speaks, so the colour an
|
|
142
142
|
* option shows in a menu is the colour its badge carries on a card, and a
|
|
143
143
|
* caller never passes a raw colour into a list. The dot is `aria-hidden`; the
|
|
144
144
|
* label carries the meaning, so a tone is never the only signal.
|
|
@@ -164,7 +164,7 @@ export type MenuSwatchTone = NonNullable<VariantProps<typeof menuSwatchTone>['to
|
|
|
164
164
|
export const menuContentPadding = 'p-1'
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* Marks a floating layer
|
|
167
|
+
* Marks a floating layer, a menu, a listbox, a popover, as part of the top
|
|
168
168
|
* layer.
|
|
169
169
|
*
|
|
170
170
|
* A modal dialog hides everything outside itself from assistive technology
|
|
@@ -59,8 +59,8 @@ export type RecoveryEnvelope = Readonly<{
|
|
|
59
59
|
* Run `operation`, or answer `otherwise` if it throws.
|
|
60
60
|
*
|
|
61
61
|
* The one place a storage failure is swallowed. Storage throws for reasons outside
|
|
62
|
-
* the code
|
|
63
|
-
* not JSON
|
|
62
|
+
* the code, blocked by a sandbox or a privacy mode, full, or holding bytes that are
|
|
63
|
+
* not JSON, and a host's codec or persistence is code this system has not seen. In
|
|
64
64
|
* every case the preference is lost for the session and the switch that read or saved
|
|
65
65
|
* it still works.
|
|
66
66
|
*/
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* there: it leaves `<` and `>` alone, so a value containing `</script>` ends the tag
|
|
7
7
|
* early and everything after it is parsed as HTML. That is the classic inline-script
|
|
8
8
|
* injection, and it is a real one even when the value is a developer-supplied prop
|
|
9
|
-
* rather than user input
|
|
9
|
+
* rather than user input, a prop can come from configuration, and a key that happens
|
|
10
10
|
* to contain a closing tag should not be able to execute.
|
|
11
11
|
*
|
|
12
12
|
* The escape is also correct JavaScript: `\u003c` is `<` to the parser, so the value
|
|
13
13
|
* is byte-identical at runtime and inert to the HTML tokenizer. `\u2028` and `\u2029`
|
|
14
|
-
* are escaped for the neighbouring reason
|
|
14
|
+
* are escaped for the neighbouring reason, they are legal inside a JSON string and
|
|
15
15
|
* were, before ES2019, line terminators to a JavaScript parser.
|
|
16
16
|
*
|
|
17
17
|
* CodeQL flags the unescaped form as `js/bad-code-sanitization`, which is how this
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ratios (0.67 CSS px at 150% zoom, 0.8 at 125%): the scroller's resting
|
|
18
18
|
* maximum scrollTop lands on a fractional value, so `|scrollTop - target|`
|
|
19
19
|
* stays just above 0.5 even when the viewport is visually pinned to the
|
|
20
|
-
* bottom
|
|
20
|
+
* bottom, making the pin re-fire on every ResizeObserver tick. Scaling the
|
|
21
21
|
* epsilon to the device pixel (never below 1 CSS px) absorbs that fractional
|
|
22
22
|
* resting error. `devicePixelRatio` is read defensively so a jsdom / SSR
|
|
23
23
|
* environment that leaves it undefined falls back to 1 (→ 1.5px).
|
package/dist/r/src/lib/text.ts
CHANGED
|
@@ -34,7 +34,7 @@ function stripHidden(value: string): string {
|
|
|
34
34
|
* Untrusted text, made safe to lay out: hidden and direction-overriding
|
|
35
35
|
* characters removed, runs of whitespace (including newlines) collapsed to one
|
|
36
36
|
* space, and clipped to `limit` with an ellipsis. It is still only ever rendered
|
|
37
|
-
* as a text node
|
|
37
|
+
* as a text node, this is about length and spoofing, not escaping.
|
|
38
38
|
*/
|
|
39
39
|
export function boundText(value: string, limit: number): string {
|
|
40
40
|
// Clip before the regex passes so a multi-megabyte value costs a slice, not a scan.
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `@adea-ai/themes` offers two kinds of accent. The presets (`ACCENTS`) are brand
|
|
5
5
|
* colours, the same six on every theme. Since 0.9 the catalogue also offers the
|
|
6
|
-
* accent-shaped colours a theme carries itself
|
|
6
|
+
* accent-shaped colours a theme carries itself, its ANSI blue, magenta, cyan and
|
|
7
7
|
* green, paired across a light and a dark theme and kept only when they clear the
|
|
8
|
-
* catalogue's accent floors
|
|
8
|
+
* catalogue's accent floors, through `themeAccentPresets`. Those read as part of
|
|
9
9
|
* the palette rather than as visitors on it, which is why they are offered here.
|
|
10
10
|
*
|
|
11
11
|
* Their ids are role-shaped (`ansi-blue`), not value-shaped: a stored theme accent
|
|
12
12
|
* survives switching themes and resolves to the *new* theme's blue. That has one
|
|
13
13
|
* consequence a consumer must handle, and this module is where it is handled once:
|
|
14
14
|
* a stored theme accent may name a slot the current pair does not offer, and then
|
|
15
|
-
* it resolves to nothing and the theme's own primary applies
|
|
15
|
+
* it resolves to nothing and the theme's own primary applies, the same fallback a
|
|
16
16
|
* stale preset id gets.
|
|
17
17
|
*
|
|
18
18
|
* This module holds only the id test, and reads only the schema entry: the
|
|
@@ -76,7 +76,7 @@ export function themeCssVariablesWith(
|
|
|
76
76
|
'--primary-foreground': c.primaryForeground,
|
|
77
77
|
/*
|
|
78
78
|
* The two tokens derived from the primary, and they are here rather than left to
|
|
79
|
-
* `theme.css` because they must follow `--primary
|
|
79
|
+
* `theme.css` because they must follow `--primary`, which this function writes
|
|
80
80
|
* for *any* theme in the catalogue, not just the two defaults `theme.css` carries.
|
|
81
81
|
*
|
|
82
82
|
* `--primary-hover` is a resolved colour, not a `color-mix()`: a uniform hover
|
|
@@ -87,7 +87,7 @@ export function themeCssVariablesWith(
|
|
|
87
87
|
* own, but its *strength* is per theme: `primarySubtleCss(record)` lowers the
|
|
88
88
|
* appearance ceiling only as far as this theme needs for body text to clear 4.5:1
|
|
89
89
|
* on the tint, over every surface, for every accent it offers. It has to be
|
|
90
|
-
* written per theme for that reason
|
|
90
|
+
* written per theme for that reason, the appearance-wide value is not legible on
|
|
91
91
|
* every palette.
|
|
92
92
|
*/
|
|
93
93
|
'--primary-hover': primaryHover(c.primary, theme.appearance),
|