meowtail 0.2.0-alpha.2 → 0.3.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 +2 -2
- package/ASSISTANT.md +5 -1
- package/CHANGELOG.md +96 -0
- package/COMPONENTS.md +342 -0
- package/README.md +174 -38
- package/THIRD_PARTY_NOTICES.md +47 -0
- package/dist/src/chat/assistant-composer.d.ts +10 -6
- package/dist/src/chat/assistant-composer.js +49 -87
- package/dist/src/chat/assistant-content.d.ts +28 -12
- package/dist/src/chat/assistant-content.js +86 -71
- package/dist/src/chat/assistant-markdown.d.ts +10 -7
- package/dist/src/chat/assistant-markdown.js +5 -5
- package/dist/src/chat/assistant-question.d.ts +9 -7
- package/dist/src/chat/assistant-question.js +30 -61
- 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 +22 -1
- package/dist/src/chat/assistant-types.js +7 -0
- package/dist/src/chat/assistant.d.ts +9 -6
- package/dist/src/chat/assistant.js +222 -190
- package/dist/src/chat/attachments.d.ts +9 -7
- package/dist/src/chat/attachments.js +45 -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 +16 -18
- package/dist/src/chat/composer.js +51 -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 +22 -16
- 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 +23 -0
- package/dist/src/chat/reasoning.js +28 -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 +8 -7
- package/dist/src/chat/task.js +45 -28
- package/dist/src/chat/tool-call.d.ts +10 -8
- package/dist/src/chat/tool-call.js +60 -51
- package/dist/src/components/accordion.d.ts +9 -7
- package/dist/src/components/accordion.js +8 -14
- 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 +14 -27
- 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 +10 -7
- package/dist/src/components/checkbox.js +42 -39
- package/dist/src/components/choice-group.d.ts +9 -7
- package/dist/src/components/choice-group.js +35 -39
- package/dist/src/components/choice-select.d.ts +9 -7
- package/dist/src/components/choice-select.js +100 -142
- package/dist/src/components/code-block.d.ts +27 -6
- package/dist/src/components/code-block.js +35 -17
- 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 +9 -7
- package/dist/src/components/context-menu.js +7 -20
- 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 +15 -10
- package/dist/src/components/disclosure.js +14 -13
- package/dist/src/components/drawer.d.ts +9 -7
- package/dist/src/components/drawer.js +36 -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 +12 -8
- package/dist/src/components/field.js +55 -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 +26 -36
- package/dist/src/components/icon-button.d.ts +17 -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 +9 -7
- package/dist/src/components/icon-rail.js +14 -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 +23 -33
- 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 +14 -15
- package/dist/src/components/json-tree.d.ts +12 -7
- package/dist/src/components/json-tree.js +32 -33
- 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.d.ts +10 -7
- package/dist/src/components/menu.js +46 -68
- package/dist/src/components/mermaid-diagram.d.ts +41 -0
- package/dist/src/components/mermaid-diagram.js +127 -0
- package/dist/src/components/meta-row.d.ts +15 -15
- package/dist/src/components/meta-row.js +29 -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 +41 -0
- package/dist/src/components/modal.js +103 -0
- package/dist/src/components/nav-item.d.ts +13 -7
- package/dist/src/components/nav-item.js +12 -15
- package/dist/src/components/nav-list.d.ts +50 -0
- package/dist/src/components/nav-list.js +53 -0
- package/dist/src/components/number-input.d.ts +9 -7
- package/dist/src/components/number-input.js +40 -68
- package/dist/src/components/output-block.d.ts +8 -6
- package/dist/src/components/output-block.js +19 -24
- 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 +9 -7
- package/dist/src/components/path-picker.js +15 -17
- package/dist/src/components/pill.d.ts +9 -7
- package/dist/src/components/pill.js +6 -9
- package/dist/src/components/popover.d.ts +10 -7
- package/dist/src/components/popover.js +169 -172
- 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 +9 -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 +51 -56
- 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 +9 -7
- package/dist/src/components/risk-confirmation.js +6 -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 +14 -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 +9 -7
- package/dist/src/components/segmented-control.js +49 -54
- package/dist/src/components/select.d.ts +10 -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 +13 -8
- package/dist/src/components/skeleton-boundary.js +28 -26
- 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 +9 -7
- package/dist/src/components/slider.js +8 -23
- 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 +14 -7
- package/dist/src/components/table.js +65 -73
- 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 +10 -9
- package/dist/src/components/tabs.js +14 -35
- 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 +34 -0
- package/dist/src/components/task-list.js +81 -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 +13 -8
- package/dist/src/components/text-shimmer.js +15 -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 +17 -34
- 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 +9 -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,15 +1,16 @@
|
|
|
1
|
-
import { css,
|
|
1
|
+
import { css, parts } from "meowcss/meowjsx";
|
|
2
2
|
import { chatTokens, uiTokens } from "../tokens.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { chatComposerOptions } from "../../chat/composer.options.js";
|
|
4
|
+
import { ui } from "../utilities.js";
|
|
5
|
+
const chatAttachmentsPartRefs = parts("chat-attachments");
|
|
6
|
+
const chatComposerPartRefs = parts("chat-composer");
|
|
7
|
+
const chatFramePartRefs = parts("chat-frame");
|
|
8
|
+
const choiceSelectPartRefs = parts("choice-select");
|
|
9
|
+
const iconButtonPartRefs = parts("icon-button");
|
|
10
|
+
const popoverPartRefs = parts("popover");
|
|
11
|
+
const selectPartRefs = parts("select");
|
|
11
12
|
export const chatComposerStyles = css `
|
|
12
|
-
${
|
|
13
|
+
${chatComposerPartRefs.trailing} {
|
|
13
14
|
display: flex;
|
|
14
15
|
align-items: center;
|
|
15
16
|
margin-left: auto;
|
|
@@ -17,73 +18,71 @@ export const chatComposerStyles = css `
|
|
|
17
18
|
max-width: min(280px, 60%);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
${
|
|
21
|
+
${chatComposerPartRefs.trailing} ${choiceSelectPartRefs.trigger} {
|
|
21
22
|
min-height: 28px;
|
|
22
23
|
border: 0;
|
|
23
|
-
border-radius: ${uiTokens.
|
|
24
|
+
border-radius: ${uiTokens.radius.md};
|
|
24
25
|
background: transparent;
|
|
25
|
-
color: ${uiTokens.
|
|
26
|
-
font-size:
|
|
27
|
-
line-height:
|
|
26
|
+
color: ${uiTokens.ink.secondary};
|
|
27
|
+
font-size: ${uiTokens.type.label};
|
|
28
|
+
line-height: ${uiTokens.type.line.label};
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
${
|
|
31
|
-
background: ${uiTokens.hover};
|
|
31
|
+
${chatComposerPartRefs.trailing} ${choiceSelectPartRefs.trigger}:hover:not(:disabled) {
|
|
32
|
+
background: ${uiTokens.state.hover};
|
|
33
|
+
color: ${uiTokens.ink.primary};
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
${
|
|
35
|
-
|
|
35
|
+
/* Open, the quiet trigger holds the active overlay that anchors its menu. */
|
|
36
|
+
${chatComposerPartRefs.trailing} ${choiceSelectPartRefs.trigger}[aria-expanded="true"]:not(:disabled) {
|
|
37
|
+
background: ${uiTokens.state.active};
|
|
38
|
+
color: ${uiTokens.ink.primary};
|
|
36
39
|
}
|
|
37
40
|
|
|
38
|
-
${
|
|
39
|
-
|
|
40
|
-
padding: 6px;
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
line-height: 18px;
|
|
43
|
-
color: ${uiTokens.subtleForeground};
|
|
41
|
+
${chatComposerPartRefs.trailing} ${popoverPartRefs.panel} {
|
|
42
|
+
width: 248px;
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
${
|
|
45
|
+
${chatComposerPartRefs.trailing} ${choiceSelectPartRefs.group}:not(:first-child) {
|
|
47
46
|
border: 0;
|
|
48
47
|
margin-top: 0;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
${
|
|
50
|
+
${chatComposerPartRefs.trailing} ${choiceSelectPartRefs.option} {
|
|
52
51
|
padding: 6px;
|
|
53
|
-
font-size:
|
|
54
|
-
line-height:
|
|
52
|
+
font-size: ${uiTokens.type.body};
|
|
53
|
+
line-height: ${uiTokens.type.line.body};
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
${
|
|
56
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="hero"] ${chatComposerPartRefs.input} {
|
|
58
57
|
min-height: 52px;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
|
-
${
|
|
60
|
+
${chatComposerPartRefs.actions} ${selectPartRefs.root} {
|
|
62
61
|
width: auto;
|
|
63
62
|
max-width: min(220px, 55%);
|
|
64
63
|
height: 28px;
|
|
65
64
|
min-height: 28px;
|
|
66
65
|
padding: 0 20px 0 8px;
|
|
67
66
|
border: 0;
|
|
68
|
-
border-radius: ${uiTokens.
|
|
67
|
+
border-radius: ${uiTokens.radius.md};
|
|
69
68
|
background-color: transparent;
|
|
70
69
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
71
70
|
background-repeat: no-repeat;
|
|
72
71
|
background-position: right 4px center;
|
|
73
72
|
background-size: 12px 12px;
|
|
74
|
-
color: ${uiTokens.
|
|
75
|
-
font-size:
|
|
76
|
-
line-height:
|
|
77
|
-
font-weight:
|
|
73
|
+
color: ${uiTokens.ink.secondary};
|
|
74
|
+
font-size: ${uiTokens.type.label};
|
|
75
|
+
line-height: ${uiTokens.type.line.label};
|
|
76
|
+
font-weight: ${uiTokens.type.weight.medium};
|
|
78
77
|
cursor: pointer;
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
${
|
|
82
|
-
background-color: ${uiTokens.hover};
|
|
80
|
+
${chatComposerPartRefs.actions} ${selectPartRefs.root}:hover:not(:disabled) {
|
|
81
|
+
background-color: ${uiTokens.state.hover};
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
/* The form groups the writing surface and its external supporting instructions. */
|
|
86
|
-
${
|
|
85
|
+
${chatComposerPartRefs.root} {
|
|
87
86
|
position: relative;
|
|
88
87
|
display: grid;
|
|
89
88
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -95,33 +94,33 @@ export const chatComposerStyles = css `
|
|
|
95
94
|
box-shadow: none;
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
${
|
|
97
|
+
${chatComposerPartRefs.surface} {
|
|
99
98
|
display: grid;
|
|
100
99
|
grid-template-columns: minmax(0, 1fr);
|
|
101
100
|
gap: 12px;
|
|
102
101
|
min-width: 0;
|
|
103
102
|
padding: 8px 0 0;
|
|
104
103
|
border: 0;
|
|
105
|
-
background: ${
|
|
106
|
-
box-shadow: ${
|
|
107
|
-
transition: box-shadow ${uiTokens.
|
|
108
|
-
border-radius: ${
|
|
104
|
+
background: ${uiTokens.surface.fill};
|
|
105
|
+
box-shadow: 0 0 0 ${uiTokens.line.width} ${uiTokens.line.edge};
|
|
106
|
+
transition: box-shadow ${uiTokens.motion.response} ${uiTokens.motion.ease};
|
|
107
|
+
border-radius: ${uiTokens.radius.xxl};
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
/* The frame owns its direct writing surface; a footer or card owns its own inset. */
|
|
112
|
-
${
|
|
111
|
+
${chatFramePartRefs.root} > ${chatComposerPartRefs.root} {
|
|
113
112
|
flex: 0 0 auto;
|
|
114
113
|
box-sizing: border-box;
|
|
115
114
|
width: calc(100% - 2 * ${chatTokens.readingInset});
|
|
116
|
-
max-width: calc(${chatTokens.
|
|
117
|
-
margin: ${uiTokens.
|
|
115
|
+
max-width: calc(${chatTokens.listMaxWidth} + 32px);
|
|
116
|
+
margin: ${uiTokens.space.section} auto max(${uiTokens.space.section}, env(safe-area-inset-bottom));
|
|
118
117
|
}
|
|
119
118
|
|
|
120
|
-
${
|
|
119
|
+
${chatComposerPartRefs.field} {
|
|
121
120
|
display: contents;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
|
-
${
|
|
123
|
+
${chatComposerPartRefs.attachments} {
|
|
125
124
|
grid-row: 1;
|
|
126
125
|
min-width: 0;
|
|
127
126
|
padding: 2px 10px 0;
|
|
@@ -129,32 +128,32 @@ export const chatComposerStyles = css `
|
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
/* Hosts may retain a hidden mount point while their attachment list is empty. */
|
|
132
|
-
${
|
|
133
|
-
${
|
|
131
|
+
${chatComposerPartRefs.attachments}:empty,
|
|
132
|
+
${chatComposerPartRefs.attachments}:has(> [hidden]:only-child) {
|
|
134
133
|
display: none;
|
|
135
134
|
}
|
|
136
135
|
|
|
137
|
-
${
|
|
138
|
-
:has(> ${
|
|
136
|
+
${chatComposerPartRefs.surface}:has(> ${chatComposerPartRefs.attachments}:not(:empty)):not(
|
|
137
|
+
:has(> ${chatComposerPartRefs.attachments} > [hidden]:only-child)
|
|
139
138
|
)
|
|
140
|
-
${
|
|
139
|
+
${chatComposerPartRefs.input} {
|
|
141
140
|
grid-row: 2;
|
|
142
141
|
}
|
|
143
142
|
|
|
144
|
-
${
|
|
145
|
-
:has(> ${
|
|
143
|
+
${chatComposerPartRefs.surface}:has(> ${chatComposerPartRefs.attachments}:not(:empty)):not(
|
|
144
|
+
:has(> ${chatComposerPartRefs.attachments} > [hidden]:only-child)
|
|
146
145
|
)
|
|
147
|
-
${
|
|
146
|
+
${chatComposerPartRefs.actions} {
|
|
148
147
|
grid-row: 3;
|
|
149
148
|
}
|
|
150
149
|
|
|
151
|
-
${
|
|
150
|
+
${chatComposerPartRefs.attachments} ${chatAttachmentsPartRefs.file} {
|
|
152
151
|
min-height: 64px;
|
|
153
152
|
}
|
|
154
153
|
|
|
155
|
-
${
|
|
156
|
-
color: ${uiTokens.
|
|
157
|
-
font-family: ${uiTokens.
|
|
154
|
+
${chatComposerPartRefs.input} {
|
|
155
|
+
color: ${uiTokens.ink.primary};
|
|
156
|
+
font-family: ${uiTokens.type.sans};
|
|
158
157
|
box-sizing: border-box;
|
|
159
158
|
display: block;
|
|
160
159
|
width: 100%;
|
|
@@ -167,60 +166,58 @@ export const chatComposerStyles = css `
|
|
|
167
166
|
border-radius: 0;
|
|
168
167
|
outline: 0;
|
|
169
168
|
background: transparent;
|
|
170
|
-
font-size: var(${chatTokens.fontBody.name}, ${uiTokens.
|
|
171
|
-
font-weight:
|
|
172
|
-
line-height:
|
|
173
|
-
caret-color: ${uiTokens.focus};
|
|
169
|
+
font-size: var(${chatTokens.fontBody.name}, ${uiTokens.type.body});
|
|
170
|
+
font-weight: ${uiTokens.type.weight.regular};
|
|
171
|
+
line-height: ${chatTokens.leading};
|
|
172
|
+
caret-color: ${uiTokens.state.focus};
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
/* Focus paint stays inside the surface when an embedding form clips overflow. */
|
|
177
|
-
${
|
|
178
|
-
outline: 1px solid color-mix(in srgb, ${uiTokens.primary} 45%, transparent);
|
|
176
|
+
${chatComposerPartRefs.surface}:has(${chatComposerPartRefs.input}:focus:not(:disabled)) {
|
|
177
|
+
outline: 1px solid color-mix(in srgb, ${uiTokens.action.primary} 45%, transparent);
|
|
179
178
|
outline-offset: -1px;
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
@media (hover: hover) {
|
|
183
|
-
${
|
|
182
|
+
${chatComposerPartRefs.surface}:has(${chatComposerPartRefs.input}:hover:not(:disabled):not(:focus)) {
|
|
184
183
|
border-color: transparent;
|
|
185
184
|
}
|
|
186
185
|
}
|
|
187
186
|
|
|
188
|
-
${
|
|
189
|
-
|
|
190
|
-
outline-offset: 2px;
|
|
187
|
+
${chatComposerPartRefs.submit}:focus-visible {
|
|
188
|
+
${ui.focus.ring}
|
|
191
189
|
}
|
|
192
190
|
|
|
193
|
-
${
|
|
191
|
+
${chatComposerPartRefs.input}:focus-visible {
|
|
194
192
|
outline: none;
|
|
195
193
|
}
|
|
196
194
|
|
|
197
|
-
${
|
|
198
|
-
|
|
199
|
-
outline-offset: -2px;
|
|
195
|
+
${chatComposerPartRefs.surface}:has(${chatComposerPartRefs.input}:focus-visible) {
|
|
196
|
+
${ui.focus.inset}
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
@supports (field-sizing: content) {
|
|
203
|
-
${
|
|
200
|
+
${chatComposerPartRefs.input} {
|
|
204
201
|
field-sizing: content;
|
|
205
202
|
}
|
|
206
203
|
}
|
|
207
204
|
|
|
208
|
-
${
|
|
209
|
-
color: ${uiTokens.
|
|
210
|
-
font-size: ${uiTokens.
|
|
205
|
+
${chatComposerPartRefs.input}::placeholder {
|
|
206
|
+
color: ${uiTokens.ink.secondary};
|
|
207
|
+
font-size: ${uiTokens.type.body};
|
|
211
208
|
}
|
|
212
209
|
|
|
213
|
-
${
|
|
210
|
+
${chatComposerPartRefs.input}:disabled {
|
|
214
211
|
cursor: not-allowed;
|
|
215
|
-
color: ${uiTokens.
|
|
212
|
+
color: ${uiTokens.ink.tertiary};
|
|
216
213
|
}
|
|
217
214
|
|
|
218
|
-
${
|
|
219
|
-
background: ${uiTokens.
|
|
215
|
+
${chatComposerPartRefs.surface}:has(${chatComposerPartRefs.input}:disabled) {
|
|
216
|
+
background: ${uiTokens.surface.fill};
|
|
220
217
|
box-shadow: none;
|
|
221
218
|
}
|
|
222
219
|
|
|
223
|
-
${
|
|
220
|
+
${chatComposerPartRefs.hint} {
|
|
224
221
|
position: absolute;
|
|
225
222
|
width: 1px;
|
|
226
223
|
height: 1px;
|
|
@@ -230,7 +227,7 @@ export const chatComposerStyles = css `
|
|
|
230
227
|
white-space: nowrap;
|
|
231
228
|
}
|
|
232
229
|
|
|
233
|
-
${
|
|
230
|
+
${chatComposerPartRefs.actions} {
|
|
234
231
|
grid-row: 2;
|
|
235
232
|
display: flex;
|
|
236
233
|
flex-wrap: wrap;
|
|
@@ -240,58 +237,58 @@ export const chatComposerStyles = css `
|
|
|
240
237
|
min-height: 32px;
|
|
241
238
|
}
|
|
242
239
|
|
|
243
|
-
${
|
|
240
|
+
${chatComposerPartRefs.submit} {
|
|
244
241
|
display: grid;
|
|
245
242
|
place-items: center;
|
|
246
243
|
margin-left: auto;
|
|
247
244
|
flex: none;
|
|
248
|
-
font-family: ${uiTokens.
|
|
245
|
+
font-family: ${uiTokens.type.sans};
|
|
249
246
|
transition:
|
|
250
|
-
background-color ${uiTokens.
|
|
251
|
-
box-shadow ${uiTokens.
|
|
247
|
+
background-color ${uiTokens.motion.response} ${uiTokens.motion.ease},
|
|
248
|
+
box-shadow ${uiTokens.motion.settle} ${uiTokens.motion.ease};
|
|
252
249
|
width: 34px;
|
|
253
250
|
height: 34px;
|
|
254
251
|
min-width: 34px;
|
|
255
252
|
min-height: 34px;
|
|
256
253
|
padding: 0;
|
|
257
|
-
line-height: 1
|
|
254
|
+
line-height: 1;
|
|
258
255
|
border: 1px solid transparent;
|
|
259
|
-
border-radius:
|
|
256
|
+
border-radius: ${uiTokens.radius.full};
|
|
260
257
|
corner-shape: round;
|
|
261
|
-
background: ${
|
|
262
|
-
color: ${uiTokens.onPrimary};
|
|
258
|
+
background: ${uiTokens.action.primary};
|
|
259
|
+
color: ${uiTokens.action.onPrimary};
|
|
263
260
|
transform: translateY(-2px);
|
|
264
261
|
cursor: pointer;
|
|
265
|
-
font-size: ${uiTokens.
|
|
266
|
-
font-weight:
|
|
262
|
+
font-size: ${uiTokens.type.body};
|
|
263
|
+
font-weight: ${uiTokens.type.weight.medium};
|
|
267
264
|
box-shadow: none;
|
|
268
265
|
}
|
|
269
266
|
|
|
270
|
-
${
|
|
271
|
-
width:
|
|
272
|
-
height:
|
|
267
|
+
${chatComposerPartRefs.submit} svg {
|
|
268
|
+
width: ${uiTokens.icon.large};
|
|
269
|
+
height: ${uiTokens.icon.large};
|
|
273
270
|
}
|
|
274
271
|
|
|
275
|
-
${
|
|
272
|
+
${chatComposerPartRefs.trailing} + ${chatComposerPartRefs.submit} {
|
|
276
273
|
margin-left: 0;
|
|
277
274
|
}
|
|
278
275
|
|
|
279
|
-
${
|
|
276
|
+
${chatComposerPartRefs.actions} > ${iconButtonPartRefs.root} {
|
|
280
277
|
width: 28px;
|
|
281
278
|
height: 28px;
|
|
282
279
|
min-width: 28px;
|
|
283
280
|
min-height: 28px;
|
|
284
281
|
border-radius: 50%;
|
|
285
282
|
corner-shape: round;
|
|
286
|
-
background: ${uiTokens.
|
|
287
|
-
color: ${uiTokens.
|
|
283
|
+
background: ${uiTokens.surface.fill};
|
|
284
|
+
color: ${uiTokens.ink.primary};
|
|
288
285
|
}
|
|
289
286
|
|
|
290
|
-
${
|
|
291
|
-
background:
|
|
287
|
+
${chatComposerPartRefs.submit}:hover:not(:disabled) {
|
|
288
|
+
background: ${uiTokens.action.primaryHover};
|
|
292
289
|
}
|
|
293
290
|
|
|
294
|
-
${
|
|
291
|
+
${chatComposerPartRefs.submit}:disabled {
|
|
295
292
|
cursor: not-allowed;
|
|
296
293
|
border-color: transparent;
|
|
297
294
|
opacity: 0.4;
|
|
@@ -299,144 +296,144 @@ export const chatComposerStyles = css `
|
|
|
299
296
|
}
|
|
300
297
|
|
|
301
298
|
@media (max-width: 680px) {
|
|
302
|
-
${
|
|
299
|
+
${chatComposerPartRefs.surface} {
|
|
303
300
|
grid-template-columns: minmax(0, 1fr);
|
|
304
301
|
padding: 8px 0 0;
|
|
305
302
|
}
|
|
306
303
|
|
|
307
|
-
${
|
|
308
|
-
font-size: ${uiTokens.
|
|
304
|
+
${chatComposerPartRefs.hint} {
|
|
305
|
+
font-size: ${uiTokens.type.caption};
|
|
309
306
|
}
|
|
310
307
|
}
|
|
311
308
|
|
|
312
|
-
${
|
|
313
|
-
box-shadow:
|
|
314
|
-
transition-duration:
|
|
309
|
+
${chatComposerPartRefs.submit}:active:not(:disabled) {
|
|
310
|
+
box-shadow: ${uiTokens.shadow.pressed};
|
|
311
|
+
transition-duration: ${uiTokens.motion.instant};
|
|
315
312
|
}
|
|
316
313
|
|
|
317
314
|
/* A compact writing surface grows with the draft, not with an empty tools row.
|
|
318
315
|
The inline row keeps the one-line text and the send action on the optical
|
|
319
316
|
center: equal block padding around the 24px line, a symmetric action row, and
|
|
320
317
|
no base-layout nudge on the submit button. */
|
|
321
|
-
${
|
|
318
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"] > ${chatComposerPartRefs.surface} {
|
|
322
319
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
323
320
|
align-items: center;
|
|
324
|
-
padding: ${uiTokens.
|
|
321
|
+
padding: ${uiTokens.control.inset} ${uiTokens.space.section};
|
|
325
322
|
}
|
|
326
323
|
|
|
327
|
-
${
|
|
324
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"] ${chatComposerPartRefs.input} {
|
|
328
325
|
grid-column: 1;
|
|
329
326
|
grid-row: 1;
|
|
330
|
-
min-height:
|
|
327
|
+
min-height: 40px;
|
|
331
328
|
padding-block: 8px;
|
|
332
329
|
}
|
|
333
330
|
|
|
334
|
-
${
|
|
331
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"] ${chatComposerPartRefs.actions} {
|
|
335
332
|
grid-column: 2;
|
|
336
333
|
grid-row: 1;
|
|
337
334
|
flex-wrap: nowrap;
|
|
338
335
|
padding-block: 4px;
|
|
339
336
|
}
|
|
340
337
|
|
|
341
|
-
${
|
|
338
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"] ${chatComposerPartRefs.submit} {
|
|
342
339
|
transform: none;
|
|
343
340
|
}
|
|
344
341
|
|
|
345
|
-
${
|
|
342
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"] ${chatComposerPartRefs.attachments} {
|
|
346
343
|
grid-column: 1 / -1;
|
|
347
344
|
}
|
|
348
345
|
|
|
349
|
-
${
|
|
350
|
-
:has(> ${
|
|
346
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"] > ${chatComposerPartRefs.surface}:has(> ${chatComposerPartRefs.attachments}:not(:empty)):not(
|
|
347
|
+
:has(> ${chatComposerPartRefs.attachments} > [hidden]:only-child)
|
|
351
348
|
)
|
|
352
|
-
:is(${
|
|
349
|
+
:is(${chatComposerPartRefs.input}, ${chatComposerPartRefs.actions}) {
|
|
353
350
|
grid-row: 2;
|
|
354
351
|
}
|
|
355
352
|
|
|
356
353
|
@media (pointer: coarse) {
|
|
357
|
-
${
|
|
358
|
-
font-size: max(
|
|
354
|
+
${chatComposerPartRefs.input} {
|
|
355
|
+
font-size: max(${uiTokens.type.touchField}, ${uiTokens.type.body});
|
|
359
356
|
}
|
|
360
357
|
}
|
|
361
358
|
|
|
362
359
|
@media (prefers-reduced-motion: reduce) {
|
|
363
|
-
${
|
|
364
|
-
${
|
|
365
|
-
${
|
|
360
|
+
${chatComposerPartRefs.surface},
|
|
361
|
+
${chatComposerPartRefs.input},
|
|
362
|
+
${chatComposerPartRefs.submit} {
|
|
366
363
|
transition: none;
|
|
367
364
|
}
|
|
368
365
|
}
|
|
369
366
|
|
|
370
|
-
${
|
|
367
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] > ${chatComposerPartRefs.surface} {
|
|
371
368
|
position: relative;
|
|
372
369
|
gap: 4px;
|
|
373
370
|
padding: 12px 12px 10px;
|
|
374
|
-
border: ${
|
|
371
|
+
border: ${uiTokens.line.width} solid ${uiTokens.line.edge};
|
|
375
372
|
}
|
|
376
373
|
|
|
377
|
-
${
|
|
374
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.input} {
|
|
378
375
|
padding: 2px 6px 6px;
|
|
379
376
|
}
|
|
380
377
|
|
|
381
|
-
${
|
|
378
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} {
|
|
382
379
|
gap: 6px;
|
|
383
380
|
padding: 0;
|
|
384
381
|
min-height: 34px;
|
|
385
382
|
}
|
|
386
383
|
|
|
387
|
-
${
|
|
384
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${iconButtonPartRefs.root} {
|
|
388
385
|
width: 32px;
|
|
389
386
|
height: 32px;
|
|
390
387
|
min-width: 32px;
|
|
391
388
|
min-height: 32px;
|
|
392
|
-
border: ${
|
|
393
|
-
border-radius: ${
|
|
389
|
+
border: ${uiTokens.line.width} solid ${uiTokens.line.edge};
|
|
390
|
+
border-radius: ${uiTokens.radius.lg};
|
|
394
391
|
background: transparent;
|
|
395
|
-
color: ${uiTokens.
|
|
392
|
+
color: ${uiTokens.ink.secondary};
|
|
396
393
|
}
|
|
397
394
|
|
|
398
|
-
${
|
|
399
|
-
background: ${uiTokens.hover};
|
|
400
|
-
color: ${uiTokens.
|
|
395
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${iconButtonPartRefs.root}:hover:not(:disabled) {
|
|
396
|
+
background: ${uiTokens.state.hover};
|
|
397
|
+
color: ${uiTokens.ink.primary};
|
|
401
398
|
}
|
|
402
399
|
|
|
403
400
|
/* The model and its supporting choices stay beside send, not stranded after attach. */
|
|
404
|
-
${
|
|
401
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${chatComposerPartRefs.trailing} {
|
|
405
402
|
margin-left: auto;
|
|
406
403
|
min-width: 0;
|
|
407
404
|
max-width: min(360px, 70%);
|
|
408
405
|
}
|
|
409
406
|
|
|
410
|
-
${
|
|
407
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${chatComposerPartRefs.submit} {
|
|
411
408
|
margin-left: 0;
|
|
412
409
|
}
|
|
413
410
|
|
|
414
|
-
${
|
|
411
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions}:not(:has(> ${chatComposerPartRefs.trailing})) > ${chatComposerPartRefs.submit} {
|
|
415
412
|
margin-left: auto;
|
|
416
413
|
}
|
|
417
414
|
|
|
418
|
-
${
|
|
415
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.submit} {
|
|
419
416
|
width: 34px;
|
|
420
417
|
height: 34px;
|
|
421
418
|
min-width: 34px;
|
|
422
419
|
min-height: 34px;
|
|
423
|
-
border-radius:
|
|
424
|
-
background: ${uiTokens.primary};
|
|
425
|
-
color: ${uiTokens.onPrimary};
|
|
420
|
+
border-radius: ${uiTokens.radius.lg};
|
|
421
|
+
background: ${uiTokens.action.primary};
|
|
422
|
+
color: ${uiTokens.action.onPrimary};
|
|
426
423
|
transform: none;
|
|
427
424
|
}
|
|
428
425
|
|
|
429
|
-
${
|
|
430
|
-
background: ${uiTokens.primaryHover};
|
|
426
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.submit}:hover:not(:disabled) {
|
|
427
|
+
background: ${uiTokens.action.primaryHover};
|
|
431
428
|
}
|
|
432
429
|
|
|
433
|
-
${
|
|
430
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.submit}:disabled {
|
|
434
431
|
opacity: 0.35;
|
|
435
432
|
}
|
|
436
433
|
|
|
437
434
|
/* Supporting text is outside the writing surface and never joins its action grid. */
|
|
438
|
-
${
|
|
439
|
-
${
|
|
435
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] > ${chatComposerPartRefs.hint},
|
|
436
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"]:focus-within > ${chatComposerPartRefs.hint} {
|
|
440
437
|
position: static;
|
|
441
438
|
min-width: 0;
|
|
442
439
|
width: auto;
|
|
@@ -446,43 +443,42 @@ export const chatComposerStyles = css `
|
|
|
446
443
|
clip-path: none;
|
|
447
444
|
white-space: normal;
|
|
448
445
|
overflow-wrap: anywhere;
|
|
449
|
-
color: ${
|
|
450
|
-
font-size:
|
|
451
|
-
line-height:
|
|
446
|
+
color: ${uiTokens.ink.tertiary};
|
|
447
|
+
font-size: ${uiTokens.type.caption};
|
|
448
|
+
line-height: ${uiTokens.type.line.caption};
|
|
452
449
|
pointer-events: auto;
|
|
453
450
|
}
|
|
454
451
|
|
|
455
452
|
/* A phone writes on one row: attach, text, send. The model choice keeps a quiet row beneath. */
|
|
456
453
|
@media (max-width: 768px) {
|
|
457
|
-
${
|
|
454
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] > ${chatComposerPartRefs.surface} {
|
|
458
455
|
display: grid;
|
|
459
456
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
460
457
|
align-items: end;
|
|
461
458
|
gap: 0 8px;
|
|
462
459
|
padding: 6px;
|
|
463
|
-
border-radius:
|
|
464
|
-
|
|
465
|
-
}
|
|
460
|
+
border-radius: ${chatTokens.composerRadius};
|
|
461
|
+
}
|
|
466
462
|
|
|
467
|
-
${
|
|
463
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.attachments} {
|
|
468
464
|
grid-column: 1 / -1;
|
|
469
465
|
grid-row: 1;
|
|
470
466
|
}
|
|
471
467
|
|
|
472
|
-
${
|
|
468
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.input} {
|
|
473
469
|
grid-column: 2;
|
|
474
470
|
grid-row: 2;
|
|
475
471
|
min-height: 36px;
|
|
476
472
|
padding: 6px 4px;
|
|
477
|
-
font-size:
|
|
478
|
-
line-height:
|
|
473
|
+
font-size: ${uiTokens.type.touchField};
|
|
474
|
+
line-height: ${uiTokens.type.line.reading};
|
|
479
475
|
}
|
|
480
476
|
|
|
481
|
-
${
|
|
477
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} {
|
|
482
478
|
display: contents;
|
|
483
479
|
}
|
|
484
480
|
|
|
485
|
-
${
|
|
481
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${iconButtonPartRefs.root} {
|
|
486
482
|
grid-column: 1;
|
|
487
483
|
grid-row: 2;
|
|
488
484
|
width: 36px;
|
|
@@ -491,11 +487,11 @@ export const chatComposerStyles = css `
|
|
|
491
487
|
min-height: 36px;
|
|
492
488
|
border: 0;
|
|
493
489
|
border-radius: 50%;
|
|
494
|
-
background: ${
|
|
495
|
-
color: ${uiTokens.
|
|
490
|
+
background: ${uiTokens.surface.fill};
|
|
491
|
+
color: ${uiTokens.ink.primary};
|
|
496
492
|
}
|
|
497
493
|
|
|
498
|
-
${
|
|
494
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${chatComposerPartRefs.trailing} {
|
|
499
495
|
grid-column: 2 / -1;
|
|
500
496
|
grid-row: 3;
|
|
501
497
|
margin-left: 0;
|
|
@@ -504,7 +500,7 @@ export const chatComposerStyles = css `
|
|
|
504
500
|
justify-content: flex-start;
|
|
505
501
|
}
|
|
506
502
|
|
|
507
|
-
${
|
|
503
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${chatComposerPartRefs.submit} {
|
|
508
504
|
grid-column: 3;
|
|
509
505
|
grid-row: 2;
|
|
510
506
|
width: 36px;
|
|
@@ -519,11 +515,103 @@ export const chatComposerStyles = css `
|
|
|
519
515
|
|
|
520
516
|
/* Explicit bare embedding removes only the writing surface chrome. The form
|
|
521
517
|
and external supporting instructions keep their normal layout. */
|
|
522
|
-
${
|
|
518
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("surface")}="none"] > ${chatComposerPartRefs.surface} {
|
|
523
519
|
padding: 0;
|
|
524
520
|
border: 0;
|
|
525
521
|
border-radius: 0;
|
|
526
522
|
background: transparent;
|
|
527
523
|
box-shadow: none;
|
|
528
524
|
}
|
|
525
|
+
|
|
526
|
+
/* Bar: one rounded row (attach, text, trailing choices, send) that grows with the draft. */
|
|
527
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] > ${chatComposerPartRefs.surface} {
|
|
528
|
+
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
529
|
+
align-items: end;
|
|
530
|
+
gap: 0 ${uiTokens.space.group};
|
|
531
|
+
padding: 6px;
|
|
532
|
+
border: ${uiTokens.line.width} solid ${uiTokens.line.edge};
|
|
533
|
+
border-radius: ${chatTokens.composerRadius};
|
|
534
|
+
}
|
|
535
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.attachments} {
|
|
536
|
+
grid-column: 1 / -1;
|
|
537
|
+
grid-row: 1;
|
|
538
|
+
padding: 4px 4px ${uiTokens.space.group};
|
|
539
|
+
}
|
|
540
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.input} {
|
|
541
|
+
grid-column: 2;
|
|
542
|
+
grid-row: 2;
|
|
543
|
+
min-height: ${uiTokens.control.regular};
|
|
544
|
+
padding: 6px 4px;
|
|
545
|
+
line-height: ${uiTokens.type.line.reading};
|
|
546
|
+
}
|
|
547
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.actions} {
|
|
548
|
+
display: contents;
|
|
549
|
+
}
|
|
550
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.actions} > ${iconButtonPartRefs.root},
|
|
551
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.trailing} ${iconButtonPartRefs.root} {
|
|
552
|
+
width: ${uiTokens.control.regular};
|
|
553
|
+
height: ${uiTokens.control.regular};
|
|
554
|
+
min-width: ${uiTokens.control.regular};
|
|
555
|
+
min-height: ${uiTokens.control.regular};
|
|
556
|
+
border: 0;
|
|
557
|
+
border-radius: 50%;
|
|
558
|
+
corner-shape: round;
|
|
559
|
+
background: transparent;
|
|
560
|
+
color: ${uiTokens.ink.secondary};
|
|
561
|
+
}
|
|
562
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.actions} > ${iconButtonPartRefs.root} {
|
|
563
|
+
grid-column: 1;
|
|
564
|
+
grid-row: 2;
|
|
565
|
+
}
|
|
566
|
+
@media (hover: hover) {
|
|
567
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.actions} > ${iconButtonPartRefs.root}:hover:not(:disabled),
|
|
568
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.trailing} ${iconButtonPartRefs.root}:hover:not(:disabled) {
|
|
569
|
+
background: ${uiTokens.state.hover};
|
|
570
|
+
color: ${uiTokens.ink.primary};
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.trailing} {
|
|
574
|
+
grid-column: 3;
|
|
575
|
+
grid-row: 2;
|
|
576
|
+
display: flex;
|
|
577
|
+
align-items: center;
|
|
578
|
+
gap: 2px;
|
|
579
|
+
min-width: 0;
|
|
580
|
+
min-height: ${uiTokens.control.regular};
|
|
581
|
+
}
|
|
582
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.submit} {
|
|
583
|
+
grid-column: 4;
|
|
584
|
+
grid-row: 2;
|
|
585
|
+
width: ${uiTokens.control.regular};
|
|
586
|
+
height: ${uiTokens.control.regular};
|
|
587
|
+
min-width: ${uiTokens.control.regular};
|
|
588
|
+
min-height: ${uiTokens.control.regular};
|
|
589
|
+
margin: 0;
|
|
590
|
+
border-radius: 50%;
|
|
591
|
+
corner-shape: round;
|
|
592
|
+
background: ${uiTokens.action.primary};
|
|
593
|
+
color: ${uiTokens.action.onPrimary};
|
|
594
|
+
transform: none;
|
|
595
|
+
}
|
|
596
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.submit}:disabled {
|
|
597
|
+
opacity: 0.35;
|
|
598
|
+
}
|
|
599
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] > ${chatComposerPartRefs.hint} {
|
|
600
|
+
position: static;
|
|
601
|
+
width: auto;
|
|
602
|
+
height: auto;
|
|
603
|
+
padding-inline: ${uiTokens.space.section};
|
|
604
|
+
overflow: visible;
|
|
605
|
+
clip-path: none;
|
|
606
|
+
white-space: normal;
|
|
607
|
+
color: ${uiTokens.ink.tertiary};
|
|
608
|
+
font-size: ${uiTokens.type.caption};
|
|
609
|
+
}
|
|
610
|
+
/* In a narrow container the choices take a quiet row under the text. */
|
|
611
|
+
@container (max-width: 480px) {
|
|
612
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.trailing}:has(${choiceSelectPartRefs.trigger}:not([hidden])) {
|
|
613
|
+
grid-column: 2 / 4;
|
|
614
|
+
grid-row: 3;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
529
617
|
`;
|