@adea-ai/ui 0.159.9 → 0.160.1
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 +27 -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 +27 -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 +27 -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
|
@@ -3,50 +3,43 @@ import { Kbd, KbdGroup } from "../../ui/kbd/kbd.js";
|
|
|
3
3
|
import { Separator } from "../../ui/separator/separator.js";
|
|
4
4
|
import { SideRail, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem } from "../side-rail/side-rail.js";
|
|
5
5
|
import { fastIcon } from "../../../lib/fast-icon.js";
|
|
6
|
-
import { createComponent, insert, memo, mergeProps, template } from "
|
|
7
|
-
import { Search } from "lucide
|
|
8
|
-
import { For, Show, children,
|
|
6
|
+
import { createComponent, insert, memo, mergeProps, template } from "@solidjs/web";
|
|
7
|
+
import { Search } from "@lucide/solid";
|
|
8
|
+
import { For, Show, children, omit } from "solid-js";
|
|
9
9
|
// src/components/layout/shell-rail/shell-rail.tsx
|
|
10
|
-
var _tmpl$ =
|
|
11
|
-
var _tmpl$2 =
|
|
10
|
+
var _tmpl$ = /* @__PURE__ */ template(`<span data-slot=shell-rail-mark aria-hidden=true class="flex h-rail-item items-center justify-center">`);
|
|
11
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div data-slot=shell-rail-search class="flex min-w-0 flex-col gap-0.5"><!><!>`);
|
|
12
12
|
var Search$1 = fastIcon(Search);
|
|
13
13
|
function ShellRail(props) {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
"mark",
|
|
17
|
-
"onSearch",
|
|
18
|
-
"searchLabel",
|
|
19
|
-
"searchKeyshortcuts",
|
|
20
|
-
"searchKeys",
|
|
21
|
-
"children",
|
|
22
|
-
"footer",
|
|
23
|
-
"aria-label"
|
|
24
|
-
]);
|
|
14
|
+
const local = props;
|
|
15
|
+
const rest = omit(props, "class", "mark", "onSearch", "searchLabel", "searchKeyshortcuts", "searchKeys", "children", "footer", "aria-label");
|
|
25
16
|
const footer = children(() => local.footer);
|
|
26
17
|
const content = children(() => local.children);
|
|
27
18
|
return createComponent(SideRail, mergeProps({
|
|
28
19
|
collapsed: true,
|
|
29
20
|
"data-slot": "shell-rail",
|
|
30
|
-
get
|
|
21
|
+
get "aria-label"() {
|
|
31
22
|
return local["aria-label"] ?? "Global navigation";
|
|
32
23
|
},
|
|
33
|
-
get
|
|
24
|
+
get "class"() {
|
|
34
25
|
return cn("relative z-(--z-sticky) min-w-0", local.class);
|
|
35
26
|
}
|
|
36
27
|
}, rest, { get children() {
|
|
37
28
|
return [
|
|
38
29
|
createComponent(SideRailHeader, {
|
|
39
30
|
"data-slot": "shell-rail-header",
|
|
40
|
-
|
|
31
|
+
class: "h-auto justify-center px-0 pt-1",
|
|
41
32
|
get children() {
|
|
42
33
|
var _el$ = _tmpl$();
|
|
43
|
-
insert(_el$, () =>
|
|
34
|
+
insert(_el$, () => {
|
|
35
|
+
return local.mark;
|
|
36
|
+
});
|
|
44
37
|
return _el$;
|
|
45
38
|
}
|
|
46
39
|
}),
|
|
47
40
|
createComponent(SideRailContent, {
|
|
48
41
|
"data-slot": "shell-rail-content",
|
|
49
|
-
|
|
42
|
+
class: "pt-0.5",
|
|
50
43
|
get children() {
|
|
51
44
|
return [createComponent(Show, {
|
|
52
45
|
get when() {
|
|
@@ -55,13 +48,15 @@ function ShellRail(props) {
|
|
|
55
48
|
get children() {
|
|
56
49
|
return [(() => {
|
|
57
50
|
var _el$2 = _tmpl$2();
|
|
51
|
+
var _el$3 = _el$2.firstChild;
|
|
52
|
+
var _el$4 = _el$3.nextSibling;
|
|
58
53
|
insert(_el$2, createComponent(SideRailItem, {
|
|
59
54
|
as: "button",
|
|
60
55
|
type: "button",
|
|
61
56
|
get label() {
|
|
62
57
|
return local.searchLabel ?? "Search";
|
|
63
58
|
},
|
|
64
|
-
get
|
|
59
|
+
get "aria-label"() {
|
|
65
60
|
return local.searchLabel ?? "Search";
|
|
66
61
|
},
|
|
67
62
|
get keyshortcuts() {
|
|
@@ -74,15 +69,15 @@ function ShellRail(props) {
|
|
|
74
69
|
get children() {
|
|
75
70
|
return createComponent(Search$1, { "aria-hidden": "true" });
|
|
76
71
|
}
|
|
77
|
-
}),
|
|
78
|
-
insert(_el$2,
|
|
79
|
-
|
|
80
|
-
return local.searchKeys?.length;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return createComponent(KbdGroup, {
|
|
72
|
+
}), _el$3);
|
|
73
|
+
insert(_el$2, (() => {
|
|
74
|
+
var _c$ = memo(() => {
|
|
75
|
+
return !!local.searchKeys?.length;
|
|
76
|
+
});
|
|
77
|
+
return () => {
|
|
78
|
+
return _c$() ? createComponent(KbdGroup, {
|
|
84
79
|
size: "compact",
|
|
85
|
-
|
|
80
|
+
class: "justify-center pb-1",
|
|
86
81
|
"data-slot": "shell-rail-search-keys",
|
|
87
82
|
get children() {
|
|
88
83
|
return createComponent(For, {
|
|
@@ -95,13 +90,15 @@ function ShellRail(props) {
|
|
|
95
90
|
})
|
|
96
91
|
});
|
|
97
92
|
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}),
|
|
93
|
+
}) : void 0;
|
|
94
|
+
};
|
|
95
|
+
})(), _el$4);
|
|
101
96
|
return _el$2;
|
|
102
|
-
})(), createComponent(Separator, {
|
|
97
|
+
})(), createComponent(Separator, { class: "my-1" })];
|
|
103
98
|
}
|
|
104
|
-
}), memo(() =>
|
|
99
|
+
}), memo(() => {
|
|
100
|
+
return content();
|
|
101
|
+
})];
|
|
105
102
|
}
|
|
106
103
|
}),
|
|
107
104
|
createComponent(Show, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-rail.js","names":["Search","LucideSearch","children","For","Show","splitProps","cn","Kbd","KbdGroup","Separator","SideRail","SideRailContent","SideRailFooter","SideRailHeader","SideRailItem","fastIcon","mark","onSearch","searchLabel","searchKeyshortcuts","searchKeys","footer","ShellRail","props","local","rest","content","_$createComponent","_$mergeProps","collapsed","class","_el$","_tmpl$","_$insert","when","_el$2","_tmpl$2","as","type","label","keyshortcuts","shortcut","join","onClick","length","size","each","key","_$memo"],"sources":["../../../../src/components/layout/shell-rail/shell-rail.tsx"],"sourcesContent":["import { Search as LucideSearch } from 'lucide-solid'\nimport type { ComponentProps, JSX } from 'solid-js'\nimport { children, For, Show, splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { Kbd, KbdGroup } from '../../ui/kbd'\nimport { Separator } from '../../ui/separator'\nimport {\n SideRail,\n SideRailContent,\n SideRailFooter,\n SideRailHeader,\n SideRailItem,\n} from '../side-rail'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Search = fastIcon(LucideSearch)\n\n/**\n * ShellRail.\n *\n * The side rail both applications put at the window's leading edge: always the\n * collapsed icon column, with the app's mark at the top, a search entry point\n * under it, the app's destinations in the middle and a footer for account and\n * settings.\n *\n * The rail is never the thing the sidebar toggle collapses. The toggle belongs\n * to the sidebar beside the rail, which is why this component takes no\n * `collapsed` prop: a rail that could be expanded would be a second sidebar,\n * and the two apps would drift on which of them the toggle meant.\n *\n * Destinations are the caller's: pass `SideRailItem`s (or a `SideRailSection`)\n * as children. The mark, the search row and the footer are slots with the\n * geometry decided here, so the rail's rhythm cannot differ between apps.\n */\nexport type ShellRailProps = Omit<ComponentProps<'nav'>, 'children'> & {\n /** The app's mark. Decorative: the rail names itself through `aria-label`. */\n mark: JSX.Element\n /** Opens search. Omit to leave the search row out. */\n onSearch?: () => void\n /** The search row's accessible name. */\n searchLabel?: string\n /** The chord as it is announced, e.g. `Meta+K Control+K`. */\n searchKeyshortcuts?: string\n /** The cap labels drawn under the icon, in press order, e.g. `['⌘', 'K']`. */\n searchKeys?: readonly string[]\n /** Destinations between the search row and the footer. */\n children?: JSX.Element\n /** Account, plugins, settings. Pinned to the rail's foot. */\n footer?: JSX.Element\n}\n\nexport function ShellRail(props: ShellRailProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'mark',\n 'onSearch',\n 'searchLabel',\n 'searchKeyshortcuts',\n 'searchKeys',\n 'children',\n 'footer',\n 'aria-label',\n ])\n\n // Resolve the footer once: reading a JSX prop twice builds two copies.\n const footer = children(() => local.footer)\n const content = children(() => local.children)\n\n return (\n <SideRail\n collapsed\n data-slot=\"shell-rail\"\n aria-label={local['aria-label'] ?? 'Global navigation'}\n class={cn('relative z-(--z-sticky) min-w-0', local.class)}\n {...rest}\n >\n <SideRailHeader data-slot=\"shell-rail-header\" class=\"h-auto justify-center px-0 pt-1\">\n <span\n data-slot=\"shell-rail-mark\"\n aria-hidden=\"true\"\n class=\"flex h-rail-item items-center justify-center\"\n >\n {local.mark}\n </span>\n </SideRailHeader>\n\n <SideRailContent data-slot=\"shell-rail-content\" class=\"pt-0.5\">\n <Show when={local.onSearch}>\n <div data-slot=\"shell-rail-search\" class=\"flex min-w-0 flex-col gap-0.5\">\n <SideRailItem\n as=\"button\"\n type=\"button\"\n label={local.searchLabel ?? 'Search'}\n aria-label={local.searchLabel ?? 'Search'}\n keyshortcuts={local.searchKeyshortcuts}\n shortcut={local.searchKeys?.join('')}\n onClick={() => local.onSearch?.()}\n >\n <Search aria-hidden=\"true\" />\n </SideRailItem>\n {/* The chord is drawn as key caps under the icon: the one row that\n advertises a shortcut. The accessible chord stays on the row. */}\n <Show when={local.searchKeys?.length}>\n <KbdGroup\n size=\"compact\"\n class=\"justify-center pb-1\"\n data-slot=\"shell-rail-search-keys\"\n >\n <For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>\n </KbdGroup>\n </Show>\n </div>\n <Separator class=\"my-1\" />\n </Show>\n {content()}\n </SideRailContent>\n\n <Show when={footer()}>\n <SideRailFooter data-slot=\"shell-rail-footer\">{footer()}</SideRailFooter>\n </Show>\n </SideRail>\n )\n}\n"],"mappings":";;;;;;;;;;;AAgBA,IAAMA,WAASe,SAASd,MAAY;AAoCpC,SAAgBqB,UAAUC,OAAuB;CAC/C,MAAM,CAACC,OAAOC,QAAQpB,WAAWkB,OAAO;EACtC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAAY,CACb;CAGD,MAAMF,SAASnB,eAAesB,MAAMH,MAAM;CAC1C,MAAMK,UAAUxB,eAAesB,MAAMtB,QAAQ;CAE7C,OAAAyB,gBACGjB,UAAQkB,WAAA;EACPC,WAAS;EAAA,aAAA;EAAA,KAAA,gBAAA;GAAA,OAEGL,MAAM,iBAAiB;EAAmB;EAAA,KAAA,WAAA;GAAA,OAC/ClB,GAAG,mCAAmCkB,MAAMM,KAAK;EAAC;CAAA,GACrDL,MAAI,EAAA,IAAAvB,WAAA;EAAA,OAAA;GAAAyB,gBAEPd,gBAAc;IAAA,aAAA;IAAA,SAAA;IAAA,IAAAX,WAAA;KAAA,IAAA6B,OAAAC,OAAA;KAAAC,OAAAF,YAMVP,MAAMR,IAAI;KAAA,OAAAe;IAAA;GAAA,CAAA;GAAAJ,gBAIdhB,iBAAe;IAAA,aAAA;IAAA,SAAA;IAAA,IAAAT,WAAA;KAAA,OAAA,CAAAyB,gBACbvB,MAAI;MAAA,IAAC8B,OAAI;OAAA,OAAEV,MAAMP;MAAQ;MAAA,IAAAf,WAAA;OAAA,OAAA,QAAA;QAAA,IAAAiC,QAAAC,QAAA;QAAAH,OAAAE,OAAAR,gBAErBb,cAAY;SACXuB,IAAE;SACFC,MAAI;SAAA,IACJC,QAAK;UAAA,OAAEf,MAAMN,eAAe;SAAQ;SAAA,KAAA,gBAAA;UAAA,OACxBM,MAAMN,eAAe;SAAQ;SAAA,IACzCsB,eAAY;UAAA,OAAEhB,MAAML;SAAkB;SAAA,IACtCsB,WAAQ;UAAA,OAAEjB,MAAMJ,YAAYsB,KAAK,EAAE;SAAC;SACpCC,eAAenB,MAAMP,WAAW;SAAC,IAAAf,WAAA;UAAA,OAAAyB,gBAEhC3B,UAAM,EAAA,eAAA,OAAA,CAAA;SAAA;QAAA,CAAA,GAAA,IAAA;QAAAiC,OAAAE,OAAAR,gBAIRvB,MAAI;SAAA,IAAC8B,OAAI;UAAA,OAAEV,MAAMJ,YAAYwB;SAAM;SAAA,IAAA1C,WAAA;UAAA,OAAAyB,gBACjCnB,UAAQ;WACPqC,MAAI;WAAA,SAAA;WAAA,aAAA;WAAA,IAAA3C,WAAA;YAAA,OAAAyB,gBAIHxB,KAAG;aAAA,IAAC2C,OAAI;cAAA,OAAEtB,MAAMJ;aAAU;aAAAlB,WAAI6C,QAAGpB,gBAAMpB,KAAG;cAACsC,MAAI;cAAA3C,UAAY6C;aAAG,CAAA;YAAO,CAAA;WAAA;UAAA,CAAA;SAAA;QAAA,CAAA,GAAA,IAAA;QAAA,OAAAZ;OAAA,EAAA,CAAA,GAAAR,gBAI3ElB,WAAS,EAAA,SAAA,OAAA,CAAA,CAAA;MAAA;KAAA,CAAA,GAAAuC,WAEXtB,QAAQ,CAAC,CAAA;IAAA;GAAA,CAAA;GAAAC,gBAGXvB,MAAI;IAAA,IAAC8B,OAAI;KAAA,OAAEb,OAAO;IAAC;IAAA,IAAAnB,WAAA;KAAA,OAAAyB,gBACjBf,gBAAc;MAAA,aAAA;MAAA,IAAAV,WAAA;OAAA,OAAgCmB,OAAO;MAAC;KAAA,CAAA;IAAA;GAAA,CAAA;EAAA;CAAA,EAAA,CAAA,CAAA;AAI/D"}
|
|
1
|
+
{"version":3,"file":"shell-rail.js","names":["<SideRail\n collapsed\n data-slot=\"shell-rail\"\n aria-label={local['aria-label'] ?? 'Global navigation'}\n class={cn('relative z-(--z-sticky) min-w-0', local.class)}\n {...rest}\n >\n <SideRailHeader data-slot=\"shell-rail-header\" class=\"h-auto justify-center px-0 pt-1\">\n <span\n data-slot=\"shell-rail-mark\"\n aria-hidden=\"true\"\n class=\"flex h-rail-item items-center justify-center\"\n >\n {local.mark}\n </span>\n </SideRailHeader>\n\n <SideRailContent data-slot=\"shell-rail-content\" class=\"pt-0.5\">\n <Show when={local.onSearch}>\n <div data-slot=\"shell-rail-search\" class=\"flex min-w-0 flex-col gap-0.5\">\n <SideRailItem\n as=\"button\"\n type=\"button\"\n label={local.searchLabel ?? 'Search'}\n aria-label={local.searchLabel ?? 'Search'}\n keyshortcuts={local.searchKeyshortcuts}\n shortcut={local.searchKeys?.join('')}\n onClick={() => local.onSearch?.()}\n >\n <Search aria-hidden=\"true\" />\n </SideRailItem>\n {/* The chord is drawn as key caps under the icon: the one row that\n advertises a shortcut. The accessible chord stays on the row. */}\n <Show when={local.searchKeys?.length}>\n <KbdGroup\n size=\"compact\"\n class=\"justify-center pb-1\"\n data-slot=\"shell-rail-search-keys\"\n >\n <For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>\n </KbdGroup>\n </Show>\n </div>\n <Separator class=\"my-1\" />\n </Show>\n {content()}\n </SideRailContent>\n\n <Show when={footer()}>\n <SideRailFooter data-slot=\"shell-rail-footer\">{footer()}</SideRailFooter>\n </Show>\n </SideRail>","<SideRailHeader data-slot=\"shell-rail-header\" class=\"h-auto justify-center px-0 pt-1\">\n <span\n data-slot=\"shell-rail-mark\"\n aria-hidden=\"true\"\n class=\"flex h-rail-item items-center justify-center\"\n >\n {local.mark}\n </span>\n </SideRailHeader>","class=\"h-auto justify-center px-0 pt-1\"","<span\n data-slot=\"shell-rail-mark\"\n aria-hidden=\"true\"\n class=\"flex h-rail-item items-center justify-center\"\n >\n {local.mark}\n </span>","<SideRailContent data-slot=\"shell-rail-content\" class=\"pt-0.5\">\n <Show when={local.onSearch}>\n <div data-slot=\"shell-rail-search\" class=\"flex min-w-0 flex-col gap-0.5\">\n <SideRailItem\n as=\"button\"\n type=\"button\"\n label={local.searchLabel ?? 'Search'}\n aria-label={local.searchLabel ?? 'Search'}\n keyshortcuts={local.searchKeyshortcuts}\n shortcut={local.searchKeys?.join('')}\n onClick={() => local.onSearch?.()}\n >\n <Search aria-hidden=\"true\" />\n </SideRailItem>\n {/* The chord is drawn as key caps under the icon: the one row that\n advertises a shortcut. The accessible chord stays on the row. */}\n <Show when={local.searchKeys?.length}>\n <KbdGroup\n size=\"compact\"\n class=\"justify-center pb-1\"\n data-slot=\"shell-rail-search-keys\"\n >\n <For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>\n </KbdGroup>\n </Show>\n </div>\n <Separator class=\"my-1\" />\n </Show>\n {content()}\n </SideRailContent>","class=\"pt-0.5\"","<Show when={local.onSearch}>\n <div data-slot=\"shell-rail-search\" class=\"flex min-w-0 flex-col gap-0.5\">\n <SideRailItem\n as=\"button\"\n type=\"button\"\n label={local.searchLabel ?? 'Search'}\n aria-label={local.searchLabel ?? 'Search'}\n keyshortcuts={local.searchKeyshortcuts}\n shortcut={local.searchKeys?.join('')}\n onClick={() => local.onSearch?.()}\n >\n <Search aria-hidden=\"true\" />\n </SideRailItem>\n {/* The chord is drawn as key caps under the icon: the one row that\n advertises a shortcut. The accessible chord stays on the row. */}\n <Show when={local.searchKeys?.length}>\n <KbdGroup\n size=\"compact\"\n class=\"justify-center pb-1\"\n data-slot=\"shell-rail-search-keys\"\n >\n <For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>\n </KbdGroup>\n </Show>\n </div>\n <Separator class=\"my-1\" />\n </Show>","<SideRailItem\n as=\"button\"\n type=\"button\"\n label={local.searchLabel ?? 'Search'}\n aria-label={local.searchLabel ?? 'Search'}\n keyshortcuts={local.searchKeyshortcuts}\n shortcut={local.searchKeys?.join('')}\n onClick={() => local.onSearch?.()}\n >\n <Search aria-hidden=\"true\" />\n </SideRailItem>","as=\"button\"","type=\"button\"","onClick={() => local.onSearch?.()}","<Search aria-hidden=\"true\" />","<div data-slot=\"shell-rail-search\" class=\"flex min-w-0 flex-col gap-0.5\">\n <SideRailItem\n as=\"button\"\n type=\"button\"\n label={local.searchLabel ?? 'Search'}\n aria-label={local.searchLabel ?? 'Search'}\n keyshortcuts={local.searchKeyshortcuts}\n shortcut={local.searchKeys?.join('')}\n onClick={() => local.onSearch?.()}\n >\n <Search aria-hidden=\"true\" />\n </SideRailItem>\n {/* The chord is drawn as key caps under the icon: the one row that\n advertises a shortcut. The accessible chord stays on the row. */}\n <Show when={local.searchKeys?.length}>\n <KbdGroup\n size=\"compact\"\n class=\"justify-center pb-1\"\n data-slot=\"shell-rail-search-keys\"\n >\n <For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>\n </KbdGroup>\n </Show>\n </div>","<KbdGroup\n size=\"compact\"\n class=\"justify-center pb-1\"\n data-slot=\"shell-rail-search-keys\"\n >\n <For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>\n </KbdGroup>","size=\"compact\"","class=\"justify-center pb-1\"","<For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>","<Kbd size=\"compact\">{key}</Kbd>","<Separator class=\"my-1\" />","class=\"my-1\"","content()","<Show when={footer()}>\n <SideRailFooter data-slot=\"shell-rail-footer\">{footer()}</SideRailFooter>\n </Show>","<SideRailFooter data-slot=\"shell-rail-footer\">{footer()}</SideRailFooter>","Search","LucideSearch"],"sources":["../../../../src/components/layout/shell-rail/shell-rail.tsx"],"sourcesContent":["import { Search as LucideSearch } from '@lucide/solid'\nimport type { ComponentProps, JSX } from '@solidjs/web'\nimport { children, For, Show, omit } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { Kbd, KbdGroup } from '../../ui/kbd'\nimport { Separator } from '../../ui/separator'\nimport {\n SideRail,\n SideRailContent,\n SideRailFooter,\n SideRailHeader,\n SideRailItem,\n} from '../side-rail'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Search = fastIcon(LucideSearch)\n\n/**\n * ShellRail.\n *\n * The side rail both applications put at the window's leading edge: always the\n * collapsed icon column, with the app's mark at the top, a search entry point\n * under it, the app's destinations in the middle and a footer for account and\n * settings.\n *\n * The rail is never the thing the sidebar toggle collapses. The toggle belongs\n * to the sidebar beside the rail, which is why this component takes no\n * `collapsed` prop: a rail that could be expanded would be a second sidebar,\n * and the two apps would drift on which of them the toggle meant.\n *\n * Destinations are the caller's: pass `SideRailItem`s (or a `SideRailSection`)\n * as children. The mark, the search row and the footer are slots with the\n * geometry decided here, so the rail's rhythm cannot differ between apps.\n */\nexport type ShellRailProps = Omit<ComponentProps<'nav'>, 'children' | 'aria-label'> & {\n /** The rail's landmark name; defaults to \"Global navigation\". */\n 'aria-label'?: string\n /** The app's mark. Decorative: the rail names itself through `aria-label`. */\n mark: JSX.Element\n /** Opens search. Omit to leave the search row out. */\n onSearch?: () => void\n /** The search row's accessible name. */\n searchLabel?: string\n /** The chord as it is announced, e.g. `Meta+K Control+K`. */\n searchKeyshortcuts?: string\n /** The cap labels drawn under the icon, in press order, e.g. `['⌘', 'K']`. */\n searchKeys?: readonly string[]\n /** Destinations between the search row and the footer. */\n children?: JSX.Element\n /** Account, plugins, settings. Pinned to the rail's foot. */\n footer?: JSX.Element\n}\n\nexport function ShellRail(props: ShellRailProps) {\n const local = props\n const rest = omit(\n props,\n 'class',\n 'mark',\n 'onSearch',\n 'searchLabel',\n 'searchKeyshortcuts',\n 'searchKeys',\n 'children',\n 'footer',\n 'aria-label'\n )\n\n // Resolve the footer once: reading a JSX prop twice builds two copies.\n const footer = children(() => local.footer)\n const content = children(() => local.children)\n\n return (\n <SideRail\n collapsed\n data-slot=\"shell-rail\"\n aria-label={local['aria-label'] ?? 'Global navigation'}\n class={cn('relative z-(--z-sticky) min-w-0', local.class)}\n {...rest}\n >\n <SideRailHeader data-slot=\"shell-rail-header\" class=\"h-auto justify-center px-0 pt-1\">\n <span\n data-slot=\"shell-rail-mark\"\n aria-hidden=\"true\"\n class=\"flex h-rail-item items-center justify-center\"\n >\n {local.mark}\n </span>\n </SideRailHeader>\n\n <SideRailContent data-slot=\"shell-rail-content\" class=\"pt-0.5\">\n <Show when={local.onSearch}>\n <div data-slot=\"shell-rail-search\" class=\"flex min-w-0 flex-col gap-0.5\">\n <SideRailItem\n as=\"button\"\n type=\"button\"\n label={local.searchLabel ?? 'Search'}\n aria-label={local.searchLabel ?? 'Search'}\n keyshortcuts={local.searchKeyshortcuts}\n shortcut={local.searchKeys?.join('')}\n onClick={() => local.onSearch?.()}\n >\n <Search aria-hidden=\"true\" />\n </SideRailItem>\n {/* The chord is drawn as key caps under the icon: the one row that\n advertises a shortcut. The accessible chord stays on the row. */}\n <Show when={local.searchKeys?.length}>\n <KbdGroup\n size=\"compact\"\n class=\"justify-center pb-1\"\n data-slot=\"shell-rail-search-keys\"\n >\n <For each={local.searchKeys}>{(key) => <Kbd size=\"compact\">{key}</Kbd>}</For>\n </KbdGroup>\n </Show>\n </div>\n <Separator class=\"my-1\" />\n </Show>\n {content()}\n </SideRailContent>\n\n <Show when={footer()}>\n <SideRailFooter data-slot=\"shell-rail-footer\">{footer()}</SideRailFooter>\n </Show>\n </SideRail>\n )\n}\n"],"mappings":";;;;;;;;;;;AAgBA,IAAMuB,WAAS,SAASC,MAAY;AAsCpC,SAAgB,UAAU,OAAuB;CAC/C,MAAM,QAAQ;CACd,MAAM,OAAO,KACX,OACA,SACA,QACA,YACA,eACA,sBACA,cACA,YACA,UACA,YACF;CAGA,MAAM,SAAS,eAAe,MAAM,MAAM;CAC1C,MAAM,UAAU,eAAe,MAAM,QAAQ;CAE7C,OACExB,gBAAAA,UAAAA,WAAAA;EACE,WAAA;EACA,aAAU;EACV,IAAA,eAAA;GAAY,OAAA,MAAM,iBAAiB;EAAmB;EACtD,IAAA,UAAA;GAAO,OAAA,GAAG,mCAAmC,MAAM,KAAK;EAAC;CA+CjD,GA9CJ,MALN,EAAA,IAAA,WAAA;EAMC,OAAA;GACCC,gBAAAA,gBAAAA;IAAgB,aAAU;IAAoBC,OAAM;IAApD,IAAA,WAAA;KACE,IAAA,OAAA,OAMM;KANN,OAAA,YAKE;MAAC,OAAA,MAAM;KAAI,CACP;KAPR,OACEC;IAOc;;GAEhBC,gBAAAA,iBAAAA;IAAiB,aAAU;IAAqBC,OAAM;IAAtD,IAAA,WAAA;KAA+D,OAAA,CAC7DC,gBAAAA,MAAAA;MAAM,IAAA,OAAA;OAAM,OAAA,MAAM;MAAQ;MAA1B,IAAA,WAAA;OAA4B,OAAA,QAC1B;QAuBK,IAAA,QAAA,QAAA;QAvBL,IAAA,QAAA,MAAA;;QACEC,OAAAA,OAAAA,gBAAAA,cAAAA;SACEC,IAAG;SACHC,MAAK;SACL,IAAA,QAAA;UAAO,OAAA,MAAM,eAAe;SAAQ;SACpC,IAAA,eAAA;UAAY,OAAA,MAAM,eAAe;SAAQ;SACzC,IAAA,eAAA;UAAc,OAAA,MAAM;SAAkB;SACtC,IAAA,WAAA;UAAU,OAAA,MAAM,YAAY,KAAK,EAAE;SAAC;SACpCC,eAAe,MAAM,WAAW;SAPlC,IAAA,WAAA;UASEC,OAAAA,gBAAAA,UAAAA,EAAQ,eAAY,OAAQ,CAAA;SAChB;QAXhBC,CAAAA,GAAAA,KAuBK;QAvBL,OAAA,cAcE;;UAAY,OAAA,CAAA,CAAA,MAAM,YAAY;SAQxB,CAAA;SARN,aAAA;UAQM,OAAA,IAAA,IAPJC,gBAAAA,UAAAA;WACEC,MAAK;WACLC,OAAM;WACN,aAAU;WAHZ,IAAA,WAAA;YAKEC,OAAAA,gBAAAA,KAAAA;aAAK,IAAA,OAAA;cAAM,OAAA,MAAM;aAAU;aAA3BA,WAA+B,QAAQC,gBAAAA,KAAAA;cAAKH,MAAK;cAAVG,UAAqB;aAAS,CAAA;YAAO,CAAA;WACpE;UAPZ,CAAA,IAAA,KAAA;SAQM;QAAC,EAAA,CAAD,GAtBRL,KAuBK;QAvBL,OAAA;OAuBK,EAAA,CAAA,GACLM,gBAAAA,WAAAA,EAAWC,OAAM,OAAQ,CAAA,CAxB1B;MAyBK;KACLC,CAAAA,GAAAA,WAAAA;MAAQ,OAAA,QAAA;KA3BV,CAAA,CAAA;IA4BgB;;GAEjBC,gBAAAA,MAAAA;IAAM,IAAA,OAAA;KAAM,OAAA,OAAO;IAAC;IAApB,IAAA,WAAA;KACEC,OAAAA,gBAAAA,gBAAAA;MAAgB,aAAU;MAA1B,IAAA,WAAA;OAA+C,OAAA,OAAO;MAAkB;;IACpE;;EA3CP;CA4CS,EAAA,CAAA,CAAA;AAEd"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentProps, JSX } from '
|
|
1
|
+
import type { ComponentProps, JSX } from '@solidjs/web';
|
|
2
2
|
import { type WindowChromeProps } from '../top-bar/window-chrome';
|
|
3
3
|
/**
|
|
4
4
|
* ShellTopBar.
|
|
@@ -38,7 +38,7 @@ import { type WindowChromeProps } from '../top-bar/window-chrome';
|
|
|
38
38
|
* every control opts back out; `macosInset` and `windowsInset` reserve the
|
|
39
39
|
* native window controls.
|
|
40
40
|
*/
|
|
41
|
-
export type ShellTopBarProps = Omit<ComponentProps<'header'>, 'children'> & WindowChromeProps & {
|
|
41
|
+
export type ShellTopBarProps = Omit<ComponentProps<'header'>, 'children' | 'draggable'> & WindowChromeProps & {
|
|
42
42
|
/** History arrows. Rendered first, left of the sidebar toggle. */
|
|
43
43
|
navigation?: JSX.Element;
|
|
44
44
|
sidebarToggle?: JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-top-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/shell-top-bar/shell-top-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shell-top-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/shell-top-bar/shell-top-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAIvD,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,GACrF,iBAAiB,GAAG;IAClB,kEAAkE;IAClE,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAC3B,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iFAAiF;IACjF,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,gDAAgD;IAChD,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACtB,CAAA;AAEH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAkHlD"}
|
|
@@ -1,135 +1,141 @@
|
|
|
1
1
|
import { cn } from "../../../lib/utils.js";
|
|
2
2
|
import { Separator } from "../../ui/separator/separator.js";
|
|
3
3
|
import { windowChromeClass } from "../top-bar/window-chrome.js";
|
|
4
|
-
import { className, createComponent, effect, insert, memo,
|
|
5
|
-
import {
|
|
4
|
+
import { className, createComponent, effect, insert, memo, readShallow, setAttribute, spread, template } from "@solidjs/web";
|
|
5
|
+
import { children, omit } from "solid-js";
|
|
6
6
|
// src/components/layout/shell-top-bar/shell-top-bar.tsx
|
|
7
|
-
var _tmpl$ =
|
|
8
|
-
var _tmpl$2 =
|
|
9
|
-
var _tmpl$3 =
|
|
10
|
-
var _tmpl$4 =
|
|
11
|
-
var _tmpl$5 =
|
|
12
|
-
var _tmpl$6 =
|
|
13
|
-
var _tmpl$7 =
|
|
14
|
-
var _tmpl$8 =
|
|
7
|
+
var _tmpl$ = /* @__PURE__ */ template(`<header><div data-slot=shell-top-bar-leading><!><!><!></div><!><!><!><!><!>`);
|
|
8
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div data-slot=shell-top-bar-navigation class="flex shrink-0 items-center gap-2">`);
|
|
9
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<div data-slot=shell-top-bar-toggle class="flex shrink-0 items-center">`);
|
|
10
|
+
var _tmpl$4 = /* @__PURE__ */ template(`<div data-slot=shell-top-bar-workspace class="flex min-w-0 items-center">`);
|
|
11
|
+
var _tmpl$5 = /* @__PURE__ */ template(`<div data-slot=shell-top-bar-breadcrumb class="window-no-drag flex h-[calc(var(--topbar-height)-1px)] min-w-0 flex-1 items-center truncate ps-3 text-sm [&_:is(a,button)]:window-no-drag">`);
|
|
12
|
+
var _tmpl$6 = /* @__PURE__ */ template(`<div class="min-w-0 flex-1"aria-hidden=true>`);
|
|
13
|
+
var _tmpl$7 = /* @__PURE__ */ template(`<div data-slot=shell-top-bar-search class="window-no-drag min-w-0 max-w-md shrink basis-72 px-3 @max-[34rem]/shell-top-bar:order-last @max-[34rem]/shell-top-bar:max-w-none @max-[34rem]/shell-top-bar:basis-full @max-[34rem]/shell-top-bar:pb-2">`);
|
|
14
|
+
var _tmpl$8 = /* @__PURE__ */ template(`<div data-slot=shell-top-bar-actions class="window-no-drag flex h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 items-center gap-2 overflow-x-auto overflow-y-hidden ps-1 @max-[34rem]/shell-top-bar:mb-0.5">`);
|
|
15
15
|
function ShellTopBar(props) {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
"navigation",
|
|
19
|
-
"sidebarToggle",
|
|
20
|
-
"workspace",
|
|
21
|
-
"sidebarOpen",
|
|
22
|
-
"alignSidebarAtNarrow",
|
|
23
|
-
"sidebarWidth",
|
|
24
|
-
"breadcrumb",
|
|
25
|
-
"search",
|
|
26
|
-
"actions",
|
|
27
|
-
"draggable",
|
|
28
|
-
"macosInset",
|
|
29
|
-
"windowsInset",
|
|
30
|
-
"glass"
|
|
31
|
-
]);
|
|
16
|
+
const local = props;
|
|
17
|
+
const rest = omit(props, "class", "navigation", "sidebarToggle", "workspace", "sidebarOpen", "alignSidebarAtNarrow", "sidebarWidth", "breadcrumb", "search", "actions", "draggable", "macosInset", "windowsInset", "glass");
|
|
32
18
|
const navigation = children(() => local.navigation);
|
|
33
19
|
const sidebarToggle = children(() => local.sidebarToggle);
|
|
34
20
|
const workspace = children(() => local.workspace);
|
|
35
21
|
const breadcrumb = children(() => local.breadcrumb);
|
|
36
22
|
const search = children(() => local.search);
|
|
37
23
|
const actions = children(() => local.actions);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return sidebarToggle();
|
|
61
|
-
},
|
|
62
|
-
get children() {
|
|
63
|
-
var _el$4 = _tmpl$2();
|
|
64
|
-
insert(_el$4, sidebarToggle);
|
|
65
|
-
return _el$4;
|
|
66
|
-
}
|
|
67
|
-
}), null);
|
|
68
|
-
insert(_el$2, createComponent(Show, {
|
|
69
|
-
get when() {
|
|
70
|
-
return workspace();
|
|
71
|
-
},
|
|
72
|
-
get children() {
|
|
73
|
-
var _el$5 = _tmpl$3();
|
|
74
|
-
insert(_el$5, workspace);
|
|
75
|
-
return _el$5;
|
|
76
|
-
}
|
|
77
|
-
}), null);
|
|
78
|
-
insert(_el$, createComponent(Separator, {
|
|
79
|
-
orientation: "vertical",
|
|
80
|
-
"data-slot": "shell-top-bar-divider",
|
|
81
|
-
"aria-hidden": "true",
|
|
82
|
-
"class": "data-[orientation=vertical]:h-5"
|
|
83
|
-
}), null);
|
|
84
|
-
insert(_el$, createComponent(Show, {
|
|
85
|
-
get when() {
|
|
86
|
-
return breadcrumb();
|
|
87
|
-
},
|
|
88
|
-
get children() {
|
|
89
|
-
var _el$6 = _tmpl$4();
|
|
90
|
-
insert(_el$6, breadcrumb);
|
|
91
|
-
return _el$6;
|
|
92
|
-
}
|
|
93
|
-
}), null);
|
|
94
|
-
insert(_el$, createComponent(Show, {
|
|
95
|
-
get when() {
|
|
96
|
-
return !breadcrumb();
|
|
97
|
-
},
|
|
98
|
-
get children() {
|
|
99
|
-
return _tmpl$5();
|
|
100
|
-
}
|
|
101
|
-
}), null);
|
|
102
|
-
insert(_el$, createComponent(Show, {
|
|
103
|
-
get when() {
|
|
104
|
-
return search();
|
|
105
|
-
},
|
|
106
|
-
get children() {
|
|
107
|
-
var _el$8 = _tmpl$6();
|
|
108
|
-
insert(_el$8, search);
|
|
109
|
-
return _el$8;
|
|
110
|
-
}
|
|
111
|
-
}), null);
|
|
112
|
-
insert(_el$, createComponent(Show, {
|
|
113
|
-
get when() {
|
|
114
|
-
return actions();
|
|
115
|
-
},
|
|
116
|
-
get children() {
|
|
117
|
-
var _el$9 = _tmpl$7();
|
|
118
|
-
insert(_el$9, actions);
|
|
119
|
-
return _el$9;
|
|
120
|
-
}
|
|
121
|
-
}), null);
|
|
122
|
-
effect((_p$) => {
|
|
123
|
-
var _v$ = local.sidebarOpen ? "true" : "false", _v$2 = cn("window-no-drag flex min-h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 pe-3", local.sidebarOpen && (local.alignSidebarAtNarrow ? "w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]" : "md:w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]"));
|
|
124
|
-
_v$ !== _p$.e && setAttribute(_el$2, "data-sidebar-open", _p$.e = _v$);
|
|
125
|
-
_v$2 !== _p$.t && className(_el$2, _p$.t = _v$2);
|
|
126
|
-
return _p$;
|
|
127
|
-
}, {
|
|
128
|
-
e: void 0,
|
|
129
|
-
t: void 0
|
|
24
|
+
var _el$ = _tmpl$();
|
|
25
|
+
var _el$2 = _el$.firstChild;
|
|
26
|
+
var _el$3 = _el$2.firstChild;
|
|
27
|
+
var _el$4 = _el$3.nextSibling;
|
|
28
|
+
var _el$5 = _el$4.nextSibling;
|
|
29
|
+
var _el$6 = _el$2.nextSibling;
|
|
30
|
+
var _el$7 = _el$6.nextSibling;
|
|
31
|
+
var _el$8 = _el$7.nextSibling;
|
|
32
|
+
var _el$9 = _el$8.nextSibling;
|
|
33
|
+
var _el$10 = _el$9.nextSibling;
|
|
34
|
+
spread(_el$, [{
|
|
35
|
+
"data-slot": "shell-top-bar",
|
|
36
|
+
get "class"() {
|
|
37
|
+
return cn("@container/shell-top-bar relative z-(--z-sticky) flex min-h-topbar shrink-0 flex-wrap items-center border-b border-border bg-card text-card-foreground", windowChromeClass(local), local.macosInset ? "[--shell-top-bar-inset:84px]" : "[--shell-top-bar-inset:0.75rem]", local.class);
|
|
38
|
+
},
|
|
39
|
+
get style() {
|
|
40
|
+
return local.sidebarWidth === void 0 ? void 0 : { "--shell-sidebar-width": `${local.sidebarWidth}px` };
|
|
41
|
+
}
|
|
42
|
+
}, rest], true);
|
|
43
|
+
insert(_el$2, (() => {
|
|
44
|
+
var _c$ = memo(() => {
|
|
45
|
+
return !!navigation();
|
|
130
46
|
});
|
|
131
|
-
return
|
|
132
|
-
|
|
47
|
+
return () => {
|
|
48
|
+
return _c$() ? (() => {
|
|
49
|
+
var _el$11 = _tmpl$2();
|
|
50
|
+
insert(_el$11, navigation);
|
|
51
|
+
return _el$11;
|
|
52
|
+
})() : void 0;
|
|
53
|
+
};
|
|
54
|
+
})(), _el$3);
|
|
55
|
+
insert(_el$2, (() => {
|
|
56
|
+
var _c$2 = memo(() => {
|
|
57
|
+
return !!sidebarToggle();
|
|
58
|
+
});
|
|
59
|
+
return () => {
|
|
60
|
+
return _c$2() ? (() => {
|
|
61
|
+
var _el$12 = _tmpl$3();
|
|
62
|
+
insert(_el$12, sidebarToggle);
|
|
63
|
+
return _el$12;
|
|
64
|
+
})() : void 0;
|
|
65
|
+
};
|
|
66
|
+
})(), _el$4);
|
|
67
|
+
insert(_el$2, (() => {
|
|
68
|
+
var _c$3 = memo(() => {
|
|
69
|
+
return !!workspace();
|
|
70
|
+
});
|
|
71
|
+
return () => {
|
|
72
|
+
return _c$3() ? (() => {
|
|
73
|
+
var _el$13 = _tmpl$4();
|
|
74
|
+
insert(_el$13, workspace);
|
|
75
|
+
return _el$13;
|
|
76
|
+
})() : void 0;
|
|
77
|
+
};
|
|
78
|
+
})(), _el$5);
|
|
79
|
+
insert(_el$, createComponent(Separator, {
|
|
80
|
+
orientation: "vertical",
|
|
81
|
+
"data-slot": "shell-top-bar-divider",
|
|
82
|
+
"aria-hidden": "true",
|
|
83
|
+
class: "data-[orientation=vertical]:h-5"
|
|
84
|
+
}), _el$6);
|
|
85
|
+
insert(_el$, (() => {
|
|
86
|
+
var _c$4 = memo(() => {
|
|
87
|
+
return !!breadcrumb();
|
|
88
|
+
});
|
|
89
|
+
return () => {
|
|
90
|
+
return _c$4() ? (() => {
|
|
91
|
+
var _el$14 = _tmpl$5();
|
|
92
|
+
insert(_el$14, breadcrumb);
|
|
93
|
+
return _el$14;
|
|
94
|
+
})() : void 0;
|
|
95
|
+
};
|
|
96
|
+
})(), _el$7);
|
|
97
|
+
insert(_el$, (() => {
|
|
98
|
+
var _c$5 = memo(() => {
|
|
99
|
+
return !breadcrumb();
|
|
100
|
+
});
|
|
101
|
+
return () => {
|
|
102
|
+
return _c$5() ? _tmpl$6() : void 0;
|
|
103
|
+
};
|
|
104
|
+
})(), _el$8);
|
|
105
|
+
insert(_el$, (() => {
|
|
106
|
+
var _c$6 = memo(() => {
|
|
107
|
+
return !!search();
|
|
108
|
+
});
|
|
109
|
+
return () => {
|
|
110
|
+
return _c$6() ? (() => {
|
|
111
|
+
var _el$16 = _tmpl$7();
|
|
112
|
+
insert(_el$16, search);
|
|
113
|
+
return _el$16;
|
|
114
|
+
})() : void 0;
|
|
115
|
+
};
|
|
116
|
+
})(), _el$9);
|
|
117
|
+
insert(_el$, (() => {
|
|
118
|
+
var _c$7 = memo(() => {
|
|
119
|
+
return !!actions();
|
|
120
|
+
});
|
|
121
|
+
return () => {
|
|
122
|
+
return _c$7() ? (() => {
|
|
123
|
+
var _el$17 = _tmpl$8();
|
|
124
|
+
insert(_el$17, actions);
|
|
125
|
+
return _el$17;
|
|
126
|
+
})() : void 0;
|
|
127
|
+
};
|
|
128
|
+
})(), _el$10);
|
|
129
|
+
effect(() => {
|
|
130
|
+
return {
|
|
131
|
+
e: local.sidebarOpen ? "true" : "false",
|
|
132
|
+
t: readShallow(cn("window-no-drag flex min-h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 pe-3", local.sidebarOpen && (local.alignSidebarAtNarrow ? "w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]" : "md:w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]")))
|
|
133
|
+
};
|
|
134
|
+
}, ({ e, t }, _p$) => {
|
|
135
|
+
e !== _p$?.e && setAttribute(_el$2, "data-sidebar-open", e);
|
|
136
|
+
className(_el$2, t, _p$?.t);
|
|
137
|
+
});
|
|
138
|
+
return _el$;
|
|
133
139
|
}
|
|
134
140
|
export { ShellTopBar };
|
|
135
141
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-top-bar.js","names":["children","Show","splitProps","cn","Separator","windowChromeClass","navigation","sidebarToggle","workspace","sidebarOpen","alignSidebarAtNarrow","sidebarWidth","breadcrumb","search","actions","ShellTopBar","props","local","rest","_el$","_tmpl$8","_el$2","firstChild","_$spread","_$mergeProps","class","macosInset","style","_$memo","undefined","_$insert","_$createComponent","when","_el$3","_tmpl$","_el$4","_tmpl$2","_el$5","_tmpl$3","orientation","_el$6","_tmpl$4","_tmpl$5","_el$8","_tmpl$6","_el$9","_tmpl$7","_$effect","_p$","_v$","_v$2","e","_$setAttribute","t","_$className"],"sources":["../../../../src/components/layout/shell-top-bar/shell-top-bar.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'solid-js'\nimport { children, Show, splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { Separator } from '../../ui/separator'\nimport { windowChromeClass, type WindowChromeProps } from '../top-bar/window-chrome'\n\n/**\n * ShellTopBar.\n *\n * The window's top bar as both applications draw it. It has two halves with a\n * vertical divider between them:\n *\n * - **Leading**: history arrows, the sidebar toggle and the workspace\n * switcher, in that order. This is the part that belongs to the window.\n * - **Content**: breadcrumbs, search and the view's actions. This is the part\n * that belongs to the view, and it always sits to the right of the divider.\n *\n * ## Why the divider tracks the sidebar\n *\n * When the host marks an inline sidebar open, the divider lands on the sidebar's\n * trailing edge, so the bar reads as the rail and sidebar's header on one side\n * and the content's header on the other. The bar spans the rail and the sidebar\n * (they sit under it), so the leading half is as wide as `--rail-width` plus the\n * sidebar's width less the bar's own start padding. The host publishes the width\n * as `--shell-sidebar-width` on an ancestor; the fallback of 17rem matches the\n * default sidebar. The default behavior keeps the leading half with its controls\n * below 48rem. A host that keeps the sidebar inline at narrow widths opts into\n * `alignSidebarAtNarrow` so the divider still tracks it.\n *\n * ## Narrow windows\n *\n * The bar is its own container. Below 34rem the search drops to a row of its\n * own so the leading controls, the breadcrumb and the actions keep their room;\n * the breadcrumb is the first thing to truncate.\n *\n * The bar never spills past its window. When the leading controls are wider than\n * the window (a 320px viewport at 200% text), they wrap onto a second row inside\n * the leading half instead of being cut off or pushing the page sideways, and\n * the actions are capped to the bar and scroll if they are still too wide.\n *\n * On a frameless desktop window the bar is the drag region (`draggable`) and\n * every control opts back out; `macosInset` and `windowsInset` reserve the\n * native window controls.\n */\nexport type ShellTopBarProps = Omit<ComponentProps<'header'>, 'children'> &\n WindowChromeProps & {\n /** History arrows. Rendered first, left of the sidebar toggle. */\n navigation?: JSX.Element\n sidebarToggle?: JSX.Element\n workspace?: JSX.Element\n /**\n * Whether the sidebar is open. Its width applies at wide widths by default.\n */\n sidebarOpen?: boolean\n /**\n * Also align the open sidebar below the default 48rem breakpoint. Use this\n * when the host keeps the sidebar inline at narrow widths; drawer layouts keep\n * the default controls-only leading half.\n */\n alignSidebarAtNarrow?: boolean\n /**\n * The open sidebar's width in pixels. Published as `--shell-sidebar-width` on\n * the bar so the divider tracks a resizable sidebar; leave it unset to use an\n * ancestor's variable or the 17rem default.\n */\n sidebarWidth?: number\n /** Breadcrumbs or the view's title. Takes the free space and truncates first. */\n breadcrumb?: JSX.Element\n search?: JSX.Element\n /** The view's actions, at the trailing edge. */\n actions?: JSX.Element\n }\n\nexport function ShellTopBar(props: ShellTopBarProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'navigation',\n 'sidebarToggle',\n 'workspace',\n 'sidebarOpen',\n 'alignSidebarAtNarrow',\n 'sidebarWidth',\n 'breadcrumb',\n 'search',\n 'actions',\n 'draggable',\n 'macosInset',\n 'windowsInset',\n 'glass',\n ])\n\n // Resolve each slot once: a JSX prop is a getter that builds its elements on\n // every read, so testing it with `Show` and then rendering it would build\n // (and run the refs of) two copies.\n const navigation = children(() => local.navigation)\n const sidebarToggle = children(() => local.sidebarToggle)\n const workspace = children(() => local.workspace)\n const breadcrumb = children(() => local.breadcrumb)\n const search = children(() => local.search)\n const actions = children(() => local.actions)\n\n return (\n <header\n data-slot=\"shell-top-bar\"\n class={cn(\n /* Rows are one pixel short of the top bar height so the bottom border keeps\n the bar at exactly --topbar-height, like the shared TopBar: docked\n panels and sidebar headers measure from that edge. */\n '@container/shell-top-bar relative z-(--z-sticky) flex min-h-topbar shrink-0 flex-wrap items-center border-b border-border bg-card text-card-foreground',\n windowChromeClass(local),\n /* The leading half subtracts the start inset from its width. */\n local.macosInset ? '[--shell-top-bar-inset:84px]' : '[--shell-top-bar-inset:0.75rem]',\n local.class\n )}\n style={\n local.sidebarWidth === undefined\n ? undefined\n : { '--shell-sidebar-width': `${local.sidebarWidth}px` }\n }\n {...rest}\n >\n <div\n data-slot=\"shell-top-bar-leading\"\n data-sidebar-open={local.sidebarOpen ? 'true' : 'false'}\n class={cn(\n 'window-no-drag flex min-h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 pe-3',\n /* Open sidebar: preserve wide-only alignment unless the host opts into\n the same geometry below the breakpoint. */\n local.sidebarOpen &&\n (local.alignSidebarAtNarrow\n ? 'w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]'\n : 'md:w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]')\n )}\n >\n <Show when={navigation()}>\n <div data-slot=\"shell-top-bar-navigation\" class=\"flex shrink-0 items-center gap-2\">\n {navigation()}\n </div>\n </Show>\n <Show when={sidebarToggle()}>\n <div data-slot=\"shell-top-bar-toggle\" class=\"flex shrink-0 items-center\">\n {sidebarToggle()}\n </div>\n </Show>\n <Show when={workspace()}>\n <div data-slot=\"shell-top-bar-workspace\" class=\"flex min-w-0 items-center\">\n {workspace()}\n </div>\n </Show>\n </div>\n <Separator\n orientation=\"vertical\"\n data-slot=\"shell-top-bar-divider\"\n aria-hidden=\"true\"\n class=\"data-[orientation=vertical]:h-5\"\n />\n <Show when={breadcrumb()}>\n <div\n data-slot=\"shell-top-bar-breadcrumb\"\n class=\"window-no-drag flex h-[calc(var(--topbar-height)-1px)] min-w-0 flex-1 items-center truncate ps-3 text-sm [&_:is(a,button)]:window-no-drag\"\n >\n {breadcrumb()}\n </div>\n </Show>\n <Show when={!breadcrumb()}>\n <div class=\"min-w-0 flex-1\" aria-hidden=\"true\" />\n </Show>\n <Show when={search()}>\n <div\n data-slot=\"shell-top-bar-search\"\n class=\"window-no-drag min-w-0 max-w-md shrink basis-72 px-3 @max-[34rem]/shell-top-bar:order-last @max-[34rem]/shell-top-bar:max-w-none @max-[34rem]/shell-top-bar:basis-full @max-[34rem]/shell-top-bar:pb-2\"\n >\n {search()}\n </div>\n </Show>\n <Show when={actions()}>\n <div\n data-slot=\"shell-top-bar-actions\"\n class=\"window-no-drag flex h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 items-center gap-2 overflow-x-auto overflow-y-hidden ps-1 @max-[34rem]/shell-top-bar:mb-0.5\"\n >\n {actions()}\n </div>\n </Show>\n </header>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAyEA,SAAgBe,YAAYC,OAAyB;CACnD,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO;EACtC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAAO,CACR;CAKD,MAAMV,aAAaN,eAAeiB,MAAMX,UAAU;CAClD,MAAMC,gBAAgBP,eAAeiB,MAAMV,aAAa;CACxD,MAAMC,YAAYR,eAAeiB,MAAMT,SAAS;CAChD,MAAMI,aAAaZ,eAAeiB,MAAML,UAAU;CAClD,MAAMC,SAASb,eAAeiB,MAAMJ,MAAM;CAC1C,MAAMC,UAAUd,eAAeiB,MAAMH,OAAO;CAE5C,cAAA;EAAA,IAAAK,OAAAC,QAAA,GAAAC,QAAAF,KAAAG;EAAAC,OAAAJ,MAAAK,WAAA;GAAA,KAAA,WAAA;IAAA,OAGWrB,GAIL,0JACAE,kBAAkBY,KAAK,GAEvBA,MAAMS,aAAa,iCAAiC,mCACpDT,MAAMQ,KACR;GAAC;GAAA,IACDE,QAAK;IAAA,OACHC,WAAAX,MAAMN,iBAAiBkB,KAAAA,CAAS,CAAA,CAAA,IAC5BA,KAAAA,IACA,EAAE,yBAAyB,GAAGZ,MAAMN,aAAY,IAAK;GAAC;EAAA,GAExDO,IAAI,GAAA,OAAA,IAAA;EAAAY,OAAAT,OAAAU,gBAeL9B,MAAI;GAAA,IAAC+B,OAAI;IAAA,OAAE1B,WAAW;GAAC;GAAA,IAAAN,WAAA;IAAA,IAAAiC,QAAAC,OAAA;IAAAJ,OAAAG,OAEnB3B,UAAU;IAAA,OAAA2B;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAH,OAAAT,OAAAU,gBAGd9B,MAAI;GAAA,IAAC+B,OAAI;IAAA,OAAEzB,cAAc;GAAC;GAAA,IAAAP,WAAA;IAAA,IAAAmC,QAAAC,QAAA;IAAAN,OAAAK,OAEtB5B,aAAa;IAAA,OAAA4B;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAL,OAAAT,OAAAU,gBAGjB9B,MAAI;GAAA,IAAC+B,OAAI;IAAA,OAAExB,UAAU;GAAC;GAAA,IAAAR,WAAA;IAAA,IAAAqC,QAAAC,QAAA;IAAAR,OAAAO,OAElB7B,SAAS;IAAA,OAAA6B;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAP,OAAAX,MAAAY,gBAIf3B,WAAS;GACRmC,aAAW;GAAA,aAAA;GAAA,eAAA;GAAA,SAAA;EAAA,CAAA,GAAA,IAAA;EAAAT,OAAAX,MAAAY,gBAKZ9B,MAAI;GAAA,IAAC+B,OAAI;IAAA,OAAEpB,WAAW;GAAC;GAAA,IAAAZ,WAAA;IAAA,IAAAwC,QAAAC,QAAA;IAAAX,OAAAU,OAKnB5B,UAAU;IAAA,OAAA4B;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAV,OAAAX,MAAAY,gBAGd9B,MAAI;GAAA,IAAC+B,OAAI;IAAA,OAAE,CAACpB,WAAW;GAAC;GAAA,IAAAZ,WAAA;IAAA,OAAA0C,QAAA;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAZ,OAAAX,MAAAY,gBAGxB9B,MAAI;GAAA,IAAC+B,OAAI;IAAA,OAAEnB,OAAO;GAAC;GAAA,IAAAb,WAAA;IAAA,IAAA2C,QAAAC,QAAA;IAAAd,OAAAa,OAKf9B,MAAM;IAAA,OAAA8B;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAb,OAAAX,MAAAY,gBAGV9B,MAAI;GAAA,IAAC+B,OAAI;IAAA,OAAElB,QAAQ;GAAC;GAAA,IAAAd,WAAA;IAAA,IAAA6C,QAAAC,QAAA;IAAAhB,OAAAe,OAKhB/B,OAAO;IAAA,OAAA+B;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAE,QAAAC,QAAA;GAAA,IAAAC,MAzDShC,MAAMR,cAAc,SAAS,SAAOyC,OAChD/C,GACL,sIAGAc,MAAMR,gBACHQ,MAAMP,uBACH,4FACA,6FACR;GAACuC,QAAAD,IAAAG,KAAAC,aAAA/B,OAAA,qBAAA2B,IAAAG,IAAAF,GAAA;GAAAC,SAAAF,IAAAK,KAAAC,UAAAjC,OAAA2B,IAAAK,IAAAH,IAAA;GAAA,OAAAF;EAAA,GAAA;GAAAG,GAAAtB,KAAAA;GAAAwB,GAAAxB,KAAAA;EAAA,CAAA;EAAA,OAAAV;CAAA,EAAA,CAAA;AAqDT"}
|
|
1
|
+
{"version":3,"file":"shell-top-bar.js","names":["<div\n data-slot=\"shell-top-bar-leading\"\n data-sidebar-open={local.sidebarOpen ? 'true' : 'false'}\n class={cn(\n 'window-no-drag flex min-h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 pe-3',\n /* Open sidebar: preserve wide-only alignment unless the host opts into\n the same geometry below the breakpoint. */\n local.sidebarOpen &&\n (local.alignSidebarAtNarrow\n ? 'w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]'\n : 'md:w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]')\n )}\n >\n <Show when={navigation()}>\n <div data-slot=\"shell-top-bar-navigation\" class=\"flex shrink-0 items-center gap-2\">\n {navigation()}\n </div>\n </Show>\n <Show when={sidebarToggle()}>\n <div data-slot=\"shell-top-bar-toggle\" class=\"flex shrink-0 items-center\">\n {sidebarToggle()}\n </div>\n </Show>\n <Show when={workspace()}>\n <div data-slot=\"shell-top-bar-workspace\" class=\"flex min-w-0 items-center\">\n {workspace()}\n </div>\n </Show>\n </div>","<Separator\n orientation=\"vertical\"\n data-slot=\"shell-top-bar-divider\"\n aria-hidden=\"true\"\n class=\"data-[orientation=vertical]:h-5\"\n />","orientation=\"vertical\"","class=\"data-[orientation=vertical]:h-5\"","<header\n data-slot=\"shell-top-bar\"\n class={cn(\n /* Rows are one pixel short of the top bar height so the bottom border keeps\n the bar at exactly --topbar-height, like the shared TopBar: docked\n panels and sidebar headers measure from that edge. */\n '@container/shell-top-bar relative z-(--z-sticky) flex min-h-topbar shrink-0 flex-wrap items-center border-b border-border bg-card text-card-foreground',\n windowChromeClass(local),\n /* The leading half subtracts the start inset from its width. */\n local.macosInset ? '[--shell-top-bar-inset:84px]' : '[--shell-top-bar-inset:0.75rem]',\n local.class\n )}\n style={\n local.sidebarWidth === undefined\n ? undefined\n : { '--shell-sidebar-width': `${local.sidebarWidth}px` }\n }\n {...rest}\n >\n <div\n data-slot=\"shell-top-bar-leading\"\n data-sidebar-open={local.sidebarOpen ? 'true' : 'false'}\n class={cn(\n 'window-no-drag flex min-h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 pe-3',\n /* Open sidebar: preserve wide-only alignment unless the host opts into\n the same geometry below the breakpoint. */\n local.sidebarOpen &&\n (local.alignSidebarAtNarrow\n ? 'w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]'\n : 'md:w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]')\n )}\n >\n <Show when={navigation()}>\n <div data-slot=\"shell-top-bar-navigation\" class=\"flex shrink-0 items-center gap-2\">\n {navigation()}\n </div>\n </Show>\n <Show when={sidebarToggle()}>\n <div data-slot=\"shell-top-bar-toggle\" class=\"flex shrink-0 items-center\">\n {sidebarToggle()}\n </div>\n </Show>\n <Show when={workspace()}>\n <div data-slot=\"shell-top-bar-workspace\" class=\"flex min-w-0 items-center\">\n {workspace()}\n </div>\n </Show>\n </div>\n <Separator\n orientation=\"vertical\"\n data-slot=\"shell-top-bar-divider\"\n aria-hidden=\"true\"\n class=\"data-[orientation=vertical]:h-5\"\n />\n <Show when={breadcrumb()}>\n <div\n data-slot=\"shell-top-bar-breadcrumb\"\n class=\"window-no-drag flex h-[calc(var(--topbar-height)-1px)] min-w-0 flex-1 items-center truncate ps-3 text-sm [&_:is(a,button)]:window-no-drag\"\n >\n {breadcrumb()}\n </div>\n </Show>\n <Show when={!breadcrumb()}>\n <div class=\"min-w-0 flex-1\" aria-hidden=\"true\" />\n </Show>\n <Show when={search()}>\n <div\n data-slot=\"shell-top-bar-search\"\n class=\"window-no-drag min-w-0 max-w-md shrink basis-72 px-3 @max-[34rem]/shell-top-bar:order-last @max-[34rem]/shell-top-bar:max-w-none @max-[34rem]/shell-top-bar:basis-full @max-[34rem]/shell-top-bar:pb-2\"\n >\n {search()}\n </div>\n </Show>\n <Show when={actions()}>\n <div\n data-slot=\"shell-top-bar-actions\"\n class=\"window-no-drag flex h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 items-center gap-2 overflow-x-auto overflow-y-hidden ps-1 @max-[34rem]/shell-top-bar:mb-0.5\"\n >\n {actions()}\n </div>\n </Show>\n </header>","<div class=\"min-w-0 flex-1\" aria-hidden=\"true\" />","class={cn(\n 'window-no-drag flex min-h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 pe-3',\n /* Open sidebar: preserve wide-only alignment unless the host opts into\n the same geometry below the breakpoint. */\n local.sidebarOpen &&\n (local.alignSidebarAtNarrow\n ? 'w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]'\n : 'md:w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]')\n )}","_$setAttribute"],"sources":["../../../../src/components/layout/shell-top-bar/shell-top-bar.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from '@solidjs/web'\nimport { children, Show, omit } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { Separator } from '../../ui/separator'\nimport { windowChromeClass, type WindowChromeProps } from '../top-bar/window-chrome'\n\n/**\n * ShellTopBar.\n *\n * The window's top bar as both applications draw it. It has two halves with a\n * vertical divider between them:\n *\n * - **Leading**: history arrows, the sidebar toggle and the workspace\n * switcher, in that order. This is the part that belongs to the window.\n * - **Content**: breadcrumbs, search and the view's actions. This is the part\n * that belongs to the view, and it always sits to the right of the divider.\n *\n * ## Why the divider tracks the sidebar\n *\n * When the host marks an inline sidebar open, the divider lands on the sidebar's\n * trailing edge, so the bar reads as the rail and sidebar's header on one side\n * and the content's header on the other. The bar spans the rail and the sidebar\n * (they sit under it), so the leading half is as wide as `--rail-width` plus the\n * sidebar's width less the bar's own start padding. The host publishes the width\n * as `--shell-sidebar-width` on an ancestor; the fallback of 17rem matches the\n * default sidebar. The default behavior keeps the leading half with its controls\n * below 48rem. A host that keeps the sidebar inline at narrow widths opts into\n * `alignSidebarAtNarrow` so the divider still tracks it.\n *\n * ## Narrow windows\n *\n * The bar is its own container. Below 34rem the search drops to a row of its\n * own so the leading controls, the breadcrumb and the actions keep their room;\n * the breadcrumb is the first thing to truncate.\n *\n * The bar never spills past its window. When the leading controls are wider than\n * the window (a 320px viewport at 200% text), they wrap onto a second row inside\n * the leading half instead of being cut off or pushing the page sideways, and\n * the actions are capped to the bar and scroll if they are still too wide.\n *\n * On a frameless desktop window the bar is the drag region (`draggable`) and\n * every control opts back out; `macosInset` and `windowsInset` reserve the\n * native window controls.\n */\nexport type ShellTopBarProps = Omit<ComponentProps<'header'>, 'children' | 'draggable'> &\n WindowChromeProps & {\n /** History arrows. Rendered first, left of the sidebar toggle. */\n navigation?: JSX.Element\n sidebarToggle?: JSX.Element\n workspace?: JSX.Element\n /**\n * Whether the sidebar is open. Its width applies at wide widths by default.\n */\n sidebarOpen?: boolean\n /**\n * Also align the open sidebar below the default 48rem breakpoint. Use this\n * when the host keeps the sidebar inline at narrow widths; drawer layouts keep\n * the default controls-only leading half.\n */\n alignSidebarAtNarrow?: boolean\n /**\n * The open sidebar's width in pixels. Published as `--shell-sidebar-width` on\n * the bar so the divider tracks a resizable sidebar; leave it unset to use an\n * ancestor's variable or the 17rem default.\n */\n sidebarWidth?: number\n /** Breadcrumbs or the view's title. Takes the free space and truncates first. */\n breadcrumb?: JSX.Element\n search?: JSX.Element\n /** The view's actions, at the trailing edge. */\n actions?: JSX.Element\n }\n\nexport function ShellTopBar(props: ShellTopBarProps) {\n const local = props\n const rest = omit(\n props,\n 'class',\n 'navigation',\n 'sidebarToggle',\n 'workspace',\n 'sidebarOpen',\n 'alignSidebarAtNarrow',\n 'sidebarWidth',\n 'breadcrumb',\n 'search',\n 'actions',\n 'draggable',\n 'macosInset',\n 'windowsInset',\n 'glass'\n )\n\n // Resolve each slot once: a JSX prop is a getter that builds its elements on\n // every read, so testing it with `Show` and then rendering it would build\n // (and run the refs of) two copies.\n const navigation = children(() => local.navigation)\n const sidebarToggle = children(() => local.sidebarToggle)\n const workspace = children(() => local.workspace)\n const breadcrumb = children(() => local.breadcrumb)\n const search = children(() => local.search)\n const actions = children(() => local.actions)\n\n return (\n <header\n data-slot=\"shell-top-bar\"\n class={cn(\n /* Rows are one pixel short of the top bar height so the bottom border keeps\n the bar at exactly --topbar-height, like the shared TopBar: docked\n panels and sidebar headers measure from that edge. */\n '@container/shell-top-bar relative z-(--z-sticky) flex min-h-topbar shrink-0 flex-wrap items-center border-b border-border bg-card text-card-foreground',\n windowChromeClass(local),\n /* The leading half subtracts the start inset from its width. */\n local.macosInset ? '[--shell-top-bar-inset:84px]' : '[--shell-top-bar-inset:0.75rem]',\n local.class\n )}\n style={\n local.sidebarWidth === undefined\n ? undefined\n : { '--shell-sidebar-width': `${local.sidebarWidth}px` }\n }\n {...rest}\n >\n <div\n data-slot=\"shell-top-bar-leading\"\n data-sidebar-open={local.sidebarOpen ? 'true' : 'false'}\n class={cn(\n 'window-no-drag flex min-h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 pe-3',\n /* Open sidebar: preserve wide-only alignment unless the host opts into\n the same geometry below the breakpoint. */\n local.sidebarOpen &&\n (local.alignSidebarAtNarrow\n ? 'w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]'\n : 'md:w-[calc(var(--rail-width)+var(--shell-sidebar-width,17rem)-var(--shell-top-bar-inset))]')\n )}\n >\n <Show when={navigation()}>\n <div data-slot=\"shell-top-bar-navigation\" class=\"flex shrink-0 items-center gap-2\">\n {navigation()}\n </div>\n </Show>\n <Show when={sidebarToggle()}>\n <div data-slot=\"shell-top-bar-toggle\" class=\"flex shrink-0 items-center\">\n {sidebarToggle()}\n </div>\n </Show>\n <Show when={workspace()}>\n <div data-slot=\"shell-top-bar-workspace\" class=\"flex min-w-0 items-center\">\n {workspace()}\n </div>\n </Show>\n </div>\n <Separator\n orientation=\"vertical\"\n data-slot=\"shell-top-bar-divider\"\n aria-hidden=\"true\"\n class=\"data-[orientation=vertical]:h-5\"\n />\n <Show when={breadcrumb()}>\n <div\n data-slot=\"shell-top-bar-breadcrumb\"\n class=\"window-no-drag flex h-[calc(var(--topbar-height)-1px)] min-w-0 flex-1 items-center truncate ps-3 text-sm [&_:is(a,button)]:window-no-drag\"\n >\n {breadcrumb()}\n </div>\n </Show>\n <Show when={!breadcrumb()}>\n <div class=\"min-w-0 flex-1\" aria-hidden=\"true\" />\n </Show>\n <Show when={search()}>\n <div\n data-slot=\"shell-top-bar-search\"\n class=\"window-no-drag min-w-0 max-w-md shrink basis-72 px-3 @max-[34rem]/shell-top-bar:order-last @max-[34rem]/shell-top-bar:max-w-none @max-[34rem]/shell-top-bar:basis-full @max-[34rem]/shell-top-bar:pb-2\"\n >\n {search()}\n </div>\n </Show>\n <Show when={actions()}>\n <div\n data-slot=\"shell-top-bar-actions\"\n class=\"window-no-drag flex h-[calc(var(--topbar-height)-1px)] max-w-full min-w-0 shrink-0 items-center gap-2 overflow-x-auto overflow-y-hidden ps-1 @max-[34rem]/shell-top-bar:mb-0.5\"\n >\n {actions()}\n </div>\n </Show>\n </header>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAyEA,SAAgB,YAAY,OAAyB;CACnD,MAAM,QAAQ;CACd,MAAM,OAAO,KACX,OACA,SACA,cACA,iBACA,aACA,eACA,wBACA,gBACA,cACA,UACA,WACA,aACA,cACA,gBACA,OACF;CAKA,MAAM,aAAa,eAAe,MAAM,UAAU;CAClD,MAAM,gBAAgB,eAAe,MAAM,aAAa;CACxD,MAAM,YAAY,eAAe,MAAM,SAAS;CAChD,MAAM,aAAa,eAAe,MAAM,UAAU;CAClD,MAAM,SAAS,eAAe,MAAM,MAAM;CAC1C,MAAM,UAAU,eAAe,MAAM,OAAO;CAG1C,IAAA,OAAA,OAiFQ;CA9DN,IAAA,QAAA,KAAA;;;;CAnBF,IAAA,QAAA,MAAA;;;;;CAiBE,OAAA,MAAA,CAAA;EAhBA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GAIL,0JACA,kBAAkB,KAAK,GAEvB,MAAM,aAAa,iCAAiC,mCACpD,MAAM,KACR;EAAC;EACD,IAAA,QAAA;GACE,OAAA,MAAM,iBAAiB,KAAA,IACnB,KAAA,IACA,EAAE,yBAAyB,GAAG,MAAM,aAAa,IAAI;EAC3D;CACQ,GAAJ,IAAA,GAAA,IAAA;CAEJ,OAAA,cAaE;;GAAY,OAAA,CAAA,CAAA,WAAW;EAIjB,CAAA;EAJN,aAAA;GAIM,OAAA,IAAA,WAHJ;IAEK,IAAA,SAAA,QAAA;IAFL,OAAA,QACG,UACE;IAFL,OAAA;GAEK,EAAA,CAAA,IAHP,KAAA;EAIM;CAAC,EAAA,CAAD,GAjBRA,KA4BK;CA5BL,OAAA,cAkBE;;GAAY,OAAA,CAAA,CAAA,cAAc;EAIpB,CAAA;EAJN,aAAA;GAIM,OAAA,KAAA,WAHJ;IAEK,IAAA,SAAA,QAAA;IAFL,OAAA,QACG,aACE;IAFL,OAAA;GAEK,EAAA,CAAA,IAHP,KAAA;EAIM;CAAC,EAAA,CAAD,GAtBRA,KA4BK;CA5BL,OAAA,cAuBE;;GAAY,OAAA,CAAA,CAAA,UAAU;EAIhB,CAAA;EAJN,aAAA;GAIM,OAAA,KAAA,WAHJ;IAEK,IAAA,SAAA,QAAA;IAFL,OAAA,QACG,SACE;IAFL,OAAA;GAEK,EAAA,CAAA,IAHP,KAAA;EAIM;CAAC,EAAA,CAAD,GA3BRA,KA4BK;CA/CP,OAAA,MAgDEC,gBAAAA,WAAAA;EACEC,aAAY;EACZ,aAAU;EACV,eAAY;EACZC,OAAM;CACP,CAAA,GArDHC,KAiFQ;CAjFR,OAAA,aAsDE;;GAAY,OAAA,CAAA,CAAA,WAAW;EAOjB,CAAA;EAPN,aAAA;GAOM,OAAA,KAAA,WANJ;IAKK,IAAA,SAAA,QAAA;IALL,OAAA,QAIG,UACE;IALL,OAAA;GAKK,EAAA,CAAA,IANP,KAAA;EAOM;CAAC,EAAA,CAAD,GA7DRA,KAiFQ;CAjFR,OAAA,aA8DE;;GAAY,OAAA,CAAC,WAAW;EAElB,CAAA;EAFN,aAAA;GAEM,OAAA,KAAA,IADJC,QAAgD,IADlD,KAAA;EAEM;CAAC,EAAA,CAAD,GAhERD,KAiFQ;CAjFR,OAAA,aAiEE;;GAAY,OAAA,CAAA,CAAA,OAAO;EAOb,CAAA;EAPN,aAAA;GAOM,OAAA,KAAA,WANJ;IAKK,IAAA,SAAA,QAAA;IALL,OAAA,QAIG,MACE;IALL,OAAA;GAKK,EAAA,CAAA,IANP,KAAA;EAOM;CAAC,EAAA,CAAD,GAxERA,KAiFQ;CAjFR,OAAA,aAyEE;;GAAY,OAAA,CAAA,CAAA,QAAQ;EAOd,CAAA;EAPN,aAAA;GAOM,OAAA,KAAA,WANJ;IAKK,IAAA,SAAA,QAAA;IALL,OAAA,QAIG,OACE;IALL,OAAA;GAKK,EAAA,CAAA,IANP,KAAA;EAOM;CAAC,EAAA,CAAD,GAhFRA,MAiFQ;CA5DJ,aAAA;;GAAmB,GAAA,MAAM,cAAc,SAAS;GAChDE,GAAAA,YAAO,GACL,sIAGA,MAAM,gBACH,MAAM,uBACH,4FACA,6FACR,CAAC;EATsD;CAAvD,IAAA,EAAA,GAAA,KAAA,QAAA;EAAuD,MAAA,KAAA,KAAAC,aAAA,OAAA,qBAAA,CAAA;EACvD,UAAA,OAAA,GAAA,KAAA,CAQC;CATsD,CAAA;CAtB7D,OACEH;AAmFJ"}
|
|
@@ -16,7 +16,7 @@ type SideRailContextValue = {
|
|
|
16
16
|
/** Width the rail occupies, so a layout can reserve it without measuring. */
|
|
17
17
|
width: () => string;
|
|
18
18
|
};
|
|
19
|
-
declare const SideRailContext: import("solid-js").Context<SideRailContextValue |
|
|
19
|
+
declare const SideRailContext: import("solid-js").Context<SideRailContextValue | null>;
|
|
20
20
|
export declare function useSideRail(): SideRailContextValue;
|
|
21
21
|
export { SideRailContext };
|
|
22
22
|
//# sourceMappingURL=side-rail-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-rail-context.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/side-rail/side-rail-context.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,OAAO,CAAA;IACxB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,MAAM,CAAA;CACpB,CAAA;
|
|
1
|
+
{"version":3,"file":"side-rail-context.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/side-rail/side-rail-context.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,OAAO,CAAA;IACxB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,MAAM,CAAA;CACpB,CAAA;AAID,QAAA,MAAM,eAAe,yDAAmD,CAAA;AAExE,wBAAgB,WAAW,IAAI,oBAAoB,CAMlD;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext } from "solid-js";
|
|
2
2
|
// src/components/layout/side-rail/side-rail-context.ts
|
|
3
|
-
var SideRailContext = createContext();
|
|
3
|
+
var SideRailContext = createContext(null);
|
|
4
4
|
function useSideRail() {
|
|
5
5
|
const value = useContext(SideRailContext);
|
|
6
6
|
if (!value) throw new Error("useSideRail must be called inside a <SideRail>.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-rail-context.js","names":[],"sources":["../../../../src/components/layout/side-rail/side-rail-context.ts"],"sourcesContent":["import { createContext, useContext } from 'solid-js'\n\n/**\n * The side rail's collapse state, shared with its items.\n *\n * A rail has two forms, icon-only and labelled, and every item has to agree\n * about which is showing. Threading a `collapsed` prop through each item would\n * work in a demo and break in practice, because an app composes its rail from\n * several components (a brand, a section, a footer) and would have to remember\n * to pass the flag to all of them.\n *\n * Context makes the rail's form a property of the rail rather than an argument\n * every caller repeats. The items still decide what to *do* about it: a hidden\n * label must become a tooltip, not simply disappear.\n */\ntype SideRailContextValue = {\n collapsed: () => boolean\n /** Width the rail occupies, so a layout can reserve it without measuring. */\n width: () => string\n}\n\nconst SideRailContext = createContext<SideRailContextValue>()\n\nexport function useSideRail(): SideRailContextValue {\n const value = useContext(SideRailContext)\n if (!value) {\n throw new Error('useSideRail must be called inside a <SideRail>.')\n }\n return value\n}\n\nexport { SideRailContext }\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"side-rail-context.js","names":[],"sources":["../../../../src/components/layout/side-rail/side-rail-context.ts"],"sourcesContent":["import { createContext, useContext } from 'solid-js'\n\n/**\n * The side rail's collapse state, shared with its items.\n *\n * A rail has two forms, icon-only and labelled, and every item has to agree\n * about which is showing. Threading a `collapsed` prop through each item would\n * work in a demo and break in practice, because an app composes its rail from\n * several components (a brand, a section, a footer) and would have to remember\n * to pass the flag to all of them.\n *\n * Context makes the rail's form a property of the rail rather than an argument\n * every caller repeats. The items still decide what to *do* about it: a hidden\n * label must become a tooltip, not simply disappear.\n */\ntype SideRailContextValue = {\n collapsed: () => boolean\n /** Width the rail occupies, so a layout can reserve it without measuring. */\n width: () => string\n}\n\n// A `null` default: Solid 2 throws on a context with no provider and no\n// default, and the rail's own error names the mistake better.\nconst SideRailContext = createContext<SideRailContextValue | null>(null)\n\nexport function useSideRail(): SideRailContextValue {\n const value = useContext(SideRailContext)\n if (!value) {\n throw new Error('useSideRail must be called inside a <SideRail>.')\n }\n return value\n}\n\nexport { SideRailContext }\n"],"mappings":";;AAuBA,IAAM,kBAAkB,cAA2C,IAAI;AAEvE,SAAgB,cAAoC;CAClD,MAAM,QAAQ,WAAW,eAAe;CACxC,IAAI,CAAC,OACH,MAAM,IAAI,MAAM,iDAAiD;CAEnE,OAAO;AACT"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { ComponentProps, JSX, ValidComponent } from '@solidjs/web';
|
|
2
|
+
/**
|
|
3
|
+
* The props of `T` with `Props` laid over them, plus `as`: the shape of the
|
|
4
|
+
* polymorphic props these components have always taken.
|
|
5
|
+
*/
|
|
6
|
+
export type PolymorphicProps<T extends ValidComponent, Props extends object = {}> = Omit<ComponentProps<T>, keyof Props | 'as'> & Props & {
|
|
7
|
+
as?: T | keyof JSX.IntrinsicElements;
|
|
8
|
+
};
|
|
3
9
|
/**
|
|
4
10
|
* SideRail.
|
|
5
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-rail.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/side-rail/side-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"side-rail.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/side-rail/side-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAevE;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,SAAS,MAAM,GAAG,EAAE,IAAI,IAAI,CACtF,cAAc,CAAC,CAAC,CAAC,EACjB,MAAM,KAAK,GAAG,IAAI,CACnB,GACC,KAAK,GAAG;IAAE,EAAE,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAA;CAAE,CAAA;AAOlD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,cAAc,GAAG,KAAK,IAAI,gBAAgB,CAC5E,CAAC,EACD;IACE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CACF,CAAA;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,cAAc,GAAG,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,eA+BjF;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,eAa1D;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,eAa3D;AAED,kDAAkD;AAClD,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,eAa1D;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,eAgBhF;AAmGD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,cAAc,GAAG,GAAG,IAAI,gBAAgB,CAC9E,CAAC,EACD;IACE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACnB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CACF,CAAA;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,GAAG,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,eA2FvF;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,eA6CF"}
|