@adea-ai/ui 0.159.9 → 0.160.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 +22 -24
- package/dist/NOTICE +11 -12
- package/dist/components/composites/about-dialog/about-dialog.d.ts +1 -1
- package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
- package/dist/components/composites/about-dialog/about-dialog.js +26 -15
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.js +186 -175
- package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.js +114 -100
- package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +68 -61
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +1 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +82 -100
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +82 -73
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +185 -197
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +370 -343
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +219 -192
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.js.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.js +137 -117
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +4 -4
- package/dist/components/composites/appearance-editor/theme-preview.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +190 -175
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.js +162 -140
- package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +284 -274
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +104 -76
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.js +57 -54
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +158 -147
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.js +117 -116
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +230 -202
- 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.d.ts.map +1 -1
- package/dist/components/composites/context/context.js +206 -195
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.d.ts +2 -2
- package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +275 -239
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/help-center/help-center.d.ts +1 -1
- package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
- package/dist/components/composites/help-center/help-center.js +138 -118
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +191 -165
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.d.ts +60 -60
- package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
- package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.js +123 -104
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts +8 -2
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +32 -34
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -6
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +53 -55
- 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.d.ts.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js +111 -103
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +414 -406
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +11 -17
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.js +85 -105
- package/dist/components/composites/prompt-input/prompt-input.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +180 -188
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
- package/dist/components/composites/reasoning/reasoning.js +13 -18
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.js +98 -83
- package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
- package/dist/components/composites/settings/settings-layout.d.ts +2 -2
- package/dist/components/composites/settings/settings-layout.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-layout.js +15 -21
- package/dist/components/composites/settings/settings-layout.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +96 -72
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +154 -136
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +1 -1
- package/dist/components/composites/sources/sources.d.ts.map +1 -1
- package/dist/components/composites/sources/sources.js +155 -144
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +2 -2
- package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.js +386 -371
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +132 -116
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +16 -29
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/suggestion/suggestion.d.ts +3 -3
- package/dist/components/composites/suggestion/suggestion.d.ts.map +1 -1
- package/dist/components/composites/suggestion/suggestion.js +42 -43
- package/dist/components/composites/suggestion/suggestion.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.d.ts.map +1 -1
- package/dist/components/composites/task/task.js +150 -147
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts +2 -2
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +328 -286
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
- package/dist/components/composites/test-results/test-results.js +304 -266
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +2 -2
- package/dist/components/composites/tool/tool.d.ts.map +1 -1
- package/dist/components/composites/tool/tool.js +68 -68
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +6 -5
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +234 -215
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +50 -46
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts +2 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +353 -282
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +70 -69
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +41 -38
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.js +39 -21
- package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.js +2 -2
- package/dist/components/conversation/atomic/chat-composer.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts +2 -2
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +137 -137
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/chat-composer.d.ts +1 -1
- package/dist/components/conversation/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/chat-composer.js +5 -5
- package/dist/components/conversation/chat-composer.js.map +1 -1
- package/dist/components/conversation/composer-core.d.ts +2 -2
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.d.ts.map +1 -1
- package/dist/components/conversation/composer-menu.js +23 -23
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.d.ts +2 -2
- package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +28 -32
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +65 -59
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.d.ts +2 -1
- package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
- package/dist/components/conversation/conversation-surface.js +68 -72
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts +3 -2
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +267 -264
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts +2 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +82 -98
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +317 -316
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts.map +1 -1
- package/dist/components/conversation/paste-token-editor.js +210 -161
- package/dist/components/conversation/paste-token-editor.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +11 -9
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +124 -116
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts +3 -2
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +127 -132
- 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.d.ts.map +1 -1
- package/dist/components/layout/app-shell/app-shell.js +40 -34
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.d.ts +2 -2
- package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +22 -25
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +70 -40
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +6 -5
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.js +95 -83
- package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts +3 -3
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.js +29 -38
- package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +116 -103
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.d.ts +11 -11
- package/dist/components/layout/panel/panel.d.ts.map +1 -1
- package/dist/components/layout/panel/panel.js +98 -82
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.js +15 -15
- package/dist/components/layout/pixel-pane/pixel-pane.js.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts +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 +112 -105
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.d.ts +4 -2
- package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.js +32 -35
- package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts +2 -2
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.js +126 -120
- package/dist/components/layout/shell-top-bar/shell-top-bar.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.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js +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 +8 -2
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +155 -138
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts +8 -2
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +231 -224
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts +2 -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 +64 -63
- 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 +2 -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 +64 -63
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts +2 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +330 -275
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +4 -4
- package/dist/components/layout/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/layout/status-bar/status-bar.js +42 -33
- package/dist/components/layout/status-bar/status-bar.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.d.ts +8 -8
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +96 -98
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.js +29 -34
- package/dist/components/layout/virtual-window/virtual-window.js.map +1 -1
- package/dist/components/motion/index.d.ts +1 -1
- package/dist/components/motion/index.d.ts.map +1 -1
- package/dist/components/motion/index.js +1 -1
- package/dist/components/motion/motion.d.ts +84 -0
- package/dist/components/motion/motion.d.ts.map +1 -0
- package/dist/components/motion/motion.js +198 -0
- package/dist/components/motion/motion.js.map +1 -0
- package/dist/components/motion/presence.d.ts +16 -7
- package/dist/components/motion/presence.d.ts.map +1 -1
- package/dist/components/motion/presence.js +75 -3
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +2 -2
- package/dist/components/theme/appearance-panel.d.ts.map +1 -1
- package/dist/components/theme/appearance-panel.js +156 -141
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.d.ts.map +1 -1
- package/dist/components/theme/lazy.js +3 -2
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +1 -1
- package/dist/components/theme/theme-context.d.ts.map +1 -1
- package/dist/components/theme/theme-context.js +2 -2
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-mode-toggle.d.ts +2 -2
- package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-mode-toggle.js +22 -17
- package/dist/components/theme/theme-mode-toggle.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +4 -4
- package/dist/components/theme/theme-picker.d.ts.map +1 -1
- package/dist/components/theme/theme-picker.js +145 -133
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +1 -1
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +48 -57
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-provider.d.ts +1 -1
- package/dist/components/theme/theme-provider.d.ts.map +1 -1
- package/dist/components/theme/theme-provider.js +1 -1
- package/dist/components/theme/theme-provider.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +2 -2
- package/dist/components/theme/theme-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-toggle.js +19 -12
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +25 -12
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion/accordion.js +42 -38
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +67 -53
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +59 -12
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +163 -136
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.js +80 -91
- package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +19 -22
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/ui/attachment/attachment.d.ts +1 -1
- package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment/attachment.js +202 -198
- package/dist/components/ui/attachment/attachment.js.map +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +4 -4
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar/avatar.js +61 -52
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +10 -3
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.js +22 -28
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.d.ts +1 -1
- package/dist/components/ui/board/board.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +259 -236
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +90 -75
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +47 -45
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.d.ts +18 -3
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +34 -25
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +4 -4
- package/dist/components/ui/button-group/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group/button-group.js +32 -32
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.d.ts +93 -39
- package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar/calendar.js +287 -193
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +3 -3
- package/dist/components/ui/callout/callout.d.ts.map +1 -1
- package/dist/components/ui/callout/callout.js +30 -33
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +8 -8
- package/dist/components/ui/card/card.d.ts.map +1 -1
- package/dist/components/ui/card/card.js +66 -58
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +8 -2
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js +115 -105
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts +7 -8
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +311 -245
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +47 -23
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +312 -356
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +263 -253
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/collapsible/collapsible.d.ts +20 -8
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible/collapsible.js +24 -27
- package/dist/components/ui/collapsible/collapsible.js.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +97 -13
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.js +302 -97
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/value-combobox.js +4 -7
- package/dist/components/ui/combobox/value-combobox.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +100 -36
- package/dist/components/ui/command/command.d.ts.map +1 -1
- package/dist/components/ui/command/command.js +377 -169
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +24 -12
- package/dist/components/ui/context-menu/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu/context-menu.js +45 -14
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +110 -102
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +98 -28
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +257 -151
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +55 -14
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +201 -118
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts.map +1 -1
- package/dist/components/ui/diff-block/diff-block.js +111 -86
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +53 -19
- package/dist/components/ui/drawer/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/drawer.js +108 -83
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +60 -47
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +73 -188
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +219 -18
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js +556 -150
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +16 -27
- 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.d.ts.map +1 -1
- package/dist/components/ui/empty/empty.js +57 -50
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts +2 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +71 -72
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts +53 -14
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +175 -110
- 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.d.ts.map +1 -1
- package/dist/components/ui/field/number-field.js +14 -10
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +19 -4
- package/dist/components/ui/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card/hover-card.js +80 -17
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input/input-control.d.ts +4 -3
- package/dist/components/ui/input/input-control.d.ts.map +1 -1
- package/dist/components/ui/input/input-control.js +16 -20
- package/dist/components/ui/input/input-control.js.map +1 -1
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/input/input.js +42 -47
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/input-group.js +119 -132
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.js +11 -17
- package/dist/components/ui/input-group/secret-input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +23 -9
- package/dist/components/ui/input-otp/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp/input-otp.js +60 -67
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +105 -101
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +4 -4
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +25 -24
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +5 -5
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/label/label.js +15 -13
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.d.ts +1 -1
- package/dist/components/ui/marker/marker.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +72 -74
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +37 -23
- package/dist/components/ui/menubar/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar/menubar.js +76 -39
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +281 -250
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts +18 -17
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +95 -106
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +2 -2
- package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select/native-select.js +93 -93
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +45 -44
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +215 -96
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.d.ts +36 -16
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination/pagination.js +86 -68
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts +51 -10
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +204 -37
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts +23 -5
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +52 -32
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +351 -338
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +27 -6
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +202 -145
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/index.d.ts +1 -1
- package/dist/components/ui/resizable/index.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +55 -9
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.js +104 -81
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +2 -2
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +22 -28
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +104 -24
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/select/select.js +304 -111
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/separator/separator.d.ts +13 -3
- package/dist/components/ui/separator/separator.d.ts.map +1 -1
- package/dist/components/ui/separator/separator.js +11 -9
- package/dist/components/ui/separator/separator.js.map +1 -1
- package/dist/components/ui/sheet/index.js +3 -1
- package/dist/components/ui/sheet/sheet.d.ts +34 -9
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +144 -106
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +2 -2
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.js +13 -10
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +27 -8
- package/dist/components/ui/slider/slider.d.ts.map +1 -1
- package/dist/components/ui/slider/slider.js +74 -60
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +2 -2
- package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner/spinner.js +23 -18
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +69 -55
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts +31 -15
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +275 -325
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/table/table.d.ts +10 -10
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/table.js +96 -79
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +32 -8
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.js +80 -63
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/text-link/text-link.d.ts +2 -2
- package/dist/components/ui/text-link/text-link.d.ts.map +1 -1
- package/dist/components/ui/text-link/text-link.js +16 -16
- package/dist/components/ui/text-link/text-link.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +3 -2
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.js +39 -49
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts +30 -8
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +188 -86
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +9 -5
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.js +18 -17
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.d.ts +27 -11
- package/dist/components/ui/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.js +30 -32
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +8 -6
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.js +33 -16
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts +2 -2
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.js +27 -28
- package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +142 -16
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +255 -254
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +245 -250
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +11 -4
- package/dist/components/ui/typography/typography.d.ts.map +1 -1
- package/dist/components/ui/typography/typography.js +8 -19
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/lib/async-action.d.ts.map +1 -1
- package/dist/lib/async-action.js +1 -1
- package/dist/lib/async-action.js.map +1 -1
- package/dist/lib/create-poll.d.ts.map +1 -1
- package/dist/lib/create-poll.js +11 -10
- package/dist/lib/create-poll.js.map +1 -1
- package/dist/lib/events.d.ts +1 -1
- package/dist/lib/events.d.ts.map +1 -1
- package/dist/lib/events.js.map +1 -1
- package/dist/lib/fast-icon.d.ts +2 -2
- package/dist/lib/fast-icon.d.ts.map +1 -1
- package/dist/lib/fast-icon.js +8 -7
- package/dist/lib/fast-icon.js.map +1 -1
- package/dist/lib/form-field.d.ts +12 -10
- package/dist/lib/form-field.d.ts.map +1 -1
- package/dist/lib/form-field.js +12 -8
- package/dist/lib/form-field.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +4 -1
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +24 -5
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +41 -6
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/refs.d.ts +13 -0
- package/dist/lib/refs.d.ts.map +1 -0
- package/dist/lib/refs.js +22 -0
- package/dist/lib/refs.js.map +1 -0
- package/dist/lib/resize-separator.d.ts +1 -1
- package/dist/lib/resize-separator.d.ts.map +1 -1
- package/dist/lib/resize-separator.js +1 -1
- package/dist/lib/resize-separator.js.map +1 -1
- package/dist/lib/slotted.d.ts +14 -0
- package/dist/lib/slotted.d.ts.map +1 -0
- package/dist/lib/slotted.js +19 -0
- package/dist/lib/slotted.js.map +1 -0
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/lint.js +11 -4
- package/dist/lint.js.map +1 -1
- package/dist/r/about-dialog.json +1 -1
- package/dist/r/accent-picker.json +2 -1
- package/dist/r/accordion.json +3 -2
- package/dist/r/account-menu.json +2 -1
- package/dist/r/action-button.json +1 -1
- package/dist/r/alert-dialog.json +3 -1
- package/dist/r/alert.json +2 -1
- package/dist/r/annotation-surface.json +3 -1
- package/dist/r/app-shell.json +3 -1
- package/dist/r/appearance-editor.json +3 -2
- package/dist/r/aspect-ratio.json +3 -1
- package/dist/r/attachment.json +2 -1
- package/dist/r/avatar.json +3 -1
- package/dist/r/badge.json +1 -1
- package/dist/r/board.json +3 -1
- package/dist/r/breadcrumb.json +2 -1
- package/dist/r/bubble.json +3 -1
- package/dist/r/button-group.json +3 -1
- package/dist/r/button.json +1 -1
- package/dist/r/calendar.json +3 -2
- package/dist/r/callout.json +3 -1
- package/dist/r/card.json +3 -1
- package/dist/r/carousel.json +3 -3
- package/dist/r/catalog-browser.json +3 -2
- package/dist/r/chain-of-thought.json +2 -1
- package/dist/r/chart.json +2 -2
- package/dist/r/chat.json +2 -1
- package/dist/r/checkbox.json +2 -2
- package/dist/r/checkpoint.json +2 -1
- package/dist/r/code-block.json +2 -1
- package/dist/r/collapsible.json +2 -1
- package/dist/r/combobox.json +3 -2
- package/dist/r/command.json +4 -3
- package/dist/r/confirmation.json +2 -1
- package/dist/r/context-menu.json +3 -3
- package/dist/r/context.json +2 -1
- package/dist/r/contextual-sidebar.json +3 -1
- package/dist/r/conversation.json +3 -2
- package/dist/r/detail-panel.json +2 -1
- package/dist/r/dialog.json +3 -2
- package/dist/r/diff-block.json +3 -1
- package/dist/r/drawer.json +3 -1
- package/dist/r/dropdown-menu.json +3 -2
- package/dist/r/empty.json +2 -1
- package/dist/r/entity-icon.json +3 -1
- package/dist/r/field.json +2 -1
- package/dist/r/file-tree.json +2 -1
- package/dist/r/floating-preview.json +2 -1
- package/dist/r/help-center.json +1 -1
- package/dist/r/hover-card.json +3 -1
- package/dist/r/icon-picker.json +2 -1
- package/dist/r/inline-citation.json +1 -1
- package/dist/r/input-group.json +3 -1
- package/dist/r/input-otp.json +2 -1
- package/dist/r/input.json +4 -1
- package/dist/r/item.json +3 -1
- package/dist/r/kbd.json +3 -1
- package/dist/r/label.json +3 -1
- package/dist/r/lib.json +10 -0
- package/dist/r/list-row.json +1 -1
- package/dist/r/marker.json +3 -1
- package/dist/r/menubar.json +2 -1
- package/dist/r/message-scroller.json +2 -1
- package/dist/r/message.json +2 -1
- package/dist/r/modal-dialog.json +3 -1
- package/dist/r/model-selector.json +2 -1
- package/dist/r/motion.json +6 -1
- package/dist/r/native-select.json +2 -1
- package/dist/r/navigation-menu.json +3 -2
- package/dist/r/orbit-layout.json +3 -1
- package/dist/r/page.json +3 -1
- package/dist/r/pagination.json +3 -2
- package/dist/r/panel.json +3 -1
- package/dist/r/pixel-pane.json +3 -1
- package/dist/r/pixel-resize-handle.json +1 -1
- package/dist/r/plan.json +2 -1
- package/dist/r/popover.json +5 -1
- package/dist/r/progress.json +2 -1
- package/dist/r/prompt-input.json +2 -1
- package/dist/r/questionnaire.json +2 -1
- package/dist/r/queue.json +2 -1
- package/dist/r/radio-group.json +3 -2
- package/dist/r/reasoning.json +2 -1
- package/dist/r/registry.json +315 -151
- package/dist/r/resizable.json +3 -2
- package/dist/r/scene-controls.json +2 -1
- package/dist/r/scroll-area.json +3 -1
- package/dist/r/select.json +3 -2
- package/dist/r/separator.json +2 -1
- package/dist/r/settings.json +2 -2
- package/dist/r/sheet.json +4 -2
- package/dist/r/shell-rail.json +2 -1
- package/dist/r/shell-top-bar.json +3 -1
- package/dist/r/side-rail.json +1 -1
- package/dist/r/sidebar-nav.json +2 -2
- package/dist/r/skeleton.json +3 -1
- package/dist/r/slider.json +2 -1
- package/dist/r/sources.json +1 -1
- package/dist/r/spinner.json +2 -1
- package/dist/r/split-layout.json +2 -1
- package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/dist/r/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/dist/r/src/components/composites/action-button/action-button.tsx +75 -52
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/dist/r/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/dist/r/src/components/composites/chat/chat.tsx +12 -14
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/dist/r/src/components/composites/context/context.tsx +10 -4
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/dist/r/src/components/composites/help-center/help-center.tsx +1 -1
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/dist/r/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/dist/r/src/components/composites/list-row/list-row.tsx +10 -19
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/dist/r/src/components/composites/plan/plan.tsx +11 -15
- package/dist/r/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/dist/r/src/components/composites/queue/queue.tsx +18 -20
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/dist/r/src/components/composites/settings/settings-layout.tsx +10 -8
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/dist/r/src/components/composites/settings/settings.tsx +19 -13
- package/dist/r/src/components/composites/sources/sources.tsx +8 -6
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/dist/r/src/components/composites/stat/stat.tsx +19 -12
- package/dist/r/src/components/composites/subagent/subagent.tsx +8 -5
- package/dist/r/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/dist/r/src/components/composites/task/task.tsx +12 -24
- package/dist/r/src/components/composites/terminal/terminal.tsx +36 -38
- package/dist/r/src/components/composites/test-results/test-results.tsx +59 -64
- package/dist/r/src/components/composites/tool/tool.tsx +9 -6
- package/dist/r/src/components/composites/tree/tree.tsx +88 -52
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/dist/r/src/components/conversation/busy-send-button.tsx +2 -2
- package/dist/r/src/components/conversation/chat-composer.tsx +2 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +6 -4
- package/dist/r/src/components/conversation/conversation-avatar.tsx +6 -5
- package/dist/r/src/components/conversation/conversation-pane.tsx +4 -10
- package/dist/r/src/components/conversation/conversation-surface.tsx +12 -8
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/dist/r/src/components/conversation/message-composer.tsx +14 -9
- package/dist/r/src/components/conversation/message-row.tsx +19 -14
- package/dist/r/src/components/conversation/paste-token-editor.tsx +106 -54
- package/dist/r/src/components/conversation/scroll-follow.ts +125 -112
- package/dist/r/src/components/conversation/thread-panel.tsx +10 -7
- package/dist/r/src/components/conversation/transcript-composition.tsx +14 -16
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/dist/r/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/dist/r/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/dist/r/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/dist/r/src/components/layout/page/page.tsx +16 -9
- package/dist/r/src/components/layout/panel/panel.tsx +22 -12
- package/dist/r/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/dist/r/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/dist/r/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/dist/r/src/components/motion/index.ts +7 -1
- package/dist/r/src/components/motion/motion.tsx +322 -0
- package/dist/r/src/components/motion/presence.tsx +95 -7
- package/dist/r/src/components/theme/appearance-panel.tsx +11 -9
- package/dist/r/src/components/theme/lazy.ts +3 -2
- package/dist/r/src/components/theme/theme-context.ts +6 -4
- package/dist/r/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/dist/r/src/components/theme/theme-picker.tsx +9 -6
- package/dist/r/src/components/theme/theme-provider-value.ts +117 -97
- package/dist/r/src/components/theme/theme-toggle.tsx +5 -4
- package/dist/r/src/components/ui/accordion/accordion.tsx +71 -35
- package/dist/r/src/components/ui/alert/alert.tsx +11 -7
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/dist/r/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/dist/r/src/components/ui/attachment/attachment.tsx +10 -6
- package/dist/r/src/components/ui/avatar/avatar.tsx +24 -10
- package/dist/r/src/components/ui/badge/badge.tsx +19 -12
- package/dist/r/src/components/ui/board/board.tsx +55 -48
- package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/dist/r/src/components/ui/bubble/bubble.tsx +4 -9
- package/dist/r/src/components/ui/button/button.tsx +42 -32
- package/dist/r/src/components/ui/button-group/button-group.tsx +8 -5
- package/dist/r/src/components/ui/calendar/calendar.tsx +382 -180
- package/dist/r/src/components/ui/callout/callout.tsx +6 -4
- package/dist/r/src/components/ui/card/card.tsx +16 -9
- package/dist/r/src/components/ui/carousel/carousel.tsx +38 -20
- package/dist/r/src/components/ui/chart/chart.tsx +149 -93
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/dist/r/src/components/ui/code-block/code-block.tsx +61 -59
- package/dist/r/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/dist/r/src/components/ui/combobox/combobox.tsx +395 -73
- package/dist/r/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/dist/r/src/components/ui/command/command.tsx +416 -175
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/dist/r/src/components/ui/dialog/dialog.tsx +225 -95
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/dist/r/src/components/ui/drawer/drawer.tsx +113 -41
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/dist/r/src/components/ui/empty/empty-state.tsx +9 -7
- package/dist/r/src/components/ui/empty/empty.tsx +14 -8
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/dist/r/src/components/ui/field/field.tsx +165 -55
- package/dist/r/src/components/ui/field/number-field.tsx +21 -5
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/dist/r/src/components/ui/input/input-control.tsx +6 -4
- package/dist/r/src/components/ui/input/input.tsx +7 -5
- package/dist/r/src/components/ui/input-group/input-group.tsx +20 -12
- package/dist/r/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/dist/r/src/components/ui/item/item.tsx +15 -9
- package/dist/r/src/components/ui/kbd/kbd.tsx +8 -5
- package/dist/r/src/components/ui/label/label.tsx +7 -6
- package/dist/r/src/components/ui/marker/marker.tsx +7 -4
- package/dist/r/src/components/ui/menubar/menubar.tsx +101 -49
- package/dist/r/src/components/ui/message/message.tsx +24 -38
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/dist/r/src/components/ui/native-select/native-select.tsx +30 -19
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/dist/r/src/components/ui/pagination/pagination.tsx +153 -88
- package/dist/r/src/components/ui/popover/popover.tsx +252 -49
- package/dist/r/src/components/ui/progress/progress.tsx +64 -22
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/dist/r/src/components/ui/resizable/index.ts +3 -0
- package/dist/r/src/components/ui/resizable/resizable.tsx +157 -60
- package/dist/r/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/dist/r/src/components/ui/select/select.tsx +403 -106
- package/dist/r/src/components/ui/separator/separator.tsx +33 -6
- package/dist/r/src/components/ui/sheet/sheet.tsx +144 -64
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/dist/r/src/components/ui/slider/slider.tsx +112 -64
- package/dist/r/src/components/ui/spinner/spinner.tsx +9 -5
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/dist/r/src/components/ui/switch/switch.tsx +203 -201
- package/dist/r/src/components/ui/table/table.tsx +20 -11
- package/dist/r/src/components/ui/tabs/tabs.tsx +93 -34
- package/dist/r/src/components/ui/text-link/text-link.tsx +5 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +8 -5
- package/dist/r/src/components/ui/toast/toast.tsx +192 -83
- package/dist/r/src/components/ui/toggle/toggle.tsx +26 -9
- package/dist/r/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/dist/r/src/components/ui/trace/trace.tsx +17 -20
- package/dist/r/src/components/ui/typography/typography.tsx +17 -18
- package/dist/r/src/lib/async-action.ts +3 -1
- package/dist/r/src/lib/create-poll.ts +41 -38
- package/dist/r/src/lib/events.ts +1 -1
- package/dist/r/src/lib/fast-icon.ts +9 -13
- package/dist/r/src/lib/form-field.ts +36 -18
- package/dist/r/src/lib/keyed-rows.ts +4 -0
- package/dist/r/src/lib/overlay.ts +44 -5
- package/dist/r/src/lib/refs.ts +21 -0
- package/dist/r/src/lib/resize-separator.ts +4 -3
- package/dist/r/src/lib/slotted.ts +16 -0
- package/dist/r/src/styles/globals.css +7 -0
- package/dist/r/stack-trace.json +2 -1
- package/dist/r/stat.json +2 -1
- package/dist/r/status-bar.json +3 -1
- package/dist/r/status-chip.json +3 -1
- package/dist/r/subagent.json +2 -1
- package/dist/r/suggestion.json +3 -1
- package/dist/r/switch.json +1 -1
- package/dist/r/table.json +3 -1
- package/dist/r/tabs.json +2 -1
- package/dist/r/task.json +2 -1
- package/dist/r/terminal.json +2 -1
- package/dist/r/test-results.json +2 -1
- package/dist/r/text-link.json +3 -1
- package/dist/r/textarea.json +1 -0
- package/dist/r/theming.json +3 -2
- package/dist/r/toast.json +3 -2
- package/dist/r/toggle-group.json +2 -1
- package/dist/r/toggle.json +2 -1
- package/dist/r/tool.json +2 -1
- package/dist/r/tooltip.json +3 -1
- package/dist/r/top-bar.json +2 -1
- package/dist/r/trace.json +2 -1
- package/dist/r/tree.json +2 -1
- package/dist/r/typography.json +1 -1
- package/dist/r/update-dialog.json +2 -1
- package/dist/r/virtual-window.json +3 -1
- package/dist/r/workspace-mark.json +3 -1
- package/dist/r/workspace-switcher.json +2 -1
- package/dist/vite/tailwind-sources.js +2 -2
- package/dist/vite/tailwind-sources.js.map +1 -1
- package/package.json +14 -31
- package/registry.json +315 -151
- package/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/src/components/composites/action-button/action-button.tsx +75 -52
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/src/components/composites/chat/chat.tsx +12 -14
- package/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/src/components/composites/context/context.tsx +10 -4
- package/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/src/components/composites/help-center/help-center.tsx +1 -1
- package/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/src/components/composites/list-row/list-row.tsx +10 -19
- package/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/src/components/composites/plan/plan.tsx +11 -15
- package/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/src/components/composites/queue/queue.tsx +18 -20
- package/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/src/components/composites/settings/settings-layout.tsx +10 -8
- package/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/src/components/composites/settings/settings.tsx +19 -13
- package/src/components/composites/sources/sources.tsx +8 -6
- package/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/src/components/composites/stat/stat.tsx +19 -12
- package/src/components/composites/subagent/subagent.tsx +8 -5
- package/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/src/components/composites/task/task.tsx +12 -24
- package/src/components/composites/terminal/terminal.tsx +36 -38
- package/src/components/composites/test-results/test-results.tsx +59 -64
- package/src/components/composites/tool/tool.tsx +9 -6
- package/src/components/composites/tree/tree.tsx +88 -52
- package/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/src/components/conversation/busy-send-button.tsx +2 -2
- package/src/components/conversation/chat-composer.tsx +2 -2
- package/src/components/conversation/composer-menu.tsx +6 -4
- package/src/components/conversation/conversation-avatar.tsx +6 -5
- package/src/components/conversation/conversation-pane.tsx +4 -10
- package/src/components/conversation/conversation-surface.tsx +12 -8
- package/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/src/components/conversation/message-composer.tsx +14 -9
- package/src/components/conversation/message-row.tsx +19 -14
- package/src/components/conversation/paste-token-editor.tsx +106 -54
- package/src/components/conversation/scroll-follow.ts +125 -112
- package/src/components/conversation/thread-panel.tsx +10 -7
- package/src/components/conversation/transcript-composition.tsx +14 -16
- package/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/src/components/layout/page/page.tsx +16 -9
- package/src/components/layout/panel/panel.tsx +22 -12
- package/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/src/components/motion/index.ts +7 -1
- package/src/components/motion/motion.tsx +322 -0
- package/src/components/motion/presence.tsx +95 -7
- package/src/components/theme/appearance-panel.tsx +11 -9
- package/src/components/theme/lazy.ts +3 -2
- package/src/components/theme/theme-context.ts +6 -4
- package/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/src/components/theme/theme-picker.tsx +9 -6
- package/src/components/theme/theme-provider-value.ts +117 -97
- package/src/components/theme/theme-toggle.tsx +5 -4
- package/src/components/ui/accordion/accordion.tsx +71 -35
- package/src/components/ui/alert/alert.tsx +11 -7
- package/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/src/components/ui/attachment/attachment.tsx +10 -6
- package/src/components/ui/avatar/avatar.tsx +24 -10
- package/src/components/ui/badge/badge.tsx +19 -12
- package/src/components/ui/board/board.tsx +55 -48
- package/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/src/components/ui/bubble/bubble.tsx +4 -9
- package/src/components/ui/button/button.tsx +42 -32
- package/src/components/ui/button-group/button-group.tsx +8 -5
- package/src/components/ui/calendar/calendar.tsx +382 -180
- package/src/components/ui/callout/callout.tsx +6 -4
- package/src/components/ui/card/card.tsx +16 -9
- package/src/components/ui/carousel/carousel.tsx +38 -20
- package/src/components/ui/chart/chart.tsx +149 -93
- package/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/src/components/ui/code-block/code-block.tsx +61 -59
- package/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/src/components/ui/combobox/combobox.tsx +395 -73
- package/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/src/components/ui/command/command.tsx +416 -175
- package/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/src/components/ui/dialog/dialog.tsx +225 -95
- package/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/src/components/ui/drawer/drawer.tsx +113 -41
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/src/components/ui/empty/empty-state.tsx +9 -7
- package/src/components/ui/empty/empty.tsx +14 -8
- package/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/src/components/ui/field/field.tsx +165 -55
- package/src/components/ui/field/number-field.tsx +21 -5
- package/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/src/components/ui/input/input-control.tsx +6 -4
- package/src/components/ui/input/input.tsx +7 -5
- package/src/components/ui/input-group/input-group.tsx +20 -12
- package/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/src/components/ui/item/item.tsx +15 -9
- package/src/components/ui/kbd/kbd.tsx +8 -5
- package/src/components/ui/label/label.tsx +7 -6
- package/src/components/ui/marker/marker.tsx +7 -4
- package/src/components/ui/menubar/menubar.tsx +101 -49
- package/src/components/ui/message/message.tsx +24 -38
- package/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/src/components/ui/native-select/native-select.tsx +30 -19
- package/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/src/components/ui/pagination/pagination.tsx +153 -88
- package/src/components/ui/popover/popover.tsx +252 -49
- package/src/components/ui/progress/progress.tsx +64 -22
- package/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/src/components/ui/resizable/index.ts +3 -0
- package/src/components/ui/resizable/resizable.tsx +157 -60
- package/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/src/components/ui/select/select.tsx +403 -106
- package/src/components/ui/separator/separator.tsx +33 -6
- package/src/components/ui/sheet/sheet.tsx +144 -64
- package/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/src/components/ui/slider/slider.tsx +112 -64
- package/src/components/ui/spinner/spinner.tsx +9 -5
- package/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/src/components/ui/switch/switch.tsx +203 -201
- package/src/components/ui/table/table.tsx +20 -11
- package/src/components/ui/tabs/tabs.tsx +93 -34
- package/src/components/ui/text-link/text-link.tsx +5 -4
- package/src/components/ui/textarea/textarea.tsx +8 -5
- package/src/components/ui/toast/toast.tsx +192 -83
- package/src/components/ui/toggle/toggle.tsx +26 -9
- package/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/src/components/ui/trace/trace.tsx +17 -20
- package/src/components/ui/typography/typography.tsx +17 -18
- package/src/lib/async-action.ts +3 -1
- package/src/lib/create-poll.ts +41 -38
- package/src/lib/events.ts +1 -1
- package/src/lib/fast-icon.ts +9 -13
- package/src/lib/form-field.ts +36 -18
- package/src/lib/keyed-rows.ts +4 -0
- package/src/lib/overlay.ts +44 -5
- package/src/lib/refs.ts +21 -0
- package/src/lib/resize-separator.ts +4 -3
- package/src/lib/slotted.ts +16 -0
- package/src/lint/index.ts +20 -5
- package/src/styles/globals.css +7 -0
- package/src/testing/happy-dom-text.ts +30 -0
- package/src/testing/solid-transform.ts +19 -36
- package/src/vite/tailwind-sources.ts +2 -2
|
@@ -8,159 +8,174 @@ import { RadioGroup as RadioGroup$1, RadioGroupItem } from "../ui/radio-group/ra
|
|
|
8
8
|
import { ThemePicker } from "./theme-picker.js";
|
|
9
9
|
import { useTheme } from "./theme-context.js";
|
|
10
10
|
import { Heading } from "../ui/typography/typography.js";
|
|
11
|
-
import { createComponent, insert,
|
|
12
|
-
import {
|
|
13
|
-
import { RadioGroup } from "@
|
|
11
|
+
import { createComponent, insert, memo, spread, template } from "@solidjs/web";
|
|
12
|
+
import { omit, onSettled } from "solid-js";
|
|
13
|
+
import { RadioGroup } from "@ui-sdk/solid/radio";
|
|
14
14
|
// src/components/theme/appearance-panel.tsx
|
|
15
|
-
var _tmpl$ =
|
|
16
|
-
var _tmpl$2 =
|
|
15
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div><section class="flex flex-col gap-3"><header class="flex flex-col gap-0.5"><p class="max-w-prose text-sm text-muted-foreground">Follow the system, or pin one. Each appearance keeps its own theme.</p></header></section><!><section class="flex flex-col gap-3"><header class="flex flex-col gap-0.5"><p class="max-w-prose text-sm text-muted-foreground">Colours the interactive roles — the primary button, the focus ring, a selected row — on top of the theme above — one of the presets, or a colour the theme carries itself. Every option is measured against the surface it lands on, so none of them can make a label unreadable.</p></header></section><section class="flex flex-col gap-3"><header class="flex flex-col gap-0.5"><p class="max-w-prose text-sm text-muted-foreground">Interface, reading and code fonts.`);
|
|
16
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<section class="flex flex-col gap-3"><header class="flex flex-col gap-0.5"><p class="max-w-prose text-sm text-muted-foreground">`);
|
|
17
17
|
function AppearancePanel(props) {
|
|
18
|
-
const
|
|
18
|
+
const local = props;
|
|
19
|
+
const rest = omit(props, "class");
|
|
19
20
|
const context = useTheme();
|
|
20
21
|
const { selection, setSelection, resolvedAppearance, themeAccents } = context;
|
|
21
|
-
|
|
22
|
+
onSettled(() => void context.loadCatalogue?.());
|
|
22
23
|
const themesFor = (appearance) => context.themes.filter((variant) => variant.appearance === appearance);
|
|
23
24
|
const selectedAccent = () => {
|
|
24
25
|
const accent = selection().accent;
|
|
25
26
|
return accent === "theme" || isPresetAccentId(accent) || themeAccents().some((option) => option.id === accent) ? accent : THEME_DEFAULT_ID;
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
var _el$ = _tmpl$();
|
|
29
|
+
var _el$2 = _el$.firstChild;
|
|
30
|
+
var _el$3 = _el$2.firstChild;
|
|
31
|
+
var _el$4 = _el$3.firstChild;
|
|
32
|
+
var _el$5 = _el$2.nextSibling;
|
|
33
|
+
var _el$6 = _el$5.nextSibling;
|
|
34
|
+
var _el$7 = _el$6.firstChild;
|
|
35
|
+
var _el$8 = _el$7.firstChild;
|
|
36
|
+
var _el$9 = _el$6.nextSibling;
|
|
37
|
+
var _el$10 = _el$9.firstChild;
|
|
38
|
+
var _el$11 = _el$10.firstChild;
|
|
39
|
+
spread(_el$, [{
|
|
40
|
+
"data-slot": "appearance-panel",
|
|
41
|
+
get "class"() {
|
|
30
42
|
return cn("flex flex-col gap-8", local.class);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
})
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
})
|
|
43
|
+
}
|
|
44
|
+
}, rest], true);
|
|
45
|
+
insert(_el$3, createComponent(Heading, {
|
|
46
|
+
as: "h2",
|
|
47
|
+
size: "card",
|
|
48
|
+
children: "Appearance"
|
|
49
|
+
}), _el$4);
|
|
50
|
+
insert(_el$2, createComponent(RadioGroup$1, {
|
|
51
|
+
get value() {
|
|
52
|
+
return selection().appearance;
|
|
53
|
+
},
|
|
54
|
+
onChange: (value) => setSelection({ appearance: value }),
|
|
55
|
+
"aria-label": "Appearance",
|
|
56
|
+
get children() {
|
|
57
|
+
return [
|
|
58
|
+
createComponent(RadioGroupItem, {
|
|
59
|
+
value: "light",
|
|
60
|
+
label: "Light",
|
|
61
|
+
description: "Always the light theme."
|
|
62
|
+
}),
|
|
63
|
+
createComponent(RadioGroupItem, {
|
|
64
|
+
value: "dark",
|
|
65
|
+
label: "Dark",
|
|
66
|
+
description: "Always the dark theme."
|
|
67
|
+
}),
|
|
68
|
+
createComponent(RadioGroupItem, {
|
|
69
|
+
value: "system",
|
|
70
|
+
label: "Match the system",
|
|
71
|
+
get description() {
|
|
72
|
+
return `Currently resolving to ${resolvedAppearance()}.`;
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
}), null);
|
|
78
|
+
insert(_el$, (() => {
|
|
79
|
+
var _c$ = memo(() => {
|
|
80
|
+
return resolvedAppearance() === "light";
|
|
81
|
+
});
|
|
82
|
+
return () => {
|
|
83
|
+
return _c$() ? createComponent(ThemeSection, {
|
|
84
|
+
title: "Light theme",
|
|
85
|
+
description: "Shown when the appearance resolves to light.",
|
|
86
|
+
get themes() {
|
|
87
|
+
return themesFor("light");
|
|
88
|
+
},
|
|
89
|
+
get selectedId() {
|
|
90
|
+
return selection().lightThemeId;
|
|
91
|
+
},
|
|
92
|
+
onThemeSelect: (theme) => setSelection({ lightThemeId: theme.id })
|
|
93
|
+
}) : void 0;
|
|
94
|
+
};
|
|
95
|
+
})(), _el$5);
|
|
96
|
+
insert(_el$, (() => {
|
|
97
|
+
var _c$2 = memo(() => {
|
|
98
|
+
return resolvedAppearance() === "dark";
|
|
99
|
+
});
|
|
100
|
+
return () => {
|
|
101
|
+
return _c$2() ? createComponent(ThemeSection, {
|
|
102
|
+
title: "Dark theme",
|
|
103
|
+
description: "Shown when the appearance resolves to dark.",
|
|
104
|
+
get themes() {
|
|
105
|
+
return themesFor("dark");
|
|
106
|
+
},
|
|
107
|
+
get selectedId() {
|
|
108
|
+
return selection().darkThemeId;
|
|
109
|
+
},
|
|
110
|
+
onThemeSelect: (theme) => setSelection({ darkThemeId: theme.id })
|
|
111
|
+
}) : void 0;
|
|
112
|
+
};
|
|
113
|
+
})(), _el$6);
|
|
114
|
+
insert(_el$7, createComponent(Heading, {
|
|
115
|
+
as: "h2",
|
|
116
|
+
size: "card",
|
|
117
|
+
children: "Accent"
|
|
118
|
+
}), _el$8);
|
|
119
|
+
insert(_el$6, createComponent(RadioGroup, {
|
|
120
|
+
get value() {
|
|
121
|
+
return selectedAccent();
|
|
122
|
+
},
|
|
123
|
+
onValueChange: (accent) => {
|
|
124
|
+
if (accent !== null) setSelection({ accent });
|
|
125
|
+
},
|
|
126
|
+
"aria-label": "Accent",
|
|
127
|
+
class: "flex flex-col items-start gap-3",
|
|
128
|
+
get children() {
|
|
129
|
+
return createComponent(AccentSwatchGroups, {
|
|
130
|
+
get accentOptions() {
|
|
131
|
+
return [...accentPresets, ...themeAccents().filter((option) => !isPresetAccentId(option.id))];
|
|
132
|
+
},
|
|
133
|
+
get resolvedAppearance() {
|
|
134
|
+
return resolvedAppearance();
|
|
135
|
+
},
|
|
136
|
+
themeDefaultColor: "var(--primary)"
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}), null);
|
|
140
|
+
insert(_el$10, createComponent(Heading, {
|
|
141
|
+
as: "h2",
|
|
142
|
+
size: "card",
|
|
143
|
+
children: "Fonts"
|
|
144
|
+
}), _el$11);
|
|
145
|
+
insert(_el$9, createComponent(AppearanceFontSettingsGroup, {
|
|
146
|
+
get settings() {
|
|
147
|
+
return selection().fonts ?? DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS;
|
|
148
|
+
},
|
|
149
|
+
onChange: (fonts) => setSelection({ fonts })
|
|
150
|
+
}), null);
|
|
151
|
+
return _el$;
|
|
139
152
|
}
|
|
140
153
|
function ThemeSection(props) {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
var _el$12 = _tmpl$2();
|
|
155
|
+
var _el$13 = _el$12.firstChild;
|
|
156
|
+
var _el$14 = _el$13.firstChild;
|
|
157
|
+
insert(_el$13, createComponent(Heading, {
|
|
158
|
+
as: "h2",
|
|
159
|
+
size: "card",
|
|
160
|
+
get children() {
|
|
161
|
+
return props.title;
|
|
162
|
+
}
|
|
163
|
+
}), _el$14);
|
|
164
|
+
insert(_el$14, () => {
|
|
165
|
+
return props.description;
|
|
166
|
+
});
|
|
167
|
+
insert(_el$12, createComponent(ThemePicker, {
|
|
168
|
+
get themes() {
|
|
169
|
+
return props.themes;
|
|
170
|
+
},
|
|
171
|
+
get selectedId() {
|
|
172
|
+
return props.selectedId;
|
|
173
|
+
},
|
|
174
|
+
get onThemeSelect() {
|
|
175
|
+
return props.onThemeSelect;
|
|
176
|
+
}
|
|
177
|
+
}), null);
|
|
178
|
+
return _el$12;
|
|
164
179
|
}
|
|
165
180
|
export { AppearancePanel };
|
|
166
181
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance-panel.js","names":["Show","onMount","splitProps","RadioGroup","Radio","accentPresets","isPresetAccentId","DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS","THEME_DEFAULT_ID","cn","AccentSwatchGroups","AppearanceFontSettingsGroup","RadioGroupItem","ThemePicker","useTheme","Heading","AppearancePanel","props","local","rest","context","selection","setSelection","resolvedAppearance","themeAccents","loadCatalogue","themesFor","appearance","themes","filter","variant","selectedAccent","accent","some","option","id","_el$","_tmpl$","_el$2","firstChild","_el$3","_el$4","_el$5","nextSibling","_el$6","_el$7","_el$8","_el$9","_el$0","_$spread","_$mergeProps","class","_$insert","_$createComponent","as","size","children","value","onChange","label","description","when","ThemeSection","title","selectedId","lightThemeId","onThemeSelect","theme","darkThemeId","orientation","accentOptions","themeDefaultColor","settings","fonts","_el$1","_tmpl$2","_el$10","_el$11"],"sources":["../../../src/components/theme/appearance-panel.tsx"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { Show, onMount, splitProps } from 'solid-js'\nimport { RadioGroup as Radio } from '@kobalte/core/radio-group'\nimport { accentPresets, isPresetAccentId } from '#lib/accent-presets'\nimport { DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS } from '#lib/appearance-font-settings'\nimport { THEME_DEFAULT_ID } from '#lib/theme-defaults'\nimport type { ThemeAppearance, ThemeVariant } from '#lib/theme-types'\nimport { cn } from '#lib/utils'\n// Direct modules, not the appearance-editor barrel, which would load the whole\n// editor, its sheet and its switch into every theme import (lint allows these two).\nimport { AccentSwatchGroups } from '../composites/appearance-editor/accent-swatch-groups'\nimport { AppearanceFontSettingsGroup } from '../composites/appearance-editor/font-settings-group'\nimport { RadioGroup, RadioGroupItem } from '../ui/radio-group'\nimport { ThemePicker } from './theme-picker'\nimport { useTheme } from './theme-context'\nimport { Heading } from '../ui/typography'\n\n/**\n * AppearancePanel.\n *\n * The appearance page, as a component rather than as a screen each application\n * draws for itself. Two applications that both let a user choose a theme should\n * offer the *same* choices in the *same* arrangement, otherwise \"Adea\" and\n * \"Cortana\" are two products that happen to share a component library, which is\n * the opposite of what this system is for.\n *\n * Four axes, in the order a user thinks about them:\n *\n * 1. **Appearance**: light, dark, or follow the system.\n * 2. **Themes**: one for each appearance. Both are shown at once, because the\n * choice is per-appearance and hiding the other half makes it feel like one\n * setting that keeps changing.\n * 3. **Accent**: adea's presets, then the accents the selected theme pair\n * carries itself, layered on whichever theme is active.\n * 4. **Fonts**: separate families and sizes for interface, content and code.\n *\n * The panel reads and writes the provider's preference and keeps no state of its\n * own, so it cannot disagree with what is applied. Its themes are the provider's, so\n * under the lazy provider it asks for the catalogue when it mounts and lists the rest\n * when it arrives.\n */\nexport type AppearancePanelProps = ComponentProps<'div'>\n\nexport function AppearancePanel(props: AppearancePanelProps) {\n const [local, rest] = splitProps(props, ['class'])\n const context = useTheme()\n const { selection, setSelection, resolvedAppearance, themeAccents } = context\n onMount(() => void context.loadCatalogue?.())\n const themesFor = (appearance: ThemeAppearance) =>\n context.themes.filter((variant) => variant.appearance === appearance)\n const selectedAccent = () => {\n const accent = selection().accent\n return accent === THEME_DEFAULT_ID ||\n isPresetAccentId(accent) ||\n themeAccents().some((option) => option.id === accent)\n ? accent\n : THEME_DEFAULT_ID\n }\n\n return (\n <div data-slot=\"appearance-panel\" class={cn('flex flex-col gap-8', local.class)} {...rest}>\n {/* --- 1. Appearance ------------------------------------------------- */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Appearance\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Follow the system, or pin one. Each appearance keeps its own theme.\n </p>\n </header>\n <RadioGroup\n value={selection().appearance}\n onChange={(value) => setSelection({ appearance: value as 'light' | 'dark' | 'system' })}\n aria-label=\"Appearance\"\n >\n <RadioGroupItem value=\"light\" label=\"Light\" description=\"Always the light theme.\" />\n <RadioGroupItem value=\"dark\" label=\"Dark\" description=\"Always the dark theme.\" />\n <RadioGroupItem\n value=\"system\"\n label=\"Match the system\"\n description={`Currently resolving to ${resolvedAppearance()}.`}\n />\n </RadioGroup>\n </section>\n\n {/* --- 2. Themes ------------------------------------------------------ */}\n <Show when={resolvedAppearance() === 'light'}>\n <ThemeSection\n title=\"Light theme\"\n description=\"Shown when the appearance resolves to light.\"\n themes={themesFor('light')}\n selectedId={selection().lightThemeId}\n onThemeSelect={(theme) => setSelection({ lightThemeId: theme.id })}\n />\n </Show>\n <Show when={resolvedAppearance() === 'dark'}>\n <ThemeSection\n title=\"Dark theme\"\n description=\"Shown when the appearance resolves to dark.\"\n themes={themesFor('dark')}\n selectedId={selection().darkThemeId}\n onThemeSelect={(theme) => setSelection({ darkThemeId: theme.id })}\n />\n </Show>\n\n {/* --- 3. Accent ------------------------------------------------------ */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Accent\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Colours the interactive roles — the primary button, the focus ring, a selected row — on\n top of the theme above — one of the presets, or a colour the theme carries itself. Every\n option is measured against the surface it lands on, so none of them can make a label\n unreadable.\n </p>\n </header>\n <Radio\n value={selectedAccent()}\n onChange={(accent) => setSelection({ accent })}\n orientation=\"horizontal\"\n aria-label=\"Accent\"\n class=\"flex flex-col items-start gap-3\"\n >\n <AccentSwatchGroups\n // The presets, then the accents the selected theme pair carries: the\n // selection already accepts those ids, so the panel must offer them.\n accentOptions={[\n ...accentPresets,\n ...themeAccents().filter((option) => !isPresetAccentId(option.id)),\n ]}\n resolvedAppearance={resolvedAppearance()}\n themeDefaultColor=\"var(--primary)\"\n />\n </Radio>\n </section>\n\n {/* --- 4. Fonts ------------------------------------------------------- */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Fonts\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Interface, reading and code fonts.\n </p>\n </header>\n <AppearanceFontSettingsGroup\n settings={selection().fonts ?? DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS}\n onChange={(fonts) => setSelection({ fonts })}\n />\n </section>\n </div>\n )\n}\n\nfunction ThemeSection(props: {\n title: string\n description: string\n themes: readonly ThemeVariant[]\n selectedId: string\n onThemeSelect: (theme: ThemeVariant) => void\n}) {\n return (\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n {props.title}\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">{props.description}</p>\n </header>\n <ThemePicker\n themes={props.themes}\n selectedId={props.selectedId}\n onThemeSelect={props.onThemeSelect}\n />\n </section>\n )\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"appearance-panel.js","names":["<p class=\"max-w-prose text-sm text-muted-foreground\">\n Follow the system, or pin one. Each appearance keeps its own theme.\n </p>","<p class=\"max-w-prose text-sm text-muted-foreground\">\n Colours the interactive roles — the primary button, the focus ring, a selected row — on\n top of the theme above — one of the presets, or a colour the theme carries itself. Every\n option is measured against the surface it lands on, so none of them can make a label\n unreadable.\n </p>","<p class=\"max-w-prose text-sm text-muted-foreground\">\n Interface, reading and code fonts.\n </p>","<Heading as=\"h2\" size=\"card\">\n Appearance\n </Heading>","as=\"h2\"","size=\"card\"","<header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Appearance\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Follow the system, or pin one. Each appearance keeps its own theme.\n </p>\n </header>","<RadioGroup\n value={selection().appearance}\n onChange={(value) => setSelection({ appearance: value as 'light' | 'dark' | 'system' })}\n aria-label=\"Appearance\"\n >\n <RadioGroupItem value=\"light\" label=\"Light\" description=\"Always the light theme.\" />\n <RadioGroupItem value=\"dark\" label=\"Dark\" description=\"Always the dark theme.\" />\n <RadioGroupItem\n value=\"system\"\n label=\"Match the system\"\n description={`Currently resolving to ${resolvedAppearance()}.`}\n />\n </RadioGroup>","onChange={(value) => setSelection({ appearance: value as 'light' | 'dark' | 'system' })}","<RadioGroupItem value=\"light\" label=\"Light\" description=\"Always the light theme.\" />","value=\"light\"","label=\"Light\"","description=\"Always the light theme.\"","<RadioGroupItem value=\"dark\" label=\"Dark\" description=\"Always the dark theme.\" />","value=\"dark\"","label=\"Dark\"","description=\"Always the dark theme.\"","<RadioGroupItem\n value=\"system\"\n label=\"Match the system\"\n description={`Currently resolving to ${resolvedAppearance()}.`}\n />","value=\"system\"","label=\"Match the system\"","<ThemeSection\n title=\"Light theme\"\n description=\"Shown when the appearance resolves to light.\"\n themes={themesFor('light')}\n selectedId={selection().lightThemeId}\n onThemeSelect={(theme) => setSelection({ lightThemeId: theme.id })}\n />","title=\"Light theme\"","description=\"Shown when the appearance resolves to light.\"","onThemeSelect={(theme) => setSelection({ lightThemeId: theme.id })}","<div data-slot=\"appearance-panel\" class={cn('flex flex-col gap-8', local.class)} {...rest}>\n {/* --- 1. Appearance ------------------------------------------------- */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Appearance\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Follow the system, or pin one. Each appearance keeps its own theme.\n </p>\n </header>\n <RadioGroup\n value={selection().appearance}\n onChange={(value) => setSelection({ appearance: value as 'light' | 'dark' | 'system' })}\n aria-label=\"Appearance\"\n >\n <RadioGroupItem value=\"light\" label=\"Light\" description=\"Always the light theme.\" />\n <RadioGroupItem value=\"dark\" label=\"Dark\" description=\"Always the dark theme.\" />\n <RadioGroupItem\n value=\"system\"\n label=\"Match the system\"\n description={`Currently resolving to ${resolvedAppearance()}.`}\n />\n </RadioGroup>\n </section>\n\n {/* --- 2. Themes ------------------------------------------------------ */}\n <Show when={resolvedAppearance() === 'light'}>\n <ThemeSection\n title=\"Light theme\"\n description=\"Shown when the appearance resolves to light.\"\n themes={themesFor('light')}\n selectedId={selection().lightThemeId}\n onThemeSelect={(theme) => setSelection({ lightThemeId: theme.id })}\n />\n </Show>\n <Show when={resolvedAppearance() === 'dark'}>\n <ThemeSection\n title=\"Dark theme\"\n description=\"Shown when the appearance resolves to dark.\"\n themes={themesFor('dark')}\n selectedId={selection().darkThemeId}\n onThemeSelect={(theme) => setSelection({ darkThemeId: theme.id })}\n />\n </Show>\n\n {/* --- 3. Accent ------------------------------------------------------ */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Accent\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Colours the interactive roles — the primary button, the focus ring, a selected row — on\n top of the theme above — one of the presets, or a colour the theme carries itself. Every\n option is measured against the surface it lands on, so none of them can make a label\n unreadable.\n </p>\n </header>\n <SdkRadioGroup\n value={selectedAccent()}\n onValueChange={(accent) => {\n if (accent !== null) setSelection({ accent })\n }}\n aria-label=\"Accent\"\n class=\"flex flex-col items-start gap-3\"\n >\n <AccentSwatchGroups\n // The presets, then the accents the selected theme pair carries: the\n // selection already accepts those ids, so the panel must offer them.\n accentOptions={[\n ...accentPresets,\n ...themeAccents().filter((option) => !isPresetAccentId(option.id)),\n ]}\n resolvedAppearance={resolvedAppearance()}\n themeDefaultColor=\"var(--primary)\"\n />\n </SdkRadioGroup>\n </section>\n\n {/* --- 4. Fonts ------------------------------------------------------- */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Fonts\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Interface, reading and code fonts.\n </p>\n </header>\n <AppearanceFontSettingsGroup\n settings={selection().fonts ?? DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS}\n onChange={(fonts) => setSelection({ fonts })}\n />\n </section>\n </div>","<ThemeSection\n title=\"Dark theme\"\n description=\"Shown when the appearance resolves to dark.\"\n themes={themesFor('dark')}\n selectedId={selection().darkThemeId}\n onThemeSelect={(theme) => setSelection({ darkThemeId: theme.id })}\n />","title=\"Dark theme\"","description=\"Shown when the appearance resolves to dark.\"","onThemeSelect={(theme) => setSelection({ darkThemeId: theme.id })}","<Heading as=\"h2\" size=\"card\">\n Accent\n </Heading>","<header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Accent\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Colours the interactive roles — the primary button, the focus ring, a selected row — on\n top of the theme above — one of the presets, or a colour the theme carries itself. Every\n option is measured against the surface it lands on, so none of them can make a label\n unreadable.\n </p>\n </header>","<SdkRadioGroup\n value={selectedAccent()}\n onValueChange={(accent) => {\n if (accent !== null) setSelection({ accent })\n }}\n aria-label=\"Accent\"\n class=\"flex flex-col items-start gap-3\"\n >\n <AccentSwatchGroups\n // The presets, then the accents the selected theme pair carries: the\n // selection already accepts those ids, so the panel must offer them.\n accentOptions={[\n ...accentPresets,\n ...themeAccents().filter((option) => !isPresetAccentId(option.id)),\n ]}\n resolvedAppearance={resolvedAppearance()}\n themeDefaultColor=\"var(--primary)\"\n />\n </SdkRadioGroup>","onValueChange={(accent) => {\n if (accent !== null) setSelection({ accent })\n }}","class=\"flex flex-col items-start gap-3\"","<AccentSwatchGroups\n // The presets, then the accents the selected theme pair carries: the\n // selection already accepts those ids, so the panel must offer them.\n accentOptions={[\n ...accentPresets,\n ...themeAccents().filter((option) => !isPresetAccentId(option.id)),\n ]}\n resolvedAppearance={resolvedAppearance()}\n themeDefaultColor=\"var(--primary)\"\n />","themeDefaultColor=\"var(--primary)\"","<Heading as=\"h2\" size=\"card\">\n Fonts\n </Heading>","<header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Fonts\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Interface, reading and code fonts.\n </p>\n </header>","<AppearanceFontSettingsGroup\n settings={selection().fonts ?? DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS}\n onChange={(fonts) => setSelection({ fonts })}\n />","onChange={(fonts) => setSelection({ fonts })}","<Heading as=\"h2\" size=\"card\">\n {props.title}\n </Heading>","<header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n {props.title}\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">{props.description}</p>\n </header>","<ThemePicker\n themes={props.themes}\n selectedId={props.selectedId}\n onThemeSelect={props.onThemeSelect}\n />","<section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n {props.title}\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">{props.description}</p>\n </header>\n <ThemePicker\n themes={props.themes}\n selectedId={props.selectedId}\n onThemeSelect={props.onThemeSelect}\n />\n </section>"],"sources":["../../../src/components/theme/appearance-panel.tsx"],"sourcesContent":["import type { ComponentProps } from '@solidjs/web'\nimport { Show, onSettled, omit } from 'solid-js'\nimport { RadioGroup as SdkRadioGroup } from '@ui-sdk/solid/radio'\nimport { accentPresets, isPresetAccentId } from '#lib/accent-presets'\nimport { DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS } from '#lib/appearance-font-settings'\nimport { THEME_DEFAULT_ID } from '#lib/theme-defaults'\nimport type { ThemeAppearance, ThemeVariant } from '#lib/theme-types'\nimport { cn } from '#lib/utils'\n// Direct modules, not the appearance-editor barrel, which would load the whole\n// editor, its sheet and its switch into every theme import (lint allows these two).\nimport { AccentSwatchGroups } from '../composites/appearance-editor/accent-swatch-groups'\nimport { AppearanceFontSettingsGroup } from '../composites/appearance-editor/font-settings-group'\nimport { RadioGroup, RadioGroupItem } from '../ui/radio-group'\nimport { ThemePicker } from './theme-picker'\nimport { useTheme } from './theme-context'\nimport { Heading } from '../ui/typography'\n\n/**\n * AppearancePanel.\n *\n * The appearance page, as a component rather than as a screen each application\n * draws for itself. Two applications that both let a user choose a theme should\n * offer the *same* choices in the *same* arrangement, otherwise \"Adea\" and\n * \"Cortana\" are two products that happen to share a component library, which is\n * the opposite of what this system is for.\n *\n * Four axes, in the order a user thinks about them:\n *\n * 1. **Appearance**: light, dark, or follow the system.\n * 2. **Themes**: one for each appearance. Both are shown at once, because the\n * choice is per-appearance and hiding the other half makes it feel like one\n * setting that keeps changing.\n * 3. **Accent**: adea's presets, then the accents the selected theme pair\n * carries itself, layered on whichever theme is active.\n * 4. **Fonts**: separate families and sizes for interface, content and code.\n *\n * The panel reads and writes the provider's preference and keeps no state of its\n * own, so it cannot disagree with what is applied. Its themes are the provider's, so\n * under the lazy provider it asks for the catalogue when it mounts and lists the rest\n * when it arrives.\n */\nexport type AppearancePanelProps = ComponentProps<'div'>\n\nexport function AppearancePanel(props: AppearancePanelProps) {\n const local = props\n const rest = omit(props, 'class')\n const context = useTheme()\n const { selection, setSelection, resolvedAppearance, themeAccents } = context\n onSettled(() => void context.loadCatalogue?.())\n const themesFor = (appearance: ThemeAppearance) =>\n context.themes.filter((variant) => variant.appearance === appearance)\n const selectedAccent = () => {\n const accent = selection().accent\n return accent === THEME_DEFAULT_ID ||\n isPresetAccentId(accent) ||\n themeAccents().some((option) => option.id === accent)\n ? accent\n : THEME_DEFAULT_ID\n }\n\n return (\n <div data-slot=\"appearance-panel\" class={cn('flex flex-col gap-8', local.class)} {...rest}>\n {/* --- 1. Appearance ------------------------------------------------- */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Appearance\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Follow the system, or pin one. Each appearance keeps its own theme.\n </p>\n </header>\n <RadioGroup\n value={selection().appearance}\n onChange={(value) => setSelection({ appearance: value as 'light' | 'dark' | 'system' })}\n aria-label=\"Appearance\"\n >\n <RadioGroupItem value=\"light\" label=\"Light\" description=\"Always the light theme.\" />\n <RadioGroupItem value=\"dark\" label=\"Dark\" description=\"Always the dark theme.\" />\n <RadioGroupItem\n value=\"system\"\n label=\"Match the system\"\n description={`Currently resolving to ${resolvedAppearance()}.`}\n />\n </RadioGroup>\n </section>\n\n {/* --- 2. Themes ------------------------------------------------------ */}\n <Show when={resolvedAppearance() === 'light'}>\n <ThemeSection\n title=\"Light theme\"\n description=\"Shown when the appearance resolves to light.\"\n themes={themesFor('light')}\n selectedId={selection().lightThemeId}\n onThemeSelect={(theme) => setSelection({ lightThemeId: theme.id })}\n />\n </Show>\n <Show when={resolvedAppearance() === 'dark'}>\n <ThemeSection\n title=\"Dark theme\"\n description=\"Shown when the appearance resolves to dark.\"\n themes={themesFor('dark')}\n selectedId={selection().darkThemeId}\n onThemeSelect={(theme) => setSelection({ darkThemeId: theme.id })}\n />\n </Show>\n\n {/* --- 3. Accent ------------------------------------------------------ */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Accent\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Colours the interactive roles — the primary button, the focus ring, a selected row — on\n top of the theme above — one of the presets, or a colour the theme carries itself. Every\n option is measured against the surface it lands on, so none of them can make a label\n unreadable.\n </p>\n </header>\n <SdkRadioGroup\n value={selectedAccent()}\n onValueChange={(accent) => {\n if (accent !== null) setSelection({ accent })\n }}\n aria-label=\"Accent\"\n class=\"flex flex-col items-start gap-3\"\n >\n <AccentSwatchGroups\n // The presets, then the accents the selected theme pair carries: the\n // selection already accepts those ids, so the panel must offer them.\n accentOptions={[\n ...accentPresets,\n ...themeAccents().filter((option) => !isPresetAccentId(option.id)),\n ]}\n resolvedAppearance={resolvedAppearance()}\n themeDefaultColor=\"var(--primary)\"\n />\n </SdkRadioGroup>\n </section>\n\n {/* --- 4. Fonts ------------------------------------------------------- */}\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n Fonts\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">\n Interface, reading and code fonts.\n </p>\n </header>\n <AppearanceFontSettingsGroup\n settings={selection().fonts ?? DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS}\n onChange={(fonts) => setSelection({ fonts })}\n />\n </section>\n </div>\n )\n}\n\nfunction ThemeSection(props: {\n title: string\n description: string\n themes: readonly ThemeVariant[]\n selectedId: string\n onThemeSelect: (theme: ThemeVariant) => void\n}) {\n return (\n <section class=\"flex flex-col gap-3\">\n <header class=\"flex flex-col gap-0.5\">\n <Heading as=\"h2\" size=\"card\">\n {props.title}\n </Heading>\n <p class=\"max-w-prose text-sm text-muted-foreground\">{props.description}</p>\n </header>\n <ThemePicker\n themes={props.themes}\n selectedId={props.selectedId}\n onThemeSelect={props.onThemeSelect}\n />\n </section>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA2CA,SAAgB,gBAAgB,OAA6B;CAC3D,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,OAAO;CAChC,MAAM,UAAU,SAAS;CACzB,MAAM,EAAE,WAAW,cAAc,oBAAoB,iBAAiB;CACtE,gBAAgB,KAAK,QAAQ,gBAAgB,CAAC;CAC9C,MAAM,aAAa,eACjB,QAAQ,OAAO,QAAQ,YAAY,QAAQ,eAAe,UAAU;CACtE,MAAM,uBAAuB;EAC3B,MAAM,SAAS,UAAU,CAAC,CAAC;EAC3B,OAAO,WAAA,WACL,iBAAiB,MAAM,KACvB,aAAa,CAAC,CAAC,MAAM,WAAW,OAAO,OAAO,MAAM,IAClD,SACA;CACN;CAGE,IAAA,OAAA,OA+FK;CA7FH,IAAA,QAAA,KAAA;CACE,IAAA,QAAA,MAAA;CAIEA,IAAAA,QAAAA,MAAAA;CAPN,IAAA,QAAA,MAAA;CA+CE,IAAA,QAAA,MAAA;CACE,IAAA,QAAA,MAAA;CAIEC,IAAAA,QAAAA,MAAAA;CA6BJ,IAAA,QAAA,MAAA;CACE,IAAA,SAAA,MAAA;CAIEC,IAAAA,SAAAA,OAAAA;CAtF2E,OAAA,MAAA,CAAA;EAA5E,aAAA;EAA6B,IAAA,UAAA;GAAO,OAAA,GAAG,uBAAuB,MAAM,KAAK;EAAC;CAAU,GAAJ,IAAA,GAAA,IAAA;CAGjF,OAAA,OACEC,gBAAAA,SAAAA;EAASC,IAAG;EAAKC,MAAK;EAAtBF,UAA6B;CAEpB,CAAA,GAHXG,KAOQ;CARV,OAAA,OASEC,gBAAAA,cAAAA;EACE,IAAA,QAAA;GAAO,OAAA,UAAU,CAAC,CAAC;EAAU;EAC7BC,WAAW,UAAU,aAAa,EAAE,YAAY,MAAqC,CAAC;EACtF,cAAW;EAHb,IAAA,WAAA;GAIC,OAAA;IACCC,gBAAAA,gBAAAA;KAAgBC,OAAM;KAAQC,OAAM;KAAQC,aAAY;IAA2B,CAAA;IACnFC,gBAAAA,gBAAAA;KAAgBC,OAAM;KAAOC,OAAM;KAAOC,aAAY;IAA0B,CAAA;IAChFC,gBAAAA,gBAAAA;KACEC,OAAM;KACNC,OAAM;KACN,IAAA,cAAA;MAAa,OAAA,0BAA0B,mBAAmB,EAAE;KAAE;IAC/D,CAAA;GANF;EAOW;CArBd,CAAA,GAAA,IAsBS;CAxBX,OAAA,aA2BE;;GAAY,OAAA,mBAAmB,MAAM;EAQ/B,CAAA;EARN,aAAA;GAQM,OAAA,IAAA,IAPJC,gBAAAA,cAAAA;IACEC,OAAM;IACNC,aAAY;IACZ,IAAA,SAAA;KAAQ,OAAA,UAAU,OAAO;IAAC;IAC1B,IAAA,aAAA;KAAY,OAAA,UAAU,CAAC,CAAC;IAAY;IACpCC,gBAAgB,UAAU,aAAa,EAAE,cAAc,MAAM,GAAG,CAAC;GAClE,CAAA,IAPH,KAAA;EAQM;CAAC,EAAA,CAAD,GAnCRC,KA+FK;CA/FL,OAAA,aAoCE;;GAAY,OAAA,mBAAmB,MAAM;EAQ/B,CAAA;EARN,aAAA;GAQM,OAAA,KAAA,IAPJC,gBAAAA,cAAAA;IACEC,OAAM;IACNC,aAAY;IACZ,IAAA,SAAA;KAAQ,OAAA,UAAU,MAAM;IAAC;IACzB,IAAA,aAAA;KAAY,OAAA,UAAU,CAAC,CAAC;IAAW;IACnCC,gBAAgB,UAAU,aAAa,EAAE,aAAa,MAAM,GAAG,CAAC;GACjE,CAAA,IAPH,KAAA;EAQM;CAAC,EAAA,CAAD,GA5CRJ,KA+FK;CA/CD,OAAA,OACEK,gBAAAA,SAAAA;EAASzB,IAAG;EAAKC,MAAK;EAAtBwB,UAA6B;CAEpB,CAAA,GAHXC,KAUQ;CAXV,OAAA,OAYEC,gBAAAA,YAAAA;EACE,IAAA,QAAA;GAAO,OAAA,eAAe;EAAC;EACvBC,gBAAgB,WAAW;GACzB,IAAI,WAAW,MAAM,aAAa,EAAE,OAAO,CAAC;EAC9C;EACA,cAAW;EACXC,OAAM;EANR,IAAA,WAAA;GAQEC,OAAAA,gBAAAA,oBAAAA;IAGE,IAAA,gBAAA;KAAe,OAAA,CACb,GAAG,eACH,GAAG,aAAa,CAAC,CAAC,QAAQ,WAAW,CAAC,iBAAiB,OAAO,EAAE,CAAC,CACnE;IAAC;IACD,IAAA,qBAAA;KAAoB,OAAA,mBAAmB;IAAC;IACxCC,mBAAkB;GACnB,CAAA;EACY;CA9BjB,CAAA,GAAA,IA+BS;CAIP,OAAA,QACEC,gBAAAA,SAAAA;EAAShC,IAAG;EAAKC,MAAK;EAAtB+B,UAA6B;CAEpB,CAAA,GAHXC,MAOQ;CARV,OAAA,OASEC,gBAAAA,6BAAAA;EACE,IAAA,WAAA;GAAU,OAAA,UAAU,CAAC,CAAC,SAAS;EAAuC;EACtEC,WAAW,UAAU,aAAa,EAAE,MAAM,CAAC;CAC5C,CAAA,GAZH,IAaS;CA/Fb,OACEf;AAiGJ;AAEA,SAAS,aAAa,OAMnB;CAEC,IAAA,SAAA,QAYS;CAXP,IAAA,SAAA,OAAA;CAIE,IAAA,SAAA,OAAA;CAJF,OAAA,QACEgB,gBAAAA,SAAAA;EAASpC,IAAG;EAAKC,MAAK;EAAtB,IAAA,WAAA;GACG,OAAA,MAAM;EACA;CAHXoC,CAAAA,GAAAA,MAKQ;CADN,OAAA,cAAqD;EAAC,OAAA,MAAM;CAAW,CAAI;CAL/E,OAAA,QAOEC,gBAAAA,aAAAA;EACE,IAAA,SAAA;GAAQ,OAAA,MAAM;EAAM;EACpB,IAAA,aAAA;GAAY,OAAA,MAAM;EAAU;EAC5B,IAAA,gBAAA;GAAe,OAAA,MAAM;EAAa;CACnC,CAAA,GAXH,IAYS;CAbX,OACEC;AAcJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/components/theme/lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/components/theme/lazy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEnF;;;;;;GAMG;AACH,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAEpE"}
|
|
@@ -7,7 +7,8 @@ import { themeScript } from "./theme-script.js";
|
|
|
7
7
|
import { ThemeProviderWith } from "./theme-provider-value.js";
|
|
8
8
|
import { ThemeToggle } from "./theme-toggle.js";
|
|
9
9
|
import { ThemeModeToggle } from "./theme-mode-toggle.js";
|
|
10
|
-
import
|
|
10
|
+
import "@solidjs/web";
|
|
11
|
+
import { createComponent as createComponent$1, merge } from "solid-js";
|
|
11
12
|
// src/components/theme/lazy.ts
|
|
12
13
|
/**
|
|
13
14
|
* ThemeProvider, with the theme catalogue out of the start-up path.
|
|
@@ -35,7 +36,7 @@ import { createComponent, mergeProps } from "solid-js";
|
|
|
35
36
|
* `AppearancePanel` does.
|
|
36
37
|
*/
|
|
37
38
|
function ThemeProvider(props) {
|
|
38
|
-
return createComponent(ThemeProviderWith,
|
|
39
|
+
return createComponent$1(ThemeProviderWith, merge(props, { catalogue: createLazyCatalogue() }));
|
|
39
40
|
}
|
|
40
41
|
export { ThemeModeToggle, ThemeProvider, ThemeToggle, createVersionedPersistence, defaultThemeSelection, safeScriptStringLiteral as inlineScriptLiteral, loadThemeCatalogue, localStoragePersistence, resolvedDensity, themeScript, useOptionalTheme, useTheme };
|
|
41
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.js","names":[],"sources":["../../../src/components/theme/lazy.ts"],"sourcesContent":["import { createComponent,
|
|
1
|
+
{"version":3,"file":"lazy.js","names":["createComponent"],"sources":["../../../src/components/theme/lazy.ts"],"sourcesContent":["import { createComponent, merge } from 'solid-js'\nimport { type JSX } from '@solidjs/web'\nimport { createLazyCatalogue } from './theme-catalogue-source'\nimport { ThemeProviderWith, type ThemeProviderProps } from './theme-provider-value'\n\n/**\n * The theme provider with the catalogue out of the start-up path.\n *\n * Everything here is free of the 34-theme catalogue: `import` this entry instead of\n * `@adea-ai/ui/components/theme` in a host that paints its theme from a stylesheet.\n * See {@link ThemeProvider} for the rules and the package README for the setup.\n */\nexport * from './theme-api'\nexport { loadThemeCatalogue } from './theme-catalogue-source'\nexport type { ThemeCatalogueSource } from './theme-provider-value'\nexport { ThemeToggle, type ThemeToggleProps } from './theme-toggle'\nexport { ThemeModeToggle, type ThemeModeToggleProps } from './theme-mode-toggle'\n\n/**\n * ThemeProvider, with the theme catalogue out of the start-up path.\n *\n * Same props, same context and same behaviour as `ThemeProvider` for everything the\n * shipped default pair covers: the default light and dark themes, a host's own\n * `themes`, every accent preset and custom colour, the surface axis, fonts and\n * density. Only the 32 other catalogue themes are not in the start-up chunk. The first\n * time the selection (or a preview) names one, or a theme-derived `ansi-*` accent over\n * such a pair, this provider imports the catalogue in a chunk of its own:\n *\n * - until it arrives the document keeps what is on it (set before first paint by\n * `themeScript`, painted by the stylesheet under `palette=\"stylesheet\"`), and\n * `variant()` is the default of the appearance;\n * - when it arrives the provider re-resolves and paints the stored theme, and\n * `useTheme().catalogueReady()` turns true;\n * - a preview of a theme that has not loaded starts the load and shows when it ends.\n *\n * Pair it with `palette=\"stylesheet\"` and `themeScript`: inline palettes of catalogue\n * themes need the catalogue to compute, so under the default `inline` palette every\n * stored theme but the defaults waits for the import.\n *\n * `useTheme().themes` and `allThemes()` list only the default pair until\n * `catalogueReady()`; a picker calls `useTheme().loadCatalogue()` when it mounts, as\n * `AppearancePanel` does.\n */\nexport function ThemeProvider(props: ThemeProviderProps): JSX.Element {\n return createComponent(ThemeProviderWith, merge(props, { catalogue: createLazyCatalogue() }))\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,SAAgB,cAAc,OAAwC;CACpE,OAAOA,kBAAgB,mBAAmB,MAAM,OAAO,EAAE,WAAW,oBAAoB,EAAE,CAAC,CAAC;AAC9F"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Context } from 'solid-js';
|
|
2
2
|
import type { ThemeContextValue } from './theme-state';
|
|
3
|
-
export declare function themeContext(): Context<ThemeContextValue |
|
|
3
|
+
export declare function themeContext(): Context<ThemeContextValue | null>;
|
|
4
4
|
export declare function useTheme(): ThemeContextValue;
|
|
5
5
|
/**
|
|
6
6
|
* The theme context, or `undefined` outside a `ThemeProvider`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-context.d.ts","sourceRoot":"","sources":["../../../src/components/theme/theme-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,UAAU,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"theme-context.d.ts","sourceRoot":"","sources":["../../../src/components/theme/theme-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,UAAU,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAuBtD,wBAAgB,YAAY,IAAI,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAGhE;AAED,wBAAgB,QAAQ,IAAI,iBAAiB,CAI5C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,iBAAiB,GAAG,SAAS,CAEhE"}
|
|
@@ -18,7 +18,7 @@ import { createContext, useContext } from "solid-js";
|
|
|
18
18
|
var CONTEXT_KEY = Symbol.for("adea.ui.theme");
|
|
19
19
|
function themeContext() {
|
|
20
20
|
const host = globalThis;
|
|
21
|
-
return host[CONTEXT_KEY] ??= createContext();
|
|
21
|
+
return host[CONTEXT_KEY] ??= createContext(null);
|
|
22
22
|
}
|
|
23
23
|
function useTheme() {
|
|
24
24
|
const value = useContext(themeContext());
|
|
@@ -33,7 +33,7 @@ function useTheme() {
|
|
|
33
33
|
* than throw.
|
|
34
34
|
*/
|
|
35
35
|
function useOptionalTheme() {
|
|
36
|
-
return useContext(themeContext());
|
|
36
|
+
return useContext(themeContext()) ?? void 0;
|
|
37
37
|
}
|
|
38
38
|
export { themeContext, useOptionalTheme, useTheme };
|
|
39
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-context.js","names":[],"sources":["../../../src/components/theme/theme-context.ts"],"sourcesContent":["import { createContext, useContext, type Context } from 'solid-js'\nimport type { ThemeContextValue } from './theme-state'\n\n/**\n * Where the context object lives: on the global, under a registered symbol.\n *\n * A context is an object identity, and a bundle can legitimately load this module\n * twice, a dev graph where a relative import and a package subpath are distinct\n * module records, or two copies of the package at different versions. Each copy\n * would then call `createContext` and own its own object; a provider from one and a\n * `useOptionalTheme()` from the other would never meet, and the second would return\n * `undefined` as though no provider were mounted. `Symbol.for` is shared across\n * every copy in a realm, so they all find the one context the first created.\n *\n * Both copies must agree on its shape. The context value only ever grows, which is\n * why a newer provider under an older reader is safe and the reverse is a missing\n * member, not a mismatch.\n */\nconst CONTEXT_KEY = Symbol.for('adea.ui.theme')\n\ntype ContextHost = { [CONTEXT_KEY]?: Context<ThemeContextValue |
|
|
1
|
+
{"version":3,"file":"theme-context.js","names":[],"sources":["../../../src/components/theme/theme-context.ts"],"sourcesContent":["import { createContext, useContext, type Context } from 'solid-js'\nimport type { ThemeContextValue } from './theme-state'\n\n/**\n * Where the context object lives: on the global, under a registered symbol.\n *\n * A context is an object identity, and a bundle can legitimately load this module\n * twice, a dev graph where a relative import and a package subpath are distinct\n * module records, or two copies of the package at different versions. Each copy\n * would then call `createContext` and own its own object; a provider from one and a\n * `useOptionalTheme()` from the other would never meet, and the second would return\n * `undefined` as though no provider were mounted. `Symbol.for` is shared across\n * every copy in a realm, so they all find the one context the first created.\n *\n * Both copies must agree on its shape. The context value only ever grows, which is\n * why a newer provider under an older reader is safe and the reverse is a missing\n * member, not a mismatch.\n */\nconst CONTEXT_KEY = Symbol.for('adea.ui.theme')\n\ntype ContextHost = { [CONTEXT_KEY]?: Context<ThemeContextValue | null> }\n\n// `null` is \"no provider\": `useOptionalTheme` must be able to ask without the\n// throw a default-less context makes outside a provider.\nexport function themeContext(): Context<ThemeContextValue | null> {\n const host = globalThis as ContextHost\n return (host[CONTEXT_KEY] ??= createContext<ThemeContextValue | null>(null))\n}\n\nexport function useTheme(): ThemeContextValue {\n const value = useContext(themeContext())\n if (!value) throw new Error('useTheme must be called inside a <ThemeProvider>.')\n return value\n}\n\n/**\n * The theme context, or `undefined` outside a `ThemeProvider`.\n *\n * For a component that can run both ways, a shared control rendered in a harness,\n * a story, or a host that has not mounted a provider, and would rather degrade\n * than throw.\n */\nexport function useOptionalTheme(): ThemeContextValue | undefined {\n return useContext(themeContext()) ?? undefined\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,IAAM,cAAc,OAAO,IAAI,eAAe;AAM9C,SAAgB,eAAkD;CAChE,MAAM,OAAO;CACb,OAAQ,KAAK,iBAAiB,cAAwC,IAAI;AAC5E;AAEA,SAAgB,WAA8B;CAC5C,MAAM,QAAQ,WAAW,aAAa,CAAC;CACvC,IAAI,CAAC,OAAO,MAAM,IAAI,MAAM,mDAAmD;CAC/E,OAAO;AACT;;;;;;;;AASA,SAAgB,mBAAkD;CAChE,OAAO,WAAW,aAAa,CAAC,KAAK,KAAA;AACvC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentProps } from '
|
|
1
|
+
import type { ComponentProps } from '@solidjs/web';
|
|
2
2
|
import { ToggleGroup } from '../ui/toggle-group';
|
|
3
3
|
/** Controlled appearance selection for hosts that own their preference storage. */
|
|
4
4
|
export type ThemeModeToggleProps = Omit<ComponentProps<typeof ToggleGroup>, 'children' | 'value' | 'onChange' | 'multiple'> & {
|
|
@@ -6,5 +6,5 @@ export type ThemeModeToggleProps = Omit<ComponentProps<typeof ToggleGroup>, 'chi
|
|
|
6
6
|
onModeChange: (mode: 'light' | 'dark' | 'system') => void;
|
|
7
7
|
withLabels?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare function ThemeModeToggle(props: ThemeModeToggleProps): import("
|
|
9
|
+
export declare function ThemeModeToggle(props: ThemeModeToggleProps): import("@solidjs/web").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=theme-mode-toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-mode-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/theme/theme-mode-toggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"theme-mode-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/theme/theme-mode-toggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,OAAO,EAAE,WAAW,EAAmB,MAAM,oBAAoB,CAAA;AAejE,mFAAmF;AACnF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,cAAc,CAAC,OAAO,WAAW,CAAC,EAClC,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAC/C,GAAG;IACF,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;IACjC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,KAAK,IAAI,CAAA;IACzD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,sCAkC1D"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ToggleGroup, ToggleGroupItem } from "../ui/toggle-group/toggle-group.js";
|
|
2
2
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip/tooltip.js";
|
|
3
3
|
import { fastIcon } from "../../lib/fast-icon.js";
|
|
4
|
-
import { createComponent, insert, memo, mergeProps, template } from "
|
|
5
|
-
import { Monitor, Moon, Sun } from "lucide
|
|
6
|
-
import { For,
|
|
4
|
+
import { createComponent, insert, memo, mergeProps, template } from "@solidjs/web";
|
|
5
|
+
import { Monitor, Moon, Sun } from "@lucide/solid";
|
|
6
|
+
import { For, omit } from "solid-js";
|
|
7
7
|
// src/components/theme/theme-mode-toggle.tsx
|
|
8
|
-
var _tmpl$ =
|
|
8
|
+
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
9
9
|
var Monitor$1 = fastIcon(Monitor);
|
|
10
10
|
var Moon$1 = fastIcon(Moon);
|
|
11
11
|
var APPEARANCES = [
|
|
@@ -26,11 +26,8 @@ var APPEARANCES = [
|
|
|
26
26
|
}
|
|
27
27
|
];
|
|
28
28
|
function ThemeModeToggle(props) {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
"onModeChange",
|
|
32
|
-
"withLabels"
|
|
33
|
-
]);
|
|
29
|
+
const local = props;
|
|
30
|
+
const rest = omit(props, "mode", "onModeChange", "withLabels");
|
|
34
31
|
return createComponent(ToggleGroup, mergeProps(rest, {
|
|
35
32
|
attached: true,
|
|
36
33
|
multiple: false,
|
|
@@ -41,7 +38,7 @@ function ThemeModeToggle(props) {
|
|
|
41
38
|
const option = APPEARANCES.find((candidate) => candidate.value === value);
|
|
42
39
|
if (option) local.onModeChange(option.value);
|
|
43
40
|
},
|
|
44
|
-
get
|
|
41
|
+
get "aria-label"() {
|
|
45
42
|
return rest["aria-label"] ?? "Appearance";
|
|
46
43
|
},
|
|
47
44
|
get children() {
|
|
@@ -57,20 +54,28 @@ function ThemeModeToggle(props) {
|
|
|
57
54
|
get size() {
|
|
58
55
|
return local.withLabels ? "sm" : "icon-sm";
|
|
59
56
|
},
|
|
60
|
-
get
|
|
57
|
+
get "aria-label"() {
|
|
61
58
|
return appearance.label;
|
|
62
59
|
},
|
|
63
60
|
get children() {
|
|
64
|
-
return [createComponent(appearance.icon, { "aria-hidden": "true" }), memo(() =>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
return [createComponent(appearance.icon, { "aria-hidden": "true" }), memo(() => {
|
|
62
|
+
return memo(() => {
|
|
63
|
+
return !!local.withLabels;
|
|
64
|
+
})() ? (() => {
|
|
65
|
+
var _el$ = _tmpl$();
|
|
66
|
+
insert(_el$, () => {
|
|
67
|
+
return appearance.label;
|
|
68
|
+
});
|
|
69
|
+
return _el$;
|
|
70
|
+
})() : null;
|
|
71
|
+
})];
|
|
69
72
|
}
|
|
70
73
|
}), createComponent(TooltipContent, { get children() {
|
|
71
74
|
return [
|
|
72
75
|
"Use ",
|
|
73
|
-
memo(() =>
|
|
76
|
+
memo(() => {
|
|
77
|
+
return appearance.label.toLowerCase();
|
|
78
|
+
}),
|
|
74
79
|
" appearance"
|
|
75
80
|
];
|
|
76
81
|
} })];
|