@adea-ai/ui 0.154.0 → 0.154.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/components/composites/about-dialog/about-dialog.d.ts.map +1 -1
- package/dist/components/composites/about-dialog/about-dialog.js +3 -1
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.js +20 -9
- package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +20 -10
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +37 -24
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +7 -3
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +11 -6
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +8 -3
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +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 +8 -4
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +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 +7 -3
- package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +8 -4
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +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 +3 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +5 -1
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.js +3 -1
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +11 -5
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts.map +1 -1
- package/dist/components/composites/context/context.js +7 -4
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +7 -3
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/help-center/help-center.d.ts.map +1 -1
- package/dist/components/composites/help-center/help-center.js +3 -1
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.d.ts +2 -2
- package/dist/components/composites/icon-picker/icon-picker.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +77 -71
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.d.ts.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js +119 -59
- package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.js +5 -2
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +3 -4
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js +5 -2
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +9 -5
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +3 -1
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +11 -5
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts.map +1 -1
- package/dist/components/composites/reasoning/reasoning.js +3 -1
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.js +14 -7
- package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +77 -67
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts.map +1 -1
- package/dist/components/composites/sources/sources.js +39 -39
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.js +9 -4
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +4 -1
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +3 -1
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/task/task.d.ts.map +1 -1
- package/dist/components/composites/task/task.js +3 -1
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/ansi.d.ts.map +1 -1
- package/dist/components/composites/terminal/ansi.js +16 -0
- package/dist/components/composites/terminal/ansi.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +15 -7
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts.map +1 -1
- package/dist/components/composites/test-results/test-results.js +15 -7
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts.map +1 -1
- package/dist/components/composites/tool/tool.js +3 -1
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +3 -1
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +34 -24
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +17 -12
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +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 +5 -2
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.d.ts.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.js +9 -4
- package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +9 -5
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.d.ts.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +6 -3
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-surface.d.ts.map +1 -1
- package/dist/components/conversation/conversation-surface.js +3 -1
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +9 -4
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +9 -4
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +11 -5
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +3 -1
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +3 -1
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.d.ts.map +1 -1
- package/dist/components/layout/floating-preview/floating-preview.js +5 -2
- package/dist/components/layout/floating-preview/floating-preview.js.map +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 +3 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.d.ts.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.js +3 -1
- package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +3 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +5 -2
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +3 -1
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts.map +1 -1
- package/dist/components/theme/appearance-panel.js +3 -1
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/theme-mode-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-mode-toggle.js +6 -3
- package/dist/components/theme/theme-mode-toggle.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts.map +1 -1
- package/dist/components/theme/theme-toggle.js +6 -3
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion/accordion.js +3 -1
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +15 -9
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.js +5 -4
- package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
- package/dist/components/ui/attachment/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment/attachment.js +18 -9
- package/dist/components/ui/attachment/attachment.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.js +30 -11
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +5 -2
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +37 -13
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/calendar/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar/calendar.js +5 -2
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js +12 -6
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +13 -0
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +296 -21
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +9 -6
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.js +8 -11
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/command/command.d.ts.map +1 -1
- package/dist/components/ui/command/command.js +4 -2
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +3 -1
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +3 -1
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js +7 -3
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +3 -1
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +12 -6
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/input/input-control.d.ts +2 -0
- package/dist/components/ui/input/input-control.d.ts.map +1 -1
- package/dist/components/ui/input/input-control.js +24 -6
- package/dist/components/ui/input/input-control.js.map +1 -1
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/input/input.js +47 -48
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group/input-group.js +1 -8
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/message/index.d.ts +1 -1
- package/dist/components/ui/message/index.d.ts.map +1 -1
- package/dist/components/ui/message/index.js +2 -2
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +5 -3
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/message/parse-message-text.d.ts +32 -0
- package/dist/components/ui/message/parse-message-text.d.ts.map +1 -1
- package/dist/components/ui/message/parse-message-text.js +63 -3
- package/dist/components/ui/message/parse-message-text.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select/native-select.js +4 -9
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +3 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination/pagination.js +7 -3
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +9 -4
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +4 -9
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.js +3 -1
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/select/select.js +7 -3
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +3 -1
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner/spinner.js +3 -1
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +35 -30
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts +7 -0
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +255 -17
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.js +1 -8
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +3 -1
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.js +10 -4
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/index.d.ts +1 -0
- package/dist/components/ui/tooltip/index.d.ts.map +1 -1
- package/dist/components/ui/tooltip/index.js +2 -1
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts +40 -0
- package/dist/components/ui/tooltip/lazy-tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/lazy-tooltip.js +61 -0
- package/dist/components/ui/tooltip/lazy-tooltip.js.map +1 -0
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +82 -68
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +1 -1
- package/dist/components/ui/typography/typography.d.ts.map +1 -1
- package/dist/components/ui/typography/typography.js +5 -6
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/lib/clipboard.d.ts.map +1 -1
- package/dist/lib/clipboard.js +3 -0
- package/dist/lib/clipboard.js.map +1 -1
- package/dist/lib/fast-icon.d.ts +18 -0
- package/dist/lib/fast-icon.d.ts.map +1 -0
- package/dist/lib/fast-icon.js +75 -0
- package/dist/lib/fast-icon.js.map +1 -0
- package/dist/lib/form-field.d.ts +1 -1
- package/dist/lib/form-field.js +3 -1
- package/dist/lib/form-field.js.map +1 -1
- package/dist/lib/observe-resize.d.ts +14 -0
- package/dist/lib/observe-resize.d.ts.map +1 -0
- package/dist/lib/observe-resize.js +19 -0
- package/dist/lib/observe-resize.js.map +1 -0
- package/dist/lint/index.d.ts +1 -0
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/lint.js +251 -118
- package/dist/lint.js.map +1 -1
- package/dist/r/action-button.json +3 -1
- package/dist/r/floating-preview.json +2 -1
- package/dist/r/icon-picker.json +0 -1
- package/dist/r/lib.json +10 -0
- package/dist/r/plan.json +2 -1
- package/dist/r/queue.json +2 -1
- package/dist/r/registry.json +30 -9
- package/dist/r/scene-controls.json +2 -1
- package/dist/r/src/components/composites/about-dialog/about-dialog.tsx +5 -1
- package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +22 -17
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +21 -9
- package/dist/r/src/components/composites/action-button/action-button.tsx +38 -21
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +7 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +13 -1
- package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +13 -1
- package/dist/r/src/components/composites/catalog-browser/catalog-browser-group.tsx +11 -1
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +11 -1
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +5 -1
- package/dist/r/src/components/composites/chat/chat.tsx +11 -1
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +5 -1
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +15 -1
- package/dist/r/src/components/composites/context/context.tsx +9 -1
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +11 -1
- package/dist/r/src/components/composites/help-center/help-center.tsx +5 -1
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +59 -31
- package/dist/r/src/components/composites/icon-picker/shell-icons.ts +121 -59
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +6 -1
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +7 -5
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +6 -1
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +11 -1
- package/dist/r/src/components/composites/plan/plan.tsx +5 -1
- package/dist/r/src/components/composites/queue/queue.tsx +15 -1
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +5 -1
- package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +17 -1
- package/dist/r/src/components/composites/settings/settings.tsx +23 -14
- package/dist/r/src/components/composites/sources/sources.tsx +27 -20
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +13 -1
- package/dist/r/src/components/composites/stat/stat.tsx +9 -1
- package/dist/r/src/components/composites/subagent/subagent.tsx +5 -1
- package/dist/r/src/components/composites/task/task.tsx +5 -1
- package/dist/r/src/components/composites/terminal/ansi.ts +18 -0
- package/dist/r/src/components/composites/terminal/terminal.tsx +17 -7
- package/dist/r/src/components/composites/test-results/test-results.tsx +17 -7
- package/dist/r/src/components/composites/tool/tool.tsx +5 -1
- package/dist/r/src/components/composites/tree/tree.tsx +5 -1
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +35 -15
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +14 -7
- package/dist/r/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +6 -1
- package/dist/r/src/components/composites/workspace-switcher/workspace-switcher.tsx +13 -1
- package/dist/r/src/components/conversation/busy-send-button.tsx +11 -1
- package/dist/r/src/components/conversation/conversation-avatar.tsx +7 -1
- package/dist/r/src/components/conversation/conversation-surface.tsx +5 -1
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +13 -1
- package/dist/r/src/components/conversation/message-composer.tsx +13 -1
- package/dist/r/src/components/conversation/message-row.tsx +15 -1
- package/dist/r/src/components/conversation/thread-panel.tsx +5 -1
- package/dist/r/src/components/conversation/transcript-composition.tsx +5 -1
- package/dist/r/src/components/layout/floating-preview/floating-preview.tsx +6 -1
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +5 -1
- package/dist/r/src/components/layout/shell-rail/shell-rail.tsx +5 -1
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +5 -1
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -1
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +5 -1
- package/dist/r/src/components/theme/appearance-panel.tsx +6 -1
- package/dist/r/src/components/theme/theme-mode-toggle.tsx +7 -1
- package/dist/r/src/components/theme/theme-toggle.tsx +7 -1
- package/dist/r/src/components/ui/accordion/accordion.tsx +5 -1
- package/dist/r/src/components/ui/alert/alert.tsx +20 -3
- package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +6 -3
- package/dist/r/src/components/ui/attachment/attachment.tsx +19 -8
- package/dist/r/src/components/ui/badge/badge.tsx +24 -8
- package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +9 -1
- package/dist/r/src/components/ui/button/button.tsx +47 -16
- package/dist/r/src/components/ui/calendar/calendar.tsx +6 -1
- package/dist/r/src/components/ui/carousel/carousel.tsx +15 -5
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +260 -22
- package/dist/r/src/components/ui/code-block/code-block.tsx +11 -5
- package/dist/r/src/components/ui/combobox/combobox.tsx +8 -9
- package/dist/r/src/components/ui/command/command.tsx +8 -4
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -1
- package/dist/r/src/components/ui/dialog/dialog.tsx +5 -1
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +11 -1
- package/dist/r/src/components/ui/empty/empty-state.tsx +5 -1
- package/dist/r/src/components/ui/field/field.tsx +14 -5
- package/dist/r/src/components/ui/input/input-control.tsx +28 -19
- package/dist/r/src/components/ui/input/input.tsx +9 -12
- package/dist/r/src/components/ui/input-group/input-group.tsx +1 -8
- package/dist/r/src/components/ui/message/index.ts +3 -0
- package/dist/r/src/components/ui/message/message.tsx +11 -2
- package/dist/r/src/components/ui/message/parse-message-text.ts +94 -2
- package/dist/r/src/components/ui/native-select/native-select.tsx +6 -9
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -1
- package/dist/r/src/components/ui/pagination/pagination.tsx +11 -1
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +13 -1
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +6 -9
- package/dist/r/src/components/ui/resizable/resizable.tsx +5 -1
- package/dist/r/src/components/ui/select/select.tsx +11 -1
- package/dist/r/src/components/ui/sheet/sheet.tsx +5 -1
- package/dist/r/src/components/ui/spinner/spinner.tsx +5 -1
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +14 -7
- package/dist/r/src/components/ui/switch/switch.tsx +235 -28
- package/dist/r/src/components/ui/textarea/textarea.tsx +1 -8
- package/dist/r/src/components/ui/toast/toast.tsx +5 -1
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +14 -8
- package/dist/r/src/components/ui/tooltip/index.ts +1 -0
- package/dist/r/src/components/ui/tooltip/lazy-tooltip.tsx +73 -0
- package/dist/r/src/components/ui/trace/trace.tsx +61 -28
- package/dist/r/src/components/ui/typography/typography.tsx +6 -5
- package/dist/r/src/lib/clipboard.ts +4 -0
- package/dist/r/src/lib/fast-icon.ts +88 -0
- package/dist/r/src/lib/form-field.ts +7 -7
- package/dist/r/src/lib/observe-resize.ts +28 -0
- package/dist/r/subagent.json +2 -1
- package/dist/r/tool.json +2 -1
- package/dist/r/tooltip.json +5 -0
- package/dist/r/trace.json +0 -1
- package/package.json +1 -1
- package/registry.json +30 -9
- package/src/components/composites/about-dialog/about-dialog.tsx +5 -1
- package/src/components/composites/accent-picker/accent-picker.tsx +22 -17
- package/src/components/composites/account-menu/account-menu.tsx +21 -9
- package/src/components/composites/action-button/action-button.tsx +38 -21
- package/src/components/composites/appearance-editor/appearance-choices.tsx +7 -1
- package/src/components/composites/appearance-editor/appearance-editor.tsx +13 -1
- package/src/components/composites/appearance-editor/appearance-rows.tsx +13 -1
- package/src/components/composites/appearance-editor/font-settings-group.tsx +13 -1
- package/src/components/composites/catalog-browser/catalog-browser-group.tsx +11 -1
- package/src/components/composites/catalog-browser/catalog-browser.tsx +11 -1
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +5 -1
- package/src/components/composites/chat/chat.tsx +11 -1
- package/src/components/composites/checkpoint/checkpoint.tsx +5 -1
- package/src/components/composites/confirmation/confirmation.tsx +15 -1
- package/src/components/composites/context/context.tsx +9 -1
- package/src/components/composites/file-tree/file-tree.tsx +11 -1
- package/src/components/composites/help-center/help-center.tsx +5 -1
- package/src/components/composites/icon-picker/icon-picker.tsx +59 -31
- package/src/components/composites/icon-picker/shell-icons.ts +121 -59
- package/src/components/composites/inline-citation/inline-citation.tsx +6 -1
- package/src/components/composites/list-row/list-row-control.tsx +7 -5
- package/src/components/composites/message-scroller/message-scroller.tsx +6 -1
- package/src/components/composites/model-selector/model-selector.tsx +11 -1
- package/src/components/composites/plan/plan.tsx +5 -1
- package/src/components/composites/queue/queue.tsx +15 -1
- package/src/components/composites/reasoning/reasoning.tsx +5 -1
- package/src/components/composites/scene-controls/scene-controls.tsx +17 -1
- package/src/components/composites/settings/settings.tsx +23 -14
- package/src/components/composites/sources/sources.tsx +27 -20
- package/src/components/composites/stack-trace/stack-trace.tsx +13 -1
- package/src/components/composites/stat/stat.tsx +9 -1
- package/src/components/composites/subagent/subagent.tsx +5 -1
- package/src/components/composites/task/task.tsx +5 -1
- package/src/components/composites/terminal/ansi.ts +18 -0
- package/src/components/composites/terminal/terminal.tsx +17 -7
- package/src/components/composites/test-results/test-results.tsx +17 -7
- package/src/components/composites/tool/tool.tsx +5 -1
- package/src/components/composites/tree/tree.tsx +5 -1
- package/src/components/composites/update-dialog/update-dialog.tsx +35 -15
- package/src/components/composites/workspace-mark/workspace-mark.tsx +14 -7
- package/src/components/composites/workspace-switcher/workspace-reorder-dialog.tsx +6 -1
- package/src/components/composites/workspace-switcher/workspace-switcher.tsx +13 -1
- package/src/components/conversation/busy-send-button.tsx +11 -1
- package/src/components/conversation/conversation-avatar.tsx +7 -1
- package/src/components/conversation/conversation-surface.tsx +5 -1
- package/src/components/conversation/internal/chat-composer-shell.tsx +13 -1
- package/src/components/conversation/message-composer.tsx +13 -1
- package/src/components/conversation/message-row.tsx +15 -1
- package/src/components/conversation/thread-panel.tsx +5 -1
- package/src/components/conversation/transcript-composition.tsx +5 -1
- package/src/components/layout/floating-preview/floating-preview.tsx +6 -1
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +5 -1
- package/src/components/layout/shell-rail/shell-rail.tsx +5 -1
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +5 -1
- package/src/components/layout/split-layout/split-layout.tsx +6 -1
- package/src/components/layout/top-bar/top-bar.tsx +5 -1
- package/src/components/theme/appearance-panel.tsx +6 -1
- package/src/components/theme/theme-mode-toggle.tsx +7 -1
- package/src/components/theme/theme-toggle.tsx +7 -1
- package/src/components/ui/accordion/accordion.tsx +5 -1
- package/src/components/ui/alert/alert.tsx +20 -3
- package/src/components/ui/annotation-surface/annotation-surface.tsx +6 -3
- package/src/components/ui/attachment/attachment.tsx +19 -8
- package/src/components/ui/badge/badge.tsx +24 -8
- package/src/components/ui/breadcrumb/breadcrumb.tsx +9 -1
- package/src/components/ui/button/button.tsx +47 -16
- package/src/components/ui/calendar/calendar.tsx +6 -1
- package/src/components/ui/carousel/carousel.tsx +15 -5
- package/src/components/ui/checkbox/checkbox.tsx +260 -22
- package/src/components/ui/code-block/code-block.tsx +11 -5
- package/src/components/ui/combobox/combobox.tsx +8 -9
- package/src/components/ui/command/command.tsx +8 -4
- package/src/components/ui/detail-panel/detail-panel.tsx +5 -1
- package/src/components/ui/dialog/dialog.tsx +5 -1
- package/src/components/ui/dropdown-menu/menu-parts.tsx +11 -1
- package/src/components/ui/empty/empty-state.tsx +5 -1
- package/src/components/ui/field/field.tsx +14 -5
- package/src/components/ui/input/input-control.tsx +28 -19
- package/src/components/ui/input/input.tsx +9 -12
- package/src/components/ui/input-group/input-group.tsx +1 -8
- package/src/components/ui/message/index.ts +3 -0
- package/src/components/ui/message/message.tsx +11 -2
- package/src/components/ui/message/parse-message-text.ts +94 -2
- package/src/components/ui/native-select/native-select.tsx +6 -9
- package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -1
- package/src/components/ui/pagination/pagination.tsx +11 -1
- package/src/components/ui/questionnaire/questionnaire.tsx +13 -1
- package/src/components/ui/radio-group/radio-group.tsx +6 -9
- package/src/components/ui/resizable/resizable.tsx +5 -1
- package/src/components/ui/select/select.tsx +11 -1
- package/src/components/ui/sheet/sheet.tsx +5 -1
- package/src/components/ui/spinner/spinner.tsx +5 -1
- package/src/components/ui/status-chip/status-chip.tsx +14 -7
- package/src/components/ui/switch/switch.tsx +235 -28
- package/src/components/ui/textarea/textarea.tsx +1 -8
- package/src/components/ui/toast/toast.tsx +5 -1
- package/src/components/ui/tooltip/deferred-tooltip.tsx +14 -8
- package/src/components/ui/tooltip/index.ts +1 -0
- package/src/components/ui/tooltip/lazy-tooltip.tsx +73 -0
- package/src/components/ui/trace/trace.tsx +61 -28
- package/src/components/ui/typography/typography.tsx +6 -5
- package/src/lib/clipboard.ts +4 -0
- package/src/lib/fast-icon.ts +88 -0
- package/src/lib/form-field.ts +7 -7
- package/src/lib/observe-resize.ts +28 -0
- package/src/lint/index.ts +199 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CircleHelp,
|
|
3
|
-
Info,
|
|
4
|
-
LogIn,
|
|
5
|
-
LogOut,
|
|
6
|
-
Megaphone,
|
|
7
|
-
RefreshCw,
|
|
8
|
-
Settings2,
|
|
9
|
-
Smartphone,
|
|
10
|
-
UserRound,
|
|
2
|
+
CircleHelp as LucideCircleHelp,
|
|
3
|
+
Info as LucideInfo,
|
|
4
|
+
LogIn as LucideLogIn,
|
|
5
|
+
LogOut as LucideLogOut,
|
|
6
|
+
Megaphone as LucideMegaphone,
|
|
7
|
+
RefreshCw as LucideRefreshCw,
|
|
8
|
+
Settings2 as LucideSettings2,
|
|
9
|
+
Smartphone as LucideSmartphone,
|
|
10
|
+
UserRound as LucideUserRound,
|
|
11
11
|
} from 'lucide-solid'
|
|
12
12
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
13
13
|
import { For, Show, createSignal, splitProps } from 'solid-js'
|
|
@@ -24,6 +24,18 @@ import {
|
|
|
24
24
|
DropdownMenuTrigger,
|
|
25
25
|
} from '../../ui/dropdown-menu'
|
|
26
26
|
import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
27
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
28
|
+
|
|
29
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
30
|
+
const CircleHelp = fastIcon(LucideCircleHelp)
|
|
31
|
+
const Info = fastIcon(LucideInfo)
|
|
32
|
+
const LogIn = fastIcon(LucideLogIn)
|
|
33
|
+
const LogOut = fastIcon(LucideLogOut)
|
|
34
|
+
const Megaphone = fastIcon(LucideMegaphone)
|
|
35
|
+
const RefreshCw = fastIcon(LucideRefreshCw)
|
|
36
|
+
const Settings2 = fastIcon(LucideSettings2)
|
|
37
|
+
const Smartphone = fastIcon(LucideSmartphone)
|
|
38
|
+
const UserRound = fastIcon(LucideUserRound)
|
|
27
39
|
|
|
28
40
|
/**
|
|
29
41
|
* AccountMenu.
|
|
@@ -5,11 +5,14 @@ import {
|
|
|
5
5
|
createSignal,
|
|
6
6
|
createUniqueId,
|
|
7
7
|
splitProps,
|
|
8
|
+
type ComponentProps,
|
|
8
9
|
type JSX,
|
|
9
10
|
type ValidComponent,
|
|
10
11
|
} from 'solid-js'
|
|
11
12
|
import { callHandler } from '../../../lib/events'
|
|
12
|
-
import {
|
|
13
|
+
import { Polymorphic } from '@kobalte/core/polymorphic'
|
|
14
|
+
import { buttonVariants, type ButtonProps } from '../../ui/button'
|
|
15
|
+
import { cn } from '../../../lib/utils'
|
|
13
16
|
import { Spinner } from '../../ui/spinner'
|
|
14
17
|
import { createDeferredTooltip, Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
15
18
|
|
|
@@ -120,7 +123,6 @@ export function ActionButton<T extends ValidComponent = 'button'>(props: ActionB
|
|
|
120
123
|
})
|
|
121
124
|
const [tooltipSuppression, setTooltipSuppression] = createSignal<'pointer' | 'focus' | null>(null)
|
|
122
125
|
const forwarded = rest as Record<string, unknown>
|
|
123
|
-
const PolymorphicButton = Button as (buttonProps: ButtonProps<T>) => JSX.Element
|
|
124
126
|
|
|
125
127
|
// One props object for the life of the button. Each value is a getter, so it stays
|
|
126
128
|
// reactive per key, and the handlers are created once and read the caller's handler
|
|
@@ -132,19 +134,23 @@ export function ActionButton<T extends ValidComponent = 'button'>(props: ActionB
|
|
|
132
134
|
get 'data-slot'() {
|
|
133
135
|
return (forwarded['data-slot'] as string | undefined) ?? 'action-button'
|
|
134
136
|
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
get size() {
|
|
139
|
-
return local.size
|
|
140
|
-
},
|
|
141
|
-
get touchTarget() {
|
|
142
|
-
return local.touchTarget
|
|
143
|
-
},
|
|
137
|
+
// Button's own class, computed here: rendering Polymorphic directly saves a
|
|
138
|
+
// component layer and a splitProps over every key, on every action button.
|
|
144
139
|
get class() {
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
return cn(
|
|
141
|
+
buttonVariants({
|
|
142
|
+
variant: local.variant,
|
|
143
|
+
size: local.size,
|
|
144
|
+
touchTarget: local.touchTarget,
|
|
145
|
+
}),
|
|
146
|
+
local.class,
|
|
147
|
+
local.tooltip && disabled() && 'aria-disabled:pointer-events-auto'
|
|
148
|
+
)
|
|
149
|
+
},
|
|
150
|
+
// As Button sets it: a custom component that renders a native button inside a
|
|
151
|
+
// form must not submit by accident. A caller's own type still wins.
|
|
152
|
+
get type() {
|
|
153
|
+
return (forwarded.type as string | undefined) ?? 'button'
|
|
148
154
|
},
|
|
149
155
|
get disabled() {
|
|
150
156
|
return disabled() && !local.tooltip
|
|
@@ -206,8 +212,13 @@ export function ActionButton<T extends ValidComponent = 'button'>(props: ActionB
|
|
|
206
212
|
onClickCapture: forwarded.onClickCapture
|
|
207
213
|
? guardedClick(() => forwarded.onClickCapture, disabled)
|
|
208
214
|
: undefined,
|
|
209
|
-
|
|
210
|
-
'
|
|
215
|
+
// Only when the caller uses them: each is a native listener on every button.
|
|
216
|
+
'on:click': forwarded['on:click']
|
|
217
|
+
? guardedClick(() => forwarded['on:click'], disabled)
|
|
218
|
+
: undefined,
|
|
219
|
+
'oncapture:click': forwarded['oncapture:click']
|
|
220
|
+
? guardedClick(() => forwarded['oncapture:click'], disabled)
|
|
221
|
+
: undefined,
|
|
211
222
|
})
|
|
212
223
|
|
|
213
224
|
const contents = () => (
|
|
@@ -221,12 +232,18 @@ export function ActionButton<T extends ValidComponent = 'button'>(props: ActionB
|
|
|
221
232
|
|
|
222
233
|
return (
|
|
223
234
|
<>
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
235
|
+
{/* A native button, the common case, is written directly: Polymorphic goes
|
|
236
|
+
through Dynamic, a memo and a component per button. */}
|
|
237
|
+
<Show
|
|
238
|
+
when={local.as === undefined || local.as === 'button'}
|
|
239
|
+
fallback={
|
|
240
|
+
<Polymorphic as={local.as} {...(buttonProps as ComponentProps<'button'>)}>
|
|
241
|
+
{contents()}
|
|
242
|
+
</Polymorphic>
|
|
243
|
+
}
|
|
227
244
|
>
|
|
228
|
-
{contents()}
|
|
229
|
-
</
|
|
245
|
+
<button {...(buttonProps as ComponentProps<'button'>)}>{contents()}</button>
|
|
246
|
+
</Show>
|
|
230
247
|
<Show when={deferred.armed() && local.tooltip}>
|
|
231
248
|
{(tooltipSlot) => (
|
|
232
249
|
<Tooltip
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// Pinned mode-card, accent-swatch, and glass-chip composition. Kobalte replaces
|
|
25
25
|
// the app port's manual roving focus; it does not replace the donor hierarchy.
|
|
26
26
|
import { RadioGroup as Radio } from '@kobalte/core/radio-group'
|
|
27
|
-
import { Monitor, Moon, Sun } from 'lucide-solid'
|
|
27
|
+
import { Monitor as LucideMonitor, Moon as LucideMoon, Sun as LucideSun } from 'lucide-solid'
|
|
28
28
|
import { For, Show } from 'solid-js'
|
|
29
29
|
import { isThemeAccentId } from '../../../lib/theme-accents'
|
|
30
30
|
import { THEME_DEFAULT_ID } from '../../../lib/theme-defaults'
|
|
@@ -32,6 +32,12 @@ import { AccentPicker, isCustomAccentValue } from '../accent-picker'
|
|
|
32
32
|
import { AccentSwatchGroups } from './accent-swatch-groups'
|
|
33
33
|
import type { AppearanceEditorProps } from './appearance-types'
|
|
34
34
|
import { ThemeMiniature, ThemeMiniatureSplit } from './theme-preview'
|
|
35
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
36
|
+
|
|
37
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
38
|
+
const Monitor = fastIcon(LucideMonitor)
|
|
39
|
+
const Moon = fastIcon(LucideMoon)
|
|
40
|
+
const Sun = fastIcon(LucideSun)
|
|
35
41
|
|
|
36
42
|
const MODES = [
|
|
37
43
|
{ value: 'system', label: 'System' },
|
|
@@ -31,7 +31,12 @@
|
|
|
31
31
|
* GPUI globals and app-specific storage/native authority. Save/Cancel/Reset and
|
|
32
32
|
* custom accent/reduced-transparency are accepted Adea divergences (#425).
|
|
33
33
|
*/
|
|
34
|
-
import {
|
|
34
|
+
import {
|
|
35
|
+
EyeOff as LucideEyeOff,
|
|
36
|
+
Palette as LucidePalette,
|
|
37
|
+
PanelsTopLeft as LucidePanelsTopLeft,
|
|
38
|
+
SlidersHorizontal as LucideSlidersHorizontal,
|
|
39
|
+
} from 'lucide-solid'
|
|
35
40
|
import { Show, createSignal, createUniqueId } from 'solid-js'
|
|
36
41
|
import { cn } from '../../../lib/utils'
|
|
37
42
|
import { ActionButton } from '../action-button'
|
|
@@ -55,6 +60,13 @@ import {
|
|
|
55
60
|
import type { AppearanceEditorProps, AppearancePopoverProps } from './appearance-types'
|
|
56
61
|
import { ModeChoices, AccentChoices, GlassChoices, isCustomAccent } from './appearance-choices'
|
|
57
62
|
import { SettingsRow, TerminalRow, ThemeRow } from './appearance-rows'
|
|
63
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
64
|
+
|
|
65
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
66
|
+
const EyeOff = fastIcon(LucideEyeOff)
|
|
67
|
+
const Palette = fastIcon(LucidePalette)
|
|
68
|
+
const PanelsTopLeft = fastIcon(LucidePanelsTopLeft)
|
|
69
|
+
const SlidersHorizontal = fastIcon(LucideSlidersHorizontal)
|
|
58
70
|
|
|
59
71
|
/**
|
|
60
72
|
* A live editor whose persistence and preview authority belong to its host.
|
|
@@ -28,7 +28,12 @@
|
|
|
28
28
|
// the menu sizes to that content instead of clipping it at the trigger width.
|
|
29
29
|
import type { AdeaTheme, AdeaThemeRecord } from '@adea-ai/themes'
|
|
30
30
|
import { For, Show, createMemo, createSignal, onCleanup, type JSX } from 'solid-js'
|
|
31
|
-
import {
|
|
31
|
+
import {
|
|
32
|
+
ChevronDown as LucideChevronDown,
|
|
33
|
+
Moon as LucideMoon,
|
|
34
|
+
SquareTerminal as LucideSquareTerminal,
|
|
35
|
+
Sun as LucideSun,
|
|
36
|
+
} from 'lucide-solid'
|
|
32
37
|
import { cn } from '../../../lib/utils'
|
|
33
38
|
import { THEME_DEFAULT_ID } from '../../../lib/theme-defaults'
|
|
34
39
|
import { Button } from '../../ui/button'
|
|
@@ -41,6 +46,13 @@ import {
|
|
|
41
46
|
tabStopAt,
|
|
42
47
|
} from '../../ui/dropdown-menu/dropdown-menu'
|
|
43
48
|
import { PalettePreview, ThemeMenuPreview } from './theme-preview'
|
|
49
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
50
|
+
|
|
51
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
52
|
+
const ChevronDown = fastIcon(LucideChevronDown)
|
|
53
|
+
const Moon = fastIcon(LucideMoon)
|
|
54
|
+
const SquareTerminal = fastIcon(LucideSquareTerminal)
|
|
55
|
+
const Sun = fastIcon(LucideSun)
|
|
44
56
|
|
|
45
57
|
export function SettingsRow(props: {
|
|
46
58
|
title: string
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
BookOpen as LucideBookOpen,
|
|
3
|
+
ChevronDown as LucideChevronDown,
|
|
4
|
+
Code2 as LucideCode2,
|
|
5
|
+
PanelsTopLeft as LucidePanelsTopLeft,
|
|
6
|
+
} from 'lucide-solid'
|
|
2
7
|
import { For, createMemo, createSignal, createUniqueId } from 'solid-js'
|
|
3
8
|
import { DEFAULT_FONT_ID, fontOptions } from '../../../lib/font-catalog'
|
|
4
9
|
import { Button } from '../../ui/button'
|
|
@@ -21,6 +26,13 @@ import {
|
|
|
21
26
|
type AppearanceEditorFontFamilyId,
|
|
22
27
|
type AppearanceEditorFontSettings,
|
|
23
28
|
} from '../../../lib/appearance-font-settings'
|
|
29
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
30
|
+
|
|
31
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
32
|
+
const BookOpen = fastIcon(LucideBookOpen)
|
|
33
|
+
const ChevronDown = fastIcon(LucideChevronDown)
|
|
34
|
+
const Code2 = fastIcon(LucideCode2)
|
|
35
|
+
const PanelsTopLeft = fastIcon(LucidePanelsTopLeft)
|
|
24
36
|
|
|
25
37
|
export type AppearanceFontSettingsGroupProps = {
|
|
26
38
|
settings: AppearanceEditorFontSettings
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { createUniqueId, For, onCleanup, Show, type JSX } from 'solid-js'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ChevronDown as LucideChevronDown,
|
|
4
|
+
ChevronRight as LucideChevronRight,
|
|
5
|
+
ChevronUp as LucideChevronUp,
|
|
6
|
+
} from 'lucide-solid'
|
|
3
7
|
import { keyedRows } from '../../../lib/keyed-rows'
|
|
4
8
|
import { Badge } from '../../ui/badge'
|
|
5
9
|
import { Button } from '../../ui/button'
|
|
6
10
|
import { Skeleton } from '../../ui/skeleton'
|
|
7
11
|
import type { CatalogBrowserEntry, CatalogBrowserGroup as CatalogGroup } from './catalog-types'
|
|
12
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
13
|
+
|
|
14
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
15
|
+
const ChevronDown = fastIcon(LucideChevronDown)
|
|
16
|
+
const ChevronRight = fastIcon(LucideChevronRight)
|
|
17
|
+
const ChevronUp = fastIcon(LucideChevronUp)
|
|
8
18
|
|
|
9
19
|
export function CatalogLoadingState(props: { label: string }) {
|
|
10
20
|
return (
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { createEffect, createMemo, createSignal, For, onCleanup, Show } from 'solid-js'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ArrowLeft as LucideArrowLeft,
|
|
4
|
+
Blocks as LucideBlocks,
|
|
5
|
+
Search as LucideSearch,
|
|
6
|
+
} from 'lucide-solid'
|
|
3
7
|
import { MD_BREAKPOINT } from '../../../lib/breakpoints'
|
|
4
8
|
import { keyedRows } from '../../../lib/keyed-rows'
|
|
5
9
|
import { Button } from '../../ui/button'
|
|
@@ -17,6 +21,12 @@ import { ScrollArea } from '../../ui/scroll-area'
|
|
|
17
21
|
import { cn } from '../../../lib/utils'
|
|
18
22
|
import { CatalogBrowserGroup, CatalogLoadingState } from './catalog-browser-group'
|
|
19
23
|
import type { CatalogBrowserProps } from './catalog-types'
|
|
24
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
25
|
+
|
|
26
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
27
|
+
const ArrowLeft = fastIcon(LucideArrowLeft)
|
|
28
|
+
const Blocks = fastIcon(LucideBlocks)
|
|
29
|
+
const Search = fastIcon(LucideSearch)
|
|
20
30
|
|
|
21
31
|
const WIDE_QUERY = `(min-width: ${MD_BREAKPOINT})`
|
|
22
32
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListOrdered } from 'lucide-solid'
|
|
1
|
+
import { ListOrdered as LucideListOrdered } from 'lucide-solid'
|
|
2
2
|
import { children as resolveChildren, splitProps, type ComponentProps, type JSX } from 'solid-js'
|
|
3
3
|
import { cn } from '../../../lib/utils'
|
|
4
4
|
import { Badge } from '../../ui/badge'
|
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
type TraceLineProps,
|
|
11
11
|
type WorkStatus,
|
|
12
12
|
} from '../../ui/trace'
|
|
13
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
14
|
+
|
|
15
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
16
|
+
const ListOrdered = fastIcon(LucideListOrdered)
|
|
13
17
|
|
|
14
18
|
/**
|
|
15
19
|
* ChainOfThought.
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CircleAlert as LucideCircleAlert,
|
|
3
|
+
Info as LucideInfo,
|
|
4
|
+
TriangleAlert as LucideTriangleAlert,
|
|
5
|
+
} from 'lucide-solid'
|
|
2
6
|
import { Show, splitProps, type ComponentProps, type JSX } from 'solid-js'
|
|
3
7
|
import { Dynamic } from 'solid-js/web'
|
|
4
8
|
import { cn } from '../../../lib/utils'
|
|
5
9
|
import { cva, type VariantProps } from '../../../lib/variants'
|
|
10
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
11
|
+
|
|
12
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
13
|
+
const CircleAlert = fastIcon(LucideCircleAlert)
|
|
14
|
+
const Info = fastIcon(LucideInfo)
|
|
15
|
+
const TriangleAlert = fastIcon(LucideTriangleAlert)
|
|
6
16
|
|
|
7
17
|
/**
|
|
8
18
|
* Chat.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Flag } from 'lucide-solid'
|
|
1
|
+
import { Flag as LucideFlag } from 'lucide-solid'
|
|
2
2
|
import {
|
|
3
3
|
createEffect,
|
|
4
4
|
createMemo,
|
|
@@ -33,6 +33,10 @@ import {
|
|
|
33
33
|
restoreDialogCopy,
|
|
34
34
|
type CheckpointState,
|
|
35
35
|
} from './checkpoint-model'
|
|
36
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
37
|
+
|
|
38
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
39
|
+
const Flag = fastIcon(LucideFlag)
|
|
36
40
|
|
|
37
41
|
/**
|
|
38
42
|
* Checkpoint.
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Ban as LucideBan,
|
|
3
|
+
Check as LucideCheck,
|
|
4
|
+
Clock as LucideClock,
|
|
5
|
+
Lock as LucideLock,
|
|
6
|
+
ShieldQuestion as LucideShieldQuestion,
|
|
7
|
+
} from 'lucide-solid'
|
|
2
8
|
import {
|
|
3
9
|
createEffect,
|
|
4
10
|
createSignal,
|
|
@@ -21,6 +27,14 @@ import {
|
|
|
21
27
|
settleDecision,
|
|
22
28
|
type ConfirmationState,
|
|
23
29
|
} from './confirmation-model'
|
|
30
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
31
|
+
|
|
32
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
33
|
+
const Ban = fastIcon(LucideBan)
|
|
34
|
+
const Check = fastIcon(LucideCheck)
|
|
35
|
+
const Clock = fastIcon(LucideClock)
|
|
36
|
+
const Lock = fastIcon(LucideLock)
|
|
37
|
+
const ShieldQuestion = fastIcon(LucideShieldQuestion)
|
|
24
38
|
|
|
25
39
|
/**
|
|
26
40
|
* Confirmation.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
OctagonAlert as LucideOctagonAlert,
|
|
3
|
+
TriangleAlert as LucideTriangleAlert,
|
|
4
|
+
} from 'lucide-solid'
|
|
2
5
|
import { For, Show, splitProps, type ComponentProps } from 'solid-js'
|
|
3
6
|
import { cn } from '../../../lib/utils'
|
|
4
7
|
import { Button } from '../../ui/button'
|
|
@@ -18,6 +21,11 @@ import {
|
|
|
18
21
|
type ContextFigures,
|
|
19
22
|
type ContextLevel,
|
|
20
23
|
} from './context-model'
|
|
24
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
25
|
+
|
|
26
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
27
|
+
const OctagonAlert = fastIcon(LucideOctagonAlert)
|
|
28
|
+
const TriangleAlert = fastIcon(LucideTriangleAlert)
|
|
21
29
|
|
|
22
30
|
/**
|
|
23
31
|
* Context.
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
File as LucideFile,
|
|
3
|
+
Folder as LucideFolder,
|
|
4
|
+
FolderOpen as LucideFolderOpen,
|
|
5
|
+
} from 'lucide-solid'
|
|
2
6
|
import {
|
|
3
7
|
createComputed,
|
|
4
8
|
createMemo,
|
|
@@ -32,6 +36,12 @@ import {
|
|
|
32
36
|
type FileTreeNode,
|
|
33
37
|
type FileTreeRow,
|
|
34
38
|
} from './build-file-tree'
|
|
39
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
40
|
+
|
|
41
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
42
|
+
const File = fastIcon(LucideFile)
|
|
43
|
+
const Folder = fastIcon(LucideFolder)
|
|
44
|
+
const FolderOpen = fastIcon(LucideFolderOpen)
|
|
35
45
|
|
|
36
46
|
/**
|
|
37
47
|
* FileTree.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { For, Show } from 'solid-js'
|
|
2
|
-
import { ExternalLink } from 'lucide-solid'
|
|
2
|
+
import { ExternalLink as LucideExternalLink } from 'lucide-solid'
|
|
3
3
|
import { createExternalLinkOpener } from '../../../lib/external-link'
|
|
4
4
|
import { cn } from '../../../lib/utils'
|
|
5
5
|
import { ActionButton } from '../action-button'
|
|
@@ -7,6 +7,10 @@ import { Alert, AlertDescription } from '../../ui/alert'
|
|
|
7
7
|
import { Card, CardContent, CardHeader } from '../../ui/card'
|
|
8
8
|
import { Kbd, KbdGroup } from '../../ui/kbd'
|
|
9
9
|
import { Heading } from '../../ui/typography'
|
|
10
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
11
|
+
|
|
12
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
13
|
+
const ExternalLink = fastIcon(LucideExternalLink)
|
|
10
14
|
|
|
11
15
|
export type HelpShortcut = { label: string; keys: readonly string[] }
|
|
12
16
|
export type HelpLink = { label: string; description?: string; url: string }
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
ChevronDown as LucideChevronDown,
|
|
3
|
+
ImageUp as LucideImageUp,
|
|
4
|
+
Trash2 as LucideTrash2,
|
|
5
|
+
} from 'lucide-solid'
|
|
3
6
|
import type { JSX } from 'solid-js'
|
|
4
7
|
import { For, Show, createSignal, createUniqueId, splitProps } from 'solid-js'
|
|
5
8
|
import { Dynamic } from 'solid-js/web'
|
|
@@ -14,6 +17,12 @@ import {
|
|
|
14
17
|
MARK_IMAGE_MAX_SOURCE_BYTES,
|
|
15
18
|
} from './image-data-url'
|
|
16
19
|
import { resolveShellIcon, shellIconEntries, shellIconLabel } from './shell-icons'
|
|
20
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
21
|
+
|
|
22
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
23
|
+
const ChevronDown = fastIcon(LucideChevronDown)
|
|
24
|
+
const ImageUp = fastIcon(LucideImageUp)
|
|
25
|
+
const Trash2 = fastIcon(LucideTrash2)
|
|
17
26
|
|
|
18
27
|
/**
|
|
19
28
|
* IconPicker.
|
|
@@ -21,8 +30,8 @@ import { resolveShellIcon, shellIconEntries, shellIconLabel } from './shell-icon
|
|
|
21
30
|
* The control behind "choose an icon" for a workspace or a project: a grid of
|
|
22
31
|
* curated glyphs, and optionally an uploaded picture in their place.
|
|
23
32
|
*
|
|
24
|
-
* It is a single-choice group. The glyph grid is
|
|
25
|
-
* arrow keys move the choice and Tab enters and leaves the grid as one stop,
|
|
33
|
+
* It is a single-choice group. The glyph grid is native radio inputs sharing a
|
|
34
|
+
* name, so arrow keys move the choice and Tab enters and leaves the grid as one stop,
|
|
26
35
|
* which is the contract a 56-cell grid needs to stay usable from a keyboard. An
|
|
27
36
|
* uploaded image is a separate state, not a 57th cell: while `image` is set no
|
|
28
37
|
* glyph is checked, and choosing a glyph asks the caller to drop the image, so
|
|
@@ -56,6 +65,17 @@ export function IconPicker(props: IconPickerProps) {
|
|
|
56
65
|
const [problem, setProblem] = createSignal<string>()
|
|
57
66
|
const uploads = createLatestAction()
|
|
58
67
|
const [fileInput, setFileInput] = createSignal<HTMLInputElement>()
|
|
68
|
+
const [group, setGroup] = createSignal<HTMLDivElement>()
|
|
69
|
+
const groupName = createUniqueId()
|
|
70
|
+
// Controlled: the checked glyph is the host's value, and none while an image is chosen.
|
|
71
|
+
const checkedKey = () => (props.image ? '' : (props.value ?? ''))
|
|
72
|
+
// A click checks its radio natively before the host answers. When the host keeps
|
|
73
|
+
// its value (or answers later), put the DOM back on the controlled key.
|
|
74
|
+
const syncChecked = () => {
|
|
75
|
+
const key = checkedKey()
|
|
76
|
+
for (const radio of group()?.querySelectorAll<HTMLInputElement>('input[type="radio"]') ?? [])
|
|
77
|
+
radio.checked = radio.value === key
|
|
78
|
+
}
|
|
59
79
|
|
|
60
80
|
const upload = async (file: File | undefined) => {
|
|
61
81
|
if (!file || !props.onImageChange) return
|
|
@@ -144,43 +164,51 @@ export function IconPicker(props: IconPickerProps) {
|
|
|
144
164
|
to a square.
|
|
145
165
|
</p>
|
|
146
166
|
</Show>
|
|
147
|
-
<
|
|
167
|
+
<div
|
|
168
|
+
ref={setGroup}
|
|
169
|
+
role="radiogroup"
|
|
148
170
|
aria-label={props.label}
|
|
149
|
-
|
|
150
|
-
disabled={props.disabled}
|
|
151
|
-
onChange={(key) => {
|
|
152
|
-
if (key) props.onValueChange(key)
|
|
153
|
-
}}
|
|
171
|
+
aria-disabled={props.disabled || undefined}
|
|
154
172
|
class="grid grid-cols-[repeat(auto-fill,minmax(2.5rem,1fr))] gap-1.5"
|
|
155
173
|
>
|
|
156
174
|
<For each={shellIconEntries}>
|
|
157
175
|
{(entry) => {
|
|
158
176
|
const Icon = resolveShellIcon(entry.key)
|
|
177
|
+
const isDefault = () => entry.key === props.defaultKey
|
|
159
178
|
return (
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
<label
|
|
180
|
+
title={isDefault() ? `${entry.label} (default)` : entry.label}
|
|
181
|
+
class={cn(
|
|
182
|
+
'flex size-10 cursor-pointer items-center justify-center rounded-lg border border-border bg-card text-muted-foreground',
|
|
183
|
+
'transition-colors ease-out',
|
|
184
|
+
'hover:bg-surface-hover hover:text-foreground',
|
|
185
|
+
'has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-primary-subtle',
|
|
186
|
+
'has-checked:border-primary has-checked:bg-primary-subtle has-checked:text-primary',
|
|
187
|
+
'has-disabled:pointer-events-none has-disabled:opacity-50'
|
|
188
|
+
)}
|
|
189
|
+
>
|
|
190
|
+
<input
|
|
191
|
+
type="radio"
|
|
192
|
+
name={groupName}
|
|
193
|
+
value={entry.key}
|
|
194
|
+
class="sr-only"
|
|
195
|
+
checked={checkedKey() === entry.key}
|
|
196
|
+
disabled={props.disabled}
|
|
197
|
+
onChange={() => {
|
|
198
|
+
props.onValueChange(entry.key)
|
|
199
|
+
syncChecked()
|
|
200
|
+
}}
|
|
201
|
+
/>
|
|
202
|
+
<Icon class="size-5" aria-hidden="true" />
|
|
203
|
+
<span class="sr-only">
|
|
204
|
+
{entry.label}
|
|
205
|
+
{isDefault() ? ' (default)' : ''}
|
|
206
|
+
</span>
|
|
207
|
+
</label>
|
|
180
208
|
)
|
|
181
209
|
}}
|
|
182
210
|
</For>
|
|
183
|
-
</
|
|
211
|
+
</div>
|
|
184
212
|
</div>
|
|
185
213
|
)
|
|
186
214
|
}
|