meowtail 0.2.0-alpha.2 → 0.4.0-alpha.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/AGENT-COMPONENTS.md +4 -3
- package/ASSISTANT.md +7 -2
- package/CHANGELOG.md +96 -0
- package/COMPONENTS.md +342 -0
- package/JSON.md +1 -1
- package/README.md +177 -40
- package/THIRD_PARTY_NOTICES.md +47 -0
- package/dist/src/chat/assistant-composer.d.ts +10 -6
- package/dist/src/chat/assistant-composer.js +56 -93
- package/dist/src/chat/assistant-content.d.ts +29 -12
- package/dist/src/chat/assistant-content.js +87 -71
- package/dist/src/chat/assistant-markdown.d.ts +11 -7
- package/dist/src/chat/assistant-markdown.js +6 -5
- package/dist/src/chat/assistant-question.d.ts +10 -7
- package/dist/src/chat/assistant-question.js +34 -64
- package/dist/src/chat/assistant-scroll.d.ts +2 -0
- package/dist/src/chat/assistant-scroll.js +28 -1
- package/dist/src/chat/assistant-types.d.ts +24 -2
- package/dist/src/chat/assistant-types.js +7 -0
- package/dist/src/chat/assistant.d.ts +9 -6
- package/dist/src/chat/assistant.js +226 -193
- package/dist/src/chat/attachments.d.ts +10 -7
- package/dist/src/chat/attachments.js +46 -60
- package/dist/src/chat/bubble.d.ts +12 -13
- package/dist/src/chat/bubble.js +8 -13
- package/dist/src/chat/bubble.options.d.ts +3 -0
- package/dist/src/chat/bubble.options.js +4 -0
- package/dist/src/chat/composer-panel.d.ts +9 -8
- package/dist/src/chat/composer-panel.js +12 -6
- package/dist/src/chat/composer.d.ts +17 -18
- package/dist/src/chat/composer.js +52 -63
- package/dist/src/chat/composer.options.d.ts +4 -0
- package/dist/src/chat/composer.options.js +5 -0
- package/dist/src/chat/conversation.d.ts +19 -10
- package/dist/src/chat/conversation.js +24 -17
- package/dist/src/chat/frame.d.ts +10 -7
- package/dist/src/chat/frame.js +6 -3
- package/dist/src/chat/header.d.ts +10 -7
- package/dist/src/chat/header.js +14 -12
- package/dist/src/chat/index.d.ts +21 -17
- package/dist/src/chat/index.js +21 -17
- package/dist/src/chat/message-actions.d.ts +10 -7
- package/dist/src/chat/message-actions.js +6 -3
- package/dist/src/chat/message-context.d.ts +1 -1
- package/dist/src/chat/message-list.d.ts +32 -14
- package/dist/src/chat/message-list.js +19 -18
- package/dist/src/chat/message.d.ts +9 -7
- package/dist/src/chat/message.js +26 -19
- package/dist/src/chat/process.d.ts +9 -6
- package/dist/src/chat/process.js +13 -5
- package/dist/src/chat/question.d.ts +12 -7
- package/dist/src/chat/question.js +17 -4
- package/dist/src/chat/reasoning.d.ts +24 -0
- package/dist/src/chat/reasoning.js +29 -0
- package/dist/src/chat/sources.d.ts +12 -9
- package/dist/src/chat/sources.js +17 -8
- package/dist/src/chat/status.d.ts +13 -13
- package/dist/src/chat/status.js +11 -12
- package/dist/src/chat/status.options.d.ts +3 -0
- package/dist/src/chat/status.options.js +4 -0
- package/dist/src/chat/task.d.ts +9 -7
- package/dist/src/chat/task.js +46 -28
- package/dist/src/chat/tool-call.d.ts +11 -8
- package/dist/src/chat/tool-call.js +61 -51
- package/dist/src/components/accordion.d.ts +10 -7
- package/dist/src/components/accordion.js +10 -15
- package/dist/src/components/action-rail.d.ts +9 -7
- package/dist/src/components/action-rail.js +11 -8
- package/dist/src/components/action-row.d.ts +22 -0
- package/dist/src/components/action-row.js +18 -0
- package/dist/src/components/action-row.options.d.ts +4 -0
- package/dist/src/components/action-row.options.js +5 -0
- package/dist/src/components/alert.d.ts +20 -16
- package/dist/src/components/alert.js +16 -11
- package/dist/src/components/alert.options.d.ts +6 -0
- package/dist/src/components/alert.options.js +7 -0
- package/dist/src/components/app-bar.d.ts +9 -7
- package/dist/src/components/app-bar.js +12 -6
- package/dist/src/components/aspect-ratio.d.ts +13 -8
- package/dist/src/components/aspect-ratio.js +10 -14
- package/dist/src/components/avatar.d.ts +14 -13
- package/dist/src/components/avatar.js +16 -28
- package/dist/src/components/avatar.options.d.ts +3 -0
- package/dist/src/components/avatar.options.js +4 -0
- package/dist/src/components/badge.d.ts +16 -15
- package/dist/src/components/badge.js +9 -12
- package/dist/src/components/badge.options.d.ts +4 -0
- package/dist/src/components/badge.options.js +5 -0
- package/dist/src/components/breadcrumb.d.ts +10 -7
- package/dist/src/components/breadcrumb.js +9 -7
- package/dist/src/components/button.d.ts +16 -25
- package/dist/src/components/button.js +9 -20
- package/dist/src/components/button.options.d.ts +9 -0
- package/dist/src/components/button.options.js +10 -0
- package/dist/src/components/card-action.d.ts +10 -7
- package/dist/src/components/card-action.js +6 -6
- package/dist/src/components/card-content.d.ts +10 -7
- package/dist/src/components/card-content.js +6 -6
- package/dist/src/components/card-description.d.ts +10 -7
- package/dist/src/components/card-description.js +6 -6
- package/dist/src/components/card-footer.d.ts +10 -7
- package/dist/src/components/card-footer.js +7 -6
- package/dist/src/components/card-header.d.ts +10 -7
- package/dist/src/components/card-header.js +6 -6
- package/dist/src/components/card-title.d.ts +10 -7
- package/dist/src/components/card-title.js +6 -6
- package/dist/src/components/card.d.ts +15 -13
- package/dist/src/components/card.js +13 -11
- package/dist/src/components/card.options.d.ts +3 -0
- package/dist/src/components/card.options.js +2 -0
- package/dist/src/components/checkbox.d.ts +11 -7
- package/dist/src/components/checkbox.js +43 -39
- package/dist/src/components/choice-group.d.ts +10 -7
- package/dist/src/components/choice-group.js +37 -40
- package/dist/src/components/choice-select.d.ts +10 -7
- package/dist/src/components/choice-select.js +106 -147
- package/dist/src/components/code-block.d.ts +28 -6
- package/dist/src/components/code-block.js +40 -21
- package/dist/src/components/container.d.ts +15 -13
- package/dist/src/components/container.js +13 -11
- package/dist/src/components/container.options.d.ts +3 -0
- package/dist/src/components/container.options.js +4 -0
- package/dist/src/components/context-menu.d.ts +10 -7
- package/dist/src/components/context-menu.js +9 -21
- package/dist/src/components/credential-source.js +4 -10
- package/dist/src/components/description-list.d.ts +17 -13
- package/dist/src/components/description-list.js +11 -11
- package/dist/src/components/detail-section.d.ts +9 -7
- package/dist/src/components/detail-section.js +12 -8
- package/dist/src/components/dialog-actions.d.ts +12 -0
- package/dist/src/components/dialog-actions.js +7 -0
- package/dist/src/components/dialog-header.d.ts +18 -0
- package/dist/src/components/dialog-header.js +14 -0
- package/dist/src/components/dialog-panel.d.ts +14 -0
- package/dist/src/components/dialog-panel.js +8 -0
- package/dist/src/components/dialog.d.ts +12 -38
- package/dist/src/components/dialog.js +10 -29
- package/dist/src/components/diff-block.d.ts +12 -7
- package/dist/src/components/diff-block.js +12 -15
- package/dist/src/components/disclosure.d.ts +16 -10
- package/dist/src/components/disclosure.js +14 -13
- package/dist/src/components/drawer.d.ts +10 -7
- package/dist/src/components/drawer.js +37 -38
- package/dist/src/components/empty-state.d.ts +23 -13
- package/dist/src/components/empty-state.js +18 -7
- package/dist/src/components/empty-state.options.d.ts +3 -0
- package/dist/src/components/empty-state.options.js +2 -0
- package/dist/src/components/field-group.d.ts +10 -7
- package/dist/src/components/field-group.js +12 -15
- package/dist/src/components/field.d.ts +13 -8
- package/dist/src/components/field.js +56 -22
- package/dist/src/components/grid.d.ts +18 -20
- package/dist/src/components/grid.js +21 -23
- package/dist/src/components/grid.options.d.ts +7 -0
- package/dist/src/components/grid.options.js +8 -0
- package/dist/src/components/hover-card.d.ts +13 -8
- package/dist/src/components/hover-card.js +29 -38
- package/dist/src/components/icon-button.d.ts +18 -14
- package/dist/src/components/icon-button.js +9 -13
- package/dist/src/components/icon-button.options.d.ts +3 -0
- package/dist/src/components/icon-button.options.js +4 -0
- package/dist/src/components/icon-rail.d.ts +10 -7
- package/dist/src/components/icon-rail.js +15 -10
- package/dist/src/components/image-lightbox.d.ts +12 -7
- package/dist/src/components/image-lightbox.js +38 -43
- package/dist/src/components/image-preview.d.ts +8 -6
- package/dist/src/components/image-preview.js +25 -34
- package/dist/src/components/index.d.ts +104 -95
- package/dist/src/components/index.js +104 -95
- package/dist/src/components/inline.d.ts +14 -10
- package/dist/src/components/inline.js +20 -17
- package/dist/src/components/input.d.ts +10 -7
- package/dist/src/components/input.js +6 -6
- package/dist/src/components/item.d.ts +15 -15
- package/dist/src/components/item.js +17 -15
- package/dist/src/components/item.options.d.ts +4 -0
- package/dist/src/components/item.options.js +5 -0
- package/dist/src/components/json-block.d.ts +12 -7
- package/dist/src/components/json-block.js +16 -16
- package/dist/src/components/json-tree.d.ts +12 -7
- package/dist/src/components/json-tree.js +35 -35
- package/dist/src/components/layout-item.d.ts +9 -6
- package/dist/src/components/layout-item.js +17 -16
- package/dist/src/components/layout-types.d.ts +2 -6
- package/dist/src/components/layout-types.js +1 -6
- package/dist/src/components/layout.options.d.ts +5 -0
- package/dist/src/components/layout.options.js +6 -0
- package/dist/src/components/link.d.ts +9 -7
- package/dist/src/components/link.js +5 -6
- package/dist/src/components/list-group.d.ts +17 -13
- package/dist/src/components/list-group.js +19 -17
- package/dist/src/components/menu-button.d.ts +2 -1
- package/dist/src/components/menu.d.ts +11 -7
- package/dist/src/components/menu.js +49 -70
- package/dist/src/components/mermaid-diagram.d.ts +42 -0
- package/dist/src/components/mermaid-diagram.js +128 -0
- package/dist/src/components/meta-row.d.ts +16 -15
- package/dist/src/components/meta-row.js +30 -32
- package/dist/src/components/meta-row.options.d.ts +4 -0
- package/dist/src/components/meta-row.options.js +5 -0
- package/dist/src/components/modal.d.ts +42 -0
- package/dist/src/components/modal.js +104 -0
- package/dist/src/components/nav-item.d.ts +14 -7
- package/dist/src/components/nav-item.js +13 -15
- package/dist/src/components/nav-list.d.ts +51 -0
- package/dist/src/components/nav-list.js +54 -0
- package/dist/src/components/number-input.d.ts +10 -7
- package/dist/src/components/number-input.js +44 -71
- package/dist/src/components/output-block.d.ts +9 -6
- package/dist/src/components/output-block.js +22 -26
- package/dist/src/components/page-frame.d.ts +19 -16
- package/dist/src/components/page-frame.js +17 -10
- package/dist/src/components/page-frame.options.d.ts +4 -0
- package/dist/src/components/page-frame.options.js +5 -0
- package/dist/src/components/page-header.d.ts +15 -7
- package/dist/src/components/page-header.js +18 -7
- package/dist/src/components/page.d.ts +54 -0
- package/dist/src/components/page.js +27 -0
- package/dist/src/components/path-label.d.ts +13 -8
- package/dist/src/components/path-label.js +37 -36
- package/dist/src/components/path-picker.d.ts +10 -7
- package/dist/src/components/path-picker.js +18 -19
- package/dist/src/components/pill.d.ts +10 -7
- package/dist/src/components/pill.js +7 -9
- package/dist/src/components/popover.d.ts +11 -7
- package/dist/src/components/popover.js +171 -173
- package/dist/src/components/process-group.d.ts +14 -9
- package/dist/src/components/process-group.js +13 -4
- package/dist/src/components/process-step.d.ts +9 -7
- package/dist/src/components/process-step.js +8 -6
- package/dist/src/components/progress.d.ts +10 -7
- package/dist/src/components/progress.js +6 -11
- package/dist/src/components/prose.d.ts +23 -0
- package/dist/src/components/prose.js +17 -0
- package/dist/src/components/prose.options.d.ts +4 -0
- package/dist/src/components/prose.options.js +5 -0
- package/dist/src/components/rail-item.d.ts +9 -7
- package/dist/src/components/rail-item.js +10 -15
- package/dist/src/components/rail-section.d.ts +9 -7
- package/dist/src/components/rail-section.js +12 -6
- package/dist/src/components/read-block.d.ts +8 -6
- package/dist/src/components/read-block.js +53 -57
- package/dist/src/components/region-layout.d.ts +23 -4
- package/dist/src/components/region-layout.js +76 -72
- package/dist/src/components/resource-card.d.ts +9 -7
- package/dist/src/components/resource-card.js +17 -6
- package/dist/src/components/resource-link.d.ts +9 -7
- package/dist/src/components/resource-link.js +13 -10
- package/dist/src/components/risk-confirmation.d.ts +10 -7
- package/dist/src/components/risk-confirmation.js +7 -9
- package/dist/src/components/search-block.d.ts +9 -6
- package/dist/src/components/search-block.js +14 -16
- package/dist/src/components/search-input.d.ts +15 -9
- package/dist/src/components/search-input.js +12 -12
- package/dist/src/components/section.d.ts +44 -0
- package/dist/src/components/section.js +45 -0
- package/dist/src/components/segmented-control.d.ts +10 -7
- package/dist/src/components/segmented-control.js +50 -54
- package/dist/src/components/select.d.ts +11 -7
- package/dist/src/components/select.js +6 -6
- package/dist/src/components/separator.d.ts +10 -7
- package/dist/src/components/separator.js +6 -11
- package/dist/src/components/shortcut-keys.d.ts +13 -8
- package/dist/src/components/shortcut-keys.js +9 -7
- package/dist/src/components/skeleton-boundary.d.ts +14 -8
- package/dist/src/components/skeleton-boundary.js +30 -27
- package/dist/src/components/skeleton.d.ts +14 -13
- package/dist/src/components/skeleton.js +9 -11
- package/dist/src/components/skeleton.options.d.ts +3 -0
- package/dist/src/components/skeleton.options.js +2 -0
- package/dist/src/components/slider.d.ts +10 -7
- package/dist/src/components/slider.js +10 -24
- package/dist/src/components/spinner.d.ts +10 -7
- package/dist/src/components/spinner.js +8 -6
- package/dist/src/components/stack.d.ts +14 -10
- package/dist/src/components/stack.js +19 -16
- package/dist/src/components/state-dot.d.ts +13 -8
- package/dist/src/components/state-dot.js +23 -27
- package/dist/src/components/status-dot.d.ts +18 -26
- package/dist/src/components/status-dot.js +12 -21
- package/dist/src/components/status-dot.options.d.ts +9 -0
- package/dist/src/components/status-dot.options.js +10 -0
- package/dist/src/components/status.d.ts +10 -8
- package/dist/src/components/status.js +8 -7
- package/dist/src/components/switch.d.ts +8 -5
- package/dist/src/components/switch.js +9 -6
- package/dist/src/components/table.d.ts +15 -7
- package/dist/src/components/table.js +68 -75
- package/dist/src/components/table.options.d.ts +2 -0
- package/dist/src/components/table.options.js +3 -0
- package/dist/src/components/tabs.d.ts +11 -9
- package/dist/src/components/tabs.js +17 -37
- package/dist/src/components/tabs.options.d.ts +2 -0
- package/dist/src/components/tabs.options.js +3 -0
- package/dist/src/components/tag.d.ts +15 -19
- package/dist/src/components/tag.js +9 -12
- package/dist/src/components/tag.options.d.ts +6 -0
- package/dist/src/components/tag.options.js +7 -0
- package/dist/src/components/task-list.d.ts +35 -0
- package/dist/src/components/task-list.js +82 -0
- package/dist/src/components/terminal-block.d.ts +9 -6
- package/dist/src/components/terminal-block.js +32 -39
- package/dist/src/components/text-shimmer.d.ts +14 -8
- package/dist/src/components/text-shimmer.js +16 -10
- package/dist/src/components/text.d.ts +30 -0
- package/dist/src/components/text.js +24 -0
- package/dist/src/components/text.options.d.ts +3 -0
- package/dist/src/components/text.options.js +4 -0
- package/dist/src/components/textarea.d.ts +10 -7
- package/dist/src/components/textarea.js +6 -6
- package/dist/src/components/timeline.d.ts +18 -13
- package/dist/src/components/timeline.js +19 -12
- package/dist/src/components/toast.d.ts +13 -8
- package/dist/src/components/toast.js +12 -7
- package/dist/src/components/toolbar.d.ts +10 -7
- package/dist/src/components/toolbar.js +6 -22
- package/dist/src/components/tooltip.d.ts +9 -7
- package/dist/src/components/tooltip.js +19 -35
- package/dist/src/components/web-block.d.ts +9 -6
- package/dist/src/components/web-block.js +19 -21
- package/dist/src/components/window-title-bar.d.ts +9 -7
- package/dist/src/components/window-title-bar.js +11 -6
- package/dist/src/components/work-card.d.ts +10 -7
- package/dist/src/components/work-card.js +17 -6
- package/dist/src/icons/README.md +81 -1
- package/dist/src/icons/assistant-mark.d.ts +9 -0
- package/dist/src/icons/assistant-mark.js +10 -0
- package/dist/src/icons/doodle-cat.d.ts +2 -2
- package/dist/src/icons/doodle-cat.js +1 -1
- package/dist/src/icons/empty-stack.d.ts +10 -0
- package/dist/src/icons/empty-stack.js +16 -0
- package/dist/src/icons/file-type-icon.d.ts +2 -2
- package/dist/src/icons/icon-frame.d.ts +2 -2
- package/dist/src/icons/icon-frame.js +1 -1
- package/dist/src/icons/icon-source.d.ts +2 -2
- package/dist/src/icons/icon.d.ts +9 -3
- package/dist/src/icons/icon.js +8 -2
- package/dist/src/icons/index.d.ts +2 -0
- package/dist/src/icons/index.js +2 -0
- package/dist/src/icons/meowland-mark.d.ts +2 -2
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/json/catalog.d.ts +2 -0
- package/dist/src/json/catalog.js +1 -0
- package/dist/src/registry/factory.d.ts +9 -0
- package/dist/src/registry/factory.js +9 -0
- package/dist/src/registry/index.d.ts +174 -596
- package/dist/src/registry/index.js +267 -261
- package/dist/src/shared/action-row-fit.d.ts +19 -0
- package/dist/src/shared/action-row-fit.js +59 -0
- package/dist/src/theme/audit.d.ts +2 -0
- package/dist/src/theme/audit.js +60 -0
- package/dist/src/theme/base.styles.d.ts +3 -2
- package/dist/src/theme/base.styles.js +43 -5
- package/dist/src/theme/chat/assistant.styles.d.ts +1 -1
- package/dist/src/theme/chat/assistant.styles.js +240 -133
- package/dist/src/theme/chat/attachments.styles.d.ts +1 -1
- package/dist/src/theme/chat/attachments.styles.js +96 -96
- package/dist/src/theme/chat/composer-panel.styles.d.ts +1 -1
- package/dist/src/theme/chat/composer-panel.styles.js +22 -22
- package/dist/src/theme/chat/composer.styles.d.ts +1 -1
- package/dist/src/theme/chat/composer.styles.js +256 -168
- package/dist/src/theme/chat/conversation.styles.d.ts +1 -1
- package/dist/src/theme/chat/conversation.styles.js +24 -25
- package/dist/src/theme/chat/frame.styles.d.ts +1 -1
- package/dist/src/theme/chat/frame.styles.js +35 -34
- package/dist/src/theme/chat/header.styles.d.ts +1 -1
- package/dist/src/theme/chat/header.styles.js +37 -37
- package/dist/src/theme/chat/message.styles.d.ts +1 -1
- package/dist/src/theme/chat/message.styles.js +132 -190
- package/dist/src/theme/chat/question.styles.d.ts +1 -1
- package/dist/src/theme/chat/question.styles.js +34 -33
- package/dist/src/theme/chat/reasoning.styles.d.ts +1 -0
- package/dist/src/theme/chat/reasoning.styles.js +142 -0
- package/dist/src/theme/chat/records.styles.d.ts +1 -1
- package/dist/src/theme/chat/records.styles.js +200 -243
- package/dist/src/theme/chat/status.styles.d.ts +1 -1
- package/dist/src/theme/chat/status.styles.js +14 -58
- package/dist/src/theme/chat/task.styles.d.ts +1 -1
- package/dist/src/theme/chat/task.styles.js +28 -29
- package/dist/src/theme/components/accordion.styles.d.ts +1 -1
- package/dist/src/theme/components/accordion.styles.js +29 -28
- package/dist/src/theme/components/action-rail.styles.d.ts +1 -1
- package/dist/src/theme/components/action-rail.styles.js +10 -10
- package/dist/src/theme/components/alert.styles.d.ts +1 -1
- package/dist/src/theme/components/alert.styles.js +37 -28
- package/dist/src/theme/components/app-bar.styles.d.ts +1 -1
- package/dist/src/theme/components/app-bar.styles.js +19 -18
- package/dist/src/theme/components/avatar.styles.d.ts +1 -1
- package/dist/src/theme/components/avatar.styles.js +18 -16
- package/dist/src/theme/components/badge.styles.d.ts +1 -1
- package/dist/src/theme/components/badge.styles.js +31 -30
- package/dist/src/theme/components/breadcrumb.styles.d.ts +1 -1
- package/dist/src/theme/components/breadcrumb.styles.js +21 -21
- package/dist/src/theme/components/button.styles.d.ts +1 -1
- package/dist/src/theme/components/button.styles.js +90 -78
- package/dist/src/theme/components/card.styles.d.ts +1 -1
- package/dist/src/theme/components/card.styles.js +52 -53
- package/dist/src/theme/components/choice-group.styles.d.ts +1 -1
- package/dist/src/theme/components/choice-group.styles.js +39 -38
- package/dist/src/theme/components/choice-select.styles.d.ts +1 -1
- package/dist/src/theme/components/choice-select.styles.js +79 -98
- package/dist/src/theme/components/code-block.styles.d.ts +1 -1
- package/dist/src/theme/components/code-block.styles.js +50 -32
- package/dist/src/theme/components/context-menu.styles.d.ts +1 -1
- package/dist/src/theme/components/context-menu.styles.js +7 -7
- package/dist/src/theme/components/description-list.styles.d.ts +1 -1
- package/dist/src/theme/components/description-list.styles.js +11 -10
- package/dist/src/theme/components/detail-section.styles.d.ts +1 -1
- package/dist/src/theme/components/detail-section.styles.js +15 -13
- package/dist/src/theme/components/dialog.styles.d.ts +1 -1
- package/dist/src/theme/components/dialog.styles.js +76 -42
- package/dist/src/theme/components/disclosure.styles.d.ts +1 -1
- package/dist/src/theme/components/disclosure.styles.js +31 -31
- package/dist/src/theme/components/drawer.styles.d.ts +1 -1
- package/dist/src/theme/components/drawer.styles.js +13 -13
- package/dist/src/theme/components/empty-state.styles.d.ts +1 -1
- package/dist/src/theme/components/empty-state.styles.js +30 -26
- package/dist/src/theme/components/field-group.styles.d.ts +1 -1
- package/dist/src/theme/components/field-group.styles.js +15 -15
- package/dist/src/theme/components/field.styles.d.ts +1 -1
- package/dist/src/theme/components/field.styles.js +17 -17
- package/dist/src/theme/components/hover-card.styles.d.ts +1 -1
- package/dist/src/theme/components/hover-card.styles.js +23 -23
- package/dist/src/theme/components/icon-rail.styles.d.ts +1 -1
- package/dist/src/theme/components/icon-rail.styles.js +50 -50
- package/dist/src/theme/components/image-lightbox.styles.d.ts +1 -1
- package/dist/src/theme/components/image-lightbox.styles.js +27 -27
- package/dist/src/theme/components/image-preview.styles.d.ts +1 -1
- package/dist/src/theme/components/image-preview.styles.js +23 -18
- package/dist/src/theme/components/item.styles.d.ts +1 -1
- package/dist/src/theme/components/item.styles.js +49 -44
- package/dist/src/theme/components/json.styles.d.ts +1 -1
- package/dist/src/theme/components/json.styles.js +82 -53
- package/dist/src/theme/components/layout.styles.d.ts +1 -1
- package/dist/src/theme/components/layout.styles.js +50 -48
- package/dist/src/theme/components/link.styles.d.ts +1 -1
- package/dist/src/theme/components/link.styles.js +12 -13
- package/dist/src/theme/components/list-group.styles.d.ts +1 -1
- package/dist/src/theme/components/list-group.styles.js +25 -24
- package/dist/src/theme/components/menu.styles.d.ts +1 -1
- package/dist/src/theme/components/menu.styles.js +44 -38
- package/dist/src/theme/components/mermaid-diagram.styles.d.ts +1 -0
- package/dist/src/theme/components/mermaid-diagram.styles.js +162 -0
- package/dist/src/theme/components/meta-row.styles.d.ts +1 -1
- package/dist/src/theme/components/meta-row.styles.js +25 -24
- package/dist/src/theme/components/modal.styles.d.ts +5 -0
- package/dist/src/theme/components/modal.styles.js +11 -0
- package/dist/src/theme/components/native-input.styles.d.ts +1 -1
- package/dist/src/theme/components/native-input.styles.js +38 -83
- package/dist/src/theme/components/nav-item.styles.d.ts +1 -1
- package/dist/src/theme/components/nav-item.styles.js +30 -30
- package/dist/src/theme/components/nav-list.styles.d.ts +1 -0
- package/dist/src/theme/components/nav-list.styles.js +155 -0
- package/dist/src/theme/components/number-input.styles.d.ts +1 -1
- package/dist/src/theme/components/number-input.styles.js +24 -47
- package/dist/src/theme/components/output-block.styles.d.ts +1 -1
- package/dist/src/theme/components/output-block.styles.js +129 -104
- package/dist/src/theme/components/page-frame.styles.d.ts +1 -1
- package/dist/src/theme/components/page-frame.styles.js +53 -17
- package/dist/src/theme/components/page-header.styles.d.ts +1 -1
- package/dist/src/theme/components/page-header.styles.js +34 -14
- package/dist/src/theme/components/page.styles.d.ts +1 -0
- package/dist/src/theme/components/page.styles.js +55 -0
- package/dist/src/theme/components/path-label.styles.d.ts +1 -1
- package/dist/src/theme/components/path-label.styles.js +10 -10
- package/dist/src/theme/components/path-picker.styles.d.ts +1 -1
- package/dist/src/theme/components/path-picker.styles.js +13 -13
- package/dist/src/theme/components/pill.styles.d.ts +1 -1
- package/dist/src/theme/components/pill.styles.js +22 -18
- package/dist/src/theme/components/popover.styles.d.ts +1 -1
- package/dist/src/theme/components/popover.styles.js +17 -17
- package/dist/src/theme/components/process-group.styles.d.ts +1 -1
- package/dist/src/theme/components/process-group.styles.js +56 -60
- package/dist/src/theme/components/progress.styles.d.ts +1 -1
- package/dist/src/theme/components/progress.styles.js +12 -13
- package/dist/src/theme/components/region-layout.styles.d.ts +1 -1
- package/dist/src/theme/components/region-layout.styles.js +18 -18
- package/dist/src/theme/components/resource-card.styles.d.ts +1 -1
- package/dist/src/theme/components/resource-card.styles.js +37 -37
- package/dist/src/theme/components/resource-link.styles.d.ts +1 -1
- package/dist/src/theme/components/resource-link.styles.js +21 -21
- package/dist/src/theme/components/risk-confirmation.styles.d.ts +1 -1
- package/dist/src/theme/components/risk-confirmation.styles.js +4 -4
- package/dist/src/theme/components/search-input.styles.d.ts +1 -1
- package/dist/src/theme/components/search-input.styles.js +17 -38
- package/dist/src/theme/components/section.styles.d.ts +1 -0
- package/dist/src/theme/components/section.styles.js +100 -0
- package/dist/src/theme/components/segmented-control.styles.d.ts +1 -1
- package/dist/src/theme/components/segmented-control.styles.js +32 -26
- package/dist/src/theme/components/separator.styles.d.ts +1 -1
- package/dist/src/theme/components/separator.styles.js +5 -5
- package/dist/src/theme/components/shortcut-keys.styles.d.ts +1 -1
- package/dist/src/theme/components/shortcut-keys.styles.js +15 -13
- package/dist/src/theme/components/skeleton.styles.d.ts +1 -1
- package/dist/src/theme/components/skeleton.styles.js +13 -12
- package/dist/src/theme/components/slider.styles.d.ts +1 -1
- package/dist/src/theme/components/slider.styles.js +25 -28
- package/dist/src/theme/components/spinner.styles.d.ts +1 -1
- package/dist/src/theme/components/spinner.styles.js +10 -10
- package/dist/src/theme/components/state-dot.styles.d.ts +1 -1
- package/dist/src/theme/components/state-dot.styles.js +23 -23
- package/dist/src/theme/components/status-dot.styles.d.ts +1 -1
- package/dist/src/theme/components/status-dot.styles.js +16 -15
- package/dist/src/theme/components/status.styles.d.ts +1 -1
- package/dist/src/theme/components/status.styles.js +4 -20
- package/dist/src/theme/components/table.styles.d.ts +1 -1
- package/dist/src/theme/components/table.styles.js +30 -30
- package/dist/src/theme/components/tabs.styles.d.ts +1 -1
- package/dist/src/theme/components/tabs.styles.js +48 -45
- package/dist/src/theme/components/tag.styles.d.ts +1 -1
- package/dist/src/theme/components/tag.styles.js +24 -24
- package/dist/src/theme/components/task-list.styles.d.ts +1 -0
- package/dist/src/theme/components/task-list.styles.js +223 -0
- package/dist/src/theme/components/text-shimmer.styles.d.ts +1 -1
- package/dist/src/theme/components/text-shimmer.styles.js +29 -25
- package/dist/src/theme/components/text.styles.d.ts +1 -0
- package/dist/src/theme/components/text.styles.js +34 -0
- package/dist/src/theme/components/timeline.styles.d.ts +1 -1
- package/dist/src/theme/components/timeline.styles.js +14 -26
- package/dist/src/theme/components/toast.styles.d.ts +1 -1
- package/dist/src/theme/components/toast.styles.js +28 -15
- package/dist/src/theme/components/toggle.styles.d.ts +1 -1
- package/dist/src/theme/components/toggle.styles.js +30 -30
- package/dist/src/theme/components/toolbar.styles.d.ts +1 -1
- package/dist/src/theme/components/toolbar.styles.js +8 -8
- package/dist/src/theme/components/tooltip.styles.d.ts +1 -1
- package/dist/src/theme/components/tooltip.styles.js +11 -11
- package/dist/src/theme/components/web-block.styles.d.ts +1 -1
- package/dist/src/theme/components/web-block.styles.js +19 -19
- package/dist/src/theme/components/window-title-bar.styles.d.ts +1 -1
- package/dist/src/theme/components/window-title-bar.styles.js +10 -10
- package/dist/src/theme/components/work-card.styles.d.ts +1 -1
- package/dist/src/theme/components/work-card.styles.js +37 -34
- package/dist/src/theme/icons/icons.styles.d.ts +1 -1
- package/dist/src/theme/icons/icons.styles.js +52 -2
- package/dist/src/theme/index.d.ts +206 -134
- package/dist/src/theme/index.js +62 -13
- package/dist/src/theme/selectors.d.ts +3 -0
- package/dist/src/theme/selectors.js +7 -0
- package/dist/src/theme/shared/action-row.styles.d.ts +1 -0
- package/dist/src/theme/shared/action-row.styles.js +52 -0
- package/dist/src/theme/shared/chart.tokens.d.ts +18 -0
- package/dist/src/theme/shared/chart.tokens.js +19 -0
- package/dist/src/theme/shared/code-highlight.styles.d.ts +1 -1
- package/dist/src/theme/shared/code-highlight.styles.js +6 -6
- package/dist/src/theme/shared/field-surface.styles.d.ts +1 -0
- package/dist/src/theme/shared/field-surface.styles.js +90 -0
- package/dist/src/theme/shared/prose.styles.d.ts +1 -0
- package/dist/src/theme/shared/prose.styles.js +152 -0
- package/dist/src/theme/shared/state-badge.styles.d.ts +1 -0
- package/dist/src/theme/shared/state-badge.styles.js +80 -0
- package/dist/src/theme/tokens.d.ts +259 -93
- package/dist/src/theme/tokens.js +284 -116
- package/dist/src/theme/utilities.d.ts +19 -0
- package/dist/src/theme/utilities.js +233 -0
- package/package.json +12 -8
- package/dist/src/theme/components/resource-card.tokens.d.ts +0 -5
- package/dist/src/theme/components/resource-card.tokens.js +0 -6
- package/dist/src/theme/palette.d.ts +0 -55
- package/dist/src/theme/palette.js +0 -56
|
@@ -1,200 +1,201 @@
|
|
|
1
|
-
import { css,
|
|
1
|
+
import { css, parts } from "meowcss/meowjsx";
|
|
2
2
|
import { uiTokens } from "../tokens.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { codeHighlightTokens } from "../shared/code-highlight.tokens.js";
|
|
4
|
+
import { ui } from "../utilities.js";
|
|
5
|
+
const outputBlockPartRefs = parts("output-block");
|
|
6
|
+
const diffBlockPartRefs = parts("diff-block");
|
|
7
|
+
const readBlockPartRefs = parts("read-block");
|
|
8
|
+
const searchBlockPartRefs = parts("search-block");
|
|
9
|
+
const terminalBlockPartRefs = parts("terminal-block");
|
|
8
10
|
export const outputBlockStyles = css `
|
|
9
|
-
${
|
|
11
|
+
${outputBlockPartRefs.root} {
|
|
10
12
|
min-width: 0;
|
|
11
13
|
overflow: hidden;
|
|
12
|
-
border-radius: ${uiTokens.
|
|
13
|
-
background: ${uiTokens.
|
|
14
|
-
color: ${uiTokens.
|
|
14
|
+
border-radius: ${uiTokens.radius.xl};
|
|
15
|
+
background: ${uiTokens.surface.fill};
|
|
16
|
+
color: ${uiTokens.ink.primary};
|
|
15
17
|
}
|
|
16
|
-
${
|
|
18
|
+
${outputBlockPartRefs.header} {
|
|
17
19
|
display: flex;
|
|
18
20
|
align-items: start;
|
|
19
21
|
gap: 12px;
|
|
20
|
-
padding:
|
|
21
|
-
background: ${uiTokens.
|
|
22
|
-
font:
|
|
22
|
+
padding: 8px 14px;
|
|
23
|
+
background: ${uiTokens.surface.fill};
|
|
24
|
+
font: ${uiTokens.type.micro} / ${uiTokens.type.line.caption} ${uiTokens.type.sans};
|
|
23
25
|
}
|
|
24
|
-
${
|
|
26
|
+
${outputBlockPartRefs.title} {
|
|
25
27
|
min-width: 0;
|
|
26
28
|
flex: 1;
|
|
27
29
|
overflow-wrap: anywhere;
|
|
28
30
|
}
|
|
29
|
-
${
|
|
31
|
+
${outputBlockPartRefs.actions}, ${outputBlockPartRefs.toggle} {
|
|
30
32
|
border: 0;
|
|
31
33
|
background: transparent;
|
|
32
|
-
color: ${uiTokens.
|
|
34
|
+
color: ${uiTokens.ink.secondary};
|
|
33
35
|
font: inherit;
|
|
34
36
|
cursor: pointer;
|
|
35
37
|
padding: 0;
|
|
36
38
|
}
|
|
37
|
-
${
|
|
39
|
+
${outputBlockPartRefs.body} {
|
|
38
40
|
padding: 12px 14px;
|
|
39
41
|
overflow: auto;
|
|
40
|
-
font:
|
|
42
|
+
font: ${uiTokens.type.code} / ${uiTokens.type.line.body} ${uiTokens.type.mono};
|
|
41
43
|
}
|
|
42
|
-
${
|
|
44
|
+
${outputBlockPartRefs.line} {
|
|
43
45
|
min-height: 22px;
|
|
44
46
|
white-space: pre;
|
|
45
47
|
}
|
|
46
|
-
${
|
|
47
|
-
${
|
|
48
|
+
${outputBlockPartRefs.root}[data-output-wrap="true"] ${outputBlockPartRefs.line},
|
|
49
|
+
${outputBlockPartRefs.root}[data-output-wrap="true"] ${outputBlockPartRefs.fold} {
|
|
48
50
|
white-space: pre-wrap;
|
|
49
51
|
overflow-wrap: anywhere;
|
|
50
52
|
}
|
|
51
|
-
${
|
|
53
|
+
${outputBlockPartRefs.fold}[hidden] {
|
|
52
54
|
display: none;
|
|
53
55
|
}
|
|
54
|
-
${
|
|
56
|
+
${outputBlockPartRefs.fold} {
|
|
55
57
|
white-space: pre;
|
|
56
58
|
}
|
|
57
|
-
${
|
|
59
|
+
${outputBlockPartRefs.fold}:not([open]) [data-fold-open], ${outputBlockPartRefs.fold}[open] [data-fold-closed] {
|
|
58
60
|
display: none;
|
|
59
61
|
}
|
|
60
|
-
${
|
|
62
|
+
${outputBlockPartRefs.feedback} {
|
|
61
63
|
display: block;
|
|
62
64
|
padding: 4px 14px;
|
|
63
|
-
font:
|
|
65
|
+
font: ${uiTokens.type.caption} / ${uiTokens.type.line.caption} ${uiTokens.type.sans};
|
|
64
66
|
}
|
|
65
|
-
${
|
|
67
|
+
${outputBlockPartRefs.feedback}:empty {
|
|
66
68
|
display: none;
|
|
67
69
|
}
|
|
68
|
-
${
|
|
69
|
-
|
|
70
|
-
outline-offset: -1px;
|
|
70
|
+
${outputBlockPartRefs.actions}:focus-visible, ${outputBlockPartRefs.toggle}:focus-visible, ${outputBlockPartRefs.body}:focus-visible {
|
|
71
|
+
${ui.focus.inset}
|
|
71
72
|
}
|
|
72
|
-
${
|
|
73
|
+
${readBlockPartRefs.number} {
|
|
73
74
|
display: inline-block;
|
|
74
75
|
min-width: 4ch;
|
|
75
76
|
margin-right: 12px;
|
|
76
77
|
text-align: right;
|
|
77
|
-
color: ${uiTokens.
|
|
78
|
+
color: ${uiTokens.ink.tertiary};
|
|
78
79
|
user-select: none;
|
|
79
80
|
}
|
|
80
|
-
${
|
|
81
|
-
background: ${uiTokens.hover};
|
|
82
|
-
box-shadow: inset 3px 0 ${uiTokens.info};
|
|
81
|
+
${readBlockPartRefs.root} [data-read-highlight="true"] {
|
|
82
|
+
background: ${uiTokens.state.hover};
|
|
83
|
+
box-shadow: inset 3px 0 ${uiTokens.status.info};
|
|
83
84
|
}
|
|
84
|
-
${
|
|
85
|
-
color: ${uiTokens.success};
|
|
86
|
-
background: color-mix(in srgb, ${uiTokens.success} 10%, transparent);
|
|
87
|
-
box-shadow: inset 3px 0 ${uiTokens.success};
|
|
85
|
+
${diffBlockPartRefs.line}[data-diff-kind="added"] {
|
|
86
|
+
color: ${uiTokens.status.success};
|
|
87
|
+
background: color-mix(in srgb, ${uiTokens.status.success} 10%, transparent);
|
|
88
|
+
box-shadow: inset 3px 0 ${uiTokens.status.success};
|
|
88
89
|
}
|
|
89
|
-
${
|
|
90
|
-
color: ${uiTokens.danger};
|
|
91
|
-
background: color-mix(in srgb, ${uiTokens.danger} 10%, transparent);
|
|
92
|
-
box-shadow: inset 3px 0 ${uiTokens.danger};
|
|
90
|
+
${diffBlockPartRefs.line}[data-diff-kind="removed"] {
|
|
91
|
+
color: ${uiTokens.status.danger};
|
|
92
|
+
background: color-mix(in srgb, ${uiTokens.status.danger} 10%, transparent);
|
|
93
|
+
box-shadow: inset 3px 0 ${uiTokens.status.danger};
|
|
93
94
|
}
|
|
94
|
-
${
|
|
95
|
-
font-weight:
|
|
95
|
+
${diffBlockPartRefs.path}, ${searchBlockPartRefs.path} {
|
|
96
|
+
font-weight: ${uiTokens.type.weight.medium};
|
|
96
97
|
}
|
|
97
|
-
:where(${
|
|
98
|
+
:where(${readBlockPartRefs.root}, ${diffBlockPartRefs.root}) ${outputBlockPartRefs.header} {
|
|
98
99
|
padding: 10px 18px 8px 22px;
|
|
99
|
-
color: ${uiTokens.
|
|
100
|
+
color: ${uiTokens.ink.secondary};
|
|
100
101
|
}
|
|
101
|
-
:where(${
|
|
102
|
+
:where(${readBlockPartRefs.root}, ${diffBlockPartRefs.root}) ${outputBlockPartRefs.body} {
|
|
102
103
|
padding: 6px 22px 20px;
|
|
103
|
-
font:
|
|
104
|
+
font: ${uiTokens.type.code} / ${uiTokens.type.line.code} ${uiTokens.type.mono};
|
|
104
105
|
}
|
|
105
|
-
:where(${
|
|
106
|
+
:where(${readBlockPartRefs.root}, ${diffBlockPartRefs.root}) ${outputBlockPartRefs.line} {
|
|
106
107
|
min-height: 19px;
|
|
107
108
|
}
|
|
108
|
-
${
|
|
109
|
+
${diffBlockPartRefs.root} ${outputBlockPartRefs.body} {
|
|
109
110
|
padding-inline: 0;
|
|
110
111
|
display: grid;
|
|
111
112
|
grid-template-columns: minmax(max-content, 1fr);
|
|
112
113
|
}
|
|
113
|
-
${
|
|
114
|
+
${diffBlockPartRefs.line}, ${diffBlockPartRefs.path}, ${diffBlockPartRefs.root} ${outputBlockPartRefs.toggle} {
|
|
114
115
|
padding-inline: 22px;
|
|
115
116
|
}
|
|
116
|
-
${
|
|
117
|
-
color: ${uiTokens.
|
|
117
|
+
${diffBlockPartRefs.line}[data-diff-kind="context"] {
|
|
118
|
+
color: ${uiTokens.ink.secondary};
|
|
118
119
|
}
|
|
119
|
-
${
|
|
120
|
+
${searchBlockPartRefs.root} ${outputBlockPartRefs.header} {
|
|
120
121
|
align-items: center;
|
|
121
|
-
font:
|
|
122
|
-
color: ${uiTokens.
|
|
122
|
+
font: ${uiTokens.type.label} / ${uiTokens.type.line.label} ${uiTokens.type.sans};
|
|
123
|
+
color: ${uiTokens.ink.secondary};
|
|
123
124
|
}
|
|
124
|
-
${
|
|
125
|
+
${searchBlockPartRefs.root} ${outputBlockPartRefs.title} {
|
|
125
126
|
overflow: hidden;
|
|
126
127
|
text-overflow: ellipsis;
|
|
127
128
|
white-space: nowrap;
|
|
128
129
|
}
|
|
129
|
-
${
|
|
130
|
+
${searchBlockPartRefs.root} ${outputBlockPartRefs.body} {
|
|
130
131
|
padding: 8px 14px 12px 0;
|
|
131
|
-
font:
|
|
132
|
+
font: ${uiTokens.type.code} / ${uiTokens.type.line.code} ${uiTokens.type.mono};
|
|
132
133
|
}
|
|
133
|
-
${
|
|
134
|
+
${searchBlockPartRefs.root} ${outputBlockPartRefs.line} {
|
|
134
135
|
padding-left: 14px;
|
|
135
136
|
}
|
|
136
|
-
${
|
|
137
|
+
${searchBlockPartRefs.path}:is(summary) {
|
|
137
138
|
cursor: pointer;
|
|
138
139
|
}
|
|
139
|
-
${
|
|
140
|
-
color: ${uiTokens.
|
|
140
|
+
${searchBlockPartRefs.number} {
|
|
141
|
+
color: ${uiTokens.ink.tertiary};
|
|
141
142
|
}
|
|
142
|
-
${
|
|
143
|
+
${terminalBlockPartRefs.command} {
|
|
143
144
|
margin: 0;
|
|
144
145
|
min-width: 0;
|
|
145
146
|
overflow: hidden;
|
|
146
147
|
text-overflow: ellipsis;
|
|
147
148
|
white-space: pre;
|
|
148
|
-
font:
|
|
149
|
+
font: ${uiTokens.type.code} / ${uiTokens.type.line.body} ${uiTokens.type.mono};
|
|
149
150
|
}
|
|
150
|
-
${
|
|
151
|
+
${terminalBlockPartRefs.root} ${outputBlockPartRefs.header} {
|
|
151
152
|
padding-left: 30px;
|
|
152
153
|
max-height: 150px;
|
|
153
154
|
overflow-y: auto;
|
|
154
|
-
background: ${uiTokens.
|
|
155
|
+
background: ${uiTokens.surface.fill};
|
|
155
156
|
}
|
|
156
|
-
${
|
|
157
|
+
${terminalBlockPartRefs.root} ${outputBlockPartRefs.title} > div {
|
|
157
158
|
display: flex;
|
|
158
159
|
align-items: flex-start;
|
|
159
160
|
gap: 12px;
|
|
160
161
|
min-width: 0;
|
|
161
162
|
}
|
|
162
|
-
${
|
|
163
|
-
border-bottom:
|
|
163
|
+
${terminalBlockPartRefs.root}[data-terminal-body="true"] ${outputBlockPartRefs.header} {
|
|
164
|
+
border-bottom: 1px solid ${uiTokens.line.divider};
|
|
164
165
|
}
|
|
165
|
-
${
|
|
166
|
+
${terminalBlockPartRefs.root} ${outputBlockPartRefs.body} {
|
|
166
167
|
padding-left: 30px;
|
|
167
168
|
max-height: var(--ui-terminal-output-max-height, none);
|
|
168
169
|
}
|
|
169
|
-
${
|
|
170
|
+
${terminalBlockPartRefs.root}[data-terminal-body="false"] ${outputBlockPartRefs.body} {
|
|
170
171
|
display: none;
|
|
171
172
|
}
|
|
172
|
-
${
|
|
173
|
+
${terminalBlockPartRefs.prompt} {
|
|
173
174
|
display: flex;
|
|
174
175
|
flex-direction: column;
|
|
175
176
|
min-width: 0;
|
|
176
177
|
flex: 1;
|
|
177
178
|
}
|
|
178
|
-
${
|
|
179
|
+
${terminalBlockPartRefs.promptLine} {
|
|
179
180
|
position: relative;
|
|
180
181
|
display: flex;
|
|
181
182
|
align-items: baseline;
|
|
182
183
|
gap: 8px;
|
|
183
184
|
min-width: 0;
|
|
184
|
-
font:
|
|
185
|
+
font: ${uiTokens.type.code} / ${uiTokens.type.line.body} ${uiTokens.type.mono};
|
|
185
186
|
}
|
|
186
|
-
${
|
|
187
|
+
${terminalBlockPartRefs.cwd} {
|
|
187
188
|
flex: none;
|
|
188
|
-
color: ${uiTokens.
|
|
189
|
+
color: ${uiTokens.ink.tertiary};
|
|
189
190
|
}
|
|
190
|
-
${
|
|
191
|
+
${terminalBlockPartRefs.runState} {
|
|
191
192
|
position: absolute;
|
|
192
193
|
left: -22px;
|
|
193
194
|
top: 50%;
|
|
194
195
|
transform: translateY(-50%);
|
|
195
196
|
display: flex;
|
|
196
197
|
}
|
|
197
|
-
${
|
|
198
|
+
${terminalBlockPartRefs.runStateLabel} {
|
|
198
199
|
position: absolute;
|
|
199
200
|
width: 1px;
|
|
200
201
|
height: 1px;
|
|
@@ -202,42 +203,66 @@ export const outputBlockStyles = css `
|
|
|
202
203
|
clip-path: inset(50%);
|
|
203
204
|
white-space: nowrap;
|
|
204
205
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
color: ${uiTokens.subtleForeground};
|
|
209
|
-
}
|
|
210
|
-
${partSelector(terminal, "status")}[data-terminal-error="true"] {
|
|
211
|
-
color: ${uiTokens.danger};
|
|
206
|
+
/* The finished-but-not-clean state is the shared badge; the prompt's own dot steps aside for it. */
|
|
207
|
+
${terminalBlockPartRefs.prompt}:has(+ ${terminalBlockPartRefs.status}) ${terminalBlockPartRefs.runState} {
|
|
208
|
+
display: none;
|
|
212
209
|
}
|
|
213
|
-
${
|
|
214
|
-
font-weight:
|
|
210
|
+
${terminalBlockPartRefs.span}[data-ansi-bold="true"] {
|
|
211
|
+
font-weight: ${uiTokens.type.weight.semibold};
|
|
215
212
|
}
|
|
216
|
-
${
|
|
217
|
-
color: ${uiTokens.danger};
|
|
213
|
+
${terminalBlockPartRefs.span}:is([data-ansi-color="31"], [data-ansi-color="91"]) {
|
|
214
|
+
color: ${uiTokens.status.danger};
|
|
218
215
|
}
|
|
219
|
-
${
|
|
220
|
-
color: ${uiTokens.success};
|
|
216
|
+
${terminalBlockPartRefs.span}:is([data-ansi-color="32"], [data-ansi-color="92"]) {
|
|
217
|
+
color: ${uiTokens.status.success};
|
|
221
218
|
}
|
|
222
|
-
${
|
|
223
|
-
color: ${uiTokens.warning};
|
|
219
|
+
${terminalBlockPartRefs.span}:is([data-ansi-color="33"], [data-ansi-color="93"]) {
|
|
220
|
+
color: ${uiTokens.status.warning};
|
|
224
221
|
}
|
|
225
|
-
${
|
|
226
|
-
color: ${uiTokens.info};
|
|
222
|
+
${terminalBlockPartRefs.span}:is([data-ansi-color="34"], [data-ansi-color="94"], [data-ansi-color="36"], [data-ansi-color="96"]) {
|
|
223
|
+
color: ${uiTokens.status.info};
|
|
227
224
|
}
|
|
228
|
-
${
|
|
229
|
-
color:
|
|
225
|
+
${terminalBlockPartRefs.span}:is([data-ansi-color="35"], [data-ansi-color="95"]) {
|
|
226
|
+
color: ${codeHighlightTokens.function};
|
|
230
227
|
}
|
|
231
|
-
${
|
|
232
|
-
color: ${uiTokens.
|
|
228
|
+
${terminalBlockPartRefs.span}[data-ansi-color="90"] {
|
|
229
|
+
color: ${uiTokens.ink.tertiary};
|
|
233
230
|
}
|
|
234
231
|
|
|
235
232
|
@media (pointer: coarse) {
|
|
236
|
-
${
|
|
237
|
-
${
|
|
233
|
+
${outputBlockPartRefs.actions}[data-meowui-part],
|
|
234
|
+
${outputBlockPartRefs.toggle}[data-meowui-part] {
|
|
238
235
|
min-width: 44px;
|
|
239
236
|
min-height: 44px;
|
|
240
237
|
padding: 0 6px;
|
|
241
238
|
}
|
|
242
239
|
}
|
|
240
|
+
|
|
241
|
+
/* Native summaries draw the same rotating chevron as Disclosure. */
|
|
242
|
+
:where(${outputBlockPartRefs.toggle}) {
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
gap: 6px;
|
|
246
|
+
list-style: none;
|
|
247
|
+
}
|
|
248
|
+
:where(${outputBlockPartRefs.toggle})::-webkit-details-marker {
|
|
249
|
+
display: none;
|
|
250
|
+
}
|
|
251
|
+
:where(${outputBlockPartRefs.toggle})::before {
|
|
252
|
+
content: "";
|
|
253
|
+
flex: none;
|
|
254
|
+
width: 14px;
|
|
255
|
+
height: 14px;
|
|
256
|
+
background: currentColor;
|
|
257
|
+
mask: ${uiTokens.glyph.chevron} center / 14px 14px no-repeat;
|
|
258
|
+
transition: transform ${uiTokens.motion.settle} ${uiTokens.motion.ease};
|
|
259
|
+
}
|
|
260
|
+
:where(details[open] > ${outputBlockPartRefs.toggle})::before {
|
|
261
|
+
transform: rotate(90deg);
|
|
262
|
+
}
|
|
263
|
+
@media (prefers-reduced-motion: reduce) {
|
|
264
|
+
:where(${outputBlockPartRefs.toggle})::before {
|
|
265
|
+
transition: none;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
243
268
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pageFrameStyles: import("meowcss
|
|
1
|
+
export declare const pageFrameStyles: import("meowcss").CSSFragment;
|
|
@@ -1,58 +1,94 @@
|
|
|
1
|
-
import { css,
|
|
2
|
-
import { pageFrameContract, pageFrameOptions } from "../../components/page-frame.js";
|
|
1
|
+
import { css, parts } from "meowcss/meowjsx";
|
|
3
2
|
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { pageFrameOptions } from "../../components/page-frame.options.js";
|
|
4
|
+
const pageFramePartRefs = parts("page-frame");
|
|
4
5
|
export const pageFrameStyles = css `
|
|
5
|
-
${
|
|
6
|
+
${pageFramePartRefs.root} {
|
|
6
7
|
box-sizing: border-box;
|
|
7
8
|
display: flex;
|
|
8
9
|
flex-direction: column;
|
|
9
|
-
gap: ${uiTokens.
|
|
10
|
+
gap: ${uiTokens.space.section};
|
|
10
11
|
width: 100%;
|
|
11
|
-
max-width: calc(${uiTokens.containerPage} + ${uiTokens.
|
|
12
|
+
max-width: calc(${uiTokens.layout.containerPage} + ${uiTokens.space.pageInline} * 2);
|
|
12
13
|
height: 100%;
|
|
13
14
|
min-width: 0;
|
|
14
15
|
min-height: 0;
|
|
15
16
|
margin-inline: auto;
|
|
16
|
-
padding: ${uiTokens.
|
|
17
|
+
padding: ${uiTokens.space.pageBlock} ${uiTokens.space.pageInline};
|
|
17
18
|
overflow: hidden;
|
|
18
19
|
}
|
|
19
|
-
:where(${
|
|
20
|
+
:where(${pageFramePartRefs.toolbar}, ${pageFramePartRefs.header}, ${pageFramePartRefs.notice}, ${pageFramePartRefs.footer}) {
|
|
20
21
|
min-width: 0;
|
|
21
22
|
flex: 0 0 auto;
|
|
22
23
|
max-height: none;
|
|
23
24
|
overflow: visible;
|
|
24
25
|
}
|
|
25
|
-
${
|
|
26
|
+
${pageFramePartRefs.body} {
|
|
26
27
|
display: flex;
|
|
27
28
|
flex: 1;
|
|
28
29
|
min-width: 0;
|
|
29
30
|
min-height: 0;
|
|
30
31
|
overflow: hidden;
|
|
31
32
|
}
|
|
32
|
-
${
|
|
33
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("variant")}="workspace"] > ${pageFramePartRefs.notice} {
|
|
33
34
|
padding: 8px 12px 0;
|
|
34
35
|
}
|
|
35
|
-
${
|
|
36
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("variant")}="workspace"] > ${pageFramePartRefs.footer} {
|
|
36
37
|
padding: 8px 12px max(8px, env(safe-area-inset-bottom));
|
|
37
38
|
}
|
|
38
|
-
${
|
|
39
|
-
${
|
|
39
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("scrollOwner")}="content"] >
|
|
40
|
+
${pageFramePartRefs.body} > * {
|
|
40
41
|
flex: 1;
|
|
41
42
|
min-width: 0;
|
|
42
43
|
min-height: 0;
|
|
43
44
|
}
|
|
44
|
-
${
|
|
45
|
-
${
|
|
45
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("scrollOwner")}="layout"] >
|
|
46
|
+
${pageFramePartRefs.body} {
|
|
46
47
|
display: block;
|
|
47
48
|
overflow: auto;
|
|
48
49
|
overscroll-behavior: contain;
|
|
49
50
|
}
|
|
51
|
+
/* A workspace (Dialog, Drawer) keeps its header while the body scrolls under it. The header's
|
|
52
|
+
edge appears over the first group step of scroll; a body that fits, or a browser without scroll
|
|
53
|
+
timelines, shows none. Focus scrolling stops short of the edge so focus ink stays visible. */
|
|
54
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("variant")}="workspace"][${pageFrameOptions.attribute("scrollOwner")}="layout"]:has(> ${pageFramePartRefs.header}) {
|
|
55
|
+
timeline-scope: --ui-frame-body;
|
|
56
|
+
}
|
|
57
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("variant")}="workspace"][${pageFrameOptions.attribute("scrollOwner")}="layout"] >
|
|
58
|
+
${pageFramePartRefs.header} + ${pageFramePartRefs.body} {
|
|
59
|
+
scroll-timeline: --ui-frame-body block;
|
|
60
|
+
scroll-padding-block: ${uiTokens.space.group};
|
|
61
|
+
}
|
|
62
|
+
@supports (animation-timeline: scroll()) {
|
|
63
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("variant")}="workspace"][${pageFrameOptions.attribute("scrollOwner")}="layout"] >
|
|
64
|
+
${pageFramePartRefs.header}:has(+ ${pageFramePartRefs.body}) {
|
|
65
|
+
animation: ui-frame-header-edge linear both;
|
|
66
|
+
animation-timeline: --ui-frame-body;
|
|
67
|
+
animation-range: 0 ${uiTokens.space.group};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
@keyframes ui-frame-header-edge {
|
|
71
|
+
from {
|
|
72
|
+
box-shadow: inset 0 calc(-1 * ${uiTokens.line.width}) 0 transparent;
|
|
73
|
+
}
|
|
74
|
+
to {
|
|
75
|
+
box-shadow: inset 0 calc(-1 * ${uiTokens.line.width}) 0 ${uiTokens.line.divider};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/* A page centers its content under the header. A classic scrollbar takes
|
|
79
|
+
width from one side only, so the page reserves both gutters to keep that
|
|
80
|
+
center line. Workspace frames (Dialog, Drawer) start content at the
|
|
81
|
+
header's edge, where a leading gutter would push the body off it. */
|
|
82
|
+
${pageFramePartRefs.root}[${pageFrameOptions.attribute("variant")}="page"][${pageFrameOptions.attribute("scrollOwner")}="layout"] >
|
|
83
|
+
${pageFramePartRefs.body} {
|
|
84
|
+
scrollbar-gutter: stable both-edges;
|
|
85
|
+
}
|
|
50
86
|
@media (max-width: 768px) {
|
|
51
|
-
${
|
|
52
|
-
padding: ${uiTokens.
|
|
87
|
+
${pageFramePartRefs.root} {
|
|
88
|
+
padding: ${uiTokens.space.pageBlockCompact} ${uiTokens.space.pageInlineCompact};
|
|
53
89
|
}
|
|
54
90
|
}
|
|
55
|
-
${
|
|
91
|
+
${pageFramePartRefs.root} {
|
|
56
92
|
${pageFrameOptions.when({ variant: "workspace" })} {
|
|
57
93
|
max-width: none;
|
|
58
94
|
padding: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pageHeaderStyles: import("meowcss
|
|
1
|
+
export declare const pageHeaderStyles: import("meowcss").CSSFragment;
|
|
@@ -1,40 +1,60 @@
|
|
|
1
|
-
import { css,
|
|
1
|
+
import { css, parts } from "meowcss/meowjsx";
|
|
2
2
|
import { uiTokens } from "../tokens.js";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
3
|
+
import { ui } from "../utilities.js";
|
|
4
|
+
const pageHeaderPartRefs = parts("page-header");
|
|
5
|
+
const header = (part) => pageHeaderPartRefs[part];
|
|
5
6
|
export const pageHeaderStyles = css `
|
|
6
7
|
${header("root")} {
|
|
7
8
|
display: flex;
|
|
8
|
-
|
|
9
|
+
/* Page actions sit level with the identity block, not under its last line. */
|
|
10
|
+
align-items: center;
|
|
9
11
|
justify-content: space-between;
|
|
10
12
|
flex-wrap: wrap;
|
|
11
|
-
gap: ${uiTokens.
|
|
12
|
-
font: ${uiTokens.
|
|
13
|
-
color: ${uiTokens.
|
|
13
|
+
gap: ${uiTokens.space.section} ${uiTokens.space.panel};
|
|
14
|
+
font: ${uiTokens.type.body} / ${uiTokens.type.leading} ${uiTokens.type.sans};
|
|
15
|
+
color: ${uiTokens.ink.primary};
|
|
14
16
|
}
|
|
15
17
|
${header("copy")} {
|
|
16
18
|
display: grid;
|
|
17
|
-
gap: ${uiTokens.
|
|
19
|
+
gap: ${uiTokens.space.group};
|
|
20
|
+
min-width: 0;
|
|
21
|
+
}
|
|
22
|
+
${header("heading")} {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: ${uiTokens.space.group};
|
|
18
26
|
min-width: 0;
|
|
19
27
|
}
|
|
28
|
+
${header("leading")} {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex: none;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
width: ${uiTokens.type.pageTitle};
|
|
34
|
+
height: ${uiTokens.type.pageTitle};
|
|
35
|
+
color: ${uiTokens.ink.primary};
|
|
36
|
+
}
|
|
37
|
+
${header("leading")} > svg {
|
|
38
|
+
display: block;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
20
42
|
${header("title")} {
|
|
21
43
|
margin: 0;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
letter-spacing: -0.015em;
|
|
25
|
-
line-height: 1.3;
|
|
44
|
+
min-width: 0;
|
|
45
|
+
${ui.text.pageTitle}
|
|
26
46
|
overflow-wrap: anywhere;
|
|
27
47
|
}
|
|
28
48
|
${header("description")} {
|
|
29
49
|
margin: 0;
|
|
30
|
-
color: ${uiTokens.
|
|
50
|
+
color: ${uiTokens.ink.secondary};
|
|
31
51
|
overflow-wrap: anywhere;
|
|
32
52
|
}
|
|
33
53
|
${header("actions")} {
|
|
34
54
|
display: flex;
|
|
35
55
|
align-items: center;
|
|
36
56
|
flex-wrap: wrap;
|
|
37
|
-
gap: ${uiTokens.
|
|
57
|
+
gap: ${uiTokens.space.group};
|
|
38
58
|
}
|
|
39
59
|
|
|
40
60
|
@media (pointer: coarse) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pageStyles: import("meowcss").CSSFragment;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { css, parts } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
const pagePartRefs = parts("page");
|
|
4
|
+
const page = (part) => pagePartRefs[part];
|
|
5
|
+
export const pageStyles = css `
|
|
6
|
+
${page("root")} {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
color: ${uiTokens.ink.primary};
|
|
10
|
+
font: ${uiTokens.type.body} / ${uiTokens.type.leading} ${uiTokens.type.sans};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* The identity block: an optional eyebrow sits above PageHeader's h1. */
|
|
14
|
+
${page("header")} {
|
|
15
|
+
display: grid;
|
|
16
|
+
gap: ${uiTokens.space.group};
|
|
17
|
+
min-width: 0;
|
|
18
|
+
}
|
|
19
|
+
${page("eyebrow")} {
|
|
20
|
+
margin: 0;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
color: ${uiTokens.ink.secondary};
|
|
23
|
+
font-size: ${uiTokens.type.caption};
|
|
24
|
+
font-weight: ${uiTokens.type.weight.medium};
|
|
25
|
+
letter-spacing: ${uiTokens.type.trackingCaps};
|
|
26
|
+
line-height: ${uiTokens.type.line.caption};
|
|
27
|
+
overflow-wrap: anywhere;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* A toolbar is a control row, not another reading column. */
|
|
31
|
+
${page("toolbar")} {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
flex-wrap: wrap;
|
|
35
|
+
gap: ${uiTokens.space.group};
|
|
36
|
+
min-width: 0;
|
|
37
|
+
}
|
|
38
|
+
${page("notice")} {
|
|
39
|
+
min-width: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* The page owns the vertical rhythm: one section step between regions and
|
|
43
|
+
between the sections in the content column. */
|
|
44
|
+
${page("header")}, ${page("toolbar")}, ${page("notice")} {
|
|
45
|
+
margin-bottom: ${uiTokens.space.section};
|
|
46
|
+
}
|
|
47
|
+
${page("content")} {
|
|
48
|
+
display: grid;
|
|
49
|
+
gap: ${uiTokens.space.section};
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
${page("content")} > * {
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pathLabelStyles: import("meowcss
|
|
1
|
+
export declare const pathLabelStyles: import("meowcss").CSSFragment;
|