@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,5 +1,65 @@
|
|
|
1
|
+
import { fastIcon } from "../../../lib/fast-icon.js";
|
|
1
2
|
import { Anchor, BookOpen, Bot, Box, Brain, Briefcase, Building2, Camera, ChartColumn, Cloud, Code, Coffee, Compass, Cpu, Database, Dumbbell, Flag, Flame, FlaskConical, Folder, FolderGit2, Gamepad2, Gem, Globe, GraduationCap, Hammer, Heart, House, Key, Layers, Leaf, Lightbulb, Map as Map$1, Megaphone, MessagesSquare, Moon, Mountain, Music, Newspaper, Package, Palette, Plane, Puzzle, Rocket, Server, Shapes, Shield, ShoppingCart, Sparkles, Star, Sun, Target, Terminal, Trophy, Users, Utensils, Wallet, Wrench, Zap } from "lucide-solid";
|
|
2
3
|
// src/components/composites/icon-picker/shell-icons.ts
|
|
4
|
+
var Anchor$1 = fastIcon(Anchor);
|
|
5
|
+
var Bot$1 = fastIcon(Bot);
|
|
6
|
+
var Box$1 = fastIcon(Box);
|
|
7
|
+
var BookOpen$1 = fastIcon(BookOpen);
|
|
8
|
+
var Brain$1 = fastIcon(Brain);
|
|
9
|
+
var Briefcase$1 = fastIcon(Briefcase);
|
|
10
|
+
var Building2$1 = fastIcon(Building2);
|
|
11
|
+
var Camera$1 = fastIcon(Camera);
|
|
12
|
+
var ChartColumn$1 = fastIcon(ChartColumn);
|
|
13
|
+
var Cloud$1 = fastIcon(Cloud);
|
|
14
|
+
var Code$1 = fastIcon(Code);
|
|
15
|
+
var Coffee$1 = fastIcon(Coffee);
|
|
16
|
+
var Compass$1 = fastIcon(Compass);
|
|
17
|
+
var Cpu$1 = fastIcon(Cpu);
|
|
18
|
+
var Database$1 = fastIcon(Database);
|
|
19
|
+
var Dumbbell$1 = fastIcon(Dumbbell);
|
|
20
|
+
var Flag$1 = fastIcon(Flag);
|
|
21
|
+
var Flame$1 = fastIcon(Flame);
|
|
22
|
+
var FlaskConical$1 = fastIcon(FlaskConical);
|
|
23
|
+
var Folder$1 = fastIcon(Folder);
|
|
24
|
+
var FolderGit2$1 = fastIcon(FolderGit2);
|
|
25
|
+
var Gamepad2$1 = fastIcon(Gamepad2);
|
|
26
|
+
var Gem$1 = fastIcon(Gem);
|
|
27
|
+
var Globe$1 = fastIcon(Globe);
|
|
28
|
+
var GraduationCap$1 = fastIcon(GraduationCap);
|
|
29
|
+
var Hammer$1 = fastIcon(Hammer);
|
|
30
|
+
var Heart$1 = fastIcon(Heart);
|
|
31
|
+
var House$1 = fastIcon(House);
|
|
32
|
+
var Key$1 = fastIcon(Key);
|
|
33
|
+
var Layers$1 = fastIcon(Layers);
|
|
34
|
+
var Leaf$1 = fastIcon(Leaf);
|
|
35
|
+
var Lightbulb$1 = fastIcon(Lightbulb);
|
|
36
|
+
var MapIcon = fastIcon(Map$1);
|
|
37
|
+
var Megaphone$1 = fastIcon(Megaphone);
|
|
38
|
+
var MessagesSquare$1 = fastIcon(MessagesSquare);
|
|
39
|
+
var Moon$1 = fastIcon(Moon);
|
|
40
|
+
var Mountain$1 = fastIcon(Mountain);
|
|
41
|
+
var Music$1 = fastIcon(Music);
|
|
42
|
+
var Newspaper$1 = fastIcon(Newspaper);
|
|
43
|
+
var Package$1 = fastIcon(Package);
|
|
44
|
+
var Palette$1 = fastIcon(Palette);
|
|
45
|
+
var Plane$1 = fastIcon(Plane);
|
|
46
|
+
var Puzzle$1 = fastIcon(Puzzle);
|
|
47
|
+
var Rocket$1 = fastIcon(Rocket);
|
|
48
|
+
var Server$1 = fastIcon(Server);
|
|
49
|
+
var Shapes$1 = fastIcon(Shapes);
|
|
50
|
+
var Shield$1 = fastIcon(Shield);
|
|
51
|
+
var ShoppingCart$1 = fastIcon(ShoppingCart);
|
|
52
|
+
var Sparkles$1 = fastIcon(Sparkles);
|
|
53
|
+
var Star$1 = fastIcon(Star);
|
|
54
|
+
var Sun$1 = fastIcon(Sun);
|
|
55
|
+
var Target$1 = fastIcon(Target);
|
|
56
|
+
var Terminal$1 = fastIcon(Terminal);
|
|
57
|
+
var Trophy$1 = fastIcon(Trophy);
|
|
58
|
+
var Users$1 = fastIcon(Users);
|
|
59
|
+
var Utensils$1 = fastIcon(Utensils);
|
|
60
|
+
var Wallet$1 = fastIcon(Wallet);
|
|
61
|
+
var Wrench$1 = fastIcon(Wrench);
|
|
62
|
+
var Zap$1 = fastIcon(Zap);
|
|
3
63
|
/**
|
|
4
64
|
* The icons a workspace or a project may choose for itself.
|
|
5
65
|
*
|
|
@@ -17,297 +77,297 @@ var shellIconEntries = [
|
|
|
17
77
|
{
|
|
18
78
|
key: "home",
|
|
19
79
|
label: "Home",
|
|
20
|
-
icon: House
|
|
80
|
+
icon: House$1
|
|
21
81
|
},
|
|
22
82
|
{
|
|
23
83
|
key: "box",
|
|
24
84
|
label: "Box",
|
|
25
|
-
icon: Box
|
|
85
|
+
icon: Box$1
|
|
26
86
|
},
|
|
27
87
|
{
|
|
28
88
|
key: "folder",
|
|
29
89
|
label: "Folder",
|
|
30
|
-
icon: Folder
|
|
90
|
+
icon: Folder$1
|
|
31
91
|
},
|
|
32
92
|
{
|
|
33
93
|
key: "git-folder",
|
|
34
94
|
label: "Repository",
|
|
35
|
-
icon: FolderGit2
|
|
95
|
+
icon: FolderGit2$1
|
|
36
96
|
},
|
|
37
97
|
{
|
|
38
98
|
key: "briefcase",
|
|
39
99
|
label: "Briefcase",
|
|
40
|
-
icon: Briefcase
|
|
100
|
+
icon: Briefcase$1
|
|
41
101
|
},
|
|
42
102
|
{
|
|
43
103
|
key: "building",
|
|
44
104
|
label: "Building",
|
|
45
|
-
icon: Building2
|
|
105
|
+
icon: Building2$1
|
|
46
106
|
},
|
|
47
107
|
{
|
|
48
108
|
key: "users",
|
|
49
109
|
label: "Team",
|
|
50
|
-
icon: Users
|
|
110
|
+
icon: Users$1
|
|
51
111
|
},
|
|
52
112
|
{
|
|
53
113
|
key: "rocket",
|
|
54
114
|
label: "Rocket",
|
|
55
|
-
icon: Rocket
|
|
115
|
+
icon: Rocket$1
|
|
56
116
|
},
|
|
57
117
|
{
|
|
58
118
|
key: "star",
|
|
59
119
|
label: "Star",
|
|
60
|
-
icon: Star
|
|
120
|
+
icon: Star$1
|
|
61
121
|
},
|
|
62
122
|
{
|
|
63
123
|
key: "heart",
|
|
64
124
|
label: "Heart",
|
|
65
|
-
icon: Heart
|
|
125
|
+
icon: Heart$1
|
|
66
126
|
},
|
|
67
127
|
{
|
|
68
128
|
key: "code",
|
|
69
129
|
label: "Code",
|
|
70
|
-
icon: Code
|
|
130
|
+
icon: Code$1
|
|
71
131
|
},
|
|
72
132
|
{
|
|
73
133
|
key: "terminal",
|
|
74
134
|
label: "Terminal",
|
|
75
|
-
icon: Terminal
|
|
135
|
+
icon: Terminal$1
|
|
76
136
|
},
|
|
77
137
|
{
|
|
78
138
|
key: "cpu",
|
|
79
139
|
label: "Chip",
|
|
80
|
-
icon: Cpu
|
|
140
|
+
icon: Cpu$1
|
|
81
141
|
},
|
|
82
142
|
{
|
|
83
143
|
key: "server",
|
|
84
144
|
label: "Server",
|
|
85
|
-
icon: Server
|
|
145
|
+
icon: Server$1
|
|
86
146
|
},
|
|
87
147
|
{
|
|
88
148
|
key: "database",
|
|
89
149
|
label: "Database",
|
|
90
|
-
icon: Database
|
|
150
|
+
icon: Database$1
|
|
91
151
|
},
|
|
92
152
|
{
|
|
93
153
|
key: "cloud",
|
|
94
154
|
label: "Cloud",
|
|
95
|
-
icon: Cloud
|
|
155
|
+
icon: Cloud$1
|
|
96
156
|
},
|
|
97
157
|
{
|
|
98
158
|
key: "globe",
|
|
99
159
|
label: "Globe",
|
|
100
|
-
icon: Globe
|
|
160
|
+
icon: Globe$1
|
|
101
161
|
},
|
|
102
162
|
{
|
|
103
163
|
key: "bot",
|
|
104
164
|
label: "Agent",
|
|
105
|
-
icon: Bot
|
|
165
|
+
icon: Bot$1
|
|
106
166
|
},
|
|
107
167
|
{
|
|
108
168
|
key: "brain",
|
|
109
169
|
label: "Brain",
|
|
110
|
-
icon: Brain
|
|
170
|
+
icon: Brain$1
|
|
111
171
|
},
|
|
112
172
|
{
|
|
113
173
|
key: "sparkles",
|
|
114
174
|
label: "Sparkles",
|
|
115
|
-
icon: Sparkles
|
|
175
|
+
icon: Sparkles$1
|
|
116
176
|
},
|
|
117
177
|
{
|
|
118
178
|
key: "lightbulb",
|
|
119
179
|
label: "Idea",
|
|
120
|
-
icon: Lightbulb
|
|
180
|
+
icon: Lightbulb$1
|
|
121
181
|
},
|
|
122
182
|
{
|
|
123
183
|
key: "flask",
|
|
124
184
|
label: "Lab",
|
|
125
|
-
icon: FlaskConical
|
|
185
|
+
icon: FlaskConical$1
|
|
126
186
|
},
|
|
127
187
|
{
|
|
128
188
|
key: "book",
|
|
129
189
|
label: "Book",
|
|
130
|
-
icon: BookOpen
|
|
190
|
+
icon: BookOpen$1
|
|
131
191
|
},
|
|
132
192
|
{
|
|
133
193
|
key: "graduation",
|
|
134
194
|
label: "Study",
|
|
135
|
-
icon: GraduationCap
|
|
195
|
+
icon: GraduationCap$1
|
|
136
196
|
},
|
|
137
197
|
{
|
|
138
198
|
key: "newspaper",
|
|
139
199
|
label: "News",
|
|
140
|
-
icon: Newspaper
|
|
200
|
+
icon: Newspaper$1
|
|
141
201
|
},
|
|
142
202
|
{
|
|
143
203
|
key: "megaphone",
|
|
144
204
|
label: "Marketing",
|
|
145
|
-
icon: Megaphone
|
|
205
|
+
icon: Megaphone$1
|
|
146
206
|
},
|
|
147
207
|
{
|
|
148
208
|
key: "chart",
|
|
149
209
|
label: "Chart",
|
|
150
|
-
icon: ChartColumn
|
|
210
|
+
icon: ChartColumn$1
|
|
151
211
|
},
|
|
152
212
|
{
|
|
153
213
|
key: "wallet",
|
|
154
214
|
label: "Finance",
|
|
155
|
-
icon: Wallet
|
|
215
|
+
icon: Wallet$1
|
|
156
216
|
},
|
|
157
217
|
{
|
|
158
218
|
key: "cart",
|
|
159
219
|
label: "Shop",
|
|
160
|
-
icon: ShoppingCart
|
|
220
|
+
icon: ShoppingCart$1
|
|
161
221
|
},
|
|
162
222
|
{
|
|
163
223
|
key: "package",
|
|
164
224
|
label: "Package",
|
|
165
|
-
icon: Package
|
|
225
|
+
icon: Package$1
|
|
166
226
|
},
|
|
167
227
|
{
|
|
168
228
|
key: "layers",
|
|
169
229
|
label: "Layers",
|
|
170
|
-
icon: Layers
|
|
230
|
+
icon: Layers$1
|
|
171
231
|
},
|
|
172
232
|
{
|
|
173
233
|
key: "puzzle",
|
|
174
234
|
label: "Puzzle",
|
|
175
|
-
icon: Puzzle
|
|
235
|
+
icon: Puzzle$1
|
|
176
236
|
},
|
|
177
237
|
{
|
|
178
238
|
key: "shield",
|
|
179
239
|
label: "Security",
|
|
180
|
-
icon: Shield
|
|
240
|
+
icon: Shield$1
|
|
181
241
|
},
|
|
182
242
|
{
|
|
183
243
|
key: "key",
|
|
184
244
|
label: "Key",
|
|
185
|
-
icon: Key
|
|
245
|
+
icon: Key$1
|
|
186
246
|
},
|
|
187
247
|
{
|
|
188
248
|
key: "wrench",
|
|
189
249
|
label: "Tools",
|
|
190
|
-
icon: Wrench
|
|
250
|
+
icon: Wrench$1
|
|
191
251
|
},
|
|
192
252
|
{
|
|
193
253
|
key: "hammer",
|
|
194
254
|
label: "Build",
|
|
195
|
-
icon: Hammer
|
|
255
|
+
icon: Hammer$1
|
|
196
256
|
},
|
|
197
257
|
{
|
|
198
258
|
key: "zap",
|
|
199
259
|
label: "Bolt",
|
|
200
|
-
icon: Zap
|
|
260
|
+
icon: Zap$1
|
|
201
261
|
},
|
|
202
262
|
{
|
|
203
263
|
key: "flame",
|
|
204
264
|
label: "Flame",
|
|
205
|
-
icon: Flame
|
|
265
|
+
icon: Flame$1
|
|
206
266
|
},
|
|
207
267
|
{
|
|
208
268
|
key: "target",
|
|
209
269
|
label: "Target",
|
|
210
|
-
icon: Target
|
|
270
|
+
icon: Target$1
|
|
211
271
|
},
|
|
212
272
|
{
|
|
213
273
|
key: "trophy",
|
|
214
274
|
label: "Trophy",
|
|
215
|
-
icon: Trophy
|
|
275
|
+
icon: Trophy$1
|
|
216
276
|
},
|
|
217
277
|
{
|
|
218
278
|
key: "flag",
|
|
219
279
|
label: "Flag",
|
|
220
|
-
icon: Flag
|
|
280
|
+
icon: Flag$1
|
|
221
281
|
},
|
|
222
282
|
{
|
|
223
283
|
key: "compass",
|
|
224
284
|
label: "Compass",
|
|
225
|
-
icon: Compass
|
|
285
|
+
icon: Compass$1
|
|
226
286
|
},
|
|
227
287
|
{
|
|
228
288
|
key: "map",
|
|
229
289
|
label: "Map",
|
|
230
|
-
icon:
|
|
290
|
+
icon: MapIcon
|
|
231
291
|
},
|
|
232
292
|
{
|
|
233
293
|
key: "plane",
|
|
234
294
|
label: "Travel",
|
|
235
|
-
icon: Plane
|
|
295
|
+
icon: Plane$1
|
|
236
296
|
},
|
|
237
297
|
{
|
|
238
298
|
key: "anchor",
|
|
239
299
|
label: "Anchor",
|
|
240
|
-
icon: Anchor
|
|
300
|
+
icon: Anchor$1
|
|
241
301
|
},
|
|
242
302
|
{
|
|
243
303
|
key: "mountain",
|
|
244
304
|
label: "Mountain",
|
|
245
|
-
icon: Mountain
|
|
305
|
+
icon: Mountain$1
|
|
246
306
|
},
|
|
247
307
|
{
|
|
248
308
|
key: "leaf",
|
|
249
309
|
label: "Garden",
|
|
250
|
-
icon: Leaf
|
|
310
|
+
icon: Leaf$1
|
|
251
311
|
},
|
|
252
312
|
{
|
|
253
313
|
key: "sun",
|
|
254
314
|
label: "Sun",
|
|
255
|
-
icon: Sun
|
|
315
|
+
icon: Sun$1
|
|
256
316
|
},
|
|
257
317
|
{
|
|
258
318
|
key: "moon",
|
|
259
319
|
label: "Moon",
|
|
260
|
-
icon: Moon
|
|
320
|
+
icon: Moon$1
|
|
261
321
|
},
|
|
262
322
|
{
|
|
263
323
|
key: "palette",
|
|
264
324
|
label: "Design",
|
|
265
|
-
icon: Palette
|
|
325
|
+
icon: Palette$1
|
|
266
326
|
},
|
|
267
327
|
{
|
|
268
328
|
key: "camera",
|
|
269
329
|
label: "Camera",
|
|
270
|
-
icon: Camera
|
|
330
|
+
icon: Camera$1
|
|
271
331
|
},
|
|
272
332
|
{
|
|
273
333
|
key: "music",
|
|
274
334
|
label: "Music",
|
|
275
|
-
icon: Music
|
|
335
|
+
icon: Music$1
|
|
276
336
|
},
|
|
277
337
|
{
|
|
278
338
|
key: "gamepad",
|
|
279
339
|
label: "Games",
|
|
280
|
-
icon: Gamepad2
|
|
340
|
+
icon: Gamepad2$1
|
|
281
341
|
},
|
|
282
342
|
{
|
|
283
343
|
key: "coffee",
|
|
284
344
|
label: "Coffee",
|
|
285
|
-
icon: Coffee
|
|
345
|
+
icon: Coffee$1
|
|
286
346
|
},
|
|
287
347
|
{
|
|
288
348
|
key: "utensils",
|
|
289
349
|
label: "Kitchen",
|
|
290
|
-
icon: Utensils
|
|
350
|
+
icon: Utensils$1
|
|
291
351
|
},
|
|
292
352
|
{
|
|
293
353
|
key: "dumbbell",
|
|
294
354
|
label: "Gym",
|
|
295
|
-
icon: Dumbbell
|
|
355
|
+
icon: Dumbbell$1
|
|
296
356
|
},
|
|
297
357
|
{
|
|
298
358
|
key: "gem",
|
|
299
359
|
label: "Gem",
|
|
300
|
-
icon: Gem
|
|
360
|
+
icon: Gem$1
|
|
301
361
|
},
|
|
302
362
|
{
|
|
303
363
|
key: "messages",
|
|
304
364
|
label: "Chat",
|
|
305
|
-
icon: MessagesSquare
|
|
365
|
+
icon: MessagesSquare$1
|
|
306
366
|
},
|
|
307
367
|
{
|
|
308
368
|
key: "shapes",
|
|
309
369
|
label: "Shapes",
|
|
310
|
-
icon: Shapes
|
|
370
|
+
icon: Shapes$1
|
|
311
371
|
}
|
|
312
372
|
];
|
|
313
373
|
var shellIconByKey = new Map(shellIconEntries.map((entry) => [entry.key, entry.icon]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-icons.js","names":["MapIcon"],"sources":["../../../../src/components/composites/icon-picker/shell-icons.ts"],"sourcesContent":["import {\n Anchor,\n Bot,\n Box,\n BookOpen,\n Brain,\n Briefcase,\n Building2,\n Camera,\n ChartColumn,\n Cloud,\n Code,\n Coffee,\n Compass,\n Cpu,\n Database,\n Dumbbell,\n Flag,\n Flame,\n FlaskConical,\n Folder,\n FolderGit2,\n Gamepad2,\n Gem,\n Globe,\n GraduationCap,\n Hammer,\n Heart,\n House,\n Key,\n Layers,\n Leaf,\n Lightbulb,\n type LucideIcon,\n Map as MapIcon,\n Megaphone,\n MessagesSquare,\n Moon,\n Mountain,\n Music,\n Newspaper,\n Package,\n Palette,\n Plane,\n Puzzle,\n Rocket,\n Server,\n Shapes,\n Shield,\n ShoppingCart,\n Sparkles,\n Star,\n Sun,\n Target,\n Terminal,\n Trophy,\n Users,\n Utensils,\n Wallet,\n Wrench,\n Zap,\n} from 'lucide-solid'\n\n/**\n * The icons a workspace or a project may choose for itself.\n *\n * A curated set rather than the whole Lucide catalogue, for two reasons the\n * picker depends on: the keys are persisted, so each one is a promise that the\n * glyph keeps existing, and every icon here is imported by name so a consumer's\n * bundle pays for these few dozen glyphs and not for the library.\n *\n * `home`, `box` and `folder` lead the list because they are the defaults the\n * apps already use: Home workspaces carry `home`, other workspaces `box` and\n * projects `folder`. Keys are lowercase kebab-case so they are valid project\n * `iconKey`s as well as workspace logo values.\n */\nexport const shellIconEntries = [\n { key: 'home', label: 'Home', icon: House },\n { key: 'box', label: 'Box', icon: Box },\n { key: 'folder', label: 'Folder', icon: Folder },\n { key: 'git-folder', label: 'Repository', icon: FolderGit2 },\n { key: 'briefcase', label: 'Briefcase', icon: Briefcase },\n { key: 'building', label: 'Building', icon: Building2 },\n { key: 'users', label: 'Team', icon: Users },\n { key: 'rocket', label: 'Rocket', icon: Rocket },\n { key: 'star', label: 'Star', icon: Star },\n { key: 'heart', label: 'Heart', icon: Heart },\n { key: 'code', label: 'Code', icon: Code },\n { key: 'terminal', label: 'Terminal', icon: Terminal },\n { key: 'cpu', label: 'Chip', icon: Cpu },\n { key: 'server', label: 'Server', icon: Server },\n { key: 'database', label: 'Database', icon: Database },\n { key: 'cloud', label: 'Cloud', icon: Cloud },\n { key: 'globe', label: 'Globe', icon: Globe },\n { key: 'bot', label: 'Agent', icon: Bot },\n { key: 'brain', label: 'Brain', icon: Brain },\n { key: 'sparkles', label: 'Sparkles', icon: Sparkles },\n { key: 'lightbulb', label: 'Idea', icon: Lightbulb },\n { key: 'flask', label: 'Lab', icon: FlaskConical },\n { key: 'book', label: 'Book', icon: BookOpen },\n { key: 'graduation', label: 'Study', icon: GraduationCap },\n { key: 'newspaper', label: 'News', icon: Newspaper },\n { key: 'megaphone', label: 'Marketing', icon: Megaphone },\n { key: 'chart', label: 'Chart', icon: ChartColumn },\n { key: 'wallet', label: 'Finance', icon: Wallet },\n { key: 'cart', label: 'Shop', icon: ShoppingCart },\n { key: 'package', label: 'Package', icon: Package },\n { key: 'layers', label: 'Layers', icon: Layers },\n { key: 'puzzle', label: 'Puzzle', icon: Puzzle },\n { key: 'shield', label: 'Security', icon: Shield },\n { key: 'key', label: 'Key', icon: Key },\n { key: 'wrench', label: 'Tools', icon: Wrench },\n { key: 'hammer', label: 'Build', icon: Hammer },\n { key: 'zap', label: 'Bolt', icon: Zap },\n { key: 'flame', label: 'Flame', icon: Flame },\n { key: 'target', label: 'Target', icon: Target },\n { key: 'trophy', label: 'Trophy', icon: Trophy },\n { key: 'flag', label: 'Flag', icon: Flag },\n { key: 'compass', label: 'Compass', icon: Compass },\n { key: 'map', label: 'Map', icon: MapIcon },\n { key: 'plane', label: 'Travel', icon: Plane },\n { key: 'anchor', label: 'Anchor', icon: Anchor },\n { key: 'mountain', label: 'Mountain', icon: Mountain },\n { key: 'leaf', label: 'Garden', icon: Leaf },\n { key: 'sun', label: 'Sun', icon: Sun },\n { key: 'moon', label: 'Moon', icon: Moon },\n { key: 'palette', label: 'Design', icon: Palette },\n { key: 'camera', label: 'Camera', icon: Camera },\n { key: 'music', label: 'Music', icon: Music },\n { key: 'gamepad', label: 'Games', icon: Gamepad2 },\n { key: 'coffee', label: 'Coffee', icon: Coffee },\n { key: 'utensils', label: 'Kitchen', icon: Utensils },\n { key: 'dumbbell', label: 'Gym', icon: Dumbbell },\n { key: 'gem', label: 'Gem', icon: Gem },\n { key: 'messages', label: 'Chat', icon: MessagesSquare },\n { key: 'shapes', label: 'Shapes', icon: Shapes },\n] as const satisfies readonly Readonly<{ key: string; label: string; icon: LucideIcon }>[]\n\nexport type ShellIconKey = (typeof shellIconEntries)[number]['key']\n\nconst shellIconByKey: ReadonlyMap<string, LucideIcon> = new Map(\n shellIconEntries.map((entry) => [entry.key, entry.icon])\n)\n\n/** Whether a stored string names an icon in the curated set. */\nexport function isShellIconKey(value: string): value is ShellIconKey {\n return shellIconByKey.has(value)\n}\n\n/**\n * The glyph for a stored key, or `fallback` when the key is not in the set.\n * Callers pass the fallback their surface wants (a workspace falls back to\n * `box`, a project to `folder`), so an unknown key degrades to the default\n * rather than to an empty tile.\n */\nexport function resolveShellIcon(\n key: string | null | undefined,\n fallback: ShellIconKey = 'folder'\n): LucideIcon {\n return (key ? shellIconByKey.get(key) : undefined) ?? shellIconByKey.get(fallback)!\n}\n\n/** The picker's accessible name for a key. */\nexport function shellIconLabel(key: string): string {\n return shellIconEntries.find((entry) => entry.key === key)?.label ?? key\n}\n"],"mappings":";;;;;;;;;;;;;;;AA4EA,IAAa,mBAAmB;CAC9B;EAAE,KAAK;EAAQ,OAAO;EAAQ,MAAM;CAAM;CAC1C;EAAE,KAAK;EAAO,OAAO;EAAO,MAAM;CAAI;CACtC;EAAE,KAAK;EAAU,OAAO;EAAU,MAAM;CAAO;CAC/C;EAAE,KAAK;EAAc,OAAO;EAAc,MAAM;CAAW;CAC3D;EAAE,KAAK;EAAa,OAAO;EAAa,MAAM;CAAU;CACxD;EAAE,KAAK;EAAY,OAAO;EAAY,MAAM;CAAU;CACtD;EAAE,KAAK;EAAS,OAAO;EAAQ,MAAM;CAAM;CAC3C;EAAE,KAAK;EAAU,OAAO;EAAU,MAAM;CAAO;CAC/C;EAAE,KAAK;EAAQ,OAAO;EAAQ,MAAM;CAAK;CACzC;EAAE,KAAK;EAAS,OAAO;EAAS,MAAM;CAAM;CAC5C;EAAE,KAAK;EAAQ,OAAO;EAAQ,MAAM;CAAK;CACzC;EAAE,KAAK;EAAY,OAAO;EAAY,MAAM;CAAS;CACrD;EAAE,KAAK;EAAO,OAAO;EAAQ,MAAM;CAAI;CACvC;EAAE,KAAK;EAAU,OAAO;EAAU,MAAM;CAAO;CAC/C;EAAE,KAAK;EAAY,OAAO;EAAY,MAAM;CAAS;CACrD;EAAE,KAAK;EAAS,OAAO;EA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B,MAAM,UAAU,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS;AACvE"}
|
|
1
|
+
{"version":3,"file":"shell-icons.js","names":["Anchor","LucideAnchor","Bot","LucideBot","Box","LucideBox","BookOpen","LucideBookOpen","Brain","LucideBrain","Briefcase","LucideBriefcase","Building2","LucideBuilding2","Camera","LucideCamera","ChartColumn","LucideChartColumn","Cloud","LucideCloud","Code","LucideCode","Coffee","LucideCoffee","Compass","LucideCompass","Cpu","LucideCpu","Database","LucideDatabase","Dumbbell","LucideDumbbell","Flag","LucideFlag","Flame","LucideFlame","FlaskConical","LucideFlaskConical","Folder","LucideFolder","FolderGit2","LucideFolderGit2","Gamepad2","LucideGamepad2","Gem","LucideGem","Globe","LucideGlobe","GraduationCap","LucideGraduationCap","Hammer","LucideHammer","Heart","LucideHeart","House","LucideHouse","Key","LucideKey","Layers","LucideLayers","Leaf","LucideLeaf","Lightbulb","LucideLightbulb","LucideMapIcon","Megaphone","LucideMegaphone","MessagesSquare","LucideMessagesSquare","Moon","LucideMoon","Mountain","LucideMountain","Music","LucideMusic","Newspaper","LucideNewspaper","Package","LucidePackage","Palette","LucidePalette","Plane","LucidePlane","Puzzle","LucidePuzzle","Rocket","LucideRocket","Server","LucideServer","Shapes","LucideShapes","Shield","LucideShield","ShoppingCart","LucideShoppingCart","Sparkles","LucideSparkles","Star","LucideStar","Sun","LucideSun","Target","LucideTarget","Terminal","LucideTerminal","Trophy","LucideTrophy","Users","LucideUsers","Utensils","LucideUtensils","Wallet","LucideWallet","Wrench","LucideWrench","Zap","LucideZap"],"sources":["../../../../src/components/composites/icon-picker/shell-icons.ts"],"sourcesContent":["import {\n Anchor as LucideAnchor,\n Bot as LucideBot,\n Box as LucideBox,\n BookOpen as LucideBookOpen,\n Brain as LucideBrain,\n Briefcase as LucideBriefcase,\n Building2 as LucideBuilding2,\n Camera as LucideCamera,\n ChartColumn as LucideChartColumn,\n Cloud as LucideCloud,\n Code as LucideCode,\n Coffee as LucideCoffee,\n Compass as LucideCompass,\n Cpu as LucideCpu,\n Database as LucideDatabase,\n Dumbbell as LucideDumbbell,\n Flag as LucideFlag,\n Flame as LucideFlame,\n FlaskConical as LucideFlaskConical,\n Folder as LucideFolder,\n FolderGit2 as LucideFolderGit2,\n Gamepad2 as LucideGamepad2,\n Gem as LucideGem,\n Globe as LucideGlobe,\n GraduationCap as LucideGraduationCap,\n Hammer as LucideHammer,\n Heart as LucideHeart,\n House as LucideHouse,\n Key as LucideKey,\n Layers as LucideLayers,\n Leaf as LucideLeaf,\n Lightbulb as LucideLightbulb,\n type LucideIcon,\n Map as LucideMapIcon,\n Megaphone as LucideMegaphone,\n MessagesSquare as LucideMessagesSquare,\n Moon as LucideMoon,\n Mountain as LucideMountain,\n Music as LucideMusic,\n Newspaper as LucideNewspaper,\n Package as LucidePackage,\n Palette as LucidePalette,\n Plane as LucidePlane,\n Puzzle as LucidePuzzle,\n Rocket as LucideRocket,\n Server as LucideServer,\n Shapes as LucideShapes,\n Shield as LucideShield,\n ShoppingCart as LucideShoppingCart,\n Sparkles as LucideSparkles,\n Star as LucideStar,\n Sun as LucideSun,\n Target as LucideTarget,\n Terminal as LucideTerminal,\n Trophy as LucideTrophy,\n Users as LucideUsers,\n Utensils as LucideUtensils,\n Wallet as LucideWallet,\n Wrench as LucideWrench,\n Zap as LucideZap,\n} from 'lucide-solid'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Anchor = fastIcon(LucideAnchor)\nconst Bot = fastIcon(LucideBot)\nconst Box = fastIcon(LucideBox)\nconst BookOpen = fastIcon(LucideBookOpen)\nconst Brain = fastIcon(LucideBrain)\nconst Briefcase = fastIcon(LucideBriefcase)\nconst Building2 = fastIcon(LucideBuilding2)\nconst Camera = fastIcon(LucideCamera)\nconst ChartColumn = fastIcon(LucideChartColumn)\nconst Cloud = fastIcon(LucideCloud)\nconst Code = fastIcon(LucideCode)\nconst Coffee = fastIcon(LucideCoffee)\nconst Compass = fastIcon(LucideCompass)\nconst Cpu = fastIcon(LucideCpu)\nconst Database = fastIcon(LucideDatabase)\nconst Dumbbell = fastIcon(LucideDumbbell)\nconst Flag = fastIcon(LucideFlag)\nconst Flame = fastIcon(LucideFlame)\nconst FlaskConical = fastIcon(LucideFlaskConical)\nconst Folder = fastIcon(LucideFolder)\nconst FolderGit2 = fastIcon(LucideFolderGit2)\nconst Gamepad2 = fastIcon(LucideGamepad2)\nconst Gem = fastIcon(LucideGem)\nconst Globe = fastIcon(LucideGlobe)\nconst GraduationCap = fastIcon(LucideGraduationCap)\nconst Hammer = fastIcon(LucideHammer)\nconst Heart = fastIcon(LucideHeart)\nconst House = fastIcon(LucideHouse)\nconst Key = fastIcon(LucideKey)\nconst Layers = fastIcon(LucideLayers)\nconst Leaf = fastIcon(LucideLeaf)\nconst Lightbulb = fastIcon(LucideLightbulb)\nconst MapIcon = fastIcon(LucideMapIcon)\nconst Megaphone = fastIcon(LucideMegaphone)\nconst MessagesSquare = fastIcon(LucideMessagesSquare)\nconst Moon = fastIcon(LucideMoon)\nconst Mountain = fastIcon(LucideMountain)\nconst Music = fastIcon(LucideMusic)\nconst Newspaper = fastIcon(LucideNewspaper)\nconst Package = fastIcon(LucidePackage)\nconst Palette = fastIcon(LucidePalette)\nconst Plane = fastIcon(LucidePlane)\nconst Puzzle = fastIcon(LucidePuzzle)\nconst Rocket = fastIcon(LucideRocket)\nconst Server = fastIcon(LucideServer)\nconst Shapes = fastIcon(LucideShapes)\nconst Shield = fastIcon(LucideShield)\nconst ShoppingCart = fastIcon(LucideShoppingCart)\nconst Sparkles = fastIcon(LucideSparkles)\nconst Star = fastIcon(LucideStar)\nconst Sun = fastIcon(LucideSun)\nconst Target = fastIcon(LucideTarget)\nconst Terminal = fastIcon(LucideTerminal)\nconst Trophy = fastIcon(LucideTrophy)\nconst Users = fastIcon(LucideUsers)\nconst Utensils = fastIcon(LucideUtensils)\nconst Wallet = fastIcon(LucideWallet)\nconst Wrench = fastIcon(LucideWrench)\nconst Zap = fastIcon(LucideZap)\n\n/**\n * The icons a workspace or a project may choose for itself.\n *\n * A curated set rather than the whole Lucide catalogue, for two reasons the\n * picker depends on: the keys are persisted, so each one is a promise that the\n * glyph keeps existing, and every icon here is imported by name so a consumer's\n * bundle pays for these few dozen glyphs and not for the library.\n *\n * `home`, `box` and `folder` lead the list because they are the defaults the\n * apps already use: Home workspaces carry `home`, other workspaces `box` and\n * projects `folder`. Keys are lowercase kebab-case so they are valid project\n * `iconKey`s as well as workspace logo values.\n */\nexport const shellIconEntries = [\n { key: 'home', label: 'Home', icon: House },\n { key: 'box', label: 'Box', icon: Box },\n { key: 'folder', label: 'Folder', icon: Folder },\n { key: 'git-folder', label: 'Repository', icon: FolderGit2 },\n { key: 'briefcase', label: 'Briefcase', icon: Briefcase },\n { key: 'building', label: 'Building', icon: Building2 },\n { key: 'users', label: 'Team', icon: Users },\n { key: 'rocket', label: 'Rocket', icon: Rocket },\n { key: 'star', label: 'Star', icon: Star },\n { key: 'heart', label: 'Heart', icon: Heart },\n { key: 'code', label: 'Code', icon: Code },\n { key: 'terminal', label: 'Terminal', icon: Terminal },\n { key: 'cpu', label: 'Chip', icon: Cpu },\n { key: 'server', label: 'Server', icon: Server },\n { key: 'database', label: 'Database', icon: Database },\n { key: 'cloud', label: 'Cloud', icon: Cloud },\n { key: 'globe', label: 'Globe', icon: Globe },\n { key: 'bot', label: 'Agent', icon: Bot },\n { key: 'brain', label: 'Brain', icon: Brain },\n { key: 'sparkles', label: 'Sparkles', icon: Sparkles },\n { key: 'lightbulb', label: 'Idea', icon: Lightbulb },\n { key: 'flask', label: 'Lab', icon: FlaskConical },\n { key: 'book', label: 'Book', icon: BookOpen },\n { key: 'graduation', label: 'Study', icon: GraduationCap },\n { key: 'newspaper', label: 'News', icon: Newspaper },\n { key: 'megaphone', label: 'Marketing', icon: Megaphone },\n { key: 'chart', label: 'Chart', icon: ChartColumn },\n { key: 'wallet', label: 'Finance', icon: Wallet },\n { key: 'cart', label: 'Shop', icon: ShoppingCart },\n { key: 'package', label: 'Package', icon: Package },\n { key: 'layers', label: 'Layers', icon: Layers },\n { key: 'puzzle', label: 'Puzzle', icon: Puzzle },\n { key: 'shield', label: 'Security', icon: Shield },\n { key: 'key', label: 'Key', icon: Key },\n { key: 'wrench', label: 'Tools', icon: Wrench },\n { key: 'hammer', label: 'Build', icon: Hammer },\n { key: 'zap', label: 'Bolt', icon: Zap },\n { key: 'flame', label: 'Flame', icon: Flame },\n { key: 'target', label: 'Target', icon: Target },\n { key: 'trophy', label: 'Trophy', icon: Trophy },\n { key: 'flag', label: 'Flag', icon: Flag },\n { key: 'compass', label: 'Compass', icon: Compass },\n { key: 'map', label: 'Map', icon: MapIcon },\n { key: 'plane', label: 'Travel', icon: Plane },\n { key: 'anchor', label: 'Anchor', icon: Anchor },\n { key: 'mountain', label: 'Mountain', icon: Mountain },\n { key: 'leaf', label: 'Garden', icon: Leaf },\n { key: 'sun', label: 'Sun', icon: Sun },\n { key: 'moon', label: 'Moon', icon: Moon },\n { key: 'palette', label: 'Design', icon: Palette },\n { key: 'camera', label: 'Camera', icon: Camera },\n { key: 'music', label: 'Music', icon: Music },\n { key: 'gamepad', label: 'Games', icon: Gamepad2 },\n { key: 'coffee', label: 'Coffee', icon: Coffee },\n { key: 'utensils', label: 'Kitchen', icon: Utensils },\n { key: 'dumbbell', label: 'Gym', icon: Dumbbell },\n { key: 'gem', label: 'Gem', icon: Gem },\n { key: 'messages', label: 'Chat', icon: MessagesSquare },\n { key: 'shapes', label: 'Shapes', icon: Shapes },\n] as const satisfies readonly Readonly<{ key: string; label: string; icon: LucideIcon }>[]\n\nexport type ShellIconKey = (typeof shellIconEntries)[number]['key']\n\nconst shellIconByKey: ReadonlyMap<string, LucideIcon> = new Map(\n shellIconEntries.map((entry) => [entry.key, entry.icon])\n)\n\n/** Whether a stored string names an icon in the curated set. */\nexport function isShellIconKey(value: string): value is ShellIconKey {\n return shellIconByKey.has(value)\n}\n\n/**\n * The glyph for a stored key, or `fallback` when the key is not in the set.\n * Callers pass the fallback their surface wants (a workspace falls back to\n * `box`, a project to `folder`), so an unknown key degrades to the default\n * rather than to an empty tile.\n */\nexport function resolveShellIcon(\n key: string | null | undefined,\n fallback: ShellIconKey = 'folder'\n): LucideIcon {\n return (key ? shellIconByKey.get(key) : undefined) ?? shellIconByKey.get(fallback)!\n}\n\n/** The picker's accessible name for a key. */\nexport function shellIconLabel(key: string): string {\n return shellIconEntries.find((entry) => entry.key === key)?.label ?? key\n}\n"],"mappings":";;;AAiEA,IAAMA,WAAS,SAASC,MAAY;AACpC,IAAMC,QAAM,SAASC,GAAS;AAC9B,IAAMC,QAAM,SAASC,GAAS;AAC9B,IAAMC,aAAW,SAASC,QAAc;AACxC,IAAMC,UAAQ,SAASC,KAAW;AAClC,IAAMC,cAAY,SAASC,SAAe;AAC1C,IAAMC,cAAY,SAASC,SAAe;AAC1C,IAAMC,WAAS,SAASC,MAAY;AACpC,IAAMC,gBAAc,SAASC,WAAiB;AAC9C,IAAMC,UAAQ,SAASC,KAAW;AAClC,IAAMC,SAAO,SAASC,IAAU;AAChC,IAAMC,WAAS,SAASC,MAAY;AACpC,IAAMC,YAAU,SAASC,OAAa;AACtC,IAAMC,QAAM,SAASC,GAAS;AAC9B,IAAMC,aAAW,SAASC,QAAc;AACxC,IAAMC,aAAW,SAASC,QAAc;AACxC,IAAMC,SAAO,SAASC,IAAU;AAChC,IAAMC,UAAQ,SAASC,KAAW;AAClC,IAAMC,iBAAe,SAASC,YAAkB;AAChD,IAAMC,WAAS,SAASC,MAAY;AACpC,IAAMC,eAAa,SAASC,UAAgB;AAC5C,IAAMC,aAAW,SAASC,QAAc;AACxC,IAAMC,QAAM,SAASC,GAAS;AAC9B,IAAMC,UAAQ,SAASC,KAAW;AAClC,IAAMC,kBAAgB,SAASC,aAAmB;AAClD,IAAMC,WAAS,SAASC,MAAY;AACpC,IAAMC,UAAQ,SAASC,KAAW;AAClC,IAAMC,UAAQ,SAASC,KAAW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C;EAAE,KAAK;EAAW,OAAO;EAAS,MAAM/B;CAAS;CACjD;EAAE,KAAK;EAAU,OAAO;EAAU,MAAMpB;CAAO;CAC/C;EAAE,KAAK;EAAY,OAAO;EAAW,MAAMuF;CAAS;CACpD;EAAE,KAAK;EAAY,OAAO;EAAO,MAAM/E;CAAS;CAChD;EAAE,KAAK;EAAO,OAAO;EAAO,MAAMc;CAAI;CACtC;EAAE,KAAK;EAAY,OAAO;EAAQ,MAAMuB;CAAe;CACvD;EAAE,KAAK;EAAU,OAAO;EAAU,MAAMsB;CAAO;AACjD;AAIA,IAAM,iBAAkD,IAAI,IAC1D,iBAAiB,KAAK,UAAU,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,CACzD;;AAGA,SAAgB,eAAe,OAAsC;CACnE,OAAO,eAAe,IAAI,KAAK;AACjC;;;;;;;AAQA,SAAgB,iBACd,KACA,WAAyB,UACb;CACZ,QAAQ,MAAM,eAAe,IAAI,GAAG,IAAI,KAAA,MAAc,eAAe,IAAI,QAAQ;AACnF;;AAGA,SAAgB,eAAe,KAAqB;CAClD,OAAO,iBAAiB,MAAM,UAAU,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS;AACvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-citation.d.ts","sourceRoot":"","sources":["../../../../src/components/composites/inline-citation/inline-citation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAGxD,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"inline-citation.d.ts","sourceRoot":"","sources":["../../../../src/components/composites/inline-citation/inline-citation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAGxD,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAA;AAgB1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,0DAA0D;IAC1D,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAID,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,kCAyMxD;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,gBAAgB,CAa7E"}
|
|
@@ -6,6 +6,7 @@ import { TextLink } from "../../ui/text-link/text-link.js";
|
|
|
6
6
|
import { safeSourceUrl, sourceHost, sourceTitle } from "../sources/source.js";
|
|
7
7
|
import { boundText } from "../../../lib/text.js";
|
|
8
8
|
import { citationLabel, citationName, nextCitationMode, wrapIndex } from "./citation.js";
|
|
9
|
+
import { fastIcon } from "../../../lib/fast-icon.js";
|
|
9
10
|
import { createComponent, insert, memo, template } from "solid-js/web";
|
|
10
11
|
import { ChevronLeft, ChevronRight } from "lucide-solid";
|
|
11
12
|
import { Show, createEffect, createSignal, onCleanup, splitProps } from "solid-js";
|
|
@@ -19,6 +20,8 @@ var _tmpl$6 = /*#__PURE__*/ template(`<p class="m-0 text-xs text-muted-foregroun
|
|
|
19
20
|
var _tmpl$7 = /*#__PURE__*/ template(`<p class="m-0 text-xs text-muted-foreground">Address not linked`);
|
|
20
21
|
var _tmpl$8 = /*#__PURE__*/ template(`<p class="m-0 line-clamp-6 text-xs text-muted-foreground [overflow-wrap:anywhere]">`);
|
|
21
22
|
var _tmpl$9 = /*#__PURE__*/ template(`<span class=visually-hidden> (opens in a new tab)`);
|
|
23
|
+
var ChevronLeft$1 = fastIcon(ChevronLeft);
|
|
24
|
+
var ChevronRight$1 = fastIcon(ChevronRight);
|
|
22
25
|
var LEAVE_DELAY = 200;
|
|
23
26
|
function InlineCitation(props) {
|
|
24
27
|
const [local] = splitProps(props, [
|
|
@@ -189,7 +192,7 @@ function InlineCitation(props) {
|
|
|
189
192
|
tooltip: "Previous source",
|
|
190
193
|
onClick: () => setPosition((value) => wrapIndex(value - 1, count())),
|
|
191
194
|
get children() {
|
|
192
|
-
return createComponent(ChevronLeft, {});
|
|
195
|
+
return createComponent(ChevronLeft$1, {});
|
|
193
196
|
}
|
|
194
197
|
}), null);
|
|
195
198
|
insert(_el$1, createComponent(ActionButton, {
|
|
@@ -199,7 +202,7 @@ function InlineCitation(props) {
|
|
|
199
202
|
tooltip: "Next source",
|
|
200
203
|
onClick: () => setPosition((value) => wrapIndex(value + 1, count())),
|
|
201
204
|
get children() {
|
|
202
|
-
return createComponent(ChevronRight, {});
|
|
205
|
+
return createComponent(ChevronRight$1, {});
|
|
203
206
|
}
|
|
204
207
|
}), null);
|
|
205
208
|
return _el$6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-citation.js","names":["ChevronLeft","ChevronRight","createEffect","createSignal","onCleanup","Show","splitProps","cn","ActionButton","Button","Popover","PopoverContent","PopoverTitle","PopoverTrigger","TextLink","safeSourceUrl","sourceHost","sourceTitle","boundText","citationLabel","citationName","nextCitationMode","wrapIndex","sources","index","hoverDelay","class","LEAVE_DELAY","InlineCitation","props","local","mode","setMode","position","setPosition","timer","setTimeout","content","pressing","restoringFocus","keyboardPeek","setKeyboardPeek","focusInCard","escapeClosedTooltip","onWindowKeyDown","event","key","ownerDocument","querySelector","window","addEventListener","removeEventListener","count","length","active","clear","undefined","clearTimeout","dispatch","current","next","schedule","delay","onPointerEnter","pointerType","onPointerLeave","onClick","wasPeeking","queueMicrotask","focus","_$createComponent","when","children","_el$","_tmpl$3","_$insert","open","onOpenChange","placement","gutter","as","variant","size","touchTarget","onFocus","currentTarget","matches","onBlur","_el$2","_tmpl$","_el$3","_tmpl$2","firstChild","ref","element","inert","onOpenAutoFocus","preventDefault","onFocusIn","onKeyDown","onCloseAutoFocus","returnFocus","source","_el$5","_tmpl$5","_el$6","_tmpl$4","_el$7","_el$0","nextSibling","_el$1","tooltip","value","CitationDetails","messageCitations","render","numbers","flatMap","number","href","url","host","snippet","withheld","_el$10","_tmpl$6","target","rel","_$memo","_tmpl$9","_tmpl$7","_el$12","_tmpl$8"],"sources":["../../../../src/components/composites/inline-citation/inline-citation.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight } from 'lucide-solid'\nimport { createEffect, createSignal, onCleanup, Show, splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { ActionButton } from '../action-button'\nimport { Button } from '../../ui/button'\nimport type { MessageCitations } from '../../ui/message'\nimport { Popover, PopoverContent, PopoverTitle, PopoverTrigger } from '../../ui/popover'\nimport { TextLink } from '../../ui/text-link'\nimport {\n SOURCE_SNIPPET_LIMIT,\n safeSourceUrl,\n sourceHost,\n sourceTitle,\n type Source,\n} from '../sources/source'\nimport { boundText } from '#lib/text'\nimport {\n citationLabel,\n citationName,\n nextCitationMode,\n wrapIndex,\n type CitationEvent,\n type CitationMode,\n} from './citation'\n\n/**\n * InlineCitation.\n *\n * A small badge inside a sentence, \"1\", or a host, that opens the source(s)\n * behind the claim: title, host, address, snippet, and Previous/Next when several\n * sources share one marker. It is an inline element for prose such as\n * `MessageText`: it never breaks across lines, stays on the text baseline, and\n * adds no block of its own. For the list of everything a reply used, reach for\n * `Sources`; the two number sources the same way.\n *\n * ## One popover, two ways to open it\n *\n * A hover card would exclude everyone who is not holding a mouse, so this is a\n * `Popover` that a pointer can also *peek* at:\n *\n * - **Hover or keyboard focus peeks.** The popover opens without taking focus\n * and closes when the pointer or focus leaves. Touch has no hover, so a touch\n * never peeks. A keyboard peek's card is inert, so Tab moves on from the badge\n * to the next control on the page instead of into a card that is closing.\n * - **Click, tap, Enter or Space pins.** Focus moves into the popover so its\n * link and Previous/Next are reachable; it stays until Escape, an outside press,\n * or the badge is pressed again, and focus returns to the badge. Pressing a badge\n * that is only peeking pins it rather than toggling it shut, the transitions\n * are the pure `nextCitationMode`.\n *\n * Kobalte's trigger toggles on every press, so `open` is controlled and its own\n * close request is ignored for the press that we already decided (`pressing`).\n * Without that, hover-then-click, the commonest pointer path, would close the card.\n *\n * ## It makes no claim without sources\n *\n * No sources renders nothing: a marker that points nowhere is not a citation.\n * The address is a link only when `safeSourceUrl` allows it; the host comes from\n * the parsed URL; titles and snippets are clipped, cleaned of direction\n * overrides and rendered as text. The badge's accessible name carries the title\n * and host (the visible label is only a number or a host), so a reader hears\n * what is cited without opening anything.\n */\nexport type InlineCitationProps = {\n /** One source, or several that support the same claim. */\n sources: readonly Source[]\n /**\n * The 1-based number to show, matching the source's position in `Sources`.\n * Omit it to show the host instead; a number is never guessed.\n */\n index?: number\n /** Milliseconds a pointer rests before the peek opens. */\n hoverDelay?: number\n class?: string\n}\n\nconst LEAVE_DELAY = 200\n\nexport function InlineCitation(props: InlineCitationProps) {\n const [local] = splitProps(props, ['sources', 'index', 'hoverDelay', 'class'])\n const [mode, setMode] = createSignal<CitationMode>('closed')\n const [position, setPosition] = createSignal(0)\n let timer: ReturnType<typeof setTimeout> | undefined\n let content: HTMLElement | undefined\n let pressing = false\n // Focus handed back to the badge as the popover closes is not a request to\n // peek again; without this, Escape from a pinned card reopens it as a preview.\n let restoringFocus = false\n // A keyboard peek is a preview of the badge the reader is already on. Its card\n // sits in a portal at the end of the document, so if it stayed tabbable, Tab\n // from the badge would walk into the card, the card would close behind the\n // focus as the badge blurred, and focus would fall to <body> and be pulled\n // back to the badge: a keyboard trap. The card is inert until Enter or Space\n // pins it, and while it closes. A pointer peek stays interactive.\n const [keyboardPeek, setKeyboardPeek] = createSignal(false)\n // Focus goes back to the badge only when it was in the card. A peek never\n // held focus, and its close (finishing after its exit animation) must not\n // pull the reader back from wherever Tab has taken them since.\n let focusInCard = false\n // Escape closes the innermost layer first: an open Previous/Next tooltip, then\n // the card. Kobalte only lets the top-most layer take Escape, and a tooltip\n // that just closed stays the top layer while it animates out, so a second\n // Escape pressed during that exit used to vanish and leave the card open.\n // Whether a tooltip was open is read before any handler runs (window,\n // capture); an Escape that closed nothing else closes the card itself.\n let escapeClosedTooltip = false\n const onWindowKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Escape') return\n escapeClosedTooltip =\n content?.ownerDocument.querySelector('[data-slot=\"tooltip-content\"][data-expanded]') != null\n }\n createEffect(() => {\n if (mode() !== 'pinned' || typeof window === 'undefined') return\n window.addEventListener('keydown', onWindowKeyDown, true)\n onCleanup(() => window.removeEventListener('keydown', onWindowKeyDown, true))\n })\n\n const count = () => local.sources.length\n const active = () => local.sources[wrapIndex(position(), count())]\n const clear = () => {\n if (timer !== undefined) clearTimeout(timer)\n timer = undefined\n }\n onCleanup(clear)\n\n const dispatch = (event: CitationEvent) =>\n setMode((current) => {\n const next = nextCitationMode(current, event)\n if (next !== 'peek') setKeyboardPeek(false)\n else if (current === 'closed') setKeyboardPeek(event === 'focus')\n return next\n })\n const schedule = (event: CitationEvent, delay: number) => {\n clear()\n timer = setTimeout(() => dispatch(event), delay)\n }\n\n const onPointerEnter = (event: PointerEvent) => {\n if (event.pointerType === 'touch') return\n schedule('enter', local.hoverDelay ?? 150)\n }\n const onPointerLeave = (event: PointerEvent) => {\n if (event.pointerType === 'touch') return\n schedule('leave', LEAVE_DELAY)\n }\n\n const onClick = () => {\n clear()\n const wasPeeking = mode() === 'peek'\n dispatch('press')\n // Kobalte toggles right after this handler; its request is not a dismissal.\n pressing = true\n queueMicrotask(() => {\n pressing = false\n })\n // The peek never took focus; a deliberate press must hand it over, once\n // Kobalte's own toggle (which runs after this handler) has settled.\n if (wasPeeking) queueMicrotask(() => content?.focus())\n }\n\n // The badge and the popover's portal marker share one wrapper. Without it they\n // are loose siblings in the host's node list, and when the portal marker comes\n // and goes as the card opens and closes, a host that renders its inline nodes\n // as one array (MessageText) reconciles that array and can move the badge,\n // which drops keyboard focus to <body> on the badge the reader just reached.\n return (\n <Show when={count() > 0}>\n <span data-slot=\"inline-citation-root\">\n <Popover\n open={mode() !== 'closed'}\n onOpenChange={(next) => {\n if (!next && !pressing) dispatch('dismiss')\n }}\n placement=\"bottom\"\n gutter={6}\n >\n <PopoverTrigger\n as={Button}\n variant=\"subtle\"\n size=\"2xs\"\n touchTarget=\"comfortable\"\n data-slot=\"inline-citation\"\n aria-label={citationName(local.sources, local.index)}\n class={cn('mx-0.5 align-baseline tabular-nums', local.class)}\n onClick={onClick}\n onPointerEnter={onPointerEnter}\n onPointerLeave={onPointerLeave}\n onFocus={(event: FocusEvent & { currentTarget: HTMLElement }) => {\n // Mouse focus follows the press; only keyboard focus peeks.\n if (restoringFocus) return\n if (event.currentTarget.matches(':focus-visible')) dispatch('focus')\n }}\n onBlur={() => dispatch('blur')}\n >\n <span aria-hidden=\"true\" class=\"max-w-32 truncate\">\n {citationLabel(local.index, local.sources[0])}\n </span>\n <Show when={count() > 1}>\n <span aria-hidden=\"true\">+{count() - 1}</span>\n </Show>\n </PopoverTrigger>\n <PopoverContent\n ref={(element: HTMLElement) => (content = element)}\n inert={keyboardPeek() || mode() === 'closed' || undefined}\n class=\"w-72 max-w-full\"\n onOpenAutoFocus={(event: Event) => {\n if (mode() === 'peek') event.preventDefault()\n }}\n onFocusIn={() => {\n focusInCard = true\n }}\n onKeyDown={(event: KeyboardEvent) => {\n if (event.key !== 'Escape' || escapeClosedTooltip || mode() !== 'pinned') return\n dispatch('dismiss')\n }}\n onCloseAutoFocus={(event: Event) => {\n const returnFocus = focusInCard\n focusInCard = false\n if (!returnFocus) {\n event.preventDefault()\n return\n }\n // The focus move that follows is synchronous; the microtask ends the window.\n restoringFocus = true\n queueMicrotask(() => {\n restoringFocus = false\n })\n }}\n onPointerEnter={(event: PointerEvent) => {\n if (event.pointerType !== 'touch') clear()\n }}\n onPointerLeave={onPointerLeave}\n >\n <Show when={active()}>\n {(source) => (\n <div class=\"flex min-w-0 flex-col gap-1.5 px-2 py-1.5\">\n <Show when={count() > 1}>\n <div class=\"flex items-center justify-between gap-2\">\n <span\n role=\"status\"\n aria-live=\"polite\"\n class=\"text-xs text-muted-foreground tabular-nums\"\n >\n Source {wrapIndex(position(), count()) + 1} of {count()}\n </span>\n <span class=\"flex items-center gap-0.5\">\n <ActionButton\n variant=\"ghost\"\n size=\"icon-xs\"\n aria-label=\"Previous source\"\n tooltip=\"Previous source\"\n onClick={() => setPosition((value) => wrapIndex(value - 1, count()))}\n >\n <ChevronLeft />\n </ActionButton>\n <ActionButton\n variant=\"ghost\"\n size=\"icon-xs\"\n aria-label=\"Next source\"\n tooltip=\"Next source\"\n onClick={() => setPosition((value) => wrapIndex(value + 1, count()))}\n >\n <ChevronRight />\n </ActionButton>\n </span>\n </div>\n </Show>\n <PopoverTitle class=\"p-0 [overflow-wrap:anywhere]\">\n {sourceTitle(source())}\n </PopoverTitle>\n <CitationDetails source={source()} />\n </div>\n )}\n </Show>\n </PopoverContent>\n </Popover>\n </span>\n </Show>\n )\n}\n\n/**\n * Citation markers for `MessageText`, from the sources a reply really used.\n *\n * `[^2]` in the text becomes the second source's badge; `[^1,3]` one badge for\n * sources 1 and 3. A number beyond the list leaves the marker as written, and an\n * empty list makes every marker literal, so text can never cite a source the host\n * did not supply.\n *\n * <MessageText text={reply} citations={messageCitations(sources)} />\n */\nexport function messageCitations(sources: readonly Source[]): MessageCitations {\n return {\n count: sources.length,\n render: (numbers) => (\n <InlineCitation\n index={numbers[0]}\n sources={numbers.flatMap((number) => {\n const source = sources[number - 1]\n return source ? [source] : []\n })}\n />\n ),\n }\n}\n\nfunction CitationDetails(props: { source: Source }) {\n const href = () => safeSourceUrl(props.source.url)\n const host = () => sourceHost(props.source.url)\n const snippet = () =>\n props.source.snippet ? boundText(props.source.snippet, SOURCE_SNIPPET_LIMIT) : ''\n const withheld = () => props.source.url !== undefined && props.source.url !== '' && !href()\n\n return (\n <>\n <Show when={host()}>\n <p class=\"m-0 text-xs text-muted-foreground [overflow-wrap:anywhere]\">{host()}</p>\n </Show>\n <Show when={href()}>\n {(url) => (\n <TextLink\n href={url()}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n class=\"w-fit max-w-full text-xs [overflow-wrap:anywhere]\"\n >\n {boundText(url(), 96)}\n <span class=\"visually-hidden\"> (opens in a new tab)</span>\n </TextLink>\n )}\n </Show>\n <Show when={withheld()}>\n <p class=\"m-0 text-xs text-muted-foreground\">Address not linked</p>\n </Show>\n <Show when={snippet()}>\n <p class=\"m-0 line-clamp-6 text-xs text-muted-foreground [overflow-wrap:anywhere]\">\n {snippet()}\n </p>\n </Show>\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4EA,IAAM2B,cAAc;AAEpB,SAAgBC,eAAeC,OAA4B;CACzD,MAAM,CAACC,SAASxB,WAAWuB,OAAO;EAAC;EAAW;EAAS;EAAc;CAAO,CAAC;CAC7E,MAAM,CAACE,MAAMC,WAAW7B,aAA2B,QAAQ;CAC3D,MAAM,CAAC8B,UAAUC,eAAe/B,aAAa,CAAC;CAC9C,IAAIgC;CACJ,IAAIE;CACJ,IAAIC,WAAW;CAGf,IAAIC,iBAAiB;CAOrB,MAAM,CAACC,cAAcC,mBAAmBtC,aAAa,KAAK;CAI1D,IAAIuC,cAAc;CAOlB,IAAIC,sBAAsB;CAC1B,MAAMC,mBAAmBC,UAAyB;EAChD,IAAIA,MAAMC,QAAQ,UAAU;EAC5BH,sBACEN,SAASU,cAAcC,cAAc,gDAA8C,KAAK;CAC5F;CACA9C,mBAAmB;EACjB,IAAI6B,KAAK,MAAM,YAAY,OAAOkB,WAAW,aAAa;EAC1DA,OAAOC,iBAAiB,WAAWN,iBAAiB,IAAI;EACxDxC,gBAAgB6C,OAAOE,oBAAoB,WAAWP,iBAAiB,IAAI,CAAC;CAC9E,CAAC;CAED,MAAMQ,cAActB,MAAMP,QAAQ8B;CAClC,MAAMC,eAAexB,MAAMP,QAAQD,UAAUW,SAAS,GAAGmB,MAAM,CAAC;CAChE,MAAMG,cAAc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IAAI;IAAA,OAAAG;GAAA;EAAA,CAAA;EAAAtD,gBAE5EjE,MAAI;GAAA,IAACkE,OAAI;IAAA,OAAEgD,KAAK;GAAC;GAAA/C,WACdgD,QAAGlD,gBACFxD,UAAQ;IAAA,IACPyG,OAAI;KAAA,OAAEC,IAAI;IAAC;IACXM,QAAM;IACNC,KAAG;IAAA,SAAA;IAAA,IAAAvD,WAAA;KAAA,OAAA,CAAAwD,WAGF9G,UAAUsG,IAAI,GAAG,EAAE,CAAC,GAAAS,QAAA,CAAA;IAAA;GAAA,CAAA;EAGxB,CAAA;EAAA3D,gBAEFjE,MAAI;GAAA,IAACkE,OAAI;IAAA,OAAEoD,SAAS;GAAC;GAAA,IAAAnD,WAAA;IAAA,OAAA0D,QAAA;GAAA;EAAA,CAAA;EAAA5D,gBAGrBjE,MAAI;GAAA,IAACkE,OAAI;IAAA,OAAEmD,QAAQ;GAAC;GAAA,IAAAlD,WAAA;IAAA,IAAA2D,SAAAC,QAAA;IAAAzD,OAAAwD,QAEhBT,OAAO;IAAA,OAAAS;GAAA;EAAA,CAAA;CAAA;AAKlB"}
|
|
1
|
+
{"version":3,"file":"inline-citation.js","names":["ChevronLeft","LucideChevronLeft","ChevronRight","LucideChevronRight","createEffect","createSignal","onCleanup","Show","splitProps","cn","ActionButton","Button","Popover","PopoverContent","PopoverTitle","PopoverTrigger","TextLink","safeSourceUrl","sourceHost","sourceTitle","boundText","citationLabel","citationName","nextCitationMode","wrapIndex","fastIcon","sources","index","hoverDelay","class","LEAVE_DELAY","InlineCitation","props","local","mode","setMode","position","setPosition","timer","setTimeout","content","pressing","restoringFocus","keyboardPeek","setKeyboardPeek","focusInCard","escapeClosedTooltip","onWindowKeyDown","event","key","ownerDocument","querySelector","window","addEventListener","removeEventListener","count","length","active","clear","undefined","clearTimeout","dispatch","current","next","schedule","delay","onPointerEnter","pointerType","onPointerLeave","onClick","wasPeeking","queueMicrotask","focus","_$createComponent","when","children","_el$","_tmpl$3","_$insert","open","onOpenChange","placement","gutter","as","variant","size","touchTarget","onFocus","currentTarget","matches","onBlur","_el$2","_tmpl$","_el$3","_tmpl$2","firstChild","ref","element","inert","onOpenAutoFocus","preventDefault","onFocusIn","onKeyDown","onCloseAutoFocus","returnFocus","source","_el$5","_tmpl$5","_el$6","_tmpl$4","_el$7","_el$0","nextSibling","_el$1","tooltip","value","CitationDetails","messageCitations","render","numbers","flatMap","number","href","url","host","snippet","withheld","_el$10","_tmpl$6","target","rel","_$memo","_tmpl$9","_tmpl$7","_el$12","_tmpl$8"],"sources":["../../../../src/components/composites/inline-citation/inline-citation.tsx"],"sourcesContent":["import { ChevronLeft as LucideChevronLeft, ChevronRight as LucideChevronRight } from 'lucide-solid'\nimport { createEffect, createSignal, onCleanup, Show, splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { ActionButton } from '../action-button'\nimport { Button } from '../../ui/button'\nimport type { MessageCitations } from '../../ui/message'\nimport { Popover, PopoverContent, PopoverTitle, PopoverTrigger } from '../../ui/popover'\nimport { TextLink } from '../../ui/text-link'\nimport {\n SOURCE_SNIPPET_LIMIT,\n safeSourceUrl,\n sourceHost,\n sourceTitle,\n type Source,\n} from '../sources/source'\nimport { boundText } from '#lib/text'\nimport {\n citationLabel,\n citationName,\n nextCitationMode,\n wrapIndex,\n type CitationEvent,\n type CitationMode,\n} from './citation'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst ChevronLeft = fastIcon(LucideChevronLeft)\nconst ChevronRight = fastIcon(LucideChevronRight)\n\n/**\n * InlineCitation.\n *\n * A small badge inside a sentence, \"1\", or a host, that opens the source(s)\n * behind the claim: title, host, address, snippet, and Previous/Next when several\n * sources share one marker. It is an inline element for prose such as\n * `MessageText`: it never breaks across lines, stays on the text baseline, and\n * adds no block of its own. For the list of everything a reply used, reach for\n * `Sources`; the two number sources the same way.\n *\n * ## One popover, two ways to open it\n *\n * A hover card would exclude everyone who is not holding a mouse, so this is a\n * `Popover` that a pointer can also *peek* at:\n *\n * - **Hover or keyboard focus peeks.** The popover opens without taking focus\n * and closes when the pointer or focus leaves. Touch has no hover, so a touch\n * never peeks. A keyboard peek's card is inert, so Tab moves on from the badge\n * to the next control on the page instead of into a card that is closing.\n * - **Click, tap, Enter or Space pins.** Focus moves into the popover so its\n * link and Previous/Next are reachable; it stays until Escape, an outside press,\n * or the badge is pressed again, and focus returns to the badge. Pressing a badge\n * that is only peeking pins it rather than toggling it shut, the transitions\n * are the pure `nextCitationMode`.\n *\n * Kobalte's trigger toggles on every press, so `open` is controlled and its own\n * close request is ignored for the press that we already decided (`pressing`).\n * Without that, hover-then-click, the commonest pointer path, would close the card.\n *\n * ## It makes no claim without sources\n *\n * No sources renders nothing: a marker that points nowhere is not a citation.\n * The address is a link only when `safeSourceUrl` allows it; the host comes from\n * the parsed URL; titles and snippets are clipped, cleaned of direction\n * overrides and rendered as text. The badge's accessible name carries the title\n * and host (the visible label is only a number or a host), so a reader hears\n * what is cited without opening anything.\n */\nexport type InlineCitationProps = {\n /** One source, or several that support the same claim. */\n sources: readonly Source[]\n /**\n * The 1-based number to show, matching the source's position in `Sources`.\n * Omit it to show the host instead; a number is never guessed.\n */\n index?: number\n /** Milliseconds a pointer rests before the peek opens. */\n hoverDelay?: number\n class?: string\n}\n\nconst LEAVE_DELAY = 200\n\nexport function InlineCitation(props: InlineCitationProps) {\n const [local] = splitProps(props, ['sources', 'index', 'hoverDelay', 'class'])\n const [mode, setMode] = createSignal<CitationMode>('closed')\n const [position, setPosition] = createSignal(0)\n let timer: ReturnType<typeof setTimeout> | undefined\n let content: HTMLElement | undefined\n let pressing = false\n // Focus handed back to the badge as the popover closes is not a request to\n // peek again; without this, Escape from a pinned card reopens it as a preview.\n let restoringFocus = false\n // A keyboard peek is a preview of the badge the reader is already on. Its card\n // sits in a portal at the end of the document, so if it stayed tabbable, Tab\n // from the badge would walk into the card, the card would close behind the\n // focus as the badge blurred, and focus would fall to <body> and be pulled\n // back to the badge: a keyboard trap. The card is inert until Enter or Space\n // pins it, and while it closes. A pointer peek stays interactive.\n const [keyboardPeek, setKeyboardPeek] = createSignal(false)\n // Focus goes back to the badge only when it was in the card. A peek never\n // held focus, and its close (finishing after its exit animation) must not\n // pull the reader back from wherever Tab has taken them since.\n let focusInCard = false\n // Escape closes the innermost layer first: an open Previous/Next tooltip, then\n // the card. Kobalte only lets the top-most layer take Escape, and a tooltip\n // that just closed stays the top layer while it animates out, so a second\n // Escape pressed during that exit used to vanish and leave the card open.\n // Whether a tooltip was open is read before any handler runs (window,\n // capture); an Escape that closed nothing else closes the card itself.\n let escapeClosedTooltip = false\n const onWindowKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Escape') return\n escapeClosedTooltip =\n content?.ownerDocument.querySelector('[data-slot=\"tooltip-content\"][data-expanded]') != null\n }\n createEffect(() => {\n if (mode() !== 'pinned' || typeof window === 'undefined') return\n window.addEventListener('keydown', onWindowKeyDown, true)\n onCleanup(() => window.removeEventListener('keydown', onWindowKeyDown, true))\n })\n\n const count = () => local.sources.length\n const active = () => local.sources[wrapIndex(position(), count())]\n const clear = () => {\n if (timer !== undefined) clearTimeout(timer)\n timer = undefined\n }\n onCleanup(clear)\n\n const dispatch = (event: CitationEvent) =>\n setMode((current) => {\n const next = nextCitationMode(current, event)\n if (next !== 'peek') setKeyboardPeek(false)\n else if (current === 'closed') setKeyboardPeek(event === 'focus')\n return next\n })\n const schedule = (event: CitationEvent, delay: number) => {\n clear()\n timer = setTimeout(() => dispatch(event), delay)\n }\n\n const onPointerEnter = (event: PointerEvent) => {\n if (event.pointerType === 'touch') return\n schedule('enter', local.hoverDelay ?? 150)\n }\n const onPointerLeave = (event: PointerEvent) => {\n if (event.pointerType === 'touch') return\n schedule('leave', LEAVE_DELAY)\n }\n\n const onClick = () => {\n clear()\n const wasPeeking = mode() === 'peek'\n dispatch('press')\n // Kobalte toggles right after this handler; its request is not a dismissal.\n pressing = true\n queueMicrotask(() => {\n pressing = false\n })\n // The peek never took focus; a deliberate press must hand it over, once\n // Kobalte's own toggle (which runs after this handler) has settled.\n if (wasPeeking) queueMicrotask(() => content?.focus())\n }\n\n // The badge and the popover's portal marker share one wrapper. Without it they\n // are loose siblings in the host's node list, and when the portal marker comes\n // and goes as the card opens and closes, a host that renders its inline nodes\n // as one array (MessageText) reconciles that array and can move the badge,\n // which drops keyboard focus to <body> on the badge the reader just reached.\n return (\n <Show when={count() > 0}>\n <span data-slot=\"inline-citation-root\">\n <Popover\n open={mode() !== 'closed'}\n onOpenChange={(next) => {\n if (!next && !pressing) dispatch('dismiss')\n }}\n placement=\"bottom\"\n gutter={6}\n >\n <PopoverTrigger\n as={Button}\n variant=\"subtle\"\n size=\"2xs\"\n touchTarget=\"comfortable\"\n data-slot=\"inline-citation\"\n aria-label={citationName(local.sources, local.index)}\n class={cn('mx-0.5 align-baseline tabular-nums', local.class)}\n onClick={onClick}\n onPointerEnter={onPointerEnter}\n onPointerLeave={onPointerLeave}\n onFocus={(event: FocusEvent & { currentTarget: HTMLElement }) => {\n // Mouse focus follows the press; only keyboard focus peeks.\n if (restoringFocus) return\n if (event.currentTarget.matches(':focus-visible')) dispatch('focus')\n }}\n onBlur={() => dispatch('blur')}\n >\n <span aria-hidden=\"true\" class=\"max-w-32 truncate\">\n {citationLabel(local.index, local.sources[0])}\n </span>\n <Show when={count() > 1}>\n <span aria-hidden=\"true\">+{count() - 1}</span>\n </Show>\n </PopoverTrigger>\n <PopoverContent\n ref={(element: HTMLElement) => (content = element)}\n inert={keyboardPeek() || mode() === 'closed' || undefined}\n class=\"w-72 max-w-full\"\n onOpenAutoFocus={(event: Event) => {\n if (mode() === 'peek') event.preventDefault()\n }}\n onFocusIn={() => {\n focusInCard = true\n }}\n onKeyDown={(event: KeyboardEvent) => {\n if (event.key !== 'Escape' || escapeClosedTooltip || mode() !== 'pinned') return\n dispatch('dismiss')\n }}\n onCloseAutoFocus={(event: Event) => {\n const returnFocus = focusInCard\n focusInCard = false\n if (!returnFocus) {\n event.preventDefault()\n return\n }\n // The focus move that follows is synchronous; the microtask ends the window.\n restoringFocus = true\n queueMicrotask(() => {\n restoringFocus = false\n })\n }}\n onPointerEnter={(event: PointerEvent) => {\n if (event.pointerType !== 'touch') clear()\n }}\n onPointerLeave={onPointerLeave}\n >\n <Show when={active()}>\n {(source) => (\n <div class=\"flex min-w-0 flex-col gap-1.5 px-2 py-1.5\">\n <Show when={count() > 1}>\n <div class=\"flex items-center justify-between gap-2\">\n <span\n role=\"status\"\n aria-live=\"polite\"\n class=\"text-xs text-muted-foreground tabular-nums\"\n >\n Source {wrapIndex(position(), count()) + 1} of {count()}\n </span>\n <span class=\"flex items-center gap-0.5\">\n <ActionButton\n variant=\"ghost\"\n size=\"icon-xs\"\n aria-label=\"Previous source\"\n tooltip=\"Previous source\"\n onClick={() => setPosition((value) => wrapIndex(value - 1, count()))}\n >\n <ChevronLeft />\n </ActionButton>\n <ActionButton\n variant=\"ghost\"\n size=\"icon-xs\"\n aria-label=\"Next source\"\n tooltip=\"Next source\"\n onClick={() => setPosition((value) => wrapIndex(value + 1, count()))}\n >\n <ChevronRight />\n </ActionButton>\n </span>\n </div>\n </Show>\n <PopoverTitle class=\"p-0 [overflow-wrap:anywhere]\">\n {sourceTitle(source())}\n </PopoverTitle>\n <CitationDetails source={source()} />\n </div>\n )}\n </Show>\n </PopoverContent>\n </Popover>\n </span>\n </Show>\n )\n}\n\n/**\n * Citation markers for `MessageText`, from the sources a reply really used.\n *\n * `[^2]` in the text becomes the second source's badge; `[^1,3]` one badge for\n * sources 1 and 3. A number beyond the list leaves the marker as written, and an\n * empty list makes every marker literal, so text can never cite a source the host\n * did not supply.\n *\n * <MessageText text={reply} citations={messageCitations(sources)} />\n */\nexport function messageCitations(sources: readonly Source[]): MessageCitations {\n return {\n count: sources.length,\n render: (numbers) => (\n <InlineCitation\n index={numbers[0]}\n sources={numbers.flatMap((number) => {\n const source = sources[number - 1]\n return source ? [source] : []\n })}\n />\n ),\n }\n}\n\nfunction CitationDetails(props: { source: Source }) {\n const href = () => safeSourceUrl(props.source.url)\n const host = () => sourceHost(props.source.url)\n const snippet = () =>\n props.source.snippet ? boundText(props.source.snippet, SOURCE_SNIPPET_LIMIT) : ''\n const withheld = () => props.source.url !== undefined && props.source.url !== '' && !href()\n\n return (\n <>\n <Show when={host()}>\n <p class=\"m-0 text-xs text-muted-foreground [overflow-wrap:anywhere]\">{host()}</p>\n </Show>\n <Show when={href()}>\n {(url) => (\n <TextLink\n href={url()}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n class=\"w-fit max-w-full text-xs [overflow-wrap:anywhere]\"\n >\n {boundText(url(), 96)}\n <span class=\"visually-hidden\"> (opens in a new tab)</span>\n </TextLink>\n )}\n </Show>\n <Show when={withheld()}>\n <p class=\"m-0 text-xs text-muted-foreground\">Address not linked</p>\n </Show>\n <Show when={snippet()}>\n <p class=\"m-0 line-clamp-6 text-xs text-muted-foreground [overflow-wrap:anywhere]\">\n {snippet()}\n </p>\n </Show>\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAMA,gBAAcyB,SAASxB,WAAiB;AAC9C,IAAMC,iBAAeuB,SAAStB,YAAkB;AAqDhD,IAAM2B,cAAc;AAEpB,SAAgBC,eAAeC,OAA4B;CACzD,MAAM,CAACC,SAASzB,WAAWwB,OAAO;EAAC;EAAW;EAAS;EAAc;CAAO,CAAC;CAC7E,MAAM,CAACE,MAAMC,WAAW9B,aAA2B,QAAQ;CAC3D,MAAM,CAAC+B,UAAUC,eAAehC,aAAa,CAAC;CAC9C,IAAIiC;CACJ,IAAIE;CACJ,IAAIC,WAAW;CAGf,IAAIC,iBAAiB;CAOrB,MAAM,CAACC,cAAcC,mBAAmBvC,aAAa,KAAK;CAI1D,IAAIwC,cAAc;CAOlB,IAAIC,sBAAsB;CAC1B,MAAMC,mBAAmBC,UAAyB;EAChD,IAAIA,MAAMC,QAAQ,UAAU;EAC5BH,sBACEN,SAASU,cAAcC,cAAc,gD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AAMyE,OAAOoB,UAAUzG,UAAUY,MAAMyE,OAAOoB,SAAAA,GAA6B,IAAI;CACjF,MAAMC,iBAAiB9F,MAAMyE,OAAOkB,QAAQhE,KAAAA,KAAa3B,MAAMyE,OAAOkB,QAAQ,MAAM,CAACD,KAAK;CAE1F,OAAA;EAAAjD,gBAEKlE,MAAI;GAAA,IAACmE,OAAI;IAAA,OAAEkD,KAAK;GAAC;GAAA,IAAAjD,WAAA;IAAA,IAAAoD,SAAAC,QAAA;IAAAlD,OAAAiD,QACuDH,IAAI;IAAA,OAAAG;GAAA;EAAA,CAAA;EAAAtD,gBAE5ElE,MAAI;GAAA,IAACmE,OAAI;IAAA,OAAEgD,KAAK;GAAC;GAAA/C,WACdgD,QAAGlD,gBACFzD,UAAQ;IAAA,IACP0G,OAAI;KAAA,OAAEC,IAAI;IAAC;IACXM,QAAM;IACNC,KAAG;IAAA,SAAA;IAAA,IAAAvD,WAAA;KAAA,OAAA,CAAAwD,WAGF/G,UAAUuG,IAAI,GAAG,EAAE,CAAC,GAAAS,QAAA,CAAA;IAAA;GAAA,CAAA;EAGxB,CAAA;EAAA3D,gBAEFlE,MAAI;GAAA,IAACmE,OAAI;IAAA,OAAEoD,SAAS;GAAC;GAAA,IAAAnD,WAAA;IAAA,OAAA0D,QAAA;GAAA;EAAA,CAAA;EAAA5D,gBAGrBlE,MAAI;GAAA,IAACmE,OAAI;IAAA,OAAEmD,QAAQ;GAAC;GAAA,IAAAlD,WAAA;IAAA,IAAA2D,SAAAC,QAAA;IAAAzD,OAAAwD,QAEhBT,OAAO;IAAA,OAAAS;GAAA;EAAA,CAAA;CAAA;AAKlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-row-control.d.ts","sourceRoot":"","sources":["../../../../src/components/composites/list-row/list-row-control.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"list-row-control.d.ts","sourceRoot":"","sources":["../../../../src/components/composites/list-row/list-row-control.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAKnE,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,cAAc,GAAG,KAAK,IAAI,gBAAgB,CAClF,CAAC,EACD;IACE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oDAAoD;IACpD,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gEAAgE;IAChE,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;CACxC,CACF,CAAA;AAMD,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,CAAC,SAAS,cAAc,GAAG,KAAK,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,eA6F7F"}
|