@adea-ai/ui 0.159.9 → 0.160.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -24
- package/dist/NOTICE +11 -12
- package/dist/components/composites/about-dialog/about-dialog.d.ts +1 -1
- package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
- package/dist/components/composites/about-dialog/about-dialog.js +26 -15
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts +1 -1
- package/dist/components/composites/accent-picker/accent-picker.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.js +186 -175
- package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.d.ts.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.js +114 -100
- package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +68 -61
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +1 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +82 -100
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +82 -73
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +185 -197
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts +3 -3
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +370 -343
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +219 -192
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.js.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.js +137 -117
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +4 -4
- package/dist/components/composites/appearance-editor/theme-preview.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +190 -175
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.js +162 -140
- package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +284 -274
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +104 -76
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts +1 -1
- package/dist/components/composites/catalog-browser/catalog-types.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.js +57 -54
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +158 -147
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.js +117 -116
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +230 -202
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts +2 -2
- package/dist/components/composites/context/context.d.ts.map +1 -1
- package/dist/components/composites/context/context.js +206 -195
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.d.ts +2 -2
- package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +275 -239
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/help-center/help-center.d.ts +1 -1
- package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
- package/dist/components/composites/help-center/help-center.js +138 -118
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +191 -165
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.d.ts +60 -60
- package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
- package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.js +123 -104
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts +8 -2
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +32 -34
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -6
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +53 -55
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js +111 -103
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +414 -406
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +11 -17
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/composites/prompt-input/prompt-input.d.ts.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.js +85 -105
- package/dist/components/composites/prompt-input/prompt-input.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +180 -188
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
- package/dist/components/composites/reasoning/reasoning.js +13 -18
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.js +98 -83
- package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
- package/dist/components/composites/settings/settings-layout.d.ts +2 -2
- package/dist/components/composites/settings/settings-layout.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-layout.js +15 -21
- package/dist/components/composites/settings/settings-layout.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +96 -72
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +154 -136
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +1 -1
- package/dist/components/composites/sources/sources.d.ts.map +1 -1
- package/dist/components/composites/sources/sources.js +155 -144
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +2 -2
- package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.js +386 -371
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +132 -116
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +16 -29
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/suggestion/suggestion.d.ts +3 -3
- package/dist/components/composites/suggestion/suggestion.d.ts.map +1 -1
- package/dist/components/composites/suggestion/suggestion.js +42 -43
- package/dist/components/composites/suggestion/suggestion.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.d.ts.map +1 -1
- package/dist/components/composites/task/task.js +150 -147
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts +2 -2
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +328 -286
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
- package/dist/components/composites/test-results/test-results.js +304 -266
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +2 -2
- package/dist/components/composites/tool/tool.d.ts.map +1 -1
- package/dist/components/composites/tool/tool.js +68 -68
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +6 -5
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +234 -215
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +50 -46
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts +2 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +353 -282
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +70 -69
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +41 -38
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.js +39 -21
- package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts +1 -1
- package/dist/components/conversation/atomic/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.js +2 -2
- package/dist/components/conversation/atomic/chat-composer.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts +2 -2
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +137 -137
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/chat-composer.d.ts +1 -1
- package/dist/components/conversation/chat-composer.d.ts.map +1 -1
- package/dist/components/conversation/chat-composer.js +5 -5
- package/dist/components/conversation/chat-composer.js.map +1 -1
- package/dist/components/conversation/composer-core.d.ts +2 -2
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.d.ts.map +1 -1
- package/dist/components/conversation/composer-menu.js +23 -23
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.d.ts +2 -2
- package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +28 -32
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +65 -59
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.d.ts +2 -1
- package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
- package/dist/components/conversation/conversation-surface.js +68 -72
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts +3 -2
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +267 -264
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts +2 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +82 -98
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +317 -316
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts +1 -1
- package/dist/components/conversation/paste-token-editor.d.ts.map +1 -1
- package/dist/components/conversation/paste-token-editor.js +210 -161
- package/dist/components/conversation/paste-token-editor.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +11 -9
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +124 -116
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts +3 -2
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +127 -132
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/layout/app-shell/app-shell.js +40 -34
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.d.ts +2 -2
- package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +22 -25
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +70 -40
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts +2 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.d.ts.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +6 -5
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.js +95 -83
- package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts +3 -3
- package/dist/components/layout/orbit-layout/orbit-layout.d.ts.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.js +29 -38
- package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +116 -103
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.d.ts +11 -11
- package/dist/components/layout/panel/panel.d.ts.map +1 -1
- package/dist/components/layout/panel/panel.js +98 -82
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.d.ts.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.js +15 -15
- package/dist/components/layout/pixel-pane/pixel-pane.js.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +112 -105
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.d.ts +4 -2
- package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.js +32 -35
- package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts +2 -2
- package/dist/components/layout/shell-top-bar/shell-top-bar.d.ts.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.js +126 -120
- package/dist/components/layout/shell-top-bar/shell-top-bar.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts +8 -2
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +155 -138
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts +8 -2
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +231 -224
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts +2 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +64 -63
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts +2 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +64 -63
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts +2 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +330 -275
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +4 -4
- package/dist/components/layout/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/layout/status-bar/status-bar.js +42 -33
- package/dist/components/layout/status-bar/status-bar.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.d.ts +8 -8
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +96 -98
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts +1 -1
- package/dist/components/layout/virtual-window/virtual-window.d.ts.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.js +29 -34
- package/dist/components/layout/virtual-window/virtual-window.js.map +1 -1
- package/dist/components/motion/index.d.ts +1 -1
- package/dist/components/motion/index.d.ts.map +1 -1
- package/dist/components/motion/index.js +1 -1
- package/dist/components/motion/motion.d.ts +84 -0
- package/dist/components/motion/motion.d.ts.map +1 -0
- package/dist/components/motion/motion.js +198 -0
- package/dist/components/motion/motion.js.map +1 -0
- package/dist/components/motion/presence.d.ts +16 -7
- package/dist/components/motion/presence.d.ts.map +1 -1
- package/dist/components/motion/presence.js +75 -3
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +2 -2
- package/dist/components/theme/appearance-panel.d.ts.map +1 -1
- package/dist/components/theme/appearance-panel.js +156 -141
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.d.ts.map +1 -1
- package/dist/components/theme/lazy.js +3 -2
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +1 -1
- package/dist/components/theme/theme-context.d.ts.map +1 -1
- package/dist/components/theme/theme-context.js +2 -2
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-mode-toggle.d.ts +2 -2
- package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-mode-toggle.js +22 -17
- package/dist/components/theme/theme-mode-toggle.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +4 -4
- package/dist/components/theme/theme-picker.d.ts.map +1 -1
- package/dist/components/theme/theme-picker.js +145 -133
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +1 -1
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +48 -57
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-provider.d.ts +1 -1
- package/dist/components/theme/theme-provider.d.ts.map +1 -1
- package/dist/components/theme/theme-provider.js +1 -1
- package/dist/components/theme/theme-provider.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +2 -2
- package/dist/components/theme/theme-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-toggle.js +19 -12
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +25 -12
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion/accordion.js +42 -38
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +67 -53
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +59 -12
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +163 -136
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.js +80 -91
- package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +19 -22
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/ui/attachment/attachment.d.ts +1 -1
- package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment/attachment.js +202 -198
- package/dist/components/ui/attachment/attachment.js.map +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +4 -4
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar/avatar.js +61 -52
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +10 -3
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.js +22 -28
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.d.ts +1 -1
- package/dist/components/ui/board/board.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +259 -236
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +90 -75
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +47 -45
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.d.ts +18 -3
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +34 -25
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +4 -4
- package/dist/components/ui/button-group/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group/button-group.js +32 -32
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.d.ts +93 -39
- package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar/calendar.js +287 -193
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +3 -3
- package/dist/components/ui/callout/callout.d.ts.map +1 -1
- package/dist/components/ui/callout/callout.js +30 -33
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +8 -8
- package/dist/components/ui/card/card.d.ts.map +1 -1
- package/dist/components/ui/card/card.js +66 -58
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +8 -2
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js +115 -105
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts +7 -8
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +311 -245
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +47 -23
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +312 -356
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +263 -253
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/collapsible/collapsible.d.ts +20 -8
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible/collapsible.js +24 -27
- package/dist/components/ui/collapsible/collapsible.js.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +97 -13
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.js +302 -97
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts +1 -1
- package/dist/components/ui/combobox/value-combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/value-combobox.js +4 -7
- package/dist/components/ui/combobox/value-combobox.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +100 -36
- package/dist/components/ui/command/command.d.ts.map +1 -1
- package/dist/components/ui/command/command.js +377 -169
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +24 -12
- package/dist/components/ui/context-menu/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu/context-menu.js +45 -14
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +110 -102
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +98 -28
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +257 -151
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +55 -14
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +201 -118
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts.map +1 -1
- package/dist/components/ui/diff-block/diff-block.js +111 -86
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +53 -19
- package/dist/components/ui/drawer/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer/drawer.js +108 -83
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +60 -47
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +73 -188
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +219 -18
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js +556 -150
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +16 -27
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.d.ts +1 -1
- package/dist/components/ui/empty/empty.d.ts.map +1 -1
- package/dist/components/ui/empty/empty.js +57 -50
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts +2 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +71 -72
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts +53 -14
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +175 -110
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.d.ts +1 -1
- package/dist/components/ui/field/number-field.d.ts.map +1 -1
- package/dist/components/ui/field/number-field.js +14 -10
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +19 -4
- package/dist/components/ui/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card/hover-card.js +80 -17
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input/input-control.d.ts +4 -3
- package/dist/components/ui/input/input-control.d.ts.map +1 -1
- package/dist/components/ui/input/input-control.js +16 -20
- package/dist/components/ui/input/input-control.js.map +1 -1
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/input/input.js +42 -47
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/input-group.js +119 -132
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts +1 -1
- package/dist/components/ui/input-group/secret-input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.js +11 -17
- package/dist/components/ui/input-group/secret-input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +23 -9
- package/dist/components/ui/input-otp/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp/input-otp.js +60 -67
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +105 -101
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +4 -4
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +25 -24
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +5 -5
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/label/label.js +15 -13
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.d.ts +1 -1
- package/dist/components/ui/marker/marker.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +72 -74
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +37 -23
- package/dist/components/ui/menubar/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar/menubar.js +76 -39
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +281 -250
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts +18 -17
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +95 -106
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +2 -2
- package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select/native-select.js +93 -93
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +45 -44
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +215 -96
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.d.ts +36 -16
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination/pagination.js +86 -68
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts +51 -10
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +204 -37
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts +23 -5
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +52 -32
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +351 -338
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +27 -6
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +202 -145
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/index.d.ts +1 -1
- package/dist/components/ui/resizable/index.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +55 -9
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.js +104 -81
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +2 -2
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +22 -28
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +104 -24
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/select/select.js +304 -111
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/separator/separator.d.ts +13 -3
- package/dist/components/ui/separator/separator.d.ts.map +1 -1
- package/dist/components/ui/separator/separator.js +11 -9
- package/dist/components/ui/separator/separator.js.map +1 -1
- package/dist/components/ui/sheet/index.js +3 -1
- package/dist/components/ui/sheet/sheet.d.ts +34 -9
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +144 -106
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +2 -2
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.js +13 -10
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +27 -8
- package/dist/components/ui/slider/slider.d.ts.map +1 -1
- package/dist/components/ui/slider/slider.js +74 -60
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +2 -2
- package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner/spinner.js +23 -18
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +69 -55
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts +31 -15
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +275 -325
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/table/table.d.ts +10 -10
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/table.js +96 -79
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +32 -8
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.js +80 -63
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/text-link/text-link.d.ts +2 -2
- package/dist/components/ui/text-link/text-link.d.ts.map +1 -1
- package/dist/components/ui/text-link/text-link.js +16 -16
- package/dist/components/ui/text-link/text-link.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +3 -2
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.js +39 -49
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts +30 -8
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +188 -86
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +9 -5
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.js +18 -17
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.d.ts +27 -11
- package/dist/components/ui/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.js +30 -32
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +8 -6
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.js +33 -16
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts +2 -2
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.js +27 -28
- package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +142 -16
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +255 -254
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +245 -250
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +11 -4
- package/dist/components/ui/typography/typography.d.ts.map +1 -1
- package/dist/components/ui/typography/typography.js +8 -19
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/lib/async-action.d.ts.map +1 -1
- package/dist/lib/async-action.js +1 -1
- package/dist/lib/async-action.js.map +1 -1
- package/dist/lib/create-poll.d.ts.map +1 -1
- package/dist/lib/create-poll.js +11 -10
- package/dist/lib/create-poll.js.map +1 -1
- package/dist/lib/events.d.ts +1 -1
- package/dist/lib/events.d.ts.map +1 -1
- package/dist/lib/events.js.map +1 -1
- package/dist/lib/fast-icon.d.ts +2 -2
- package/dist/lib/fast-icon.d.ts.map +1 -1
- package/dist/lib/fast-icon.js +8 -7
- package/dist/lib/fast-icon.js.map +1 -1
- package/dist/lib/form-field.d.ts +12 -10
- package/dist/lib/form-field.d.ts.map +1 -1
- package/dist/lib/form-field.js +12 -8
- package/dist/lib/form-field.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +4 -1
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +24 -5
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +41 -6
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/refs.d.ts +13 -0
- package/dist/lib/refs.d.ts.map +1 -0
- package/dist/lib/refs.js +22 -0
- package/dist/lib/refs.js.map +1 -0
- package/dist/lib/resize-separator.d.ts +1 -1
- package/dist/lib/resize-separator.d.ts.map +1 -1
- package/dist/lib/resize-separator.js +1 -1
- package/dist/lib/resize-separator.js.map +1 -1
- package/dist/lib/slotted.d.ts +14 -0
- package/dist/lib/slotted.d.ts.map +1 -0
- package/dist/lib/slotted.js +19 -0
- package/dist/lib/slotted.js.map +1 -0
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/lint.js +11 -4
- package/dist/lint.js.map +1 -1
- package/dist/r/about-dialog.json +1 -1
- package/dist/r/accent-picker.json +2 -1
- package/dist/r/accordion.json +3 -2
- package/dist/r/account-menu.json +2 -1
- package/dist/r/action-button.json +1 -1
- package/dist/r/alert-dialog.json +3 -1
- package/dist/r/alert.json +2 -1
- package/dist/r/annotation-surface.json +3 -1
- package/dist/r/app-shell.json +3 -1
- package/dist/r/appearance-editor.json +3 -2
- package/dist/r/aspect-ratio.json +3 -1
- package/dist/r/attachment.json +2 -1
- package/dist/r/avatar.json +3 -1
- package/dist/r/badge.json +1 -1
- package/dist/r/board.json +3 -1
- package/dist/r/breadcrumb.json +2 -1
- package/dist/r/bubble.json +3 -1
- package/dist/r/button-group.json +3 -1
- package/dist/r/button.json +1 -1
- package/dist/r/calendar.json +3 -2
- package/dist/r/callout.json +3 -1
- package/dist/r/card.json +3 -1
- package/dist/r/carousel.json +3 -3
- package/dist/r/catalog-browser.json +3 -2
- package/dist/r/chain-of-thought.json +2 -1
- package/dist/r/chart.json +2 -2
- package/dist/r/chat.json +2 -1
- package/dist/r/checkbox.json +2 -2
- package/dist/r/checkpoint.json +2 -1
- package/dist/r/code-block.json +2 -1
- package/dist/r/collapsible.json +2 -1
- package/dist/r/combobox.json +3 -2
- package/dist/r/command.json +4 -3
- package/dist/r/confirmation.json +2 -1
- package/dist/r/context-menu.json +3 -3
- package/dist/r/context.json +2 -1
- package/dist/r/contextual-sidebar.json +3 -1
- package/dist/r/conversation.json +3 -2
- package/dist/r/detail-panel.json +2 -1
- package/dist/r/dialog.json +3 -2
- package/dist/r/diff-block.json +3 -1
- package/dist/r/drawer.json +3 -1
- package/dist/r/dropdown-menu.json +3 -2
- package/dist/r/empty.json +2 -1
- package/dist/r/entity-icon.json +3 -1
- package/dist/r/field.json +2 -1
- package/dist/r/file-tree.json +2 -1
- package/dist/r/floating-preview.json +2 -1
- package/dist/r/help-center.json +1 -1
- package/dist/r/hover-card.json +3 -1
- package/dist/r/icon-picker.json +2 -1
- package/dist/r/inline-citation.json +1 -1
- package/dist/r/input-group.json +3 -1
- package/dist/r/input-otp.json +2 -1
- package/dist/r/input.json +4 -1
- package/dist/r/item.json +3 -1
- package/dist/r/kbd.json +3 -1
- package/dist/r/label.json +3 -1
- package/dist/r/lib.json +10 -0
- package/dist/r/list-row.json +1 -1
- package/dist/r/marker.json +3 -1
- package/dist/r/menubar.json +2 -1
- package/dist/r/message-scroller.json +2 -1
- package/dist/r/message.json +2 -1
- package/dist/r/modal-dialog.json +3 -1
- package/dist/r/model-selector.json +2 -1
- package/dist/r/motion.json +6 -1
- package/dist/r/native-select.json +2 -1
- package/dist/r/navigation-menu.json +3 -2
- package/dist/r/orbit-layout.json +3 -1
- package/dist/r/page.json +3 -1
- package/dist/r/pagination.json +3 -2
- package/dist/r/panel.json +3 -1
- package/dist/r/pixel-pane.json +3 -1
- package/dist/r/pixel-resize-handle.json +1 -1
- package/dist/r/plan.json +2 -1
- package/dist/r/popover.json +5 -1
- package/dist/r/progress.json +2 -1
- package/dist/r/prompt-input.json +2 -1
- package/dist/r/questionnaire.json +2 -1
- package/dist/r/queue.json +2 -1
- package/dist/r/radio-group.json +3 -2
- package/dist/r/reasoning.json +2 -1
- package/dist/r/registry.json +315 -151
- package/dist/r/resizable.json +3 -2
- package/dist/r/scene-controls.json +2 -1
- package/dist/r/scroll-area.json +3 -1
- package/dist/r/select.json +3 -2
- package/dist/r/separator.json +2 -1
- package/dist/r/settings.json +2 -2
- package/dist/r/sheet.json +4 -2
- package/dist/r/shell-rail.json +2 -1
- package/dist/r/shell-top-bar.json +3 -1
- package/dist/r/side-rail.json +1 -1
- package/dist/r/sidebar-nav.json +2 -2
- package/dist/r/skeleton.json +3 -1
- package/dist/r/slider.json +2 -1
- package/dist/r/sources.json +1 -1
- package/dist/r/spinner.json +2 -1
- package/dist/r/split-layout.json +2 -1
- package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/dist/r/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/dist/r/src/components/composites/action-button/action-button.tsx +75 -52
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/dist/r/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/dist/r/src/components/composites/chat/chat.tsx +12 -14
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/dist/r/src/components/composites/context/context.tsx +10 -4
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/dist/r/src/components/composites/help-center/help-center.tsx +1 -1
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/dist/r/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/dist/r/src/components/composites/list-row/list-row.tsx +10 -19
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/dist/r/src/components/composites/plan/plan.tsx +11 -15
- package/dist/r/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/dist/r/src/components/composites/queue/queue.tsx +18 -20
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/dist/r/src/components/composites/settings/settings-layout.tsx +10 -8
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/dist/r/src/components/composites/settings/settings.tsx +19 -13
- package/dist/r/src/components/composites/sources/sources.tsx +8 -6
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/dist/r/src/components/composites/stat/stat.tsx +19 -12
- package/dist/r/src/components/composites/subagent/subagent.tsx +8 -5
- package/dist/r/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/dist/r/src/components/composites/task/task.tsx +12 -24
- package/dist/r/src/components/composites/terminal/terminal.tsx +36 -38
- package/dist/r/src/components/composites/test-results/test-results.tsx +59 -64
- package/dist/r/src/components/composites/tool/tool.tsx +9 -6
- package/dist/r/src/components/composites/tree/tree.tsx +88 -52
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/dist/r/src/components/conversation/busy-send-button.tsx +2 -2
- package/dist/r/src/components/conversation/chat-composer.tsx +2 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +6 -4
- package/dist/r/src/components/conversation/conversation-avatar.tsx +6 -5
- package/dist/r/src/components/conversation/conversation-pane.tsx +4 -10
- package/dist/r/src/components/conversation/conversation-surface.tsx +12 -8
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/dist/r/src/components/conversation/message-composer.tsx +14 -9
- package/dist/r/src/components/conversation/message-row.tsx +19 -14
- package/dist/r/src/components/conversation/paste-token-editor.tsx +106 -54
- package/dist/r/src/components/conversation/scroll-follow.ts +125 -112
- package/dist/r/src/components/conversation/thread-panel.tsx +10 -7
- package/dist/r/src/components/conversation/transcript-composition.tsx +14 -16
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/dist/r/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/dist/r/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/dist/r/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/dist/r/src/components/layout/page/page.tsx +16 -9
- package/dist/r/src/components/layout/panel/panel.tsx +22 -12
- package/dist/r/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/dist/r/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/dist/r/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/dist/r/src/components/motion/index.ts +7 -1
- package/dist/r/src/components/motion/motion.tsx +322 -0
- package/dist/r/src/components/motion/presence.tsx +95 -7
- package/dist/r/src/components/theme/appearance-panel.tsx +11 -9
- package/dist/r/src/components/theme/lazy.ts +3 -2
- package/dist/r/src/components/theme/theme-context.ts +6 -4
- package/dist/r/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/dist/r/src/components/theme/theme-picker.tsx +9 -6
- package/dist/r/src/components/theme/theme-provider-value.ts +117 -97
- package/dist/r/src/components/theme/theme-toggle.tsx +5 -4
- package/dist/r/src/components/ui/accordion/accordion.tsx +71 -35
- package/dist/r/src/components/ui/alert/alert.tsx +11 -7
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/dist/r/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/dist/r/src/components/ui/attachment/attachment.tsx +10 -6
- package/dist/r/src/components/ui/avatar/avatar.tsx +24 -10
- package/dist/r/src/components/ui/badge/badge.tsx +19 -12
- package/dist/r/src/components/ui/board/board.tsx +55 -48
- package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/dist/r/src/components/ui/bubble/bubble.tsx +4 -9
- package/dist/r/src/components/ui/button/button.tsx +42 -32
- package/dist/r/src/components/ui/button-group/button-group.tsx +8 -5
- package/dist/r/src/components/ui/calendar/calendar.tsx +382 -180
- package/dist/r/src/components/ui/callout/callout.tsx +6 -4
- package/dist/r/src/components/ui/card/card.tsx +16 -9
- package/dist/r/src/components/ui/carousel/carousel.tsx +38 -20
- package/dist/r/src/components/ui/chart/chart.tsx +149 -93
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/dist/r/src/components/ui/code-block/code-block.tsx +61 -59
- package/dist/r/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/dist/r/src/components/ui/combobox/combobox.tsx +395 -73
- package/dist/r/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/dist/r/src/components/ui/command/command.tsx +416 -175
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/dist/r/src/components/ui/dialog/dialog.tsx +225 -95
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/dist/r/src/components/ui/drawer/drawer.tsx +113 -41
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/dist/r/src/components/ui/empty/empty-state.tsx +9 -7
- package/dist/r/src/components/ui/empty/empty.tsx +14 -8
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/dist/r/src/components/ui/field/field.tsx +165 -55
- package/dist/r/src/components/ui/field/number-field.tsx +21 -5
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/dist/r/src/components/ui/input/input-control.tsx +6 -4
- package/dist/r/src/components/ui/input/input.tsx +7 -5
- package/dist/r/src/components/ui/input-group/input-group.tsx +20 -12
- package/dist/r/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/dist/r/src/components/ui/item/item.tsx +15 -9
- package/dist/r/src/components/ui/kbd/kbd.tsx +8 -5
- package/dist/r/src/components/ui/label/label.tsx +7 -6
- package/dist/r/src/components/ui/marker/marker.tsx +7 -4
- package/dist/r/src/components/ui/menubar/menubar.tsx +101 -49
- package/dist/r/src/components/ui/message/message.tsx +24 -38
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/dist/r/src/components/ui/native-select/native-select.tsx +30 -19
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/dist/r/src/components/ui/pagination/pagination.tsx +153 -88
- package/dist/r/src/components/ui/popover/popover.tsx +252 -49
- package/dist/r/src/components/ui/progress/progress.tsx +64 -22
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/dist/r/src/components/ui/resizable/index.ts +3 -0
- package/dist/r/src/components/ui/resizable/resizable.tsx +157 -60
- package/dist/r/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/dist/r/src/components/ui/select/select.tsx +403 -106
- package/dist/r/src/components/ui/separator/separator.tsx +33 -6
- package/dist/r/src/components/ui/sheet/sheet.tsx +144 -64
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/dist/r/src/components/ui/slider/slider.tsx +112 -64
- package/dist/r/src/components/ui/spinner/spinner.tsx +9 -5
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/dist/r/src/components/ui/switch/switch.tsx +203 -201
- package/dist/r/src/components/ui/table/table.tsx +20 -11
- package/dist/r/src/components/ui/tabs/tabs.tsx +93 -34
- package/dist/r/src/components/ui/text-link/text-link.tsx +5 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +8 -5
- package/dist/r/src/components/ui/toast/toast.tsx +192 -83
- package/dist/r/src/components/ui/toggle/toggle.tsx +26 -9
- package/dist/r/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/dist/r/src/components/ui/trace/trace.tsx +17 -20
- package/dist/r/src/components/ui/typography/typography.tsx +17 -18
- package/dist/r/src/lib/async-action.ts +3 -1
- package/dist/r/src/lib/create-poll.ts +41 -38
- package/dist/r/src/lib/events.ts +1 -1
- package/dist/r/src/lib/fast-icon.ts +9 -13
- package/dist/r/src/lib/form-field.ts +36 -18
- package/dist/r/src/lib/keyed-rows.ts +4 -0
- package/dist/r/src/lib/overlay.ts +44 -5
- package/dist/r/src/lib/refs.ts +21 -0
- package/dist/r/src/lib/resize-separator.ts +4 -3
- package/dist/r/src/lib/slotted.ts +16 -0
- package/dist/r/src/styles/globals.css +7 -0
- package/dist/r/stack-trace.json +2 -1
- package/dist/r/stat.json +2 -1
- package/dist/r/status-bar.json +3 -1
- package/dist/r/status-chip.json +3 -1
- package/dist/r/subagent.json +2 -1
- package/dist/r/suggestion.json +3 -1
- package/dist/r/switch.json +1 -1
- package/dist/r/table.json +3 -1
- package/dist/r/tabs.json +2 -1
- package/dist/r/task.json +2 -1
- package/dist/r/terminal.json +2 -1
- package/dist/r/test-results.json +2 -1
- package/dist/r/text-link.json +3 -1
- package/dist/r/textarea.json +1 -0
- package/dist/r/theming.json +3 -2
- package/dist/r/toast.json +3 -2
- package/dist/r/toggle-group.json +2 -1
- package/dist/r/toggle.json +2 -1
- package/dist/r/tool.json +2 -1
- package/dist/r/tooltip.json +3 -1
- package/dist/r/top-bar.json +2 -1
- package/dist/r/trace.json +2 -1
- package/dist/r/tree.json +2 -1
- package/dist/r/typography.json +1 -1
- package/dist/r/update-dialog.json +2 -1
- package/dist/r/virtual-window.json +3 -1
- package/dist/r/workspace-mark.json +3 -1
- package/dist/r/workspace-switcher.json +2 -1
- package/dist/vite/tailwind-sources.js +2 -2
- package/dist/vite/tailwind-sources.js.map +1 -1
- package/package.json +14 -31
- package/registry.json +315 -151
- package/src/components/composites/about-dialog/about-dialog.tsx +13 -21
- package/src/components/composites/accent-picker/accent-picker.tsx +17 -20
- package/src/components/composites/accent-picker/custom-color-popover.tsx +61 -53
- package/src/components/composites/account-menu/account-menu.tsx +27 -19
- package/src/components/composites/action-button/action-button.tsx +75 -52
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +7 -8
- package/src/components/composites/appearance-editor/appearance-choices.tsx +53 -47
- package/src/components/composites/appearance-editor/appearance-editor.tsx +11 -8
- package/src/components/composites/appearance-editor/appearance-rows.tsx +45 -28
- package/src/components/composites/appearance-editor/appearance-types.ts +1 -1
- package/src/components/composites/appearance-editor/font-settings-group.tsx +22 -13
- package/src/components/composites/catalog-browser/catalog-browser-group.tsx +14 -9
- package/src/components/composites/catalog-browser/catalog-browser.tsx +36 -28
- package/src/components/composites/catalog-browser/catalog-detail.tsx +3 -3
- package/src/components/composites/catalog-browser/catalog-types.ts +1 -1
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +11 -6
- package/src/components/composites/chat/chat.tsx +12 -14
- package/src/components/composites/checkpoint/checkpoint.tsx +22 -27
- package/src/components/composites/confirmation/confirmation.tsx +20 -22
- package/src/components/composites/context/context.tsx +10 -4
- package/src/components/composites/file-tree/file-tree.tsx +23 -24
- package/src/components/composites/help-center/help-center.tsx +1 -1
- package/src/components/composites/icon-picker/icon-picker.tsx +14 -9
- package/src/components/composites/icon-picker/shell-icons.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +57 -24
- package/src/components/composites/list-row/list-row-control.tsx +23 -12
- package/src/components/composites/list-row/list-row.tsx +10 -19
- package/src/components/composites/message-scroller/message-scroller.tsx +55 -34
- package/src/components/composites/model-selector/model-selector.tsx +42 -47
- package/src/components/composites/plan/plan.tsx +11 -15
- package/src/components/composites/prompt-input/prompt-input.tsx +22 -26
- package/src/components/composites/queue/queue.tsx +18 -20
- package/src/components/composites/reasoning/reasoning.tsx +19 -23
- package/src/components/composites/scene-controls/scene-controls.tsx +4 -3
- package/src/components/composites/settings/settings-layout.tsx +10 -8
- package/src/components/composites/settings/settings-navigation.tsx +86 -65
- package/src/components/composites/settings/settings.tsx +19 -13
- package/src/components/composites/sources/sources.tsx +8 -6
- package/src/components/composites/stack-trace/stack-trace.tsx +9 -15
- package/src/components/composites/stat/stat.tsx +19 -12
- package/src/components/composites/subagent/subagent.tsx +8 -5
- package/src/components/composites/suggestion/suggestion.tsx +12 -22
- package/src/components/composites/task/task.tsx +12 -24
- package/src/components/composites/terminal/terminal.tsx +36 -38
- package/src/components/composites/test-results/test-results.tsx +59 -64
- package/src/components/composites/tool/tool.tsx +9 -6
- package/src/components/composites/tree/tree.tsx +88 -52
- package/src/components/composites/update-dialog/channel-control.tsx +29 -19
- package/src/components/composites/update-dialog/update-dialog.tsx +62 -61
- package/src/components/composites/workspace-mark/workspace-mark.tsx +4 -3
- package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +21 -16
- package/src/components/composites/workspace-switcher/workspace-switcher.tsx +4 -4
- package/src/components/conversation/busy-send-button.tsx +2 -2
- package/src/components/conversation/chat-composer.tsx +2 -2
- package/src/components/conversation/composer-menu.tsx +6 -4
- package/src/components/conversation/conversation-avatar.tsx +6 -5
- package/src/components/conversation/conversation-pane.tsx +4 -10
- package/src/components/conversation/conversation-surface.tsx +12 -8
- package/src/components/conversation/internal/chat-composer-shell.tsx +27 -29
- package/src/components/conversation/message-composer.tsx +14 -9
- package/src/components/conversation/message-row.tsx +19 -14
- package/src/components/conversation/paste-token-editor.tsx +106 -54
- package/src/components/conversation/scroll-follow.ts +125 -112
- package/src/components/conversation/thread-panel.tsx +10 -7
- package/src/components/conversation/transcript-composition.tsx +14 -16
- package/src/components/layout/app-shell/app-shell.tsx +10 -6
- package/src/components/layout/app-shell/skip-link.tsx +5 -4
- package/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +67 -25
- package/src/components/layout/contextual-sidebar/mobile-contextual-sidebar.tsx +2 -1
- package/src/components/layout/floating-preview/floating-preview.tsx +15 -16
- package/src/components/layout/orbit-layout/orbit-layout.tsx +10 -15
- package/src/components/layout/page/page.tsx +16 -9
- package/src/components/layout/panel/panel.tsx +22 -12
- package/src/components/layout/pixel-pane/pixel-pane.tsx +7 -4
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +2 -2
- package/src/components/layout/shell-rail/shell-rail.tsx +11 -7
- package/src/components/layout/shell-top-bar/shell-top-bar.tsx +8 -6
- package/src/components/layout/side-rail/side-rail-context.ts +3 -1
- package/src/components/layout/side-rail/side-rail.tsx +37 -20
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +50 -26
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +3 -2
- package/src/components/layout/split-layout/resize-controller-core.tsx +3 -2
- package/src/components/layout/split-layout/split-layout.tsx +116 -91
- package/src/components/layout/status-bar/status-bar.tsx +6 -4
- package/src/components/layout/top-bar/top-bar.tsx +19 -12
- package/src/components/layout/virtual-window/virtual-window.tsx +4 -10
- package/src/components/motion/index.ts +7 -1
- package/src/components/motion/motion.tsx +322 -0
- package/src/components/motion/presence.tsx +95 -7
- package/src/components/theme/appearance-panel.tsx +11 -9
- package/src/components/theme/lazy.ts +3 -2
- package/src/components/theme/theme-context.ts +6 -4
- package/src/components/theme/theme-mode-toggle.tsx +5 -4
- package/src/components/theme/theme-picker.tsx +9 -6
- package/src/components/theme/theme-provider-value.ts +117 -97
- package/src/components/theme/theme-toggle.tsx +5 -4
- package/src/components/ui/accordion/accordion.tsx +71 -35
- package/src/components/ui/alert/alert.tsx +11 -7
- package/src/components/ui/alert-dialog/alert-dialog.tsx +193 -127
- package/src/components/ui/annotation-surface/annotation-surface.tsx +15 -37
- package/src/components/ui/aspect-ratio/aspect-ratio.tsx +4 -3
- package/src/components/ui/attachment/attachment.tsx +10 -6
- package/src/components/ui/avatar/avatar.tsx +24 -10
- package/src/components/ui/badge/badge.tsx +19 -12
- package/src/components/ui/board/board.tsx +55 -48
- package/src/components/ui/breadcrumb/breadcrumb.tsx +18 -11
- package/src/components/ui/bubble/bubble.tsx +4 -9
- package/src/components/ui/button/button.tsx +42 -32
- package/src/components/ui/button-group/button-group.tsx +8 -5
- package/src/components/ui/calendar/calendar.tsx +382 -180
- package/src/components/ui/callout/callout.tsx +6 -4
- package/src/components/ui/card/card.tsx +16 -9
- package/src/components/ui/carousel/carousel.tsx +38 -20
- package/src/components/ui/chart/chart.tsx +149 -93
- package/src/components/ui/checkbox/checkbox.tsx +228 -221
- package/src/components/ui/code-block/code-block.tsx +61 -59
- package/src/components/ui/collapsible/collapsible.tsx +46 -20
- package/src/components/ui/combobox/combobox.tsx +395 -73
- package/src/components/ui/combobox/value-combobox.tsx +5 -3
- package/src/components/ui/command/command.tsx +416 -175
- package/src/components/ui/context-menu/context-menu.tsx +53 -24
- package/src/components/ui/detail-panel/detail-panel.tsx +14 -8
- package/src/components/ui/dialog/dialog-layer.tsx +331 -240
- package/src/components/ui/dialog/dialog.tsx +225 -95
- package/src/components/ui/diff-block/diff-block.tsx +4 -9
- package/src/components/ui/drawer/drawer.tsx +113 -41
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +116 -276
- package/src/components/ui/dropdown-menu/menu-parts.tsx +732 -155
- package/src/components/ui/empty/empty-state.tsx +9 -7
- package/src/components/ui/empty/empty.tsx +14 -8
- package/src/components/ui/entity-icon/entity-icon.tsx +20 -17
- package/src/components/ui/field/field.tsx +165 -55
- package/src/components/ui/field/number-field.tsx +21 -5
- package/src/components/ui/hover-card/hover-card.tsx +108 -22
- package/src/components/ui/input/input-control.tsx +6 -4
- package/src/components/ui/input/input.tsx +7 -5
- package/src/components/ui/input-group/input-group.tsx +20 -12
- package/src/components/ui/input-group/secret-input-group.tsx +7 -4
- package/src/components/ui/input-otp/input-otp.tsx +88 -70
- package/src/components/ui/item/item.tsx +15 -9
- package/src/components/ui/kbd/kbd.tsx +8 -5
- package/src/components/ui/label/label.tsx +7 -6
- package/src/components/ui/marker/marker.tsx +7 -4
- package/src/components/ui/menubar/menubar.tsx +101 -49
- package/src/components/ui/message/message.tsx +24 -38
- package/src/components/ui/modal-dialog/modal-dialog.tsx +57 -46
- package/src/components/ui/native-select/native-select.tsx +30 -19
- package/src/components/ui/navigation-menu/navigation-menu.tsx +221 -127
- package/src/components/ui/pagination/pagination.tsx +153 -88
- package/src/components/ui/popover/popover.tsx +252 -49
- package/src/components/ui/progress/progress.tsx +64 -22
- package/src/components/ui/questionnaire/questionnaire.tsx +29 -41
- package/src/components/ui/radio-group/radio-group.tsx +159 -54
- package/src/components/ui/resizable/index.ts +3 -0
- package/src/components/ui/resizable/resizable.tsx +157 -60
- package/src/components/ui/scroll-area/scroll-area.tsx +5 -10
- package/src/components/ui/select/select.tsx +403 -106
- package/src/components/ui/separator/separator.tsx +33 -6
- package/src/components/ui/sheet/sheet.tsx +144 -64
- package/src/components/ui/skeleton/skeleton.tsx +4 -3
- package/src/components/ui/slider/slider.tsx +112 -64
- package/src/components/ui/spinner/spinner.tsx +9 -5
- package/src/components/ui/status-chip/status-chip.tsx +4 -9
- package/src/components/ui/switch/switch.tsx +203 -201
- package/src/components/ui/table/table.tsx +20 -11
- package/src/components/ui/tabs/tabs.tsx +93 -34
- package/src/components/ui/text-link/text-link.tsx +5 -4
- package/src/components/ui/textarea/textarea.tsx +8 -5
- package/src/components/ui/toast/toast.tsx +192 -83
- package/src/components/ui/toggle/toggle.tsx +26 -9
- package/src/components/ui/toggle-group/toggle-group.tsx +48 -31
- package/src/components/ui/tooltip/deferred-tooltip.tsx +51 -12
- package/src/components/ui/tooltip/lazy-tooltip.tsx +2 -2
- package/src/components/ui/tooltip/tooltip.tsx +452 -362
- package/src/components/ui/trace/trace.tsx +17 -20
- package/src/components/ui/typography/typography.tsx +17 -18
- package/src/lib/async-action.ts +3 -1
- package/src/lib/create-poll.ts +41 -38
- package/src/lib/events.ts +1 -1
- package/src/lib/fast-icon.ts +9 -13
- package/src/lib/form-field.ts +36 -18
- package/src/lib/keyed-rows.ts +4 -0
- package/src/lib/overlay.ts +44 -5
- package/src/lib/refs.ts +21 -0
- package/src/lib/resize-separator.ts +4 -3
- package/src/lib/slotted.ts +16 -0
- package/src/lint/index.ts +20 -5
- package/src/styles/globals.css +7 -0
- package/src/testing/happy-dom-text.ts +30 -0
- package/src/testing/solid-transform.ts +19 -36
- package/src/vite/tailwind-sources.ts +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotted.js","names":[],"sources":["../../src/lib/slotted.ts"],"sourcesContent":["import { createComponent, merge, type Component } from 'solid-js'\n\n/**\n * A component that renders `component` with `data-slot` set to `slot`, after\n * every prop it is given.\n *\n * ui-sdk parts write their own `data-slot` (`popover-trigger`) over the one a\n * caller passes, and hand the merged props to the element they render through\n * `as`. A composite whose trigger has always carried its own slot\n * (`icon-picker-trigger`, `context`) renders through this instead, so the public\n * slot survives the part. Create it once at module scope: a new component per\n * render would remount the trigger.\n */\nexport function slotted<P extends object>(component: Component<P>, slot: string): Component<P> {\n return (props: P) => createComponent(component, merge(props, { 'data-slot': slot }) as P)\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,SAAgB,QAA0B,WAAyB,MAA4B;CAC7F,QAAQ,UAAa,gBAAgB,WAAW,MAAM,OAAO,EAAE,aAAa,KAAK,CAAC,CAAM;AAC1F"}
|
package/dist/lint/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lint/index.ts"],"names":[],"mappings":"AAmBA,KAAK,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAa/E,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS,CAAA;QACf,IAAI,EAAE;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;QAC7B,MAAM,EAAE,IAAI,EAAE,CAAA;QACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACjC,CAAA;IACD,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,CAAA;CACtE,CAAA;AAED,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,GAAG,SAAS,CAAA;KACpD,CAAA;IACD,MAAM,EAAE,CAAC,UAAU,EAAE;QACnB,IAAI,EAAE,OAAO,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;KAC5B,KAAK,IAAI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B,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAuuCD,QAAA,MAAM,MAAM;IACV,IAAI;QAAI,IAAI;;IACZ,KAAK;QACH,kBAAkB;QAClB,eAAe;QACf,6BAA6B;QAC7B,8BAA8B;QAC9B,yBAAyB;QACzB,+BAA+B;QAC/B,kBAAkB;;CAErB,CAAA;eAEc,MAAM"}
|
package/dist/lint.js
CHANGED
|
@@ -177,6 +177,7 @@ var noRawInteractiveElements = {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
var DEFAULT_PRIMITIVE_PACKAGES = Object.freeze([
|
|
180
|
+
"@ui-sdk",
|
|
180
181
|
"@kobalte/core",
|
|
181
182
|
"@corvu",
|
|
182
183
|
"cmdk-solid",
|
|
@@ -345,7 +346,7 @@ var staticStrings = (node, context, seen = /* @__PURE__ */ new Set()) => {
|
|
|
345
346
|
return [];
|
|
346
347
|
};
|
|
347
348
|
var collectSolidDynamicImport = (node, imports) => {
|
|
348
|
-
if (node.source?.value !== "
|
|
349
|
+
if (node.source?.value !== "@solidjs/web") return;
|
|
349
350
|
for (const specifier of node.specifiers ?? []) {
|
|
350
351
|
if (specifier.type === "ImportNamespaceSpecifier" && specifier.local) imports.namespaces.add(specifier.local);
|
|
351
352
|
if (specifier.type !== "ImportSpecifier") continue;
|
|
@@ -719,7 +720,7 @@ var requireActionButtonTooltip = {
|
|
|
719
720
|
const recordImports = (node) => {
|
|
720
721
|
const source = node.source?.value;
|
|
721
722
|
const target = source === BUTTON_MODULE ? buttons : source === ACTION_BUTTON_MODULE ? actionButtons : null;
|
|
722
|
-
if (source === "lucide
|
|
723
|
+
if (source === "@lucide/solid") {
|
|
723
724
|
if (node.importKind === "type") return;
|
|
724
725
|
for (const specifier of node.specifiers ?? []) {
|
|
725
726
|
if (!specifier.local || specifier.importKind === "type") continue;
|
|
@@ -776,7 +777,7 @@ var requireActionButtonTooltip = {
|
|
|
776
777
|
var noPrimitiveLibraryImports = {
|
|
777
778
|
meta: {
|
|
778
779
|
type: "problem",
|
|
779
|
-
docs: { description: "The primitive libraries the design system is built on (
|
|
780
|
+
docs: { description: "The primitive libraries the design system is built on (ui-sdk, and the ones it replaced) are its internal affair — compose the exported components instead of importing the primitives." },
|
|
780
781
|
schema: [{
|
|
781
782
|
type: "object",
|
|
782
783
|
properties: {
|
|
@@ -844,7 +845,12 @@ var FUNCTION_TYPES = /* @__PURE__ */ new Set([
|
|
|
844
845
|
"FunctionExpression",
|
|
845
846
|
"ArrowFunctionExpression"
|
|
846
847
|
]);
|
|
847
|
-
var PROP_HELPERS = /* @__PURE__ */ new Set([
|
|
848
|
+
var PROP_HELPERS = /* @__PURE__ */ new Set([
|
|
849
|
+
"merge",
|
|
850
|
+
"omit",
|
|
851
|
+
"splitProps",
|
|
852
|
+
"mergeProps"
|
|
853
|
+
]);
|
|
848
854
|
/** `local.icon`: a plain, non-computed property read on an identifier. */
|
|
849
855
|
var isPropRead = (node) => node.type === "MemberExpression" && !node.computed && node.object?.type === "Identifier" && node.property?.type === "Identifier";
|
|
850
856
|
var readKey = (node) => `${node.object.name}.${node.property.name}`;
|
|
@@ -920,6 +926,7 @@ var plugin = {
|
|
|
920
926
|
const gated = /* @__PURE__ */ new Set();
|
|
921
927
|
const visit = (node, parent) => {
|
|
922
928
|
if (FUNCTION_TYPES.has(node.type) && isComponent(node)) return component(node);
|
|
929
|
+
if (node.type === "VariableDeclarator" && node.id?.type === "Identifier" && node.init?.type === "Identifier" && holders.has(node.init.name)) holders.add(node.id.name);
|
|
923
930
|
if (node.type === "VariableDeclarator" && isPropsHelperCall(node.init)) {
|
|
924
931
|
if (node.id?.type === "Identifier") holders.add(node.id.name);
|
|
925
932
|
if (node.id?.type === "ArrayPattern") {
|
package/dist/lint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.js","names":[],"sources":["../src/lint/index.ts"],"sourcesContent":["/*\n * The design system's own oxlint plugin.\n *\n * The styling rules live in `@shadcn/lint`; what that plugin cannot know is which\n * *elements* the design system owns. This is the other half of the contract, for\n * the applications that consume the library: an interactive element this package\n * provides is not re-implemented at the application layer, and the primitive\n * libraries this package is built from are not imported around it.\n *\n * Loaded as an oxlint jsPlugin:\n *\n * // .oxlintrc.json\n * { \"jsPlugins\": [\"@adea-ai/ui/lint\"], \"rules\": { \"adea/no-raw-interactive-elements\": \"error\" } }\n *\n * Rules are errors by intent. A violation means an application composed its own\n * control out of raw markup, unreachable focus behaviour, an absent keyboard\n * story, a second implementation of a decision this package exists to make once.\n */\n\ntype Json = string | number | boolean | null | Json[] | { [key: string]: Json }\n\n/** The raw elements this package replaces, and the primitive that replaces them. */\nconst ELEMENT_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n input: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n textarea: { primitive: 'Textarea', path: '@adea-ai/ui/components/ui/textarea' },\n select: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n option: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n label: { primitive: 'Label', path: '@adea-ai/ui/components/ui/label' },\n })\n\ntype RuleModule = {\n meta: {\n type: 'problem'\n docs: { description: string }\n schema: Json[]\n messages: Record<string, string>\n }\n create: (context: LintContext) => Record<string, (node: any) => void>\n}\n\ninterface LintContext {\n options?: unknown[]\n sourceCode?: {\n getScope?: (node: unknown) => LintScope | undefined\n }\n report: (descriptor: {\n node: unknown\n messageId?: string\n message?: string\n data?: Record<string, Json>\n }) => void\n}\n\ninterface LintScope {\n set?: Map<string, any>\n upper?: LintScope\n}\n\ninterface LintVariable {\n defs?: { type?: string; parent?: { kind?: string }; node?: { init?: unknown } }[]\n identifiers?: object[]\n}\n\nconst variableOf = (node: any, context: LintContext): LintVariable | null => {\n if (node?.type !== 'Identifier' && node?.type !== 'JSXIdentifier') return null\n for (let scope = context.sourceCode?.getScope?.(node); scope; scope = scope.upper) {\n const variable = scope.set?.get(node.name)\n if (variable) return variable\n }\n return null\n}\n\n/** Reads a static object-property key without evaluating a computed expression. */\nconst staticPropertyKey = (node: any, computed: boolean): string | null => {\n if (!computed && node?.type === 'Identifier') return node.name\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\n/** Detects named props in a literal JSX spread, including nested literal spreads. */\nconst objectHasStaticProperty = (node: any, name: string, seen = new Set<unknown>()): boolean => {\n if (!node || seen.has(node)) return false\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return objectHasStaticProperty(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return false\n return node.properties.some((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n if (property.type === 'SpreadElement')\n return objectHasStaticProperty(property.argument, name, seen)\n return false\n })\n}\n\n/** Returns literal values for a statically named property in an object spread. */\nconst staticObjectPropertyValues = (node: any, name: string, seen = new Set<unknown>()): any[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticObjectPropertyValues(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return []\n return node.properties.flatMap((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n ? [property.value]\n : []\n if (property.type === 'SpreadElement')\n return staticObjectPropertyValues(property.argument, name, seen)\n return []\n })\n}\n\nconst noInlineStyles: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Consumer components cannot set appearance or layout with JSX style props; use shared variants and token-backed classes.',\n },\n schema: [],\n messages: {\n inlineStyle:\n 'JSX style attributes are not permitted, including layout values and CSS custom properties. Use shared variants and token-backed classes.',\n inlineStyleElement:\n 'A JSX style element bypasses the shared design system. Use shared variants and token-backed classes.',\n inlineStyleSpread:\n 'A JSX spread contains a style prop. Pass named shared component props instead of hiding inline styles in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyle' })\n },\n JSXOpeningElement(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyleElement' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'style'))\n context.report({ node, messageId: 'inlineStyleSpread' })\n },\n }\n },\n}\n\nconst noClassList: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Solid classList props hide conditional classes from static design-system lint; use cn() with its object-key form.',\n },\n schema: [],\n messages: {\n classList:\n 'classList hides classes from design-system lint. Use cn() with its object-key form and statically readable class names.',\n classListSpread:\n 'A JSX spread contains classList. Use cn() with its object-key form instead of hiding classes in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'classList')\n context.report({ node, messageId: 'classList' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'classList'))\n context.report({ node, messageId: 'classListSpread' })\n },\n }\n },\n}\n\ninterface RawElementOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\nconst noRawInteractiveElements: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Interactive elements this package provides (button, input, textarea, select, option, label), including statically known Solid Dynamic tags, are composed from the package, not written as raw markup.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n rawElement:\n '{{element}} is provided by the design system: use {{primitive}} from {{path}}. A raw element has no keyboard story, no focus behaviour and no token styling — that is the work the primitive already did.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as RawElementOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n const emit = (node: unknown, element: string) => {\n const target = ELEMENT_PRIMITIVES[element]!\n context.report({\n node,\n messageId: 'rawElement',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (!(element in ELEMENT_PRIMITIVES) || allowed.has(element)) continue\n emit(node, element)\n }\n },\n }\n },\n}\n\ninterface PrimitiveImportOptions {\n /** Package prefixes this rule reports. Defaults to the primitive libraries the ui package wraps. */\n packages?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\nconst DEFAULT_PRIMITIVE_PACKAGES = Object.freeze([\n '@kobalte/core',\n '@corvu',\n 'cmdk-solid',\n '@ark-ui',\n '@zag-js',\n '@radix-ui',\n 'radix-ui',\n '@base-ui-components',\n '@base-ui',\n])\n\n/**\n * The interactive ARIA roles an application can dress a generic element in, and\n * the published primitive that owns each role. Native anchors are not generic\n * elements, so their built-in link semantics are unaffected by the `link` entry.\n */\nconst ROLE_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n link: { primitive: 'TextLink', path: '@adea-ai/ui/components/ui/text-link' },\n checkbox: { primitive: 'Checkbox', path: '@adea-ai/ui/components/ui/checkbox' },\n radio: { primitive: 'RadioGroupItem', path: '@adea-ai/ui/components/ui/radio-group' },\n radiogroup: { primitive: 'RadioGroup', path: '@adea-ai/ui/components/ui/radio-group' },\n switch: { primitive: 'Switch', path: '@adea-ai/ui/components/ui/switch' },\n tab: { primitive: 'TabsTrigger', path: '@adea-ai/ui/components/ui/tabs' },\n tablist: { primitive: 'TabsList', path: '@adea-ai/ui/components/ui/tabs' },\n tabpanel: { primitive: 'TabsContent', path: '@adea-ai/ui/components/ui/tabs' },\n option: { primitive: 'SelectItem', path: '@adea-ai/ui/components/ui/select' },\n listbox: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n combobox: { primitive: 'Combobox', path: '@adea-ai/ui/components/ui/combobox' },\n searchbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n menu: { primitive: 'DropdownMenuContent', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitem: { primitive: 'DropdownMenuItem', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitemcheckbox: {\n primitive: 'DropdownMenuCheckboxItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n menuitemradio: {\n primitive: 'DropdownMenuRadioItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n textbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n tree: { primitive: 'Tree', path: '@adea-ai/ui/components/composites/tree' },\n treeitem: { primitive: 'TreeRow', path: '@adea-ai/ui/components/composites/tree' },\n })\n\n/**\n * The elements whose only job is layout or text. A click handler or a tabindex on\n * one of these is a control being hand-built out of a non-control.\n */\nconst GENERIC_ELEMENTS: ReadonlySet<string> = new Set([\n 'div',\n 'span',\n 'li',\n 'ul',\n 'ol',\n 'td',\n 'th',\n 'p',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'section',\n 'article',\n 'aside',\n 'header',\n 'footer',\n 'nav',\n 'main',\n 'img',\n 'svg',\n])\n\nconst CLICK_HANDLERS: ReadonlySet<string> = new Set(\n [\n 'onClick',\n 'onDblClick',\n 'onDoubleClick',\n 'onPointerDown',\n 'onPointerUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onTouchStart',\n 'onTouchEnd',\n 'on:click',\n 'on:dblclick',\n 'on:pointerdown',\n 'on:pointerup',\n 'on:mousedown',\n 'on:mouseup',\n 'on:touchstart',\n 'on:touchend',\n ].flatMap((handler) => [handler, handler.toLowerCase()])\n)\n\ninterface InteractiveWrapperOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Also reject opaque generic-element props and Solid Dynamic tag overrides. */\n rejectUnknownSpreads?: boolean\n /** Replaces the default report message. */\n message?: string\n}\n\n/** Returns a const binding's immutable initializer, when its value is statically knowable. */\nconst constInitializer = (node: any, context: LintContext): any => {\n const variable = variableOf(node, context)\n const definition = variable?.defs?.[0]\n if (definition?.type !== 'Variable' || definition.parent?.kind !== 'const') return null\n return definition.node?.init ?? null\n}\n\n/** Reads literal strings through static branches and local const aliases. */\nconst staticStrings = (node: any, context?: LintContext, seen = new Set<unknown>()): string[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticStrings(node.expression, context, seen)\n if (node?.type === 'Literal' && typeof node.value === 'string') return [node.value]\n if (node?.type === 'JSXExpressionContainer') return staticStrings(node.expression, context, seen)\n if (node?.type === 'ConditionalExpression')\n return [\n ...staticStrings(node.consequent, context, new Set(seen)),\n ...staticStrings(node.alternate, context, new Set(seen)),\n ]\n if (node?.type === 'LogicalExpression')\n return [\n ...staticStrings(node.left, context, new Set(seen)),\n ...staticStrings(node.right, context, new Set(seen)),\n ]\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return [node.quasis[0].value.cooked ?? node.quasis[0].value.raw]\n if (node?.type === 'Identifier' && context) {\n const initializer = constInitializer(node, context)\n return initializer ? staticStrings(initializer, context, seen) : []\n }\n return []\n}\n\ninterface SolidDynamicImports {\n named: WeakSet<object>\n namespaces: WeakSet<object>\n}\n\nconst collectSolidDynamicImport = (node: any, imports: SolidDynamicImports): void => {\n if (node.source?.value !== 'solid-js/web') return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type === 'ImportNamespaceSpecifier' && specifier.local)\n imports.namespaces.add(specifier.local)\n if (specifier.type !== 'ImportSpecifier') continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (imported === 'Dynamic' && specifier.local) imports.named.add(specifier.local)\n }\n}\n\nconst collectSolidDynamicImports = (program: any, imports: SolidDynamicImports): void => {\n for (const statement of program.body ?? [])\n if (statement.type === 'ImportDeclaration') collectSolidDynamicImport(statement, imports)\n}\n\nconst isImportedBinding = (node: any, bindings: WeakSet<object>, context: LintContext): boolean =>\n variableOf(node, context)?.identifiers?.some((identifier: object) => bindings.has(identifier)) ??\n false\n\nconst isSolidDynamic = (name: any, imports: SolidDynamicImports, context: LintContext): boolean => {\n if (name?.type === 'JSXIdentifier') return isImportedBinding(name, imports.named, context)\n return (\n name?.type === 'JSXMemberExpression' &&\n name.property?.name === 'Dynamic' &&\n name.object?.type === 'JSXIdentifier' &&\n isImportedBinding(name.object, imports.namespaces, context)\n )\n}\n\ninterface DynamicComponentResolution {\n values: any[]\n opaqueAfterKnownIntrinsic: boolean\n}\n\nconst valuesIncludeKnownIntrinsic = (values: any[], context: LintContext): boolean =>\n values\n .flatMap((value) => staticStrings(value, context))\n .some((element) => GENERIC_ELEMENTS.has(element) || element in ELEMENT_PRIMITIVES)\n\n/** Applies `component` assignments made by a spread, tracking opaque overrides. */\nconst applyDynamicComponentSpread = (\n node: any,\n resolution: DynamicComponentResolution,\n context: LintContext\n): DynamicComponentResolution => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || node.type !== 'ObjectExpression')\n return {\n values: [],\n opaqueAfterKnownIntrinsic:\n resolution.opaqueAfterKnownIntrinsic ||\n valuesIncludeKnownIntrinsic(resolution.values, context),\n }\n\n let current = resolution\n for (const property of node.properties ?? []) {\n if (property.type === 'SpreadElement') {\n current = applyDynamicComponentSpread(property.argument, current, context)\n continue\n }\n if (property.type !== 'Property') continue\n const key = staticPropertyKey(property.key, property.computed === true)\n if (key === 'component')\n current = { values: [property.value], opaqueAfterKnownIntrinsic: false }\n else if (property.computed && key === null)\n current = {\n values: [],\n opaqueAfterKnownIntrinsic:\n current.opaqueAfterKnownIntrinsic || valuesIncludeKnownIntrinsic(current.values, context),\n }\n }\n return current\n}\n\nconst dynamicComponentResolution = (\n node: any,\n context: LintContext\n): DynamicComponentResolution => {\n let resolution: DynamicComponentResolution = {\n values: [],\n opaqueAfterKnownIntrinsic: false,\n }\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === 'component') {\n resolution = {\n values: attribute.value ? [attribute.value] : [],\n opaqueAfterKnownIntrinsic: false,\n }\n continue\n }\n if (attribute.type === 'JSXSpreadAttribute')\n resolution = applyDynamicComponentSpread(attribute.argument, resolution, context)\n }\n return resolution\n}\n\n/** Resolves native tags passed to Solid Dynamic while leaving component values alone. */\nconst jsxElementNames = (\n node: any,\n imports: SolidDynamicImports,\n context: LintContext\n): string[] => {\n if (isSolidDynamic(node.name, imports, context))\n return [\n ...new Set(\n dynamicComponentResolution(node, context).values.flatMap((value) =>\n staticStrings(value, context)\n )\n ),\n ]\n if (node.name?.type === 'JSXIdentifier') return [node.name.name]\n return []\n}\n\nconst roleOf = (node: any, context: LintContext): string | null => {\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXSpreadAttribute') {\n const role = staticObjectPropertyValues(attribute.argument, 'role')\n .flatMap((value) => staticStrings(value, context))\n .flatMap((value) => value.split(/\\s+/))\n .find((value) => value in ROLE_PRIMITIVES)\n if (role) return role\n continue\n }\n if (attribute.type !== 'JSXAttribute' || attribute.name?.name !== 'role') continue\n return (\n staticStrings(attribute.value, context)\n .flatMap((role) => role.split(/\\s+/))\n .find((role) => role in ROLE_PRIMITIVES) ?? null\n )\n }\n return null\n}\n\n/** Whether the element carries the attribute, by name. */\nconst has = (node: any, name: string): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) =>\n (attribute.type === 'JSXAttribute' &&\n (attribute.name?.type === 'JSXNamespacedName'\n ? `${attribute.name.namespace.name}:${attribute.name.name.name}`\n : attribute.name?.name) === name) ||\n (attribute.type === 'JSXSpreadAttribute' && objectHasStaticProperty(attribute.argument, name))\n )\n\nconst tabStopValue = (value: any): boolean => {\n const expression = value?.type === 'JSXExpressionContainer' ? value.expression : value\n if (expression?.type === 'Literal') return !(Number(expression.value) < 0)\n if (\n expression?.type === 'UnaryExpression' &&\n expression.operator === '-' &&\n expression.argument?.type === 'Literal'\n )\n return !(Number(expression.argument.value) > 0)\n return true\n}\n\nconst hasTabStop = (node: any): boolean =>\n (node.attributes ?? []).some((attribute: any) => {\n if (\n attribute.type === 'JSXAttribute' &&\n ['tabIndex', 'tabindex'].includes(attribute.name?.name)\n )\n return tabStopValue(attribute.value)\n if (attribute.type === 'JSXSpreadAttribute')\n return ['tabIndex', 'tabindex'].some((name) =>\n staticObjectPropertyValues(attribute.argument, name).some(tabStopValue)\n )\n return false\n })\n\n/** Unknown/computed props make a JSX object spread opaque to interaction checks. */\nconst opaqueSpread = (node: any, seen = new Set<unknown>()): boolean => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || seen.has(node) || node.type !== 'ObjectExpression') return true\n seen.add(node)\n return node.properties.some((property: any) => {\n if (property.type === 'SpreadElement') return opaqueSpread(property.argument, seen)\n if (property.type !== 'Property') return true\n return staticPropertyKey(property.key, property.computed === true) === null\n })\n}\n\nconst hasOpaqueSpread = (node: any): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) => attribute.type === 'JSXSpreadAttribute' && opaqueSpread(attribute.argument)\n )\n\nconst noInteractiveWrappers: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Generic elements dressed as interactive controls — an interactive role, a click handler or a tabindex on a layout element — re-implement a primitive by hand. Compose the real component.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n rejectUnknownSpreads: { type: 'boolean' },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n roleWrapper:\n 'A {{element}} with role=\"{{role}}\" hand-builds {{primitive}}: use {{primitive}} from {{path}}. The primitive brings keyboard activation, focus behaviour and ARIA wiring; the wrapper re-implements them badly.',\n clickWrapper:\n 'A click handler on {{element}} composes {{primitive}} by hand: use {{primitive}} from {{path}}. A div that reacts to clicks is a button that cannot be reached by keyboard.',\n tabindexWrapper:\n 'A tabindex on {{element}} makes a layout element focusable, which is focus management the primitives already own: compose the real component instead.',\n opaqueSpreadWrapper:\n 'A spread on {{element}} may hide a role, activation handler, or tab stop. Pass statically named props or compose the shared component instead.',\n opaqueDynamicComponentWrapper:\n 'An opaque spread follows a known raw design-system or generic tag on Solid Dynamic and may replace the tag or hide interactive props. Pass statically named props or a shared component so the interaction rule can inspect the final component.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as InteractiveWrapperOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n if (options.rejectUnknownSpreads && isSolidDynamic(node.name, dynamicImports, context)) {\n const resolution = dynamicComponentResolution(node, context)\n if (resolution.opaqueAfterKnownIntrinsic) {\n context.report({\n node,\n messageId: 'opaqueDynamicComponentWrapper',\n ...(options.message ? { message: options.message } : {}),\n })\n return\n }\n }\n\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (allowed.has(element) || element in ELEMENT_PRIMITIVES) continue\n // Capitalized JSX components are composed controls, not raw elements.\n // Solid Dynamic is resolved above only when its component is a known tag.\n if (element[0] === element[0]?.toUpperCase()) continue\n if (!GENERIC_ELEMENTS.has(element)) continue\n\n if (options.rejectUnknownSpreads && hasOpaqueSpread(node)) {\n context.report({\n node,\n messageId: 'opaqueSpreadWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n break\n }\n\n const role = roleOf(node, context)\n if (role && role in ROLE_PRIMITIVES) {\n const target = ROLE_PRIMITIVES[role]!\n context.report({\n node,\n messageId: 'roleWrapper',\n data: { element, role, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n\n const click = [...CLICK_HANDLERS].find((handler) => has(node, handler))\n if (click) {\n const target = ROLE_PRIMITIVES.button!\n context.report({\n node,\n messageId: 'clickWrapper',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n if (hasTabStop(node))\n context.report({\n node,\n messageId: 'tabindexWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n },\n }\n },\n}\n\nconst BUTTON_MODULE = '@adea-ai/ui/components/ui/button'\nconst ACTION_BUTTON_MODULE = '@adea-ai/ui/components/composites/action-button'\nconst ICON_BUTTON_SIZES: ReadonlySet<string> = new Set([\n 'icon-2xs',\n 'icon-xs',\n 'icon-sm',\n 'icon-md',\n 'icon-lg',\n 'icon-xl',\n 'icon-2xl',\n])\n\nconst staticJsxValues = (value: any): any[] =>\n value?.type === 'JSXExpressionContainer' ? [value.expression] : value ? [value] : []\n\nconst attributeValues = (node: any, name: string): any[] => {\n const values: any[] = []\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === name)\n values.splice(0, values.length, ...staticJsxValues(attribute.value))\n if (attribute.type === 'JSXSpreadAttribute') {\n const spreadValues = staticObjectPropertyValues(attribute.argument, name)\n if (spreadValues.length > 0) values.splice(0, values.length, spreadValues.at(-1))\n }\n }\n return values\n}\n\nconst staticStringValue = (node: any): string | null => {\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\ninterface ImportedJsxBindings {\n named: WeakSet<object>\n namespaces: WeakSet<object>\n}\n\nconst isImportedJsxComponent = (\n name: any,\n imports: ImportedJsxBindings,\n context: LintContext,\n namespaceExport?: string\n): boolean => {\n if (name?.type === 'JSXIdentifier' || name?.type === 'Identifier')\n return isImportedBinding(name, imports.named, context)\n const memberName = name?.property?.name\n return (\n (name?.type === 'JSXMemberExpression' || name?.type === 'MemberExpression') &&\n (name.object?.type === 'JSXIdentifier' || name.object?.type === 'Identifier') &&\n (name.property?.type === 'JSXIdentifier' || name.property?.type === 'Identifier') &&\n (namespaceExport ? memberName === namespaceExport : /^[A-Z]/.test(memberName ?? '')) &&\n isImportedBinding(name.object, imports.namespaces, context)\n )\n}\n\ntype IconChildKind = 'empty' | 'icon' | 'text' | 'unknown'\n\nconst CONTENT_OVERRIDE_PROPS = new Set([\n 'children',\n 'dangerouslySetInnerHTML',\n 'innerHTML',\n 'textContent',\n])\n\n/** Opaque spreads and objects containing content props may override children. */\nconst spreadMayOverrideContent = (argument: any): boolean => {\n while (\n argument?.type === 'TSAsExpression' ||\n argument?.type === 'TSSatisfiesExpression' ||\n argument?.type === 'TSNonNullExpression'\n )\n argument = argument.expression\n if (argument?.type !== 'ObjectExpression') return true\n return argument.properties.some((property: any) => {\n if (property.type !== 'Property') return true\n const key = staticPropertyKey(property.key, property.computed === true)\n return key === null || CONTENT_OVERRIDE_PROPS.has(key)\n })\n}\n\nconst hasContentOverride = (openingElement: any): boolean =>\n (openingElement?.attributes ?? []).some((attribute: any) => {\n if (attribute.type === 'JSXSpreadAttribute') return spreadMayOverrideContent(attribute.argument)\n return (\n attribute.type === 'JSXAttribute' &&\n attribute.name?.type === 'JSXIdentifier' &&\n CONTENT_OVERRIDE_PROPS.has(attribute.name.name)\n )\n })\n\nconst iconChildrenKind = (\n children: any[],\n icons: ImportedJsxBindings,\n context: LintContext\n): IconChildKind => {\n let hasIcon = false\n for (const child of children) {\n const kind = iconChildKind(child, icons, context)\n if (kind === 'text' || kind === 'unknown') return kind\n if (kind === 'icon') hasIcon = true\n }\n return hasIcon ? 'icon' : 'empty'\n}\n\nconst SVG_TEXT_CONTAINERS = new Set(['text', 'foreignObject'])\n\n/** A raw SVG may be labelled or contain dynamic text instead of an icon. */\nconst svgMayContainVisibleText = (children: any[]): boolean => {\n for (const child of children) {\n if (!child) return true\n if (child.type === 'JSXText') {\n if (String(child.value ?? '').trim()) return true\n continue\n }\n if (child.type === 'JSXFragment') {\n if (svgMayContainVisibleText(child.children ?? [])) return true\n continue\n }\n if (child.type === 'JSXExpressionContainer') {\n const expression = child.expression\n if (!expression || expression.type === 'JSXEmptyExpression') continue\n if (expression.type === 'JSXElement' || expression.type === 'JSXFragment') {\n if (\n svgMayContainVisibleText(\n expression.type === 'JSXElement' ? [expression] : (expression.children ?? [])\n )\n )\n return true\n continue\n }\n const text = staticStringValue(expression)\n if (text !== null) {\n if (text.trim()) return true\n continue\n }\n if (\n expression.type === 'Literal' &&\n (expression.value === null || typeof expression.value === 'boolean')\n )\n continue\n return true\n }\n if (child.type !== 'JSXElement') return true\n\n const name = child.openingElement?.name\n if (name?.type !== 'JSXIdentifier') return true\n if (SVG_TEXT_CONTAINERS.has(name.name)) return true\n if (hasContentOverride(child.openingElement)) return true\n if (name.name === 'title' || name.name === 'desc') continue\n if (!/^[a-z]/.test(name.name) || name.name.includes('-')) return true\n if (svgMayContainVisibleText(child.children ?? [])) return true\n }\n return false\n}\n\n/**\n * Proves only the uncomplicated icon-only forms that can be read without\n * executing Solid expressions: imported Lucide components, raw SVG, fragments,\n * whitespace, and spans that contain only those forms.\n */\nconst iconChildKind = (\n child: any,\n icons: ImportedJsxBindings,\n context: LintContext\n): IconChildKind => {\n if (!child) return 'unknown'\n if (child.type === 'JSXText') return String(child.value ?? '').trim() ? 'text' : 'empty'\n if (child.type === 'JSXFragment') return iconChildrenKind(child.children ?? [], icons, context)\n if (child.type === 'JSXExpressionContainer') {\n const expression = child.expression\n if (!expression || expression.type === 'JSXEmptyExpression') return 'empty'\n if (expression.type === 'JSXElement' || expression.type === 'JSXFragment')\n return iconChildKind(expression, icons, context)\n const text = staticStringValue(expression)\n if (text !== null) return text.trim() ? 'text' : 'empty'\n if (\n expression.type === 'Literal' &&\n (expression.value === null || typeof expression.value === 'boolean')\n )\n return 'empty'\n if (expression.type === 'Literal' && typeof expression.value === 'number') return 'text'\n return 'unknown'\n }\n if (child.type !== 'JSXElement') return 'unknown'\n\n const name = child.openingElement?.name\n if (name?.type === 'JSXIdentifier' && name.name === 'svg')\n return hasContentOverride(child.openingElement) ||\n svgMayContainVisibleText(child.children ?? [])\n ? 'unknown'\n : 'icon'\n if (isImportedJsxComponent(name, icons, context))\n return hasContentOverride(child.openingElement) ? 'unknown' : 'icon'\n if (name?.type === 'JSXIdentifier' && name.name === 'span') {\n if (hasContentOverride(child.openingElement)) return 'unknown'\n return iconChildrenKind(child.children ?? [], icons, context)\n }\n return 'unknown'\n}\n\nconst hasStaticallyIconOnlyChildren = (\n node: any,\n icons: ImportedJsxBindings,\n context: LintContext\n): boolean => {\n return (\n !hasContentOverride(node.openingElement) &&\n iconChildrenKind(node.children ?? [], icons, context) === 'icon'\n )\n}\n\nconst isIconButtonSize = (node: any): boolean =>\n attributeValues(node, 'size').some((value) => {\n const size = staticStringValue(value)\n return size !== null && ICON_BUTTON_SIZES.has(size)\n })\n\nconst actionTooltipStatus = (node: any): 'valid' | 'blank' | 'unknown' | 'missing' => {\n const values = attributeValues(node, 'tooltip')\n if (values.length === 0) return 'missing'\n const strings = values.map(staticStringValue)\n if (strings.some((value) => value !== null && value.trim().length > 0)) return 'valid'\n if (strings.every((value) => value !== null)) return 'blank'\n return 'unknown'\n}\n\n/** Requires shared icon actions to carry the shared explanatory-tooltip contract. */\nconst requireActionButtonTooltip: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Icon-sized shared Buttons and statically proven icon-only Buttons use ActionButton with a tooltip; icon-only ActionButtons need one too.',\n },\n schema: [],\n messages: {\n useActionButton:\n 'Icon-size or icon-only Button actions must use ActionButton with a nonblank tooltip. Keep the control name in aria-label; the tooltip explains the action.',\n missingTooltip:\n 'An icon-size or icon-only ActionButton needs a supplied nonblank tooltip. Keep its accessible name in aria-label as well.',\n },\n },\n create(context) {\n const buttons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const actionButtons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const icons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const recordImports = (node: any) => {\n const source = node.source?.value\n const target =\n source === BUTTON_MODULE ? buttons : source === ACTION_BUTTON_MODULE ? actionButtons : null\n if (source === 'lucide-solid') {\n if (node.importKind === 'type') return\n for (const specifier of node.specifiers ?? []) {\n if (!specifier.local || specifier.importKind === 'type') continue\n if (specifier.type === 'ImportNamespaceSpecifier') icons.namespaces.add(specifier.local)\n else if (specifier.type === 'ImportSpecifier') {\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (typeof imported === 'string' && /^[A-Z]/.test(imported))\n icons.named.add(specifier.local)\n }\n }\n return\n }\n if (!target) return\n if (node.importKind === 'type') return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type === 'ImportNamespaceSpecifier' && specifier.local) {\n target.namespaces.add(specifier.local)\n continue\n }\n if (\n specifier.type !== 'ImportSpecifier' ||\n !specifier.local ||\n specifier.importKind === 'type'\n )\n continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (\n (source === BUTTON_MODULE && imported === 'Button') ||\n (source === ACTION_BUTTON_MODULE && imported === 'ActionButton')\n )\n target.named.add(specifier.local)\n }\n }\n\n return {\n Program(node: any) {\n for (const statement of node.body ?? [])\n if (statement.type === 'ImportDeclaration') recordImports(statement)\n },\n JSXElement(node: any) {\n const opening = node.openingElement\n const isButton = isImportedJsxComponent(opening.name, buttons, context, 'Button')\n const isActionButton = isImportedJsxComponent(\n opening.name,\n actionButtons,\n context,\n 'ActionButton'\n )\n const asValues = attributeValues(opening, 'as')\n const targetsButton = asValues.some((value) =>\n isImportedJsxComponent(value, buttons, context, 'Button')\n )\n const targetsActionButton = asValues.some((value) =>\n isImportedJsxComponent(value, actionButtons, context, 'ActionButton')\n )\n if (!isButton && !isActionButton && !targetsButton && !targetsActionButton) return\n const iconSized = isIconButtonSize(opening)\n if (!iconSized && !hasStaticallyIconOnlyChildren(node, icons, context)) return\n if (isButton || targetsButton) {\n context.report({ node: opening, messageId: 'useActionButton' })\n return\n }\n if (!isActionButton && !targetsActionButton) return\n const status = actionTooltipStatus(opening)\n if (status === 'missing' || status === 'blank')\n context.report({ node: opening, messageId: 'missingTooltip' })\n },\n }\n },\n}\n\nconst noPrimitiveLibraryImports: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'The primitive libraries the design system is built on (Kobalte and friends) are its internal affair — compose the exported components instead of importing the primitives.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n packages: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n primitiveImport:\n 'Import from the design system, not from {{package}}: the primitives it wraps carry the focus, keyboard and ARIA behaviour the components exist to provide.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as PrimitiveImportOptions\n const prefixes = options.packages ?? DEFAULT_PRIMITIVE_PACKAGES\n const offender = (source: unknown): string | null => {\n const name = String(source ?? '')\n return prefixes.find((prefix) => name === prefix || name.startsWith(`${prefix}/`)) ?? null\n }\n const report = (node: unknown, source: unknown) => {\n const pkg = offender(source)!\n context.report({\n node,\n messageId: 'primitiveImport',\n data: { package: pkg },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n ImportDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ImportExpression(node: any) {\n if (typeof node.source?.value === 'string' && offender(node.source.value))\n report(node, node.source.value)\n },\n ExportNamedDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ExportAllDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n CallExpression(node: any) {\n if (node.callee?.type !== 'Identifier' || node.callee.name !== 'require') return\n const source = node.arguments?.[0]?.value\n if (typeof source === 'string' && offender(source)) report(node, source)\n },\n }\n },\n}\n\n/** Child nodes of an ESTree node, without the back-pointer. */\nconst childNodes = (node: any): any[] => {\n const out: any[] = []\n for (const key of Object.keys(node)) {\n if (key === 'parent' || key === 'loc' || key === 'range') continue\n const value = node[key]\n if (Array.isArray(value)) {\n for (const item of value) if (item && typeof item.type === 'string') out.push(item)\n } else if (value && typeof value.type === 'string') out.push(value)\n }\n return out\n}\n\nconst FUNCTION_TYPES = new Set([\n 'FunctionDeclaration',\n 'FunctionExpression',\n 'ArrowFunctionExpression',\n])\nconst PROP_HELPERS = new Set(['splitProps', 'mergeProps'])\n\n/** `local.icon`: a plain, non-computed property read on an identifier. */\nconst isPropRead = (node: any) =>\n node.type === 'MemberExpression' &&\n !node.computed &&\n node.object?.type === 'Identifier' &&\n node.property?.type === 'Identifier'\n\nconst readKey = (node: any) => `${node.object.name}.${node.property.name}`\n\nconst isPropsHelperCall = (init: any): boolean =>\n init?.type === 'CallExpression' &&\n init.callee?.type === 'Identifier' &&\n PROP_HELPERS.has(init.callee.name)\n\n/** By convention a component names its first parameter `props`. */\nconst isComponent = (fn: any) =>\n fn.params?.[0]?.type === 'Identifier' && fn.params[0].name === 'props'\n\n/** The prop reads a JSX child expression renders: `{a}`, `{x ? a : b}`, `{x && a}`. */\nconst renderedReads = (expression: any): any[] => {\n if (!expression) return []\n if (expression.type === 'ConditionalExpression')\n return [...renderedReads(expression.consequent), ...renderedReads(expression.alternate)]\n if (expression.type === 'LogicalExpression')\n return [...renderedReads(expression.left), ...renderedReads(expression.right)]\n return isPropRead(expression) ? [expression] : []\n}\n\n/** The JSX attribute an expression is the whole value of, if any. */\nconst attributeOf = (node: any, parent: any) =>\n parent?.type === 'JSXExpressionContainer' &&\n parent.expression === node &&\n parent.parent?.type === 'JSXAttribute'\n ? parent.parent\n : undefined\n\n/**\n * `<Tip icon={local.icon} />` compiles to a getter on Tip's props, so the read\n * happens where Tip reads it, not here. Show and Match read `when` as soon as\n * they mount, so that one counts.\n */\nconst isForwarded = (node: any, parent: any) => {\n const attribute = attributeOf(node, parent)\n if (!attribute) return false\n const tag = attribute.parent?.name\n const toComponent =\n tag?.type === 'JSXMemberExpression' ||\n (tag?.type === 'JSXIdentifier' && /^[A-Z]/.test(tag.name ?? ''))\n return toComponent && attribute.name?.name !== 'when'\n}\n\n/** A type annotation that is, or contains, `JSX.Element`. */\nconst typesJsx = (node: any): boolean => {\n if (!node || typeof node.type !== 'string') return false\n if (node.type === 'TSTypeReference') {\n const name = node.typeName\n const text =\n name?.type === 'TSQualifiedName'\n ? `${name.left?.name}.${name.right?.name}`\n : (name?.name as string | undefined)\n if (text === 'JSX.Element' || text === 'JSXElement') return true\n }\n return childNodes(node).some(typesJsx)\n}\n\n/** Property names this file types as JSX. `children` is always a slot. */\nconst jsxTypedNames = (program: any): Set<string> => {\n const names = new Set<string>(['children'])\n const visit = (node: any) => {\n if (\n (node.type === 'TSPropertySignature' || node.type === 'PropertyDefinition') &&\n node.key?.type === 'Identifier' &&\n typesJsx(node.typeAnnotation)\n )\n names.add(node.key.name)\n for (const child of childNodes(node)) visit(child)\n }\n visit(program)\n return names\n}\n\n/**\n * Solid compiles a JSX prop to a getter, so every read of a prop that holds JSX\n * builds that JSX again: `<Show when={local.icon}>{local.icon}</Show>` creates\n * the icon twice and keeps the unused copy, with its effects and listeners,\n * alive for as long as the component. The fix is to resolve the slot once with\n * `children(() => local.icon)` and read the accessor, or to use Show's callback\n * form.\n *\n * A prop is reported when it is read more than once in its component and is a\n * slot: `children`, a prop typed `JSX.Element` in the same file, or a prop that\n * is both the `when` of a Show or Match and rendered. Props are the\n * component's first parameter and the results of splitProps and mergeProps.\n * Passing a prop on to another component's attribute is not a read here.\n */\nconst singleSlotRead: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Read a JSX slot prop once: every read of a Solid prop getter builds its JSX again.',\n },\n schema: [],\n messages: {\n doubleRead:\n '{{name}} is rendered here and read {{count}} times in this component. Each read builds the slot again; resolve it once with children(() => {{name}}) and read the accessor.',\n doubleReadGated:\n '{{name}} is a JSX slot read {{count}} times in this component. Each read builds it again; resolve it once with children(() => {{name}}) and read the accessor.',\n },\n },\n create(context) {\n let slots = new Set<string>()\n\n const component = (fn: any) => {\n const holders = new Set<string>()\n if (fn.params?.[0]?.type === 'Identifier') holders.add(fn.params[0].name)\n const reads = new Map<string, any[]>()\n const rendered = new Map<string, any>()\n const gated = new Set<string>()\n\n const visit = (node: any, parent: any) => {\n // A component declared inside another function (a parts factory) has\n // props of its own.\n if (FUNCTION_TYPES.has(node.type) && isComponent(node)) return component(node)\n if (node.type === 'VariableDeclarator' && isPropsHelperCall(node.init)) {\n if (node.id?.type === 'Identifier') holders.add(node.id.name)\n if (node.id?.type === 'ArrayPattern')\n for (const element of node.id.elements ?? [])\n if (element?.type === 'Identifier') holders.add(element.name)\n }\n if (isPropRead(node)) {\n const key = readKey(node)\n if (attributeOf(node, parent)?.name?.name === 'when') gated.add(key)\n const called = parent?.type === 'CallExpression' && parent.callee === node\n const written = parent?.type === 'AssignmentExpression' && parent.left === node\n if (!called && !written && !isForwarded(node, parent))\n reads.set(key, [...(reads.get(key) ?? []), node])\n }\n if (\n node.type === 'JSXExpressionContainer' &&\n (parent?.type === 'JSXElement' || parent?.type === 'JSXFragment')\n )\n for (const read of renderedReads(node.expression))\n if (!rendered.has(readKey(read))) rendered.set(readKey(read), read)\n for (const child of childNodes(node)) visit(child, node)\n }\n for (const child of childNodes(fn)) visit(child, fn)\n\n const candidates = new Map<string, any>()\n for (const [key, list] of reads) if (gated.has(key)) candidates.set(key, list[0])\n for (const [key, node] of rendered) candidates.set(key, node)\n for (const [name, node] of candidates) {\n if (!holders.has(node.object.name)) continue\n const slot = slots.has(node.property.name) || (gated.has(name) && rendered.has(name))\n const count = reads.get(name)?.length ?? 0\n if (slot && count > 1)\n context.report({\n node,\n messageId: rendered.has(name) ? 'doubleRead' : 'doubleReadGated',\n data: { name, count },\n })\n }\n }\n\n // Components are module-level functions; nested callbacks belong to theirs.\n const visitTop = (node: any) => {\n if (FUNCTION_TYPES.has(node.type)) return component(node)\n for (const child of childNodes(node)) visitTop(child)\n }\n return {\n Program(node: any) {\n slots = jsxTypedNames(node)\n visitTop(node)\n },\n }\n },\n}\n\nconst plugin = {\n meta: { name: 'adea' },\n rules: {\n 'no-inline-styles': noInlineStyles,\n 'no-class-list': noClassList,\n 'no-raw-interactive-elements': noRawInteractiveElements,\n 'no-primitive-library-imports': noPrimitiveLibraryImports,\n 'no-interactive-wrappers': noInteractiveWrappers,\n 'require-action-button-tooltip': requireActionButtonTooltip,\n 'single-slot-read': singleSlotRead,\n },\n}\n\nexport default plugin\n"],"mappings":";;AAsBA,IAAM,qBACJ,OAAO,OAAO;CACZ,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;CACrE,UAAU;EAAE,WAAW;EAAY,MAAM;CAAqC;CAC9E,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;AACvE,CAAC;AAmCH,IAAM,cAAc,MAAW,YAA8C;CAC3E,IAAI,MAAM,SAAS,gBAAgB,MAAM,SAAS,iBAAiB,OAAO;CAC1E,KAAK,IAAI,QAAQ,QAAQ,YAAY,WAAW,IAAI,GAAG,OAAO,QAAQ,MAAM,OAAO;EACjF,MAAM,WAAW,MAAM,KAAK,IAAI,KAAK,IAAI;EACzC,IAAI,UAAU,OAAO;CACvB;CACA,OAAO;AACT;;AAGA,IAAM,qBAAqB,MAAW,aAAqC;CACzE,IAAI,CAAC,YAAY,MAAM,SAAS,cAAc,OAAO,KAAK;CAC1D,IAAI,MAAM,SAAS,aAAa,OAAO,KA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M,OAAO,IAAI;KACzD;KACA,KAAK,MAAM,SAAS,WAAW,EAAE,GAAG,MAAM,OAAO,EAAE;KAEnD,MAAM,6BAAa,IAAI,IAAiB;KACxC,KAAK,MAAM,CAAC,KAAK,SAAS,OAAO,IAAI,MAAM,IAAI,GAAG,GAAG,WAAW,IAAI,KAAK,KAAK,EAAE;KAChF,KAAK,MAAM,CAAC,KAAK,SAAS,UAAU,WAAW,IAAI,KAAK,IAAI;KAC5D,KAAK,MAAM,CAAC,MAAM,SAAS,YAAY;MACrC,IAAI,CAAC,QAAQ,IAAI,KAAK,OAAO,IAAI,GAAG;MACpC,MAAM,OAAO,MAAM,IAAI,KAAK,SAAS,IAAI,KAAM,MAAM,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI;MACnF,MAAM,QAAQ,MAAM,IAAI,IAAI,CAAC,EAAE,UAAU;MACzC,IAAI,QAAQ,QAAQ,GAClB,QAAQ,OAAO;OACb;OACA,WAAW,SAAS,IAAI,IAAI,IAAI,eAAe;OAC/C,MAAM;QAAE;QAAM;OAAM;MACtB,CAAC;KACL;IACF;IAGA,MAAM,YAAY,SAAc;KAC9B,IAAI,eAAe,IAAI,KAAK,IAAI,GAAG,OAAO,UAAU,IAAI;KACxD,KAAK,MAAM,SAAS,WAAW,IAAI,GAAG,SAAS,KAAK;IACtD;IACA,OAAO,EACL,QAAQ,MAAW;KACjB,QAAQ,cAAc,IAAI;KAC1B,SAAS,IAAI;IACf,EACF;GACF;EAYsB;CACtB;AACF"}
|
|
1
|
+
{"version":3,"file":"lint.js","names":[],"sources":["../src/lint/index.ts"],"sourcesContent":["/*\n * The design system's own oxlint plugin.\n *\n * The styling rules live in `@shadcn/lint`; what that plugin cannot know is which\n * *elements* the design system owns. This is the other half of the contract, for\n * the applications that consume the library: an interactive element this package\n * provides is not re-implemented at the application layer, and the primitive\n * libraries this package is built from are not imported around it.\n *\n * Loaded as an oxlint jsPlugin:\n *\n * // .oxlintrc.json\n * { \"jsPlugins\": [\"@adea-ai/ui/lint\"], \"rules\": { \"adea/no-raw-interactive-elements\": \"error\" } }\n *\n * Rules are errors by intent. A violation means an application composed its own\n * control out of raw markup, unreachable focus behaviour, an absent keyboard\n * story, a second implementation of a decision this package exists to make once.\n */\n\ntype Json = string | number | boolean | null | Json[] | { [key: string]: Json }\n\n/** The raw elements this package replaces, and the primitive that replaces them. */\nconst ELEMENT_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n input: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n textarea: { primitive: 'Textarea', path: '@adea-ai/ui/components/ui/textarea' },\n select: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n option: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n label: { primitive: 'Label', path: '@adea-ai/ui/components/ui/label' },\n })\n\ntype RuleModule = {\n meta: {\n type: 'problem'\n docs: { description: string }\n schema: Json[]\n messages: Record<string, string>\n }\n create: (context: LintContext) => Record<string, (node: any) => void>\n}\n\ninterface LintContext {\n options?: unknown[]\n sourceCode?: {\n getScope?: (node: unknown) => LintScope | undefined\n }\n report: (descriptor: {\n node: unknown\n messageId?: string\n message?: string\n data?: Record<string, Json>\n }) => void\n}\n\ninterface LintScope {\n set?: Map<string, any>\n upper?: LintScope\n}\n\ninterface LintVariable {\n defs?: { type?: string; parent?: { kind?: string }; node?: { init?: unknown } }[]\n identifiers?: object[]\n}\n\nconst variableOf = (node: any, context: LintContext): LintVariable | null => {\n if (node?.type !== 'Identifier' && node?.type !== 'JSXIdentifier') return null\n for (let scope = context.sourceCode?.getScope?.(node); scope; scope = scope.upper) {\n const variable = scope.set?.get(node.name)\n if (variable) return variable\n }\n return null\n}\n\n/** Reads a static object-property key without evaluating a computed expression. */\nconst staticPropertyKey = (node: any, computed: boolean): string | null => {\n if (!computed && node?.type === 'Identifier') return node.name\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\n/** Detects named props in a literal JSX spread, including nested literal spreads. */\nconst objectHasStaticProperty = (node: any, name: string, seen = new Set<unknown>()): boolean => {\n if (!node || seen.has(node)) return false\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return objectHasStaticProperty(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return false\n return node.properties.some((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n if (property.type === 'SpreadElement')\n return objectHasStaticProperty(property.argument, name, seen)\n return false\n })\n}\n\n/** Returns literal values for a statically named property in an object spread. */\nconst staticObjectPropertyValues = (node: any, name: string, seen = new Set<unknown>()): any[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticObjectPropertyValues(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return []\n return node.properties.flatMap((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n ? [property.value]\n : []\n if (property.type === 'SpreadElement')\n return staticObjectPropertyValues(property.argument, name, seen)\n return []\n })\n}\n\nconst noInlineStyles: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Consumer components cannot set appearance or layout with JSX style props; use shared variants and token-backed classes.',\n },\n schema: [],\n messages: {\n inlineStyle:\n 'JSX style attributes are not permitted, including layout values and CSS custom properties. Use shared variants and token-backed classes.',\n inlineStyleElement:\n 'A JSX style element bypasses the shared design system. Use shared variants and token-backed classes.',\n inlineStyleSpread:\n 'A JSX spread contains a style prop. Pass named shared component props instead of hiding inline styles in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyle' })\n },\n JSXOpeningElement(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyleElement' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'style'))\n context.report({ node, messageId: 'inlineStyleSpread' })\n },\n }\n },\n}\n\nconst noClassList: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Solid classList props hide conditional classes from static design-system lint; use cn() with its object-key form.',\n },\n schema: [],\n messages: {\n classList:\n 'classList hides classes from design-system lint. Use cn() with its object-key form and statically readable class names.',\n classListSpread:\n 'A JSX spread contains classList. Use cn() with its object-key form instead of hiding classes in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'classList')\n context.report({ node, messageId: 'classList' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'classList'))\n context.report({ node, messageId: 'classListSpread' })\n },\n }\n },\n}\n\ninterface RawElementOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\nconst noRawInteractiveElements: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Interactive elements this package provides (button, input, textarea, select, option, label), including statically known Solid Dynamic tags, are composed from the package, not written as raw markup.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n rawElement:\n '{{element}} is provided by the design system: use {{primitive}} from {{path}}. A raw element has no keyboard story, no focus behaviour and no token styling — that is the work the primitive already did.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as RawElementOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n const emit = (node: unknown, element: string) => {\n const target = ELEMENT_PRIMITIVES[element]!\n context.report({\n node,\n messageId: 'rawElement',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (!(element in ELEMENT_PRIMITIVES) || allowed.has(element)) continue\n emit(node, element)\n }\n },\n }\n },\n}\n\ninterface PrimitiveImportOptions {\n /** Package prefixes this rule reports. Defaults to the primitive libraries the ui package wraps. */\n packages?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\n// ui-sdk is what the design system is built on now; the rest are the primitives\n// it was built on before, or that an application might reach for instead, and\n// importing any of them bypasses the components just the same.\nconst DEFAULT_PRIMITIVE_PACKAGES = Object.freeze([\n '@ui-sdk',\n '@kobalte/core',\n '@corvu',\n 'cmdk-solid',\n '@ark-ui',\n '@zag-js',\n '@radix-ui',\n 'radix-ui',\n '@base-ui-components',\n '@base-ui',\n])\n\n/**\n * The interactive ARIA roles an application can dress a generic element in, and\n * the published primitive that owns each role. Native anchors are not generic\n * elements, so their built-in link semantics are unaffected by the `link` entry.\n */\nconst ROLE_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n link: { primitive: 'TextLink', path: '@adea-ai/ui/components/ui/text-link' },\n checkbox: { primitive: 'Checkbox', path: '@adea-ai/ui/components/ui/checkbox' },\n radio: { primitive: 'RadioGroupItem', path: '@adea-ai/ui/components/ui/radio-group' },\n radiogroup: { primitive: 'RadioGroup', path: '@adea-ai/ui/components/ui/radio-group' },\n switch: { primitive: 'Switch', path: '@adea-ai/ui/components/ui/switch' },\n tab: { primitive: 'TabsTrigger', path: '@adea-ai/ui/components/ui/tabs' },\n tablist: { primitive: 'TabsList', path: '@adea-ai/ui/components/ui/tabs' },\n tabpanel: { primitive: 'TabsContent', path: '@adea-ai/ui/components/ui/tabs' },\n option: { primitive: 'SelectItem', path: '@adea-ai/ui/components/ui/select' },\n listbox: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n combobox: { primitive: 'Combobox', path: '@adea-ai/ui/components/ui/combobox' },\n searchbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n menu: { primitive: 'DropdownMenuContent', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitem: { primitive: 'DropdownMenuItem', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitemcheckbox: {\n primitive: 'DropdownMenuCheckboxItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n menuitemradio: {\n primitive: 'DropdownMenuRadioItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n textbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n tree: { primitive: 'Tree', path: '@adea-ai/ui/components/composites/tree' },\n treeitem: { primitive: 'TreeRow', path: '@adea-ai/ui/components/composites/tree' },\n })\n\n/**\n * The elements whose only job is layout or text. A click handler or a tabindex on\n * one of these is a control being hand-built out of a non-control.\n */\nconst GENERIC_ELEMENTS: ReadonlySet<string> = new Set([\n 'div',\n 'span',\n 'li',\n 'ul',\n 'ol',\n 'td',\n 'th',\n 'p',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'section',\n 'article',\n 'aside',\n 'header',\n 'footer',\n 'nav',\n 'main',\n 'img',\n 'svg',\n])\n\nconst CLICK_HANDLERS: ReadonlySet<string> = new Set(\n [\n 'onClick',\n 'onDblClick',\n 'onDoubleClick',\n 'onPointerDown',\n 'onPointerUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onTouchStart',\n 'onTouchEnd',\n 'on:click',\n 'on:dblclick',\n 'on:pointerdown',\n 'on:pointerup',\n 'on:mousedown',\n 'on:mouseup',\n 'on:touchstart',\n 'on:touchend',\n ].flatMap((handler) => [handler, handler.toLowerCase()])\n)\n\ninterface InteractiveWrapperOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Also reject opaque generic-element props and Solid Dynamic tag overrides. */\n rejectUnknownSpreads?: boolean\n /** Replaces the default report message. */\n message?: string\n}\n\n/** Returns a const binding's immutable initializer, when its value is statically knowable. */\nconst constInitializer = (node: any, context: LintContext): any => {\n const variable = variableOf(node, context)\n const definition = variable?.defs?.[0]\n if (definition?.type !== 'Variable' || definition.parent?.kind !== 'const') return null\n return definition.node?.init ?? null\n}\n\n/** Reads literal strings through static branches and local const aliases. */\nconst staticStrings = (node: any, context?: LintContext, seen = new Set<unknown>()): string[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticStrings(node.expression, context, seen)\n if (node?.type === 'Literal' && typeof node.value === 'string') return [node.value]\n if (node?.type === 'JSXExpressionContainer') return staticStrings(node.expression, context, seen)\n if (node?.type === 'ConditionalExpression')\n return [\n ...staticStrings(node.consequent, context, new Set(seen)),\n ...staticStrings(node.alternate, context, new Set(seen)),\n ]\n if (node?.type === 'LogicalExpression')\n return [\n ...staticStrings(node.left, context, new Set(seen)),\n ...staticStrings(node.right, context, new Set(seen)),\n ]\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return [node.quasis[0].value.cooked ?? node.quasis[0].value.raw]\n if (node?.type === 'Identifier' && context) {\n const initializer = constInitializer(node, context)\n return initializer ? staticStrings(initializer, context, seen) : []\n }\n return []\n}\n\ninterface SolidDynamicImports {\n named: WeakSet<object>\n namespaces: WeakSet<object>\n}\n\nconst collectSolidDynamicImport = (node: any, imports: SolidDynamicImports): void => {\n if (node.source?.value !== '@solidjs/web') return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type === 'ImportNamespaceSpecifier' && specifier.local)\n imports.namespaces.add(specifier.local)\n if (specifier.type !== 'ImportSpecifier') continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (imported === 'Dynamic' && specifier.local) imports.named.add(specifier.local)\n }\n}\n\nconst collectSolidDynamicImports = (program: any, imports: SolidDynamicImports): void => {\n for (const statement of program.body ?? [])\n if (statement.type === 'ImportDeclaration') collectSolidDynamicImport(statement, imports)\n}\n\nconst isImportedBinding = (node: any, bindings: WeakSet<object>, context: LintContext): boolean =>\n variableOf(node, context)?.identifiers?.some((identifier: object) => bindings.has(identifier)) ??\n false\n\nconst isSolidDynamic = (name: any, imports: SolidDynamicImports, context: LintContext): boolean => {\n if (name?.type === 'JSXIdentifier') return isImportedBinding(name, imports.named, context)\n return (\n name?.type === 'JSXMemberExpression' &&\n name.property?.name === 'Dynamic' &&\n name.object?.type === 'JSXIdentifier' &&\n isImportedBinding(name.object, imports.namespaces, context)\n )\n}\n\ninterface DynamicComponentResolution {\n values: any[]\n opaqueAfterKnownIntrinsic: boolean\n}\n\nconst valuesIncludeKnownIntrinsic = (values: any[], context: LintContext): boolean =>\n values\n .flatMap((value) => staticStrings(value, context))\n .some((element) => GENERIC_ELEMENTS.has(element) || element in ELEMENT_PRIMITIVES)\n\n/** Applies `component` assignments made by a spread, tracking opaque overrides. */\nconst applyDynamicComponentSpread = (\n node: any,\n resolution: DynamicComponentResolution,\n context: LintContext\n): DynamicComponentResolution => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || node.type !== 'ObjectExpression')\n return {\n values: [],\n opaqueAfterKnownIntrinsic:\n resolution.opaqueAfterKnownIntrinsic ||\n valuesIncludeKnownIntrinsic(resolution.values, context),\n }\n\n let current = resolution\n for (const property of node.properties ?? []) {\n if (property.type === 'SpreadElement') {\n current = applyDynamicComponentSpread(property.argument, current, context)\n continue\n }\n if (property.type !== 'Property') continue\n const key = staticPropertyKey(property.key, property.computed === true)\n if (key === 'component')\n current = { values: [property.value], opaqueAfterKnownIntrinsic: false }\n else if (property.computed && key === null)\n current = {\n values: [],\n opaqueAfterKnownIntrinsic:\n current.opaqueAfterKnownIntrinsic || valuesIncludeKnownIntrinsic(current.values, context),\n }\n }\n return current\n}\n\nconst dynamicComponentResolution = (\n node: any,\n context: LintContext\n): DynamicComponentResolution => {\n let resolution: DynamicComponentResolution = {\n values: [],\n opaqueAfterKnownIntrinsic: false,\n }\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === 'component') {\n resolution = {\n values: attribute.value ? [attribute.value] : [],\n opaqueAfterKnownIntrinsic: false,\n }\n continue\n }\n if (attribute.type === 'JSXSpreadAttribute')\n resolution = applyDynamicComponentSpread(attribute.argument, resolution, context)\n }\n return resolution\n}\n\n/** Resolves native tags passed to Solid Dynamic while leaving component values alone. */\nconst jsxElementNames = (\n node: any,\n imports: SolidDynamicImports,\n context: LintContext\n): string[] => {\n if (isSolidDynamic(node.name, imports, context))\n return [\n ...new Set(\n dynamicComponentResolution(node, context).values.flatMap((value) =>\n staticStrings(value, context)\n )\n ),\n ]\n if (node.name?.type === 'JSXIdentifier') return [node.name.name]\n return []\n}\n\nconst roleOf = (node: any, context: LintContext): string | null => {\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXSpreadAttribute') {\n const role = staticObjectPropertyValues(attribute.argument, 'role')\n .flatMap((value) => staticStrings(value, context))\n .flatMap((value) => value.split(/\\s+/))\n .find((value) => value in ROLE_PRIMITIVES)\n if (role) return role\n continue\n }\n if (attribute.type !== 'JSXAttribute' || attribute.name?.name !== 'role') continue\n return (\n staticStrings(attribute.value, context)\n .flatMap((role) => role.split(/\\s+/))\n .find((role) => role in ROLE_PRIMITIVES) ?? null\n )\n }\n return null\n}\n\n/** Whether the element carries the attribute, by name. */\nconst has = (node: any, name: string): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) =>\n (attribute.type === 'JSXAttribute' &&\n (attribute.name?.type === 'JSXNamespacedName'\n ? `${attribute.name.namespace.name}:${attribute.name.name.name}`\n : attribute.name?.name) === name) ||\n (attribute.type === 'JSXSpreadAttribute' && objectHasStaticProperty(attribute.argument, name))\n )\n\nconst tabStopValue = (value: any): boolean => {\n const expression = value?.type === 'JSXExpressionContainer' ? value.expression : value\n if (expression?.type === 'Literal') return !(Number(expression.value) < 0)\n if (\n expression?.type === 'UnaryExpression' &&\n expression.operator === '-' &&\n expression.argument?.type === 'Literal'\n )\n return !(Number(expression.argument.value) > 0)\n return true\n}\n\nconst hasTabStop = (node: any): boolean =>\n (node.attributes ?? []).some((attribute: any) => {\n if (\n attribute.type === 'JSXAttribute' &&\n ['tabIndex', 'tabindex'].includes(attribute.name?.name)\n )\n return tabStopValue(attribute.value)\n if (attribute.type === 'JSXSpreadAttribute')\n return ['tabIndex', 'tabindex'].some((name) =>\n staticObjectPropertyValues(attribute.argument, name).some(tabStopValue)\n )\n return false\n })\n\n/** Unknown/computed props make a JSX object spread opaque to interaction checks. */\nconst opaqueSpread = (node: any, seen = new Set<unknown>()): boolean => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || seen.has(node) || node.type !== 'ObjectExpression') return true\n seen.add(node)\n return node.properties.some((property: any) => {\n if (property.type === 'SpreadElement') return opaqueSpread(property.argument, seen)\n if (property.type !== 'Property') return true\n return staticPropertyKey(property.key, property.computed === true) === null\n })\n}\n\nconst hasOpaqueSpread = (node: any): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) => attribute.type === 'JSXSpreadAttribute' && opaqueSpread(attribute.argument)\n )\n\nconst noInteractiveWrappers: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Generic elements dressed as interactive controls — an interactive role, a click handler or a tabindex on a layout element — re-implement a primitive by hand. Compose the real component.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n rejectUnknownSpreads: { type: 'boolean' },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n roleWrapper:\n 'A {{element}} with role=\"{{role}}\" hand-builds {{primitive}}: use {{primitive}} from {{path}}. The primitive brings keyboard activation, focus behaviour and ARIA wiring; the wrapper re-implements them badly.',\n clickWrapper:\n 'A click handler on {{element}} composes {{primitive}} by hand: use {{primitive}} from {{path}}. A div that reacts to clicks is a button that cannot be reached by keyboard.',\n tabindexWrapper:\n 'A tabindex on {{element}} makes a layout element focusable, which is focus management the primitives already own: compose the real component instead.',\n opaqueSpreadWrapper:\n 'A spread on {{element}} may hide a role, activation handler, or tab stop. Pass statically named props or compose the shared component instead.',\n opaqueDynamicComponentWrapper:\n 'An opaque spread follows a known raw design-system or generic tag on Solid Dynamic and may replace the tag or hide interactive props. Pass statically named props or a shared component so the interaction rule can inspect the final component.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as InteractiveWrapperOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n if (options.rejectUnknownSpreads && isSolidDynamic(node.name, dynamicImports, context)) {\n const resolution = dynamicComponentResolution(node, context)\n if (resolution.opaqueAfterKnownIntrinsic) {\n context.report({\n node,\n messageId: 'opaqueDynamicComponentWrapper',\n ...(options.message ? { message: options.message } : {}),\n })\n return\n }\n }\n\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (allowed.has(element) || element in ELEMENT_PRIMITIVES) continue\n // Capitalized JSX components are composed controls, not raw elements.\n // Solid Dynamic is resolved above only when its component is a known tag.\n if (element[0] === element[0]?.toUpperCase()) continue\n if (!GENERIC_ELEMENTS.has(element)) continue\n\n if (options.rejectUnknownSpreads && hasOpaqueSpread(node)) {\n context.report({\n node,\n messageId: 'opaqueSpreadWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n break\n }\n\n const role = roleOf(node, context)\n if (role && role in ROLE_PRIMITIVES) {\n const target = ROLE_PRIMITIVES[role]!\n context.report({\n node,\n messageId: 'roleWrapper',\n data: { element, role, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n\n const click = [...CLICK_HANDLERS].find((handler) => has(node, handler))\n if (click) {\n const target = ROLE_PRIMITIVES.button!\n context.report({\n node,\n messageId: 'clickWrapper',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n if (hasTabStop(node))\n context.report({\n node,\n messageId: 'tabindexWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n },\n }\n },\n}\n\nconst BUTTON_MODULE = '@adea-ai/ui/components/ui/button'\nconst ACTION_BUTTON_MODULE = '@adea-ai/ui/components/composites/action-button'\nconst ICON_BUTTON_SIZES: ReadonlySet<string> = new Set([\n 'icon-2xs',\n 'icon-xs',\n 'icon-sm',\n 'icon-md',\n 'icon-lg',\n 'icon-xl',\n 'icon-2xl',\n])\n\nconst staticJsxValues = (value: any): any[] =>\n value?.type === 'JSXExpressionContainer' ? [value.expression] : value ? [value] : []\n\nconst attributeValues = (node: any, name: string): any[] => {\n const values: any[] = []\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === name)\n values.splice(0, values.length, ...staticJsxValues(attribute.value))\n if (attribute.type === 'JSXSpreadAttribute') {\n const spreadValues = staticObjectPropertyValues(attribute.argument, name)\n if (spreadValues.length > 0) values.splice(0, values.length, spreadValues.at(-1))\n }\n }\n return values\n}\n\nconst staticStringValue = (node: any): string | null => {\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\ninterface ImportedJsxBindings {\n named: WeakSet<object>\n namespaces: WeakSet<object>\n}\n\nconst isImportedJsxComponent = (\n name: any,\n imports: ImportedJsxBindings,\n context: LintContext,\n namespaceExport?: string\n): boolean => {\n if (name?.type === 'JSXIdentifier' || name?.type === 'Identifier')\n return isImportedBinding(name, imports.named, context)\n const memberName = name?.property?.name\n return (\n (name?.type === 'JSXMemberExpression' || name?.type === 'MemberExpression') &&\n (name.object?.type === 'JSXIdentifier' || name.object?.type === 'Identifier') &&\n (name.property?.type === 'JSXIdentifier' || name.property?.type === 'Identifier') &&\n (namespaceExport ? memberName === namespaceExport : /^[A-Z]/.test(memberName ?? '')) &&\n isImportedBinding(name.object, imports.namespaces, context)\n )\n}\n\ntype IconChildKind = 'empty' | 'icon' | 'text' | 'unknown'\n\nconst CONTENT_OVERRIDE_PROPS = new Set([\n 'children',\n 'dangerouslySetInnerHTML',\n 'innerHTML',\n 'textContent',\n])\n\n/** Opaque spreads and objects containing content props may override children. */\nconst spreadMayOverrideContent = (argument: any): boolean => {\n while (\n argument?.type === 'TSAsExpression' ||\n argument?.type === 'TSSatisfiesExpression' ||\n argument?.type === 'TSNonNullExpression'\n )\n argument = argument.expression\n if (argument?.type !== 'ObjectExpression') return true\n return argument.properties.some((property: any) => {\n if (property.type !== 'Property') return true\n const key = staticPropertyKey(property.key, property.computed === true)\n return key === null || CONTENT_OVERRIDE_PROPS.has(key)\n })\n}\n\nconst hasContentOverride = (openingElement: any): boolean =>\n (openingElement?.attributes ?? []).some((attribute: any) => {\n if (attribute.type === 'JSXSpreadAttribute') return spreadMayOverrideContent(attribute.argument)\n return (\n attribute.type === 'JSXAttribute' &&\n attribute.name?.type === 'JSXIdentifier' &&\n CONTENT_OVERRIDE_PROPS.has(attribute.name.name)\n )\n })\n\nconst iconChildrenKind = (\n children: any[],\n icons: ImportedJsxBindings,\n context: LintContext\n): IconChildKind => {\n let hasIcon = false\n for (const child of children) {\n const kind = iconChildKind(child, icons, context)\n if (kind === 'text' || kind === 'unknown') return kind\n if (kind === 'icon') hasIcon = true\n }\n return hasIcon ? 'icon' : 'empty'\n}\n\nconst SVG_TEXT_CONTAINERS = new Set(['text', 'foreignObject'])\n\n/** A raw SVG may be labelled or contain dynamic text instead of an icon. */\nconst svgMayContainVisibleText = (children: any[]): boolean => {\n for (const child of children) {\n if (!child) return true\n if (child.type === 'JSXText') {\n if (String(child.value ?? '').trim()) return true\n continue\n }\n if (child.type === 'JSXFragment') {\n if (svgMayContainVisibleText(child.children ?? [])) return true\n continue\n }\n if (child.type === 'JSXExpressionContainer') {\n const expression = child.expression\n if (!expression || expression.type === 'JSXEmptyExpression') continue\n if (expression.type === 'JSXElement' || expression.type === 'JSXFragment') {\n if (\n svgMayContainVisibleText(\n expression.type === 'JSXElement' ? [expression] : (expression.children ?? [])\n )\n )\n return true\n continue\n }\n const text = staticStringValue(expression)\n if (text !== null) {\n if (text.trim()) return true\n continue\n }\n if (\n expression.type === 'Literal' &&\n (expression.value === null || typeof expression.value === 'boolean')\n )\n continue\n return true\n }\n if (child.type !== 'JSXElement') return true\n\n const name = child.openingElement?.name\n if (name?.type !== 'JSXIdentifier') return true\n if (SVG_TEXT_CONTAINERS.has(name.name)) return true\n if (hasContentOverride(child.openingElement)) return true\n if (name.name === 'title' || name.name === 'desc') continue\n if (!/^[a-z]/.test(name.name) || name.name.includes('-')) return true\n if (svgMayContainVisibleText(child.children ?? [])) return true\n }\n return false\n}\n\n/**\n * Proves only the uncomplicated icon-only forms that can be read without\n * executing Solid expressions: imported Lucide components, raw SVG, fragments,\n * whitespace, and spans that contain only those forms.\n */\nconst iconChildKind = (\n child: any,\n icons: ImportedJsxBindings,\n context: LintContext\n): IconChildKind => {\n if (!child) return 'unknown'\n if (child.type === 'JSXText') return String(child.value ?? '').trim() ? 'text' : 'empty'\n if (child.type === 'JSXFragment') return iconChildrenKind(child.children ?? [], icons, context)\n if (child.type === 'JSXExpressionContainer') {\n const expression = child.expression\n if (!expression || expression.type === 'JSXEmptyExpression') return 'empty'\n if (expression.type === 'JSXElement' || expression.type === 'JSXFragment')\n return iconChildKind(expression, icons, context)\n const text = staticStringValue(expression)\n if (text !== null) return text.trim() ? 'text' : 'empty'\n if (\n expression.type === 'Literal' &&\n (expression.value === null || typeof expression.value === 'boolean')\n )\n return 'empty'\n if (expression.type === 'Literal' && typeof expression.value === 'number') return 'text'\n return 'unknown'\n }\n if (child.type !== 'JSXElement') return 'unknown'\n\n const name = child.openingElement?.name\n if (name?.type === 'JSXIdentifier' && name.name === 'svg')\n return hasContentOverride(child.openingElement) ||\n svgMayContainVisibleText(child.children ?? [])\n ? 'unknown'\n : 'icon'\n if (isImportedJsxComponent(name, icons, context))\n return hasContentOverride(child.openingElement) ? 'unknown' : 'icon'\n if (name?.type === 'JSXIdentifier' && name.name === 'span') {\n if (hasContentOverride(child.openingElement)) return 'unknown'\n return iconChildrenKind(child.children ?? [], icons, context)\n }\n return 'unknown'\n}\n\nconst hasStaticallyIconOnlyChildren = (\n node: any,\n icons: ImportedJsxBindings,\n context: LintContext\n): boolean => {\n return (\n !hasContentOverride(node.openingElement) &&\n iconChildrenKind(node.children ?? [], icons, context) === 'icon'\n )\n}\n\nconst isIconButtonSize = (node: any): boolean =>\n attributeValues(node, 'size').some((value) => {\n const size = staticStringValue(value)\n return size !== null && ICON_BUTTON_SIZES.has(size)\n })\n\nconst actionTooltipStatus = (node: any): 'valid' | 'blank' | 'unknown' | 'missing' => {\n const values = attributeValues(node, 'tooltip')\n if (values.length === 0) return 'missing'\n const strings = values.map(staticStringValue)\n if (strings.some((value) => value !== null && value.trim().length > 0)) return 'valid'\n if (strings.every((value) => value !== null)) return 'blank'\n return 'unknown'\n}\n\n/** Requires shared icon actions to carry the shared explanatory-tooltip contract. */\nconst requireActionButtonTooltip: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Icon-sized shared Buttons and statically proven icon-only Buttons use ActionButton with a tooltip; icon-only ActionButtons need one too.',\n },\n schema: [],\n messages: {\n useActionButton:\n 'Icon-size or icon-only Button actions must use ActionButton with a nonblank tooltip. Keep the control name in aria-label; the tooltip explains the action.',\n missingTooltip:\n 'An icon-size or icon-only ActionButton needs a supplied nonblank tooltip. Keep its accessible name in aria-label as well.',\n },\n },\n create(context) {\n const buttons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const actionButtons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const icons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const recordImports = (node: any) => {\n const source = node.source?.value\n const target =\n source === BUTTON_MODULE ? buttons : source === ACTION_BUTTON_MODULE ? actionButtons : null\n if (source === '@lucide/solid') {\n if (node.importKind === 'type') return\n for (const specifier of node.specifiers ?? []) {\n if (!specifier.local || specifier.importKind === 'type') continue\n if (specifier.type === 'ImportNamespaceSpecifier') icons.namespaces.add(specifier.local)\n else if (specifier.type === 'ImportSpecifier') {\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (typeof imported === 'string' && /^[A-Z]/.test(imported))\n icons.named.add(specifier.local)\n }\n }\n return\n }\n if (!target) return\n if (node.importKind === 'type') return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type === 'ImportNamespaceSpecifier' && specifier.local) {\n target.namespaces.add(specifier.local)\n continue\n }\n if (\n specifier.type !== 'ImportSpecifier' ||\n !specifier.local ||\n specifier.importKind === 'type'\n )\n continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (\n (source === BUTTON_MODULE && imported === 'Button') ||\n (source === ACTION_BUTTON_MODULE && imported === 'ActionButton')\n )\n target.named.add(specifier.local)\n }\n }\n\n return {\n Program(node: any) {\n for (const statement of node.body ?? [])\n if (statement.type === 'ImportDeclaration') recordImports(statement)\n },\n JSXElement(node: any) {\n const opening = node.openingElement\n const isButton = isImportedJsxComponent(opening.name, buttons, context, 'Button')\n const isActionButton = isImportedJsxComponent(\n opening.name,\n actionButtons,\n context,\n 'ActionButton'\n )\n const asValues = attributeValues(opening, 'as')\n const targetsButton = asValues.some((value) =>\n isImportedJsxComponent(value, buttons, context, 'Button')\n )\n const targetsActionButton = asValues.some((value) =>\n isImportedJsxComponent(value, actionButtons, context, 'ActionButton')\n )\n if (!isButton && !isActionButton && !targetsButton && !targetsActionButton) return\n const iconSized = isIconButtonSize(opening)\n if (!iconSized && !hasStaticallyIconOnlyChildren(node, icons, context)) return\n if (isButton || targetsButton) {\n context.report({ node: opening, messageId: 'useActionButton' })\n return\n }\n if (!isActionButton && !targetsActionButton) return\n const status = actionTooltipStatus(opening)\n if (status === 'missing' || status === 'blank')\n context.report({ node: opening, messageId: 'missingTooltip' })\n },\n }\n },\n}\n\nconst noPrimitiveLibraryImports: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'The primitive libraries the design system is built on (ui-sdk, and the ones it replaced) are its internal affair — compose the exported components instead of importing the primitives.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n packages: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n primitiveImport:\n 'Import from the design system, not from {{package}}: the primitives it wraps carry the focus, keyboard and ARIA behaviour the components exist to provide.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as PrimitiveImportOptions\n const prefixes = options.packages ?? DEFAULT_PRIMITIVE_PACKAGES\n const offender = (source: unknown): string | null => {\n const name = String(source ?? '')\n return prefixes.find((prefix) => name === prefix || name.startsWith(`${prefix}/`)) ?? null\n }\n const report = (node: unknown, source: unknown) => {\n const pkg = offender(source)!\n context.report({\n node,\n messageId: 'primitiveImport',\n data: { package: pkg },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n ImportDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ImportExpression(node: any) {\n if (typeof node.source?.value === 'string' && offender(node.source.value))\n report(node, node.source.value)\n },\n ExportNamedDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ExportAllDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n CallExpression(node: any) {\n if (node.callee?.type !== 'Identifier' || node.callee.name !== 'require') return\n const source = node.arguments?.[0]?.value\n if (typeof source === 'string' && offender(source)) report(node, source)\n },\n }\n },\n}\n\n/** Child nodes of an ESTree node, without the back-pointer. */\nconst childNodes = (node: any): any[] => {\n const out: any[] = []\n for (const key of Object.keys(node)) {\n if (key === 'parent' || key === 'loc' || key === 'range') continue\n const value = node[key]\n if (Array.isArray(value)) {\n for (const item of value) if (item && typeof item.type === 'string') out.push(item)\n } else if (value && typeof value.type === 'string') out.push(value)\n }\n return out\n}\n\nconst FUNCTION_TYPES = new Set([\n 'FunctionDeclaration',\n 'FunctionExpression',\n 'ArrowFunctionExpression',\n])\n// Solid 2's `merge` and `omit`, and Solid 1's names, which consumers may still have.\nconst PROP_HELPERS = new Set(['merge', 'omit', 'splitProps', 'mergeProps'])\n\n/** `local.icon`: a plain, non-computed property read on an identifier. */\nconst isPropRead = (node: any) =>\n node.type === 'MemberExpression' &&\n !node.computed &&\n node.object?.type === 'Identifier' &&\n node.property?.type === 'Identifier'\n\nconst readKey = (node: any) => `${node.object.name}.${node.property.name}`\n\nconst isPropsHelperCall = (init: any): boolean =>\n init?.type === 'CallExpression' &&\n init.callee?.type === 'Identifier' &&\n PROP_HELPERS.has(init.callee.name)\n\n/** By convention a component names its first parameter `props`. */\nconst isComponent = (fn: any) =>\n fn.params?.[0]?.type === 'Identifier' && fn.params[0].name === 'props'\n\n/** The prop reads a JSX child expression renders: `{a}`, `{x ? a : b}`, `{x && a}`. */\nconst renderedReads = (expression: any): any[] => {\n if (!expression) return []\n if (expression.type === 'ConditionalExpression')\n return [...renderedReads(expression.consequent), ...renderedReads(expression.alternate)]\n if (expression.type === 'LogicalExpression')\n return [...renderedReads(expression.left), ...renderedReads(expression.right)]\n return isPropRead(expression) ? [expression] : []\n}\n\n/** The JSX attribute an expression is the whole value of, if any. */\nconst attributeOf = (node: any, parent: any) =>\n parent?.type === 'JSXExpressionContainer' &&\n parent.expression === node &&\n parent.parent?.type === 'JSXAttribute'\n ? parent.parent\n : undefined\n\n/**\n * `<Tip icon={local.icon} />` compiles to a getter on Tip's props, so the read\n * happens where Tip reads it, not here. Show and Match read `when` as soon as\n * they mount, so that one counts.\n */\nconst isForwarded = (node: any, parent: any) => {\n const attribute = attributeOf(node, parent)\n if (!attribute) return false\n const tag = attribute.parent?.name\n const toComponent =\n tag?.type === 'JSXMemberExpression' ||\n (tag?.type === 'JSXIdentifier' && /^[A-Z]/.test(tag.name ?? ''))\n return toComponent && attribute.name?.name !== 'when'\n}\n\n/** A type annotation that is, or contains, `JSX.Element`. */\nconst typesJsx = (node: any): boolean => {\n if (!node || typeof node.type !== 'string') return false\n if (node.type === 'TSTypeReference') {\n const name = node.typeName\n const text =\n name?.type === 'TSQualifiedName'\n ? `${name.left?.name}.${name.right?.name}`\n : (name?.name as string | undefined)\n if (text === 'JSX.Element' || text === 'JSXElement') return true\n }\n return childNodes(node).some(typesJsx)\n}\n\n/** Property names this file types as JSX. `children` is always a slot. */\nconst jsxTypedNames = (program: any): Set<string> => {\n const names = new Set<string>(['children'])\n const visit = (node: any) => {\n if (\n (node.type === 'TSPropertySignature' || node.type === 'PropertyDefinition') &&\n node.key?.type === 'Identifier' &&\n typesJsx(node.typeAnnotation)\n )\n names.add(node.key.name)\n for (const child of childNodes(node)) visit(child)\n }\n visit(program)\n return names\n}\n\n/**\n * Solid compiles a JSX prop to a getter, so every read of a prop that holds JSX\n * builds that JSX again: `<Show when={local.icon}>{local.icon}</Show>` creates\n * the icon twice and keeps the unused copy, with its effects and listeners,\n * alive for as long as the component. The fix is to resolve the slot once with\n * `children(() => local.icon)` and read the accessor, or to use Show's callback\n * form.\n *\n * A prop is reported when it is read more than once in its component and is a\n * slot: `children`, a prop typed `JSX.Element` in the same file, or a prop that\n * is both the `when` of a Show or Match and rendered. Props are the\n * component's first parameter, an alias of it (`const local = props`), and the\n * results of merge, omit, splitProps and mergeProps.\n * Passing a prop on to another component's attribute is not a read here.\n */\nconst singleSlotRead: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Read a JSX slot prop once: every read of a Solid prop getter builds its JSX again.',\n },\n schema: [],\n messages: {\n doubleRead:\n '{{name}} is rendered here and read {{count}} times in this component. Each read builds the slot again; resolve it once with children(() => {{name}}) and read the accessor.',\n doubleReadGated:\n '{{name}} is a JSX slot read {{count}} times in this component. Each read builds it again; resolve it once with children(() => {{name}}) and read the accessor.',\n },\n },\n create(context) {\n let slots = new Set<string>()\n\n const component = (fn: any) => {\n const holders = new Set<string>()\n if (fn.params?.[0]?.type === 'Identifier') holders.add(fn.params[0].name)\n const reads = new Map<string, any[]>()\n const rendered = new Map<string, any>()\n const gated = new Set<string>()\n\n const visit = (node: any, parent: any) => {\n // A component declared inside another function (a parts factory) has\n // props of its own.\n if (FUNCTION_TYPES.has(node.type) && isComponent(node)) return component(node)\n // `const local = props`: Solid 2 reads props through the object itself, so\n // an alias of a props holder is one too.\n if (\n node.type === 'VariableDeclarator' &&\n node.id?.type === 'Identifier' &&\n node.init?.type === 'Identifier' &&\n holders.has(node.init.name)\n )\n holders.add(node.id.name)\n if (node.type === 'VariableDeclarator' && isPropsHelperCall(node.init)) {\n if (node.id?.type === 'Identifier') holders.add(node.id.name)\n if (node.id?.type === 'ArrayPattern')\n for (const element of node.id.elements ?? [])\n if (element?.type === 'Identifier') holders.add(element.name)\n }\n if (isPropRead(node)) {\n const key = readKey(node)\n if (attributeOf(node, parent)?.name?.name === 'when') gated.add(key)\n const called = parent?.type === 'CallExpression' && parent.callee === node\n const written = parent?.type === 'AssignmentExpression' && parent.left === node\n if (!called && !written && !isForwarded(node, parent))\n reads.set(key, [...(reads.get(key) ?? []), node])\n }\n if (\n node.type === 'JSXExpressionContainer' &&\n (parent?.type === 'JSXElement' || parent?.type === 'JSXFragment')\n )\n for (const read of renderedReads(node.expression))\n if (!rendered.has(readKey(read))) rendered.set(readKey(read), read)\n for (const child of childNodes(node)) visit(child, node)\n }\n for (const child of childNodes(fn)) visit(child, fn)\n\n const candidates = new Map<string, any>()\n for (const [key, list] of reads) if (gated.has(key)) candidates.set(key, list[0])\n for (const [key, node] of rendered) candidates.set(key, node)\n for (const [name, node] of candidates) {\n if (!holders.has(node.object.name)) continue\n const slot = slots.has(node.property.name) || (gated.has(name) && rendered.has(name))\n const count = reads.get(name)?.length ?? 0\n if (slot && count > 1)\n context.report({\n node,\n messageId: rendered.has(name) ? 'doubleRead' : 'doubleReadGated',\n data: { name, count },\n })\n }\n }\n\n // Components are module-level functions; nested callbacks belong to theirs.\n const visitTop = (node: any) => {\n if (FUNCTION_TYPES.has(node.type)) return component(node)\n for (const child of childNodes(node)) visitTop(child)\n }\n return {\n Program(node: any) {\n slots = jsxTypedNames(node)\n visitTop(node)\n },\n }\n },\n}\n\nconst plugin = {\n meta: { name: 'adea' },\n rules: {\n 'no-inline-styles': noInlineStyles,\n 'no-class-list': noClassList,\n 'no-raw-interactive-elements': noRawInteractiveElements,\n 'no-primitive-library-imports': noPrimitiveLibraryImports,\n 'no-interactive-wrappers': noInteractiveWrappers,\n 'require-action-button-tooltip': requireActionButtonTooltip,\n 'single-slot-read': singleSlotRead,\n },\n}\n\nexport default plugin\n"],"mappings":";;AAsBA,IAAM,qBACJ,OAAO,OAAO;CACZ,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;CACrE,UAAU;EAAE,WAAW;EAAY,MAAM;CAAqC;CAC9E,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;AACvE,CAAC;AAmCH,IAAM,cAAc,MAAW,YAA8C;CAC3E,IAAI,MAAM,SAAS,gBAAgB,MAAM,SAAS,iBAAiB,OAAO;CAC1E,KAAK,IAAI,QAAQ,QAAQ,YAAY,WAAW,IAAI,GAAG,OAAO,QAAQ,MAAM,OAAO;EACjF,MAAM,WAAW,MAAM,KAAK,IAAI,KAAK,IAAI;EACzC,IAAI,UAA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GACF;EAYsB;CACtB;AACF"}
|
package/dist/r/about-dialog.json
CHANGED
package/dist/r/accordion.json
CHANGED
package/dist/r/account-menu.json
CHANGED
package/dist/r/alert-dialog.json
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
"title": "Alert Dialog",
|
|
5
5
|
"description": "",
|
|
6
6
|
"dependencies": [
|
|
7
|
-
"@
|
|
7
|
+
"@solidjs/web",
|
|
8
|
+
"@ui-sdk/solid@0.1.0-beta.13"
|
|
8
9
|
],
|
|
9
10
|
"registryDependencies": [
|
|
10
11
|
"@adea-ai/ui/dialog",
|
|
12
|
+
"@adea-ai/ui/tooltip",
|
|
11
13
|
"lib"
|
|
12
14
|
],
|
|
13
15
|
"files": [
|
package/dist/r/alert.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"type": "registry:ui",
|
|
4
4
|
"title": "Annotation Surface",
|
|
5
5
|
"description": "Keyboard-operable normalized drawing surface; hosts retain domain geometry and actions.",
|
|
6
|
-
"dependencies": [
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"@solidjs/web"
|
|
8
|
+
],
|
|
7
9
|
"registryDependencies": [
|
|
8
10
|
"lib"
|
|
9
11
|
],
|
package/dist/r/app-shell.json
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
"description": "",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"@adea-ai/themes@>=0.12.0 <0.13.0",
|
|
8
|
-
"@
|
|
9
|
-
"
|
|
8
|
+
"@lucide/solid@1.77.0",
|
|
9
|
+
"@solidjs/web",
|
|
10
|
+
"@ui-sdk/solid@0.1.0-beta.13"
|
|
10
11
|
],
|
|
11
12
|
"registryDependencies": [
|
|
12
13
|
"@adea-ai/ui/accent-picker",
|
package/dist/r/aspect-ratio.json
CHANGED
package/dist/r/attachment.json
CHANGED
package/dist/r/avatar.json
CHANGED