meowtail 0.2.0-alpha.1 → 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 +195 -43
- package/THIRD_PARTY_NOTICES.md +47 -0
- package/dist/src/chat/assistant-composer.d.ts +10 -6
- package/dist/src/chat/assistant-composer.js +57 -135
- package/dist/src/chat/assistant-content.d.ts +28 -14
- package/dist/src/chat/assistant-content.js +87 -80
- package/dist/src/chat/assistant-markdown.d.ts +10 -7
- package/dist/src/chat/assistant-markdown.js +5 -9
- package/dist/src/chat/assistant-question.d.ts +9 -7
- package/dist/src/chat/assistant-question.js +31 -63
- 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 +233 -200
- package/dist/src/chat/attachments.d.ts +11 -8
- package/dist/src/chat/attachments.js +45 -55
- 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 +11 -11
- package/dist/src/chat/composer-panel.js +13 -8
- package/dist/src/chat/composer.d.ts +19 -19
- package/dist/src/chat/composer.js +62 -28
- 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 +46 -35
- package/dist/src/chat/tool-call.d.ts +10 -8
- package/dist/src/chat/tool-call.js +60 -58
- package/dist/src/components/accordion.d.ts +26 -0
- package/dist/src/components/accordion.js +44 -0
- 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 +23 -0
- package/dist/src/components/avatar.js +31 -0
- 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 +16 -9
- package/dist/src/components/checkbox.js +65 -34
- package/dist/src/components/choice-group.d.ts +10 -7
- package/dist/src/components/choice-group.js +43 -52
- package/dist/src/components/choice-select.d.ts +12 -8
- package/dist/src/components/choice-select.js +125 -165
- package/dist/src/components/code-block.d.ts +29 -8
- package/dist/src/components/code-block.js +59 -37
- 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 +18 -0
- package/dist/src/components/context-menu.js +36 -0
- 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 -11
- 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 +105 -87
- package/dist/src/components/index.js +105 -87
- 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 +15 -0
- package/dist/src/components/link.js +8 -0
- 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 +13 -0
- package/dist/src/components/menu-button.js +10 -0
- package/dist/src/components/menu.d.ts +14 -7
- package/dist/src/components/menu.js +48 -70
- 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 +19 -18
- package/dist/src/components/meta-row.js +51 -38
- 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 +13 -19
- 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 +31 -0
- package/dist/src/components/number-input.js +109 -0
- package/dist/src/components/output-block.d.ts +8 -6
- package/dist/src/components/output-block.js +19 -31
- 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 +19 -26
- package/dist/src/components/pill.d.ts +9 -7
- package/dist/src/components/pill.js +7 -13
- package/dist/src/components/popover.d.ts +10 -7
- package/dist/src/components/popover.js +172 -175
- 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 +17 -0
- package/dist/src/components/progress.js +7 -0
- 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 +7 -13
- 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 +50 -55
- 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 +31 -32
- 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 +24 -0
- package/dist/src/components/slider.js +34 -0
- 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 +48 -0
- package/dist/src/components/table.js +138 -0
- 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 -10
- package/dist/src/components/tabs.js +24 -54
- 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 +16 -14
- 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 +198 -561
- package/dist/src/registry/index.js +267 -245
- 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 +24 -21
- package/dist/src/theme/chat/composer.styles.d.ts +1 -1
- package/dist/src/theme/chat/composer.styles.js +281 -215
- 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 +32 -34
- package/dist/src/theme/components/accordion.styles.d.ts +1 -0
- package/dist/src/theme/components/accordion.styles.js +64 -0
- 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 -0
- package/dist/src/theme/components/avatar.styles.js +54 -0
- 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 +95 -74
- package/dist/src/theme/components/card.styles.d.ts +1 -1
- package/dist/src/theme/components/card.styles.js +53 -52
- 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 -0
- package/dist/src/theme/components/context-menu.styles.js +14 -0
- 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 -0
- package/dist/src/theme/components/link.styles.js +32 -0
- 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 +49 -37
- 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 -0
- package/dist/src/theme/components/number-input.styles.js +83 -0
- 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 -0
- package/dist/src/theme/components/progress.styles.js +70 -0
- 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 -0
- package/dist/src/theme/components/slider.styles.js +126 -0
- 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 -0
- package/dist/src/theme/components/table.styles.js +156 -0
- 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 +38 -28
- 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 +78 -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
package/README.md
CHANGED
|
@@ -2,13 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
`meowtail` provides cross-application components, semantic layout, the standard theme, and the complete Assistant composition. Networking, execution, permissions, and persistence are adapted by the host; the library carries no Rossovia business state or backend.
|
|
4
4
|
|
|
5
|
+
The [component catalog](COMPONENTS.md) owns the complete component list, grouping and status.
|
|
6
|
+
The usage notes below explain selected contracts; detailed Agent, Assistant and JSON contracts
|
|
7
|
+
remain in their linked guides.
|
|
8
|
+
|
|
5
9
|
## Presentation package
|
|
6
10
|
|
|
7
11
|
The presentation player, Reveal, media lifecycle, presentation content layouts, and themes have moved into the separate [MeowSlides](../meowslides/README.md). Meowtail does not depend on the presentation package in reverse, and the old `meowtail/presentation` and root presentation exports are removed; shared UI and layout are still provided by this package.
|
|
8
12
|
|
|
9
13
|
This package's npm name is `meowtail`; existing APIs such as `createMeowUI`, `installMeowUI`, and `createMeowUICatalog`, along with runtime style identity, stay unchanged. Use the new package import path; do not derive new function names, `data-*` markers, or CSS variables from the package name.
|
|
10
14
|
|
|
11
|
-
See [Assistant](ASSISTANT.md) for the usage contract of the complete composition and [JSON catalog](JSON.md) for the finite JSON entry point. Implementation and independent acceptance of both are still in progress; the API descriptions and early artifact verification on this page do not equal a same-source acceptance pass for all current source code.
|
|
15
|
+
Application authors writing their own components (the shadcn/ui and Tailwind equivalents, the style floor and the audit) start with [Authoring](AUTHORING.md). See [Assistant](ASSISTANT.md) for the usage contract of the complete composition and [JSON catalog](JSON.md) for the finite JSON entry point. Implementation and independent acceptance of both are still in progress; the API descriptions and early artifact verification on this page do not equal a same-source acceptance pass for all current source code.
|
|
16
|
+
|
|
17
|
+
## Runtime compatibility
|
|
18
|
+
|
|
19
|
+
The local `0.3.0-alpha.0` candidate requires `meowjsx@^0.2.0-alpha.0` and
|
|
20
|
+
`meowcss@^0.2.0-alpha.0`. It uses ordinary components with static `meta`, composed part/ref bindings
|
|
21
|
+
and the class-value theme API. Earlier package generations do not implement that authoring contract.
|
|
22
|
+
These are local candidate versions; the published releases remain listed in the root README.
|
|
12
23
|
|
|
13
24
|
## Minimal browser integration
|
|
14
25
|
|
|
@@ -25,7 +36,7 @@ import { applyTheme, mountStyles } from "meowcss/web";
|
|
|
25
36
|
const root = document.querySelector<HTMLElement>("#app");
|
|
26
37
|
if (!root) throw new Error("Missing app root");
|
|
27
38
|
const runtime = createRuntime();
|
|
28
|
-
const uninstall = runtime.use(createMeowUI());
|
|
39
|
+
const uninstall = runtime.use(createMeowUI({ components: [Button, Inline, Stack] }));
|
|
29
40
|
const removeStyles = mountStyles(root.ownerDocument, standardTheme.cssText);
|
|
30
41
|
const removeTheme = applyTheme(root, standardTheme, standardOptions.select({ scheme: "light" }));
|
|
31
42
|
const mounted = createWebRenderer(runtime).render(
|
|
@@ -62,7 +73,7 @@ src/
|
|
|
62
73
|
components/ # Base components such as Button, Card, Input, and Dialog; one component per file
|
|
63
74
|
chat/ # Conversation components such as ChatFrame, ChatMessage, and ChatComposer
|
|
64
75
|
icons/ # Brand marks and small icons; one icon per file
|
|
65
|
-
registry/ #
|
|
76
|
+
registry/ # Component catalog, meowjsx type declarations, and the installation entry point
|
|
66
77
|
shared/ # Small utilities shared inside components
|
|
67
78
|
theme/ # Standard theme token definitions and TS styles organized by part
|
|
68
79
|
tests/
|
|
@@ -98,12 +109,23 @@ cross-module contracts and shared use between built-ins and extensions.
|
|
|
98
109
|
The original product's wiring and UI acceptance are historical evidence and cannot replace independent verification after this library's migration.
|
|
99
110
|
|
|
100
111
|
`CodeBlock` accepts raw `code` and an optional `language`, loads Shiki highlighting on demand for known syntaxes, and provides independent copy and soft-wrap toggles.
|
|
112
|
+
Shiki is reached only from the `CodeBlock` and `ReadBlock` modules. `JsonBlock` and `AssistantView` render a code surface, so importing either one pulls the same highlighter. Importing `standardTheme`, `createMeowUI`, or any other component does not. The package declares `sideEffects: false`, which lets a bundler drop those modules when their exports are unused. The highlighter stays on demand for a mounted code surface; it is not registered as a side effect of the theme.
|
|
113
|
+
|
|
114
|
+
`MermaidDiagram` draws Mermaid `source` as themed SVG with [Pele](https://pele.run), loaded on demand when a diagram mounts (each diagram type is its own chunk), so a host that never draws one does not bundle it. Pele's variables take the library's roles: shapes on the overlay rung with the control hairline, groups on the canvas rung, connectors in tertiary ink, emphasis in the accent and charts in `chartTokens` order. Charts follow the data-visualization rules: a pie reads as a donut with surface gaps and round legend dots, bars narrow to thin marks with a rounded end, line points are ringed in the surface, and grid and axes recede; text draws at the body size, and colors follow the scheme without a redraw. A Signal `source` redraws in place. Before the client mounts it, in server or static output, and when the source cannot be drawn, the component shows the source as text, with one error line on failure. Links, images and icons inside diagrams are off, and `limits` bounds the source (50,000 characters) and the edges (2,000) because drawing is synchronous. `title`, `caption`, `actions` and `onCopy` work as on `CodeBlock`; `zoom` (`"auto"` by default, fixed for the mount) shows zoom controls when the diagram is larger than its frame.
|
|
101
115
|
Wrapping changes only the display; copying preserves the original whitespace. When the browser clipboard fails, it shows feedback. The host can bind `onCopy` to another
|
|
102
116
|
clipboard implementation, and the component does not execute code. With no language it shows "Code", and `defaultWrap` sets the initial wrap state.
|
|
103
117
|
Unknown languages or failed highlight loads keep a plain-text display.
|
|
104
118
|
|
|
105
119
|
`Checkbox`, `Switch`, and `SegmentedControl` provide native form selection; `Tabs` handles switching panels that stay mounted.
|
|
106
|
-
|
|
120
|
+
A `Checkbox` can be `indeterminate` for a parent of mixed children; assistive technology reads `aria-checked="mixed"`.
|
|
121
|
+
`Slider` is a native range with a visible figure for the same value; `NumberInput` steps and clamps a number and formats the committed figure.
|
|
122
|
+
`Progress` is a labeled native progress bar, determinate or indeterminate; `Spinner` remains the wait with no known amount. `ChatTask` reuses `Progress` for explicit host progress.
|
|
123
|
+
`Avatar` shows a picture or initials; `ChatMessage` still takes any avatar child in its identity column, because that slot already hosts icons and other artwork.
|
|
124
|
+
`Link` is a themed inline text link. It is not `ResourceLink`, which remains the whole-row reference to an openable object.
|
|
125
|
+
`Table` shows host rows in columns that the user can sort, resize, and multi-select; row order and records stay with the caller.
|
|
126
|
+
`Accordion` groups `Disclosure` sections in single- or multiple-open mode.
|
|
127
|
+
`Menu`, `MenuButton`, `ContextMenu`, `HoverCard`, `Toast`, and `RiskConfirmation` provide menus, previews, and feedback, while business actions and display lifetimes are the host's responsibility.
|
|
128
|
+
`MenuButton` is a button that opens the existing `Menu`; `ContextMenu` opens that same `Menu` from a right-click or Shift+F10, including nested items.
|
|
107
129
|
Menu's Tab / Shift+Tab closes the whole menu chain and leaves along the native order without activating menu items; Escape closes one layer at a time and returns to that layer's entry point.
|
|
108
130
|
`TerminalBlock`, `ReadBlock`, `DiffBlock`, `SearchBlock`, `WebBlock`, and `JsonBlock/JsonTree`
|
|
109
131
|
display host-provided output; components do not execute tools or read files. `ReadBlock` accepts `lang`, loads highlighting when it first enters the viewport, and keeps unknown languages as plain text.
|
|
@@ -127,16 +149,17 @@ focus into a 256px drawer over the content, and a collapsed group folds into one
|
|
|
127
149
|
`Button`'s `outline` is the secondary level, plus `accent` (a soft background related to current activity) and `stop` (to interrupt running work).
|
|
128
150
|
Details and page structures added in the second stage: `DetailSection` (a block with a hairline; its title is a small label rather than a page title), `Timeline` and
|
|
129
151
|
`TimelineItem` (events threaded on one line, with markers following `StatusDot` semantics), `ResourceLink` (a whole-row reference to an openable object:
|
|
130
|
-
a link when href is present, otherwise a button); `PageHeader` (page name, one-sentence purpose, and page-level actions), `ListGroup` and `ListRow` (sibling entries share one
|
|
152
|
+
a link when href is present, otherwise a button); `PageHeader` (page name, one-sentence purpose, an optional `leading` mark before the title, and page-level actions; `Page` forwards `leading` into that header), `ListGroup` and `ListRow` (sibling entries share one
|
|
131
153
|
outline, an editing area can expand below a row, and a standalone row with `tone="accent"` is a summary row), `ResourceCard` (a capability on an overview page, with a dashed
|
|
132
154
|
low-contrast disabled state); `Drawer` is a narrow-screen native modal panel that slides in from the start edge, with backdrop clicks and Escape handed to the host to update `open`. `SegmentedControl`
|
|
133
155
|
tightens its track and selected state to match the design draft. The narrow-screen `ChatComposer` stacked layout puts "add, input, send" on one row and keeps model selection below.
|
|
134
|
-
|
|
135
|
-
(0.5px hairlines), and `layerTokens`; accent expresses only "happening now" and "where you are", while primary stays black and white.
|
|
156
|
+
Every color, size, radius, shadow and duration is a role in one tree, `uiTokens` in `theme/tokens.ts` (surface, inverse, line, ink, state, action, control, accent, status, type, space, icon, radius, shadow, motion, layout, glyph; CSS names `--ui-<group>-<key>`). Accent expresses only "happening now" and "where you are", while the main action stays black and white. The rules for each group are in [AGENTS.md](AGENTS.md#design-system).
|
|
136
157
|
|
|
137
158
|
`ChatToolCall` uses `label` for the action and `summary` for the short target still visible when collapsed; input/output are reactive lazy text,
|
|
138
159
|
and overlong results collapse through the shared `OutputBlock` and copy in full. queued/running/waiting/success/error/cancelled/unknown
|
|
139
160
|
each represent host facts, and complete stays for compatibility. onRetry/onCancel only notify the host; the component does not execute tools or update business state automatically.
|
|
161
|
+
`TaskList` is an ordered plan an agent works through: `items` is a list of `{ id, label, state, progress? }`, where `state` is the same `ChatExecutionState` ChatTask uses and `progress` is checked host progress (`{ value, max }`, shown as a percent; out-of-range values throw `RangeError`). The header shows `title` (default "Tasks"), a ring for the aggregate state and the done count (`1/5`, announced as "1 of 5 done"); native details collapses the list (`defaultOpen`, default true). Rows keep their DOM by `id`; the running row's label shimmers, done and canceled rows are struck through, and every row also states its state in text. It is a display of host facts, not an executable task or a ChatTask record.
|
|
162
|
+
`ChatReasoning` shows a model's visible reasoning: `label` names the current activity (shimmering while `active`), `doneLabel` is the folded summary the host measures (for example "Thought for 12s"), and `text` is plain streamed text whose blank lines separate paragraphs. While active it stays open and shows only the newest lines under a fading top edge, with no script measuring or scrolling; when the host clears `active` it folds into one disclosure row. It is unrelated to the composer's reasoning-effort choice (`reasoningOptions`). Neither component is in the JSON catalog or `AssistantMessagePart` yet.
|
|
140
163
|
`ChatTask` provides a title, state, public execution summary, separate executionText/replyText, optional native progress, and children/footer;
|
|
141
164
|
execution success without a received public reply is still presented accurately. It defaults to unknown; unknown progress is omitted rather than faking percentages.
|
|
142
165
|
`ChatProcess` aggregates records with native details, and tasks and tools continue to reuse Stack/Inline/Grid, sources, attachments, artifacts, and code components.
|
|
@@ -156,12 +179,13 @@ Consecutive replies pass the same avatar with `continuation`, and the theme keep
|
|
|
156
179
|
|
|
157
180
|
See [Component development conventions](AGENTS.md) for the default scale and component development order. Calibrate new components on the same screen as existing controls in Meowbook
|
|
158
181
|
first, then integrate them into applications; the theme's font sizes, control heights, and three-level spacing form one set of relationships, and each component does not get its own new sizes.
|
|
159
|
-
|
|
182
|
+
Buttons and single-line fields share one ladder: 36px by default, 28px compact, 44px large, so they line up in one row. Information blocks are tight inside; page edges, standalone blocks, and reading areas should have generous whitespace.
|
|
160
183
|
Local spacing tokens are not the ceiling for page whitespace, and not every level is uniformly compressed.
|
|
161
184
|
|
|
162
|
-
Use `uiTokens.
|
|
163
|
-
`uiTokens.
|
|
164
|
-
`uiTokens.
|
|
185
|
+
Use `uiTokens.type.body` for interface body text, `uiTokens.type.caption` for supporting descriptions, `uiTokens.type.body` for long-form and conversation body text,
|
|
186
|
+
`uiTokens.type.title` for local titles, and `uiTokens.type.pageTitle` for complete page titles; do not use the page-title scale for field labels.
|
|
187
|
+
Every title uses `uiTokens.type.sans` ([which text style where](#which-text-style-where)). The horizontal padding of ordinary controls comes from
|
|
188
|
+
`uiTokens.control.inset` (text inside field surfaces uses `uiTokens.control.fieldInset`); group, section, and panel express whitespace within a group, between areas, and at container edges respectively.
|
|
165
189
|
Relative indentation in reading paragraphs, media sizes, graph coordinates, and touch targets still follow real usage and do not adopt control scales.
|
|
166
190
|
|
|
167
191
|
`PageFrame`'s page edge uses `pageInsetBlock` / `pageInsetInline`, and narrow windows use the corresponding
|
|
@@ -200,7 +224,7 @@ Use this set of layout primitives and do not reimplement direction, alignment, a
|
|
|
200
224
|
`columnGap` default to auto (following gap) and can use the same semantic spacing independently. Layouts can use `as="header"` or
|
|
201
225
|
`as="footer"` to keep region semantics; components do not choose business breakpoints, text truncation, or wrapping strategies for the host.
|
|
202
226
|
|
|
203
|
-
`ActionRail` is one action row with named `leading`, `trailing`, and `submit` slots. The rail owns start/end anchoring and the rule that the submit action stays visible while flexible leading and trailing actions wrap; callers pass actions rather than layout classes. `MetaRow` is one page-level fact row: `items` carry an optional icon and a short label, separators are generated between facts, `progress` appends one optional progress fact (finite values clamp to 0–100; non-finite values are omitted), and `align`/`progressTone` select the two finite presentations. Neither component owns business state or actions.
|
|
227
|
+
`ActionRow` is the row for any set of actions: it stays on one line while it fits, and when it does not, the whole row stacks at once, each text action on a full-width line in DOM order and the icon actions together on one line, so a row never wraps ragged or leaves one action alone. `align` is `start` (default) or `end`. `CardFooter`, `DialogActions` and `ChatQuestion` actions follow the same rule. The fit is measured on the client; server-rendered and static output keeps a plain wrapping row. `ActionRail` is one action row with named `leading`, `trailing`, and `submit` slots. The rail owns start/end anchoring and the rule that the submit action stays visible while flexible leading and trailing actions wrap; callers pass actions rather than layout classes. `MetaRow` is one page-level fact row: `items` carry an optional icon and a short label, separators are generated between facts, `progress` appends one optional progress fact (finite values clamp to 0–100; non-finite values are omitted), and `align`/`progressTone` select the two finite presentations. Neither component owns business state or actions.
|
|
204
228
|
|
|
205
229
|
`Toolbar` is horizontal by default and allows wrapping; `orientation="vertical"` arranges it vertically. It provides one Tab stop for its own buttons and for the action set of native input-like buttons and links with href; arrow keys, Home / End move within the current set, and horizontal orientation respects RTL. Native Input, Textarea, Select, and composite controls that manage their own keyboard keep independent Tab stops and editing keys; nested Toolbars do not consume them twice. Entries that are hidden, disabled, inert, or explicitly set to `tabIndex=-1` by the author are excluded from the action set, and dynamic membership changes do not steal focus. Enter / Space still activate along native control behavior, and complex inputs are not automatically folded into an overflow menu; unmounting restores the tabindex values this component managed and preserves the caller's subsequent valid attributes.
|
|
206
230
|
|
|
@@ -234,6 +258,12 @@ height and minimum size. A Stack without a height constraint keeps natural flow,
|
|
|
234
258
|
|
|
235
259
|
Meowbook's "Layout composition · Text baseline and fixed actions" covers these compositions and long model identifiers together.
|
|
236
260
|
|
|
261
|
+
### Text and reading content
|
|
262
|
+
|
|
263
|
+
`Text` is one run of copy in a theme text role: `variant` is `body` (default), `secondary`, `caption`, or `eyebrow` (the small-caps group label used by menus, navigation groups and specimen labels), and `as` is `p` (default), `span`, or `div`. Emphasis and fine print keep their native `strong`, `em` and `small` inside it. Headings stay with `PageHeader`, `Page` and `Section`, field labels with `Field`, and code with the code components; Text has no tone, because state color belongs to `Status`, `Badge` and `Alert`, which carry non-color cues.
|
|
264
|
+
|
|
265
|
+
`Prose` holds long-form reading content: native `h2`–`h4`, paragraphs, lists, quotes, `pre`/`code`, rules, tables, links and images inside it take one reading rhythm, shared with chat message content and rendered assistant markdown. `measure="reading"` (default) caps lines at `uiTokens.layout.measure`; `measure="fill"` takes the parent's width; `as` is `div`, `article`, or `section`. Arranging controls and cards stays with Stack, Inline and Grid. Neither component joins the JSON catalog, and Meowslides keeps its own presentation typography.
|
|
266
|
+
|
|
237
267
|
`DescriptionList` / `DescriptionItem term={...}` organize related labels and values with native `dl` / `dt` / `dd`.
|
|
238
268
|
Labels in the same group take their natural width up to a cap, and values share a column start; when the local container is too narrow, each item stacks label above value
|
|
239
269
|
based on the local width, not the whole window. By default it keeps semantic font sizes and wrappable long text, and provides no surface, padding, or independent scrolling.
|
|
@@ -277,8 +307,8 @@ it supports arrow keys, Home/End, a controlled value Signal, and defaultValue. P
|
|
|
277
307
|
`Breadcrumb items` is an array of label/href, and the last item marks the current location.
|
|
278
308
|
`Tooltip` uses `trigger(bindings)` to add text descriptions to named focusable controls; it appears after a mouse delay, appears immediately on keyboard focus,
|
|
279
309
|
and closes on Escape; do not put necessary information or interactive content only in a Tooltip—use Popover for the latter.
|
|
280
|
-
`Alert tone` expresses visual state, and `role` explicitly chooses status/alert; urgency is not inferred from color.
|
|
281
|
-
`Alert layout="bar"` is the compact page-notice form: one line with a status dot, body text and a trailing action; the default `layout="block"` keeps title/body/actions for outcomes that need reading. Use `bar` in `PageFrame`'s notice slot; it is a semantic notice shape, not a device variant.
|
|
310
|
+
`Alert tone` expresses visual state, and `role` explicitly chooses status/alert; urgency is not inferred from color. `tone="neutral"` is the quiet notice: the same structure, tinted with the muted ink instead of a status color.
|
|
311
|
+
`Alert layout="bar"` is the compact page-notice form: one line with a status dot, body text and a trailing action. `marker="none"` removes that dot; the default `marker="dot"` keeps it. The default `layout="block"` keeps title/body/actions for outcomes that need reading and draws no dot. Use `bar` in `PageFrame`'s notice slot; it is a semantic notice shape, not a device variant.
|
|
282
312
|
|
|
283
313
|
`Skeleton` is an aria-hidden placeholder; the caller provides the content region's aria-busy and loading copy.
|
|
284
314
|
`SkeletonBoundary active={loading} label="Updating details"` applies skeleton presentation to already mounted content;
|
|
@@ -312,12 +342,13 @@ trigger. Error messages use the browser's native validation copy. Reset restores
|
|
|
312
342
|
The theme visually hides the native form carrier; a hidden input is not used to fake required validation. It provides no custom multiple selection or asynchronous search.
|
|
313
343
|
The parts are `root/trigger/value/indicator/list/group/option/native/validation`.
|
|
314
344
|
|
|
315
|
-
- Basics: Button, AddButton, IconButton, Card, Badge,
|
|
316
|
-
SearchInput, Disclosure,
|
|
345
|
+
- Basics: Button, AddButton, IconButton, MenuButton, Card, Badge, Avatar, Input, NumberInput,
|
|
346
|
+
Textarea, Select, Field, SearchInput, Slider, Progress, Link, Disclosure, Accordion, Table,
|
|
347
|
+
Separator, NavItem, EmptyState.
|
|
317
348
|
- Dialogs: Dialog, DialogPanel, DialogHeader, DialogActions.
|
|
318
349
|
- Chat: ChatFrame, ChatHeader, ChatStatus, ChatConversation, ChatMessageList, ChatMessage, ChatBubble,
|
|
319
350
|
ChatMessageActions, ChatComposer, ChatToolCall, ChatAttachments, ChatProcess, ChatSources.
|
|
320
|
-
- Icons: the finite semantic set `Icon` and `iconNames` sourced from the pinned Lucide dependency, caller-supplied `IconSource` and `IconNode`, and the `meowtail/icons/lucide` pass-through for application icons, plus MeowlandMark, DoodleCat, NotesIcon, TasksIcon, SearchIcon, PlusIcon, GithubIcon, ExternalArrowIcon.
|
|
351
|
+
- Icons: the finite semantic set `Icon` and `iconNames` sourced from the pinned Lucide dependency, caller-supplied `IconSource` and `IconNode`, and the `meowtail/icons/lucide` pass-through for application icons, plus MeowlandMark, AssistantMark, DoodleCat, EmptyStack, NotesIcon, TasksIcon, SearchIcon, PlusIcon, GithubIcon, ExternalArrowIcon.
|
|
321
352
|
|
|
322
353
|
Icons outside the semantic set go through `IconSource` with structural `IconNode` data from a trusted source. The pinned pass-through at `meowtail/icons/lucide` re-exports the installed Lucide version, so an application can use any Lucide icon without adding its own icon dependency; JSON surfaces keep only the finite `iconNames` set:
|
|
323
354
|
|
|
@@ -331,9 +362,16 @@ import { Bell } from "meowtail/icons/lucide";
|
|
|
331
362
|
Before adding a component, confirm it can be reused in more than two applications or scenes; page components used once by an application should not be moved
|
|
332
363
|
here just to "extract" them.
|
|
333
364
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
`aria-
|
|
365
|
+
`Field` associates its label through `htmlFor`; the caller supplies the matching control `id`.
|
|
366
|
+
For a single control child, it merges visible description and error ids from `htmlFor`, `descriptionId`, or `errorId`
|
|
367
|
+
with the child's original `aria-describedby`, including a host Signal. It manages only its own ids.
|
|
368
|
+
Multiple control children and custom compositions require the caller to pass association attributes explicitly.
|
|
369
|
+
Top-level `description` and `error` Signals keep their message parts mounted and update content, `hidden`, and
|
|
370
|
+
associations without remounting the control, preserving drafts and focus. `null`, `undefined`, `false`, and `""`
|
|
371
|
+
are empty messages; `0` is content. Field does not inspect arbitrary VNodes, Promises, or nested Signals for DOM visibility.
|
|
372
|
+
Explicit `invalid`, including `false` or a boolean Signal, takes precedence; otherwise a provided error derives the
|
|
373
|
+
live invalid state, clearing `aria-invalid` to `"false"` when the message empties. Without either input, the child's
|
|
374
|
+
original `aria-invalid` is preserved. Field supplies no validation, submission, focus management, or automatic announcement.
|
|
337
375
|
|
|
338
376
|
`Dialog` handles only the native `<dialog>` structure, label association, and panel/header/actions partitioning; opening, closing,
|
|
339
377
|
Escape, focus return, and submission results are still controlled by the application. It has no Radix-like context, portal, or focus trap;
|
|
@@ -347,16 +385,17 @@ DialogPanel distributes standard whitespace inside its direct header and body, e
|
|
|
347
385
|
|
|
348
386
|
`EmptyState size="compact"` is for a local empty list or an unselected content region, keeping the title, description, and actions while removing decorative artwork.
|
|
349
387
|
The default `size="default"` keeps the full-page empty state; loading and failure still use their existing feedback and do not become empty states.
|
|
388
|
+
`illustration` replaces the default `EmptyStack`, three receding cards painted from the surface ladder with one accent spark. `null` and `false` leave the illustration part out. Presence is fixed for the mount, and compact size still hides that part when it is present.
|
|
350
389
|
|
|
351
390
|
`ChatAttachments` accepts `items: readonly ChatAttachmentItem[]`, where each item has
|
|
352
391
|
`id`, `name`, `url`, `mediaType`, and an optional `sizeBytes`; `label` defaults to "Message attachments".
|
|
353
392
|
The caller provides URLs, and the component does not fetch data. Images are shown by default as accessible new-window links with lazy-loaded previews and become preview buttons when `onPreview` is provided;
|
|
354
393
|
file links download with the original file name and show B / KB / MB when a valid size is available.
|
|
355
394
|
The theme uses the `root/entry/image/preview/file/icon/details/name/size/previewButton/remove` parts of `chat-attachments`
|
|
356
|
-
through `
|
|
395
|
+
through `parts<typeof ChatAttachments>("chat-attachments")` descriptors.
|
|
357
396
|
Each item can provide `onRemove`, passed only when a draft needs a remove action; upload, file deletion, and URL lifecycles still belong to the host.
|
|
358
397
|
|
|
359
|
-
`ComposerPanel`
|
|
398
|
+
`ComposerPanel` composes one `ChatComposer` and an optional page-level meta row, usually a `MetaRow`. It refines the same internal writing surface rather than wrapping the whole form in a second surface. Draft, actions, submission and the external supporting hint stay in `ChatComposer`. Narrow composition stays with `ChatComposer`'s own layout and the page/footer edge; the panel has no device variant.
|
|
360
399
|
|
|
361
400
|
`ChatFrame` provides reading margins only for a direct `ChatComposer`; if a footer, Card, or other wrapper container owns that region's space,
|
|
362
401
|
the Composer inside uses its natural width within that container and is no longer narrowed or margined by an ancestor Frame.
|
|
@@ -365,9 +404,9 @@ the Composer inside uses its natural width within that container and is no longe
|
|
|
365
404
|
`onInput` is bound on the textarea and `onSubmit` on the outer form. `value` supports Signals, and
|
|
366
405
|
`submitDisabled` only prevents submission, which suits continued editing while waiting for a result; `disabled` prevents both editing and submission.
|
|
367
406
|
Request state, submitted snapshots, and the latest draft are managed by the caller. `attachments` holds materials to send, and `inputLabel` provides the input name.
|
|
368
|
-
The
|
|
369
|
-
`surface="none"` removes
|
|
370
|
-
`layout="inline"` puts short drafts and actions on the same row, and long drafts keep growing;
|
|
407
|
+
The form groups a writing `surface` and its supporting `hint`. Attachments, input and actions stay inside the surface; the hint follows outside its rounded edge and focus outline, associated with the textarea by `hintId`. Page-level metadata follows the whole composer.
|
|
408
|
+
`surface="none"` removes only the internal writing surface's chrome and padding for explicit bare embedding; it does not move the hint back inside a surface.
|
|
409
|
+
`layout="inline"` puts short drafts and actions on the same row, and long drafts keep growing; its external hint appears on focus. The default `stacked` keeps the tool row at the bottom of the writing surface. On narrow screens, attach/input/send share the writing row and model selection sits below it; the supporting hint remains outside the surface and wraps. The `hero` hint retains its visually hidden presentation.
|
|
371
410
|
`layout="hero"` uses the input height of the desktop master blank conversation. `trailing` composes selection entry points such as provider and model to the left of the send button;
|
|
372
411
|
a controlled `ChoiceSelect` can be passed, expanding grouped options upward with `placement="top"`, `align="end"`, and `matchTriggerWidth={false}`.
|
|
373
412
|
Option sources, current values, and the actual switching of runtime configuration are still the host's responsibility.
|
|
@@ -425,11 +464,12 @@ Choosing only fills in the path; it does not read files, upload files, or grant
|
|
|
425
464
|
|
|
426
465
|
`Disclosure` uses native details/summary, accepts `summary: Child` and content children, and supports
|
|
427
466
|
`open/name/onToggle` and other native attributes. `summaryClassName` and `contentClassName` are for host layout;
|
|
428
|
-
the parts are `root/summary/icon/content`.
|
|
467
|
+
the parts are `root/summary/icon/content`. `Accordion` groups several Disclosures, with `type="single"` or
|
|
468
|
+
`type="multiple"`, and still does not own business content.
|
|
429
469
|
|
|
430
470
|
## Standard theme (meowtail/theme)
|
|
431
471
|
|
|
432
|
-
The standard theme exports `standardTheme`, `standardOptions`, and typed `uiTokens`. The read-only `standardThemeTokens` and `standardThemeStyles` are theme assembly primitives that let extended themes such as MeowSlides reuse the same token/fragment objects; they do not install components or touch the DOM. Tokens and styles
|
|
472
|
+
The standard theme exports `standardTheme`, `standardOptions`, and typed `uiTokens`. The read-only `standardThemeTokens` and `standardThemeStyles` are theme assembly primitives that let extended themes such as MeowSlides reuse the same token/fragment objects; they do not install components or touch the DOM. `standardTheme.cssText` is one complete stylesheet. A second theme built by copying token objects would break that shared identity, and the theme entry lists every fragment, so unused rules are not dropped from this binding. Hosts mount the full sheet. Tokens and styles
|
|
433
473
|
are both defined in TypeScript; components match CSS through stable part markers and style options, and theme plugins no longer generate
|
|
434
474
|
visual class names. See TypeScript tokens and parameterized configuration (historical reference in the original product repository) for the complete design.
|
|
435
475
|
|
|
@@ -437,10 +477,99 @@ Style files use `<responsibility>.styles.ts`; the standard theme groups them by
|
|
|
437
477
|
See the style file organization (historical reference in the original product repository) for naming, component family boundaries, and cascade organization.
|
|
438
478
|
Existing styles have been migrated to this specification, and historical conversation overrides have been merged back into the files owned by messages and the composer.
|
|
439
479
|
|
|
480
|
+
### Design language
|
|
481
|
+
|
|
482
|
+
Compose pages from the roles below. Their current values live in the role tree in
|
|
483
|
+
[theme tokens](src/theme/tokens.ts); component styles apply them to named parts.
|
|
484
|
+
Meowbook's [`design-language` panorama](stories/language.stories.tsx) puts typography, actions,
|
|
485
|
+
navigation, fields, execution states, and conversation on one board. The
|
|
486
|
+
[`settings-workflow` scene](stories/settings-workflow.stories.tsx) shows a complete local edit,
|
|
487
|
+
validation, correction, and save sequence. These are composition references, not backend integrations.
|
|
488
|
+
|
|
489
|
+
#### Which text style where
|
|
490
|
+
|
|
491
|
+
Every piece of text is one style of the type ramp. A style binds a size to its line box, weight and
|
|
492
|
+
tracking; apply it with `ui.text[role]` from `meowtail/theme`, or with the matching
|
|
493
|
+
`uiTokens.type` size, `type.line.*` and `type.weight.*` tokens where a part sets them one by one.
|
|
494
|
+
All text uses `uiTokens.type.sans`; code uses `uiTokens.type.mono`. The standard audit rules reject
|
|
495
|
+
literal font sizes, line heights and weights, including inside the `font` shorthand.
|
|
496
|
+
|
|
497
|
+
| Style | Size / line / weight | Use |
|
|
498
|
+
| ----------- | ------------------------- | ----------------------------------------------------------------------------- |
|
|
499
|
+
| `eyebrow` | 11 / 16 / 500, small caps | The one group label: menu headings, navigation groups, specimen labels |
|
|
500
|
+
| `caption` | 12 / 18 / 400 | Fine print: descriptions under a name, timestamps, receipts, counts |
|
|
501
|
+
| code | 12 / 18, mono | Code, terminal output and JSON (`type.code`, `type.line.code`) |
|
|
502
|
+
| `label` | 13 / 20 / 500 | A name in a compact surface: field labels, row titles, tooltips |
|
|
503
|
+
| `body` | 14 / 22 / 400 | Interface copy and controls; dense rows (menus, options) use a 20px line |
|
|
504
|
+
| `reading` | 14 / 24 / 400 | Long-form copy: Prose, chat messages, notes |
|
|
505
|
+
| `title` | 16 / 24 / 600 | A container's name: card, dialog, panel, section |
|
|
506
|
+
| `heading` | 20 / 28 / 600 | A heading inside reading content |
|
|
507
|
+
| `pageTitle` | 24 / 32 / 600 | The title of a page |
|
|
508
|
+
| hero | 40 / 48 / 600 | Marketing-level titles such as a docs home page; no library component uses it |
|
|
509
|
+
|
|
510
|
+
Weights mean one thing each: 400 reads, 500 names a control or a label, 600 titles a container.
|
|
511
|
+
Titles at `title` and above close up by `type.trackingTight`. Heading levels still follow document
|
|
512
|
+
structure: a nested `Section` title (h3 and below) is a semibold body-size subheading, and Prose
|
|
513
|
+
headings step down the ramp (`heading`, `title`, then semibold body; one step smaller inside a
|
|
514
|
+
conversation).
|
|
515
|
+
|
|
516
|
+
The main action uses `Button`'s default `primary` variant: a near-black fill in light mode and a near-white fill in
|
|
517
|
+
dark mode, paired with `onPrimary`. Use `outline` for a secondary action and `quiet` for dismissal
|
|
518
|
+
or a less prominent action. Accent marks current activity and location: processing, active navigation,
|
|
519
|
+
and soft selected surfaces. An accent action belongs to that activity rather than replacing the main
|
|
520
|
+
action everywhere. Use `stop` to interrupt running work and `danger` for a destructive action; the
|
|
521
|
+
latter has its own filled-action foreground/background pair.
|
|
522
|
+
|
|
523
|
+
Status includes visible words. `Status` pairs a decorative marker with the caller's label; the host
|
|
524
|
+
decides which state its evidence supports.
|
|
525
|
+
|
|
526
|
+
| State | Marker | Meaning |
|
|
527
|
+
| -------------------- | ------------------ | ----------------------------------------------------------------- |
|
|
528
|
+
| `processing` | Pulsing accent | Work is happening now |
|
|
529
|
+
| `success` | Solid green | Connected, enabled, or confirmed complete, as stated by the label |
|
|
530
|
+
| `returned` | Hollow green | Execution returned; goal completion still needs checking |
|
|
531
|
+
| `warning` / `danger` | Solid orange / red | Needs attention / failed or unreadable |
|
|
532
|
+
| `unknown` | Hollow gray | Current state has not been verified |
|
|
533
|
+
| `idle` | Quiet solid gray | Known to be standing by |
|
|
534
|
+
|
|
535
|
+
Choose space by relationship and region. `Stack`, `Inline`, and `Grid` map compact/normal/relaxed
|
|
536
|
+
gaps to group/section/panel tokens: 8/20/24px. A `Field` uses the 8px group gap between its label,
|
|
537
|
+
description, control, and error; `FieldGroup` uses 20px between fields. Separate setting groups with
|
|
538
|
+
a relaxed Stack, as in the workflow scene. Page edges have their own scale: `Container width="page"`
|
|
539
|
+
uses 36px block and 48px inline insets, changing to 20px and 16px at widths up to 768px. Do not add
|
|
540
|
+
that inset again inside a shell that already provides it. A narrow Container limits width to 480px
|
|
541
|
+
without supplying page gutters.
|
|
542
|
+
|
|
543
|
+
Density follows the activity. Navigation and metadata can stay compact; form groups need clear
|
|
544
|
+
boundaries; conversation uses a maximum reading width of 720px and 28px between messages. Use the existing
|
|
545
|
+
layout and content roles to make these differences. The standard theme has no global density axis.
|
|
546
|
+
|
|
547
|
+
For settings that are being read, `DescriptionList` aligns terms and values and stacks them when its
|
|
548
|
+
local container narrows. For continuous editing, compose `FieldGroup`, `Field`, native controls,
|
|
549
|
+
and one explicit save action. In the workflow scene, edits remain in a local draft; an invalid submit
|
|
550
|
+
keeps the draft, focuses the email field, and shows a correction beside it. A valid correction clears
|
|
551
|
+
the error, and a successful local save updates feedback beside the action. The host owns validation,
|
|
552
|
+
focus, announcements, and persistence. `Field` binds live description/error Signals without remounting
|
|
553
|
+
the control; its full association and invalid-state contract is [above](#current-components).
|
|
554
|
+
|
|
555
|
+
Light and dark are explicit schemes; `auto` follows the system preference and is the default.
|
|
556
|
+
Change root configuration to switch scheme while retaining mounted controls, drafts, and expanded
|
|
557
|
+
content. Shared role names, spacing, and hierarchy stay the same across schemes; use the theme's
|
|
558
|
+
foreground/background pairs rather than copying a light-mode color into a dark surface. See
|
|
559
|
+
[root configuration](#root-configuration-and-local-overrides) for local scheme inheritance.
|
|
560
|
+
|
|
561
|
+
The composition work also drew on Mobbin references for [regional density in Mixpanel](https://mobbin.com/screens/68f21e8a-40d7-4ea0-8c18-c35f9163b566),
|
|
562
|
+
[grouped settings in Ghost](https://mobbin.com/screens/15e989a8-cee4-4822-acce-be522e08caf0),
|
|
563
|
+
[continuous editing in HubSpot](https://mobbin.com/screens/9808b928-3000-4bb1-b001-8f4b9f5793b8), and
|
|
564
|
+
[field-local correction in Melio](https://mobbin.com/screens/b542daad-cc71-4d22-8622-ffe080d82e31).
|
|
565
|
+
These relationships inform composition; theme values and component behavior are defined by this package.
|
|
566
|
+
|
|
440
567
|
### Component installation and style delivery
|
|
441
568
|
|
|
442
|
-
Component installation and style loading are two explicit steps. `createMeowUI()` registers
|
|
443
|
-
|
|
569
|
+
Component installation and style loading are two explicit steps. `createMeowUI({ components })` registers
|
|
570
|
+
an explicit list of component functions and the style-props adapter. `standardTheme.cssText` provides
|
|
571
|
+
the complete CSS with variable declarations, component rules and built-in utility classes. A dynamic
|
|
572
|
+
host can assemble it like this:
|
|
444
573
|
|
|
445
574
|
```tsx
|
|
446
575
|
import { createRuntime, h } from "meowjsx";
|
|
@@ -449,7 +578,7 @@ import { Button, createMeowUI } from "meowtail";
|
|
|
449
578
|
import { standardTheme, standardOptions } from "meowtail/theme";
|
|
450
579
|
import { applyTheme, mountStyles } from "meowcss/web";
|
|
451
580
|
|
|
452
|
-
const runtime = createRuntime({ plugins: [createMeowUI()] });
|
|
581
|
+
const runtime = createRuntime({ plugins: [createMeowUI({ components: [Button] })] });
|
|
453
582
|
const web = createWebRenderer(runtime);
|
|
454
583
|
const removeStyles = mountStyles(container.ownerDocument, standardTheme.cssText);
|
|
455
584
|
const removeTheme = applyTheme(
|
|
@@ -465,9 +594,13 @@ removeTheme();
|
|
|
465
594
|
removeStyles();
|
|
466
595
|
```
|
|
467
596
|
|
|
468
|
-
When using defaultRuntime, call `installMeowUI(defaultRuntime)` and use the
|
|
469
|
-
|
|
470
|
-
|
|
597
|
+
When using defaultRuntime, call `installMeowUI({ components: [Button] }, defaultRuntime)` and use the
|
|
598
|
+
same runtime for the initial render and dynamic controls. Hosts that need the complete catalog import
|
|
599
|
+
`meowUIComponents` and pass it explicitly; selective registration does not import that catalog into the
|
|
600
|
+
factory. Register the component families rendered by the host and its compositions on that runtime.
|
|
601
|
+
No separate standard theme plugin needs to be installed. Valid values, defaults and carrier parts for
|
|
602
|
+
style props are declared by `meta.style: defineStyleProps(...)`; the adapter consumes the props so
|
|
603
|
+
style options such as variant are not passed through as ordinary DOM attributes.
|
|
471
604
|
`ThemedProps` provides union types and Signal inputs; components keep open native Props and therefore do not promise to reject all unknown attributes.
|
|
472
605
|
|
|
473
606
|
A static host composes `standardTheme.cssText` with application CSS at build time, writes a `.css` file loaded by HTML,
|
|
@@ -481,7 +614,7 @@ Source code maintains no `.css` files, and generated CSS is still a browser asse
|
|
|
481
614
|
|
|
482
615
|
`standardOptions` has a built-in scheme; the current standard theme defaults to `auto` and supports light/dark/auto.
|
|
483
616
|
The standard visuals use DeepSeek Harness as their baseline: system fonts, 14px body, 12px supporting text, and 16px titles; buttons
|
|
484
|
-
use 28/36/44px for small/default/large
|
|
617
|
+
and single-line fields use 28/36/44px for small/default/large. Controls, menus, and large panels use their corresponding
|
|
485
618
|
radii and materials, and applications compose pages from the same language. See [third-party notices](THIRD_PARTY_NOTICES.md) for reference sources and licenses,
|
|
486
619
|
and the migration record (historical reference in the original product repository) for the implementation scope and verification not yet finished.
|
|
487
620
|
|
|
@@ -502,18 +635,35 @@ inheritance, and component instances and drafts do not need rebuilding. Existing
|
|
|
502
635
|
|
|
503
636
|
### Styles and component options
|
|
504
637
|
|
|
638
|
+
Built-in theme values work directly on instances and also expand into declarations inside `css`:
|
|
639
|
+
|
|
640
|
+
```tsx
|
|
641
|
+
import { cx } from "meowcss";
|
|
642
|
+
import { ui } from "meowtail/theme";
|
|
643
|
+
|
|
644
|
+
<div className={[ui.p.panel, ui.bg.raised, ui.radius.xl]} />;
|
|
645
|
+
<Card className={cx(ui.p.group, ui.bg.fill)}>Content</Card>;
|
|
646
|
+
```
|
|
647
|
+
|
|
648
|
+
`cx` joins classes and preserves their declarations for reuse in theme rules. It ignores false and
|
|
649
|
+
nullish inputs; nested lists and Signals also work directly in `className`. Class order does not
|
|
650
|
+
resolve conflicts: the stylesheet and ordinary CSS cascade decide. Hover, focus and responsive
|
|
651
|
+
rules remain CSS. The built-in `ui` catalog is theme data, and another theme can supply its own.
|
|
652
|
+
|
|
505
653
|
Ordinary CSS keeps the template form; tokens and parts are referenced in TypeScript to avoid hand-writing generated names:
|
|
506
654
|
|
|
507
655
|
```ts
|
|
508
|
-
import {
|
|
509
|
-
import {
|
|
656
|
+
import type { Button } from "meowtail";
|
|
657
|
+
import { buttonOptions } from "meowtail";
|
|
658
|
+
import { css, parts } from "meowcss/meowjsx";
|
|
510
659
|
import { uiTokens } from "meowtail/theme";
|
|
511
660
|
|
|
661
|
+
const button = parts<typeof Button>("button");
|
|
512
662
|
const applicationStyles = css`
|
|
513
|
-
.toolbar ${
|
|
514
|
-
border-radius: ${uiTokens.
|
|
663
|
+
.toolbar ${button.root} {
|
|
664
|
+
border-radius: ${uiTokens.radius.lg};
|
|
515
665
|
${buttonOptions.when({ variant: "quiet" })} {
|
|
516
|
-
color: ${uiTokens.info};
|
|
666
|
+
color: ${uiTokens.status.info};
|
|
517
667
|
}
|
|
518
668
|
}
|
|
519
669
|
`;
|
|
@@ -523,9 +673,11 @@ The host explicitly composes CSS in the order of standard theme, application bas
|
|
|
523
673
|
continue to be handled by CSS; native states match on native attributes, and component style options use `when`. `className` and
|
|
524
674
|
`style` remain application extension entry points, and business layout does not enter the standard theme.
|
|
525
675
|
|
|
526
|
-
Custom tokens use `defineTokens`, and `defineTheme` composes options, complete defaults, token
|
|
527
|
-
|
|
528
|
-
|
|
676
|
+
Custom tokens use `defineTokens`, and `defineTheme` composes options, complete defaults, token sets
|
|
677
|
+
and CSS fragments in one call. Typed descriptors address parts without loading their implementation.
|
|
678
|
+
The JSX adapter binds conditional component tokens by option attribute; root and scheme configuration
|
|
679
|
+
remain regional. Measurement variables without defaults use `tokenRef`, whose `.name` is passed to
|
|
680
|
+
`setProperty`.
|
|
529
681
|
See [MeowCSS](../meowcss/README.md) for pure generation and typed adapter usage and scope boundaries.
|
|
530
682
|
|
|
531
683
|
After building and installing the local package, run `bunx --no-install meowbook serve --config packages/meowtail/meowbook.config.ts` from the repository root to
|
|
@@ -572,7 +724,7 @@ renderToHtml + innerHTML instead of browser mounting that needs a lifecycle.
|
|
|
572
724
|
### Files and verification
|
|
573
725
|
|
|
574
726
|
- `meowcss`: shared token/option/CSS generation; `meowcss/meowjsx` handles typed parts and automatic carriers; `meowcss/web` handles the DOM theme lifecycle. See [MeowCSS](../meowcss/README.md).
|
|
575
|
-
- `src/theme/tokens.ts
|
|
727
|
+
- `src/theme/tokens.ts`: the design system's role tree (`uiTokens`) and the chat, alert and logo sets.
|
|
576
728
|
- `src/theme/base.styles.ts` and the `*.styles.ts` files under `components/chat/icons/shared`: CSS templates written by responsibility;
|
|
577
729
|
highlight-specific tokens live in `shared/code-highlight.tokens.ts`.
|
|
578
730
|
- `src/theme/index.ts`: explicit assembly and public exports of the standard theme.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -33,3 +33,50 @@ is provided by Lucide (https://lucide.dev), version 1.59.0, under the ISC
|
|
|
33
33
|
license; icons derived from the Feather project are under the MIT license. The
|
|
34
34
|
full license text, including the Feather attribution list, ships in
|
|
35
35
|
`dist/src/icons/LUCIDE-LICENSE` and in the installed `lucide` package.
|
|
36
|
+
|
|
37
|
+
# Pele
|
|
38
|
+
|
|
39
|
+
`MermaidDiagram` renders Mermaid diagrams with Pele (https://pele.run), version
|
|
40
|
+
1.9.0, an npm dependency loaded only when a diagram mounts. Its own notice ships
|
|
41
|
+
in the installed `pele` package.
|
|
42
|
+
|
|
43
|
+
MIT License
|
|
44
|
+
|
|
45
|
+
Copyright (c) 2026 kepano
|
|
46
|
+
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
48
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
49
|
+
in the Software without restriction, including without limitation the rights
|
|
50
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
51
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
52
|
+
furnished to do so, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
The above copyright notice and this permission notice shall be included in all
|
|
55
|
+
copies or substantial portions of the Software.
|
|
56
|
+
|
|
57
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
58
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
59
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
60
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
61
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
62
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
63
|
+
SOFTWARE.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
The reset icon of the zoom controls is "rotate-ccw" from Lucide v1.14.0
|
|
68
|
+
(https://lucide.dev), under the ISC License:
|
|
69
|
+
|
|
70
|
+
Copyright (c) 2026 Lucide Icons and Contributors
|
|
71
|
+
|
|
72
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
73
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
74
|
+
copyright notice and this permission notice appear in all copies.
|
|
75
|
+
|
|
76
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
77
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
78
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
79
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
80
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
81
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
82
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { type Child, type Context } from "meowjsx";
|
|
1
2
|
import { type AssistantViewProps } from "./assistant-types.js";
|
|
2
|
-
export declare
|
|
3
|
-
readonly name: "assistant-composer";
|
|
4
|
-
readonly parts: readonly ["root", "choices", "feedback", "file"];
|
|
5
|
-
};
|
|
6
|
-
export declare const AssistantComposer: import("meowjsx").Component<{
|
|
3
|
+
export declare function AssistantComposer({ options, trailing }: {
|
|
7
4
|
options: AssistantViewProps;
|
|
8
|
-
|
|
5
|
+
trailing?: Child;
|
|
6
|
+
}, context: Context<typeof AssistantComposer>): import("meowjsx").VNode;
|
|
7
|
+
export declare namespace AssistantComposer {
|
|
8
|
+
var meta: {
|
|
9
|
+
readonly name: "assistant-composer";
|
|
10
|
+
readonly parts: readonly ["root", "choices", "feedback", "file"];
|
|
11
|
+
};
|
|
12
|
+
}
|