@adea-ai/ui 0.159.9 → 0.160.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -24
- package/dist/NOTICE +11 -12
- package/dist/components/composites/about-dialog/about-dialog.d.ts +1 -1
- package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
- package/dist/components/composites/about-dialog/about-dialog.js +26 -15
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.js +186 -175
- package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.js +114 -100
- package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +68 -61
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +1 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +82 -100
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +82 -73
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +185 -197
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +370 -343
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +219 -192
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.js.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.js +137 -117
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +4 -4
- package/dist/components/composites/appearance-editor/theme-preview.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +190 -175
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.js +162 -140
- package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +284 -274
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +104 -76
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.js +57 -54
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +158 -147
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.js +117 -116
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +230 -202
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts +2 -2
- package/dist/components/composites/context/context.d.ts.map +1 -1
- package/dist/components/composites/context/context.js +206 -195
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.d.ts +2 -2
- package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +275 -239
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/help-center/help-center.d.ts +1 -1
- package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
- package/dist/components/composites/help-center/help-center.js +138 -118
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +191 -165
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.d.ts +60 -60
- package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
- package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.js +123 -104
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts +8 -2
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +32 -34
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -6
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +53 -55
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js +111 -103
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +414 -406
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +11 -17
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.js +85 -105
- package/dist/components/composites/prompt-input/prompt-input.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +180 -188
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
- package/dist/components/composites/reasoning/reasoning.js +13 -18
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.js +98 -83
- package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
- package/dist/components/composites/settings/settings-layout.d.ts +2 -2
- package/dist/components/composites/settings/settings-layout.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-layout.js +27 -21
- package/dist/components/composites/settings/settings-layout.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +96 -72
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +154 -136
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +1 -1
- package/dist/components/composites/sources/sources.d.ts.map +1 -1
- package/dist/components/composites/sources/sources.js +155 -144
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +2 -2
- package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.js +386 -371
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +132 -116
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +16 -29
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/suggestion/suggestion.d.ts +3 -3
- package/dist/components/composites/suggestion/suggestion.d.ts.map +1 -1
- package/dist/components/composites/suggestion/suggestion.js +42 -43
- package/dist/components/composites/suggestion/suggestion.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.d.ts.map +1 -1
- package/dist/components/composites/task/task.js +150 -147
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts +2 -2
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +328 -286
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
- package/dist/components/composites/test-results/test-results.js +304 -266
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +2 -2
- package/dist/components/composites/tool/tool.d.ts.map +1 -1
- package/dist/components/composites/tool/tool.js +68 -68
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +6 -5
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +234 -215
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +50 -46
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts +2 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +353 -282
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +70 -69
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +41 -38
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.js +39 -21
- package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.js +2 -2
- package/dist/components/conversation/atomic/chat-composer.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts +2 -2
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +137 -137
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/chat-composer.d.ts +1 -1
- package/dist/components/conversation/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/chat-composer.js +5 -5
- package/dist/components/conversation/chat-composer.js.map +1 -1
- package/dist/components/conversation/composer-core.d.ts +2 -2
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.d.ts.map +1 -1
- package/dist/components/conversation/composer-menu.js +23 -23
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.d.ts +2 -2
- package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +28 -32
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +65 -59
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.d.ts +2 -1
- package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
- package/dist/components/conversation/conversation-surface.js +68 -72
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts +3 -2
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +267 -264
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts +2 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +82 -98
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +317 -316
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts.map +1 -1
- package/dist/components/conversation/paste-token-editor.js +210 -161
- package/dist/components/conversation/paste-token-editor.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +11 -9
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +124 -116
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts +3 -2
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +127 -132
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/layout/app-shell/app-shell.js +40 -34
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.d.ts +2 -2
- package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +22 -25
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +70 -40
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +6 -5
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.js +95 -83
- package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts +3 -3
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.js +29 -38
- package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +116 -103
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.d.ts +11 -11
- package/dist/components/layout/panel/panel.d.ts.map +1 -1
- package/dist/components/layout/panel/panel.js +98 -82
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.js +15 -15
- package/dist/components/layout/pixel-pane/pixel-pane.js.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +112 -105
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.d.ts +4 -2
- package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.js +32 -35
- package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts +2 -2
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.js +126 -120
- package/dist/components/layout/shell-top-bar/shell-top-bar.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts +8 -2
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +155 -138
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts +8 -2
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +231 -224
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts +2 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +64 -63
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts +2 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +64 -63
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts +2 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +330 -275
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +4 -4
- package/dist/components/layout/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/layout/status-bar/status-bar.js +42 -33
- package/dist/components/layout/status-bar/status-bar.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.d.ts +8 -8
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +96 -98
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.js +29 -34
- package/dist/components/layout/virtual-window/virtual-window.js.map +1 -1
- package/dist/components/motion/index.d.ts +1 -1
- package/dist/components/motion/index.d.ts.map +1 -1
- package/dist/components/motion/index.js +1 -1
- package/dist/components/motion/motion.d.ts +84 -0
- package/dist/components/motion/motion.d.ts.map +1 -0
- package/dist/components/motion/motion.js +198 -0
- package/dist/components/motion/motion.js.map +1 -0
- package/dist/components/motion/presence.d.ts +16 -7
- package/dist/components/motion/presence.d.ts.map +1 -1
- package/dist/components/motion/presence.js +75 -3
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +2 -2
- package/dist/components/theme/appearance-panel.d.ts.map +1 -1
- package/dist/components/theme/appearance-panel.js +156 -141
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.d.ts.map +1 -1
- package/dist/components/theme/lazy.js +3 -2
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +1 -1
- package/dist/components/theme/theme-context.d.ts.map +1 -1
- package/dist/components/theme/theme-context.js +2 -2
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-mode-toggle.d.ts +2 -2
- package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-mode-toggle.js +22 -17
- package/dist/components/theme/theme-mode-toggle.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +4 -4
- package/dist/components/theme/theme-picker.d.ts.map +1 -1
- package/dist/components/theme/theme-picker.js +145 -133
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +1 -1
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +48 -57
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-provider.d.ts +1 -1
- package/dist/components/theme/theme-provider.d.ts.map +1 -1
- package/dist/components/theme/theme-provider.js +1 -1
- package/dist/components/theme/theme-provider.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +2 -2
- package/dist/components/theme/theme-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-toggle.js +19 -12
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +25 -12
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion/accordion.js +42 -38
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +67 -53
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +59 -12
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +163 -136
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.js +80 -91
- package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +19 -22
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/ui/attachment/attachment.d.ts +1 -1
- package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment/attachment.js +202 -198
- package/dist/components/ui/attachment/attachment.js.map +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +4 -4
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar/avatar.js +61 -52
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +10 -3
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.js +22 -28
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.d.ts +1 -1
- package/dist/components/ui/board/board.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +259 -236
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +90 -75
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +47 -45
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.d.ts +18 -3
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +34 -25
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +4 -4
- package/dist/components/ui/button-group/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group/button-group.js +32 -32
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.d.ts +93 -39
- package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar/calendar.js +287 -193
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +3 -3
- package/dist/components/ui/callout/callout.d.ts.map +1 -1
- package/dist/components/ui/callout/callout.js +30 -33
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +8 -8
- package/dist/components/ui/card/card.d.ts.map +1 -1
- package/dist/components/ui/card/card.js +66 -58
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +8 -2
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js +115 -105
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts +7 -8
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +311 -245
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +47 -23
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +312 -356
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +263 -253
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/collapsible/collapsible.d.ts +20 -8
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible/collapsible.js +24 -27
- package/dist/components/ui/collapsible/collapsible.js.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +97 -13
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.js +302 -97
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/value-combobox.js +4 -7
- package/dist/components/ui/combobox/value-combobox.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +100 -36
- package/dist/components/ui/command/command.d.ts.map +1 -1
- package/dist/components/ui/command/command.js +377 -169
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +24 -12
- package/dist/components/ui/context-menu/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu/context-menu.js +45 -14
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +110 -102
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +98 -28
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +257 -151
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +55 -14
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +201 -118
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts.map +1 -1
- package/dist/components/ui/diff-block/diff-block.js +111 -86
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +53 -19
- package/dist/components/ui/drawer/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/drawer.js +108 -83
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +60 -47
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +73 -188
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +219 -18
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js +556 -150
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +16 -27
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.d.ts +1 -1
- package/dist/components/ui/empty/empty.d.ts.map +1 -1
- package/dist/components/ui/empty/empty.js +57 -50
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts +2 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +71 -72
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts +53 -14
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +175 -110
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.d.ts +1 -1
- package/dist/components/ui/field/number-field.d.ts.map +1 -1
- package/dist/components/ui/field/number-field.js +14 -10
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +19 -4
- package/dist/components/ui/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card/hover-card.js +80 -17
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input/input-control.d.ts +4 -3
- package/dist/components/ui/input/input-control.d.ts.map +1 -1
- package/dist/components/ui/input/input-control.js +16 -20
- package/dist/components/ui/input/input-control.js.map +1 -1
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/input/input.js +42 -47
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/input-group.js +119 -132
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.js +11 -17
- package/dist/components/ui/input-group/secret-input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +23 -9
- package/dist/components/ui/input-otp/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp/input-otp.js +60 -67
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +105 -101
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +4 -4
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +25 -24
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +5 -5
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/label/label.js +15 -13
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.d.ts +1 -1
- package/dist/components/ui/marker/marker.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +72 -74
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +37 -23
- package/dist/components/ui/menubar/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar/menubar.js +76 -39
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +281 -250
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts +18 -17
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +95 -106
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +2 -2
- package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select/native-select.js +93 -93
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +45 -44
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +215 -96
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.d.ts +36 -16
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination/pagination.js +86 -68
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts +51 -10
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +204 -37
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts +23 -5
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +52 -32
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +351 -338
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +27 -6
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +202 -145
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/index.d.ts +1 -1
- package/dist/components/ui/resizable/index.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +55 -9
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.js +104 -81
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +2 -2
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +22 -28
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +104 -24
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/select/select.js +304 -111
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/separator/separator.d.ts +13 -3
- package/dist/components/ui/separator/separator.d.ts.map +1 -1
- package/dist/components/ui/separator/separator.js +11 -9
- package/dist/components/ui/separator/separator.js.map +1 -1
- package/dist/components/ui/sheet/index.js +3 -1
- package/dist/components/ui/sheet/sheet.d.ts +34 -9
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +144 -106
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +2 -2
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.js +13 -10
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +27 -8
- package/dist/components/ui/slider/slider.d.ts.map +1 -1
- package/dist/components/ui/slider/slider.js +74 -60
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +2 -2
- package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner/spinner.js +23 -18
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +69 -55
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts +31 -15
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +275 -325
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/table/table.d.ts +10 -10
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/table.js +96 -79
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +32 -8
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.js +80 -63
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/text-link/text-link.d.ts +2 -2
- package/dist/components/ui/text-link/text-link.d.ts.map +1 -1
- package/dist/components/ui/text-link/text-link.js +16 -16
- package/dist/components/ui/text-link/text-link.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +3 -2
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.js +39 -49
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts +30 -8
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +188 -86
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +9 -5
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.js +18 -17
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.d.ts +27 -11
- package/dist/components/ui/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.js +30 -32
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +8 -6
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.js +33 -16
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts +2 -2
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.js +27 -28
- package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +142 -16
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +255 -254
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +245 -250
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +11 -4
- package/dist/components/ui/typography/typography.d.ts.map +1 -1
- package/dist/components/ui/typography/typography.js +8 -19
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/lib/async-action.d.ts.map +1 -1
- package/dist/lib/async-action.js +1 -1
- package/dist/lib/async-action.js.map +1 -1
- package/dist/lib/create-poll.d.ts.map +1 -1
- package/dist/lib/create-poll.js +11 -10
- package/dist/lib/create-poll.js.map +1 -1
- package/dist/lib/events.d.ts +1 -1
- package/dist/lib/events.d.ts.map +1 -1
- package/dist/lib/events.js.map +1 -1
- package/dist/lib/fast-icon.d.ts +2 -2
- package/dist/lib/fast-icon.d.ts.map +1 -1
- package/dist/lib/fast-icon.js +8 -7
- package/dist/lib/fast-icon.js.map +1 -1
- package/dist/lib/form-field.d.ts +12 -10
- package/dist/lib/form-field.d.ts.map +1 -1
- package/dist/lib/form-field.js +12 -8
- package/dist/lib/form-field.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +4 -1
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +24 -5
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +41 -6
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/refs.d.ts +13 -0
- package/dist/lib/refs.d.ts.map +1 -0
- package/dist/lib/refs.js +22 -0
- package/dist/lib/refs.js.map +1 -0
- package/dist/lib/resize-separator.d.ts +1 -1
- package/dist/lib/resize-separator.d.ts.map +1 -1
- package/dist/lib/resize-separator.js +1 -1
- package/dist/lib/resize-separator.js.map +1 -1
- package/dist/lib/slotted.d.ts +14 -0
- package/dist/lib/slotted.d.ts.map +1 -0
- package/dist/lib/slotted.js +19 -0
- package/dist/lib/slotted.js.map +1 -0
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/lint.js +11 -4
- package/dist/lint.js.map +1 -1
- package/dist/r/about-dialog.json +1 -1
- package/dist/r/accent-picker.json +2 -1
- package/dist/r/accordion.json +3 -2
- package/dist/r/account-menu.json +2 -1
- package/dist/r/action-button.json +1 -1
- package/dist/r/alert-dialog.json +3 -1
- package/dist/r/alert.json +2 -1
- package/dist/r/annotation-surface.json +3 -1
- package/dist/r/app-shell.json +3 -1
- package/dist/r/appearance-editor.json +3 -2
- package/dist/r/aspect-ratio.json +3 -1
- package/dist/r/attachment.json +2 -1
- package/dist/r/avatar.json +3 -1
- package/dist/r/badge.json +1 -1
- package/dist/r/board.json +3 -1
- package/dist/r/breadcrumb.json +2 -1
- package/dist/r/bubble.json +3 -1
- package/dist/r/button-group.json +3 -1
- package/dist/r/button.json +1 -1
- package/dist/r/calendar.json +3 -2
- package/dist/r/callout.json +3 -1
- package/dist/r/card.json +3 -1
- package/dist/r/carousel.json +3 -3
- package/dist/r/catalog-browser.json +3 -2
- package/dist/r/chain-of-thought.json +2 -1
- package/dist/r/chart.json +2 -2
- package/dist/r/chat.json +2 -1
- package/dist/r/checkbox.json +2 -2
- package/dist/r/checkpoint.json +2 -1
- package/dist/r/code-block.json +2 -1
- package/dist/r/collapsible.json +2 -1
- package/dist/r/combobox.json +3 -2
- package/dist/r/command.json +4 -3
- package/dist/r/confirmation.json +2 -1
- package/dist/r/context-menu.json +3 -3
- package/dist/r/context.json +2 -1
- package/dist/r/contextual-sidebar.json +3 -1
- package/dist/r/conversation.json +3 -2
- package/dist/r/detail-panel.json +2 -1
- package/dist/r/dialog.json +3 -2
- package/dist/r/diff-block.json +3 -1
- package/dist/r/drawer.json +3 -1
- package/dist/r/dropdown-menu.json +3 -2
- package/dist/r/empty.json +2 -1
- package/dist/r/entity-icon.json +3 -1
- package/dist/r/field.json +2 -1
- package/dist/r/file-tree.json +2 -1
- package/dist/r/floating-preview.json +2 -1
- package/dist/r/help-center.json +1 -1
- package/dist/r/hover-card.json +3 -1
- package/dist/r/icon-picker.json +2 -1
- package/dist/r/inline-citation.json +1 -1
- package/dist/r/input-group.json +3 -1
- package/dist/r/input-otp.json +2 -1
- package/dist/r/input.json +4 -1
- package/dist/r/item.json +3 -1
- package/dist/r/kbd.json +3 -1
- package/dist/r/label.json +3 -1
- package/dist/r/lib.json +10 -0
- package/dist/r/list-row.json +1 -1
- package/dist/r/marker.json +3 -1
- package/dist/r/menubar.json +2 -1
- package/dist/r/message-scroller.json +2 -1
- package/dist/r/message.json +2 -1
- package/dist/r/modal-dialog.json +3 -1
- package/dist/r/model-selector.json +2 -1
- package/dist/r/motion.json +6 -1
- package/dist/r/native-select.json +2 -1
- package/dist/r/navigation-menu.json +3 -2
- package/dist/r/orbit-layout.json +3 -1
- package/dist/r/page.json +3 -1
- package/dist/r/pagination.json +3 -2
- package/dist/r/panel.json +3 -1
- package/dist/r/pixel-pane.json +3 -1
- package/dist/r/pixel-resize-handle.json +1 -1
- package/dist/r/plan.json +2 -1
- package/dist/r/popover.json +5 -1
- package/dist/r/progress.json +2 -1
- package/dist/r/prompt-input.json +2 -1
- package/dist/r/questionnaire.json +2 -1
- package/dist/r/queue.json +2 -1
- package/dist/r/radio-group.json +3 -2
- package/dist/r/reasoning.json +2 -1
- package/dist/r/registry.json +315 -151
- package/dist/r/resizable.json +3 -2
- package/dist/r/scene-controls.json +2 -1
- package/dist/r/scroll-area.json +3 -1
- package/dist/r/select.json +3 -2
- package/dist/r/separator.json +2 -1
- package/dist/r/settings.json +2 -2
- package/dist/r/sheet.json +4 -2
- package/dist/r/shell-rail.json +2 -1
- package/dist/r/shell-top-bar.json +3 -1
- package/dist/r/side-rail.json +1 -1
- package/dist/r/sidebar-nav.json +2 -2
- package/dist/r/skeleton.json +3 -1
- package/dist/r/slider.json +2 -1
- package/dist/r/sources.json +1 -1
- package/dist/r/spinner.json +2 -1
- package/dist/r/split-layout.json +2 -1
- package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/dist/r/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/dist/r/src/components/composites/action-button/action-button.tsx +75 -52
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/dist/r/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/dist/r/src/components/composites/chat/chat.tsx +12 -14
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/dist/r/src/components/composites/context/context.tsx +10 -4
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/dist/r/src/components/composites/help-center/help-center.tsx +1 -1
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/dist/r/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/dist/r/src/components/composites/list-row/list-row.tsx +10 -19
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/dist/r/src/components/composites/plan/plan.tsx +11 -15
- package/dist/r/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/dist/r/src/components/composites/queue/queue.tsx +18 -20
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/dist/r/src/components/composites/settings/settings-layout.tsx +27 -8
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/dist/r/src/components/composites/settings/settings.tsx +19 -13
- package/dist/r/src/components/composites/sources/sources.tsx +8 -6
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/dist/r/src/components/composites/stat/stat.tsx +19 -12
- package/dist/r/src/components/composites/subagent/subagent.tsx +8 -5
- package/dist/r/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/dist/r/src/components/composites/task/task.tsx +12 -24
- package/dist/r/src/components/composites/terminal/terminal.tsx +36 -38
- package/dist/r/src/components/composites/test-results/test-results.tsx +59 -64
- package/dist/r/src/components/composites/tool/tool.tsx +9 -6
- package/dist/r/src/components/composites/tree/tree.tsx +88 -52
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/dist/r/src/components/conversation/busy-send-button.tsx +2 -2
- package/dist/r/src/components/conversation/chat-composer.tsx +2 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +6 -4
- package/dist/r/src/components/conversation/conversation-avatar.tsx +6 -5
- package/dist/r/src/components/conversation/conversation-pane.tsx +4 -10
- package/dist/r/src/components/conversation/conversation-surface.tsx +12 -8
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/dist/r/src/components/conversation/message-composer.tsx +14 -9
- package/dist/r/src/components/conversation/message-row.tsx +19 -14
- package/dist/r/src/components/conversation/paste-token-editor.tsx +106 -54
- package/dist/r/src/components/conversation/scroll-follow.ts +125 -112
- package/dist/r/src/components/conversation/thread-panel.tsx +10 -7
- package/dist/r/src/components/conversation/transcript-composition.tsx +14 -16
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/dist/r/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/dist/r/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/dist/r/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/dist/r/src/components/layout/page/page.tsx +16 -9
- package/dist/r/src/components/layout/panel/panel.tsx +22 -12
- package/dist/r/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/dist/r/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/dist/r/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/dist/r/src/components/motion/index.ts +7 -1
- package/dist/r/src/components/motion/motion.tsx +322 -0
- package/dist/r/src/components/motion/presence.tsx +95 -7
- package/dist/r/src/components/theme/appearance-panel.tsx +11 -9
- package/dist/r/src/components/theme/lazy.ts +3 -2
- package/dist/r/src/components/theme/theme-context.ts +6 -4
- package/dist/r/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/dist/r/src/components/theme/theme-picker.tsx +9 -6
- package/dist/r/src/components/theme/theme-provider-value.ts +117 -97
- package/dist/r/src/components/theme/theme-toggle.tsx +5 -4
- package/dist/r/src/components/ui/accordion/accordion.tsx +71 -35
- package/dist/r/src/components/ui/alert/alert.tsx +11 -7
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/dist/r/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/dist/r/src/components/ui/attachment/attachment.tsx +10 -6
- package/dist/r/src/components/ui/avatar/avatar.tsx +24 -10
- package/dist/r/src/components/ui/badge/badge.tsx +19 -12
- package/dist/r/src/components/ui/board/board.tsx +55 -48
- package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/dist/r/src/components/ui/bubble/bubble.tsx +4 -9
- package/dist/r/src/components/ui/button/button.tsx +42 -32
- package/dist/r/src/components/ui/button-group/button-group.tsx +8 -5
- package/dist/r/src/components/ui/calendar/calendar.tsx +382 -180
- package/dist/r/src/components/ui/callout/callout.tsx +6 -4
- package/dist/r/src/components/ui/card/card.tsx +16 -9
- package/dist/r/src/components/ui/carousel/carousel.tsx +38 -20
- package/dist/r/src/components/ui/chart/chart.tsx +149 -93
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/dist/r/src/components/ui/code-block/code-block.tsx +61 -59
- package/dist/r/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/dist/r/src/components/ui/combobox/combobox.tsx +395 -73
- package/dist/r/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/dist/r/src/components/ui/command/command.tsx +416 -175
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/dist/r/src/components/ui/dialog/dialog.tsx +225 -95
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/dist/r/src/components/ui/drawer/drawer.tsx +113 -41
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/dist/r/src/components/ui/empty/empty-state.tsx +9 -7
- package/dist/r/src/components/ui/empty/empty.tsx +14 -8
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/dist/r/src/components/ui/field/field.tsx +165 -55
- package/dist/r/src/components/ui/field/number-field.tsx +21 -5
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/dist/r/src/components/ui/input/input-control.tsx +6 -4
- package/dist/r/src/components/ui/input/input.tsx +7 -5
- package/dist/r/src/components/ui/input-group/input-group.tsx +20 -12
- package/dist/r/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/dist/r/src/components/ui/item/item.tsx +15 -9
- package/dist/r/src/components/ui/kbd/kbd.tsx +8 -5
- package/dist/r/src/components/ui/label/label.tsx +7 -6
- package/dist/r/src/components/ui/marker/marker.tsx +7 -4
- package/dist/r/src/components/ui/menubar/menubar.tsx +101 -49
- package/dist/r/src/components/ui/message/message.tsx +24 -38
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/dist/r/src/components/ui/native-select/native-select.tsx +30 -19
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/dist/r/src/components/ui/pagination/pagination.tsx +153 -88
- package/dist/r/src/components/ui/popover/popover.tsx +252 -49
- package/dist/r/src/components/ui/progress/progress.tsx +64 -22
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/dist/r/src/components/ui/resizable/index.ts +3 -0
- package/dist/r/src/components/ui/resizable/resizable.tsx +157 -60
- package/dist/r/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/dist/r/src/components/ui/select/select.tsx +403 -106
- package/dist/r/src/components/ui/separator/separator.tsx +33 -6
- package/dist/r/src/components/ui/sheet/sheet.tsx +144 -64
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/dist/r/src/components/ui/slider/slider.tsx +112 -64
- package/dist/r/src/components/ui/spinner/spinner.tsx +9 -5
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/dist/r/src/components/ui/switch/switch.tsx +203 -201
- package/dist/r/src/components/ui/table/table.tsx +20 -11
- package/dist/r/src/components/ui/tabs/tabs.tsx +93 -34
- package/dist/r/src/components/ui/text-link/text-link.tsx +5 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +8 -5
- package/dist/r/src/components/ui/toast/toast.tsx +192 -83
- package/dist/r/src/components/ui/toggle/toggle.tsx +26 -9
- package/dist/r/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/dist/r/src/components/ui/trace/trace.tsx +17 -20
- package/dist/r/src/components/ui/typography/typography.tsx +17 -18
- package/dist/r/src/lib/async-action.ts +3 -1
- package/dist/r/src/lib/create-poll.ts +41 -38
- package/dist/r/src/lib/events.ts +1 -1
- package/dist/r/src/lib/fast-icon.ts +9 -13
- package/dist/r/src/lib/form-field.ts +36 -18
- package/dist/r/src/lib/keyed-rows.ts +4 -0
- package/dist/r/src/lib/overlay.ts +44 -5
- package/dist/r/src/lib/refs.ts +21 -0
- package/dist/r/src/lib/resize-separator.ts +4 -3
- package/dist/r/src/lib/slotted.ts +16 -0
- package/dist/r/src/styles/globals.css +7 -0
- package/dist/r/stack-trace.json +2 -1
- package/dist/r/stat.json +2 -1
- package/dist/r/status-bar.json +3 -1
- package/dist/r/status-chip.json +3 -1
- package/dist/r/subagent.json +2 -1
- package/dist/r/suggestion.json +3 -1
- package/dist/r/switch.json +1 -1
- package/dist/r/table.json +3 -1
- package/dist/r/tabs.json +2 -1
- package/dist/r/task.json +2 -1
- package/dist/r/terminal.json +2 -1
- package/dist/r/test-results.json +2 -1
- package/dist/r/text-link.json +3 -1
- package/dist/r/textarea.json +1 -0
- package/dist/r/theming.json +3 -2
- package/dist/r/toast.json +3 -2
- package/dist/r/toggle-group.json +2 -1
- package/dist/r/toggle.json +2 -1
- package/dist/r/tool.json +2 -1
- package/dist/r/tooltip.json +3 -1
- package/dist/r/top-bar.json +2 -1
- package/dist/r/trace.json +2 -1
- package/dist/r/tree.json +2 -1
- package/dist/r/typography.json +1 -1
- package/dist/r/update-dialog.json +2 -1
- package/dist/r/virtual-window.json +3 -1
- package/dist/r/workspace-mark.json +3 -1
- package/dist/r/workspace-switcher.json +2 -1
- package/dist/vite/tailwind-sources.js +2 -2
- package/dist/vite/tailwind-sources.js.map +1 -1
- package/package.json +14 -31
- package/registry.json +315 -151
- package/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/src/components/composites/action-button/action-button.tsx +75 -52
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/src/components/composites/chat/chat.tsx +12 -14
- package/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/src/components/composites/context/context.tsx +10 -4
- package/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/src/components/composites/help-center/help-center.tsx +1 -1
- package/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/src/components/composites/list-row/list-row.tsx +10 -19
- package/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/src/components/composites/plan/plan.tsx +11 -15
- package/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/src/components/composites/queue/queue.tsx +18 -20
- package/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/src/components/composites/settings/settings-layout.tsx +27 -8
- package/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/src/components/composites/settings/settings.tsx +19 -13
- package/src/components/composites/sources/sources.tsx +8 -6
- package/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/src/components/composites/stat/stat.tsx +19 -12
- package/src/components/composites/subagent/subagent.tsx +8 -5
- package/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/src/components/composites/task/task.tsx +12 -24
- package/src/components/composites/terminal/terminal.tsx +36 -38
- package/src/components/composites/test-results/test-results.tsx +59 -64
- package/src/components/composites/tool/tool.tsx +9 -6
- package/src/components/composites/tree/tree.tsx +88 -52
- package/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/src/components/conversation/busy-send-button.tsx +2 -2
- package/src/components/conversation/chat-composer.tsx +2 -2
- package/src/components/conversation/composer-menu.tsx +6 -4
- package/src/components/conversation/conversation-avatar.tsx +6 -5
- package/src/components/conversation/conversation-pane.tsx +4 -10
- package/src/components/conversation/conversation-surface.tsx +12 -8
- package/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/src/components/conversation/message-composer.tsx +14 -9
- package/src/components/conversation/message-row.tsx +19 -14
- package/src/components/conversation/paste-token-editor.tsx +106 -54
- package/src/components/conversation/scroll-follow.ts +125 -112
- package/src/components/conversation/thread-panel.tsx +10 -7
- package/src/components/conversation/transcript-composition.tsx +14 -16
- package/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/src/components/layout/page/page.tsx +16 -9
- package/src/components/layout/panel/panel.tsx +22 -12
- package/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/src/components/motion/index.ts +7 -1
- package/src/components/motion/motion.tsx +322 -0
- package/src/components/motion/presence.tsx +95 -7
- package/src/components/theme/appearance-panel.tsx +11 -9
- package/src/components/theme/lazy.ts +3 -2
- package/src/components/theme/theme-context.ts +6 -4
- package/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/src/components/theme/theme-picker.tsx +9 -6
- package/src/components/theme/theme-provider-value.ts +117 -97
- package/src/components/theme/theme-toggle.tsx +5 -4
- package/src/components/ui/accordion/accordion.tsx +71 -35
- package/src/components/ui/alert/alert.tsx +11 -7
- package/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/src/components/ui/attachment/attachment.tsx +10 -6
- package/src/components/ui/avatar/avatar.tsx +24 -10
- package/src/components/ui/badge/badge.tsx +19 -12
- package/src/components/ui/board/board.tsx +55 -48
- package/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/src/components/ui/bubble/bubble.tsx +4 -9
- package/src/components/ui/button/button.tsx +42 -32
- package/src/components/ui/button-group/button-group.tsx +8 -5
- package/src/components/ui/calendar/calendar.tsx +382 -180
- package/src/components/ui/callout/callout.tsx +6 -4
- package/src/components/ui/card/card.tsx +16 -9
- package/src/components/ui/carousel/carousel.tsx +38 -20
- package/src/components/ui/chart/chart.tsx +149 -93
- package/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/src/components/ui/code-block/code-block.tsx +61 -59
- package/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/src/components/ui/combobox/combobox.tsx +395 -73
- package/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/src/components/ui/command/command.tsx +416 -175
- package/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/src/components/ui/dialog/dialog.tsx +225 -95
- package/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/src/components/ui/drawer/drawer.tsx +113 -41
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/src/components/ui/empty/empty-state.tsx +9 -7
- package/src/components/ui/empty/empty.tsx +14 -8
- package/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/src/components/ui/field/field.tsx +165 -55
- package/src/components/ui/field/number-field.tsx +21 -5
- package/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/src/components/ui/input/input-control.tsx +6 -4
- package/src/components/ui/input/input.tsx +7 -5
- package/src/components/ui/input-group/input-group.tsx +20 -12
- package/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/src/components/ui/item/item.tsx +15 -9
- package/src/components/ui/kbd/kbd.tsx +8 -5
- package/src/components/ui/label/label.tsx +7 -6
- package/src/components/ui/marker/marker.tsx +7 -4
- package/src/components/ui/menubar/menubar.tsx +101 -49
- package/src/components/ui/message/message.tsx +24 -38
- package/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/src/components/ui/native-select/native-select.tsx +30 -19
- package/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/src/components/ui/pagination/pagination.tsx +153 -88
- package/src/components/ui/popover/popover.tsx +252 -49
- package/src/components/ui/progress/progress.tsx +64 -22
- package/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/src/components/ui/resizable/index.ts +3 -0
- package/src/components/ui/resizable/resizable.tsx +157 -60
- package/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/src/components/ui/select/select.tsx +403 -106
- package/src/components/ui/separator/separator.tsx +33 -6
- package/src/components/ui/sheet/sheet.tsx +144 -64
- package/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/src/components/ui/slider/slider.tsx +112 -64
- package/src/components/ui/spinner/spinner.tsx +9 -5
- package/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/src/components/ui/switch/switch.tsx +203 -201
- package/src/components/ui/table/table.tsx +20 -11
- package/src/components/ui/tabs/tabs.tsx +93 -34
- package/src/components/ui/text-link/text-link.tsx +5 -4
- package/src/components/ui/textarea/textarea.tsx +8 -5
- package/src/components/ui/toast/toast.tsx +192 -83
- package/src/components/ui/toggle/toggle.tsx +26 -9
- package/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/src/components/ui/trace/trace.tsx +17 -20
- package/src/components/ui/typography/typography.tsx +17 -18
- package/src/lib/async-action.ts +3 -1
- package/src/lib/create-poll.ts +41 -38
- package/src/lib/events.ts +1 -1
- package/src/lib/fast-icon.ts +9 -13
- package/src/lib/form-field.ts +36 -18
- package/src/lib/keyed-rows.ts +4 -0
- package/src/lib/overlay.ts +44 -5
- package/src/lib/refs.ts +21 -0
- package/src/lib/resize-separator.ts +4 -3
- package/src/lib/slotted.ts +16 -0
- package/src/lint/index.ts +20 -5
- package/src/styles/globals.css +7 -0
- package/src/testing/happy-dom-text.ts +30 -0
- package/src/testing/solid-transform.ts +19 -36
- package/src/vite/tailwind-sources.ts +2 -2
|
@@ -1,124 +1,243 @@
|
|
|
1
|
+
import { callHandler } from "../../../lib/events.js";
|
|
1
2
|
import { cn } from "../../../lib/utils.js";
|
|
2
3
|
import { menuItem, menuLabel, menuSeparator, overlayMotion, overlaySurface } from "../../../lib/overlay.js";
|
|
3
4
|
import { fastIcon } from "../../../lib/fast-icon.js";
|
|
4
|
-
import { className, createComponent, effect, insert, memo, mergeProps, template } from "
|
|
5
|
-
import { ChevronDown } from "lucide
|
|
6
|
-
import { children,
|
|
7
|
-
import
|
|
5
|
+
import { className, createComponent, effect, insert, memo, mergeProps, readShallow, spread, template } from "@solidjs/web";
|
|
6
|
+
import { ChevronDown } from "@lucide/solid";
|
|
7
|
+
import { children, createContext, createSignal, createUniqueId, omit, useContext } from "solid-js";
|
|
8
|
+
import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport } from "@ui-sdk/solid/navigation-menu";
|
|
8
9
|
// src/components/ui/navigation-menu/navigation-menu.tsx
|
|
9
|
-
var _tmpl$ =
|
|
10
|
-
var _tmpl$2 =
|
|
10
|
+
var _tmpl$ = /* @__PURE__ */ template(`<button>`);
|
|
11
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
|
|
12
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<span class=font-medium>`);
|
|
13
|
+
var _tmpl$4 = /* @__PURE__ */ template(`<a>`);
|
|
14
|
+
var _tmpl$5 = /* @__PURE__ */ template(`<span>`);
|
|
15
|
+
var _tmpl$6 = /* @__PURE__ */ template(`<hr>`);
|
|
11
16
|
var ChevronDown$1 = fastIcon(ChevronDown);
|
|
12
|
-
function NavigationMenu(props) {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
function NavigationMenu$1(props) {
|
|
18
|
+
const rest = omit(props, "label", "class", "children", "value", "defaultValue", "onValueChange", "orientation", "delayDuration", "openOnHover");
|
|
19
|
+
return createComponent(NavigationMenu, mergeProps(rest, {
|
|
20
|
+
get value() {
|
|
21
|
+
return memo(() => {
|
|
22
|
+
return props.value === void 0;
|
|
23
|
+
})() ? void 0 : props.value;
|
|
24
|
+
},
|
|
25
|
+
get defaultValue() {
|
|
26
|
+
return props.defaultValue;
|
|
27
|
+
},
|
|
28
|
+
onValueChange: (value) => props.onValueChange?.(value ?? void 0),
|
|
29
|
+
get orientation() {
|
|
30
|
+
return props.orientation;
|
|
31
|
+
},
|
|
32
|
+
get delay() {
|
|
33
|
+
return props.delayDuration;
|
|
34
|
+
},
|
|
35
|
+
get openOnHover() {
|
|
36
|
+
return props.openOnHover;
|
|
37
|
+
},
|
|
38
|
+
get "aria-label"() {
|
|
39
|
+
return props.label ?? "Main";
|
|
40
|
+
},
|
|
41
|
+
get "class"() {
|
|
42
|
+
return cn("relative flex max-w-max flex-1 items-center justify-center", props.class);
|
|
43
|
+
},
|
|
44
|
+
get children() {
|
|
45
|
+
return [createComponent(NavigationMenuList, {
|
|
46
|
+
class: "flex items-center gap-1",
|
|
47
|
+
get children() {
|
|
48
|
+
return props.children;
|
|
49
|
+
}
|
|
50
|
+
}), createComponent(NavigationMenuViewport$1, {})];
|
|
24
51
|
}
|
|
25
|
-
}
|
|
26
|
-
return [memo(() => local.children), createComponent(NavigationMenuViewport, {})];
|
|
27
|
-
} }));
|
|
52
|
+
}));
|
|
28
53
|
}
|
|
29
|
-
/**
|
|
30
|
-
* One top-level entry. Renders nothing itself — see the note above — and exists
|
|
31
|
-
* so a caller cannot build a bar whose entries the keyboard cannot reach.
|
|
32
|
-
*/
|
|
54
|
+
/** One top-level entry: the bar's `<li>`, holding a trigger and its panel. */
|
|
33
55
|
function NavigationMenuMenu(props) {
|
|
34
|
-
return createComponent(
|
|
56
|
+
return createComponent(NavigationMenuItem, props);
|
|
35
57
|
}
|
|
36
|
-
function NavigationMenuTrigger(props) {
|
|
37
|
-
const [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
function NavigationMenuTrigger$1(props) {
|
|
59
|
+
const [focused, setFocused] = createSignal(false);
|
|
60
|
+
const rest = omit(props, "class", "children", "onFocus", "onBlur");
|
|
61
|
+
return createComponent(NavigationMenuTrigger, mergeProps(rest, {
|
|
62
|
+
onFocus: (event) => {
|
|
63
|
+
setFocused(true);
|
|
64
|
+
callHandler(props.onFocus, event);
|
|
65
|
+
},
|
|
66
|
+
onBlur: (event) => {
|
|
67
|
+
setFocused(false);
|
|
68
|
+
callHandler(props.onBlur, event);
|
|
69
|
+
},
|
|
70
|
+
render: (part, state) => (() => {
|
|
71
|
+
var _el$ = _tmpl$();
|
|
72
|
+
spread(_el$, [part, {
|
|
73
|
+
get "data-expanded"() {
|
|
74
|
+
return state.open ? "" : void 0;
|
|
75
|
+
},
|
|
76
|
+
get "data-highlighted"() {
|
|
77
|
+
return focused() ? "" : void 0;
|
|
78
|
+
}
|
|
79
|
+
}], false);
|
|
80
|
+
return _el$;
|
|
81
|
+
})(),
|
|
82
|
+
get "class"() {
|
|
83
|
+
return cn("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground", "transition-colors ease-out outline-none select-none", "hover:bg-muted hover:text-foreground", "data-[expanded]:bg-muted data-[expanded]:text-foreground", "data-[highlighted]:bg-muted data-[highlighted]:text-foreground", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none", props.class);
|
|
84
|
+
},
|
|
85
|
+
get children() {
|
|
86
|
+
return [memo(() => {
|
|
87
|
+
return props.children;
|
|
88
|
+
}), createComponent(ChevronDown$1, {
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
class: "size-3.5 transition-transform duration-200 ease-out [[data-expanded]_&]:rotate-180"
|
|
91
|
+
})];
|
|
92
|
+
}
|
|
93
|
+
}));
|
|
46
94
|
}
|
|
47
|
-
function NavigationMenuContent(props) {
|
|
48
|
-
const
|
|
49
|
-
return createComponent(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
95
|
+
function NavigationMenuContent$1(props) {
|
|
96
|
+
const rest = omit(props, "class", "children");
|
|
97
|
+
return createComponent(NavigationMenuContent, mergeProps(rest, {
|
|
98
|
+
render: (part, state) => (() => {
|
|
99
|
+
var _el$2 = _tmpl$2();
|
|
100
|
+
spread(_el$2, [part, { get "data-expanded"() {
|
|
101
|
+
return state.open ? "" : void 0;
|
|
102
|
+
} }], false);
|
|
103
|
+
return _el$2;
|
|
104
|
+
})(),
|
|
105
|
+
get "class"() {
|
|
106
|
+
return cn("absolute top-0 left-0 grid w-max gap-1 outline-none", "p-1", overlayMotion, "data-[wide]:grid-cols-2", props.class);
|
|
107
|
+
},
|
|
108
|
+
get children() {
|
|
109
|
+
return props.children;
|
|
110
|
+
}
|
|
111
|
+
}));
|
|
56
112
|
}
|
|
57
113
|
/**
|
|
58
114
|
* The shared panel surface. One per menu bar, and the wrapper supplies it — but
|
|
59
115
|
* exported so a caller with an unusual layout can place it themselves.
|
|
60
116
|
*
|
|
61
|
-
* It renders no children: the
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
117
|
+
* It renders no children: the open panel renders into it. ui-sdk places it
|
|
118
|
+
* under the open trigger and publishes the panel's size as `--viewport-width`
|
|
119
|
+
* and `--viewport-height`, which the surface animates between. `box-content`
|
|
120
|
+
* keeps the border outside that measured size so a panel is never clipped by
|
|
121
|
+
* its own frame.
|
|
66
122
|
*/
|
|
67
|
-
function NavigationMenuViewport(props) {
|
|
68
|
-
const
|
|
69
|
-
return createComponent(
|
|
123
|
+
function NavigationMenuViewport$1(props) {
|
|
124
|
+
const rest = omit(props, "class");
|
|
125
|
+
return createComponent(NavigationMenuViewport, mergeProps({ sideOffset: 6 }, rest, {
|
|
70
126
|
"data-slot": "navigation-menu-viewport",
|
|
71
|
-
get
|
|
72
|
-
return cn(overlaySurface, "isolate z-(--z-menu)
|
|
127
|
+
get "class"() {
|
|
128
|
+
return cn(overlaySurface, "isolate z-(--z-menu) box-content list-none overflow-hidden", "h-(--viewport-height) w-(--viewport-width)", "origin-(--transform-origin) transition-[width,height] duration-200 ease-out", props.class);
|
|
73
129
|
}
|
|
74
|
-
}
|
|
130
|
+
}));
|
|
75
131
|
}
|
|
76
|
-
function NavigationMenuItem(props) {
|
|
77
|
-
const [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
132
|
+
function NavigationMenuItem$1(props) {
|
|
133
|
+
const [highlighted, setHighlighted] = createSignal(false);
|
|
134
|
+
const rest = omit(props, "class", "children", "description", "icon", "onFocus", "onBlur", "onPointerEnter", "onPointerLeave");
|
|
135
|
+
const icon = children(() => props.icon);
|
|
136
|
+
return createComponent(NavigationMenuLink, mergeProps(rest, {
|
|
137
|
+
onFocus: (event) => {
|
|
138
|
+
setHighlighted(true);
|
|
139
|
+
callHandler(props.onFocus, event);
|
|
140
|
+
},
|
|
141
|
+
onBlur: (event) => {
|
|
142
|
+
setHighlighted(false);
|
|
143
|
+
callHandler(props.onBlur, event);
|
|
144
|
+
},
|
|
145
|
+
onPointerEnter: (event) => {
|
|
146
|
+
setHighlighted(true);
|
|
147
|
+
callHandler(props.onPointerEnter, event);
|
|
148
|
+
},
|
|
149
|
+
onPointerLeave: (event) => {
|
|
150
|
+
setHighlighted(false);
|
|
151
|
+
callHandler(props.onPointerLeave, event);
|
|
152
|
+
},
|
|
153
|
+
render: (part) => (() => {
|
|
154
|
+
var _el$4 = _tmpl$4();
|
|
155
|
+
spread(_el$4, [part, { get "data-highlighted"() {
|
|
156
|
+
return highlighted() ? "" : void 0;
|
|
157
|
+
} }], false);
|
|
158
|
+
return _el$4;
|
|
159
|
+
})(),
|
|
160
|
+
get "class"() {
|
|
161
|
+
return cn(menuItem, icon() ? "grid grid-cols-[auto_1fr]" : "grid grid-cols-1", "items-center gap-x-2 gap-y-0.5", props.description && "grid-rows-[auto_auto] py-2", props.class);
|
|
162
|
+
},
|
|
163
|
+
get children() {
|
|
164
|
+
return [
|
|
165
|
+
memo(() => {
|
|
166
|
+
return icon();
|
|
167
|
+
}),
|
|
168
|
+
(() => {
|
|
169
|
+
var _el$3 = _tmpl$3();
|
|
170
|
+
insert(_el$3, () => {
|
|
171
|
+
return props.children;
|
|
172
|
+
});
|
|
173
|
+
return _el$3;
|
|
174
|
+
})(),
|
|
175
|
+
memo(() => {
|
|
176
|
+
return memo(() => {
|
|
177
|
+
return !!props.description;
|
|
178
|
+
})() ? (() => {
|
|
179
|
+
var _el$5 = _tmpl$5();
|
|
180
|
+
insert(_el$5, () => {
|
|
181
|
+
return props.description;
|
|
182
|
+
});
|
|
183
|
+
effect(() => readShallow(cn("text-xs text-muted-foreground", { "col-start-2": !!icon() })), (_v$, _$p) => {
|
|
184
|
+
className(_el$5, _v$, _$p);
|
|
185
|
+
});
|
|
186
|
+
return _el$5;
|
|
187
|
+
})() : props.description;
|
|
188
|
+
})
|
|
189
|
+
];
|
|
190
|
+
}
|
|
191
|
+
}));
|
|
102
192
|
}
|
|
193
|
+
/** The rule between groups: an `hr`, whose preflight top border is part of its look. */
|
|
103
194
|
function NavigationMenuSeparator(props) {
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
195
|
+
const rest = omit(props, "class");
|
|
196
|
+
var _el$6 = _tmpl$6();
|
|
197
|
+
spread(_el$6, [rest, { get "class"() {
|
|
198
|
+
return cn(menuSeparator, props.class);
|
|
199
|
+
} }], false);
|
|
200
|
+
return _el$6;
|
|
108
201
|
}
|
|
109
|
-
|
|
202
|
+
var GroupLabelContext = createContext(null);
|
|
203
|
+
/** A non-interactive caption above a group of items, which names its group. */
|
|
110
204
|
function NavigationMenuGroupLabel(props) {
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
205
|
+
const id = useContext(GroupLabelContext);
|
|
206
|
+
const rest = omit(props, "class");
|
|
207
|
+
var _el$7 = _tmpl$5();
|
|
208
|
+
spread(_el$7, [
|
|
209
|
+
{ id: id ?? void 0 },
|
|
210
|
+
rest,
|
|
211
|
+
{ get "class"() {
|
|
212
|
+
return cn(menuLabel, props.class);
|
|
213
|
+
} }
|
|
214
|
+
], false);
|
|
215
|
+
return _el$7;
|
|
115
216
|
}
|
|
116
217
|
function NavigationMenuGroup(props) {
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
218
|
+
const labelId = createUniqueId();
|
|
219
|
+
const rest = omit(props, "class", "children");
|
|
220
|
+
return createComponent(GroupLabelContext, {
|
|
221
|
+
value: labelId,
|
|
222
|
+
get children() {
|
|
223
|
+
var _el$8 = _tmpl$2();
|
|
224
|
+
spread(_el$8, [
|
|
225
|
+
{
|
|
226
|
+
role: "group",
|
|
227
|
+
"aria-labelledby": labelId
|
|
228
|
+
},
|
|
229
|
+
rest,
|
|
230
|
+
{ get "class"() {
|
|
231
|
+
return cn("grid gap-0.5", props.class);
|
|
232
|
+
} }
|
|
233
|
+
], true);
|
|
234
|
+
insert(_el$8, () => {
|
|
235
|
+
return props.children;
|
|
236
|
+
});
|
|
237
|
+
return _el$8;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
121
240
|
}
|
|
122
|
-
export { NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport };
|
|
241
|
+
export { NavigationMenu$1 as NavigationMenu, NavigationMenuContent$1 as NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger$1 as NavigationMenuTrigger, NavigationMenuViewport$1 as NavigationMenuViewport };
|
|
123
242
|
|
|
124
243
|
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.js","names":["children","resolveChildren","splitProps","KobalteNavigationMenu","ChevronDown","LucideChevronDown","cn","menuItem","menuLabel","menuSeparator","overlayMotion","overlaySurface","fastIcon","Root","label","NavigationMenu","props","local","rest","_$createComponent","_$mergeProps","class","_$memo","NavigationMenuViewport","NavigationMenuMenu","Menu","NavigationMenuTrigger","Trigger","NavigationMenuContent","Content","Portal","Viewport","Item","description","icon","NavigationMenuItem","_el$","_tmpl$","_$insert","_el$2","_tmpl$2","_$effect","_$className","NavigationMenuSeparator","Separator","NavigationMenuGroupLabel","GroupLabel","NavigationMenuGroup","Group"],"sources":["../../../../src/components/ui/navigation-menu/navigation-menu.tsx"],"sourcesContent":["import { children as resolveChildren, splitProps, type ComponentProps, type JSX } from 'solid-js'\nimport * as KobalteNavigationMenu from '@kobalte/core/navigation-menu'\nimport { ChevronDown as LucideChevronDown } from 'lucide-solid'\nimport { cn } from '#lib/utils'\nimport {\n menuContentPadding,\n menuItem,\n menuLabel,\n menuSeparator,\n overlayMotion,\n overlaySurface,\n} from '#lib/overlay'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst ChevronDown = fastIcon(LucideChevronDown)\n\n/**\n * NavigationMenu.\n *\n * A site-style menu bar: top-level triggers that open panels of links. It is the\n * header pattern — a documentation site, a marketing page, an application with\n * several top-level destinations — and it is deliberately *not* a `Menubar`.\n * `Menubar` is a row of application menus (File, Edit, View) whose items are\n * commands; this is a row of destinations whose panels are links. The two have\n * different roles, different keyboard models, and different semantics.\n *\n * ## Composition\n *\n * Kobalte's primitive has an unusual shape, and getting it wrong is why this took\n * three attempts to port. The structure is:\n *\n * ```tsx\n * <NavigationMenu>\n * <NavigationMenuMenu>\n * <NavigationMenuTrigger>Destinations</NavigationMenuTrigger>\n * <NavigationMenuContent>\n * <NavigationMenuItem href=\"/x\">X</NavigationMenuItem>\n * </NavigationMenuContent>\n * </NavigationMenuMenu>\n * <NavigationMenuViewport />\n * </NavigationMenu>\n * ```\n *\n * Three facts that are not obvious from the prop types:\n *\n * - `Menu` renders **nothing**. It is a context provider — one per top-level\n * entry, naming it so the bar's arrow keys can move between entries. A menu\n * without one cannot be reached by keyboard.\n * - `Trigger` renders `<li role=\"presentation\"><button>`. It is already the list\n * item, so wrapping it in your own `<li>` produces a `<ul>` inside a `<ul>`.\n * - `Content` must be a direct child of `Menu`, and the `Viewport` is a **sibling\n * of the menus** — not inside them. All the panels share one viewport, which is\n * what lets the bar animate between them instead of each panel popping in place.\n * - The viewport is an empty surface. Each `Content` reaches it through Kobalte's\n * `Portal`, which mounts the panel inside the viewport while keeping it in its\n * own `Menu`'s context. A `Content` rendered anywhere else — the viewport's own\n * children included — has no `Menu` above it, and Kobalte throws\n * `useMenuRootContext must be used within a MenuRoot` the moment a panel opens.\n *\n * The wrapper enforces the last two by rendering the `Viewport` itself and by\n * portalling every `NavigationMenuContent`, so a caller cannot forget either and\n * get a menu whose panels never appear.\n */\n\nexport type NavigationMenuProps = ComponentProps<typeof KobalteNavigationMenu.Root> & {\n /** The accessible name for the navigation landmark. */\n label?: string\n}\n\nexport function NavigationMenu(props: NavigationMenuProps) {\n const [local, rest] = splitProps(props, ['label', 'class', 'children'])\n\n return (\n <KobalteNavigationMenu.Root\n class={cn(\n 'relative flex max-w-max flex-1 items-center justify-center',\n '[&>nav>ul]:flex [&>nav>ul]:items-center [&>nav>ul]:gap-1',\n local.class\n )}\n aria-label={local.label ?? 'Main'}\n {...rest}\n >\n {local.children}\n {/*\n The shared panel surface. Rendered here rather than left to the caller:\n every panel animates through this one element, and a menu bar without it\n opens panels that never paint.\n */}\n <NavigationMenuViewport />\n </KobalteNavigationMenu.Root>\n )\n}\n\n/**\n * One top-level entry. Renders nothing itself — see the note above — and exists\n * so a caller cannot build a bar whose entries the keyboard cannot reach.\n */\nexport function NavigationMenuMenu(props: ComponentProps<typeof KobalteNavigationMenu.Menu>) {\n return <KobalteNavigationMenu.Menu {...props} />\n}\n\nexport function NavigationMenuTrigger(props: ComponentProps<typeof KobalteNavigationMenu.Trigger>) {\n const [local, rest] = splitProps(props, ['class', 'children'])\n\n return (\n <KobalteNavigationMenu.Trigger\n class={cn(\n 'inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground',\n 'transition-colors ease-out outline-none select-none',\n 'hover:bg-muted hover:text-foreground',\n 'data-[expanded]:bg-muted data-[expanded]:text-foreground',\n 'data-[highlighted]:bg-muted data-[highlighted]:text-foreground',\n 'focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',\n local.class\n )}\n {...rest}\n >\n {local.children}\n <ChevronDown\n aria-hidden=\"true\"\n class=\"size-3.5 transition-transform duration-200 ease-out [[data-expanded]_&]:rotate-180\"\n />\n </KobalteNavigationMenu.Trigger>\n )\n}\n\nexport function NavigationMenuContent(props: ComponentProps<typeof KobalteNavigationMenu.Content>) {\n const [local, rest] = splitProps(props, ['class', 'children'])\n\n return (\n <KobalteNavigationMenu.Portal>\n <KobalteNavigationMenu.Content\n class={cn(\n // Absolute so the viewport sizes to the active panel's measured box and\n // animates between panels, rather than stacking them.\n 'absolute top-0 left-0 grid w-max gap-1 outline-none',\n // The viewport is the surface and carries no padding of its own (its\n // measured size is the panel's), so the panel supplies the inset every\n // menu surface shares — the one the separator's bleed is cut for.\n menuContentPadding,\n // The motion is the panel's, not the viewport's. Kobalte keeps an\n // outgoing panel mounted until the viewport's own animation ends; a\n // viewport that carries an entrance animation never fires that again\n // after it opens, so the previous panel would stay painted under the\n // next one.\n overlayMotion,\n // A two-column panel is the shape most menu bars want, and it is opt-in\n // through this hook rather than a prop because the column count is a\n // layout decision the caller's content makes.\n 'data-[wide]:grid-cols-2',\n local.class\n )}\n {...rest}\n >\n {local.children}\n </KobalteNavigationMenu.Content>\n </KobalteNavigationMenu.Portal>\n )\n}\n\n/**\n * The shared panel surface. One per menu bar, and the wrapper supplies it — but\n * exported so a caller with an unusual layout can place it themselves.\n *\n * It renders no children: the panels arrive through each `NavigationMenuContent`'s\n * portal. Kobalte positions it under the bar and publishes the active panel's size\n * as `--kb-navigation-menu-viewport-*`, which the surface animates between.\n * `box-content` keeps the border outside that measured size so a panel is never\n * clipped by its own frame.\n */\nexport function NavigationMenuViewport(\n props: ComponentProps<typeof KobalteNavigationMenu.Viewport>\n) {\n const [local, rest] = splitProps(props, ['class'])\n\n return (\n <KobalteNavigationMenu.Viewport\n data-slot=\"navigation-menu-viewport\"\n class={cn(\n overlaySurface,\n 'isolate z-(--z-menu) mt-1.5 box-content list-none overflow-hidden',\n 'h-(--kb-navigation-menu-viewport-height) w-(--kb-navigation-menu-viewport-width)',\n 'origin-(--kb-menu-content-transform-origin) transition-[width,height] duration-200 ease-out',\n local.class\n )}\n {...rest}\n />\n )\n}\n\n/**\n * A link inside a panel. `href` is the point of the component, so it is a link\n * rather than a button — and the accessible name comes from its text, which is\n * why there is no `aria-label` here.\n */\nexport type NavigationMenuItemProps = ComponentProps<typeof KobalteNavigationMenu.Item> & {\n /** A one-line description, shown under the label. */\n description?: string\n icon?: JSX.Element\n}\n\nexport function NavigationMenuItem(props: NavigationMenuItemProps) {\n const [local, rest] = splitProps(props, ['class', 'children', 'description', 'icon'])\n const icon = resolveChildren(() => local.icon)\n\n return (\n <KobalteNavigationMenu.Item\n class={cn(\n menuItem,\n // The description sits under the label, in the label's column. Without\n // an icon there is no leading column, and a two-column grid would set\n // the description beside the label instead of beneath it.\n icon() ? 'grid grid-cols-[auto_1fr]' : 'grid grid-cols-1',\n 'items-center gap-x-2 gap-y-0.5',\n local.description && 'grid-rows-[auto_auto] py-2',\n local.class\n )}\n {...rest}\n >\n {icon()}\n <span class=\"font-medium\">{local.children}</span>\n {local.description && (\n <span\n class={cn('text-xs text-muted-foreground', {\n 'col-start-2': !!icon(),\n })}\n >\n {local.description}\n </span>\n )}\n </KobalteNavigationMenu.Item>\n )\n}\n\nexport function NavigationMenuSeparator(\n props: ComponentProps<typeof KobalteNavigationMenu.Separator>\n) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteNavigationMenu.Separator class={cn(menuSeparator, local.class)} {...rest} />\n}\n\n/** A non-interactive caption above a group of items. */\nexport function NavigationMenuGroupLabel(\n props: ComponentProps<typeof KobalteNavigationMenu.GroupLabel>\n) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteNavigationMenu.GroupLabel class={cn(menuLabel, local.class)} {...rest} />\n}\n\nexport function NavigationMenuGroup(props: ComponentProps<typeof KobalteNavigationMenu.Group>) {\n const [local, rest] = splitProps(props, ['class'])\n return <KobalteNavigationMenu.Group class={cn('grid gap-0.5', local.class)} {...rest} />\n}\n"],"mappings":";;;;;;;;;;AAeA,IAAMI,gBAAcQ,SAASP,WAAiB;AAuD9C,SAAgBU,eAAeC,OAA4B;CACzD,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO;EAAC;EAAS;EAAS;CAAU,CAAC;CAEtE,OAAAG,gBACGhB,sBAAsBU,MAAIO,WAAA;EAAA,KAAA,WAAA;GAAA,OAClBd,GACL,8DACA,4DACAW,MAAMI,KACR;EAAC;EAAA,KAAA,gBAAA;GAAA,OACWJ,MAAMH,SAAS;EAAM;CAAA,GAC7BI,MAAI,EAAA,IAAAlB,WAAA;EAAA,OAAA,CAAAsB,WAEPL,MAAMjB,QAAQ,GAAAmB,gBAMdI,wBAAsB,CAAA,CAAA,CAAA;CAAA,EAAA,CAAA,CAAA;AAG7B;;;;;AAMA,SAAgBC,mBAAmBR,OAA0D;CAC3F,OAAAG,gBAAQhB,sBAAsBsB,MAAST,KAAK;AAC9C;AAEA,SAAgBU,sBAAsBV,OAA6D;CACjG,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO,CAAC,SAAS,UAAU,CAAC;CAE7D,OAAAG,gBACGhB,sBAAsBwB,SAAOP,WAAA,EAAA,KAAA,WAAA;EAAA,OACrBd,GACL,mGACA,uDACA,wCACA,4DACA,kEACA,2EACAW,MAAMI,KACR;CAAC,EAAA,GACGH,MAAI,EAAA,IAAAlB,WAAA;EAAA,OAAA,CAAAsB,WAEPL,MAAMjB,QAAQ,GAAAmB,gBACdf,eAAW;GAAA,eAAA;GAAA,SAAA;EAAA,CAAA,CAAA;CAAA,EAAA,CAAA,CAAA;AAMlB;AAEA,SAAgBwB,sBAAsBZ,OAA6D;CACjG,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO,CAAC,SAAS,UAAU,CAAC;CAE7D,OAAAG,gBACGhB,sBAAsB2B,QAAM,EAAA,IAAA9B,WAAA;EAAA,OAAAmB,gBAC1BhB,sBAAsB0B,SAAOT,WAAA,EAAA,KAAA,WAAA;GAAA,OACrBd,GAGL,uDAAA,OAUAI,eAIA,2BACAO,MAAMI,KACR;EAAC,EAAA,GACGH,MAAI,EAAA,IAAAlB,WAAA;GAAA,OAEPiB,MAAMjB;EAAQ,EAAA,CAAA,CAAA;CAAA,EAAA,CAAA;AAIvB;;;;;;;;;;;AAYA,SAAgBuB,uBACdP,OACA;CACA,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO,CAAC,OAAO,CAAC;CAEjD,OAAAG,gBACGhB,sBAAsB4B,UAAQX,WAAA;EAAA,aAAA;EAAA,KAAA,WAAA;GAAA,OAEtBd,GACLK,gBACA,qEACA,oFACA,+FACAM,MAAMI,KACR;EAAC;CAAA,GACGH,IAAI,CAAA;AAGd;AAaA,SAAgBiB,mBAAmBnB,OAAgC;CACjE,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO;EAAC;EAAS;EAAY;EAAe;CAAM,CAAC;CACpF,MAAMkB,OAAOjC,eAAsBgB,MAAMiB,IAAI;CAE7C,OAAAf,gBACGhB,sBAAsB6B,MAAIZ,WAAA,EAAA,KAAA,WAAA;EAAA,OAClBd,GACLC,UAIA2B,KAAK,IAAI,8BAA8B,oBACvC,kCACAjB,MAAMgB,eAAe,8BACrBhB,MAAMI,KACR;CAAC,EAAA,GACGH,MAAI,EAAA,IAAAlB,WAAA;EAAA,OAAA;GAAAsB,WAEPY,KAAK,CAAC;UAAA;IAAA,IAAAE,OAAAC,OAAA;IAAAC,OAAAF,YACoBnB,MAAMjB,QAAQ;IAAA,OAAAoC;GAAA,EAAA,CAAA;GAAAd,WACxCA,WAAA,CAAA,CAAAL,MAAMgB,WAAW,CAAA,CAAA,YAAA;IAAA,IAAAM,QAAAC,QAAA;IAAAF,OAAAC,aAMbtB,MAAMgB,WAAW;IAAAQ,aAAAC,UAAAH,OAJXjC,GAAG,iCAAiC,EACzC,eAAe,CAAC,CAAC4B,KAAK,EACxB,CAAC,CAAC,CAAA;IAAA,OAAAK;GAAA,EAAA,CAAA,CAIL;EAAA;CAAA,EAAA,CAAA,CAAA;AAGP;AAEA,SAAgBI,wBACd3B,OACA;CACA,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAG,gBAAQhB,sBAAsByC,WAASxB,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQd,GAAGG,eAAeQ,MAAMI,KAAK;CAAC,EAAA,GAAMH,IAAI,CAAA;AACzF;;AAGA,SAAgB2B,yBACd7B,OACA;CACA,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAG,gBAAQhB,sBAAsB2C,YAAU1B,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQd,GAAGE,WAAWS,MAAMI,KAAK;CAAC,EAAA,GAAMH,IAAI,CAAA;AACtF;AAEA,SAAgB6B,oBAAoB/B,OAA2D;CAC7F,MAAM,CAACC,OAAOC,QAAQhB,WAAWc,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAG,gBAAQhB,sBAAsB6C,OAAK5B,WAAA,EAAA,KAAA,WAAA;EAAA,OAAQd,GAAG,gBAAgBW,MAAMI,KAAK;CAAC,EAAA,GAAMH,IAAI,CAAA;AACtF"}
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","names":["<NavigationMenuPrimitive\n {...(rest as Record<string, unknown>)}\n value={props.value === undefined ? undefined : props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? undefined)}\n orientation={props.orientation}\n delay={props.delayDuration}\n openOnHover={props.openOnHover}\n aria-label={props.label ?? 'Main'}\n class={cn('relative flex max-w-max flex-1 items-center justify-center', props.class)}\n >\n <NavigationMenuListPrimitive class=\"flex items-center gap-1\">\n {props.children}\n </NavigationMenuListPrimitive>\n {/*\n The shared panel surface. Rendered here rather than left to the caller:\n every panel animates through this one element.\n */}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive>","props.value === undefined ? undefined : props.value","onValueChange={(value: string | null) => props.onValueChange?.(value ?? undefined)}","<NavigationMenuListPrimitive class=\"flex items-center gap-1\">\n {props.children}\n </NavigationMenuListPrimitive>","class=\"flex items-center gap-1\"","<NavigationMenuViewport />","<NavigationMenuItemPrimitive {...(props as Record<string, unknown>)} />","<NavigationMenuTriggerPrimitive\n {...(rest as Record<string, unknown>)}\n onFocus={(event: FocusEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n setFocused(true)\n callHandler(props.onFocus, event)\n }}\n onBlur={(event: FocusEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n setFocused(false)\n callHandler(props.onBlur, event)\n }}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button\n {...part}\n data-expanded={state.open ? '' : undefined}\n data-highlighted={focused() ? '' : undefined}\n />\n )}\n class={cn(\n 'inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground',\n 'transition-colors ease-out outline-none select-none',\n 'hover:bg-muted hover:text-foreground',\n 'data-[expanded]:bg-muted data-[expanded]:text-foreground',\n 'data-[highlighted]:bg-muted data-[highlighted]:text-foreground',\n 'focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',\n props.class\n )}\n >\n {props.children}\n <ChevronDown\n aria-hidden=\"true\"\n class=\"size-3.5 transition-transform duration-200 ease-out [[data-expanded]_&]:rotate-180\"\n />\n </NavigationMenuTriggerPrimitive>","onFocus={(event: FocusEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n setFocused(true)\n callHandler(props.onFocus, event)\n }}","onBlur={(event: FocusEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n setFocused(false)\n callHandler(props.onBlur, event)\n }}","render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button\n {...part}\n data-expanded={state.open ? '' : undefined}\n data-highlighted={focused() ? '' : undefined}\n />\n )}","props.children","<ChevronDown\n aria-hidden=\"true\"\n class=\"size-3.5 transition-transform duration-200 ease-out [[data-expanded]_&]:rotate-180\"\n />","class=\"size-3.5 transition-transform duration-200 ease-out [[data-expanded]_&]:rotate-180\"","<NavigationMenuContentPrimitive\n {...(rest as Record<string, unknown>)}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n // Absolute so the viewport sizes to the active panel's measured box and\n // animates between panels, rather than stacking them.\n 'absolute top-0 left-0 grid w-max gap-1 outline-none',\n // The viewport is the surface and carries no padding of its own (its\n // measured size is the panel's), so the panel supplies the inset every\n // menu surface shares — the one the separator's bleed is cut for.\n menuContentPadding,\n // The motion is the panel's, not the viewport's: ui-sdk keeps an\n // outgoing panel mounted until its own exit animation ends, so each\n // panel fades and zooms on its own while the viewport resizes.\n overlayMotion,\n // A two-column panel is the shape most menu bars want, and it is opt-in\n // through this hook rather than a prop because the column count is a\n // layout decision the caller's content makes.\n 'data-[wide]:grid-cols-2',\n props.class\n )}\n >\n {props.children}\n </NavigationMenuContentPrimitive>","render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}","<NavigationMenuViewportPrimitive\n // The 6px gap the surface's `mt-1.5` drew; ui-sdk writes the popup's\n // margin inline, so the gap is the placement's offset now.\n sideOffset={6}\n {...(rest as Record<string, unknown>)}\n data-slot=\"navigation-menu-viewport\"\n class={cn(\n overlaySurface,\n 'isolate z-(--z-menu) box-content list-none overflow-hidden',\n 'h-(--viewport-height) w-(--viewport-width)',\n 'origin-(--transform-origin) transition-[width,height] duration-200 ease-out',\n props.class\n )}\n />","sideOffset={6}","<NavigationMenuLinkPrimitive\n {...(rest as Record<string, unknown>)}\n onFocus={(event: FocusEvent & { currentTarget: HTMLAnchorElement; target: Element }) => {\n setHighlighted(true)\n callHandler(props.onFocus, event)\n }}\n onBlur={(event: FocusEvent & { currentTarget: HTMLAnchorElement; target: Element }) => {\n setHighlighted(false)\n callHandler(props.onBlur, event)\n }}\n onPointerEnter={(\n event: PointerEvent & { currentTarget: HTMLAnchorElement; target: Element }\n ) => {\n setHighlighted(true)\n callHandler(props.onPointerEnter, event)\n }}\n onPointerLeave={(\n event: PointerEvent & { currentTarget: HTMLAnchorElement; target: Element }\n ) => {\n setHighlighted(false)\n callHandler(props.onPointerLeave, event)\n }}\n render={(part: Record<string, unknown>) => (\n <a {...part} data-highlighted={highlighted() ? '' : undefined} />\n )}\n class={cn(\n menuItem,\n // The description sits under the label, in the label's column. Without\n // an icon there is no leading column, and a two-column grid would set\n // the description beside the label instead of beneath it.\n icon() ? 'grid grid-cols-[auto_1fr]' : 'grid grid-cols-1',\n 'items-center gap-x-2 gap-y-0.5',\n props.description && 'grid-rows-[auto_auto] py-2',\n props.class\n )}\n >\n {icon()}\n <span class=\"font-medium\">{props.children}</span>\n {props.description && (\n <span class={cn('text-xs text-muted-foreground', { 'col-start-2': !!icon() })}>\n {props.description}\n </span>\n )}\n </NavigationMenuLinkPrimitive>","onFocus={(event: FocusEvent & { currentTarget: HTMLAnchorElement; target: Element }) => {\n setHighlighted(true)\n callHandler(props.onFocus, event)\n }}","onBlur={(event: FocusEvent & { currentTarget: HTMLAnchorElement; target: Element }) => {\n setHighlighted(false)\n callHandler(props.onBlur, event)\n }}","onPointerEnter={(\n event: PointerEvent & { currentTarget: HTMLAnchorElement; target: Element }\n ) => {\n setHighlighted(true)\n callHandler(props.onPointerEnter, event)\n }}","onPointerLeave={(\n event: PointerEvent & { currentTarget: HTMLAnchorElement; target: Element }\n ) => {\n setHighlighted(false)\n callHandler(props.onPointerLeave, event)\n }}","render={(part: Record<string, unknown>) => (\n <a {...part} data-highlighted={highlighted() ? '' : undefined} />\n )}","icon()","{props.description && (\n <span class={cn('text-xs text-muted-foreground', { 'col-start-2': !!icon() })}>\n {props.description}\n </span>\n )}","<hr {...rest} class={cn(menuSeparator, props.class)} />","id={id ?? undefined}","<span id={id ?? undefined} {...rest} class={cn(menuLabel, props.class)} />","<GroupLabelContext value={labelId}>\n <div role=\"group\" aria-labelledby={labelId} {...rest} class={cn('grid gap-0.5', props.class)}>\n {props.children}\n </div>\n </GroupLabelContext>","value={labelId}","role=\"group\"","<div role=\"group\" aria-labelledby={labelId} {...rest} class={cn('grid gap-0.5', props.class)}>\n {props.children}\n </div>","ChevronDown","LucideChevronDown","NavigationMenu","NavigationMenuViewport","NavigationMenuTrigger","NavigationMenuContent","NavigationMenuItem","resolveChildren","_$readShallow"],"sources":["../../../../src/components/ui/navigation-menu/navigation-menu.tsx"],"sourcesContent":["import {\n children as resolveChildren,\n createContext,\n createSignal,\n createUniqueId,\n omit,\n useContext,\n} from 'solid-js'\nimport { type ComponentProps, type JSX } from '@solidjs/web'\nimport {\n NavigationMenu as NavigationMenuPrimitive,\n NavigationMenuContent as NavigationMenuContentPrimitive,\n NavigationMenuItem as NavigationMenuItemPrimitive,\n NavigationMenuLink as NavigationMenuLinkPrimitive,\n NavigationMenuList as NavigationMenuListPrimitive,\n NavigationMenuTrigger as NavigationMenuTriggerPrimitive,\n NavigationMenuViewport as NavigationMenuViewportPrimitive,\n} from '@ui-sdk/solid/navigation-menu'\nimport { ChevronDown as LucideChevronDown } from '@lucide/solid'\nimport { callHandler } from '#lib/events'\nimport { cn } from '#lib/utils'\nimport {\n menuContentPadding,\n menuItem,\n menuLabel,\n menuSeparator,\n overlayMotion,\n overlaySurface,\n} from '#lib/overlay'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst ChevronDown = fastIcon(LucideChevronDown)\n\n/**\n * NavigationMenu.\n *\n * A site-style menu bar: top-level triggers that open panels of links. It is the\n * header pattern — a documentation site, a marketing page, an application with\n * several top-level destinations — and it is deliberately *not* a `Menubar`.\n * `Menubar` is a row of application menus (File, Edit, View) whose items are\n * commands; this is a row of destinations whose panels are links. The two have\n * different roles, different keyboard models, and different semantics: this one\n * is ui-sdk's disclosure navigation, a `<nav>` of buttons that show groups of\n * ordinary links.\n *\n * ## Composition\n *\n * ```tsx\n * <NavigationMenu>\n * <NavigationMenuMenu>\n * <NavigationMenuTrigger>Destinations</NavigationMenuTrigger>\n * <NavigationMenuContent>\n * <NavigationMenuItem href=\"/x\">X</NavigationMenuItem>\n * </NavigationMenuContent>\n * </NavigationMenuMenu>\n * </NavigationMenu>\n * ```\n *\n * - `Menu` is one top-level entry, the bar's `<li>`. The bar renders its own\n * `<ul>`, so a caller never writes the list or wraps a trigger in an `<li>`.\n * - `Content` belongs inside its `Menu`, next to the trigger. While open it\n * renders into the one shared viewport, which is what lets the bar animate\n * between panels instead of each popping in place.\n *\n * The wrapper renders the viewport itself, so a caller cannot forget it and\n * get a menu whose panels never paint.\n */\n\nexport type NavigationMenuProps = Omit<\n ComponentProps<'nav'>,\n 'value' | 'defaultValue' | 'onChange' | 'onSelect'\n> & {\n /** The accessible name for the navigation landmark. */\n label?: string\n /** The open entry's value. `null` or `undefined` closes every panel. */\n value?: string | null\n defaultValue?: string | null\n onValueChange?: (value: string | undefined) => void\n /** Which arrow keys move between the entries, and where panels open. */\n orientation?: 'horizontal' | 'vertical'\n /** Milliseconds the pointer rests on a trigger before its panel opens. */\n delayDuration?: number\n /** Whether resting the pointer on a trigger opens its panel. */\n openOnHover?: boolean\n}\n\nexport function NavigationMenu(props: NavigationMenuProps) {\n const rest = omit(\n props,\n 'label',\n 'class',\n 'children',\n 'value',\n 'defaultValue',\n 'onValueChange',\n 'orientation',\n 'delayDuration',\n 'openOnHover'\n )\n\n return (\n <NavigationMenuPrimitive\n {...(rest as Record<string, unknown>)}\n value={props.value === undefined ? undefined : props.value}\n defaultValue={props.defaultValue}\n onValueChange={(value: string | null) => props.onValueChange?.(value ?? undefined)}\n orientation={props.orientation}\n delay={props.delayDuration}\n openOnHover={props.openOnHover}\n aria-label={props.label ?? 'Main'}\n class={cn('relative flex max-w-max flex-1 items-center justify-center', props.class)}\n >\n <NavigationMenuListPrimitive class=\"flex items-center gap-1\">\n {props.children}\n </NavigationMenuListPrimitive>\n {/*\n The shared panel surface. Rendered here rather than left to the caller:\n every panel animates through this one element.\n */}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive>\n )\n}\n\n/** One top-level entry: the bar's `<li>`, holding a trigger and its panel. */\nexport function NavigationMenuMenu(\n props: Omit<ComponentProps<'li'>, 'value'> & {\n /** Names the entry, for the root's `value`. */\n value?: string\n }\n) {\n return <NavigationMenuItemPrimitive {...(props as Record<string, unknown>)} />\n}\n\nexport function NavigationMenuTrigger(props: ComponentProps<'button'>) {\n // Kobalte marked the focused trigger `data-highlighted`; ui-sdk's trigger\n // reports `data-open` only, so the trigger keeps its own.\n const [focused, setFocused] = createSignal(false)\n const rest = omit(props, 'class', 'children', 'onFocus', 'onBlur')\n\n return (\n <NavigationMenuTriggerPrimitive\n {...(rest as Record<string, unknown>)}\n onFocus={(event: FocusEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n setFocused(true)\n callHandler(props.onFocus, event)\n }}\n onBlur={(event: FocusEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n setFocused(false)\n callHandler(props.onBlur, event)\n }}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <button\n {...part}\n data-expanded={state.open ? '' : undefined}\n data-highlighted={focused() ? '' : undefined}\n />\n )}\n class={cn(\n 'inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground',\n 'transition-colors ease-out outline-none select-none',\n 'hover:bg-muted hover:text-foreground',\n 'data-[expanded]:bg-muted data-[expanded]:text-foreground',\n 'data-[highlighted]:bg-muted data-[highlighted]:text-foreground',\n 'focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',\n props.class\n )}\n >\n {props.children}\n <ChevronDown\n aria-hidden=\"true\"\n class=\"size-3.5 transition-transform duration-200 ease-out [[data-expanded]_&]:rotate-180\"\n />\n </NavigationMenuTriggerPrimitive>\n )\n}\n\nexport function NavigationMenuContent(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class', 'children')\n\n return (\n <NavigationMenuContentPrimitive\n {...(rest as Record<string, unknown>)}\n render={(part: Record<string, unknown>, state: { open: boolean }) => (\n <div {...part} data-expanded={state.open ? '' : undefined} />\n )}\n class={cn(\n // Absolute so the viewport sizes to the active panel's measured box and\n // animates between panels, rather than stacking them.\n 'absolute top-0 left-0 grid w-max gap-1 outline-none',\n // The viewport is the surface and carries no padding of its own (its\n // measured size is the panel's), so the panel supplies the inset every\n // menu surface shares — the one the separator's bleed is cut for.\n menuContentPadding,\n // The motion is the panel's, not the viewport's: ui-sdk keeps an\n // outgoing panel mounted until its own exit animation ends, so each\n // panel fades and zooms on its own while the viewport resizes.\n overlayMotion,\n // A two-column panel is the shape most menu bars want, and it is opt-in\n // through this hook rather than a prop because the column count is a\n // layout decision the caller's content makes.\n 'data-[wide]:grid-cols-2',\n props.class\n )}\n >\n {props.children}\n </NavigationMenuContentPrimitive>\n )\n}\n\n/**\n * The shared panel surface. One per menu bar, and the wrapper supplies it — but\n * exported so a caller with an unusual layout can place it themselves.\n *\n * It renders no children: the open panel renders into it. ui-sdk places it\n * under the open trigger and publishes the panel's size as `--viewport-width`\n * and `--viewport-height`, which the surface animates between. `box-content`\n * keeps the border outside that measured size so a panel is never clipped by\n * its own frame.\n */\nexport function NavigationMenuViewport(props: ComponentProps<'div'>) {\n const rest = omit(props, 'class')\n\n return (\n <NavigationMenuViewportPrimitive\n // The 6px gap the surface's `mt-1.5` drew; ui-sdk writes the popup's\n // margin inline, so the gap is the placement's offset now.\n sideOffset={6}\n {...(rest as Record<string, unknown>)}\n data-slot=\"navigation-menu-viewport\"\n class={cn(\n overlaySurface,\n 'isolate z-(--z-menu) box-content list-none overflow-hidden',\n 'h-(--viewport-height) w-(--viewport-width)',\n 'origin-(--transform-origin) transition-[width,height] duration-200 ease-out',\n props.class\n )}\n />\n )\n}\n\n/**\n * A link inside a panel. `href` is the point of the component, so it is a link\n * rather than a button — and the accessible name comes from its text, which is\n * why there is no `aria-label` here.\n */\nexport type NavigationMenuItemProps = ComponentProps<'a'> & {\n /** A one-line description, shown under the label. */\n description?: string\n icon?: JSX.Element\n /** Marks the link as the current page (`aria-current=\"page\"`). */\n current?: boolean\n /** Whether pressing the link closes the menu. */\n closeOnSelect?: boolean\n}\n\nexport function NavigationMenuItem(props: NavigationMenuItemProps) {\n // The row's hover and focus fill keys on `data-highlighted`, which Kobalte\n // set on the row under the pointer or focus; ui-sdk's link is a plain link.\n const [highlighted, setHighlighted] = createSignal(false)\n const rest = omit(\n props,\n 'class',\n 'children',\n 'description',\n 'icon',\n 'onFocus',\n 'onBlur',\n 'onPointerEnter',\n 'onPointerLeave'\n )\n const icon = resolveChildren(() => props.icon)\n\n return (\n <NavigationMenuLinkPrimitive\n {...(rest as Record<string, unknown>)}\n onFocus={(event: FocusEvent & { currentTarget: HTMLAnchorElement; target: Element }) => {\n setHighlighted(true)\n callHandler(props.onFocus, event)\n }}\n onBlur={(event: FocusEvent & { currentTarget: HTMLAnchorElement; target: Element }) => {\n setHighlighted(false)\n callHandler(props.onBlur, event)\n }}\n onPointerEnter={(\n event: PointerEvent & { currentTarget: HTMLAnchorElement; target: Element }\n ) => {\n setHighlighted(true)\n callHandler(props.onPointerEnter, event)\n }}\n onPointerLeave={(\n event: PointerEvent & { currentTarget: HTMLAnchorElement; target: Element }\n ) => {\n setHighlighted(false)\n callHandler(props.onPointerLeave, event)\n }}\n render={(part: Record<string, unknown>) => (\n <a {...part} data-highlighted={highlighted() ? '' : undefined} />\n )}\n class={cn(\n menuItem,\n // The description sits under the label, in the label's column. Without\n // an icon there is no leading column, and a two-column grid would set\n // the description beside the label instead of beneath it.\n icon() ? 'grid grid-cols-[auto_1fr]' : 'grid grid-cols-1',\n 'items-center gap-x-2 gap-y-0.5',\n props.description && 'grid-rows-[auto_auto] py-2',\n props.class\n )}\n >\n {icon()}\n <span class=\"font-medium\">{props.children}</span>\n {props.description && (\n <span class={cn('text-xs text-muted-foreground', { 'col-start-2': !!icon() })}>\n {props.description}\n </span>\n )}\n </NavigationMenuLinkPrimitive>\n )\n}\n\n/** The rule between groups: an `hr`, whose preflight top border is part of its look. */\nexport function NavigationMenuSeparator(props: ComponentProps<'hr'>) {\n const rest = omit(props, 'class')\n return <hr {...rest} class={cn(menuSeparator, props.class)} />\n}\n\nconst GroupLabelContext = createContext<string | null>(null)\n\n/** A non-interactive caption above a group of items, which names its group. */\nexport function NavigationMenuGroupLabel(props: ComponentProps<'span'>) {\n const id = useContext(GroupLabelContext)\n const rest = omit(props, 'class')\n return <span id={id ?? undefined} {...rest} class={cn(menuLabel, props.class)} />\n}\n\nexport function NavigationMenuGroup(props: ComponentProps<'div'>) {\n const labelId = createUniqueId()\n const rest = omit(props, 'class', 'children')\n return (\n <GroupLabelContext value={labelId}>\n <div role=\"group\" aria-labelledby={labelId} {...rest} class={cn('grid gap-0.5', props.class)}>\n {props.children}\n </div>\n </GroupLabelContext>\n )\n}\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Pagination as
|
|
2
|
-
import type { ComponentProps, JSX } from '
|
|
1
|
+
import { Pagination as SdkPagination, PaginationEllipsis as SdkPaginationEllipsis, PaginationLink as SdkPaginationLink, PaginationPrevious as SdkPaginationPrevious } from '@ui-sdk/solid/pagination';
|
|
2
|
+
import type { ComponentProps, JSX } from '@solidjs/web';
|
|
3
3
|
/**
|
|
4
4
|
* Pagination.
|
|
5
5
|
*
|
|
@@ -7,27 +7,47 @@ import type { ComponentProps, JSX } from 'solid-js';
|
|
|
7
7
|
* holds — slicing an array you have is a filter, and it should not spend a round
|
|
8
8
|
* trip.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* `aria-current="page"`, so the control announces which
|
|
12
|
-
* leaving it to colour alone.
|
|
10
|
+
* ui-sdk's Pagination computes the visible page window and the ellipsis
|
|
11
|
+
* positions and emits `aria-current="page"`, so the control announces which
|
|
12
|
+
* page is active instead of leaving it to colour alone. At either end the
|
|
13
|
+
* Previous or Next step stays focusable and says it is unavailable with
|
|
14
|
+
* `aria-disabled`, rather than dropping out of the tab order.
|
|
13
15
|
*
|
|
14
16
|
* The item and ellipsis renderers are *supplied here*, not required of the caller.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* needs to.
|
|
17
|
+
* A headless primitive has no opinion about how a page number should look; a
|
|
18
|
+
* design system does, so the only thing a caller has to pass is `count` — while
|
|
19
|
+
* still being able to override either renderer when a view needs to.
|
|
19
20
|
*/
|
|
20
|
-
export type PaginationProps = Omit<
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
export type PaginationProps = Omit<ComponentProps<typeof SdkPagination>, 'pageCount' | 'siblings' | 'boundaries' | 'onPageChange' | 'onChange' | 'children' | 'total' | 'pageSize'> & {
|
|
22
|
+
/** How many pages there are. */
|
|
23
|
+
count: number;
|
|
24
|
+
/** Called with the new page, from 1. */
|
|
25
|
+
onPageChange?: (page: number) => void;
|
|
26
|
+
/** How many pages show on each side of the current one; 1 by default. */
|
|
27
|
+
siblingCount?: number;
|
|
28
|
+
/** Whether the first page always shows; with `showLast`, both default to true. */
|
|
29
|
+
showFirst?: boolean;
|
|
30
|
+
/** Whether the last page always shows. */
|
|
31
|
+
showLast?: boolean;
|
|
32
|
+
/** Draws one page of the run; `PaginationItem` by default. */
|
|
33
|
+
itemComponent?: (props: {
|
|
34
|
+
page: number;
|
|
35
|
+
}) => JSX.Element;
|
|
36
|
+
/** Draws one gap in the run; `PaginationEllipsis` by default. */
|
|
37
|
+
ellipsisComponent?: () => JSX.Element;
|
|
23
38
|
class?: string;
|
|
39
|
+
/** Replaces Previous, the page run and Next, inside the list. */
|
|
24
40
|
children?: JSX.Element;
|
|
25
41
|
};
|
|
26
42
|
export declare function Pagination(props: PaginationProps): JSX.Element;
|
|
27
|
-
|
|
28
|
-
export declare function
|
|
29
|
-
export declare function
|
|
30
|
-
|
|
43
|
+
type StepProps = ComponentProps<typeof SdkPaginationPrevious>;
|
|
44
|
+
export declare function PaginationPrevious(props: StepProps): JSX.Element;
|
|
45
|
+
export declare function PaginationNext(props: StepProps): JSX.Element;
|
|
46
|
+
/** One page of the run: a list item holding the page's button (or link, with `getHref`). */
|
|
47
|
+
export declare function PaginationItem(props: ComponentProps<typeof SdkPaginationLink>): JSX.Element;
|
|
48
|
+
/** A gap in the run. Hidden from screen readers, which hear the page numbers around it. */
|
|
49
|
+
export declare function PaginationEllipsis(props: ComponentProps<typeof SdkPaginationEllipsis> & {
|
|
31
50
|
children?: JSX.Element;
|
|
32
51
|
}): JSX.Element;
|
|
52
|
+
export {};
|
|
33
53
|
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pagination/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,iBAAiB,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pagination/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,aAAa,EAC3B,kBAAkB,IAAI,qBAAqB,EAE3C,cAAc,IAAI,iBAAiB,EAGnC,kBAAkB,IAAI,qBAAqB,EAC5C,MAAM,0BAA0B,CAAA;AAMjC,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAUvD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,cAAc,CAAC,OAAO,aAAa,CAAC,EAClC,WAAW,GACX,UAAU,GACV,YAAY,GACZ,cAAc,GACd,UAAU,GACV,UAAU,GACV,OAAO,GACP,UAAU,CACb,GAAG;IACF,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,wCAAwC;IACxC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,yEAAyE;IACzE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAA;IACxD,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,CAAA;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iEAAiE;IACjE,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB,CAAA;AAcD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,eA2DhD;AAOD,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE7D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,eAkBlD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,eAe9C;AAED,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,iBAAiB,CAAC,eAiB7E;AAED,2FAA2F;AAC3F,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CAAE,eAcjF"}
|