@adea-ai/ui 0.159.9 → 0.160.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -24
- package/dist/NOTICE +11 -12
- package/dist/components/composites/about-dialog/about-dialog.d.ts +1 -1
- package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
- package/dist/components/composites/about-dialog/about-dialog.js +26 -15
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.js +186 -175
- package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.js +114 -100
- package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +68 -61
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +1 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +82 -100
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +82 -73
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +185 -197
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +370 -343
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +219 -192
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.js.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.js +137 -117
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +4 -4
- package/dist/components/composites/appearance-editor/theme-preview.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +190 -175
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.js +162 -140
- package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +284 -274
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +104 -76
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.js +57 -54
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +158 -147
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.js +117 -116
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +230 -202
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts +2 -2
- package/dist/components/composites/context/context.d.ts.map +1 -1
- package/dist/components/composites/context/context.js +206 -195
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.d.ts +2 -2
- package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +275 -239
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/help-center/help-center.d.ts +1 -1
- package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
- package/dist/components/composites/help-center/help-center.js +138 -118
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +191 -165
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.d.ts +60 -60
- package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
- package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.js +123 -104
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts +8 -2
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +32 -34
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -6
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +53 -55
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js +111 -103
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +414 -406
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +11 -17
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.js +85 -105
- package/dist/components/composites/prompt-input/prompt-input.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +180 -188
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
- package/dist/components/composites/reasoning/reasoning.js +13 -18
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.js +98 -83
- package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
- package/dist/components/composites/settings/settings-layout.d.ts +2 -2
- package/dist/components/composites/settings/settings-layout.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-layout.js +15 -21
- package/dist/components/composites/settings/settings-layout.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +96 -72
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +154 -136
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +1 -1
- package/dist/components/composites/sources/sources.d.ts.map +1 -1
- package/dist/components/composites/sources/sources.js +155 -144
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +2 -2
- package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.js +386 -371
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +132 -116
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +16 -29
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/suggestion/suggestion.d.ts +3 -3
- package/dist/components/composites/suggestion/suggestion.d.ts.map +1 -1
- package/dist/components/composites/suggestion/suggestion.js +42 -43
- package/dist/components/composites/suggestion/suggestion.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.d.ts.map +1 -1
- package/dist/components/composites/task/task.js +150 -147
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts +2 -2
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +328 -286
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
- package/dist/components/composites/test-results/test-results.js +304 -266
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +2 -2
- package/dist/components/composites/tool/tool.d.ts.map +1 -1
- package/dist/components/composites/tool/tool.js +68 -68
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +6 -5
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +234 -215
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +50 -46
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts +2 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +353 -282
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +70 -69
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +41 -38
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.js +39 -21
- package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.js +2 -2
- package/dist/components/conversation/atomic/chat-composer.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts +2 -2
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +137 -137
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/chat-composer.d.ts +1 -1
- package/dist/components/conversation/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/chat-composer.js +5 -5
- package/dist/components/conversation/chat-composer.js.map +1 -1
- package/dist/components/conversation/composer-core.d.ts +2 -2
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.d.ts.map +1 -1
- package/dist/components/conversation/composer-menu.js +23 -23
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.d.ts +2 -2
- package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +28 -32
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +65 -59
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.d.ts +2 -1
- package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
- package/dist/components/conversation/conversation-surface.js +68 -72
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts +3 -2
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +267 -264
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts +2 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +82 -98
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +317 -316
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts.map +1 -1
- package/dist/components/conversation/paste-token-editor.js +210 -161
- package/dist/components/conversation/paste-token-editor.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +11 -9
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +124 -116
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts +3 -2
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +127 -132
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/layout/app-shell/app-shell.js +40 -34
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.d.ts +2 -2
- package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +22 -25
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +70 -40
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +6 -5
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.js +95 -83
- package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts +3 -3
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.js +29 -38
- package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +116 -103
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.d.ts +11 -11
- package/dist/components/layout/panel/panel.d.ts.map +1 -1
- package/dist/components/layout/panel/panel.js +98 -82
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.js +15 -15
- package/dist/components/layout/pixel-pane/pixel-pane.js.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +112 -105
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.d.ts +4 -2
- package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.js +32 -35
- package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts +2 -2
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.js +126 -120
- package/dist/components/layout/shell-top-bar/shell-top-bar.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts +8 -2
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +155 -138
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts +8 -2
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +231 -224
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts +2 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +64 -63
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts +2 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +64 -63
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts +2 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +330 -275
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +4 -4
- package/dist/components/layout/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/layout/status-bar/status-bar.js +42 -33
- package/dist/components/layout/status-bar/status-bar.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.d.ts +8 -8
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +96 -98
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.js +29 -34
- package/dist/components/layout/virtual-window/virtual-window.js.map +1 -1
- package/dist/components/motion/index.d.ts +1 -1
- package/dist/components/motion/index.d.ts.map +1 -1
- package/dist/components/motion/index.js +1 -1
- package/dist/components/motion/motion.d.ts +84 -0
- package/dist/components/motion/motion.d.ts.map +1 -0
- package/dist/components/motion/motion.js +198 -0
- package/dist/components/motion/motion.js.map +1 -0
- package/dist/components/motion/presence.d.ts +16 -7
- package/dist/components/motion/presence.d.ts.map +1 -1
- package/dist/components/motion/presence.js +75 -3
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +2 -2
- package/dist/components/theme/appearance-panel.d.ts.map +1 -1
- package/dist/components/theme/appearance-panel.js +156 -141
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.d.ts.map +1 -1
- package/dist/components/theme/lazy.js +3 -2
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +1 -1
- package/dist/components/theme/theme-context.d.ts.map +1 -1
- package/dist/components/theme/theme-context.js +2 -2
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-mode-toggle.d.ts +2 -2
- package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-mode-toggle.js +22 -17
- package/dist/components/theme/theme-mode-toggle.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +4 -4
- package/dist/components/theme/theme-picker.d.ts.map +1 -1
- package/dist/components/theme/theme-picker.js +145 -133
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +1 -1
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +48 -57
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-provider.d.ts +1 -1
- package/dist/components/theme/theme-provider.d.ts.map +1 -1
- package/dist/components/theme/theme-provider.js +1 -1
- package/dist/components/theme/theme-provider.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +2 -2
- package/dist/components/theme/theme-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-toggle.js +19 -12
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +25 -12
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion/accordion.js +42 -38
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +67 -53
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +59 -12
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +163 -136
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.js +80 -91
- package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +19 -22
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/ui/attachment/attachment.d.ts +1 -1
- package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment/attachment.js +202 -198
- package/dist/components/ui/attachment/attachment.js.map +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +4 -4
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar/avatar.js +61 -52
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +10 -3
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.js +22 -28
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.d.ts +1 -1
- package/dist/components/ui/board/board.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +259 -236
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +90 -75
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +47 -45
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.d.ts +18 -3
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +34 -25
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +4 -4
- package/dist/components/ui/button-group/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group/button-group.js +32 -32
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.d.ts +93 -39
- package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar/calendar.js +287 -193
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +3 -3
- package/dist/components/ui/callout/callout.d.ts.map +1 -1
- package/dist/components/ui/callout/callout.js +30 -33
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +8 -8
- package/dist/components/ui/card/card.d.ts.map +1 -1
- package/dist/components/ui/card/card.js +66 -58
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +8 -2
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js +115 -105
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts +7 -8
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +311 -245
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +47 -23
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +312 -356
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +263 -253
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/collapsible/collapsible.d.ts +20 -8
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible/collapsible.js +24 -27
- package/dist/components/ui/collapsible/collapsible.js.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +97 -13
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.js +302 -97
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/value-combobox.js +4 -7
- package/dist/components/ui/combobox/value-combobox.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +100 -36
- package/dist/components/ui/command/command.d.ts.map +1 -1
- package/dist/components/ui/command/command.js +377 -169
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +24 -12
- package/dist/components/ui/context-menu/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu/context-menu.js +45 -14
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +110 -102
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +98 -28
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +257 -151
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +55 -14
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +201 -118
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts.map +1 -1
- package/dist/components/ui/diff-block/diff-block.js +111 -86
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +53 -19
- package/dist/components/ui/drawer/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/drawer.js +108 -83
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +60 -47
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +73 -188
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +219 -18
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js +556 -150
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +16 -27
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.d.ts +1 -1
- package/dist/components/ui/empty/empty.d.ts.map +1 -1
- package/dist/components/ui/empty/empty.js +57 -50
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts +2 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +71 -72
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts +53 -14
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +175 -110
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.d.ts +1 -1
- package/dist/components/ui/field/number-field.d.ts.map +1 -1
- package/dist/components/ui/field/number-field.js +14 -10
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +19 -4
- package/dist/components/ui/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card/hover-card.js +80 -17
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input/input-control.d.ts +4 -3
- package/dist/components/ui/input/input-control.d.ts.map +1 -1
- package/dist/components/ui/input/input-control.js +16 -20
- package/dist/components/ui/input/input-control.js.map +1 -1
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/input/input.js +42 -47
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/input-group.js +119 -132
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.js +11 -17
- package/dist/components/ui/input-group/secret-input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +23 -9
- package/dist/components/ui/input-otp/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp/input-otp.js +60 -67
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +105 -101
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +4 -4
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +25 -24
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +5 -5
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/label/label.js +15 -13
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.d.ts +1 -1
- package/dist/components/ui/marker/marker.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +72 -74
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +37 -23
- package/dist/components/ui/menubar/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar/menubar.js +76 -39
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +281 -250
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts +18 -17
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +95 -106
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +2 -2
- package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select/native-select.js +93 -93
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +45 -44
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +215 -96
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.d.ts +36 -16
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination/pagination.js +86 -68
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts +51 -10
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +204 -37
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts +23 -5
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +52 -32
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +351 -338
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +27 -6
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +202 -145
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/index.d.ts +1 -1
- package/dist/components/ui/resizable/index.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +55 -9
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.js +104 -81
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +2 -2
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +22 -28
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +104 -24
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/select/select.js +304 -111
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/separator/separator.d.ts +13 -3
- package/dist/components/ui/separator/separator.d.ts.map +1 -1
- package/dist/components/ui/separator/separator.js +11 -9
- package/dist/components/ui/separator/separator.js.map +1 -1
- package/dist/components/ui/sheet/index.js +3 -1
- package/dist/components/ui/sheet/sheet.d.ts +34 -9
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +144 -106
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +2 -2
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.js +13 -10
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +27 -8
- package/dist/components/ui/slider/slider.d.ts.map +1 -1
- package/dist/components/ui/slider/slider.js +74 -60
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +2 -2
- package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner/spinner.js +23 -18
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +69 -55
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts +31 -15
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +275 -325
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/table/table.d.ts +10 -10
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/table.js +96 -79
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +32 -8
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.js +80 -63
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/text-link/text-link.d.ts +2 -2
- package/dist/components/ui/text-link/text-link.d.ts.map +1 -1
- package/dist/components/ui/text-link/text-link.js +16 -16
- package/dist/components/ui/text-link/text-link.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +3 -2
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.js +39 -49
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts +30 -8
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +188 -86
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +9 -5
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.js +18 -17
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.d.ts +27 -11
- package/dist/components/ui/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.js +30 -32
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +8 -6
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.js +33 -16
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts +2 -2
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.js +27 -28
- package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +142 -16
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +255 -254
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +245 -250
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +11 -4
- package/dist/components/ui/typography/typography.d.ts.map +1 -1
- package/dist/components/ui/typography/typography.js +8 -19
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/lib/async-action.d.ts.map +1 -1
- package/dist/lib/async-action.js +1 -1
- package/dist/lib/async-action.js.map +1 -1
- package/dist/lib/create-poll.d.ts.map +1 -1
- package/dist/lib/create-poll.js +11 -10
- package/dist/lib/create-poll.js.map +1 -1
- package/dist/lib/events.d.ts +1 -1
- package/dist/lib/events.d.ts.map +1 -1
- package/dist/lib/events.js.map +1 -1
- package/dist/lib/fast-icon.d.ts +2 -2
- package/dist/lib/fast-icon.d.ts.map +1 -1
- package/dist/lib/fast-icon.js +8 -7
- package/dist/lib/fast-icon.js.map +1 -1
- package/dist/lib/form-field.d.ts +12 -10
- package/dist/lib/form-field.d.ts.map +1 -1
- package/dist/lib/form-field.js +12 -8
- package/dist/lib/form-field.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +4 -1
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +24 -5
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +41 -6
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/refs.d.ts +13 -0
- package/dist/lib/refs.d.ts.map +1 -0
- package/dist/lib/refs.js +22 -0
- package/dist/lib/refs.js.map +1 -0
- package/dist/lib/resize-separator.d.ts +1 -1
- package/dist/lib/resize-separator.d.ts.map +1 -1
- package/dist/lib/resize-separator.js +1 -1
- package/dist/lib/resize-separator.js.map +1 -1
- package/dist/lib/slotted.d.ts +14 -0
- package/dist/lib/slotted.d.ts.map +1 -0
- package/dist/lib/slotted.js +19 -0
- package/dist/lib/slotted.js.map +1 -0
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/lint.js +11 -4
- package/dist/lint.js.map +1 -1
- package/dist/r/about-dialog.json +1 -1
- package/dist/r/accent-picker.json +2 -1
- package/dist/r/accordion.json +3 -2
- package/dist/r/account-menu.json +2 -1
- package/dist/r/action-button.json +1 -1
- package/dist/r/alert-dialog.json +3 -1
- package/dist/r/alert.json +2 -1
- package/dist/r/annotation-surface.json +3 -1
- package/dist/r/app-shell.json +3 -1
- package/dist/r/appearance-editor.json +3 -2
- package/dist/r/aspect-ratio.json +3 -1
- package/dist/r/attachment.json +2 -1
- package/dist/r/avatar.json +3 -1
- package/dist/r/badge.json +1 -1
- package/dist/r/board.json +3 -1
- package/dist/r/breadcrumb.json +2 -1
- package/dist/r/bubble.json +3 -1
- package/dist/r/button-group.json +3 -1
- package/dist/r/button.json +1 -1
- package/dist/r/calendar.json +3 -2
- package/dist/r/callout.json +3 -1
- package/dist/r/card.json +3 -1
- package/dist/r/carousel.json +3 -3
- package/dist/r/catalog-browser.json +3 -2
- package/dist/r/chain-of-thought.json +2 -1
- package/dist/r/chart.json +2 -2
- package/dist/r/chat.json +2 -1
- package/dist/r/checkbox.json +2 -2
- package/dist/r/checkpoint.json +2 -1
- package/dist/r/code-block.json +2 -1
- package/dist/r/collapsible.json +2 -1
- package/dist/r/combobox.json +3 -2
- package/dist/r/command.json +4 -3
- package/dist/r/confirmation.json +2 -1
- package/dist/r/context-menu.json +3 -3
- package/dist/r/context.json +2 -1
- package/dist/r/contextual-sidebar.json +3 -1
- package/dist/r/conversation.json +3 -2
- package/dist/r/detail-panel.json +2 -1
- package/dist/r/dialog.json +3 -2
- package/dist/r/diff-block.json +3 -1
- package/dist/r/drawer.json +3 -1
- package/dist/r/dropdown-menu.json +3 -2
- package/dist/r/empty.json +2 -1
- package/dist/r/entity-icon.json +3 -1
- package/dist/r/field.json +2 -1
- package/dist/r/file-tree.json +2 -1
- package/dist/r/floating-preview.json +2 -1
- package/dist/r/help-center.json +1 -1
- package/dist/r/hover-card.json +3 -1
- package/dist/r/icon-picker.json +2 -1
- package/dist/r/inline-citation.json +1 -1
- package/dist/r/input-group.json +3 -1
- package/dist/r/input-otp.json +2 -1
- package/dist/r/input.json +4 -1
- package/dist/r/item.json +3 -1
- package/dist/r/kbd.json +3 -1
- package/dist/r/label.json +3 -1
- package/dist/r/lib.json +10 -0
- package/dist/r/list-row.json +1 -1
- package/dist/r/marker.json +3 -1
- package/dist/r/menubar.json +2 -1
- package/dist/r/message-scroller.json +2 -1
- package/dist/r/message.json +2 -1
- package/dist/r/modal-dialog.json +3 -1
- package/dist/r/model-selector.json +2 -1
- package/dist/r/motion.json +6 -1
- package/dist/r/native-select.json +2 -1
- package/dist/r/navigation-menu.json +3 -2
- package/dist/r/orbit-layout.json +3 -1
- package/dist/r/page.json +3 -1
- package/dist/r/pagination.json +3 -2
- package/dist/r/panel.json +3 -1
- package/dist/r/pixel-pane.json +3 -1
- package/dist/r/pixel-resize-handle.json +1 -1
- package/dist/r/plan.json +2 -1
- package/dist/r/popover.json +5 -1
- package/dist/r/progress.json +2 -1
- package/dist/r/prompt-input.json +2 -1
- package/dist/r/questionnaire.json +2 -1
- package/dist/r/queue.json +2 -1
- package/dist/r/radio-group.json +3 -2
- package/dist/r/reasoning.json +2 -1
- package/dist/r/registry.json +315 -151
- package/dist/r/resizable.json +3 -2
- package/dist/r/scene-controls.json +2 -1
- package/dist/r/scroll-area.json +3 -1
- package/dist/r/select.json +3 -2
- package/dist/r/separator.json +2 -1
- package/dist/r/settings.json +2 -2
- package/dist/r/sheet.json +4 -2
- package/dist/r/shell-rail.json +2 -1
- package/dist/r/shell-top-bar.json +3 -1
- package/dist/r/side-rail.json +1 -1
- package/dist/r/sidebar-nav.json +2 -2
- package/dist/r/skeleton.json +3 -1
- package/dist/r/slider.json +2 -1
- package/dist/r/sources.json +1 -1
- package/dist/r/spinner.json +2 -1
- package/dist/r/split-layout.json +2 -1
- package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/dist/r/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/dist/r/src/components/composites/action-button/action-button.tsx +75 -52
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/dist/r/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/dist/r/src/components/composites/chat/chat.tsx +12 -14
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/dist/r/src/components/composites/context/context.tsx +10 -4
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/dist/r/src/components/composites/help-center/help-center.tsx +1 -1
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/dist/r/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/dist/r/src/components/composites/list-row/list-row.tsx +10 -19
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/dist/r/src/components/composites/plan/plan.tsx +11 -15
- package/dist/r/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/dist/r/src/components/composites/queue/queue.tsx +18 -20
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/dist/r/src/components/composites/settings/settings-layout.tsx +10 -8
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/dist/r/src/components/composites/settings/settings.tsx +19 -13
- package/dist/r/src/components/composites/sources/sources.tsx +8 -6
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/dist/r/src/components/composites/stat/stat.tsx +19 -12
- package/dist/r/src/components/composites/subagent/subagent.tsx +8 -5
- package/dist/r/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/dist/r/src/components/composites/task/task.tsx +12 -24
- package/dist/r/src/components/composites/terminal/terminal.tsx +36 -38
- package/dist/r/src/components/composites/test-results/test-results.tsx +59 -64
- package/dist/r/src/components/composites/tool/tool.tsx +9 -6
- package/dist/r/src/components/composites/tree/tree.tsx +88 -52
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/dist/r/src/components/conversation/busy-send-button.tsx +2 -2
- package/dist/r/src/components/conversation/chat-composer.tsx +2 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +6 -4
- package/dist/r/src/components/conversation/conversation-avatar.tsx +6 -5
- package/dist/r/src/components/conversation/conversation-pane.tsx +4 -10
- package/dist/r/src/components/conversation/conversation-surface.tsx +12 -8
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/dist/r/src/components/conversation/message-composer.tsx +14 -9
- package/dist/r/src/components/conversation/message-row.tsx +19 -14
- package/dist/r/src/components/conversation/paste-token-editor.tsx +106 -54
- package/dist/r/src/components/conversation/scroll-follow.ts +125 -112
- package/dist/r/src/components/conversation/thread-panel.tsx +10 -7
- package/dist/r/src/components/conversation/transcript-composition.tsx +14 -16
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/dist/r/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/dist/r/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/dist/r/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/dist/r/src/components/layout/page/page.tsx +16 -9
- package/dist/r/src/components/layout/panel/panel.tsx +22 -12
- package/dist/r/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/dist/r/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/dist/r/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/dist/r/src/components/motion/index.ts +7 -1
- package/dist/r/src/components/motion/motion.tsx +322 -0
- package/dist/r/src/components/motion/presence.tsx +95 -7
- package/dist/r/src/components/theme/appearance-panel.tsx +11 -9
- package/dist/r/src/components/theme/lazy.ts +3 -2
- package/dist/r/src/components/theme/theme-context.ts +6 -4
- package/dist/r/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/dist/r/src/components/theme/theme-picker.tsx +9 -6
- package/dist/r/src/components/theme/theme-provider-value.ts +117 -97
- package/dist/r/src/components/theme/theme-toggle.tsx +5 -4
- package/dist/r/src/components/ui/accordion/accordion.tsx +71 -35
- package/dist/r/src/components/ui/alert/alert.tsx +11 -7
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/dist/r/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/dist/r/src/components/ui/attachment/attachment.tsx +10 -6
- package/dist/r/src/components/ui/avatar/avatar.tsx +24 -10
- package/dist/r/src/components/ui/badge/badge.tsx +19 -12
- package/dist/r/src/components/ui/board/board.tsx +55 -48
- package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/dist/r/src/components/ui/bubble/bubble.tsx +4 -9
- package/dist/r/src/components/ui/button/button.tsx +42 -32
- package/dist/r/src/components/ui/button-group/button-group.tsx +8 -5
- package/dist/r/src/components/ui/calendar/calendar.tsx +382 -180
- package/dist/r/src/components/ui/callout/callout.tsx +6 -4
- package/dist/r/src/components/ui/card/card.tsx +16 -9
- package/dist/r/src/components/ui/carousel/carousel.tsx +38 -20
- package/dist/r/src/components/ui/chart/chart.tsx +149 -93
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/dist/r/src/components/ui/code-block/code-block.tsx +61 -59
- package/dist/r/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/dist/r/src/components/ui/combobox/combobox.tsx +395 -73
- package/dist/r/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/dist/r/src/components/ui/command/command.tsx +416 -175
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/dist/r/src/components/ui/dialog/dialog.tsx +225 -95
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/dist/r/src/components/ui/drawer/drawer.tsx +113 -41
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/dist/r/src/components/ui/empty/empty-state.tsx +9 -7
- package/dist/r/src/components/ui/empty/empty.tsx +14 -8
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/dist/r/src/components/ui/field/field.tsx +165 -55
- package/dist/r/src/components/ui/field/number-field.tsx +21 -5
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/dist/r/src/components/ui/input/input-control.tsx +6 -4
- package/dist/r/src/components/ui/input/input.tsx +7 -5
- package/dist/r/src/components/ui/input-group/input-group.tsx +20 -12
- package/dist/r/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/dist/r/src/components/ui/item/item.tsx +15 -9
- package/dist/r/src/components/ui/kbd/kbd.tsx +8 -5
- package/dist/r/src/components/ui/label/label.tsx +7 -6
- package/dist/r/src/components/ui/marker/marker.tsx +7 -4
- package/dist/r/src/components/ui/menubar/menubar.tsx +101 -49
- package/dist/r/src/components/ui/message/message.tsx +24 -38
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/dist/r/src/components/ui/native-select/native-select.tsx +30 -19
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/dist/r/src/components/ui/pagination/pagination.tsx +153 -88
- package/dist/r/src/components/ui/popover/popover.tsx +252 -49
- package/dist/r/src/components/ui/progress/progress.tsx +64 -22
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/dist/r/src/components/ui/resizable/index.ts +3 -0
- package/dist/r/src/components/ui/resizable/resizable.tsx +157 -60
- package/dist/r/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/dist/r/src/components/ui/select/select.tsx +403 -106
- package/dist/r/src/components/ui/separator/separator.tsx +33 -6
- package/dist/r/src/components/ui/sheet/sheet.tsx +144 -64
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/dist/r/src/components/ui/slider/slider.tsx +112 -64
- package/dist/r/src/components/ui/spinner/spinner.tsx +9 -5
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/dist/r/src/components/ui/switch/switch.tsx +203 -201
- package/dist/r/src/components/ui/table/table.tsx +20 -11
- package/dist/r/src/components/ui/tabs/tabs.tsx +93 -34
- package/dist/r/src/components/ui/text-link/text-link.tsx +5 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +8 -5
- package/dist/r/src/components/ui/toast/toast.tsx +192 -83
- package/dist/r/src/components/ui/toggle/toggle.tsx +26 -9
- package/dist/r/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/dist/r/src/components/ui/trace/trace.tsx +17 -20
- package/dist/r/src/components/ui/typography/typography.tsx +17 -18
- package/dist/r/src/lib/async-action.ts +3 -1
- package/dist/r/src/lib/create-poll.ts +41 -38
- package/dist/r/src/lib/events.ts +1 -1
- package/dist/r/src/lib/fast-icon.ts +9 -13
- package/dist/r/src/lib/form-field.ts +36 -18
- package/dist/r/src/lib/keyed-rows.ts +4 -0
- package/dist/r/src/lib/overlay.ts +44 -5
- package/dist/r/src/lib/refs.ts +21 -0
- package/dist/r/src/lib/resize-separator.ts +4 -3
- package/dist/r/src/lib/slotted.ts +16 -0
- package/dist/r/src/styles/globals.css +7 -0
- package/dist/r/stack-trace.json +2 -1
- package/dist/r/stat.json +2 -1
- package/dist/r/status-bar.json +3 -1
- package/dist/r/status-chip.json +3 -1
- package/dist/r/subagent.json +2 -1
- package/dist/r/suggestion.json +3 -1
- package/dist/r/switch.json +1 -1
- package/dist/r/table.json +3 -1
- package/dist/r/tabs.json +2 -1
- package/dist/r/task.json +2 -1
- package/dist/r/terminal.json +2 -1
- package/dist/r/test-results.json +2 -1
- package/dist/r/text-link.json +3 -1
- package/dist/r/textarea.json +1 -0
- package/dist/r/theming.json +3 -2
- package/dist/r/toast.json +3 -2
- package/dist/r/toggle-group.json +2 -1
- package/dist/r/toggle.json +2 -1
- package/dist/r/tool.json +2 -1
- package/dist/r/tooltip.json +3 -1
- package/dist/r/top-bar.json +2 -1
- package/dist/r/trace.json +2 -1
- package/dist/r/tree.json +2 -1
- package/dist/r/typography.json +1 -1
- package/dist/r/update-dialog.json +2 -1
- package/dist/r/virtual-window.json +3 -1
- package/dist/r/workspace-mark.json +3 -1
- package/dist/r/workspace-switcher.json +2 -1
- package/dist/vite/tailwind-sources.js +2 -2
- package/dist/vite/tailwind-sources.js.map +1 -1
- package/package.json +14 -31
- package/registry.json +315 -151
- package/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/src/components/composites/action-button/action-button.tsx +75 -52
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/src/components/composites/chat/chat.tsx +12 -14
- package/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/src/components/composites/context/context.tsx +10 -4
- package/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/src/components/composites/help-center/help-center.tsx +1 -1
- package/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/src/components/composites/list-row/list-row.tsx +10 -19
- package/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/src/components/composites/plan/plan.tsx +11 -15
- package/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/src/components/composites/queue/queue.tsx +18 -20
- package/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/src/components/composites/settings/settings-layout.tsx +10 -8
- package/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/src/components/composites/settings/settings.tsx +19 -13
- package/src/components/composites/sources/sources.tsx +8 -6
- package/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/src/components/composites/stat/stat.tsx +19 -12
- package/src/components/composites/subagent/subagent.tsx +8 -5
- package/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/src/components/composites/task/task.tsx +12 -24
- package/src/components/composites/terminal/terminal.tsx +36 -38
- package/src/components/composites/test-results/test-results.tsx +59 -64
- package/src/components/composites/tool/tool.tsx +9 -6
- package/src/components/composites/tree/tree.tsx +88 -52
- package/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/src/components/conversation/busy-send-button.tsx +2 -2
- package/src/components/conversation/chat-composer.tsx +2 -2
- package/src/components/conversation/composer-menu.tsx +6 -4
- package/src/components/conversation/conversation-avatar.tsx +6 -5
- package/src/components/conversation/conversation-pane.tsx +4 -10
- package/src/components/conversation/conversation-surface.tsx +12 -8
- package/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/src/components/conversation/message-composer.tsx +14 -9
- package/src/components/conversation/message-row.tsx +19 -14
- package/src/components/conversation/paste-token-editor.tsx +106 -54
- package/src/components/conversation/scroll-follow.ts +125 -112
- package/src/components/conversation/thread-panel.tsx +10 -7
- package/src/components/conversation/transcript-composition.tsx +14 -16
- package/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/src/components/layout/page/page.tsx +16 -9
- package/src/components/layout/panel/panel.tsx +22 -12
- package/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/src/components/motion/index.ts +7 -1
- package/src/components/motion/motion.tsx +322 -0
- package/src/components/motion/presence.tsx +95 -7
- package/src/components/theme/appearance-panel.tsx +11 -9
- package/src/components/theme/lazy.ts +3 -2
- package/src/components/theme/theme-context.ts +6 -4
- package/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/src/components/theme/theme-picker.tsx +9 -6
- package/src/components/theme/theme-provider-value.ts +117 -97
- package/src/components/theme/theme-toggle.tsx +5 -4
- package/src/components/ui/accordion/accordion.tsx +71 -35
- package/src/components/ui/alert/alert.tsx +11 -7
- package/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/src/components/ui/attachment/attachment.tsx +10 -6
- package/src/components/ui/avatar/avatar.tsx +24 -10
- package/src/components/ui/badge/badge.tsx +19 -12
- package/src/components/ui/board/board.tsx +55 -48
- package/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/src/components/ui/bubble/bubble.tsx +4 -9
- package/src/components/ui/button/button.tsx +42 -32
- package/src/components/ui/button-group/button-group.tsx +8 -5
- package/src/components/ui/calendar/calendar.tsx +382 -180
- package/src/components/ui/callout/callout.tsx +6 -4
- package/src/components/ui/card/card.tsx +16 -9
- package/src/components/ui/carousel/carousel.tsx +38 -20
- package/src/components/ui/chart/chart.tsx +149 -93
- package/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/src/components/ui/code-block/code-block.tsx +61 -59
- package/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/src/components/ui/combobox/combobox.tsx +395 -73
- package/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/src/components/ui/command/command.tsx +416 -175
- package/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/src/components/ui/dialog/dialog.tsx +225 -95
- package/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/src/components/ui/drawer/drawer.tsx +113 -41
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/src/components/ui/empty/empty-state.tsx +9 -7
- package/src/components/ui/empty/empty.tsx +14 -8
- package/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/src/components/ui/field/field.tsx +165 -55
- package/src/components/ui/field/number-field.tsx +21 -5
- package/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/src/components/ui/input/input-control.tsx +6 -4
- package/src/components/ui/input/input.tsx +7 -5
- package/src/components/ui/input-group/input-group.tsx +20 -12
- package/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/src/components/ui/item/item.tsx +15 -9
- package/src/components/ui/kbd/kbd.tsx +8 -5
- package/src/components/ui/label/label.tsx +7 -6
- package/src/components/ui/marker/marker.tsx +7 -4
- package/src/components/ui/menubar/menubar.tsx +101 -49
- package/src/components/ui/message/message.tsx +24 -38
- package/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/src/components/ui/native-select/native-select.tsx +30 -19
- package/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/src/components/ui/pagination/pagination.tsx +153 -88
- package/src/components/ui/popover/popover.tsx +252 -49
- package/src/components/ui/progress/progress.tsx +64 -22
- package/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/src/components/ui/resizable/index.ts +3 -0
- package/src/components/ui/resizable/resizable.tsx +157 -60
- package/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/src/components/ui/select/select.tsx +403 -106
- package/src/components/ui/separator/separator.tsx +33 -6
- package/src/components/ui/sheet/sheet.tsx +144 -64
- package/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/src/components/ui/slider/slider.tsx +112 -64
- package/src/components/ui/spinner/spinner.tsx +9 -5
- package/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/src/components/ui/switch/switch.tsx +203 -201
- package/src/components/ui/table/table.tsx +20 -11
- package/src/components/ui/tabs/tabs.tsx +93 -34
- package/src/components/ui/text-link/text-link.tsx +5 -4
- package/src/components/ui/textarea/textarea.tsx +8 -5
- package/src/components/ui/toast/toast.tsx +192 -83
- package/src/components/ui/toggle/toggle.tsx +26 -9
- package/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/src/components/ui/trace/trace.tsx +17 -20
- package/src/components/ui/typography/typography.tsx +17 -18
- package/src/lib/async-action.ts +3 -1
- package/src/lib/create-poll.ts +41 -38
- package/src/lib/events.ts +1 -1
- package/src/lib/fast-icon.ts +9 -13
- package/src/lib/form-field.ts +36 -18
- package/src/lib/keyed-rows.ts +4 -0
- package/src/lib/overlay.ts +44 -5
- package/src/lib/refs.ts +21 -0
- package/src/lib/resize-separator.ts +4 -3
- package/src/lib/slotted.ts +16 -0
- package/src/lint/index.ts +20 -5
- package/src/styles/globals.css +7 -0
- package/src/testing/happy-dom-text.ts +30 -0
- package/src/testing/solid-transform.ts +19 -36
- package/src/vite/tailwind-sources.ts +2 -2
|
@@ -1,93 +1,111 @@
|
|
|
1
1
|
import { cn } from "../../../lib/utils.js";
|
|
2
2
|
import { fastIcon } from "../../../lib/fast-icon.js";
|
|
3
|
-
import { createComponent, memo, mergeProps, template } from "
|
|
4
|
-
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide
|
|
5
|
-
import { Show,
|
|
6
|
-
import { Pagination } from "@
|
|
3
|
+
import { createComponent, memo, mergeProps, template } from "@solidjs/web";
|
|
4
|
+
import { ChevronLeft, ChevronRight, MoreHorizontal } from "@lucide/solid";
|
|
5
|
+
import { For, Show, omit } from "solid-js";
|
|
6
|
+
import { Pagination, PaginationEllipsis, PaginationItem, PaginationLink, PaginationList, PaginationNext, PaginationPrevious } from "@ui-sdk/solid/pagination";
|
|
7
7
|
// src/components/ui/pagination/pagination.tsx
|
|
8
|
-
var _tmpl$ =
|
|
9
|
-
var _tmpl$2 =
|
|
10
|
-
var _tmpl$3 = /*#__PURE__*/ template(`<span class=visually-hidden>More pages`);
|
|
8
|
+
var _tmpl$ = /* @__PURE__ */ template(`<span class="hidden sm:inline">Previous`);
|
|
9
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<span class="hidden sm:inline">Next`);
|
|
11
10
|
var ChevronLeft$1 = fastIcon(ChevronLeft);
|
|
12
11
|
var ChevronRight$1 = fastIcon(ChevronRight);
|
|
13
12
|
var MoreHorizontal$1 = fastIcon(MoreHorizontal);
|
|
14
|
-
var paginationControl = cn("inline-flex h-control-md min-w-(--control-height-md) items-center justify-center gap-1 rounded-md border border-transparent px-2 text-sm tabular-nums", "transition-colors ease-out outline-none select-none", "hover:bg-surface-hover", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle", "disabled:pointer-events-none disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:size-4");
|
|
13
|
+
var paginationControl = cn("inline-flex h-control-md min-w-(--control-height-md) items-center justify-center gap-1 rounded-md border border-transparent px-2 text-sm tabular-nums", "transition-colors ease-out outline-none select-none", "hover:bg-surface-hover", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle", "disabled:pointer-events-none disabled:opacity-50", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "[&_svg]:pointer-events-none [&_svg]:size-4");
|
|
15
14
|
function Pagination$1(props) {
|
|
16
|
-
const
|
|
17
|
-
"class",
|
|
18
|
-
"itemComponent",
|
|
19
|
-
"ellipsisComponent",
|
|
20
|
-
"children"
|
|
21
|
-
]);
|
|
15
|
+
const rest = omit(props, "class", "itemComponent", "ellipsisComponent", "children", "count", "onPageChange", "siblingCount", "showFirst", "showLast");
|
|
22
16
|
return createComponent(Pagination, mergeProps({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return itemProps.page;
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
17
|
+
"aria-label": "Pagination",
|
|
18
|
+
get pageCount() {
|
|
19
|
+
return props.count;
|
|
20
|
+
},
|
|
21
|
+
get siblings() {
|
|
22
|
+
return props.siblingCount ?? 1;
|
|
32
23
|
},
|
|
33
|
-
get
|
|
34
|
-
return
|
|
24
|
+
get boundaries() {
|
|
25
|
+
return props.showFirst === false && props.showLast === false ? 0 : 1;
|
|
35
26
|
},
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
onPageChange: (page) => props.onPageChange?.(page),
|
|
28
|
+
get "class"() {
|
|
29
|
+
return cn("flex w-full items-center justify-center [&>ul]:m-0 [&>ul]:flex [&>ul]:list-none [&>ul]:items-center [&>ul]:gap-1 [&>ul]:p-0", props.class);
|
|
38
30
|
}
|
|
39
31
|
}, rest, { get children() {
|
|
40
|
-
return createComponent(Show, {
|
|
32
|
+
return createComponent(PaginationList, { children: (state) => createComponent(Show, {
|
|
41
33
|
get when() {
|
|
42
|
-
return
|
|
34
|
+
return props.children;
|
|
43
35
|
},
|
|
44
36
|
get fallback() {
|
|
45
|
-
return createComponent(DefaultPaginationControls, {
|
|
37
|
+
return createComponent(DefaultPaginationControls, { get items() {
|
|
38
|
+
return state.items;
|
|
39
|
+
} });
|
|
46
40
|
},
|
|
47
41
|
children: (childrenSlot) => memo(childrenSlot)
|
|
48
|
-
});
|
|
42
|
+
}) });
|
|
49
43
|
} }));
|
|
44
|
+
/** Previous, the numbered run, next: the arrangement every list view wants. */
|
|
45
|
+
function DefaultPaginationControls(state) {
|
|
46
|
+
return [
|
|
47
|
+
createComponent(PaginationPrevious$1, {}),
|
|
48
|
+
createComponent(For, {
|
|
49
|
+
get each() {
|
|
50
|
+
return state.items;
|
|
51
|
+
},
|
|
52
|
+
children: (item) => typeof item === "number" ? (props.itemComponent ?? defaultItem)({ page: item }) : (props.ellipsisComponent ?? defaultEllipsis)()
|
|
53
|
+
}),
|
|
54
|
+
createComponent(PaginationNext$1, {})
|
|
55
|
+
];
|
|
56
|
+
}
|
|
50
57
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
var defaultItem = (itemProps) => createComponent(PaginationItem$1, {
|
|
59
|
+
get page() {
|
|
60
|
+
return itemProps.page;
|
|
61
|
+
},
|
|
62
|
+
get children() {
|
|
63
|
+
return itemProps.page;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var defaultEllipsis = () => createComponent(PaginationEllipsis$1, {});
|
|
67
|
+
function PaginationPrevious$1(props) {
|
|
68
|
+
const rest = omit(props, "class", "children");
|
|
69
|
+
return createComponent(PaginationItem, { get children() {
|
|
70
|
+
return createComponent(PaginationPrevious, mergeProps({ get "class"() {
|
|
71
|
+
return cn(paginationControl, "ps-1.5", props.class);
|
|
72
|
+
} }, rest, { get children() {
|
|
73
|
+
return props.children ?? [createComponent(ChevronLeft$1, { class: "size-4" }), _tmpl$()];
|
|
74
|
+
} }));
|
|
75
|
+
} });
|
|
66
76
|
}
|
|
67
|
-
function PaginationNext(props) {
|
|
68
|
-
const
|
|
69
|
-
return createComponent(
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
function PaginationNext$1(props) {
|
|
78
|
+
const rest = omit(props, "class", "children");
|
|
79
|
+
return createComponent(PaginationItem, { get children() {
|
|
80
|
+
return createComponent(PaginationNext, mergeProps({ get "class"() {
|
|
81
|
+
return cn(paginationControl, "pe-1.5", props.class);
|
|
82
|
+
} }, rest, { get children() {
|
|
83
|
+
return props.children ?? [_tmpl$2(), createComponent(ChevronRight$1, { class: "size-4" })];
|
|
84
|
+
} }));
|
|
85
|
+
} });
|
|
74
86
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
87
|
+
/** One page of the run: a list item holding the page's button (or link, with `getHref`). */
|
|
88
|
+
function PaginationItem$1(props) {
|
|
89
|
+
const rest = omit(props, "class", "children");
|
|
90
|
+
return createComponent(PaginationItem, { get children() {
|
|
91
|
+
return createComponent(PaginationLink, mergeProps({ get "class"() {
|
|
92
|
+
return cn(paginationControl, "data-[current]:border-border data-[current]:bg-surface-active data-[current]:font-medium", props.class);
|
|
93
|
+
} }, rest, { get children() {
|
|
94
|
+
return props.children;
|
|
95
|
+
} }));
|
|
96
|
+
} });
|
|
82
97
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
98
|
+
/** A gap in the run. Hidden from screen readers, which hear the page numbers around it. */
|
|
99
|
+
function PaginationEllipsis$1(props) {
|
|
100
|
+
const rest = omit(props, "class", "children");
|
|
101
|
+
return createComponent(PaginationItem, { get children() {
|
|
102
|
+
return createComponent(PaginationEllipsis, mergeProps({ get "class"() {
|
|
103
|
+
return cn("flex size-control-md items-center justify-center", props.class);
|
|
104
|
+
} }, rest, { get children() {
|
|
105
|
+
return props.children ?? createComponent(MoreHorizontal$1, { class: "size-4" });
|
|
106
|
+
} }));
|
|
107
|
+
} });
|
|
90
108
|
}
|
|
91
|
-
export { Pagination$1 as Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious };
|
|
109
|
+
export { Pagination$1 as Pagination, PaginationEllipsis$1 as PaginationEllipsis, PaginationItem$1 as PaginationItem, PaginationNext$1 as PaginationNext, PaginationPrevious$1 as PaginationPrevious };
|
|
92
110
|
|
|
93
111
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","names":["Pagination","KobaltePagination","ChevronLeft","LucideChevronLeft","ChevronRight","LucideChevronRight","MoreHorizontal","LucideMoreHorizontal","Show","splitProps","cn","fastIcon","itemComponent","ellipsisComponent","class","children","paginationControl","props","local","rest","_$createComponent","_$mergeProps","itemProps","PaginationItem","page","PaginationEllipsis","when","fallback","DefaultPaginationControls","childrenSlot","_$memo","PaginationPrevious","Items","PaginationNext","Previous","_tmpl$","Next","_tmpl$2","Item","Ellipsis","_tmpl$3"],"sources":["../../../../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["import {\n Pagination as KobaltePagination,\n type PaginationRootOptions,\n} from '@kobalte/core/pagination'\nimport {\n ChevronLeft as LucideChevronLeft,\n ChevronRight as LucideChevronRight,\n MoreHorizontal as LucideMoreHorizontal,\n} from 'lucide-solid'\nimport type { ComponentProps, JSX } from 'solid-js'\nimport { Show, splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst ChevronLeft = fastIcon(LucideChevronLeft)\nconst ChevronRight = fastIcon(LucideChevronRight)\nconst MoreHorizontal = fastIcon(LucideMoreHorizontal)\n\n/**\n * Pagination.\n *\n * Page navigation for a list the server pages, not for a list the client already\n * holds — slicing an array you have is a filter, and it should not spend a round\n * trip.\n *\n * Kobalte computes the visible page window and the ellipsis positions and emits\n * `aria-current=\"page\"`, so the control announces which page is active instead of\n * leaving it to colour alone.\n *\n * The item and ellipsis renderers are *supplied here*, not required of the caller.\n * Kobalte's root makes them mandatory because it has no opinion about how a page\n * number should look; a design system does, so the only thing a caller has to pass\n * is `count` — while still being able to override either renderer when a view\n * needs to.\n */\nexport type PaginationProps = Omit<PaginationRootOptions, 'itemComponent' | 'ellipsisComponent'> & {\n itemComponent?: PaginationRootOptions['itemComponent']\n ellipsisComponent?: PaginationRootOptions['ellipsisComponent']\n class?: string\n children?: JSX.Element\n}\n\nconst paginationControl = cn(\n 'inline-flex h-control-md min-w-(--control-height-md) items-center justify-center gap-1 rounded-md border border-transparent px-2 text-sm tabular-nums',\n 'transition-colors ease-out outline-none select-none',\n 'hover:bg-surface-hover',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'disabled:pointer-events-none disabled:opacity-50',\n '[&_svg]:pointer-events-none [&_svg]:size-4'\n)\n\nexport function Pagination(props: PaginationProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'itemComponent',\n 'ellipsisComponent',\n 'children',\n ])\n\n return (\n <KobaltePagination\n itemComponent={\n local.itemComponent ??\n ((itemProps) => <PaginationItem page={itemProps.page}>{itemProps.page}</PaginationItem>)\n }\n ellipsisComponent={local.ellipsisComponent ?? (() => <PaginationEllipsis />)}\n // Kobalte renders the root as a `<nav>` wrapping a `<ul>`, and every control —\n // previous, the page run, next — is an `<li>` inside that list. The row has to be\n // declared on the list: on the `<nav>` alone it lays out one child and the\n // controls stack vertically.\n class={cn(\n 'flex w-full items-center justify-center [&>ul]:m-0 [&>ul]:flex [&>ul]:list-none [&>ul]:items-center [&>ul]:gap-1 [&>ul]:p-0',\n local.class\n )}\n {...rest}\n >\n <Show when={local.children} fallback={<DefaultPaginationControls />}>\n {(childrenSlot) => <>{childrenSlot()}</>}\n </Show>\n </KobaltePagination>\n )\n}\n\n/** Previous, the numbered run, next: the arrangement every list view wants. */\nfunction DefaultPaginationControls() {\n return (\n <>\n <PaginationPrevious />\n <KobaltePagination.Items />\n <PaginationNext />\n </>\n )\n}\n\nexport function PaginationPrevious(props: ComponentProps<typeof KobaltePagination.Previous>) {\n const [local, rest] = splitProps(props, ['class', 'children'])\n\n return (\n <KobaltePagination.Previous class={cn(paginationControl, 'ps-1.5', local.class)} {...rest}>\n {local.children ?? (\n <>\n <ChevronLeft class=\"size-4\" />\n <span class=\"hidden sm:inline\">Previous</span>\n </>\n )}\n </KobaltePagination.Previous>\n )\n}\n\nexport function PaginationNext(props: ComponentProps<typeof KobaltePagination.Next>) {\n const [local, rest] = splitProps(props, ['class', 'children'])\n\n return (\n <KobaltePagination.Next class={cn(paginationControl, 'pe-1.5', local.class)} {...rest}>\n {local.children ?? (\n <>\n <span class=\"hidden sm:inline\">Next</span>\n <ChevronRight class=\"size-4\" />\n </>\n )}\n </KobaltePagination.Next>\n )\n}\n\nexport function PaginationItem(props: ComponentProps<typeof KobaltePagination.Item>) {\n const [local, rest] = splitProps(props, ['class', 'children'])\n\n return (\n <KobaltePagination.Item\n class={cn(\n paginationControl,\n 'data-[current]:border-border data-[current]:bg-surface-active data-[current]:font-medium',\n local.class\n )}\n {...rest}\n >\n {local.children}\n </KobaltePagination.Item>\n )\n}\n\nexport function PaginationEllipsis(\n props: ComponentProps<typeof KobaltePagination.Ellipsis> & { children?: JSX.Element }\n) {\n const [local, rest] = splitProps(props, ['class', 'children'])\n\n return (\n <KobaltePagination.Ellipsis\n class={cn('flex size-control-md items-center justify-center', local.class)}\n {...rest}\n >\n {local.children ?? (\n <>\n <MoreHorizontal class=\"size-4\" />\n <span class=\"visually-hidden\">More pages</span>\n </>\n )}\n </KobaltePagination.Ellipsis>\n )\n}\n"],"mappings":";;;;;;;;;;AAeA,IAAME,gBAAcS,SAASR,WAAiB;AAC9C,IAAMC,iBAAeO,SAASN,YAAkB;AAChD,IAAMC,mBAAiBK,SAASJ,cAAoB;AA0BpD,IAAMS,oBAAoBN,GACxB,yJACA,uDACA,0BACA,oFACA,oDACA,4CACF;AAEA,SAAgBV,aAAWiB,OAAwB;CACjD,MAAM,CAACC,OAAOC,QAAQV,WAAWQ,OAAO;EACtC;EACA;EACA;EACA;CAAU,CACX;CAED,OAAAG,gBACGnB,YAAiBoB,WAAA;EAAA,IAChBT,gBAAa;GAAA,OACXM,MAAMN,mBACJU,cAASF,gBAAMG,gBAAc;IAAA,IAACC,OAAI;KAAA,OAAEF,UAAUE;IAAI;IAAA,IAAAT,WAAA;KAAA,OAAGO,UAAUE;IAAI;GAAA,CAAA;EAAmB;EAAA,IAE1FX,oBAAiB;GAAA,OAAEK,MAAML,4BAAsBO,gBAAOK,oBAAkB,CAAA,CAAA;EAAI;EAAA,KAAA,WAAA;GAAA,OAKrEf,GACL,+HACAQ,MAAMJ,KACR;EAAC;CAAA,GACGK,MAAI,EAAA,IAAAJ,WAAA;EAAA,OAAAK,gBAEPZ,MAAI;GAAA,IAACkB,OAAI;IAAA,OAAER,MAAMH;GAAQ;GAAA,IAAEY,WAAQ;IAAA,OAAAP,gBAAGQ,2BAAyB,CAAA,CAAA;GAAA;GAAAb,WAC5Dc,iBAAYC,KAAQD,YAAY;EAAM,CAAA;CAAA,EAAA,CAAA,CAAA;AAIhD;;AAGA,SAASD,4BAA4B;CACnC,OAAA;EAAAR,gBAEKW,oBAAkB,CAAA,CAAA;EAAAX,gBAClBnB,WAAkB+B,OAAK,CAAA,CAAA;EAAAZ,gBACvBa,gBAAc,CAAA,CAAA;CAAA;AAGrB;AAEA,SAAgBF,mBAAmBd,OAA0D;CAC3F,MAAM,CAACC,OAAOC,QAAQV,WAAWQ,OAAO,CAAC,SAAS,UAAU,CAAC;CAE7D,OAAAG,gBACGnB,WAAkBiC,UAAQb,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQX,GAAGM,mBAAmB,UAAUE,MAAMJ,KAAK;CAAC,EAAA,GAAMK,MAAI,EAAA,IAAAJ,WAAA;EAAA,OACtFG,MAAMH,YAAQ,CAAAK,gBAEVlB,eAAW,EAAA,SAAA,SAAA,CAAA,GAAAiC,OAAA,CAAA;CAGf,EAAA,CAAA,CAAA;AAGP;AAEA,SAAgBF,eAAehB,OAAsD;CACnF,MAAM,CAACC,OAAOC,QAAQV,WAAWQ,OAAO,CAAC,SAAS,UAAU,CAAC;CAE7D,OAAAG,gBACGnB,WAAkBmC,MAAIf,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQX,GAAGM,mBAAmB,UAAUE,MAAMJ,KAAK;CAAC,EAAA,GAAMK,MAAI,EAAA,IAAAJ,WAAA;EAAA,OAClFG,MAAMH,YAAQ,CAAAsB,QAAA,GAAAjB,gBAGVhB,gBAAY,EAAA,SAAA,SAAA,CAAA,CAAA;CAEhB,EAAA,CAAA,CAAA;AAGP;AAEA,SAAgBmB,eAAeN,OAAsD;CACnF,MAAM,CAACC,OAAOC,QAAQV,WAAWQ,OAAO,CAAC,SAAS,UAAU,CAAC;CAE7D,OAAAG,gBACGnB,WAAkBqC,MAAIjB,WAAA,EAAA,KAAA,WAAA;EAAA,OACdX,GACLM,mBACA,4FACAE,MAAMJ,KACR;CAAC,EAAA,GACGK,MAAI,EAAA,IAAAJ,WAAA;EAAA,OAEPG,MAAMH;CAAQ,EAAA,CAAA,CAAA;AAGrB;AAEA,SAAgBU,mBACdR,OACA;CACA,MAAM,CAACC,OAAOC,QAAQV,WAAWQ,OAAO,CAAC,SAAS,UAAU,CAAC;CAE7D,OAAAG,gBACGnB,WAAkBsC,UAAQlB,WAAA,EAAA,KAAA,WAAA;EAAA,OAClBX,GAAG,oDAAoDQ,MAAMJ,KAAK;CAAC,EAAA,GACtEK,MAAI,EAAA,IAAAJ,WAAA;EAAA,OAEPG,MAAMH,YAAQ,CAAAK,gBAEVd,kBAAc,EAAA,SAAA,SAAA,CAAA,GAAAkC,QAAA,CAAA;CAGlB,EAAA,CAAA,CAAA;AAGP"}
|
|
1
|
+
{"version":3,"file":"pagination.js","names":["<SdkPagination\n aria-label=\"Pagination\"\n pageCount={props.count}\n siblings={props.siblingCount ?? 1}\n // ui-sdk shows the same number of pages at both ends; hiding only one\n // end is not something it draws, so either flag keeps a boundary page.\n boundaries={props.showFirst === false && props.showLast === false ? 0 : 1}\n onPageChange={(page) => props.onPageChange?.(page)}\n // The root is a `<nav>` wrapping a `<ul>`, and every control — previous,\n // the page run, next — is an `<li>` inside that list. The row has to be\n // declared on the list: on the `<nav>` alone it lays out one child and\n // the controls stack vertically.\n class={cn(\n 'flex w-full items-center justify-center [&>ul]:m-0 [&>ul]:flex [&>ul]:list-none [&>ul]:items-center [&>ul]:gap-1 [&>ul]:p-0',\n props.class\n )}\n {...rest}\n >\n <SdkPaginationList>\n {(state) => (\n <Show when={props.children} fallback={<DefaultPaginationControls items={state.items} />}>\n {(childrenSlot) => <>{childrenSlot()}</>}\n </Show>\n )}\n </SdkPaginationList>\n </SdkPagination>","onPageChange={(page) => props.onPageChange?.(page)}","<SdkPaginationList>\n {(state) => (\n <Show when={props.children} fallback={<DefaultPaginationControls items={state.items} />}>\n {(childrenSlot) => <>{childrenSlot()}</>}\n </Show>\n )}\n </SdkPaginationList>","<Show when={props.children} fallback={<DefaultPaginationControls items={state.items} />}>\n {(childrenSlot) => <>{childrenSlot()}</>}\n </Show>","<DefaultPaginationControls items={state.items} />","{childrenSlot()}","<PaginationPrevious />","<For each={state.items}>\n {(item) =>\n typeof item === 'number'\n ? (props.itemComponent ?? defaultItem)({ page: item })\n : (props.ellipsisComponent ?? defaultEllipsis)()\n }\n </For>","<PaginationNext />","<PaginationItem page={itemProps.page}>{itemProps.page}</PaginationItem>","<PaginationEllipsis />","<SdkPaginationItem>\n <SdkPaginationPrevious\n class={cn(paginationControl, 'ps-1.5', props.class as string)}\n {...rest}\n >\n {props.children ?? (\n <>\n <ChevronLeft class=\"size-4\" />\n <span class=\"hidden sm:inline\">Previous</span>\n </>\n )}\n </SdkPaginationPrevious>\n </SdkPaginationItem>","<SdkPaginationPrevious\n class={cn(paginationControl, 'ps-1.5', props.class as string)}\n {...rest}\n >\n {props.children ?? (\n <>\n <ChevronLeft class=\"size-4\" />\n <span class=\"hidden sm:inline\">Previous</span>\n </>\n )}\n </SdkPaginationPrevious>","<ChevronLeft class=\"size-4\" />","class=\"size-4\"","<span class=\"hidden sm:inline\">Previous</span>","<SdkPaginationItem>\n <SdkPaginationNext class={cn(paginationControl, 'pe-1.5', props.class as string)} {...rest}>\n {props.children ?? (\n <>\n <span class=\"hidden sm:inline\">Next</span>\n <ChevronRight class=\"size-4\" />\n </>\n )}\n </SdkPaginationNext>\n </SdkPaginationItem>","<SdkPaginationNext class={cn(paginationControl, 'pe-1.5', props.class as string)} {...rest}>\n {props.children ?? (\n <>\n <span class=\"hidden sm:inline\">Next</span>\n <ChevronRight class=\"size-4\" />\n </>\n )}\n </SdkPaginationNext>","<span class=\"hidden sm:inline\">Next</span>","<ChevronRight class=\"size-4\" />","<SdkPaginationItem>\n <SdkPaginationLink\n class={cn(\n paginationControl,\n 'data-[current]:border-border data-[current]:bg-surface-active data-[current]:font-medium',\n props.class as string\n )}\n {...rest}\n >\n {props.children}\n </SdkPaginationLink>\n </SdkPaginationItem>","<SdkPaginationLink\n class={cn(\n paginationControl,\n 'data-[current]:border-border data-[current]:bg-surface-active data-[current]:font-medium',\n props.class as string\n )}\n {...rest}\n >\n {props.children}\n </SdkPaginationLink>","<SdkPaginationItem>\n <SdkPaginationEllipsis\n class={cn('flex size-control-md items-center justify-center', props.class as string)}\n {...rest}\n >\n {props.children ?? <MoreHorizontal class=\"size-4\" />}\n </SdkPaginationEllipsis>\n </SdkPaginationItem>","<SdkPaginationEllipsis\n class={cn('flex size-control-md items-center justify-center', props.class as string)}\n {...rest}\n >\n {props.children ?? <MoreHorizontal class=\"size-4\" />}\n </SdkPaginationEllipsis>","<MoreHorizontal class=\"size-4\" />","ChevronLeft","LucideChevronLeft","ChevronRight","LucideChevronRight","MoreHorizontal","LucideMoreHorizontal","Pagination","PaginationPrevious","PaginationNext","PaginationItem","PaginationEllipsis"],"sources":["../../../../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["import {\n Pagination as SdkPagination,\n PaginationEllipsis as SdkPaginationEllipsis,\n PaginationItem as SdkPaginationItem,\n PaginationLink as SdkPaginationLink,\n PaginationList as SdkPaginationList,\n PaginationNext as SdkPaginationNext,\n PaginationPrevious as SdkPaginationPrevious,\n} from '@ui-sdk/solid/pagination'\nimport {\n ChevronLeft as LucideChevronLeft,\n ChevronRight as LucideChevronRight,\n MoreHorizontal as LucideMoreHorizontal,\n} from '@lucide/solid'\nimport type { ComponentProps, JSX } from '@solidjs/web'\nimport { For, Show, omit } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst ChevronLeft = fastIcon(LucideChevronLeft)\nconst ChevronRight = fastIcon(LucideChevronRight)\nconst MoreHorizontal = fastIcon(LucideMoreHorizontal)\n\n/**\n * Pagination.\n *\n * Page navigation for a list the server pages, not for a list the client already\n * holds — slicing an array you have is a filter, and it should not spend a round\n * trip.\n *\n * ui-sdk's Pagination computes the visible page window and the ellipsis\n * positions and emits `aria-current=\"page\"`, so the control announces which\n * page is active instead of leaving it to colour alone. At either end the\n * Previous or Next step stays focusable and says it is unavailable with\n * `aria-disabled`, rather than dropping out of the tab order.\n *\n * The item and ellipsis renderers are *supplied here*, not required of the caller.\n * A headless primitive has no opinion about how a page number should look; a\n * design system does, so the only thing a caller has to pass is `count` — while\n * still being able to override either renderer when a view needs to.\n */\nexport type PaginationProps = Omit<\n ComponentProps<typeof SdkPagination>,\n | 'pageCount'\n | 'siblings'\n | 'boundaries'\n | 'onPageChange'\n | 'onChange'\n | 'children'\n | 'total'\n | 'pageSize'\n> & {\n /** How many pages there are. */\n count: number\n /** Called with the new page, from 1. */\n onPageChange?: (page: number) => void\n /** How many pages show on each side of the current one; 1 by default. */\n siblingCount?: number\n /** Whether the first page always shows; with `showLast`, both default to true. */\n showFirst?: boolean\n /** Whether the last page always shows. */\n showLast?: boolean\n /** Draws one page of the run; `PaginationItem` by default. */\n itemComponent?: (props: { page: number }) => JSX.Element\n /** Draws one gap in the run; `PaginationEllipsis` by default. */\n ellipsisComponent?: () => JSX.Element\n class?: string\n /** Replaces Previous, the page run and Next, inside the list. */\n children?: JSX.Element\n}\n\nconst paginationControl = cn(\n 'inline-flex h-control-md min-w-(--control-height-md) items-center justify-center gap-1 rounded-md border border-transparent px-2 text-sm tabular-nums',\n 'transition-colors ease-out outline-none select-none',\n 'hover:bg-surface-hover',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'disabled:pointer-events-none disabled:opacity-50',\n // A step at its end is `aria-disabled` and stays focusable, so it never\n // matches `:disabled`; it takes the same look from `data-disabled`.\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n '[&_svg]:pointer-events-none [&_svg]:size-4'\n)\n\nexport function Pagination(props: PaginationProps) {\n const rest = omit(\n props,\n 'class',\n 'itemComponent',\n 'ellipsisComponent',\n 'children',\n 'count',\n 'onPageChange',\n 'siblingCount',\n 'showFirst',\n 'showLast'\n )\n\n return (\n <SdkPagination\n aria-label=\"Pagination\"\n pageCount={props.count}\n siblings={props.siblingCount ?? 1}\n // ui-sdk shows the same number of pages at both ends; hiding only one\n // end is not something it draws, so either flag keeps a boundary page.\n boundaries={props.showFirst === false && props.showLast === false ? 0 : 1}\n onPageChange={(page) => props.onPageChange?.(page)}\n // The root is a `<nav>` wrapping a `<ul>`, and every control — previous,\n // the page run, next — is an `<li>` inside that list. The row has to be\n // declared on the list: on the `<nav>` alone it lays out one child and\n // the controls stack vertically.\n class={cn(\n 'flex w-full items-center justify-center [&>ul]:m-0 [&>ul]:flex [&>ul]:list-none [&>ul]:items-center [&>ul]:gap-1 [&>ul]:p-0',\n props.class\n )}\n {...rest}\n >\n <SdkPaginationList>\n {(state) => (\n <Show when={props.children} fallback={<DefaultPaginationControls items={state.items} />}>\n {(childrenSlot) => <>{childrenSlot()}</>}\n </Show>\n )}\n </SdkPaginationList>\n </SdkPagination>\n )\n\n /** Previous, the numbered run, next: the arrangement every list view wants. */\n function DefaultPaginationControls(state: { items: readonly (number | string)[] }) {\n return (\n <>\n <PaginationPrevious />\n <For each={state.items}>\n {(item) =>\n typeof item === 'number'\n ? (props.itemComponent ?? defaultItem)({ page: item })\n : (props.ellipsisComponent ?? defaultEllipsis)()\n }\n </For>\n <PaginationNext />\n </>\n )\n }\n}\n\nconst defaultItem = (itemProps: { page: number }) => (\n <PaginationItem page={itemProps.page}>{itemProps.page}</PaginationItem>\n)\nconst defaultEllipsis = () => <PaginationEllipsis />\n\ntype StepProps = ComponentProps<typeof SdkPaginationPrevious>\n\nexport function PaginationPrevious(props: StepProps) {\n const rest = omit(props, 'class', 'children')\n\n return (\n <SdkPaginationItem>\n <SdkPaginationPrevious\n class={cn(paginationControl, 'ps-1.5', props.class as string)}\n {...rest}\n >\n {props.children ?? (\n <>\n <ChevronLeft class=\"size-4\" />\n <span class=\"hidden sm:inline\">Previous</span>\n </>\n )}\n </SdkPaginationPrevious>\n </SdkPaginationItem>\n )\n}\n\nexport function PaginationNext(props: StepProps) {\n const rest = omit(props, 'class', 'children')\n\n return (\n <SdkPaginationItem>\n <SdkPaginationNext class={cn(paginationControl, 'pe-1.5', props.class as string)} {...rest}>\n {props.children ?? (\n <>\n <span class=\"hidden sm:inline\">Next</span>\n <ChevronRight class=\"size-4\" />\n </>\n )}\n </SdkPaginationNext>\n </SdkPaginationItem>\n )\n}\n\n/** One page of the run: a list item holding the page's button (or link, with `getHref`). */\nexport function PaginationItem(props: ComponentProps<typeof SdkPaginationLink>) {\n const rest = omit(props, 'class', 'children')\n\n return (\n <SdkPaginationItem>\n <SdkPaginationLink\n class={cn(\n paginationControl,\n 'data-[current]:border-border data-[current]:bg-surface-active data-[current]:font-medium',\n props.class as string\n )}\n {...rest}\n >\n {props.children}\n </SdkPaginationLink>\n </SdkPaginationItem>\n )\n}\n\n/** A gap in the run. Hidden from screen readers, which hear the page numbers around it. */\nexport function PaginationEllipsis(\n props: ComponentProps<typeof SdkPaginationEllipsis> & { children?: JSX.Element }\n) {\n const rest = omit(props, 'class', 'children')\n\n return (\n <SdkPaginationItem>\n <SdkPaginationEllipsis\n class={cn('flex size-control-md items-center justify-center', props.class as string)}\n {...rest}\n >\n {props.children ?? <MoreHorizontal class=\"size-4\" />}\n </SdkPaginationEllipsis>\n </SdkPaginationItem>\n )\n}\n"],"mappings":";;;;;;;;;AAoBA,IAAMyB,gBAAc,SAASC,WAAiB;AAC9C,IAAMC,iBAAe,SAASC,YAAkB;AAChD,IAAMC,mBAAiB,SAASC,cAAoB;AAkDpD,IAAM,oBAAoB,GACxB,yJACA,uDACA,0BACA,oFACA,oDAGA,kEACA,4CACF;AAEA,SAAgBC,aAAW,OAAwB;CACjD,MAAM,OAAO,KACX,OACA,SACA,iBACA,qBACA,YACA,SACA,gBACA,gBACA,aACA,UACF;CAEA,OACE/B,gBAAAA,YAAAA,WAAAA;EACE,cAAW;EACX,IAAA,YAAA;GAAW,OAAA,MAAM;EAAK;EACtB,IAAA,WAAA;GAAU,OAAA,MAAM,gBAAgB;EAAC;EAGjC,IAAA,aAAA;GAAY,OAAA,MAAM,cAAc,SAAS,MAAM,aAAa,QAAQ,IAAI;EAAC;EACzEC,eAAe,SAAS,MAAM,eAAe,IAAI;EAKjD,IAAA,UAAA;GAAO,OAAA,GACL,+HACA,MAAM,KACR;EAAC;CAUY,GATT,MAhBN,EAAA,IAAA,WAAA;EAkBEC,OAAAA,gBAAAA,gBAAAA,EAAAA,WACI,UACAC,gBAAAA,MAAAA;GAAM,IAAA,OAAA;IAAM,OAAA,MAAM;GAAQ;GAAE,IAAA,WAAA;IAAUC,OAAAA,gBAAAA,2BAAAA,EAA2B,IAAA,QAAA;KAAO,OAAA,MAAM;IAAK,EAAG,CAAA;GAAC;GAAvFD,WACI,iBAAmBE,KAAC,YAAc;EAChC,CAAA,EAES,CAAA;CACN,EAAA,CAAA,CAAA;;CAIjB,SAAS,0BAA0B,OAAgD;EACjF,OACI;GACAC,gBAAAA,sBAAAA,CAAqB,CAAA;GACrBC,gBAAAA,KAAAA;IAAK,IAAA,OAAA;KAAM,OAAA,MAAM;IAAK;IAAtBA,WACI,SACA,OAAO,SAAS,YACX,MAAM,iBAAiB,YAAA,CAAa,EAAE,MAAM,KAAK,CAAC,KAClD,MAAM,qBAAqB,gBAAA,CAAiB;GAEhD,CAAA;GACLC,gBAAAA,kBAAAA,CAAiB,CAAA;EARlB;CAWL;AACF;AAEA,IAAM,eAAe,cACnBC,gBAAAA,kBAAAA;CAAgB,IAAA,OAAA;EAAM,OAAA,UAAU;CAAI;CAApC,IAAA,WAAA;EAAuC,OAAA,UAAU;CAAqB;;AAExE,IAAM,wBAAwBC,gBAAAA,sBAAAA,CAAqB,CAAA;AAInD,SAAgBsB,qBAAmB,OAAkB;CACnD,MAAM,OAAO,KAAK,OAAO,SAAS,UAAU;CAE5C,OACErB,gBAAAA,gBAAAA,EAAAA,IAAAA,WAAAA;EACEC,OAAAA,gBAAAA,oBAAAA,WAAAA,EACE,IAAA,UAAA;GAAO,OAAA,GAAG,mBAAmB,UAAU,MAAM,KAAe;EAAC,EASxC,GARjB,MAFN,EAAA,IAAA,WAAA;GAIG,OAAA,MAAM,YACH,CACAC,gBAAAA,eAAAA,EAAaC,OAAM,SAAU,CAAA,GAC7BC,OAA6C,CAD9C;EAIkB,EAAA,CAAA,CAAA;CACN,EAAA,CAAA;AAEvB;AAEA,SAAgBkB,iBAAe,OAAkB;CAC/C,MAAM,OAAO,KAAK,OAAO,SAAS,UAAU;CAE5C,OACEjB,gBAAAA,gBAAAA,EAAAA,IAAAA,WAAAA;EACEC,OAAAA,gBAAAA,gBAAAA,WAAAA,EAAmB,IAAA,UAAA;GAAO,OAAA,GAAG,mBAAmB,UAAU,MAAM,KAAe;EAAC,EAO7D,GAPmE,MAAtF,EAAA,IAAA,WAAA;GACG,OAAA,MAAM,YACH,CACAC,QAAyC,GACzCC,gBAAAA,gBAAAA,EAAcL,OAAM,SAAU,CAAA,CAD/B;EAIc,EAAA,CAAA,CAAA;CACF,EAAA,CAAA;AAEvB;;AAGA,SAAgBoB,iBAAe,OAAiD;CAC9E,MAAM,OAAO,KAAK,OAAO,SAAS,UAAU;CAE5C,OACEd,gBAAAA,gBAAAA,EAAAA,IAAAA,WAAAA;EACEC,OAAAA,gBAAAA,gBAAAA,WAAAA,EACE,IAAA,UAAA;GAAO,OAAA,GACL,mBACA,4FACA,MAAM,KACR;EAAC,EAIgB,GAHb,MANN,EAAA,IAAA,WAAA;GAQG,OAAA,MAAM;EACU,EAAA,CAAA,CAAA;CACF,EAAA,CAAA;AAEvB;;AAGA,SAAgBc,qBACd,OACA;CACA,MAAM,OAAO,KAAK,OAAO,SAAS,UAAU;CAE5C,OACEb,gBAAAA,gBAAAA,EAAAA,IAAAA,WAAAA;EACEC,OAAAA,gBAAAA,oBAAAA,WAAAA,EACE,IAAA,UAAA;GAAO,OAAA,GAAG,oDAAoD,MAAM,KAAe;EAAC,EAI/D,GAHjB,MAFN,EAAA,IAAA,WAAA;GAIG,OAAA,MAAM,YAAYC,gBAAAA,kBAAAA,EAAgBV,OAAM,SAAU,CAAA;EAC9B,EAAA,CAAA,CAAA;CACN,EAAA,CAAA;AAEvB"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import { PopoverClose as UiPopoverClose, PopoverTrigger as UiPopoverTrigger, type PopoverContentState, type PopoverOptions } from '@ui-sdk/solid/popover';
|
|
2
|
+
import type { PartProps } from '@ui-sdk/solid/primitive';
|
|
3
|
+
import type { Anchor, ChangeDetails } from '@ui-sdk/core';
|
|
4
|
+
import type { Accessor } from 'solid-js';
|
|
5
|
+
import type { ComponentProps, JSX, ValidComponent } from '@solidjs/web';
|
|
6
|
+
import { type OverlayPlacementOptions, type WithAs } from '../tooltip/tooltip';
|
|
7
|
+
import { type LayerHandlers } from '../dialog/dialog-layer';
|
|
3
8
|
/**
|
|
4
9
|
* Popover.
|
|
5
10
|
*
|
|
@@ -9,16 +14,52 @@ import type { ComponentProps } from 'solid-js';
|
|
|
9
14
|
* carries the menu keyboard contract; for a sentence of explanation use
|
|
10
15
|
* Tooltip, which is not focusable and cannot hold a control.
|
|
11
16
|
*
|
|
12
|
-
*
|
|
13
|
-
* popovers, and dismissal on outside
|
|
17
|
+
* ui-sdk handles the anchoring, collision flipping, the top layer, the focus
|
|
18
|
+
* trap for modal popovers, and dismissal on outside press, focus leaving and
|
|
19
|
+
* Escape. The content renders into `<body>`, as it always has.
|
|
14
20
|
*/
|
|
15
|
-
export
|
|
16
|
-
|
|
21
|
+
export type PopoverProps = Omit<PopoverOptions, 'onOpenChange' | 'controller'> & OverlayPlacementOptions & {
|
|
22
|
+
children?: JSX.Element;
|
|
23
|
+
/** The popover wants to open or close. The second argument is ui-sdk's change details. */
|
|
24
|
+
onOpenChange?: (open: boolean, details: ChangeDetails<string>) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Positions the content against this instead of the trigger: an element, a
|
|
27
|
+
* point (`{ x, y }`) or anything with `getBoundingClientRect()`, such as a
|
|
28
|
+
* text selection's range. Read on every position check, so it can move.
|
|
29
|
+
*/
|
|
30
|
+
anchor?: Anchor;
|
|
31
|
+
/** Kobalte's form of `anchor`: an accessor for the element to position against. */
|
|
32
|
+
anchorRef?: Accessor<Anchor | undefined>;
|
|
33
|
+
};
|
|
34
|
+
export declare function Popover(props: PopoverProps): JSX.Element;
|
|
35
|
+
type PolymorphicPartProps<Tag extends keyof JSX.IntrinsicElements, State = object> = PartProps<Tag, State> & {
|
|
36
|
+
/** Render the part as this component, which must forward props and ref to its element. */
|
|
37
|
+
as?: ValidComponent;
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
export declare function PopoverTrigger(props: WithAs<ComponentProps<typeof UiPopoverTrigger>>): JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* An element the content is positioned against instead of the trigger: a
|
|
43
|
+
* whole row, say, while the trigger is an icon inside it.
|
|
44
|
+
*/
|
|
45
|
+
export declare function PopoverAnchor(props: JSX.HTMLAttributes<HTMLDivElement> & {
|
|
46
|
+
as?: ValidComponent;
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
}): JSX.Element;
|
|
49
|
+
export type PopoverContentProps = Omit<PartProps<'div', PopoverContentState>, 'class' | 'children' | keyof LayerHandlers | 'render'> & LayerHandlers & OverlayPlacementOptions & {
|
|
50
|
+
class?: string;
|
|
51
|
+
children?: JSX.Element;
|
|
17
52
|
/** Hide the caret pointing at the trigger. */
|
|
18
53
|
hideArrow?: boolean;
|
|
54
|
+
ref?: ((element: HTMLDivElement) => void) | HTMLDivElement;
|
|
19
55
|
};
|
|
20
|
-
export declare function PopoverContent(props: PopoverContentProps):
|
|
21
|
-
export declare function PopoverTitle(props:
|
|
22
|
-
|
|
23
|
-
|
|
56
|
+
export declare function PopoverContent(props: PopoverContentProps): JSX.Element;
|
|
57
|
+
export declare function PopoverTitle(props: PolymorphicPartProps<'h2'> & {
|
|
58
|
+
class?: string;
|
|
59
|
+
}): JSX.Element;
|
|
60
|
+
export declare function PopoverDescription(props: PolymorphicPartProps<'p'> & {
|
|
61
|
+
class?: string;
|
|
62
|
+
}): JSX.Element;
|
|
63
|
+
export declare function PopoverCloseButton(props: WithAs<ComponentProps<typeof UiPopoverClose>>): JSX.Element;
|
|
64
|
+
export {};
|
|
24
65
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,IAAI,cAAc,EAI9B,cAAc,IAAI,gBAAgB,EAClC,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAKvE,OAAO,EASL,KAAK,uBAAuB,EAC5B,KAAK,MAAM,EACZ,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAEL,KAAK,aAAa,EAKnB,MAAM,wBAAwB,CAAA;AAG/B;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,YAAY,CAAC,GAC5E,uBAAuB,GAAG;IACxB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,0FAA0F;IAC1F,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IACtE;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mFAAmF;IACnF,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;CACzC,CAAA;AA2BH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,eAqC1C;AAED,KAAK,oBAAoB,CAAC,GAAG,SAAS,MAAM,GAAG,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,IAAI,SAAS,CAC5F,GAAG,EACH,KAAK,CACN,GAAG;IACF,0FAA0F;IAC1F,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC,eAOpF;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,cAAc,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,eAc5F;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,SAAS,CAAC,KAAK,EAAE,mBAAmB,CAAC,EACrC,OAAO,GAAG,UAAU,GAAG,MAAM,aAAa,GAAG,QAAQ,CACtD,GACC,aAAa,GACb,uBAAuB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC,GAAG,cAAc,CAAA;CAC3D,CAAA;AAaH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,eA2DxD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,oBAAoB,CAAC,IAAI,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,eAQlF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,CAAC,GAAG,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,eAQvF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC,eAQtF"}
|
|
@@ -1,51 +1,218 @@
|
|
|
1
|
-
import { overlaySurface, popoverArrow, popoverMotion
|
|
1
|
+
import { overlaySurface, popoverArrow, popoverMotion } from "../../../lib/overlay.js";
|
|
2
2
|
import { cn } from "../../../lib/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ArrowGlyph, arrowPlacement, asRender, expandedDiv, overlayContainer, placementProps, triggerRender } from "../tooltip/tooltip.js";
|
|
4
|
+
import { LayerRootContext, createLayerRoot, layerHandlerProps, layerHandlers, useLayerContent } from "../dialog/dialog-layer.js";
|
|
5
|
+
import { forwardRef } from "../../../lib/refs.js";
|
|
6
|
+
import { Dynamic, createComponent, memo, mergeProps } from "@solidjs/web";
|
|
7
|
+
import { Show, createContext, createSignal, omit, useContext } from "solid-js";
|
|
8
|
+
import { Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, createPopoverController } from "@ui-sdk/solid/popover";
|
|
6
9
|
// src/components/ui/popover/popover.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
var PopoverPlacementContext = createContext(null);
|
|
11
|
+
/** The Kobalte-era options ui-sdk positions on its own, or does not take. */
|
|
12
|
+
var legacyRootProps = [
|
|
13
|
+
"flip",
|
|
14
|
+
"slide",
|
|
15
|
+
"overlap",
|
|
16
|
+
"sameWidth",
|
|
17
|
+
"fitViewport",
|
|
18
|
+
"hideWhenDetached",
|
|
19
|
+
"detachedPadding",
|
|
20
|
+
"arrowPadding",
|
|
21
|
+
"overflowPadding",
|
|
22
|
+
"preventScroll",
|
|
23
|
+
"forceMount",
|
|
24
|
+
"id",
|
|
25
|
+
"translations"
|
|
26
|
+
];
|
|
27
|
+
function Popover$1(props) {
|
|
28
|
+
const controller = createPopoverController();
|
|
29
|
+
const layer = createLayerRoot(() => controller.close({ reason: "escape-key" }));
|
|
30
|
+
const [anchor, setAnchor] = createSignal();
|
|
31
|
+
const rest = omit(props, "children", "onOpenChange", "placement", "gutter", "shift", "anchor", "anchorRef", ...legacyRootProps);
|
|
32
|
+
return createComponent(PopoverPlacementContext, {
|
|
33
|
+
value: {
|
|
34
|
+
placement: () => ({
|
|
35
|
+
placement: props.placement,
|
|
36
|
+
gutter: props.gutter,
|
|
37
|
+
shift: props.shift
|
|
38
|
+
}),
|
|
39
|
+
anchor: () => props.anchor ?? props.anchorRef?.() ?? anchor(),
|
|
40
|
+
setAnchor: (element) => setAnchor(() => element)
|
|
41
|
+
},
|
|
42
|
+
get children() {
|
|
43
|
+
return createComponent(Popover, mergeProps({ modal: false }, rest, {
|
|
44
|
+
controller,
|
|
45
|
+
onOpenChange: (open, details) => {
|
|
46
|
+
if (layer.refuses(open, details)) return details.cancel();
|
|
47
|
+
props.onOpenChange?.(open, details);
|
|
48
|
+
},
|
|
49
|
+
get children() {
|
|
50
|
+
return createComponent(LayerRootContext, {
|
|
51
|
+
value: layer,
|
|
52
|
+
get children() {
|
|
53
|
+
return props.children;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function PopoverTrigger$1(props) {
|
|
62
|
+
return createComponent(PopoverTrigger, mergeProps(() => {
|
|
63
|
+
return omit(props, "as");
|
|
64
|
+
}, { get render() {
|
|
65
|
+
return triggerRender(props.as, "button", () => props["data-slot"]);
|
|
66
|
+
} }));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* An element the content is positioned against instead of the trigger: a
|
|
70
|
+
* whole row, say, while the trigger is an icon inside it.
|
|
71
|
+
*/
|
|
72
|
+
function PopoverAnchor(props) {
|
|
73
|
+
const context = useContext(PopoverPlacementContext);
|
|
74
|
+
const rest = omit(props, "as", "ref");
|
|
75
|
+
return createComponent(Dynamic, mergeProps({ get component() {
|
|
76
|
+
return props.as ?? "div";
|
|
77
|
+
} }, rest, { ref: (element) => {
|
|
78
|
+
context?.setAnchor(element);
|
|
79
|
+
forwardRef(() => props.ref, element);
|
|
80
|
+
} }));
|
|
81
|
+
}
|
|
82
|
+
var contentOwnProps = [
|
|
83
|
+
"class",
|
|
84
|
+
"hideArrow",
|
|
85
|
+
"children",
|
|
86
|
+
"ref",
|
|
87
|
+
"placement",
|
|
88
|
+
"gutter",
|
|
89
|
+
"shift",
|
|
90
|
+
...layerHandlerProps
|
|
91
|
+
];
|
|
92
|
+
function PopoverContent$1(props) {
|
|
93
|
+
const context = useContext(PopoverPlacementContext);
|
|
94
|
+
let content;
|
|
95
|
+
const rest = omit(props, ...contentOwnProps);
|
|
96
|
+
const focus = useLayerContent({
|
|
97
|
+
content: () => content,
|
|
98
|
+
handlers: layerHandlers(props)
|
|
99
|
+
});
|
|
100
|
+
const placement = () => {
|
|
101
|
+
const root = context?.placement() ?? {};
|
|
102
|
+
return placementProps({
|
|
103
|
+
placement: props.placement ?? root.placement,
|
|
104
|
+
gutter: props.gutter ?? root.gutter,
|
|
105
|
+
shift: props.shift ?? root.shift
|
|
106
|
+
}, {
|
|
107
|
+
placement: "bottom",
|
|
108
|
+
gutter: 0
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
return createComponent(PopoverContent, mergeProps({
|
|
112
|
+
get container() {
|
|
113
|
+
return overlayContainer();
|
|
114
|
+
},
|
|
115
|
+
get anchor() {
|
|
116
|
+
return context?.anchor();
|
|
117
|
+
},
|
|
118
|
+
get side() {
|
|
119
|
+
return placement().side;
|
|
120
|
+
},
|
|
121
|
+
get align() {
|
|
122
|
+
return placement().align;
|
|
123
|
+
},
|
|
124
|
+
get sideOffset() {
|
|
125
|
+
return placement().sideOffset + (props.hideArrow ? 0 : 15);
|
|
126
|
+
},
|
|
127
|
+
get alignOffset() {
|
|
128
|
+
return placement().alignOffset;
|
|
129
|
+
},
|
|
130
|
+
get initialFocus() {
|
|
131
|
+
return focus.initialFocus();
|
|
132
|
+
},
|
|
133
|
+
get finalFocus() {
|
|
134
|
+
return focus.finalFocus();
|
|
135
|
+
},
|
|
136
|
+
ref: (element) => {
|
|
137
|
+
content = element;
|
|
138
|
+
forwardRef(() => props.ref, element);
|
|
139
|
+
},
|
|
140
|
+
get "class"() {
|
|
141
|
+
return cn(overlaySurface, popoverMotion, "z-(--z-menu) w-72 origin-(--transform-origin)", "p-1", props.class);
|
|
142
|
+
},
|
|
143
|
+
render: expandedDiv
|
|
144
|
+
}, rest, { get children() {
|
|
145
|
+
return [
|
|
146
|
+
createComponent(Show, {
|
|
147
|
+
get when() {
|
|
148
|
+
return memo(() => {
|
|
149
|
+
return !props["aria-labelledby"];
|
|
150
|
+
})() && props["aria-label"];
|
|
151
|
+
},
|
|
152
|
+
children: (label) => createComponent(PopoverTitle, {
|
|
153
|
+
class: "sr-only",
|
|
154
|
+
get children() {
|
|
155
|
+
return label();
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
}),
|
|
159
|
+
memo(() => {
|
|
160
|
+
return props.children;
|
|
161
|
+
}),
|
|
162
|
+
createComponent(Show, {
|
|
18
163
|
get when() {
|
|
19
|
-
return !
|
|
164
|
+
return !props.hideArrow;
|
|
20
165
|
},
|
|
21
166
|
get children() {
|
|
22
|
-
return createComponent(
|
|
23
|
-
"
|
|
24
|
-
|
|
167
|
+
return createComponent(PopoverArrow, {
|
|
168
|
+
get "class"() {
|
|
169
|
+
return cn(arrowPlacement, popoverArrow);
|
|
170
|
+
},
|
|
171
|
+
get children() {
|
|
172
|
+
return createComponent(ArrowGlyph, {});
|
|
173
|
+
}
|
|
25
174
|
});
|
|
26
175
|
}
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
} });
|
|
176
|
+
})
|
|
177
|
+
];
|
|
178
|
+
} }));
|
|
30
179
|
}
|
|
31
|
-
function PopoverTitle(props) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
180
|
+
function PopoverTitle$1(props) {
|
|
181
|
+
return createComponent(PopoverTitle, mergeProps({
|
|
182
|
+
get "class"() {
|
|
183
|
+
return cn("px-2 pt-1 pb-1.5 text-sm font-medium", props.class);
|
|
184
|
+
},
|
|
185
|
+
get render() {
|
|
186
|
+
return asRender(props.as, () => props["data-slot"]);
|
|
187
|
+
}
|
|
188
|
+
}, () => {
|
|
189
|
+
return omit(props, "class", "as");
|
|
190
|
+
}));
|
|
36
191
|
}
|
|
37
|
-
function PopoverDescription(props) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
192
|
+
function PopoverDescription$1(props) {
|
|
193
|
+
return createComponent(PopoverDescription, mergeProps({
|
|
194
|
+
get "class"() {
|
|
195
|
+
return cn("text-muted-foreground px-2 pb-1.5 text-sm", props.class);
|
|
196
|
+
},
|
|
197
|
+
get render() {
|
|
198
|
+
return asRender(props.as, () => props["data-slot"]);
|
|
199
|
+
}
|
|
200
|
+
}, () => {
|
|
201
|
+
return omit(props, "class", "as");
|
|
202
|
+
}));
|
|
42
203
|
}
|
|
43
204
|
function PopoverCloseButton(props) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
205
|
+
return createComponent(PopoverClose, mergeProps({
|
|
206
|
+
get "class"() {
|
|
207
|
+
return cn(props.class);
|
|
208
|
+
},
|
|
209
|
+
get render() {
|
|
210
|
+
return asRender(props.as, () => props["data-slot"]);
|
|
211
|
+
}
|
|
212
|
+
}, () => {
|
|
213
|
+
return omit(props, "class", "as");
|
|
214
|
+
}));
|
|
48
215
|
}
|
|
49
|
-
export { Popover$1 as Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger };
|
|
216
|
+
export { Popover$1 as Popover, PopoverAnchor, PopoverCloseButton, PopoverContent$1 as PopoverContent, PopoverDescription$1 as PopoverDescription, PopoverTitle$1 as PopoverTitle, PopoverTrigger$1 as PopoverTrigger };
|
|
50
217
|
|
|
51
218
|
//# sourceMappingURL=popover.js.map
|