@adea-ai/ui 0.152.4 → 0.154.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +469 -580
- package/dist/NOTICE +10 -1
- package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +37 -13
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +2 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +92 -66
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
- 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 +57 -57
- 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 +9 -9
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.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 +6 -10
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
- 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 +33 -37
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
- package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
- package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- 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 +1 -1
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts +2 -2
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/build-file-tree.d.ts +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js +1 -1
- package/dist/components/composites/file-tree/build-file-tree.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/icon-picker/icon-picker.js +1 -3
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/inline-citation/citation.d.ts +1 -1
- package/dist/components/composites/inline-citation/citation.js +1 -1
- package/dist/components/composites/inline-citation/citation.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -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 +22 -22
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -0
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +75 -83
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +19 -5
- package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +263 -29
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/model-selector/models.d.ts +2 -2
- package/dist/components/composites/model-selector/models.js +1 -1
- package/dist/components/composites/model-selector/models.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +17 -15
- 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 +5 -7
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
- package/dist/components/composites/reasoning/reasoning.js +4 -4
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +63 -14
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +32 -32
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/source.d.ts +1 -1
- package/dist/components/composites/sources/source.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +2 -2
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
- package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
- package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
- 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 +14 -16
- 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 +6 -4
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/ansi.d.ts +3 -3
- package/dist/components/composites/terminal/ansi.js.map +1 -1
- package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
- package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal-model.js +1 -1
- package/dist/components/composites/terminal/terminal-model.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +24 -11
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
- package/dist/components/composites/test-results/test-results-model.js +2 -2
- package/dist/components/composites/test-results/test-results-model.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +4 -4
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +1 -1
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +25 -18
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +14 -19
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/index.d.ts +1 -1
- package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +4 -5
- 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 +19 -20
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +18 -20
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.js +3 -3
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +2 -4
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +6 -5
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.js +3 -7
- 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 +76 -76
- 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 +32 -38
- 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 +79 -73
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
- package/dist/components/conversation/scroll-follow-core.js +4 -4
- package/dist/components/conversation/scroll-follow-core.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +19 -4
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +23 -23
- 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 +2 -2
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.js +1 -1
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +4 -6
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +17 -17
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.js +2 -4
- package/dist/components/layout/panel/panel.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 +16 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
- package/dist/components/layout/side-rail/side-rail-context.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 +62 -57
- 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 +23 -23
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core.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 +2 -2
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +1 -1
- package/dist/components/layout/status-bar/status-bar.js +1 -1
- package/dist/components/layout/status-bar/status-bar.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 +15 -14
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/motion/presence.d.ts +2 -2
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +5 -5
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
- package/dist/components/theme/theme-catalogue-source.js +2 -2
- package/dist/components/theme/theme-catalogue-source.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +2 -2
- package/dist/components/theme/theme-context.js +3 -3
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-document.d.ts.map +1 -1
- package/dist/components/theme/theme-document.js +14 -9
- package/dist/components/theme/theme-document.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +5 -5
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +0 -6
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +9 -3
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-script.d.ts +14 -0
- package/dist/components/theme/theme-script.d.ts.map +1 -1
- package/dist/components/theme/theme-script.js +1 -0
- package/dist/components/theme/theme-script.js.map +1 -1
- package/dist/components/theme/theme-state.d.ts +7 -7
- package/dist/components/theme/theme-state.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +1 -1
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +4 -3
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/badge/badge.js +2 -2
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +10 -6
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +6 -4
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.js +2 -2
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.js +1 -1
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +6 -6
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +4 -4
- package/dist/components/ui/callout/callout.js +4 -4
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +2 -2
- package/dist/components/ui/card/card.js +2 -2
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +4 -4
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart-options.d.ts +7 -7
- package/dist/components/ui/chart/chart-options.js +9 -9
- package/dist/components/ui/chart/chart-options.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +16 -7
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +8 -6
- 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 +8 -6
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +4 -4
- package/dist/components/ui/command/command.js +4 -4
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.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 +13 -13
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +17 -1
- 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 +4 -3
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
- package/dist/components/ui/diff-block/diff-block.js +3 -3
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +3 -3
- package/dist/components/ui/drawer/drawer.js +2 -2
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
- package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
- 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 +33 -36
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.d.ts +1 -1
- package/dist/components/ui/empty/empty.js +1 -1
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +7 -7
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +15 -15
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.d.ts +1 -1
- package/dist/components/ui/field/number-field.js +1 -1
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +26 -26
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +25 -12
- package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd/kbd.js +44 -13
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
- package/dist/components/ui/kbd/platform-modifier.js +3 -3
- package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/label/label.js +1 -1
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +17 -19
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +2 -2
- package/dist/components/ui/menubar/menubar.js +1 -1
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +16 -18
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +1 -1
- 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 +5 -4
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.js +2 -4
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +11 -4
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +6 -8
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +73 -73
- 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 +12 -6
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +2 -2
- package/dist/components/ui/resizable/resizable.js +3 -3
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +3 -3
- package/dist/components/ui/select/select.js +1 -1
- 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 +4 -3
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton/skeleton.js +1 -1
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +1 -1
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/spinner/spinner.js +1 -1
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +11 -11
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +8 -6
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +4 -4
- package/dist/components/ui/tabs/tabs.js +4 -4
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.js +1 -1
- 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 +13 -15
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.js +1 -1
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
- 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 +3 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +6 -5
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +17 -17
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +3 -3
- package/dist/components/ui/typography/typography.js +5 -5
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/lib/accent-presets.d.ts +1 -1
- package/dist/lib/accent-presets.js.map +1 -1
- package/dist/lib/accent-roles.d.ts +2 -2
- package/dist/lib/accent-roles.js +2 -2
- package/dist/lib/accent-roles.js.map +1 -1
- package/dist/lib/appearance-font-settings.d.ts.map +1 -1
- package/dist/lib/appearance-font-settings.js +15 -7
- package/dist/lib/appearance-font-settings.js.map +1 -1
- package/dist/lib/create-poll.d.ts +39 -0
- package/dist/lib/create-poll.d.ts.map +1 -0
- package/dist/lib/create-poll.js +116 -0
- package/dist/lib/create-poll.js.map +1 -0
- package/dist/lib/font-zoom.d.ts +1 -1
- package/dist/lib/font-zoom.js +1 -1
- package/dist/lib/font-zoom.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts +2 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +3 -2
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +6 -6
- package/dist/lib/overlay.d.ts.map +1 -1
- package/dist/lib/overlay.js +6 -6
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/preference-store.d.ts +2 -2
- package/dist/lib/preference-store.js +2 -2
- package/dist/lib/preference-store.js.map +1 -1
- package/dist/lib/safe-script.d.ts +2 -2
- package/dist/lib/safe-script.js +2 -2
- package/dist/lib/safe-script.js.map +1 -1
- package/dist/lib/scroll-geometry.d.ts +1 -1
- package/dist/lib/scroll-geometry.js +1 -1
- package/dist/lib/scroll-geometry.js.map +1 -1
- package/dist/lib/text.d.ts +1 -1
- package/dist/lib/text.js +1 -1
- package/dist/lib/text.js.map +1 -1
- package/dist/lib/theme-accents.js +3 -3
- package/dist/lib/theme-accents.js.map +1 -1
- package/dist/lib/theme-css.js.map +1 -1
- package/dist/lib/theme-defaults.d.ts +4 -4
- package/dist/lib/theme-defaults.js +4 -4
- package/dist/lib/theme-defaults.js.map +1 -1
- package/dist/lib/theme-engine-light.js.map +1 -1
- package/dist/lib/theme-engine.d.ts +2 -2
- package/dist/lib/theme-engine.js +2 -2
- package/dist/lib/theme-engine.js.map +1 -1
- package/dist/lib/theme-projection.d.ts +1 -1
- package/dist/lib/theme-projection.js +2 -2
- package/dist/lib/theme-projection.js.map +1 -1
- package/dist/lib/theme-records.d.ts +2 -2
- package/dist/lib/theme-records.js +2 -2
- package/dist/lib/theme-records.js.map +1 -1
- package/dist/lib/theme-types.d.ts +1 -1
- package/dist/lib/theme-types.js.map +1 -1
- package/dist/lib/themes.d.ts +13 -13
- package/dist/lib/themes.js +13 -13
- package/dist/lib/themes.js.map +1 -1
- package/dist/lib/tokens.d.ts +2 -2
- package/dist/lib/tokens.js +1 -1
- package/dist/lib/tokens.js.map +1 -1
- package/dist/lib/tooltip-focus-gate.d.ts +2 -2
- package/dist/lib/tooltip-focus-gate.js +2 -2
- package/dist/lib/tooltip-focus-gate.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/variants.d.ts +4 -4
- package/dist/lib/variants.js +1 -1
- package/dist/lib/variants.js.map +1 -1
- package/dist/lib/version-notes.d.ts +4 -4
- package/dist/lib/version-notes.js +4 -4
- package/dist/lib/version-notes.js.map +1 -1
- package/dist/lint.js.map +1 -1
- package/dist/r/account-menu.json +1 -0
- package/dist/r/lib.json +5 -0
- package/dist/r/model-selector.json +1 -0
- package/dist/r/registry.json +14 -0
- package/dist/r/side-rail.json +1 -0
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/dist/r/src/components/composites/chat/chat.tsx +15 -9
- package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/dist/r/src/components/composites/context/context.tsx +2 -2
- package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +190 -14
- package/dist/r/src/components/composites/model-selector/models.ts +2 -2
- package/dist/r/src/components/composites/plan/plan.tsx +19 -11
- package/dist/r/src/components/composites/queue/queue.tsx +5 -3
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/dist/r/src/components/composites/settings/settings.tsx +14 -6
- package/dist/r/src/components/composites/sources/source.ts +1 -1
- package/dist/r/src/components/composites/sources/sources.tsx +2 -2
- package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/dist/r/src/components/composites/stat/stat.tsx +20 -16
- package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
- package/dist/r/src/components/composites/task/task.tsx +1 -1
- package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
- package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
- package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
- package/dist/r/src/components/composites/tool/tool.tsx +4 -4
- package/dist/r/src/components/composites/tree/tree.tsx +31 -15
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
- package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
- package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
- package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/dist/r/src/components/conversation/message-composer.tsx +4 -6
- package/dist/r/src/components/conversation/message-row.tsx +34 -26
- package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
- package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
- package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
- package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/dist/r/src/components/layout/page/page.tsx +15 -11
- package/dist/r/src/components/layout/panel/panel.tsx +1 -1
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +41 -28
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +4 -6
- package/dist/r/src/components/motion/presence.tsx +2 -2
- package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
- package/dist/r/src/components/theme/lazy.ts +1 -1
- package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
- package/dist/r/src/components/theme/theme-context.ts +3 -3
- package/dist/r/src/components/theme/theme-document.ts +22 -11
- package/dist/r/src/components/theme/theme-picker.tsx +5 -5
- package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
- package/dist/r/src/components/theme/theme-script.ts +20 -0
- package/dist/r/src/components/theme/theme-state.ts +7 -7
- package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
- package/dist/r/src/components/ui/alert/alert.tsx +4 -3
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/dist/r/src/components/ui/badge/badge.tsx +2 -2
- package/dist/r/src/components/ui/board/board.tsx +17 -5
- package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
- package/dist/r/src/components/ui/button/button.tsx +2 -2
- package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
- package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
- package/dist/r/src/components/ui/callout/callout.tsx +4 -4
- package/dist/r/src/components/ui/card/card.tsx +2 -2
- package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
- package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
- package/dist/r/src/components/ui/chart/chart.tsx +14 -1
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
- package/dist/r/src/components/ui/command/command.tsx +7 -7
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +25 -1
- package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
- package/dist/r/src/components/ui/empty/empty.tsx +1 -1
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/dist/r/src/components/ui/field/field.tsx +15 -7
- package/dist/r/src/components/ui/field/number-field.tsx +1 -1
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/dist/r/src/components/ui/item/item.tsx +24 -18
- package/dist/r/src/components/ui/kbd/kbd.tsx +55 -14
- package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/dist/r/src/components/ui/label/label.tsx +1 -1
- package/dist/r/src/components/ui/marker/marker.tsx +9 -5
- package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
- package/dist/r/src/components/ui/message/message.tsx +14 -13
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
- package/dist/r/src/components/ui/popover/popover.tsx +4 -2
- package/dist/r/src/components/ui/progress/progress.tsx +5 -3
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
- package/dist/r/src/components/ui/select/select.tsx +4 -4
- package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/dist/r/src/components/ui/slider/slider.tsx +1 -1
- package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/dist/r/src/components/ui/switch/switch.tsx +9 -6
- package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
- package/dist/r/src/components/ui/toast/toast.tsx +6 -4
- package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/dist/r/src/components/ui/tooltip/index.ts +1 -0
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/dist/r/src/components/ui/trace/trace.tsx +13 -9
- package/dist/r/src/components/ui/typography/typography.tsx +5 -5
- package/dist/r/src/lib/accent-presets.ts +1 -1
- package/dist/r/src/lib/accent-roles.ts +2 -2
- package/dist/r/src/lib/appearance-font-settings.ts +18 -7
- package/dist/r/src/lib/create-poll.ts +150 -0
- package/dist/r/src/lib/font-zoom.ts +3 -3
- package/dist/r/src/lib/keyed-rows.ts +3 -2
- package/dist/r/src/lib/overlay.ts +6 -6
- package/dist/r/src/lib/preference-store.ts +2 -2
- package/dist/r/src/lib/safe-script.ts +2 -2
- package/dist/r/src/lib/scroll-geometry.ts +1 -1
- package/dist/r/src/lib/text.ts +1 -1
- package/dist/r/src/lib/theme-accents.ts +3 -3
- package/dist/r/src/lib/theme-css.ts +2 -2
- package/dist/r/src/lib/theme-defaults.ts +4 -4
- package/dist/r/src/lib/theme-engine-light.ts +2 -2
- package/dist/r/src/lib/theme-engine.ts +2 -2
- package/dist/r/src/lib/theme-projection.ts +2 -2
- package/dist/r/src/lib/theme-records.ts +2 -2
- package/dist/r/src/lib/theme-types.ts +1 -1
- package/dist/r/src/lib/themes.ts +14 -14
- package/dist/r/src/lib/tokens.ts +2 -2
- package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
- package/dist/r/src/lib/utils.ts +1 -1
- package/dist/r/src/lib/variants.ts +4 -4
- package/dist/r/src/lib/version-notes.ts +4 -4
- package/dist/r/src/styles/base.css +12 -43
- package/dist/r/src/styles/fonts.css +1 -1
- package/dist/r/src/styles/theme.css +35 -35
- package/dist/r/tooltip.json +5 -0
- package/dist/r/top-bar.json +1 -0
- package/package.json +2 -1
- package/registry.json +14 -0
- package/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/src/components/composites/action-button/action-button.tsx +124 -78
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/src/components/composites/chat/chat.tsx +15 -9
- package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/src/components/composites/context/context.tsx +2 -2
- package/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/src/components/composites/inline-citation/citation.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/src/components/composites/list-row/list-row.tsx +69 -73
- package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/src/components/composites/model-selector/model-selector.tsx +190 -14
- package/src/components/composites/model-selector/models.ts +2 -2
- package/src/components/composites/plan/plan.tsx +19 -11
- package/src/components/composites/queue/queue.tsx +5 -3
- package/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/src/components/composites/settings/settings.tsx +14 -6
- package/src/components/composites/sources/source.ts +1 -1
- package/src/components/composites/sources/sources.tsx +2 -2
- package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/src/components/composites/stat/stat.tsx +20 -16
- package/src/components/composites/subagent/subagent.tsx +6 -4
- package/src/components/composites/task/task.tsx +1 -1
- package/src/components/composites/terminal/ansi.ts +3 -3
- package/src/components/composites/terminal/terminal-model.ts +3 -3
- package/src/components/composites/terminal/terminal.tsx +24 -12
- package/src/components/composites/test-results/test-results-model.ts +4 -4
- package/src/components/composites/test-results/test-results.tsx +1 -1
- package/src/components/composites/tool/tool.tsx +4 -4
- package/src/components/composites/tree/tree.tsx +31 -15
- package/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/src/components/composites/update-dialog/index.ts +1 -0
- package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/src/components/conversation/busy-send-button.tsx +6 -2
- package/src/components/conversation/composer-menu.tsx +3 -3
- package/src/components/conversation/conversation-avatar.tsx +1 -1
- package/src/components/conversation/conversation-pane.tsx +8 -5
- package/src/components/conversation/conversation-surface.tsx +2 -2
- package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/src/components/conversation/message-composer.tsx +4 -6
- package/src/components/conversation/message-row.tsx +34 -26
- package/src/components/conversation/scroll-follow-core.ts +8 -8
- package/src/components/conversation/scroll-follow.ts +24 -8
- package/src/components/conversation/thread-panel.tsx +7 -3
- package/src/components/conversation/transcript-composition.tsx +4 -2
- package/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/src/components/layout/page/page.tsx +15 -11
- package/src/components/layout/panel/panel.tsx +1 -1
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/src/components/layout/side-rail/side-rail.tsx +41 -28
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/src/components/layout/top-bar/top-bar.tsx +4 -6
- package/src/components/motion/presence.tsx +2 -2
- package/src/components/theme/appearance-panel.tsx +5 -5
- package/src/components/theme/lazy.ts +1 -1
- package/src/components/theme/theme-catalogue-source.ts +2 -2
- package/src/components/theme/theme-context.ts +3 -3
- package/src/components/theme/theme-document.ts +22 -11
- package/src/components/theme/theme-picker.tsx +5 -5
- package/src/components/theme/theme-provider-value.ts +15 -3
- package/src/components/theme/theme-script.ts +20 -0
- package/src/components/theme/theme-state.ts +7 -7
- package/src/components/theme/theme-toggle.tsx +1 -1
- package/src/components/ui/alert/alert.tsx +4 -3
- package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/src/components/ui/badge/badge.tsx +2 -2
- package/src/components/ui/board/board.tsx +17 -5
- package/src/components/ui/bubble/bubble.tsx +6 -4
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/button-group/button-group.tsx +1 -1
- package/src/components/ui/calendar/calendar.tsx +2 -2
- package/src/components/ui/callout/callout.tsx +4 -4
- package/src/components/ui/card/card.tsx +2 -2
- package/src/components/ui/carousel/carousel.tsx +6 -6
- package/src/components/ui/chart/chart-options.ts +9 -9
- package/src/components/ui/chart/chart.tsx +14 -1
- package/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/src/components/ui/code-block/code-block.tsx +14 -7
- package/src/components/ui/command/command.tsx +7 -7
- package/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/src/components/ui/dialog/dialog-layer.tsx +25 -1
- package/src/components/ui/dialog/dialog.tsx +4 -3
- package/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/src/components/ui/drawer/drawer.tsx +3 -3
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/src/components/ui/empty/empty-state.tsx +23 -18
- package/src/components/ui/empty/empty.tsx +1 -1
- package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/src/components/ui/field/field.tsx +15 -7
- package/src/components/ui/field/number-field.tsx +1 -1
- package/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/src/components/ui/input-group/input-group.tsx +1 -1
- package/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/src/components/ui/item/item.tsx +24 -18
- package/src/components/ui/kbd/kbd.tsx +55 -14
- package/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/src/components/ui/label/label.tsx +1 -1
- package/src/components/ui/marker/marker.tsx +9 -5
- package/src/components/ui/menubar/menubar.tsx +2 -2
- package/src/components/ui/message/message.tsx +14 -13
- package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/src/components/ui/native-select/native-select.tsx +1 -1
- package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/src/components/ui/pagination/pagination.tsx +1 -1
- package/src/components/ui/popover/popover.tsx +4 -2
- package/src/components/ui/progress/progress.tsx +5 -3
- package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/src/components/ui/resizable/resizable.tsx +5 -5
- package/src/components/ui/select/select.tsx +4 -4
- package/src/components/ui/sheet/sheet.tsx +4 -3
- package/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/src/components/ui/slider/slider.tsx +1 -1
- package/src/components/ui/spinner/spinner.tsx +1 -1
- package/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/src/components/ui/switch/switch.tsx +9 -6
- package/src/components/ui/tabs/tabs.tsx +4 -4
- package/src/components/ui/textarea/textarea.tsx +1 -1
- package/src/components/ui/toast/toast.tsx +6 -4
- package/src/components/ui/toggle/toggle.tsx +1 -1
- package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/src/components/ui/tooltip/index.ts +1 -0
- package/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/src/components/ui/trace/trace.tsx +13 -9
- package/src/components/ui/typography/typography.tsx +5 -5
- package/src/index.ts +1 -0
- package/src/lib/accent-presets.ts +1 -1
- package/src/lib/accent-roles.ts +2 -2
- package/src/lib/appearance-font-settings.ts +18 -7
- package/src/lib/create-poll.ts +150 -0
- package/src/lib/font-zoom.ts +3 -3
- package/src/lib/keyed-rows.ts +3 -2
- package/src/lib/overlay.ts +6 -6
- package/src/lib/preference-store.ts +2 -2
- package/src/lib/safe-script.ts +2 -2
- package/src/lib/scroll-geometry.ts +1 -1
- package/src/lib/text.ts +1 -1
- package/src/lib/theme-accents.ts +3 -3
- package/src/lib/theme-css.ts +2 -2
- package/src/lib/theme-defaults.ts +4 -4
- package/src/lib/theme-engine-light.ts +2 -2
- package/src/lib/theme-engine.ts +2 -2
- package/src/lib/theme-projection.ts +2 -2
- package/src/lib/theme-records.ts +2 -2
- package/src/lib/theme-types.ts +1 -1
- package/src/lib/themes.ts +14 -14
- package/src/lib/tokens.ts +2 -2
- package/src/lib/tooltip-focus-gate.ts +11 -11
- package/src/lib/utils.ts +1 -1
- package/src/lib/variants.ts +4 -4
- package/src/lib/version-notes.ts +4 -4
- package/src/lint/index.ts +1 -1
- package/src/styles/base.css +12 -43
- package/src/styles/fonts.css +1 -1
- package/src/styles/theme.css +35 -35
- package/src/styles/themes/aardvark-blue.css +98 -0
- package/src/styles/themes/aardvark-ink.css +98 -0
- package/src/styles/themes/adea-dark-colorblind.css +98 -0
- package/src/styles/themes/adea-dark-high-contrast.css +98 -0
- package/src/styles/themes/adea-dark.css +47 -0
- package/src/styles/themes/adea-light-colorblind.css +141 -0
- package/src/styles/themes/adea-light-high-contrast.css +141 -0
- package/src/styles/themes/adea-light.css +47 -0
- package/src/styles/themes/ayu-light.css +141 -0
- package/src/styles/themes/ayu-mirage.css +98 -0
- package/src/styles/themes/ayu.css +98 -0
- package/src/styles/themes/catppuccin-frappe.css +98 -0
- package/src/styles/themes/catppuccin-latte.css +141 -0
- package/src/styles/themes/catppuccin-macchiato.css +98 -0
- package/src/styles/themes/catppuccin-mocha.css +98 -0
- package/src/styles/themes/dracula.css +98 -0
- package/src/styles/themes/everforest-dark.css +98 -0
- package/src/styles/themes/everforest-light.css +141 -0
- package/src/styles/themes/gruvbox-dark.css +98 -0
- package/src/styles/themes/gruvbox-light.css +141 -0
- package/src/styles/themes/kanagawa.css +98 -0
- package/src/styles/themes/monokai.css +98 -0
- package/src/styles/themes/nord-light.css +141 -0
- package/src/styles/themes/nord.css +98 -0
- package/src/styles/themes/one-dark.css +98 -0
- package/src/styles/themes/rosepine-dawn.css +141 -0
- package/src/styles/themes/rosepine-moon.css +98 -0
- package/src/styles/themes/rosepine.css +98 -0
- package/src/styles/themes/solarized-dark.css +98 -0
- package/src/styles/themes/solarized-light.css +141 -0
- package/src/styles/themes/tokyonight-day.css +141 -0
- package/src/styles/themes/tokyonight-night.css +98 -0
- package/src/styles/themes/tokyonight-storm.css +98 -0
- package/src/styles/themes/vesper.css +98 -0
|
@@ -8,20 +8,24 @@ var _tmpl$2 = /*#__PURE__*/ template(`<span data-slot=kbd-group>`);
|
|
|
8
8
|
/**
|
|
9
9
|
* Kbd.
|
|
10
10
|
*
|
|
11
|
-
* A keyboard key,
|
|
12
|
-
* `<kbd>` so the semantics survive copy-paste
|
|
13
|
-
* a shortcut visually distinct from the sentence around it.
|
|
11
|
+
* A keyboard key, ported from shadcn/ui's `Kbd` (MIT, see NOTICE). The element
|
|
12
|
+
* is a real `<kbd>` so the semantics survive copy-paste.
|
|
14
13
|
*
|
|
15
|
-
*
|
|
14
|
+
* The cap is set in the UI face at `text-xs`, as shadcn draws it, not in the
|
|
15
|
+
* code face. Monospace faces carry letters but rarely the modifier glyphs, so
|
|
16
|
+
* a mono `⌘` fell back to another font and sat visibly smaller than the mono
|
|
17
|
+
* `K` beside it. The UI face draws `⌘ ⇧ ⌥ ⌃` and letters as one family, so
|
|
18
|
+
* every cap in a chord reads at the same size.
|
|
19
|
+
*
|
|
20
|
+
* `size="compact"` exists for the dense rows a default cap would outweigh, a
|
|
16
21
|
* rail search row, a sidebar shortcut hint. It drops a height rung, and it
|
|
17
22
|
* lightens the fill and weight with it because at that size a solid muted cap
|
|
18
|
-
* reads heavier than the row text it sits in.
|
|
19
|
-
* cap that is not inside such a row, and it is untouched by the rung.
|
|
23
|
+
* reads heavier than the row text it sits in.
|
|
20
24
|
*
|
|
21
25
|
* `KbdGroup` exists because a shortcut is a sequence: typing `⌘` then `K`
|
|
22
26
|
* needs a gap between them that is a layout concern, not punctuation.
|
|
23
27
|
*/
|
|
24
|
-
var kbdVariants = cva("bg-muted text-muted-foreground pointer-events-none inline-flex min-h-5 min-w-5 items-center justify-center gap-1 rounded-sm
|
|
28
|
+
var kbdVariants = cva(["bg-muted text-muted-foreground pointer-events-none inline-flex min-h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none", "[&_svg:not([class*='size-'])]:size-3"], {
|
|
25
29
|
variants: { size: {
|
|
26
30
|
default: "",
|
|
27
31
|
compact: "min-h-4 min-w-4 bg-muted/40 px-0.5 font-normal leading-none"
|
|
@@ -46,6 +50,10 @@ var kbdGroupVariants = cva("inline-flex items-center gap-1", {
|
|
|
46
50
|
} },
|
|
47
51
|
defaultVariants: { size: "default" }
|
|
48
52
|
});
|
|
53
|
+
/**
|
|
54
|
+
* shadcn renders the group as a `<kbd>`; it stays a `<span>` here so a
|
|
55
|
+
* `kbd` selector still finds exactly the caps, which hosts and tests count.
|
|
56
|
+
*/
|
|
49
57
|
function KbdGroup(props) {
|
|
50
58
|
const [local, rest] = splitProps(props, ["size", "class"]);
|
|
51
59
|
return (() => {
|
|
@@ -56,21 +64,44 @@ function KbdGroup(props) {
|
|
|
56
64
|
return _el$2;
|
|
57
65
|
})();
|
|
58
66
|
}
|
|
67
|
+
/** Key names that are drawn as one word on one cap. */
|
|
68
|
+
var NAMED_KEY = /^(?:Ctrl|Control|Alt|Option|Opt|Shift|Cmd|Command|Meta|Super|Win|Fn|Enter|Return|Escape|Esc|Tab|Space|Backspace|Delete|Del|Insert|Home|End|PageUp|PageDown|PgUp|PgDn|Up|Down|Left|Right|F(?:1\d|2[0-4]|[1-9]))/;
|
|
59
69
|
/**
|
|
60
|
-
* Split a written chord into one entry per key cap.
|
|
61
|
-
*
|
|
62
|
-
*
|
|
70
|
+
* Split a written chord into one entry per key cap.
|
|
71
|
+
*
|
|
72
|
+
* - Glyph chords draw one cap per character: `⌘K` is `⌘` + `K`, and `⇧⌘P`
|
|
73
|
+
* stays three caps wide, which matches how the system draws chords in menus.
|
|
74
|
+
* - Spelled-out names stay whole: `CtrlK` is `Ctrl` + `K`, `⇧Enter` is
|
|
75
|
+
* `⇧` + `Enter`.
|
|
76
|
+
* - `+` and spaces separate keys and are not drawn (`Ctrl+K`, `Ctrl Shift P`),
|
|
77
|
+
* except a `+` that is itself the key (`Ctrl++`, `⌘+`).
|
|
63
78
|
*/
|
|
64
79
|
function kbdChordKeys(keys) {
|
|
65
|
-
|
|
80
|
+
const caps = [];
|
|
81
|
+
let rest = keys;
|
|
82
|
+
let separated = true;
|
|
83
|
+
while (rest.length > 0) {
|
|
84
|
+
const first = rest[0];
|
|
85
|
+
if (first === " " || first === "+" && !separated && rest.length > 1) {
|
|
86
|
+
rest = rest.slice(1);
|
|
87
|
+
separated = true;
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
const named = NAMED_KEY.exec(rest)?.[0];
|
|
91
|
+
const cap = named && !/^[a-z]/.test(rest.charAt(named.length)) ? named : String.fromCodePoint(rest.codePointAt(0));
|
|
92
|
+
caps.push(cap);
|
|
93
|
+
rest = rest.slice(cap.length);
|
|
94
|
+
separated = false;
|
|
95
|
+
}
|
|
96
|
+
return caps;
|
|
66
97
|
}
|
|
67
98
|
/**
|
|
68
99
|
* KbdChord.
|
|
69
100
|
*
|
|
70
|
-
* A written chord drawn as caps, one per
|
|
101
|
+
* A written chord drawn as caps, one per key (see `kbdChordKeys`). Decoration only: the
|
|
71
102
|
* composition renders `aria-hidden`, so the accessible name and the parseable
|
|
72
103
|
* `aria-keyshortcuts` stay on the control the chord belongs to. That is why
|
|
73
|
-
* there is no children
|
|
104
|
+
* there is no children, the chord says what was drawn, nothing more.
|
|
74
105
|
*/
|
|
75
106
|
function KbdChord(props) {
|
|
76
107
|
const [local, rest] = splitProps(props, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd.js","names":["For","splitProps","cva","cn","kbdVariants","variants","size","default","compact","defaultVariants","Kbd","props","local","rest","_el$","_tmpl$","_$spread","_$mergeProps","class","kbdGroupVariants","KbdGroup","_el$2","_tmpl$2","kbdChordKeys","keys","KbdChord","_$createComponent","children","each","key"],"sources":["../../../../src/components/ui/kbd/kbd.tsx"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { For, splitProps } from 'solid-js'\nimport { cva, type VariantProps } from '#lib/variants'\nimport { cn } from '#lib/utils'\n\n/**\n * Kbd.\n *\n * A keyboard key,
|
|
1
|
+
{"version":3,"file":"kbd.js","names":["For","splitProps","cva","cn","kbdVariants","variants","size","default","compact","defaultVariants","Kbd","props","local","rest","_el$","_tmpl$","_$spread","_$mergeProps","class","kbdGroupVariants","KbdGroup","_el$2","_tmpl$2","NAMED_KEY","kbdChordKeys","keys","caps","separated","length","first","slice","named","exec","cap","test","charAt","String","fromCodePoint","codePointAt","push","KbdChord","_$createComponent","children","each","key"],"sources":["../../../../src/components/ui/kbd/kbd.tsx"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { For, splitProps } from 'solid-js'\nimport { cva, type VariantProps } from '#lib/variants'\nimport { cn } from '#lib/utils'\n\n/**\n * Kbd.\n *\n * A keyboard key, ported from shadcn/ui's `Kbd` (MIT, see NOTICE). The element\n * is a real `<kbd>` so the semantics survive copy-paste.\n *\n * The cap is set in the UI face at `text-xs`, as shadcn draws it, not in the\n * code face. Monospace faces carry letters but rarely the modifier glyphs, so\n * a mono `⌘` fell back to another font and sat visibly smaller than the mono\n * `K` beside it. The UI face draws `⌘ ⇧ ⌥ ⌃` and letters as one family, so\n * every cap in a chord reads at the same size.\n *\n * `size=\"compact\"` exists for the dense rows a default cap would outweigh, a\n * rail search row, a sidebar shortcut hint. It drops a height rung, and it\n * lightens the fill and weight with it because at that size a solid muted cap\n * reads heavier than the row text it sits in.\n *\n * `KbdGroup` exists because a shortcut is a sequence: typing `⌘` then `K`\n * needs a gap between them that is a layout concern, not punctuation.\n */\nexport const kbdVariants = cva(\n [\n 'bg-muted text-muted-foreground pointer-events-none inline-flex min-h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none',\n \"[&_svg:not([class*='size-'])]:size-3\",\n ],\n {\n variants: {\n size: {\n default: '',\n compact: 'min-h-4 min-w-4 bg-muted/40 px-0.5 font-normal leading-none',\n },\n },\n defaultVariants: {\n size: 'default',\n },\n }\n)\n\nexport type KbdSize = NonNullable<VariantProps<typeof kbdVariants>['size']>\n\nexport function Kbd(props: ComponentProps<'kbd'> & { size?: KbdSize }) {\n const [local, rest] = splitProps(props, ['size', 'class'])\n\n return (\n <kbd data-slot=\"kbd\" class={cn(kbdVariants({ size: local.size }), local.class)} {...rest} />\n )\n}\n\nexport const kbdGroupVariants = cva('inline-flex items-center gap-1', {\n variants: {\n size: {\n default: '',\n /** The gap is what separates caps, so it tightens with them. */\n compact: 'gap-0.5',\n },\n },\n defaultVariants: {\n size: 'default',\n },\n})\n\n/**\n * shadcn renders the group as a `<kbd>`; it stays a `<span>` here so a\n * `kbd` selector still finds exactly the caps, which hosts and tests count.\n */\nexport function KbdGroup(props: ComponentProps<'span'> & { size?: KbdSize }) {\n const [local, rest] = splitProps(props, ['size', 'class'])\n\n return (\n <span\n data-slot=\"kbd-group\"\n class={cn(kbdGroupVariants({ size: local.size }), local.class)}\n {...rest}\n />\n )\n}\n\n/** Key names that are drawn as one word on one cap. */\nconst NAMED_KEY =\n /^(?:Ctrl|Control|Alt|Option|Opt|Shift|Cmd|Command|Meta|Super|Win|Fn|Enter|Return|Escape|Esc|Tab|Space|Backspace|Delete|Del|Insert|Home|End|PageUp|PageDown|PgUp|PgDn|Up|Down|Left|Right|F(?:1\\d|2[0-4]|[1-9]))/\n\n/**\n * Split a written chord into one entry per key cap.\n *\n * - Glyph chords draw one cap per character: `⌘K` is `⌘` + `K`, and `⇧⌘P`\n * stays three caps wide, which matches how the system draws chords in menus.\n * - Spelled-out names stay whole: `CtrlK` is `Ctrl` + `K`, `⇧Enter` is\n * `⇧` + `Enter`.\n * - `+` and spaces separate keys and are not drawn (`Ctrl+K`, `Ctrl Shift P`),\n * except a `+` that is itself the key (`Ctrl++`, `⌘+`).\n */\nexport function kbdChordKeys(keys: string): string[] {\n const caps: string[] = []\n let rest = keys\n let separated = true\n while (rest.length > 0) {\n const first = rest[0]!\n if (first === ' ' || (first === '+' && !separated && rest.length > 1)) {\n rest = rest.slice(1)\n separated = true\n continue\n }\n const named = NAMED_KEY.exec(rest)?.[0]\n // A name only counts when a lowercase letter does not continue it: `Tab`\n // in `Table` is not a key, so a caller's literal text is drawn as written.\n const cap =\n named && !/^[a-z]/.test(rest.charAt(named.length))\n ? named\n : String.fromCodePoint(rest.codePointAt(0)!)\n caps.push(cap)\n rest = rest.slice(cap.length)\n separated = false\n }\n return caps\n}\n\nexport type KbdChordProps = Omit<ComponentProps<'span'>, 'children'> & {\n /** The chord as it is drawn, e.g. `\"⌘K\"`, `\"⇧⌘P\"` or `\"Ctrl+K\"`. See `kbdChordKeys`. */\n keys: string\n size?: KbdSize\n}\n\n/**\n * KbdChord.\n *\n * A written chord drawn as caps, one per key (see `kbdChordKeys`). Decoration only: the\n * composition renders `aria-hidden`, so the accessible name and the parseable\n * `aria-keyshortcuts` stay on the control the chord belongs to. That is why\n * there is no children, the chord says what was drawn, nothing more.\n */\nexport function KbdChord(props: KbdChordProps) {\n const [local, rest] = splitProps(props, ['keys', 'size', 'class'])\n\n return (\n <KbdGroup {...rest} size={local.size} class={local.class} aria-hidden=\"true\">\n <For each={kbdChordKeys(local.keys)}>{(key) => <Kbd size={local.size}>{key}</Kbd>}</For>\n </KbdGroup>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAaI,cAAcF,IACzB,CACE,oLACA,sCAAsC,GAExC;CACEG,UAAU,EACRC,MAAM;EACJC,SAAS;EACTC,SAAS;CACX,EACF;CACAC,iBAAiB,EACfH,MAAM,UACR;AACF,CACF;AAIA,SAAgBI,IAAIC,OAAmD;CACrE,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO,CAAC,QAAQ,OAAO,CAAC;CAEzD,cAAA;EAAA,IAAAG,OAAAC,OAAA;EAAAC,OAAAF,MAAAG,WAAA,EAAA,KAAA,WAAA;GAAA,OAC8Bd,GAAGC,YAAY,EAAEE,MAAMM,MAAMN,KAAK,CAAC,GAAGM,MAAMM,KAAK;EAAC,EAAA,GAAML,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAC;CAAA,EAAA,CAAA;AAE5F;AAEA,IAAaK,mBAAmBjB,IAAI,kCAAkC;CACpEG,UAAU,EACRC,MAAM;EACJC,SAAS;;EAETC,SAAS;CACX,EACF;CACAC,iBAAiB,EACfH,MAAM,UACR;AACF,CAAC;;;;;AAMD,SAAgBc,SAAST,OAAoD;CAC3E,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO,CAAC,QAAQ,OAAO,CAAC;CAEzD,cAAA;EAAA,IAAAU,QAAAC,QAAA;EAAAN,OAAAK,OAAAJ,WAAA,EAAA,KAAA,WAAA;GAAA,OAGWd,GAAGgB,iBAAiB,EAAEb,MAAMM,MAAMN,KAAK,CAAC,GAAGM,MAAMM,KAAK;EAAC,EAAA,GAC1DL,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAQ;CAAA,EAAA,CAAA;AAGd;;AAGA,IAAME,YACJ;;;;;;;;;;;AAYF,SAAgBC,aAAaC,MAAwB;CACnD,MAAMC,OAAiB,CAAA;CACvB,IAAIb,OAAOY;CACX,IAAIE,YAAY;CAChB,OAAOd,KAAKe,SAAS,GAAG;EACtB,MAAMC,QAAQhB,KAAK;EACnB,IAAIgB,UAAU,OAAQA,UAAU,OAAO,CAACF,aAAad,KAAKe,SAAS,GAAI;GACrEf,OAAOA,KAAKiB,MAAM,CAAC;GACnBH,YAAY;GACZ;EACF;EACA,MAAMI,QAAQR,UAAUS,KAAKnB,IAAI,CAAC,GAAG;EAGrC,MAAMoB,MACJF,SAAS,CAAC,SAASG,KAAKrB,KAAKsB,OAAOJ,MAAMH,MAAM,CAAC,IAC7CG,QACAK,OAAOC,cAAcxB,KAAKyB,YAAY,CAAC,CAAE;EAC/CZ,KAAKa,KAAKN,GAAG;EACbpB,OAAOA,KAAKiB,MAAMG,IAAIL,MAAM;EAC5BD,YAAY;CACd;CACA,OAAOD;AACT;;;;;;;;;AAgBA,SAAgBc,SAAS7B,OAAsB;CAC7C,MAAM,CAACC,OAAOC,QAAQZ,WAAWU,OAAO;EAAC;EAAQ;EAAQ;CAAO,CAAC;CAEjE,OAAA8B,gBACGrB,UAAQH,WAAKJ,MAAI;EAAA,IAAEP,OAAI;GAAA,OAAEM,MAAMN;EAAI;EAAA,KAAA,WAAA;GAAA,OAASM,MAAMM;EAAK;EAAA,eAAA;EAAA,IAAAwB,WAAA;GAAA,OAAAD,gBACrDzC,KAAG;IAAA,IAAC2C,OAAI;KAAA,OAAEnB,aAAaZ,MAAMa,IAAI;IAAC;IAAAiB,WAAIE,QAAGH,gBAAM/B,KAAG;KAAA,IAACJ,OAAI;MAAA,OAAEM,MAAMN;KAAI;KAAAoC,UAAGE;IAAG,CAAA;GAAO,CAAA;EAAA;CAAA,CAAA,CAAA;AAGvF"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Which modifier a chord should advertise.
|
|
3
3
|
*
|
|
4
4
|
* Every global chord in the product binds `(metaKey || ctrlKey)`, so the
|
|
5
|
-
* working key is the platform's command modifier wherever the app runs
|
|
5
|
+
* working key is the platform's command modifier wherever the app runs, but
|
|
6
6
|
* Apple platforms draw it as ⌘ and everyone else spells it Ctrl. A chord
|
|
7
7
|
* label drawn from anything else (a hardcoded ⌘, say) advertises a key that
|
|
8
8
|
* does not work as drawn on Windows and Linux.
|
|
9
9
|
*
|
|
10
10
|
* These helpers are the one place that decides the glyph, so every surface
|
|
11
|
-
* that draws or announces a shortcut
|
|
12
|
-
* field
|
|
11
|
+
* that draws or announces a shortcut, rail rows, menus, a pane's search
|
|
12
|
+
* field, draws the same one. They sit next to the `Kbd` caps because the
|
|
13
13
|
* glyph is a property of the drawing, not of the feature that shows it: a
|
|
14
14
|
* spelled-out `Ctrl` needs one cap per word (a `KbdGroup`), while `⌘K` can
|
|
15
15
|
* ride `KbdChord`'s one-cap-per-character split.
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Which modifier a chord should advertise.
|
|
4
4
|
*
|
|
5
5
|
* Every global chord in the product binds `(metaKey || ctrlKey)`, so the
|
|
6
|
-
* working key is the platform's command modifier wherever the app runs
|
|
6
|
+
* working key is the platform's command modifier wherever the app runs, but
|
|
7
7
|
* Apple platforms draw it as ⌘ and everyone else spells it Ctrl. A chord
|
|
8
8
|
* label drawn from anything else (a hardcoded ⌘, say) advertises a key that
|
|
9
9
|
* does not work as drawn on Windows and Linux.
|
|
10
10
|
*
|
|
11
11
|
* These helpers are the one place that decides the glyph, so every surface
|
|
12
|
-
* that draws or announces a shortcut
|
|
13
|
-
* field
|
|
12
|
+
* that draws or announces a shortcut, rail rows, menus, a pane's search
|
|
13
|
+
* field, draws the same one. They sit next to the `Kbd` caps because the
|
|
14
14
|
* glyph is a property of the drawing, not of the feature that shows it: a
|
|
15
15
|
* spelled-out `Ctrl` needs one cap per word (a `KbdGroup`), while `⌘K` can
|
|
16
16
|
* ride `KbdChord`'s one-cap-per-character split.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-modifier.js","names":[],"sources":["../../../../src/components/ui/kbd/platform-modifier.ts"],"sourcesContent":["/**\n * Which modifier a chord should advertise.\n *\n * Every global chord in the product binds `(metaKey || ctrlKey)`, so the\n * working key is the platform's command modifier wherever the app runs
|
|
1
|
+
{"version":3,"file":"platform-modifier.js","names":[],"sources":["../../../../src/components/ui/kbd/platform-modifier.ts"],"sourcesContent":["/**\n * Which modifier a chord should advertise.\n *\n * Every global chord in the product binds `(metaKey || ctrlKey)`, so the\n * working key is the platform's command modifier wherever the app runs, but\n * Apple platforms draw it as ⌘ and everyone else spells it Ctrl. A chord\n * label drawn from anything else (a hardcoded ⌘, say) advertises a key that\n * does not work as drawn on Windows and Linux.\n *\n * These helpers are the one place that decides the glyph, so every surface\n * that draws or announces a shortcut, rail rows, menus, a pane's search\n * field, draws the same one. They sit next to the `Kbd` caps because the\n * glyph is a property of the drawing, not of the feature that shows it: a\n * spelled-out `Ctrl` needs one cap per word (a `KbdGroup`), while `⌘K` can\n * ride `KbdChord`'s one-cap-per-character split.\n */\n\n/** The modifier glyph the running OS renders for Meta: ⌘ on Apple platforms, Ctrl elsewhere. */\nexport function platformModifierKey(platform?: string): '⌘' | 'Ctrl' {\n // The guard keeps server renders honest: no navigator means no Apple\n // platform string, so they fall back to the spelled-out modifier.\n const browserPlatform = platform ?? (typeof navigator === 'undefined' ? '' : navigator.platform)\n return /Mac|iPhone|iPad|iPod/i.test(browserPlatform) ? '⌘' : 'Ctrl'\n}\n\n/** The workspace search chord label as the rail's hover text draws it: the\n * platform modifier plus K (`⌘K`, or `Ctrl+K` where ⌘ does not exist). */\nexport function searchShortcutLabel(platform?: string): string {\n return platformModifierKey(platform) === '⌘' ? '⌘K' : 'Ctrl+K'\n}\n\n/**\n * The `aria-keyshortcuts` for the search chord. The binding accepts Meta and\n * Ctrl alike, so the announced shortcuts name both: a hardcoded `Meta+K`\n * would promise a key the row does not keep on non-Apple platforms.\n */\nexport const searchShortcutKeyshortcuts = 'Meta+K Control+K'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,SAAgB,oBAAoB,UAAiC;CAGnE,MAAM,kBAAkB,aAAa,OAAO,cAAc,cAAc,KAAK,UAAU;CACvF,OAAO,wBAAwB,KAAK,eAAe,IAAI,MAAM;AAC/D;;;AAIA,SAAgB,oBAAoB,UAA2B;CAC7D,OAAO,oBAAoB,QAAQ,MAAM,MAAM,OAAO;AACxD;;;;;;AAOA,IAAa,6BAA6B"}
|
|
@@ -3,7 +3,7 @@ import type { ComponentProps } from 'solid-js';
|
|
|
3
3
|
* Label.
|
|
4
4
|
*
|
|
5
5
|
* A plain `<label>` rather than a Kobalte control. Kobalte has no standalone
|
|
6
|
-
* label primitive
|
|
6
|
+
* label primitive, its labels are parts of `TextField`, `Checkbox` and
|
|
7
7
|
* friends, and those parts carry the association wiring for *their* control.
|
|
8
8
|
* A free-standing label has to be the real element so the browser's native
|
|
9
9
|
* `for` → control association, click-to-focus, and `aria-labelledby` all keep
|
|
@@ -7,7 +7,7 @@ var _tmpl$ = /*#__PURE__*/ template(`<label data-slot=label>`);
|
|
|
7
7
|
* Label.
|
|
8
8
|
*
|
|
9
9
|
* A plain `<label>` rather than a Kobalte control. Kobalte has no standalone
|
|
10
|
-
* label primitive
|
|
10
|
+
* label primitive, its labels are parts of `TextField`, `Checkbox` and
|
|
11
11
|
* friends, and those parts carry the association wiring for *their* control.
|
|
12
12
|
* A free-standing label has to be the real element so the browser's native
|
|
13
13
|
* `for` → control association, click-to-focus, and `aria-labelledby` all keep
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":["splitProps","cn","Label","props","local","rest","_el$","_tmpl$","_$spread","_$mergeProps","class"],"sources":["../../../../src/components/ui/label/label.tsx"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\n\n/**\n * Label.\n *\n * A plain `<label>` rather than a Kobalte control. Kobalte has no standalone\n * label primitive
|
|
1
|
+
{"version":3,"file":"label.js","names":["splitProps","cn","Label","props","local","rest","_el$","_tmpl$","_$spread","_$mergeProps","class"],"sources":["../../../../src/components/ui/label/label.tsx"],"sourcesContent":["import type { ComponentProps } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { cn } from '#lib/utils'\n\n/**\n * Label.\n *\n * A plain `<label>` rather than a Kobalte control. Kobalte has no standalone\n * label primitive, its labels are parts of `TextField`, `Checkbox` and\n * friends, and those parts carry the association wiring for *their* control.\n * A free-standing label has to be the real element so the browser's native\n * `for` → control association, click-to-focus, and `aria-labelledby` all keep\n * working.\n *\n * Use the compound controls' own labels (`Switch.Label`, `Checkbox.Label`) when\n * the label belongs to one of them; use this one for an `Input` or `Textarea`,\n * which are plain elements with no wrapper.\n */\nexport function Label(props: ComponentProps<'label'>) {\n const [local, rest] = splitProps(props, ['class'])\n\n return (\n <label\n data-slot=\"label\"\n class={cn(\n 'flex items-center gap-2 text-sm leading-none font-medium select-none',\n /* A label inside a disabled group is part of a dead control and must\n not offer a pointer that does nothing. */\n 'group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50',\n 'peer-disabled:cursor-not-allowed peer-disabled:opacity-50',\n local.class\n )}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,SAAgBE,MAAMC,OAAgC;CACpD,MAAM,CAACC,OAAOC,QAAQL,WAAWG,OAAO,CAAC,OAAO,CAAC;CAEjD,cAAA;EAAA,IAAAG,OAAAC,OAAA;EAAAC,OAAAF,MAAAG,WAAA,EAAA,KAAA,WAAA;GAAA,OAGWR,GACL,wEAGA,wFACA,6DACAG,MAAMM,KACR;EAAC,EAAA,GACGL,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAC;CAAA,EAAA,CAAA;AAGd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/marker/marker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAE1E,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc;;;8EAezB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAC/D,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAClB,uDAAuD;IACvD,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACzB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAC9B,CAAA;AAEH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/marker/marker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAE1E,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc;;;8EAezB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAC/D,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAClB,uDAAuD;IACvD,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACzB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAC9B,CAAA;AAEH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eA2CxC"}
|
|
@@ -4,9 +4,9 @@ import { createComponent, insert, memo, mergeProps, spread, template } from "sol
|
|
|
4
4
|
import { Show, splitProps } from "solid-js";
|
|
5
5
|
// src/components/ui/marker/marker.tsx
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template(`<span aria-hidden=true class="h-px min-w-4 flex-1 bg-border">`);
|
|
7
|
-
var _tmpl$2 = /*#__PURE__*/ template(`<
|
|
8
|
-
var _tmpl$3 = /*#__PURE__*/ template(`<span class="
|
|
9
|
-
var _tmpl$4 = /*#__PURE__*/ template(`<
|
|
7
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<div data-slot=marker><span class="flex min-w-0 items-center gap-1.5"><span class="font-medium [overflow-wrap:anywhere]">`);
|
|
8
|
+
var _tmpl$3 = /*#__PURE__*/ template(`<span aria-hidden=true class="grid shrink-0 place-items-center [&_svg]:size-3.5">`);
|
|
9
|
+
var _tmpl$4 = /*#__PURE__*/ template(`<span class="text-muted-foreground [overflow-wrap:anywhere]">`);
|
|
10
10
|
/**
|
|
11
11
|
* Marker.
|
|
12
12
|
*
|
|
@@ -57,7 +57,7 @@ function Marker(props) {
|
|
|
57
57
|
]);
|
|
58
58
|
const rule = () => (local.variant ?? "rule") === "rule";
|
|
59
59
|
return (() => {
|
|
60
|
-
var _el$ = _tmpl$
|
|
60
|
+
var _el$ = _tmpl$2(), _el$3 = _el$.firstChild, _el$4 = _el$3.firstChild;
|
|
61
61
|
spread(_el$, mergeProps({
|
|
62
62
|
get role() {
|
|
63
63
|
return memo(() => local.live === "assertive")() ? "alert" : local.live === "polite" ? "status" : void 0;
|
|
@@ -81,30 +81,28 @@ function Marker(props) {
|
|
|
81
81
|
get when() {
|
|
82
82
|
return local.icon;
|
|
83
83
|
},
|
|
84
|
-
|
|
85
|
-
var _el$
|
|
86
|
-
insert(_el$
|
|
87
|
-
return _el$
|
|
88
|
-
}
|
|
89
|
-
}), _el$
|
|
90
|
-
insert(_el$
|
|
84
|
+
children: (iconSlot) => (() => {
|
|
85
|
+
var _el$6 = _tmpl$3();
|
|
86
|
+
insert(_el$6, iconSlot);
|
|
87
|
+
return _el$6;
|
|
88
|
+
})()
|
|
89
|
+
}), _el$4);
|
|
90
|
+
insert(_el$4, () => local.label);
|
|
91
91
|
insert(_el$3, createComponent(Show, {
|
|
92
92
|
get when() {
|
|
93
93
|
return local.description;
|
|
94
94
|
},
|
|
95
|
-
|
|
96
|
-
var _el$
|
|
97
|
-
insert(_el$
|
|
98
|
-
return _el$
|
|
99
|
-
}
|
|
95
|
+
children: (descriptionSlot) => (() => {
|
|
96
|
+
var _el$7 = _tmpl$4();
|
|
97
|
+
insert(_el$7, descriptionSlot);
|
|
98
|
+
return _el$7;
|
|
99
|
+
})()
|
|
100
100
|
}), null);
|
|
101
101
|
insert(_el$3, createComponent(Show, {
|
|
102
102
|
get when() {
|
|
103
103
|
return local.action;
|
|
104
104
|
},
|
|
105
|
-
|
|
106
|
-
return local.action;
|
|
107
|
-
}
|
|
105
|
+
children: (actionSlot) => memo(actionSlot)
|
|
108
106
|
}), null);
|
|
109
107
|
insert(_el$, createComponent(Show, {
|
|
110
108
|
get when() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker.js","names":["Show","splitProps","cn","cva","markerVariants","variants","tone","neutral","info","success","warning","danger","variant","rule","note","defaultVariants","label","icon","description","action","live","Marker","props","local","rest","_el$","_tmpl$
|
|
1
|
+
{"version":3,"file":"marker.js","names":["Show","splitProps","cn","cva","markerVariants","variants","tone","neutral","info","success","warning","danger","variant","rule","note","defaultVariants","label","icon","description","action","live","Marker","props","local","rest","_el$","_tmpl$2","_el$3","firstChild","_el$4","_$spread","_$mergeProps","role","_$memo","undefined","class","_$insert","_$createComponent","when","children","_tmpl$","iconSlot","_el$6","_tmpl$3","descriptionSlot","_el$7","_tmpl$4","actionSlot"],"sources":["../../../../src/components/ui/marker/marker.tsx"],"sourcesContent":["import { Show, splitProps, type ComponentProps, type JSX } from 'solid-js'\nimport { cn } from '#lib/utils'\nimport { cva, type VariantProps } from '#lib/variants'\n\n/**\n * Marker.\n *\n * A note or divider *between* turns: a day change, a reconnect, a cancelled run,\n * an event the transcript does not recognise. It is deliberately the quietest\n * element in the column — a hairline with a label — because the transcript has\n * dozens of these and any one that shouts teaches the reader to stop looking.\n *\n * `variant=\"rule\"` draws the hairline either side (a boundary: \"Today\",\n * \"Reconnected\"); `variant=\"note\"` is a bare line of text with its mark (an\n * observation that sits inside the flow). `tone` colours the mark and label and\n * is never the only signal — the `label` always says it in words.\n *\n * A marker is static by default. Pass `live` for one that reports a change the\n * reader must not miss (connection lost): it becomes a status region (`polite`)\n * or an alert (`assertive`). A divider is not an ARIA separator, because\n * `separator` is defined to carry no content.\n */\nexport const markerVariants = cva('flex min-w-0 items-center gap-3 text-xs', {\n variants: {\n tone: {\n neutral: 'text-muted-foreground',\n info: 'text-info',\n success: 'text-success',\n warning: 'text-warning',\n danger: 'text-destructive',\n },\n variant: {\n rule: 'w-full',\n note: 'w-full justify-start',\n },\n },\n defaultVariants: { tone: 'neutral', variant: 'rule' },\n})\n\nexport type MarkerProps = Omit<ComponentProps<'div'>, 'children'> &\n VariantProps<typeof markerVariants> & {\n label: JSX.Element\n icon?: JSX.Element\n /** Secondary text after the label: a time, a count. */\n description?: JSX.Element\n /** A control that belongs to the note: Retry, Reconnect. */\n action?: JSX.Element\n live?: 'polite' | 'assertive'\n }\n\nexport function Marker(props: MarkerProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'tone',\n 'variant',\n 'label',\n 'icon',\n 'description',\n 'action',\n 'live',\n ])\n const rule = () => (local.variant ?? 'rule') === 'rule'\n return (\n <div\n data-slot=\"marker\"\n role={local.live === 'assertive' ? 'alert' : local.live === 'polite' ? 'status' : undefined}\n class={cn(markerVariants({ tone: local.tone, variant: local.variant }), local.class)}\n {...rest}\n >\n <Show when={rule()}>\n <span aria-hidden=\"true\" class=\"h-px min-w-4 flex-1 bg-border\" />\n </Show>\n <span class=\"flex min-w-0 items-center gap-1.5\">\n <Show when={local.icon}>\n {(iconSlot) => (\n <span aria-hidden=\"true\" class=\"grid shrink-0 place-items-center [&_svg]:size-3.5\">\n {iconSlot()}\n </span>\n )}\n </Show>\n <span class=\"font-medium [overflow-wrap:anywhere]\">{local.label}</span>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <span class=\"text-muted-foreground [overflow-wrap:anywhere]\">{descriptionSlot()}</span>\n )}\n </Show>\n <Show when={local.action}>{(actionSlot) => <>{actionSlot()}</>}</Show>\n </span>\n <Show when={rule()}>\n <span aria-hidden=\"true\" class=\"h-px min-w-4 flex-1 bg-border\" />\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAaI,iBAAiBD,IAAI,2CAA2C;CAC3EE,UAAU;EACRC,MAAM;GACJC,SAAS;GACTC,MAAM;GACNC,SAAS;GACTC,SAAS;GACTC,QAAQ;EACV;EACAC,SAAS;GACPC,MAAM;GACNC,MAAM;EACR;CACF;CACAC,iBAAiB;EAAET,MAAM;EAAWM,SAAS;CAAO;AACtD,CAAC;AAaD,SAAgBS,OAAOC,OAAoB;CACzC,MAAM,CAACC,OAAOC,QAAQvB,WAAWqB,OAAO;EACtC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAAM,CACP;CACD,MAAMT,cAAcU,MAAMX,WAAW,YAAY;CACjD,cAAA;EAAA,IAAAa,OAAAC,QAAA,GAAAC,QAAAF,KAAAG,YAAAC,QAAAF,MAAAC;EAAAE,OAAAL,MAAAM,WAAA;GAAA,IAGIC,OAAI;IAAA,OAAEC,WAAAV,MAAMH,SAAS,WAAW,CAAA,CAAA,IAAG,UAAUG,MAAMH,SAAS,WAAW,WAAWc,KAAAA;GAAS;GAAA,KAAA,WAAA;IAAA,OACpFhC,GAAGE,eAAe;KAAEE,MAAMiB,MAAMjB;KAAMM,SAASW,MAAMX;IAAQ,CAAC,GAAGW,MAAMY,KAAK;GAAC;EAAA,GAChFX,IAAI,GAAA,OAAA,IAAA;EAAAY,OAAAX,MAAAY,gBAEPrC,MAAI;GAAA,IAACsC,OAAI;IAAA,OAAEzB,KAAK;GAAC;GAAA,IAAA0B,WAAA;IAAA,OAAAC,OAAA;GAAA;EAAA,CAAA,GAAAb,KAAA;EAAAS,OAAAT,OAAAU,gBAIfrC,MAAI;GAAA,IAACsC,OAAI;IAAA,OAAEf,MAAMN;GAAI;GAAAsB,WAClBE,oBAAQ;IAAA,IAAAC,QAAAC,QAAA;IAAAP,OAAAM,OAELD,QAAQ;IAAA,OAAAC;GAAA,EAAA,CAAA;EAEZ,CAAA,GAAAb,KAAA;EAAAO,OAAAP,aAEiDN,MAAMP,KAAK;EAAAoB,OAAAT,OAAAU,gBAC9DrC,MAAI;GAAA,IAACsC,OAAI;IAAA,OAAEf,MAAML;GAAW;GAAAqB,WACzBK,2BAAe;IAAA,IAAAC,QAAAC,QAAA;IAAAV,OAAAS,OAC+CD,eAAe;IAAA,OAAAC;GAAA,EAAA,CAAA;EAC9E,CAAA,GAAA,IAAA;EAAAT,OAAAT,OAAAU,gBAEFrC,MAAI;GAAA,IAACsC,OAAI;IAAA,OAAEf,MAAMJ;GAAM;GAAAoB,WAAIQ,eAAUd,KAAQc,UAAU;EAAM,CAAA,GAAA,IAAA;EAAAX,OAAAX,MAAAY,gBAE/DrC,MAAI;GAAA,IAACsC,OAAI;IAAA,OAAEzB,KAAK;GAAC;GAAA,IAAA0B,WAAA;IAAA,OAAAC,OAAA;GAAA;EAAA,CAAA,GAAA,IAAA;EAAA,OAAAf;CAAA,EAAA,CAAA;AAKxB"}
|
|
@@ -3,7 +3,7 @@ import type { ComponentProps } from 'solid-js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Menubar.
|
|
5
5
|
*
|
|
6
|
-
* A persistent row of menus at the top of a surface
|
|
6
|
+
* A persistent row of menus at the top of a surface, the desktop application
|
|
7
7
|
* pattern. Each trigger opens its own menu, and the arrow keys move *between*
|
|
8
8
|
* menus once one is open, which is what makes a menubar a single control rather
|
|
9
9
|
* than five menus that happen to be adjacent.
|
|
@@ -31,7 +31,7 @@ export declare const MenubarSubTrigger: (props: ComponentProps<typeof import("@k
|
|
|
31
31
|
export declare const MenubarSubContent: (props: ComponentProps<typeof import("@kobalte/core/menu").MenuSubContent>) => import("solid-js").JSX.Element;
|
|
32
32
|
export {
|
|
33
33
|
/**
|
|
34
|
-
* One top-level menu: a trigger and the panel it opens. Required
|
|
34
|
+
* One top-level menu: a trigger and the panel it opens. Required, the
|
|
35
35
|
* menubar's arrow keys move *between* menus, which only works when each
|
|
36
36
|
* trigger belongs to a menu the bar knows about. `value` names it.
|
|
37
37
|
*/
|
|
@@ -8,7 +8,7 @@ import { Group as MenubarGroup, Menu as MenubarMenu, Menubar, RadioGroup as Menu
|
|
|
8
8
|
/**
|
|
9
9
|
* Menubar.
|
|
10
10
|
*
|
|
11
|
-
* A persistent row of menus at the top of a surface
|
|
11
|
+
* A persistent row of menus at the top of a surface, the desktop application
|
|
12
12
|
* pattern. Each trigger opens its own menu, and the arrow keys move *between*
|
|
13
13
|
* menus once one is open, which is what makes a menubar a single control rather
|
|
14
14
|
* than five menus that happen to be adjacent.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.js","names":["Menubar","KobalteMenubar","splitProps","topLayerProps","cn","createMenuParts","menuPanel","props","local","rest","_$createComponent","_$mergeProps","class","MenubarTrigger","Trigger","Content","hideArrow","MenubarContent","Portal","children","_$memo","Arrow","parts","MenubarItem","Item","MenubarCheckboxItem","CheckboxItem","MenubarRadioItem","RadioItem","MenubarLabel","Label","MenubarSeparator","Separator","MenubarSubTrigger","SubTrigger","MenubarSubContent","SubContent"],"sources":["../../../../src/components/ui/menubar/menubar.tsx"],"sourcesContent":["import { Menubar as KobalteMenubar } from '@kobalte/core/menubar'\nimport type { ComponentProps } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { popoverArrow, topLayerProps } from '#lib/overlay'\nimport { cn } from '#lib/utils'\nimport { createMenuParts, menuPanel } from '../dropdown-menu/menu-parts'\n\n/**\n * Menubar.\n *\n * A persistent row of menus at the top of a surface
|
|
1
|
+
{"version":3,"file":"menubar.js","names":["Menubar","KobalteMenubar","splitProps","topLayerProps","cn","createMenuParts","menuPanel","props","local","rest","_$createComponent","_$mergeProps","class","MenubarTrigger","Trigger","Content","hideArrow","MenubarContent","Portal","children","_$memo","Arrow","parts","MenubarItem","Item","MenubarCheckboxItem","CheckboxItem","MenubarRadioItem","RadioItem","MenubarLabel","Label","MenubarSeparator","Separator","MenubarSubTrigger","SubTrigger","MenubarSubContent","SubContent"],"sources":["../../../../src/components/ui/menubar/menubar.tsx"],"sourcesContent":["import { Menubar as KobalteMenubar } from '@kobalte/core/menubar'\nimport type { ComponentProps } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { popoverArrow, topLayerProps } from '#lib/overlay'\nimport { cn } from '#lib/utils'\nimport { createMenuParts, menuPanel } from '../dropdown-menu/menu-parts'\n\n/**\n * Menubar.\n *\n * A persistent row of menus at the top of a surface, the desktop application\n * pattern. Each trigger opens its own menu, and the arrow keys move *between*\n * menus once one is open, which is what makes a menubar a single control rather\n * than five menus that happen to be adjacent.\n *\n * This is for a window-level command surface. For actions on one thing, use\n * DropdownMenu; a menubar on a row would be a menu pretending to be chrome.\n */\nexport function Menubar(props: ComponentProps<typeof KobalteMenubar>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <KobalteMenubar\n class={cn(\n 'flex items-center gap-0.5 rounded-md border border-border bg-card p-0.5',\n local.class\n )}\n {...rest}\n />\n )\n}\n\nexport function MenubarTrigger(props: ComponentProps<typeof KobalteMenubar.Trigger>) {\n const [local, rest] = splitProps(props, ['class'])\n return (\n <KobalteMenubar.Trigger\n class={cn(\n 'flex items-center rounded-sm px-2 py-1 text-sm font-medium select-none',\n 'transition-colors ease-out outline-none',\n 'data-[expanded]:bg-surface-active',\n 'data-[highlighted]:bg-surface-hover',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n local.class\n )}\n {...rest}\n />\n )\n}\n\nexport type MenubarContentProps = ComponentProps<typeof KobalteMenubar.Content> & {\n /**\n * The arrow is hidden by default, as on DropdownMenu: Kobalte reserves half\n * of the arrow's box as popper gutter, so a menu with one floated 15px off\n * its trigger. Pass `false` to draw it.\n */\n hideArrow?: boolean\n}\n\nexport function MenubarContent(props: MenubarContentProps) {\n const [local, rest] = splitProps(props, ['class', 'children', 'hideArrow'])\n return (\n <KobalteMenubar.Portal>\n <KobalteMenubar.Content\n {...topLayerProps}\n class={cn(menuPanel, 'min-w-[10rem]', local.class)}\n {...rest}\n >\n {local.hideArrow === false && (\n <KobalteMenubar.Arrow aria-hidden=\"true\" class={popoverArrow} />\n )}\n {local.children}\n </KobalteMenubar.Content>\n </KobalteMenubar.Portal>\n )\n}\n\nconst parts = createMenuParts(KobalteMenubar, 'menubar')\n\nexport const MenubarItem = parts.Item\nexport const MenubarCheckboxItem = parts.CheckboxItem\nexport const MenubarRadioItem = parts.RadioItem\nexport const MenubarLabel = parts.Label\nexport const MenubarSeparator = parts.Separator\nexport const MenubarSubTrigger = parts.SubTrigger\nexport const MenubarSubContent = parts.SubContent\nexport {\n /**\n * One top-level menu: a trigger and the panel it opens. Required, the\n * menubar's arrow keys move *between* menus, which only works when each\n * trigger belongs to a menu the bar knows about. `value` names it.\n */\n Menu as MenubarMenu,\n Group as MenubarGroup,\n RadioGroup as MenubarRadioGroup,\n Sub as MenubarSub,\n} from '@kobalte/core/menubar'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,SAAgBA,UAAQO,OAA8C;CACpE,MAAM,CAACC,OAAOC,QAAQP,WAAWK,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAG,gBACGT,SAAcU,WAAA,EAAA,KAAA,WAAA;EAAA,OACNP,GACL,2EACAI,MAAMI,KACR;CAAC,EAAA,GACGH,IAAI,CAAA;AAGd;AAEA,SAAgBI,eAAeN,OAAsD;CACnF,MAAM,CAACC,OAAOC,QAAQP,WAAWK,OAAO,CAAC,OAAO,CAAC;CACjD,OAAAG,gBACGT,QAAea,SAAOH,WAAA,EAAA,KAAA,WAAA;EAAA,OACdP,GACL,0EACA,2CACA,qCACA,uCACA,oFACAI,MAAMI,KACR;CAAC,EAAA,GACGH,IAAI,CAAA;AAGd;AAWA,SAAgBQ,eAAeV,OAA4B;CACzD,MAAM,CAACC,OAAOC,QAAQP,WAAWK,OAAO;EAAC;EAAS;EAAY;CAAW,CAAC;CAC1E,OAAAG,gBACGT,QAAeiB,QAAM,EAAA,IAAAC,WAAA;EAAA,OAAAT,gBACnBT,QAAec,SAAOJ,WACjBR,eAAa,EAAA,KAAA,WAAA;GAAA,OACVC,GAAGE,WAAW,iBAAiBE,MAAMI,KAAK;EAAC,EAAA,GAC9CH,MAAI,EAAA,IAAAU,WAAA;GAAA,OAAA,CAAAC,WAEPA,WAAAZ,MAAMQ,cAAc,KAAK,CAAA,CAAA,KAAAN,gBACvBT,QAAeoB,OAAK;IAAA,eAAA;IAAA,SAAA;GAAuC,CAAA,CAC7D,GAAAD,WACAZ,MAAMW,QAAQ,CAAA;EAAA,EAAA,CAAA,CAAA;CAAA,EAAA,CAAA;AAIvB;AAEA,IAAMG,QAAQjB,gBAAgBJ,SAAgB,SAAS;AAEvD,IAAasB,cAAcD,MAAME;AACjC,IAAaC,sBAAsBH,MAAMI;AACzC,IAAaC,mBAAmBL,MAAMM;AACtC,IAAaC,eAAeP,MAAMQ;AAClC,IAAaC,mBAAmBT,MAAMU;AACtC,IAAaC,oBAAoBX,MAAMY;AACvC,IAAaC,oBAAoBb,MAAMc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/message/message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,GAAG,EACT,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAA;AAG1E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEzD,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,GAAG;IACnE,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,eAgC1C;AAED,gEAAgE;AAChE,wBAAgB,aAAa,CAC3B,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/message/message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,GAAG,EACT,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAA;AAG1E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEzD,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,GAAG;IACnE,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,eAgC1C;AAED,gEAAgE;AAChE,wBAAgB,aAAa,CAC3B,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CAAE,eAc/E;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,eAc1D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,eAc1D;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,eAW5D;AAED,oDAAoD;AACpD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,cAAc,EACd,eAAe,GAAG,WAAW,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,GAAG,WAAW,CACvF,CAAA;AAED,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;IAC1C,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAC,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,KAAK,GAAG,CAAC,OAAO,CAAA;CACpD,CAAC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACvE,IAAI,EAAE,MAAM,CAAA;IACZ,uFAAuF;IACvF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,qBAAqB,GAAG,CAAC,CAAC,KAAK,EAAE,oBAAoB,KAAK,qBAAqB,CAAC,CAAA;IACjG,mEAAmE;IACnE,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAC7B,CAAA;AAWD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAsDlD"}
|
|
@@ -5,8 +5,8 @@ import { createComponent, effect, insert, memo, mergeProps, setAttribute, spread
|
|
|
5
5
|
import { For, Index, Match, Show, Switch, createMemo, splitProps } from "solid-js";
|
|
6
6
|
// src/components/ui/message/message.tsx
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template(`<article data-slot=message>`);
|
|
8
|
-
var _tmpl$2 = /*#__PURE__*/ template(`<span class=
|
|
9
|
-
var _tmpl$3 = /*#__PURE__*/ template(`<
|
|
8
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<header data-slot=message-header><span class="font-medium text-foreground">`);
|
|
9
|
+
var _tmpl$3 = /*#__PURE__*/ template(`<span class=tabular-nums>`);
|
|
10
10
|
var _tmpl$4 = /*#__PURE__*/ template(`<div data-slot=message-content>`);
|
|
11
11
|
var _tmpl$5 = /*#__PURE__*/ template(`<div data-slot=message-actions>`);
|
|
12
12
|
var _tmpl$6 = /*#__PURE__*/ template(`<footer data-slot=message-footer>`);
|
|
@@ -65,7 +65,7 @@ function MessageHeader(props) {
|
|
|
65
65
|
"children"
|
|
66
66
|
]);
|
|
67
67
|
return (() => {
|
|
68
|
-
var _el$2 = _tmpl$
|
|
68
|
+
var _el$2 = _tmpl$2(), _el$3 = _el$2.firstChild;
|
|
69
69
|
spread(_el$2, mergeProps({ get ["class"]() {
|
|
70
70
|
return cn("flex items-center gap-2 text-xs text-muted-foreground", local.class);
|
|
71
71
|
} }, rest), false, true);
|
|
@@ -73,20 +73,18 @@ function MessageHeader(props) {
|
|
|
73
73
|
get when() {
|
|
74
74
|
return local.avatar;
|
|
75
75
|
},
|
|
76
|
-
|
|
77
|
-
return local.avatar;
|
|
78
|
-
}
|
|
76
|
+
children: (avatarSlot) => memo(avatarSlot)
|
|
79
77
|
}), _el$3);
|
|
80
78
|
insert(_el$3, () => local.children);
|
|
81
79
|
insert(_el$2, createComponent(Show, {
|
|
82
80
|
get when() {
|
|
83
81
|
return local.time;
|
|
84
82
|
},
|
|
85
|
-
|
|
86
|
-
var _el$4 = _tmpl$
|
|
87
|
-
insert(_el$4,
|
|
83
|
+
children: (timeSlot) => (() => {
|
|
84
|
+
var _el$4 = _tmpl$3();
|
|
85
|
+
insert(_el$4, timeSlot);
|
|
88
86
|
return _el$4;
|
|
89
|
-
}
|
|
87
|
+
})()
|
|
90
88
|
}), null);
|
|
91
89
|
return _el$2;
|
|
92
90
|
})();
|
|
@@ -357,7 +355,7 @@ function BlockView(props) {
|
|
|
357
355
|
} });
|
|
358
356
|
}
|
|
359
357
|
function Inline(props) {
|
|
360
|
-
return createComponent(
|
|
358
|
+
return createComponent(Index, {
|
|
361
359
|
get each() {
|
|
362
360
|
return props.nodes;
|
|
363
361
|
},
|
|
@@ -365,13 +363,13 @@ function Inline(props) {
|
|
|
365
363
|
return [
|
|
366
364
|
createComponent(Match, {
|
|
367
365
|
get when() {
|
|
368
|
-
return node.kind === "text" && node;
|
|
366
|
+
return memo(() => node().kind === "text")() && node();
|
|
369
367
|
},
|
|
370
|
-
children: (text) => text().text
|
|
368
|
+
children: (text) => memo(() => text().text)
|
|
371
369
|
}),
|
|
372
370
|
createComponent(Match, {
|
|
373
371
|
get when() {
|
|
374
|
-
return node.kind === "code" && node;
|
|
372
|
+
return memo(() => node().kind === "code")() && node();
|
|
375
373
|
},
|
|
376
374
|
children: (code) => createComponent(InlineCode, { get children() {
|
|
377
375
|
return code().text;
|
|
@@ -379,7 +377,7 @@ function Inline(props) {
|
|
|
379
377
|
}),
|
|
380
378
|
createComponent(Match, {
|
|
381
379
|
get when() {
|
|
382
|
-
return node.kind === "strong" && node;
|
|
380
|
+
return memo(() => node().kind === "strong")() && node();
|
|
383
381
|
},
|
|
384
382
|
children: (strong) => (() => {
|
|
385
383
|
var _el$15 = _tmpl$13();
|
|
@@ -396,7 +394,7 @@ function Inline(props) {
|
|
|
396
394
|
}),
|
|
397
395
|
createComponent(Match, {
|
|
398
396
|
get when() {
|
|
399
|
-
return node.kind === "em" && node;
|
|
397
|
+
return memo(() => node().kind === "em")() && node();
|
|
400
398
|
},
|
|
401
399
|
children: (em) => (() => {
|
|
402
400
|
var _el$16 = _tmpl$14();
|
|
@@ -413,7 +411,7 @@ function Inline(props) {
|
|
|
413
411
|
}),
|
|
414
412
|
createComponent(Match, {
|
|
415
413
|
get when() {
|
|
416
|
-
return node.kind === "link" && node;
|
|
414
|
+
return memo(() => node().kind === "link")() && node();
|
|
417
415
|
},
|
|
418
416
|
children: (link) => (() => {
|
|
419
417
|
var _el$17 = _tmpl$15();
|
|
@@ -426,7 +424,7 @@ function Inline(props) {
|
|
|
426
424
|
}),
|
|
427
425
|
createComponent(Match, {
|
|
428
426
|
get when() {
|
|
429
|
-
return node.kind === "cite" && node;
|
|
427
|
+
return memo(() => node().kind === "cite")() && node();
|
|
430
428
|
},
|
|
431
429
|
children: (cite) => {
|
|
432
430
|
const marker = () => cite();
|