@adea-ai/ui 0.153.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/NOTICE +10 -1
- 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 +15 -1
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +271 -33
- 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/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +46 -42
- package/dist/components/layout/side-rail/side-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 +16 -13
- 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-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +10 -10
- package/dist/components/ui/dialog/dialog-layer.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/kbd/kbd.d.ts +23 -10
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +42 -11
- package/dist/components/ui/kbd/kbd.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/lib/overlay.d.ts +1 -1
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +1 -1
- package/dist/lib/overlay.js.map +1 -1
- 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/model-selector.json +1 -0
- package/dist/r/plan.json +2 -1
- package/dist/r/queue.json +2 -1
- package/dist/r/registry.json +33 -9
- package/dist/r/scene-controls.json +2 -1
- package/dist/r/side-rail.json +1 -0
- 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 +197 -11
- 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/side-rail/side-rail.tsx +16 -19
- 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 +8 -8
- 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-layer.tsx +16 -18
- 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/kbd/kbd.tsx +53 -12
- 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/src/lib/overlay.ts +1 -1
- package/dist/r/subagent.json +2 -1
- package/dist/r/tool.json +2 -1
- package/dist/r/tooltip.json +5 -0
- package/dist/r/top-bar.json +1 -0
- package/dist/r/trace.json +0 -1
- package/package.json +1 -1
- package/registry.json +33 -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 +197 -11
- 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/side-rail/side-rail.tsx +16 -19
- 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 +8 -8
- 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-layer.tsx +16 -18
- 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/kbd/kbd.tsx +53 -12
- 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/lib/overlay.ts +1 -1
- package/src/lint/index.ts +199 -0
|
@@ -1,65 +1,127 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Anchor,
|
|
3
|
-
Bot,
|
|
4
|
-
Box,
|
|
5
|
-
BookOpen,
|
|
6
|
-
Brain,
|
|
7
|
-
Briefcase,
|
|
8
|
-
Building2,
|
|
9
|
-
Camera,
|
|
10
|
-
ChartColumn,
|
|
11
|
-
Cloud,
|
|
12
|
-
Code,
|
|
13
|
-
Coffee,
|
|
14
|
-
Compass,
|
|
15
|
-
Cpu,
|
|
16
|
-
Database,
|
|
17
|
-
Dumbbell,
|
|
18
|
-
Flag,
|
|
19
|
-
Flame,
|
|
20
|
-
FlaskConical,
|
|
21
|
-
Folder,
|
|
22
|
-
FolderGit2,
|
|
23
|
-
Gamepad2,
|
|
24
|
-
Gem,
|
|
25
|
-
Globe,
|
|
26
|
-
GraduationCap,
|
|
27
|
-
Hammer,
|
|
28
|
-
Heart,
|
|
29
|
-
House,
|
|
30
|
-
Key,
|
|
31
|
-
Layers,
|
|
32
|
-
Leaf,
|
|
33
|
-
Lightbulb,
|
|
2
|
+
Anchor as LucideAnchor,
|
|
3
|
+
Bot as LucideBot,
|
|
4
|
+
Box as LucideBox,
|
|
5
|
+
BookOpen as LucideBookOpen,
|
|
6
|
+
Brain as LucideBrain,
|
|
7
|
+
Briefcase as LucideBriefcase,
|
|
8
|
+
Building2 as LucideBuilding2,
|
|
9
|
+
Camera as LucideCamera,
|
|
10
|
+
ChartColumn as LucideChartColumn,
|
|
11
|
+
Cloud as LucideCloud,
|
|
12
|
+
Code as LucideCode,
|
|
13
|
+
Coffee as LucideCoffee,
|
|
14
|
+
Compass as LucideCompass,
|
|
15
|
+
Cpu as LucideCpu,
|
|
16
|
+
Database as LucideDatabase,
|
|
17
|
+
Dumbbell as LucideDumbbell,
|
|
18
|
+
Flag as LucideFlag,
|
|
19
|
+
Flame as LucideFlame,
|
|
20
|
+
FlaskConical as LucideFlaskConical,
|
|
21
|
+
Folder as LucideFolder,
|
|
22
|
+
FolderGit2 as LucideFolderGit2,
|
|
23
|
+
Gamepad2 as LucideGamepad2,
|
|
24
|
+
Gem as LucideGem,
|
|
25
|
+
Globe as LucideGlobe,
|
|
26
|
+
GraduationCap as LucideGraduationCap,
|
|
27
|
+
Hammer as LucideHammer,
|
|
28
|
+
Heart as LucideHeart,
|
|
29
|
+
House as LucideHouse,
|
|
30
|
+
Key as LucideKey,
|
|
31
|
+
Layers as LucideLayers,
|
|
32
|
+
Leaf as LucideLeaf,
|
|
33
|
+
Lightbulb as LucideLightbulb,
|
|
34
34
|
type LucideIcon,
|
|
35
|
-
Map as
|
|
36
|
-
Megaphone,
|
|
37
|
-
MessagesSquare,
|
|
38
|
-
Moon,
|
|
39
|
-
Mountain,
|
|
40
|
-
Music,
|
|
41
|
-
Newspaper,
|
|
42
|
-
Package,
|
|
43
|
-
Palette,
|
|
44
|
-
Plane,
|
|
45
|
-
Puzzle,
|
|
46
|
-
Rocket,
|
|
47
|
-
Server,
|
|
48
|
-
Shapes,
|
|
49
|
-
Shield,
|
|
50
|
-
ShoppingCart,
|
|
51
|
-
Sparkles,
|
|
52
|
-
Star,
|
|
53
|
-
Sun,
|
|
54
|
-
Target,
|
|
55
|
-
Terminal,
|
|
56
|
-
Trophy,
|
|
57
|
-
Users,
|
|
58
|
-
Utensils,
|
|
59
|
-
Wallet,
|
|
60
|
-
Wrench,
|
|
61
|
-
Zap,
|
|
35
|
+
Map as LucideMapIcon,
|
|
36
|
+
Megaphone as LucideMegaphone,
|
|
37
|
+
MessagesSquare as LucideMessagesSquare,
|
|
38
|
+
Moon as LucideMoon,
|
|
39
|
+
Mountain as LucideMountain,
|
|
40
|
+
Music as LucideMusic,
|
|
41
|
+
Newspaper as LucideNewspaper,
|
|
42
|
+
Package as LucidePackage,
|
|
43
|
+
Palette as LucidePalette,
|
|
44
|
+
Plane as LucidePlane,
|
|
45
|
+
Puzzle as LucidePuzzle,
|
|
46
|
+
Rocket as LucideRocket,
|
|
47
|
+
Server as LucideServer,
|
|
48
|
+
Shapes as LucideShapes,
|
|
49
|
+
Shield as LucideShield,
|
|
50
|
+
ShoppingCart as LucideShoppingCart,
|
|
51
|
+
Sparkles as LucideSparkles,
|
|
52
|
+
Star as LucideStar,
|
|
53
|
+
Sun as LucideSun,
|
|
54
|
+
Target as LucideTarget,
|
|
55
|
+
Terminal as LucideTerminal,
|
|
56
|
+
Trophy as LucideTrophy,
|
|
57
|
+
Users as LucideUsers,
|
|
58
|
+
Utensils as LucideUtensils,
|
|
59
|
+
Wallet as LucideWallet,
|
|
60
|
+
Wrench as LucideWrench,
|
|
61
|
+
Zap as LucideZap,
|
|
62
62
|
} from 'lucide-solid'
|
|
63
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
64
|
+
|
|
65
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
66
|
+
const Anchor = fastIcon(LucideAnchor)
|
|
67
|
+
const Bot = fastIcon(LucideBot)
|
|
68
|
+
const Box = fastIcon(LucideBox)
|
|
69
|
+
const BookOpen = fastIcon(LucideBookOpen)
|
|
70
|
+
const Brain = fastIcon(LucideBrain)
|
|
71
|
+
const Briefcase = fastIcon(LucideBriefcase)
|
|
72
|
+
const Building2 = fastIcon(LucideBuilding2)
|
|
73
|
+
const Camera = fastIcon(LucideCamera)
|
|
74
|
+
const ChartColumn = fastIcon(LucideChartColumn)
|
|
75
|
+
const Cloud = fastIcon(LucideCloud)
|
|
76
|
+
const Code = fastIcon(LucideCode)
|
|
77
|
+
const Coffee = fastIcon(LucideCoffee)
|
|
78
|
+
const Compass = fastIcon(LucideCompass)
|
|
79
|
+
const Cpu = fastIcon(LucideCpu)
|
|
80
|
+
const Database = fastIcon(LucideDatabase)
|
|
81
|
+
const Dumbbell = fastIcon(LucideDumbbell)
|
|
82
|
+
const Flag = fastIcon(LucideFlag)
|
|
83
|
+
const Flame = fastIcon(LucideFlame)
|
|
84
|
+
const FlaskConical = fastIcon(LucideFlaskConical)
|
|
85
|
+
const Folder = fastIcon(LucideFolder)
|
|
86
|
+
const FolderGit2 = fastIcon(LucideFolderGit2)
|
|
87
|
+
const Gamepad2 = fastIcon(LucideGamepad2)
|
|
88
|
+
const Gem = fastIcon(LucideGem)
|
|
89
|
+
const Globe = fastIcon(LucideGlobe)
|
|
90
|
+
const GraduationCap = fastIcon(LucideGraduationCap)
|
|
91
|
+
const Hammer = fastIcon(LucideHammer)
|
|
92
|
+
const Heart = fastIcon(LucideHeart)
|
|
93
|
+
const House = fastIcon(LucideHouse)
|
|
94
|
+
const Key = fastIcon(LucideKey)
|
|
95
|
+
const Layers = fastIcon(LucideLayers)
|
|
96
|
+
const Leaf = fastIcon(LucideLeaf)
|
|
97
|
+
const Lightbulb = fastIcon(LucideLightbulb)
|
|
98
|
+
const MapIcon = fastIcon(LucideMapIcon)
|
|
99
|
+
const Megaphone = fastIcon(LucideMegaphone)
|
|
100
|
+
const MessagesSquare = fastIcon(LucideMessagesSquare)
|
|
101
|
+
const Moon = fastIcon(LucideMoon)
|
|
102
|
+
const Mountain = fastIcon(LucideMountain)
|
|
103
|
+
const Music = fastIcon(LucideMusic)
|
|
104
|
+
const Newspaper = fastIcon(LucideNewspaper)
|
|
105
|
+
const Package = fastIcon(LucidePackage)
|
|
106
|
+
const Palette = fastIcon(LucidePalette)
|
|
107
|
+
const Plane = fastIcon(LucidePlane)
|
|
108
|
+
const Puzzle = fastIcon(LucidePuzzle)
|
|
109
|
+
const Rocket = fastIcon(LucideRocket)
|
|
110
|
+
const Server = fastIcon(LucideServer)
|
|
111
|
+
const Shapes = fastIcon(LucideShapes)
|
|
112
|
+
const Shield = fastIcon(LucideShield)
|
|
113
|
+
const ShoppingCart = fastIcon(LucideShoppingCart)
|
|
114
|
+
const Sparkles = fastIcon(LucideSparkles)
|
|
115
|
+
const Star = fastIcon(LucideStar)
|
|
116
|
+
const Sun = fastIcon(LucideSun)
|
|
117
|
+
const Target = fastIcon(LucideTarget)
|
|
118
|
+
const Terminal = fastIcon(LucideTerminal)
|
|
119
|
+
const Trophy = fastIcon(LucideTrophy)
|
|
120
|
+
const Users = fastIcon(LucideUsers)
|
|
121
|
+
const Utensils = fastIcon(LucideUtensils)
|
|
122
|
+
const Wallet = fastIcon(LucideWallet)
|
|
123
|
+
const Wrench = fastIcon(LucideWrench)
|
|
124
|
+
const Zap = fastIcon(LucideZap)
|
|
63
125
|
|
|
64
126
|
/**
|
|
65
127
|
* The icons a workspace or a project may choose for itself.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChevronLeft, ChevronRight } from 'lucide-solid'
|
|
1
|
+
import { ChevronLeft as LucideChevronLeft, ChevronRight as LucideChevronRight } from 'lucide-solid'
|
|
2
2
|
import { createEffect, createSignal, onCleanup, Show, splitProps } from 'solid-js'
|
|
3
3
|
import { cn } from '../../../lib/utils'
|
|
4
4
|
import { ActionButton } from '../action-button'
|
|
@@ -22,6 +22,11 @@ import {
|
|
|
22
22
|
type CitationEvent,
|
|
23
23
|
type CitationMode,
|
|
24
24
|
} from './citation'
|
|
25
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
26
|
+
|
|
27
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
28
|
+
const ChevronLeft = fastIcon(LucideChevronLeft)
|
|
29
|
+
const ChevronRight = fastIcon(LucideChevronRight)
|
|
25
30
|
|
|
26
31
|
/**
|
|
27
32
|
* InlineCitation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PolymorphicProps } from '@kobalte/core/polymorphic'
|
|
2
|
-
import { Polymorphic } from '@kobalte/core/polymorphic'
|
|
3
2
|
import type { ComponentProps, JSX, ValidComponent } from 'solid-js'
|
|
4
3
|
import { Show, splitProps } from 'solid-js'
|
|
4
|
+
import { Dynamic } from 'solid-js/web'
|
|
5
5
|
import { cn } from '../../../lib/utils'
|
|
6
6
|
|
|
7
7
|
export type ListRowControlProps<T extends ValidComponent = 'div'> = PolymorphicProps<
|
|
@@ -59,11 +59,13 @@ export function ListRowControl<T extends ValidComponent = 'div'>(props: ListRowC
|
|
|
59
59
|
'children',
|
|
60
60
|
])
|
|
61
61
|
const hasClickHandler = () => Boolean(rest.onClick || rest['on:click'])
|
|
62
|
-
const rowAs = () =>
|
|
62
|
+
const rowAs = (): ValidComponent => local.as ?? (hasClickHandler() ? 'button' : 'div')
|
|
63
63
|
|
|
64
|
+
// Solid's Dynamic directly: Kobalte's Polymorphic adds a prop split and merge
|
|
65
|
+
// around the same call for every row.
|
|
64
66
|
return (
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
+
<Dynamic
|
|
68
|
+
component={rowAs()}
|
|
67
69
|
data-slot="list-row"
|
|
68
70
|
type={rowAs() === 'button' ? (local.type ?? 'button') : local.type}
|
|
69
71
|
tabIndex={local.tabIndex ?? (rowAs() === 'button' || rowAs() === 'a' ? 0 : undefined)}
|
|
@@ -132,6 +134,6 @@ export function ListRowControl<T extends ValidComponent = 'div'>(props: ListRowC
|
|
|
132
134
|
)}
|
|
133
135
|
</Show>
|
|
134
136
|
</div>
|
|
135
|
-
</
|
|
137
|
+
</Dynamic>
|
|
136
138
|
)
|
|
137
139
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { History, LoaderCircle } from 'lucide-solid'
|
|
1
|
+
import { History as LucideHistory, LoaderCircle as LucideLoaderCircle } from 'lucide-solid'
|
|
2
2
|
import { createEffect, onCleanup, Show, splitProps, createSignal, type JSX } from 'solid-js'
|
|
3
3
|
import { cn } from '../../../lib/utils'
|
|
4
4
|
import { Button } from '../../ui/button'
|
|
5
5
|
import { ConversationSurface, type ConversationSurfaceProps } from '../../conversation'
|
|
6
6
|
import { anchorIds, captureAnchor, restoreAnchor, type ScrollAnchor } from './scroll-anchor'
|
|
7
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
8
|
+
|
|
9
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
10
|
+
const History = fastIcon(LucideHistory)
|
|
11
|
+
const LoaderCircle = fastIcon(LucideLoaderCircle)
|
|
7
12
|
|
|
8
13
|
/**
|
|
9
14
|
* MessageScroller.
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Brain as LucideBrain,
|
|
3
|
+
Check as LucideCheck,
|
|
4
|
+
ChevronsUpDown as LucideChevronsUpDown,
|
|
5
|
+
} from 'lucide-solid'
|
|
2
6
|
import {
|
|
3
7
|
createEffect,
|
|
4
8
|
createMemo,
|
|
@@ -7,6 +11,7 @@ import {
|
|
|
7
11
|
For,
|
|
8
12
|
Show,
|
|
9
13
|
splitProps,
|
|
14
|
+
type JSX,
|
|
10
15
|
} from 'solid-js'
|
|
11
16
|
import { cn } from '../../../lib/utils'
|
|
12
17
|
import { Button } from '../../ui/button'
|
|
@@ -28,6 +33,7 @@ import {
|
|
|
28
33
|
DropdownMenuTrigger,
|
|
29
34
|
} from '../../ui/dropdown-menu'
|
|
30
35
|
import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover'
|
|
36
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from '../../ui/tabs'
|
|
31
37
|
import { REASON_TEXT_LIMIT, boundText } from '../../../lib/text'
|
|
32
38
|
import {
|
|
33
39
|
findModel,
|
|
@@ -38,6 +44,12 @@ import {
|
|
|
38
44
|
resolveEffort,
|
|
39
45
|
type ModelOption,
|
|
40
46
|
} from './models'
|
|
47
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
48
|
+
|
|
49
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
50
|
+
const Brain = fastIcon(LucideBrain)
|
|
51
|
+
const Check = fastIcon(LucideCheck)
|
|
52
|
+
const ChevronsUpDown = fastIcon(LucideChevronsUpDown)
|
|
41
53
|
|
|
42
54
|
/**
|
|
43
55
|
* ModelSelector.
|
|
@@ -74,6 +86,15 @@ import {
|
|
|
74
86
|
* search box, because scanning thirty rows is slower than typing four letters.
|
|
75
87
|
* Both close on choice and return focus to the trigger. Triggers use
|
|
76
88
|
* `aria-disabled` so a blocked control is still reachable and its reason read.
|
|
89
|
+
*
|
|
90
|
+
* ## Tabs
|
|
91
|
+
*
|
|
92
|
+
* `layout="tabs"` is for a list whose providers are the first choice, such as
|
|
93
|
+
* one row of harnesses. The popover opens with one tab per provider, in the
|
|
94
|
+
* order they first appear (the host's order), each drawn with `providerIcon`
|
|
95
|
+
* or the provider's initial and named by its tooltip. Under the tabs, a search
|
|
96
|
+
* box and the list cover the selected tab's models only. The tab starts on the
|
|
97
|
+
* selected model's provider. Effort stays its own menu.
|
|
77
98
|
*/
|
|
78
99
|
export type ModelSelectorProps = {
|
|
79
100
|
models: readonly ModelOption[]
|
|
@@ -89,6 +110,10 @@ export type ModelSelectorProps = {
|
|
|
89
110
|
disabledReason?: string
|
|
90
111
|
/** The group's accessible name. */
|
|
91
112
|
label?: string
|
|
113
|
+
/** `tabs`: one tab per provider above a searchable list of that provider's models. */
|
|
114
|
+
layout?: 'list' | 'tabs'
|
|
115
|
+
/** The provider's mark, drawn with `currentColor`, for the tabs and the trigger. */
|
|
116
|
+
providerIcon?: (provider: string) => JSX.Element
|
|
92
117
|
class?: string
|
|
93
118
|
}
|
|
94
119
|
|
|
@@ -102,6 +127,8 @@ export function ModelSelector(props: ModelSelectorProps) {
|
|
|
102
127
|
'searchThreshold',
|
|
103
128
|
'disabledReason',
|
|
104
129
|
'label',
|
|
130
|
+
'layout',
|
|
131
|
+
'providerIcon',
|
|
105
132
|
'class',
|
|
106
133
|
])
|
|
107
134
|
const blocked = () => local.disabledReason !== undefined
|
|
@@ -132,26 +159,41 @@ export function ModelSelector(props: ModelSelectorProps) {
|
|
|
132
159
|
}
|
|
133
160
|
>
|
|
134
161
|
<Show
|
|
135
|
-
when={
|
|
162
|
+
when={local.layout !== 'tabs'}
|
|
136
163
|
fallback={
|
|
137
|
-
<
|
|
164
|
+
<ModelTabs
|
|
138
165
|
models={local.models}
|
|
139
166
|
selected={selected()}
|
|
140
167
|
value={local.value}
|
|
141
168
|
blocked={blocked()}
|
|
142
169
|
describedBy={describedBy()}
|
|
170
|
+
providerIcon={local.providerIcon}
|
|
143
171
|
onChange={(id) => local.onChange?.(id)}
|
|
144
172
|
/>
|
|
145
173
|
}
|
|
146
174
|
>
|
|
147
|
-
<
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
175
|
+
<Show
|
|
176
|
+
when={needsSearch(local.models.length, local.searchThreshold)}
|
|
177
|
+
fallback={
|
|
178
|
+
<ModelMenu
|
|
179
|
+
models={local.models}
|
|
180
|
+
selected={selected()}
|
|
181
|
+
value={local.value}
|
|
182
|
+
blocked={blocked()}
|
|
183
|
+
describedBy={describedBy()}
|
|
184
|
+
onChange={(id) => local.onChange?.(id)}
|
|
185
|
+
/>
|
|
186
|
+
}
|
|
187
|
+
>
|
|
188
|
+
<ModelSearch
|
|
189
|
+
models={local.models}
|
|
190
|
+
selected={selected()}
|
|
191
|
+
value={local.value}
|
|
192
|
+
blocked={blocked()}
|
|
193
|
+
describedBy={describedBy()}
|
|
194
|
+
onChange={(id) => local.onChange?.(id)}
|
|
195
|
+
/>
|
|
196
|
+
</Show>
|
|
155
197
|
</Show>
|
|
156
198
|
</Show>
|
|
157
199
|
<Show when={efforts().length > 0}>
|
|
@@ -361,6 +403,150 @@ function ModelSearch(props: PickerProps) {
|
|
|
361
403
|
)
|
|
362
404
|
}
|
|
363
405
|
|
|
406
|
+
/** The provider's mark, or its initial when the host gives none. */
|
|
407
|
+
function ProviderGlyph(props: { provider: string; icon?: (provider: string) => JSX.Element }) {
|
|
408
|
+
return (
|
|
409
|
+
<Show
|
|
410
|
+
when={props.icon?.(props.provider)}
|
|
411
|
+
fallback={
|
|
412
|
+
<span aria-hidden="true" class="text-xs font-semibold uppercase">
|
|
413
|
+
{props.provider.charAt(0)}
|
|
414
|
+
</span>
|
|
415
|
+
}
|
|
416
|
+
>
|
|
417
|
+
{(icon) => (
|
|
418
|
+
<span aria-hidden="true" class="inline-flex size-4 shrink-0 items-center justify-center">
|
|
419
|
+
{icon()}
|
|
420
|
+
</span>
|
|
421
|
+
)}
|
|
422
|
+
</Show>
|
|
423
|
+
)
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
function ModelTabs(props: PickerProps & { providerIcon?: (provider: string) => JSX.Element }) {
|
|
427
|
+
const [open, setOpen] = createSignal(false)
|
|
428
|
+
const groups = createMemo(() => groupModels(props.models))
|
|
429
|
+
const inert = () => props.blocked || props.models.length === 0
|
|
430
|
+
const groupOf = (model: ModelOption | undefined) =>
|
|
431
|
+
model ? groups().find((group) => group.models.includes(model))?.provider : undefined
|
|
432
|
+
const [tab, setTab] = createSignal<string>()
|
|
433
|
+
// Each opening starts on the selected model's provider, else the first.
|
|
434
|
+
const current = () => {
|
|
435
|
+
const chosen = tab()
|
|
436
|
+
return chosen && groups().some((group) => group.provider === chosen)
|
|
437
|
+
? chosen
|
|
438
|
+
: (groupOf(props.selected) ?? groups()[0]?.provider)
|
|
439
|
+
}
|
|
440
|
+
let content: HTMLDivElement | undefined
|
|
441
|
+
const focusSearch = () =>
|
|
442
|
+
queueMicrotask(() => content?.querySelector<HTMLInputElement>('[cmdk-input]')?.focus())
|
|
443
|
+
|
|
444
|
+
createEffect(() => {
|
|
445
|
+
if (inert()) setOpen(false)
|
|
446
|
+
})
|
|
447
|
+
|
|
448
|
+
return (
|
|
449
|
+
<Popover
|
|
450
|
+
open={open()}
|
|
451
|
+
onOpenChange={(next) => {
|
|
452
|
+
setOpen(next && !inert())
|
|
453
|
+
if (!next) setTab(undefined)
|
|
454
|
+
}}
|
|
455
|
+
placement="top-start"
|
|
456
|
+
gutter={6}
|
|
457
|
+
>
|
|
458
|
+
<PopoverTrigger
|
|
459
|
+
as={Button}
|
|
460
|
+
variant="ghost"
|
|
461
|
+
size="sm"
|
|
462
|
+
aria-label={`Model: ${props.models.length === 0 ? 'No models available' : triggerText(props)}`}
|
|
463
|
+
aria-disabled={inert() || undefined}
|
|
464
|
+
aria-describedby={props.describedBy}
|
|
465
|
+
>
|
|
466
|
+
<Show when={groupOf(props.selected)}>
|
|
467
|
+
{(provider) => <ProviderGlyph provider={provider()} icon={props.providerIcon} />}
|
|
468
|
+
</Show>
|
|
469
|
+
<ModelTrigger
|
|
470
|
+
selected={props.selected}
|
|
471
|
+
value={props.value}
|
|
472
|
+
empty={props.models.length === 0}
|
|
473
|
+
/>
|
|
474
|
+
</PopoverTrigger>
|
|
475
|
+
<PopoverContent
|
|
476
|
+
ref={(element: HTMLDivElement) => (content = element)}
|
|
477
|
+
hideArrow
|
|
478
|
+
class="w-80 max-w-full p-0"
|
|
479
|
+
onOpenAutoFocus={(event: Event) => {
|
|
480
|
+
event.preventDefault()
|
|
481
|
+
focusSearch()
|
|
482
|
+
}}
|
|
483
|
+
>
|
|
484
|
+
<Tabs
|
|
485
|
+
value={current()}
|
|
486
|
+
onChange={(next: string) => {
|
|
487
|
+
setTab(next)
|
|
488
|
+
focusSearch()
|
|
489
|
+
}}
|
|
490
|
+
class="gap-0"
|
|
491
|
+
>
|
|
492
|
+
<TabsList fill scrollable aria-label="Providers" class="px-1.5 pt-1">
|
|
493
|
+
<For each={groups()}>
|
|
494
|
+
{(group) => (
|
|
495
|
+
<TabsTrigger
|
|
496
|
+
value={group.provider}
|
|
497
|
+
aria-label={group.provider}
|
|
498
|
+
title={group.provider}
|
|
499
|
+
class="h-8 min-w-8 px-1.5 pb-1.5 text-muted-foreground data-[selected]:text-foreground"
|
|
500
|
+
>
|
|
501
|
+
<ProviderGlyph provider={group.provider} icon={props.providerIcon} />
|
|
502
|
+
</TabsTrigger>
|
|
503
|
+
)}
|
|
504
|
+
</For>
|
|
505
|
+
</TabsList>
|
|
506
|
+
<For each={groups()}>
|
|
507
|
+
{(group) => (
|
|
508
|
+
<TabsContent value={group.provider}>
|
|
509
|
+
<Command
|
|
510
|
+
label={`${group.provider} models`}
|
|
511
|
+
defaultValue={
|
|
512
|
+
props.selected && group.models.includes(props.selected)
|
|
513
|
+
? modelSearchValue(props.selected).trim()
|
|
514
|
+
: undefined
|
|
515
|
+
}
|
|
516
|
+
>
|
|
517
|
+
<CommandInput placeholder="Search models" />
|
|
518
|
+
<CommandList>
|
|
519
|
+
<CommandEmpty>No model matches.</CommandEmpty>
|
|
520
|
+
<For each={group.models}>
|
|
521
|
+
{(model) => (
|
|
522
|
+
<CommandItem
|
|
523
|
+
value={modelSearchValue(model)}
|
|
524
|
+
disabled={props.blocked || model.disabledReason !== undefined}
|
|
525
|
+
onSelect={() => {
|
|
526
|
+
if (props.blocked || model.disabledReason !== undefined) return
|
|
527
|
+
props.onChange(model.id)
|
|
528
|
+
setOpen(false)
|
|
529
|
+
}}
|
|
530
|
+
>
|
|
531
|
+
<ModelOptionBody model={model} />
|
|
532
|
+
<Show when={model.id === props.value}>
|
|
533
|
+
<Check aria-hidden="true" class="ms-auto text-primary" />
|
|
534
|
+
<span class="visually-hidden">Current model</span>
|
|
535
|
+
</Show>
|
|
536
|
+
</CommandItem>
|
|
537
|
+
)}
|
|
538
|
+
</For>
|
|
539
|
+
</CommandList>
|
|
540
|
+
</Command>
|
|
541
|
+
</TabsContent>
|
|
542
|
+
)}
|
|
543
|
+
</For>
|
|
544
|
+
</Tabs>
|
|
545
|
+
</PopoverContent>
|
|
546
|
+
</Popover>
|
|
547
|
+
)
|
|
548
|
+
}
|
|
549
|
+
|
|
364
550
|
function EffortMenu(props: {
|
|
365
551
|
efforts: ReturnType<typeof normalizeEfforts>
|
|
366
552
|
value?: string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListTodo } from 'lucide-solid'
|
|
1
|
+
import { ListTodo as LucideListTodo } from 'lucide-solid'
|
|
2
2
|
import {
|
|
3
3
|
children as resolveChildren,
|
|
4
4
|
createMemo,
|
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
taskProgressLabel,
|
|
17
17
|
type TaskItemStatus,
|
|
18
18
|
} from '../task'
|
|
19
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
20
|
+
|
|
21
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
22
|
+
const ListTodo = fastIcon(LucideListTodo)
|
|
19
23
|
|
|
20
24
|
/**
|
|
21
25
|
* Plan.
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CornerDownRight as LucideCornerDownRight,
|
|
3
|
+
ListChecks as LucideListChecks,
|
|
4
|
+
ListTodo as LucideListTodo,
|
|
5
|
+
MessageSquarePlus as LucideMessageSquarePlus,
|
|
6
|
+
X as LucideX,
|
|
7
|
+
} from 'lucide-solid'
|
|
2
8
|
import {
|
|
3
9
|
createMemo,
|
|
4
10
|
Index,
|
|
@@ -11,6 +17,14 @@ import {
|
|
|
11
17
|
import { Button } from '../../ui/button'
|
|
12
18
|
import { Trace, TraceLine, type WorkStatus } from '../../ui/trace'
|
|
13
19
|
import { TaskItemList, TaskItemRow } from '../task'
|
|
20
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
21
|
+
|
|
22
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
23
|
+
const CornerDownRight = fastIcon(LucideCornerDownRight)
|
|
24
|
+
const ListChecks = fastIcon(LucideListChecks)
|
|
25
|
+
const ListTodo = fastIcon(LucideListTodo)
|
|
26
|
+
const MessageSquarePlus = fastIcon(LucideMessageSquarePlus)
|
|
27
|
+
const X = fastIcon(LucideX)
|
|
14
28
|
|
|
15
29
|
/**
|
|
16
30
|
* Queue.
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { Brain } from 'lucide-solid'
|
|
1
|
+
import { Brain as LucideBrain } from 'lucide-solid'
|
|
2
2
|
import { createEffect, createSignal, on, splitProps, type JSX } from 'solid-js'
|
|
3
3
|
import { isAtEnd, scrollGeometry } from '../../../lib/scroll-geometry'
|
|
4
4
|
import { MessageText } from '../../ui/message'
|
|
5
5
|
import { ScrollArea } from '../../ui/scroll-area'
|
|
6
6
|
import { formatDuration, TraceDetail, TraceLine, type TraceLineProps } from '../../ui/trace'
|
|
7
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
8
|
+
|
|
9
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
10
|
+
const Brain = fastIcon(LucideBrain)
|
|
7
11
|
|
|
8
12
|
export { formatDuration }
|
|
9
13
|
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ArrowDown as LucideArrowDown,
|
|
3
|
+
ArrowLeft as LucideArrowLeft,
|
|
4
|
+
ArrowRight as LucideArrowRight,
|
|
5
|
+
ArrowUp as LucideArrowUp,
|
|
6
|
+
ZoomIn as LucideZoomIn,
|
|
7
|
+
ZoomOut as LucideZoomOut,
|
|
8
|
+
} from 'lucide-solid'
|
|
2
9
|
import { createSignal, onCleanup, Show, type JSX } from 'solid-js'
|
|
3
10
|
import { ActionButton } from '../action-button'
|
|
11
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
12
|
+
|
|
13
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
14
|
+
const ArrowDown = fastIcon(LucideArrowDown)
|
|
15
|
+
const ArrowLeft = fastIcon(LucideArrowLeft)
|
|
16
|
+
const ArrowRight = fastIcon(LucideArrowRight)
|
|
17
|
+
const ArrowUp = fastIcon(LucideArrowUp)
|
|
18
|
+
const ZoomIn = fastIcon(LucideZoomIn)
|
|
19
|
+
const ZoomOut = fastIcon(LucideZoomOut)
|
|
4
20
|
|
|
5
21
|
/** A host-neutral direction reported while a movement control is held. */
|
|
6
22
|
export type SceneMovementDirection = 'forward' | 'left' | 'backward' | 'right'
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { CircleHelp } from 'lucide-solid'
|
|
1
|
+
import { CircleHelp as LucideCircleHelp } from 'lucide-solid'
|
|
2
2
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
3
3
|
import { createUniqueId, Show, splitProps } from 'solid-js'
|
|
4
4
|
import { createFormFieldContext, FormFieldContext } from '../../../lib/form-field'
|
|
5
5
|
import { cn } from '../../../lib/utils'
|
|
6
|
-
import {
|
|
6
|
+
import { LazyTooltip } from '../../ui/tooltip'
|
|
7
7
|
import { Heading } from '../../ui/typography'
|
|
8
|
+
import { fastIcon } from '../../../lib/fast-icon'
|
|
9
|
+
|
|
10
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
11
|
+
const CircleHelp = fastIcon(LucideCircleHelp)
|
|
8
12
|
|
|
9
13
|
/**
|
|
10
14
|
* SettingsSection and SettingsRow.
|
|
@@ -22,18 +26,23 @@ import { Heading } from '../../ui/typography'
|
|
|
22
26
|
*/
|
|
23
27
|
function HelpTip(props: { label: string; help: string }) {
|
|
24
28
|
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
// A settings page has one per row; each builds its tooltip on first hover or focus.
|
|
30
|
+
<LazyTooltip content={props.help}>
|
|
31
|
+
{(tip) => (
|
|
32
|
+
<button
|
|
33
|
+
ref={tip.ref}
|
|
34
|
+
type="button"
|
|
35
|
+
data-slot="settings-row-help"
|
|
36
|
+
aria-label={`About ${props.label}`}
|
|
37
|
+
aria-describedby={tip.describedBy()}
|
|
38
|
+
onPointerEnter={tip.onPointerEnter}
|
|
39
|
+
onFocus={tip.onFocus}
|
|
40
|
+
class="inline-flex size-4 items-center justify-center rounded-full text-muted-foreground hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none"
|
|
41
|
+
>
|
|
42
|
+
<CircleHelp class="size-3.5" aria-hidden="true" />
|
|
43
|
+
</button>
|
|
44
|
+
)}
|
|
45
|
+
</LazyTooltip>
|
|
37
46
|
)
|
|
38
47
|
}
|
|
39
48
|
|