@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,4 +1,4 @@
|
|
|
1
|
-
import { Wrench } from 'lucide-solid'
|
|
1
|
+
import { Wrench as LucideWrench } from 'lucide-solid'
|
|
2
2
|
import { children as resolveChildren, createMemo, Show, splitProps, type JSX } from 'solid-js'
|
|
3
3
|
import { Badge } from '../../ui/badge'
|
|
4
4
|
import { CodeBlock } from '../../ui/code-block'
|
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
type TraceStatus,
|
|
12
12
|
} from '../../ui/trace'
|
|
13
13
|
import { formatToolValue, TOOL_VALUE_MAX_CHARS } from './format-tool-value'
|
|
14
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
15
|
+
|
|
16
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
17
|
+
const Wrench = fastIcon(LucideWrench)
|
|
14
18
|
|
|
15
19
|
/**
|
|
16
20
|
* Tool.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
2
|
-
import { ChevronRight } from 'lucide-solid'
|
|
2
|
+
import { ChevronRight as LucideChevronRight } from 'lucide-solid'
|
|
3
3
|
import {
|
|
4
4
|
createContext,
|
|
5
5
|
createEffect,
|
|
@@ -20,6 +20,10 @@ import {
|
|
|
20
20
|
type TreeItemDescriptor,
|
|
21
21
|
type TreeNavigationIndex,
|
|
22
22
|
} from './tree-navigation'
|
|
23
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
24
|
+
|
|
25
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
26
|
+
const ChevronRight = fastIcon(LucideChevronRight)
|
|
23
27
|
|
|
24
28
|
type TreeContextValue = {
|
|
25
29
|
idPrefix: string
|
|
@@ -6,17 +6,18 @@ import {
|
|
|
6
6
|
onMount,
|
|
7
7
|
Show,
|
|
8
8
|
splitProps,
|
|
9
|
+
createUniqueId,
|
|
9
10
|
} from 'solid-js'
|
|
10
11
|
import type { Accessor, JSX } from 'solid-js'
|
|
11
12
|
import {
|
|
12
|
-
Check,
|
|
13
|
-
CircleStop,
|
|
14
|
-
Download,
|
|
15
|
-
ExternalLink,
|
|
16
|
-
LoaderCircle,
|
|
17
|
-
Monitor,
|
|
18
|
-
RefreshCw,
|
|
19
|
-
Sparkles,
|
|
13
|
+
Check as LucideCheck,
|
|
14
|
+
CircleStop as LucideCircleStop,
|
|
15
|
+
Download as LucideDownload,
|
|
16
|
+
ExternalLink as LucideExternalLink,
|
|
17
|
+
LoaderCircle as LucideLoaderCircle,
|
|
18
|
+
Monitor as LucideMonitor,
|
|
19
|
+
RefreshCw as LucideRefreshCw,
|
|
20
|
+
Sparkles as LucideSparkles,
|
|
20
21
|
} from 'lucide-solid'
|
|
21
22
|
import { Badge } from '../../ui/badge'
|
|
22
23
|
import { Button } from '../../ui/button'
|
|
@@ -46,6 +47,17 @@ import {
|
|
|
46
47
|
withPendingCancel,
|
|
47
48
|
type UpdateState,
|
|
48
49
|
} from './update-model'
|
|
50
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
51
|
+
|
|
52
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
53
|
+
const Check = fastIcon(LucideCheck)
|
|
54
|
+
const CircleStop = fastIcon(LucideCircleStop)
|
|
55
|
+
const Download = fastIcon(LucideDownload)
|
|
56
|
+
const ExternalLink = fastIcon(LucideExternalLink)
|
|
57
|
+
const LoaderCircle = fastIcon(LucideLoaderCircle)
|
|
58
|
+
const Monitor = fastIcon(LucideMonitor)
|
|
59
|
+
const RefreshCw = fastIcon(LucideRefreshCw)
|
|
60
|
+
const Sparkles = fastIcon(LucideSparkles)
|
|
49
61
|
|
|
50
62
|
/**
|
|
51
63
|
* UpdateDialog.
|
|
@@ -180,6 +192,9 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
180
192
|
'restoreFocusRef',
|
|
181
193
|
'class',
|
|
182
194
|
])
|
|
195
|
+
// Two dialogs on one page (a settings preview beside the real one) must not
|
|
196
|
+
// share heading ids, or each region is labelled by the other's heading.
|
|
197
|
+
const idBase = `update-${createUniqueId()}`
|
|
183
198
|
|
|
184
199
|
const [uncontrolledOpen, setUncontrolledOpen] = createSignal(local.defaultOpen ?? false)
|
|
185
200
|
const open = () => local.open ?? uncontrolledOpen()
|
|
@@ -404,9 +419,14 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
404
419
|
|
|
405
420
|
// Poll only an open, active native operation. Epoch ownership prevents a late
|
|
406
421
|
// status response from replacing a reopened dialog's newer snapshot.
|
|
422
|
+
// Keyed to whether polling applies, not to the status itself: every response
|
|
423
|
+
// writes a new status, and an effect that read it would tear down and recreate
|
|
424
|
+
// the interval on each poll.
|
|
425
|
+
const polling = createMemo(
|
|
426
|
+
() => open() && desktop() && !!local.adapter.pollIntervalMs && isInFlight(state()?.phase)
|
|
427
|
+
)
|
|
407
428
|
createEffect(() => {
|
|
408
|
-
|
|
409
|
-
if (!open() || !desktop() || !local.adapter.pollIntervalMs || !isInFlight(phase)) return
|
|
429
|
+
if (!polling()) return
|
|
410
430
|
const isCurrent = sessionGuard()
|
|
411
431
|
let active = true
|
|
412
432
|
let requestInFlight = false
|
|
@@ -429,7 +449,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
429
449
|
}
|
|
430
450
|
})()
|
|
431
451
|
},
|
|
432
|
-
Math.max(250, local.adapter.pollIntervalMs)
|
|
452
|
+
Math.max(250, local.adapter.pollIntervalMs ?? 0)
|
|
433
453
|
)
|
|
434
454
|
onCleanup(() => {
|
|
435
455
|
active = false
|
|
@@ -715,7 +735,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
715
735
|
<Show when={notes()}>
|
|
716
736
|
<div class="flex flex-col gap-2">
|
|
717
737
|
<div class="flex items-center gap-2">
|
|
718
|
-
<h2 id=
|
|
738
|
+
<h2 id={`${idBase}-release-notes`} class="text-sm font-semibold text-foreground">
|
|
719
739
|
What changed in this release
|
|
720
740
|
</h2>
|
|
721
741
|
<Badge variant="subtle" size="sm">
|
|
@@ -728,7 +748,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
728
748
|
<div
|
|
729
749
|
class="max-h-52 overflow-y-auto rounded-xl border border-border bg-background/45 p-4 font-code text-code leading-5 whitespace-pre-wrap text-muted-foreground"
|
|
730
750
|
role="region"
|
|
731
|
-
aria-labelledby=
|
|
751
|
+
aria-labelledby={`${idBase}-release-notes`}
|
|
732
752
|
tabindex="0"
|
|
733
753
|
>
|
|
734
754
|
{notes()}
|
|
@@ -739,7 +759,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
739
759
|
<Show when={changelog()}>
|
|
740
760
|
<div class="flex flex-col gap-2">
|
|
741
761
|
<div class="flex items-center gap-2">
|
|
742
|
-
<h2 id=
|
|
762
|
+
<h2 id={`${idBase}-changelog`} class="text-sm font-semibold text-foreground">
|
|
743
763
|
Installed changelog
|
|
744
764
|
</h2>
|
|
745
765
|
{/* The version pill identifies which build's history this is —
|
|
@@ -755,7 +775,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
755
775
|
<div
|
|
756
776
|
class="max-h-72 overflow-y-auto rounded-xl border border-border bg-background/45 p-4 font-code text-code leading-5 whitespace-pre-wrap text-muted-foreground"
|
|
757
777
|
role="region"
|
|
758
|
-
aria-labelledby=
|
|
778
|
+
aria-labelledby={`${idBase}-changelog`}
|
|
759
779
|
tabindex="0"
|
|
760
780
|
>
|
|
761
781
|
{changelog()}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
2
2
|
import { children as resolveChildren, Show, createUniqueId, splitProps } from 'solid-js'
|
|
3
3
|
import { cn } from '#lib/utils'
|
|
4
|
-
import {
|
|
4
|
+
import { LazyTooltip } from '../../ui/tooltip'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WorkspaceMark.
|
|
@@ -87,11 +87,18 @@ export function WorkspaceMark(props: WorkspaceMarkProps) {
|
|
|
87
87
|
)
|
|
88
88
|
|
|
89
89
|
return (
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
<LazyTooltip placement="right" content={local.name}>
|
|
91
|
+
{(tip) => (
|
|
92
|
+
<span
|
|
93
|
+
ref={tip.ref}
|
|
94
|
+
class="contents"
|
|
95
|
+
aria-describedby={tip.describedBy()}
|
|
96
|
+
onPointerEnter={tip.onPointerEnter}
|
|
97
|
+
onFocus={tip.onFocus}
|
|
98
|
+
>
|
|
99
|
+
{mark}
|
|
100
|
+
</span>
|
|
101
|
+
)}
|
|
102
|
+
</LazyTooltip>
|
|
96
103
|
)
|
|
97
104
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArrowDown, ArrowUp } from 'lucide-solid'
|
|
1
|
+
import { ArrowDown as LucideArrowDown, ArrowUp as LucideArrowUp } from 'lucide-solid'
|
|
2
2
|
import { For, Show, createEffect, createSignal, on, onCleanup, type Accessor } from 'solid-js'
|
|
3
3
|
import { Button } from '../../ui/button'
|
|
4
4
|
import {
|
|
@@ -12,6 +12,11 @@ import {
|
|
|
12
12
|
} from '../../ui/dialog'
|
|
13
13
|
import { ActionButton } from '../action-button'
|
|
14
14
|
import { moveTarget, moveWorkspace, type WorkspaceMoveDirection } from './workspace-order'
|
|
15
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
16
|
+
|
|
17
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
18
|
+
const ArrowDown = fastIcon(LucideArrowDown)
|
|
19
|
+
const ArrowUp = fastIcon(LucideArrowUp)
|
|
15
20
|
|
|
16
21
|
export type WorkspaceReorderItem = {
|
|
17
22
|
id: string
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ArrowDownUp as LucideArrowDownUp,
|
|
3
|
+
ChevronDown as LucideChevronDown,
|
|
4
|
+
Plus as LucidePlus,
|
|
5
|
+
Settings as LucideSettings,
|
|
6
|
+
} from 'lucide-solid'
|
|
2
7
|
import type { JSX } from 'solid-js'
|
|
3
8
|
import { Dynamic } from 'solid-js/web'
|
|
4
9
|
import { For, Show, createSignal, createUniqueId, onCleanup } from 'solid-js'
|
|
@@ -15,6 +20,13 @@ import {
|
|
|
15
20
|
DropdownMenuTrigger,
|
|
16
21
|
} from '../../ui/dropdown-menu'
|
|
17
22
|
import { ActionButton } from '../action-button'
|
|
23
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
24
|
+
|
|
25
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
26
|
+
const ArrowDownUp = fastIcon(LucideArrowDownUp)
|
|
27
|
+
const ChevronDown = fastIcon(LucideChevronDown)
|
|
28
|
+
const Plus = fastIcon(LucidePlus)
|
|
29
|
+
const Settings = fastIcon(LucideSettings)
|
|
18
30
|
|
|
19
31
|
// The dialog is only reachable from a menu item, so it stays out of the code
|
|
20
32
|
// that ships with the switcher and loads on demand.
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
5
|
* Licensed under Apache-2.0; see LICENSE and NOTICE.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
ArrowUpFromLine as LucideArrowUpFromLine,
|
|
9
|
+
ChevronDown as LucideChevronDown,
|
|
10
|
+
Target as LucideTarget,
|
|
11
|
+
} from 'lucide-solid'
|
|
8
12
|
import { For, Show, createUniqueId } from 'solid-js'
|
|
9
13
|
import { Button } from '../ui/button'
|
|
10
14
|
import { ButtonGroup } from '../ui/button-group'
|
|
@@ -16,6 +20,12 @@ import {
|
|
|
16
20
|
DropdownMenuSeparator,
|
|
17
21
|
DropdownMenuTrigger,
|
|
18
22
|
} from '../ui/dropdown-menu'
|
|
23
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
24
|
+
|
|
25
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
26
|
+
const ArrowUpFromLine = fastIcon(LucideArrowUpFromLine)
|
|
27
|
+
const ChevronDown = fastIcon(LucideChevronDown)
|
|
28
|
+
const Target = fastIcon(LucideTarget)
|
|
19
29
|
|
|
20
30
|
export type BusySendMode = 'steer' | 'queue'
|
|
21
31
|
export type BusySendButtonProps = {
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { ComponentProps } from 'solid-js'
|
|
2
2
|
import { Show, splitProps } from 'solid-js'
|
|
3
3
|
import { Dynamic } from 'solid-js/web'
|
|
4
|
-
import { Bot, Sparkles, User } from 'lucide-solid'
|
|
4
|
+
import { Bot as LucideBot, Sparkles as LucideSparkles, User as LucideUser } from 'lucide-solid'
|
|
5
5
|
import { cn } from '#lib/utils'
|
|
6
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
7
|
+
|
|
8
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
9
|
+
const Bot = fastIcon(LucideBot)
|
|
10
|
+
const Sparkles = fastIcon(LucideSparkles)
|
|
11
|
+
const User = fastIcon(LucideUser)
|
|
6
12
|
|
|
7
13
|
/**
|
|
8
14
|
* ConversationAvatar.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArrowDown } from 'lucide-solid'
|
|
1
|
+
import { ArrowDown as LucideArrowDown } from 'lucide-solid'
|
|
2
2
|
import type { ComponentProps, JSX, Ref } from 'solid-js'
|
|
3
3
|
import { Show, splitProps } from 'solid-js'
|
|
4
4
|
import { callHandler } from '#lib/events'
|
|
@@ -7,6 +7,10 @@ import { Button } from '../ui/button'
|
|
|
7
7
|
import { createScrollFollow } from './scroll-follow'
|
|
8
8
|
import type { ConversationReadingPosition, ScrollFollowHold } from './scroll-follow'
|
|
9
9
|
import { DEFAULT_BOTTOM_THRESHOLD } from './scroll-follow-core'
|
|
10
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
11
|
+
|
|
12
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
13
|
+
const ArrowDown = fastIcon(LucideArrowDown)
|
|
10
14
|
|
|
11
15
|
export type { ConversationReadingPosition }
|
|
12
16
|
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
5
|
* Licensed under Apache-2.0; see LICENSE and NOTICE.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
ChevronsDownUp as LucideChevronsDownUp,
|
|
9
|
+
ChevronsUpDown as LucideChevronsUpDown,
|
|
10
|
+
MoreHorizontal as LucideMoreHorizontal,
|
|
11
|
+
ArrowUp as LucideArrowUp,
|
|
12
|
+
} from 'lucide-solid'
|
|
8
13
|
import { Show, createEffect, on, onCleanup, onMount, type Accessor, type JSX } from 'solid-js'
|
|
9
14
|
import type {
|
|
10
15
|
ChatComposerControl,
|
|
@@ -21,6 +26,13 @@ import {
|
|
|
21
26
|
import { Spinner } from '../../ui/spinner'
|
|
22
27
|
import { BusySendButton, type BusySendMode } from '../busy-send-button'
|
|
23
28
|
import { createComposerCore } from '../composer-core'
|
|
29
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
30
|
+
|
|
31
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
32
|
+
const ChevronsDownUp = fastIcon(LucideChevronsDownUp)
|
|
33
|
+
const ChevronsUpDown = fastIcon(LucideChevronsUpDown)
|
|
34
|
+
const MoreHorizontal = fastIcon(LucideMoreHorizontal)
|
|
35
|
+
const ArrowUp = fastIcon(LucideArrowUp)
|
|
24
36
|
|
|
25
37
|
/** Private typed seam: public wrappers supply the native or atomic input. */
|
|
26
38
|
type ChatComposerInputRenderProps = {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CornerDownLeft as LucideCornerDownLeft,
|
|
3
|
+
Paperclip as LucidePaperclip,
|
|
4
|
+
Send as LucideSend,
|
|
5
|
+
X as LucideX,
|
|
6
|
+
} from 'lucide-solid'
|
|
2
7
|
import type { ComponentProps, JSX, Ref } from 'solid-js'
|
|
3
8
|
import { Show, createUniqueId, splitProps } from 'solid-js'
|
|
4
9
|
import { callHandler } from '#lib/events'
|
|
@@ -9,6 +14,13 @@ import { Kbd } from '../ui/kbd'
|
|
|
9
14
|
import { Spinner } from '../ui/spinner'
|
|
10
15
|
import { Textarea } from '../ui/textarea'
|
|
11
16
|
import { createComposerCore } from './composer-core'
|
|
17
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
18
|
+
|
|
19
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
20
|
+
const CornerDownLeft = fastIcon(LucideCornerDownLeft)
|
|
21
|
+
const Paperclip = fastIcon(LucidePaperclip)
|
|
22
|
+
const Send = fastIcon(LucideSend)
|
|
23
|
+
const X = fastIcon(LucideX)
|
|
12
24
|
|
|
13
25
|
/**
|
|
14
26
|
* MessageComposer.
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CheckCheck as LucideCheckCheck,
|
|
3
|
+
MessageSquareReply as LucideMessageSquareReply,
|
|
4
|
+
Pencil as LucidePencil,
|
|
5
|
+
RotateCcw as LucideRotateCcw,
|
|
6
|
+
Trash2 as LucideTrash2,
|
|
7
|
+
} from 'lucide-solid'
|
|
2
8
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
3
9
|
import { createMemo, Index, Show, splitProps } from 'solid-js'
|
|
4
10
|
import { cn } from '#lib/utils'
|
|
@@ -6,6 +12,14 @@ import { Button } from '../ui/button'
|
|
|
6
12
|
import { CodeBlock, InlineCode } from '../ui/code-block'
|
|
7
13
|
import { splitCodeFences, type FenceSegment } from '../ui/message/parse-message-text'
|
|
8
14
|
import { ConversationAvatar, type ConversationAvatarKind } from './conversation-avatar'
|
|
15
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
16
|
+
|
|
17
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
18
|
+
const CheckCheck = fastIcon(LucideCheckCheck)
|
|
19
|
+
const MessageSquareReply = fastIcon(LucideMessageSquareReply)
|
|
20
|
+
const Pencil = fastIcon(LucidePencil)
|
|
21
|
+
const RotateCcw = fastIcon(LucideRotateCcw)
|
|
22
|
+
const Trash2 = fastIcon(LucideTrash2)
|
|
9
23
|
|
|
10
24
|
/**
|
|
11
25
|
* MessageRow.
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { X } from 'lucide-solid'
|
|
1
|
+
import { X as LucideX } from 'lucide-solid'
|
|
2
2
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
3
3
|
import { Show, splitProps } from 'solid-js'
|
|
4
4
|
import { cn } from '#lib/utils'
|
|
5
5
|
import { Button } from '../ui/button'
|
|
6
6
|
import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'
|
|
7
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
8
|
+
|
|
9
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
10
|
+
const X = fastIcon(LucideX)
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* ThreadPanel.
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
createUniqueId,
|
|
9
9
|
splitProps,
|
|
10
10
|
} from 'solid-js'
|
|
11
|
-
import { ChevronDown } from 'lucide-solid'
|
|
11
|
+
import { ChevronDown as LucideChevronDown } from 'lucide-solid'
|
|
12
12
|
import { cn } from '#lib/utils'
|
|
13
13
|
import { Button } from '../ui/button'
|
|
14
14
|
import {
|
|
@@ -25,6 +25,10 @@ import {
|
|
|
25
25
|
type TranscriptFoldMode,
|
|
26
26
|
type TranscriptMounting,
|
|
27
27
|
} from './transcript-folding'
|
|
28
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
29
|
+
|
|
30
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
31
|
+
const ChevronDown = fastIcon(LucideChevronDown)
|
|
28
32
|
|
|
29
33
|
export type TranscriptFoldState = 'default' | 'collapsed' | 'expanded'
|
|
30
34
|
export type TranscriptDisplayKind = 'single' | 'group' | 'turn'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createEffect, createSignal, onCleanup, onMount, on, type JSX } from 'solid-js'
|
|
2
|
-
import { Move, X } from 'lucide-solid'
|
|
2
|
+
import { Move as LucideMove, X as LucideX } from 'lucide-solid'
|
|
3
3
|
import { ActionButton } from '../../composites/action-button'
|
|
4
4
|
import { ScrollArea } from '../../ui/scroll-area'
|
|
5
5
|
import {
|
|
@@ -9,6 +9,11 @@ import {
|
|
|
9
9
|
resolveFloatingPreviewFrame,
|
|
10
10
|
resizeFloatingPreview,
|
|
11
11
|
} from './model'
|
|
12
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
13
|
+
|
|
14
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
15
|
+
const Move = fastIcon(LucideMove)
|
|
16
|
+
const X = fastIcon(LucideX)
|
|
12
17
|
|
|
13
18
|
const directions: readonly {
|
|
14
19
|
direction: FloatingPreviewResizeDirection
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { GripVertical } from 'lucide-solid'
|
|
1
|
+
import { GripVertical as LucideGripVertical } from 'lucide-solid'
|
|
2
2
|
import { createSignal, onCleanup } from 'solid-js'
|
|
3
3
|
import { cn } from '#lib/utils'
|
|
4
4
|
import { resizeGripClass, resizeGripIconClass, resizeSeparatorClass } from '#lib/resize-separator'
|
|
5
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
6
|
+
|
|
7
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
8
|
+
const GripVertical = fastIcon(LucideGripVertical)
|
|
5
9
|
|
|
6
10
|
export type PixelResizeHandleProps = {
|
|
7
11
|
/** Which physical edge of the ruler the resizable surface is attached to. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Search } from 'lucide-solid'
|
|
1
|
+
import { Search as LucideSearch } from 'lucide-solid'
|
|
2
2
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
3
3
|
import { children, For, Show, splitProps } from 'solid-js'
|
|
4
4
|
import { cn } from '#lib/utils'
|
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
SideRailHeader,
|
|
12
12
|
SideRailItem,
|
|
13
13
|
} from '../side-rail'
|
|
14
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
15
|
+
|
|
16
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
17
|
+
const Search = fastIcon(LucideSearch)
|
|
14
18
|
|
|
15
19
|
/**
|
|
16
20
|
* ShellRail.
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import { Portal } from 'solid-js/web'
|
|
12
12
|
import { tooltipTip } from '#lib/overlay'
|
|
13
13
|
import { cn } from '#lib/utils'
|
|
14
|
+
import { KbdChord } from '../../ui/kbd'
|
|
14
15
|
import { SideRailContext } from './side-rail-context'
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -227,11 +228,7 @@ function RailTip(props: {
|
|
|
227
228
|
</span>
|
|
228
229
|
{props.label}
|
|
229
230
|
<Show when={props.shortcut}>
|
|
230
|
-
{(
|
|
231
|
-
<span class="text-muted-foreground shrink-0 font-code text-code leading-none">
|
|
232
|
-
{shortcutSlot()}
|
|
233
|
-
</span>
|
|
234
|
-
)}
|
|
231
|
+
{(shortcut) => <KbdChord keys={shortcut()} class="shrink-0" />}
|
|
235
232
|
</Show>
|
|
236
233
|
</div>
|
|
237
234
|
</Portal>
|
|
@@ -362,13 +359,14 @@ export function SideRailItem<T extends ValidComponent = 'a'>(props: SideRailItem
|
|
|
362
359
|
)}
|
|
363
360
|
</Show>
|
|
364
361
|
|
|
365
|
-
<Show when={
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
362
|
+
<Show when={trailing() === undefined && local.shortcut}>
|
|
363
|
+
{(shortcut) => (
|
|
364
|
+
<KbdChord
|
|
365
|
+
keys={shortcut()}
|
|
366
|
+
size="compact"
|
|
367
|
+
class="shrink-0 opacity-0 transition-opacity group-hover/rail-item:opacity-100 group-focus-visible/rail-item:opacity-100 group-data-[collapsed=true]/rail:hidden"
|
|
368
|
+
/>
|
|
369
|
+
)}
|
|
372
370
|
</Show>
|
|
373
371
|
|
|
374
372
|
<Show when={trailing()}>
|
|
@@ -424,13 +422,12 @@ export function SideRailButton(
|
|
|
424
422
|
{local.label}
|
|
425
423
|
</span>
|
|
426
424
|
<Show when={local.shortcut}>
|
|
427
|
-
{(
|
|
428
|
-
<
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
</span>
|
|
425
|
+
{(shortcut) => (
|
|
426
|
+
<KbdChord
|
|
427
|
+
keys={shortcut()}
|
|
428
|
+
size="compact"
|
|
429
|
+
class="shrink-0 opacity-0 transition-opacity group-hover/rail-item:opacity-100 group-focus-visible/rail-item:opacity-100 group-data-[collapsed=true]/rail:hidden"
|
|
430
|
+
/>
|
|
434
431
|
)}
|
|
435
432
|
</Show>
|
|
436
433
|
</button>
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { PolymorphicProps } from '@kobalte/core/polymorphic'
|
|
2
2
|
import { Polymorphic } from '@kobalte/core/polymorphic'
|
|
3
|
-
import { ChevronRight } from 'lucide-solid'
|
|
3
|
+
import { ChevronRight as LucideChevronRight } from 'lucide-solid'
|
|
4
4
|
import type { ComponentProps, JSX, ValidComponent } from 'solid-js'
|
|
5
5
|
import { Show, createSignal, splitProps } from 'solid-js'
|
|
6
6
|
import { callHandler } from '#lib/events'
|
|
7
7
|
import { cn } from '#lib/utils'
|
|
8
8
|
import { sidebarNavItemClass, sidebarNavItemStateClass } from './sidebar-nav-classes'
|
|
9
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
10
|
+
|
|
11
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
12
|
+
const ChevronRight = fastIcon(LucideChevronRight)
|
|
9
13
|
|
|
10
14
|
/**
|
|
11
15
|
* SidebarNav.
|
|
@@ -13,13 +13,18 @@ import {
|
|
|
13
13
|
type JSX,
|
|
14
14
|
} from 'solid-js'
|
|
15
15
|
import { Dynamic } from 'solid-js/web'
|
|
16
|
-
import { X, GripVertical } from 'lucide-solid'
|
|
16
|
+
import { X as LucideX, GripVertical as LucideGripVertical } from 'lucide-solid'
|
|
17
17
|
import { ActionButton } from '../../composites/action-button'
|
|
18
18
|
import { Button } from '../../ui/button'
|
|
19
19
|
import { resizeSeparatorClass } from '#lib/resize-separator'
|
|
20
20
|
import { cn } from '#lib/utils'
|
|
21
21
|
import { computeLayoutFrames, type LayoutRect } from './geometry'
|
|
22
22
|
import { paneDropIntent, type PaneDropIntent } from './drop'
|
|
23
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
24
|
+
|
|
25
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
26
|
+
const X = fastIcon(LucideX)
|
|
27
|
+
const GripVertical = fastIcon(LucideGripVertical)
|
|
23
28
|
export type { PaneDropIntent } from './drop'
|
|
24
29
|
const PANE_DRAG_TYPE = 'application/x-adea-pane-move'
|
|
25
30
|
const DRAG_PREVIEW_MAX_WIDTH = 384
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { ComponentProps } from 'solid-js'
|
|
2
2
|
import { Show, splitProps } from 'solid-js'
|
|
3
|
-
import { Search } from 'lucide-solid'
|
|
3
|
+
import { Search as LucideSearch } from 'lucide-solid'
|
|
4
4
|
import { callHandler } from '#lib/events'
|
|
5
5
|
import { cn } from '#lib/utils'
|
|
6
|
+
import { KbdChord } from '../../ui/kbd'
|
|
6
7
|
import { windowChromeClass, type WindowChromeProps } from './window-chrome'
|
|
8
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
9
|
+
|
|
10
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
11
|
+
const Search = fastIcon(LucideSearch)
|
|
7
12
|
|
|
8
13
|
/**
|
|
9
14
|
* TopBar.
|
|
@@ -186,13 +191,8 @@ export function TopBarSearch(props: TopBarSearchProps) {
|
|
|
186
191
|
<Search aria-hidden="true" class="size-4 shrink-0 sm:hidden" />
|
|
187
192
|
<span class="sr-only sm:not-sr-only sm:truncate">{local.placeholder ?? 'Search'}</span>
|
|
188
193
|
<Show when={local.shortcut}>
|
|
189
|
-
{(
|
|
190
|
-
<
|
|
191
|
-
aria-hidden="true"
|
|
192
|
-
class="bg-muted ms-auto hidden h-5 shrink-0 items-center rounded-sm border border-border px-1.5 font-code text-code sm:flex"
|
|
193
|
-
>
|
|
194
|
-
{shortcutSlot()}
|
|
195
|
-
</kbd>
|
|
194
|
+
{(shortcut) => (
|
|
195
|
+
<KbdChord keys={shortcut()} class="ms-auto hidden shrink-0 sm:inline-flex" />
|
|
196
196
|
)}
|
|
197
197
|
</Show>
|
|
198
198
|
</button>
|
|
@@ -125,7 +125,12 @@ export function AppearancePanel(props: AppearancePanelProps) {
|
|
|
125
125
|
class="flex flex-col items-start gap-3"
|
|
126
126
|
>
|
|
127
127
|
<AccentSwatchGroups
|
|
128
|
-
|
|
128
|
+
// The presets, then the accents the selected theme pair carries: the
|
|
129
|
+
// selection already accepts those ids, so the panel must offer them.
|
|
130
|
+
accentOptions={[
|
|
131
|
+
...accentPresets,
|
|
132
|
+
...themeAccents().filter((option) => !isPresetAccentId(option.id)),
|
|
133
|
+
]}
|
|
129
134
|
resolvedAppearance={resolvedAppearance()}
|
|
130
135
|
themeDefaultColor="var(--primary)"
|
|
131
136
|
/>
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { Monitor, Moon, Sun } from 'lucide-solid'
|
|
1
|
+
import { Monitor as LucideMonitor, Moon as LucideMoon, Sun as LucideSun } from 'lucide-solid'
|
|
2
2
|
import type { ComponentProps } from 'solid-js'
|
|
3
3
|
import { For, splitProps } from 'solid-js'
|
|
4
4
|
import { ToggleGroup, ToggleGroupItem } from '../ui/toggle-group'
|
|
5
5
|
import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'
|
|
6
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
7
|
+
|
|
8
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
9
|
+
const Monitor = fastIcon(LucideMonitor)
|
|
10
|
+
const Moon = fastIcon(LucideMoon)
|
|
11
|
+
const Sun = fastIcon(LucideSun)
|
|
6
12
|
|
|
7
13
|
const APPEARANCES = [
|
|
8
14
|
{ value: 'light', label: 'Light', icon: Sun },
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { Monitor, Moon, Sun } from 'lucide-solid'
|
|
1
|
+
import { Monitor as LucideMonitor, Moon as LucideMoon, Sun as LucideSun } from 'lucide-solid'
|
|
2
2
|
import type { ComponentProps } from 'solid-js'
|
|
3
3
|
import { For, splitProps } from 'solid-js'
|
|
4
4
|
import { cn } from '#lib/utils'
|
|
5
5
|
import { ToggleGroup, ToggleGroupItem } from '../ui/toggle-group'
|
|
6
6
|
import { useTheme } from './theme-context'
|
|
7
|
+
import { fastIcon } from '#lib/fast-icon'
|
|
8
|
+
|
|
9
|
+
// lucide icons drawn from a cloned template (see fastIcon).
|
|
10
|
+
const Monitor = fastIcon(LucideMonitor)
|
|
11
|
+
const Moon = fastIcon(LucideMoon)
|
|
12
|
+
const Sun = fastIcon(LucideSun)
|
|
7
13
|
|
|
8
14
|
/**
|
|
9
15
|
* ThemeToggle.
|