meowtail 0.4.0-alpha.0 → 0.4.0-alpha.2
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/ASSISTANT.md +2 -2
- package/AUTHORING.md +268 -0
- package/CHANGELOG.md +116 -0
- package/COMPONENTS.md +182 -140
- package/README.md +145 -34
- package/dist/src/chat/assistant-content.js +3 -1
- package/dist/src/chat/assistant-markdown.d.ts +8 -5
- package/dist/src/chat/assistant-markdown.js +11 -26
- package/dist/src/components/autocomplete.d.ts +47 -0
- package/dist/src/components/autocomplete.js +169 -0
- package/dist/src/components/card-title.d.ts +1 -0
- package/dist/src/components/card-title.js +2 -1
- package/dist/src/components/chart-scale.d.ts +46 -0
- package/dist/src/components/chart-scale.js +118 -0
- package/dist/src/components/chart.d.ts +38 -0
- package/dist/src/components/chart.js +210 -0
- package/dist/src/components/choice-group.js +2 -2
- package/dist/src/components/choice-select.js +2 -2
- package/dist/src/components/code-block.d.ts +3 -1
- package/dist/src/components/code-block.js +75 -16
- package/dist/src/components/command-palette.d.ts +44 -0
- package/dist/src/components/command-palette.js +198 -0
- package/dist/src/components/context-menu.d.ts +2 -1
- package/dist/src/components/context-menu.js +2 -1
- package/dist/src/components/credential-source.d.ts +2 -1
- package/dist/src/components/credential-source.js +2 -1
- package/dist/src/components/detail-section.d.ts +2 -1
- package/dist/src/components/detail-section.js +8 -3
- package/dist/src/components/dialog.d.ts +4 -1
- package/dist/src/components/dialog.js +7 -2
- package/dist/src/components/entry.d.ts +45 -0
- package/dist/src/components/entry.js +38 -0
- package/dist/src/components/entry.options.d.ts +4 -0
- package/dist/src/components/entry.options.js +3 -0
- package/dist/src/components/field-group.js +2 -2
- package/dist/src/components/field.d.ts +4 -0
- package/dist/src/components/field.js +15 -3
- package/dist/src/components/form.d.ts +34 -0
- package/dist/src/components/form.js +58 -0
- package/dist/src/components/heading-level.d.ts +9 -0
- package/dist/src/components/heading-level.js +12 -0
- package/dist/src/components/hover-card.d.ts +3 -2
- package/dist/src/components/hover-card.js +50 -15
- package/dist/src/components/index.d.ts +11 -1
- package/dist/src/components/index.js +11 -1
- package/dist/src/components/markdown-blocks.d.ts +27 -0
- package/dist/src/components/markdown-blocks.js +141 -0
- package/dist/src/components/markdown.d.ts +35 -0
- package/dist/src/components/markdown.js +35 -0
- package/dist/src/components/menu-button.d.ts +2 -1
- package/dist/src/components/menu.d.ts +2 -1
- package/dist/src/components/menu.js +2 -1
- package/dist/src/components/modal.js +2 -2
- package/dist/src/components/page.js +1 -1
- package/dist/src/components/pagination.d.ts +52 -0
- package/dist/src/components/pagination.js +89 -0
- package/dist/src/components/path-label.js +5 -27
- package/dist/src/components/popover.d.ts +2 -1
- package/dist/src/components/popover.js +33 -6
- package/dist/src/components/resource-card.d.ts +4 -1
- package/dist/src/components/resource-card.js +7 -2
- package/dist/src/components/risk-confirmation.d.ts +2 -1
- package/dist/src/components/risk-confirmation.js +2 -1
- package/dist/src/components/section.d.ts +1 -7
- package/dist/src/components/section.js +3 -8
- package/dist/src/components/segmented-control.d.ts +2 -1
- package/dist/src/components/segmented-control.js +2 -1
- package/dist/src/components/tabs.d.ts +2 -1
- package/dist/src/components/tabs.js +2 -1
- package/dist/src/components/token-field.d.ts +45 -0
- package/dist/src/components/token-field.js +175 -0
- package/dist/src/components/tooltip.d.ts +2 -1
- package/dist/src/components/tooltip.js +2 -1
- package/dist/src/components/tree-view.d.ts +39 -0
- package/dist/src/components/tree-view.js +244 -0
- package/dist/src/components/tree-view.options.d.ts +2 -0
- package/dist/src/components/tree-view.options.js +3 -0
- package/dist/src/icons/README.md +11 -10
- package/dist/src/icons/icon.d.ts +1 -0
- package/dist/src/icons/icon.js +2 -1
- package/dist/src/icons/index.d.ts +0 -1
- package/dist/src/icons/index.js +0 -1
- package/dist/src/registry/index.d.ts +41 -1
- package/dist/src/registry/index.js +20 -0
- package/dist/src/shared/element-id.d.ts +6 -0
- package/dist/src/shared/element-id.js +10 -0
- package/dist/src/shared/page-attribute.d.ts +5 -0
- package/dist/src/shared/page-attribute.js +5 -0
- package/dist/src/theme/base.styles.d.ts +2 -0
- package/dist/src/theme/base.styles.js +41 -4
- package/dist/src/theme/chat/assistant.styles.js +21 -1
- package/dist/src/theme/chat/attachments.styles.js +35 -6
- package/dist/src/theme/chat/composer.styles.js +30 -3
- package/dist/src/theme/chat/conversation.styles.js +13 -1
- package/dist/src/theme/chat/records.styles.js +10 -5
- package/dist/src/theme/components/autocomplete.styles.d.ts +1 -0
- package/dist/src/theme/components/autocomplete.styles.js +68 -0
- package/dist/src/theme/components/button.styles.js +0 -1
- package/dist/src/theme/components/card.styles.js +2 -1
- package/dist/src/theme/components/chart.styles.d.ts +1 -0
- package/dist/src/theme/components/chart.styles.js +173 -0
- package/dist/src/theme/components/code-block.styles.js +79 -38
- package/dist/src/theme/components/command-palette.styles.d.ts +1 -0
- package/dist/src/theme/components/command-palette.styles.js +143 -0
- package/dist/src/theme/components/dialog.styles.js +2 -1
- package/dist/src/theme/components/empty-state.styles.js +2 -1
- package/dist/src/theme/components/entry.styles.d.ts +1 -0
- package/dist/src/theme/components/entry.styles.js +86 -0
- package/dist/src/theme/components/form.styles.d.ts +1 -0
- package/dist/src/theme/components/form.styles.js +32 -0
- package/dist/src/theme/components/hover-card.styles.js +57 -12
- package/dist/src/theme/components/image-preview.styles.js +25 -0
- package/dist/src/theme/components/layout.styles.js +6 -0
- package/dist/src/theme/components/markdown.styles.d.ts +1 -0
- package/dist/src/theme/components/markdown.styles.js +10 -0
- package/dist/src/theme/components/nav-list.styles.js +6 -7
- package/dist/src/theme/components/pagination.styles.d.ts +1 -0
- package/dist/src/theme/components/pagination.styles.js +103 -0
- package/dist/src/theme/components/path-label.styles.js +19 -6
- package/dist/src/theme/components/resource-card.styles.js +2 -1
- package/dist/src/theme/components/search-input.styles.js +23 -0
- package/dist/src/theme/components/slider.styles.js +4 -0
- package/dist/src/theme/components/token-field.styles.d.ts +1 -0
- package/dist/src/theme/components/token-field.styles.js +109 -0
- package/dist/src/theme/components/tree-view.styles.d.ts +1 -0
- package/dist/src/theme/components/tree-view.styles.js +104 -0
- package/dist/src/theme/icons/icons.styles.js +0 -18
- package/dist/src/theme/index.d.ts +446 -9
- package/dist/src/theme/index.js +58 -1
- package/dist/src/theme/journal.tokens.d.ts +389 -0
- package/dist/src/theme/journal.tokens.js +181 -0
- package/dist/src/theme/meow.tokens.d.ts +362 -0
- package/dist/src/theme/meow.tokens.js +91 -0
- package/dist/src/theme/shared/field-surface.styles.js +11 -7
- package/dist/src/theme/shared/prose.styles.js +12 -4
- package/dist/src/theme/tokens.d.ts +286 -7
- package/dist/src/theme/tokens.js +15 -2
- package/dist/src/theme/utilities.js +4 -4
- package/dist/src/web/focus-modality.d.ts +20 -0
- package/dist/src/web/focus-modality.js +72 -0
- package/dist/src/web/index.d.ts +2 -0
- package/dist/src/web/index.js +2 -0
- package/dist/src/web/theme-plugin.d.ts +33 -0
- package/dist/src/web/theme-plugin.js +93 -0
- package/package.json +14 -6
- package/dist/src/icons/doodle-cat.d.ts +0 -5
- package/dist/src/icons/doodle-cat.js +0 -8
package/COMPONENTS.md
CHANGED
|
@@ -12,11 +12,18 @@ justify a target before a consumer has been implemented. A name in another toolk
|
|
|
12
12
|
|
|
13
13
|
## Reading the catalog
|
|
14
14
|
|
|
15
|
-
The current list covers all
|
|
16
|
-
`src/chat/index.ts`, checked on 2026-10-
|
|
15
|
+
The current list covers all 109 component values in `src/components/index.ts` and all 22 in
|
|
16
|
+
`src/chat/index.ts`, checked on 2026-10-28. Each value belongs to one family below. Related public
|
|
17
17
|
parts stay beside their composition; each member's role is stated. CSS contract parts, types,
|
|
18
18
|
helpers, icon assets, and runtime installation APIs do not count as additional components.
|
|
19
19
|
|
|
20
|
+
Each family row names the family by its task term, then splits its members into two columns.
|
|
21
|
+
**Components** are the members a reader chooses directly. **Parts** are the members that only work
|
|
22
|
+
inside the family's components, such as `CardHeader` inside `Card`; a dash means the family has
|
|
23
|
+
none. The split is stated here, not inferred from names: `MenuButton` and `FieldGroup` share a
|
|
24
|
+
prefix with `Menu` and `Field` but are components in their own right. The documentation site reads
|
|
25
|
+
these tables for its navigation, so a row keeps this shape.
|
|
26
|
+
|
|
20
27
|
Current means exported by the source. Release and acceptance status remain in the
|
|
21
28
|
[package README](README.md), [root README](../../README.md), and their linked receipts. Importability
|
|
22
29
|
does not establish that every scenario has passed acceptance or that the npm release contains it.
|
|
@@ -34,7 +41,7 @@ developers and Agents recognize a component without learning a separate vocabula
|
|
|
34
41
|
specific name when a familiar alternative would imply different behavior. Existing names such as
|
|
35
42
|
Button, Checkbox, Tabs, Popover, Toolbar, and SegmentedControl already serve that purpose.
|
|
36
43
|
|
|
37
|
-
The family labels below use familiar task terms for searching; the code names
|
|
44
|
+
The family labels below use familiar task terms for searching; the code names after them are the
|
|
38
45
|
actual exports. For example, search for a radio group and import the current `ChoiceGroup`.
|
|
39
46
|
Proposed replacements belong in the naming review below until an API change is implemented.
|
|
40
47
|
|
|
@@ -61,136 +68,183 @@ theme, documentation, stories, tests, and consumers together. This table supplie
|
|
|
61
68
|
component catalog nor an alias policy. Current family membership and capability decisions remain
|
|
62
69
|
in the sections below.
|
|
63
70
|
|
|
71
|
+
## Component layers
|
|
72
|
+
|
|
73
|
+
The families below group components by task. Independently, every component sits in one layer,
|
|
74
|
+
which states what it owns and what it may build on. Layers describe responsibility, not support:
|
|
75
|
+
each layer is equally public. A component builds only on components in its own or a lower layer;
|
|
76
|
+
today's source imports hold to that.
|
|
77
|
+
|
|
78
|
+
| Layer | Owns | Members |
|
|
79
|
+
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
80
|
+
| L0 Elements | The modern HTML layer: native semantics, platform behavior, accessible wiring and named parts for one element-level job. | Layout: `Stack`, `Inline`, `Grid`, `LayoutItem`, `Container`, `PageFrame`, `AspectRatio`, `Separator`, `Section`, `DetailSection`. Text: `Text`, `Prose`, `Link`, `ShortcutKeys`, `PathLabel`. Actions: `Button`, `IconButton`, `AddButton`. Forms: `Field`, `FieldGroup`, `Input`, `Textarea`, `NumberInput`, `Checkbox`, `Switch`, `Slider`, `Select`, `ChoiceGroup`, `SegmentedControl`. Layers: `Dialog` and its parts, `Popover`, `Tooltip`, `Disclosure`. Surfaces: `Card` and its parts. Marks: `Progress`, `Spinner`, `Skeleton`, `StatusDot`, `StateDot`, `Badge`, `Tag`, `Pill`, `Avatar`. |
|
|
81
|
+
| L1 Patterns | A reusable interaction or record pattern composed from elements, with the pattern's own behavior (keyboard model, selection, fit, sorting). | `Tabs`, `Accordion`, `Toolbar`, `ActionRow`, `ActionRail`, `Menu`, `MenuButton`, `ContextMenu`, `HoverCard`, `Modal`, `Drawer`, `RiskConfirmation`, `ChoiceSelect`, `Autocomplete`, `TokenField`, `Form`, `CommandPalette`, `TreeView`, `SearchInput`, `NavList`, `NavItem`, `Breadcrumb`, `Pagination`, `ListGroup`, `ListRow`, `Item`, `DescriptionList`, `DescriptionItem`, `Timeline`, `TimelineItem`, `EntryList`, `Entry`, `Table`, `ResourceCard`, `ResourceLink`, `MetaRow`, `Alert`, `EmptyState`, `Status`, `Toast`, `TextShimmer`, `SkeletonBoundary`, `ImagePreview`, `ImageLightbox`. |
|
|
82
|
+
| L2 Compositions | A page or workspace skeleton, or a domain content block with its own data shape. | `Page`, `PageHeader`, `AppBar`, `WindowTitleBar`, `IconRail`, `RailSection`, `RailItem`; `CodeBlock`, `Markdown`, `MermaidDiagram`, `TerminalBlock`, `ReadBlock`, `DiffBlock`, `SearchBlock`, `WebBlock`, `JsonBlock`, `JsonTree`, `Chart`, `PathPicker`, `CredentialSource`; `WorkCard`, `ProcessGroup`, `ProcessStep`, `TaskList`; every `meowtail/chat` export, including `AssistantView`. |
|
|
83
|
+
|
|
84
|
+
### Element contract
|
|
85
|
+
|
|
86
|
+
An L0 element is what HTML would offer if it were designed for application interfaces today. It
|
|
87
|
+
keeps these rules, and patterns and compositions inherit them by building on it:
|
|
88
|
+
|
|
89
|
+
- **Native first.** Build on the element or platform API that already carries the semantics
|
|
90
|
+
(`button`, `input`, `fieldset`, `dialog`, `details`, `popover`). Add only what the platform lacks,
|
|
91
|
+
such as a keyboard model or anchored positioning; do not reimplement what it provides.
|
|
92
|
+
- **Wiring is derived.** Ids, label, description and error associations, and heading levels come
|
|
93
|
+
from the component tree. `id`, `htmlFor` and `as` exist to override, never because the caller
|
|
94
|
+
must supply them.
|
|
95
|
+
- **Finite semantic options.** Props choose among named roles (`gap`, `tone`, `size`), not free
|
|
96
|
+
CSS values, so the same choice reads the same in every theme.
|
|
97
|
+
- **Parts, not looks.** The component names its parts and options in `meta`; the theme paints them.
|
|
98
|
+
It looks finished without a `className`.
|
|
99
|
+
- **No host facts.** State, data, permissions and side effects arrive through props, children and
|
|
100
|
+
events.
|
|
101
|
+
|
|
102
|
+
When a pattern or composition needs something an element cannot express, add it to the element
|
|
103
|
+
rather than working around it one layer up. A new component states its layer in its family row
|
|
104
|
+
reason or review before it is added.
|
|
105
|
+
|
|
64
106
|
## Current component families
|
|
65
107
|
|
|
66
108
|
### Pages and layout
|
|
67
109
|
|
|
68
|
-
| Family
|
|
69
|
-
|
|
|
70
|
-
| [Content page](src/components/page.tsx)
|
|
71
|
-
| [Section](src/components/section.tsx)
|
|
72
|
-
| [Detail section](src/components/detail-section.tsx)
|
|
73
|
-
| [Page frame](src/components/page-frame.tsx)
|
|
74
|
-
| [Application bar](src/components/app-bar.tsx)
|
|
75
|
-
| [Window title bar](src/components/window-title-bar.tsx)
|
|
76
|
-
| [Container](src/components/container.tsx)
|
|
77
|
-
| [Flow layout](src/components/stack.tsx)
|
|
78
|
-
| [Grid](src/components/grid.tsx)
|
|
79
|
-
| [Aspect ratio](src/components/aspect-ratio.tsx)
|
|
80
|
-
| [Separator](src/components/separator.tsx)
|
|
110
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
111
|
+
| ------------------------------------------------------- | --------------------------------------------------------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
112
|
+
| [Content page](src/components/page.tsx) | [`Page`](src/components/page.tsx), `PageHeader` | — | Page composes a title, description, actions, notices, and content rhythm; PageHeader is the title block for custom compositions. | Gives content pages one authoring unit. Choose the header alone when the host already owns the page structure. Viewport height and scrolling belong to the frame or host. |
|
|
113
|
+
| [Section](src/components/section.tsx) | [`Section`](src/components/section.tsx) | — | A titled content region with description, actions, footer, and plain or card presentation. | Reuses section hierarchy and spacing without turning each paragraph into a separate surface. |
|
|
114
|
+
| [Detail section](src/components/detail-section.tsx) | [`DetailSection`](src/components/detail-section.tsx) | — | A compact detail block with a small label and separator. | Fits dense metadata and inspector content where a page section heading would overstate the hierarchy. |
|
|
115
|
+
| [Page frame](src/components/page-frame.tsx) | [`PageFrame`](src/components/page-frame.tsx) | — | Allocates constrained height among header, notice, body, and footer, with explicit scroll ownership. | Keeps shell chrome and input reachable in continuous workspaces. A content Page does not replace this height and scrolling responsibility. |
|
|
116
|
+
| [Application bar](src/components/app-bar.tsx) | [`AppBar`](src/components/app-bar.tsx) | — | Compact screen identity, status, and screen-wide actions. | Suits narrow continuous workspaces; a document title block has different hierarchy. |
|
|
117
|
+
| [Window title bar](src/components/window-title-bar.tsx) | [`WindowTitleBar`](src/components/window-title-bar.tsx) | — | Shared title-bar structure for a window host. | Keeps window chrome separate from content headings; native window integration stays with the host. |
|
|
118
|
+
| [Container](src/components/container.tsx) | [`Container`](src/components/container.tsx) | — | Bounds content width and its outer spacing. | Gives reading regions a shared width policy when a complete page composition is unnecessary. |
|
|
119
|
+
| [Flow layout](src/components/stack.tsx) | [`Stack`](src/components/stack.tsx), [`Inline`](src/components/inline.tsx) | — | Stack arranges related content vertically; Inline arranges a wrapping horizontal group. | Expresses local relationships through shared spacing. Use an action-specific composition when action order and anchoring matter. |
|
|
120
|
+
| [Grid](src/components/grid.tsx) | [`Grid`](src/components/grid.tsx), [`LayoutItem`](src/components/layout-item.tsx) | — | Grid arranges columns; LayoutItem expresses an item's layout participation. | Covers local spatial composition without giving a child ownership of the whole workspace. |
|
|
121
|
+
| [Aspect ratio](src/components/aspect-ratio.tsx) | [`AspectRatio`](src/components/aspect-ratio.tsx) | — | Keeps a media or preview region at a declared ratio. | Useful when the content's frame must remain stable while its contents load or change. |
|
|
122
|
+
| [Separator](src/components/separator.tsx) | [`Separator`](src/components/separator.tsx) | — | Marks a boundary between neighboring regions. | Provides a shared divider without adding a titled region or card. |
|
|
81
123
|
|
|
82
124
|
### Navigation
|
|
83
125
|
|
|
84
|
-
| Family
|
|
85
|
-
|
|
|
86
|
-
| [Navigation list](src/components/nav-list.tsx)
|
|
87
|
-
| [Breadcrumb](src/components/breadcrumb.tsx)
|
|
88
|
-
| [
|
|
89
|
-
| [
|
|
126
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
127
|
+
| ----------------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
128
|
+
| [Navigation list](src/components/nav-list.tsx) | [`NavList`](src/components/nav-list.tsx), [`NavItem`](src/components/nav-item.tsx) | — | NavList renders grouped destinations or actions; NavItem provides an individual navigation entry for custom structures. | Covers docs sidebars and catalogs with active-position semantics. Routing, filtering, and destination authorization belong to the host. |
|
|
129
|
+
| [Breadcrumb](src/components/breadcrumb.tsx) | [`Breadcrumb`](src/components/breadcrumb.tsx) | — | Shows ancestors of the current location. | Helps users move through a hierarchy without introducing a global navigation rail. |
|
|
130
|
+
| [Pagination](src/components/pagination.tsx) | [`Pagination`](src/components/pagination.tsx) | — | Moves through pages of a host-owned record set: numbered pages with gaps for a known total, Previous/Next and the page fact for an unknown one. | Lets a table or result list browse a large set with coherent labels, boundaries and busy behavior. The host owns page state, totals, fetching and errors; conversation history keeps its load-older interaction. |
|
|
131
|
+
| [Tree view](src/components/tree-view.tsx) | [`TreeView`](src/components/tree-view.tsx) | — | Explores a host hierarchy (files, nested tasks, an outline) with the tree keyboard model, expansion and single selection. | Gives nested items real tree semantics instead of nested disclosures. The host owns the hierarchy and acts on the selection; multi-selection, lazy loading and drag and drop are not included. |
|
|
132
|
+
| [Tabs](src/components/tabs.tsx) | [`Tabs`](src/components/tabs.tsx) | — | Switches among related panels while keeping them mounted. | Preserves panel state when the task changes the visible local view. Use a choice control for selecting a value. |
|
|
133
|
+
| [Navigation rail](src/components/icon-rail.tsx) | [`IconRail`](src/components/icon-rail.tsx) | [`RailSection`](src/components/rail-section.tsx), [`RailItem`](src/components/rail-item.tsx) | IconRail provides expandable application navigation; RailSection groups destinations; RailItem identifies an individual destination. | Supports compact application navigation and its expansion behavior. A site navigation list remains the simpler fit for text-heavy catalogs. |
|
|
90
134
|
|
|
91
135
|
### Actions and commands
|
|
92
136
|
|
|
93
|
-
| Family
|
|
94
|
-
|
|
|
95
|
-
| [Buttons](src/components/button.tsx)
|
|
96
|
-
| [Toolbar](src/components/toolbar.tsx)
|
|
97
|
-
| [Action row](src/components/action-row.tsx)
|
|
98
|
-
| [Action rail](src/components/action-rail.tsx)
|
|
99
|
-
| [Menus](src/components/menu.tsx)
|
|
137
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
138
|
+
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
139
|
+
| [Buttons](src/components/button.tsx) | [`Button`](src/components/button.tsx), [`IconButton`](src/components/icon-button.tsx), [`AddButton`](src/components/add-button.tsx) | — | Button expresses a named action and its priority; IconButton provides a compact labeled icon action; AddButton is the existing add-action convenience composition. | Shares action appearance and behavior. Prefer visible text when users need the action explained; retain the icon and add compositions for their established compact uses. |
|
|
140
|
+
| [Toolbar](src/components/toolbar.tsx) | [`Toolbar`](src/components/toolbar.tsx) | — | Groups actions with a named toolbar and directional keyboard navigation. | Supports repeated command access. Editing and composite controls retain their own keyboard contracts; responsive overflow is not implied. |
|
|
141
|
+
| [Action row](src/components/action-row.tsx) | [`ActionRow`](src/components/action-row.tsx) | — | Holds a row of actions that stays on one line while it fits and stacks whole when it does not: text actions on full-width lines, icon actions together. | Use it for any row of buttons in forms, cards and panels instead of an `Inline`, so wrapping never leaves ragged lines or a lone action. |
|
|
142
|
+
| [Action rail](src/components/action-rail.tsx) | [`ActionRail`](src/components/action-rail.tsx) | — | Arranges leading actions, secondary actions, and a final submit action in wrapping groups. | Keeps the final action visible and its order clear. Use it for submit and composer action rows rather than recreating that layout with arbitrary spacers. |
|
|
143
|
+
| [Menus](src/components/menu.tsx) | [`Menu`](src/components/menu.tsx), [`MenuButton`](src/components/menu-button.tsx), [`ContextMenu`](src/components/context-menu.tsx) | — | Menu renders the command hierarchy; MenuButton opens it from a visible button; ContextMenu opens it from a contextual gesture or keyboard request. | Shares submenu, dismissal, and focus behavior across entry points. The host owns action execution; search across commands is a separate target below. |
|
|
144
|
+
| [Command palette](src/components/command-palette.tsx) | [`CommandPalette`](src/components/command-palette.tsx) | — | Searches grouped host commands in a dialog, shows shortcuts, runs one and returns focus to the opener. | Makes many workspace actions reachable from one search. The host registers the opening shortcut, decides eligibility and runs the command. |
|
|
100
145
|
|
|
101
146
|
### Forms and selection
|
|
102
147
|
|
|
103
|
-
| Family
|
|
104
|
-
|
|
|
105
|
-
| [Field](src/components/field.tsx)
|
|
106
|
-
| [
|
|
107
|
-
| [
|
|
108
|
-
| [
|
|
109
|
-
| [
|
|
110
|
-
| [
|
|
111
|
-
| [
|
|
112
|
-
| [
|
|
113
|
-
| [
|
|
114
|
-
| [
|
|
148
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
149
|
+
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
150
|
+
| [Field](src/components/field.tsx) | [`Field`](src/components/field.tsx), [`FieldGroup`](src/components/field-group.tsx) | — | Field associates a label, live description/error, and control; FieldGroup is a native fieldset with legend, description, and grouped disabled state. | Supplies field semantics without prescribing a value store. FieldGroup already covers the fieldset capability; another Fieldset export needs a distinct task. |
|
|
151
|
+
| [Form](src/components/form.tsx) | [`Form`](src/components/form.tsx) | — | A native form with validation first, the host's busy state, a failure alert, a receipt and Save/Cancel actions. | Gives settings and connection forms one submit, busy and outcome behavior. Values stay in the host's controls; there is no store, schema or submission owner. |
|
|
152
|
+
| [Text input](src/components/input.tsx) | [`Input`](src/components/input.tsx), [`Textarea`](src/components/textarea.tsx) | — | Input provides native single-line editing and input types; Textarea provides multiline editing. | Keeps native editing and form behavior. Specialized controls are justified by additional interaction, not by another name for a text box. |
|
|
153
|
+
| [Search input](src/components/search-input.tsx) | [`SearchInput`](src/components/search-input.tsx) | — | Edits a search query with shared search presentation. | Fits filtering and lookup entry. It does not select or validate a result by itself. |
|
|
154
|
+
| [Number input](src/components/number-input.tsx) | [`NumberInput`](src/components/number-input.tsx) | — | Edits, steps, clamps, and formats a numeric value. | Adds numeric interaction beyond a plain text field. Use a slider when position on a bounded scale is the task. |
|
|
155
|
+
| [Boolean choices](src/components/checkbox.tsx) | [`Checkbox`](src/components/checkbox.tsx), [`Switch`](src/components/switch.tsx) | — | Checkbox selects a boolean item and supports a mixed parent state; Switch represents an on/off setting. | Retains the distinction between selecting items and enabling a setting. A mixed selection requires Checkbox. |
|
|
156
|
+
| [Slider](src/components/slider.tsx) | [`Slider`](src/components/slider.tsx) | — | Adjusts a native range with a visible numeric figure. | Makes bounded continuous adjustment direct; exact entry remains a number-input task. |
|
|
157
|
+
| [Native select](src/components/select.tsx) | [`Select`](src/components/select.tsx), [`ChoiceSelect`](src/components/choice-select.tsx) | — | Select uses native options; ChoiceSelect provides grouped choices in a popover, optional search, keyboard navigation, and native form participation. | Use native selection for simple options and the searchable picker for larger sets. Its button opens a search panel; an editable combobox has a different input contract. |
|
|
158
|
+
| [Autocomplete](src/components/autocomplete.tsx) | [`Autocomplete`](src/components/autocomplete.tsx), [`TokenField`](src/components/token-field.tsx) | — | Autocomplete offers host suggestions for free text; TokenField enters several values as tokens the host resolves. | Use Autocomplete when any text is valid and suggestions are a shortcut, ChoiceSelect when the value must be one option, and TokenField for several values. |
|
|
159
|
+
| [Radio group](src/components/choice-group.tsx) | [`ChoiceGroup`](src/components/choice-group.tsx), [`SegmentedControl`](src/components/segmented-control.tsx) | — | ChoiceGroup provides labeled native radio options for a single value; SegmentedControl presents a compact mutually exclusive value choice. | Keeps short option sets visible. Tabs switch panels, and a token editor must also support adding and removing multiple values. |
|
|
160
|
+
| [Path picker](src/components/path-picker.tsx) | [`PathPicker`](src/components/path-picker.tsx) | — | Edits a path and optionally invokes a host chooser with pending/error feedback. | Reuses the editable path and chooser interaction. Selecting a path grants no file access, and the component does not discover files. |
|
|
161
|
+
| [Credential source](src/components/credential-source.tsx) | [`CredentialSource`](src/components/credential-source.tsx) | — | Composes stored-key versus environment-variable editing and host callbacks for checking or replacing credentials. | Retains an existing specialized settings composition. It currently includes environment-name suggestions through a native datalist; secret discovery and storage remain host responsibilities. Its API is not a general credential backend. |
|
|
115
162
|
|
|
116
163
|
### Overlays and disclosure
|
|
117
164
|
|
|
118
|
-
| Family
|
|
119
|
-
|
|
|
120
|
-
| [Modal](src/components/modal.tsx)
|
|
121
|
-
| [Drawer](src/components/drawer.tsx)
|
|
122
|
-
| [Popover](src/components/popover.tsx)
|
|
123
|
-
| [Tooltip](src/components/tooltip.tsx)
|
|
124
|
-
| [Risk confirmation](src/components/risk-confirmation.tsx)
|
|
125
|
-
| [Disclosure](src/components/disclosure.tsx)
|
|
165
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
166
|
+
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
167
|
+
| [Modal](src/components/modal.tsx) | [`Modal`](src/components/modal.tsx), [`Dialog`](src/components/dialog.tsx) | `DialogPanel`, `DialogHeader`, `DialogActions` | Modal is the complete controlled native dialog; Dialog is the dialog primitive, DialogPanel is its surface, DialogHeader groups its identity, and DialogActions holds closing actions. | Start with Modal for standard dismissal, labeling, and focus return. Use the parts for interiors or hosts whose dialog lifecycle differs; parts alone do not imply the complete behavior. |
|
|
168
|
+
| [Drawer](src/components/drawer.tsx) | [`Drawer`](src/components/drawer.tsx) | — | Presents content in a drawer region. | Provides the shared drawer structure for side content; the host chooses its content and screen role. |
|
|
169
|
+
| [Popover](src/components/popover.tsx) | [`Popover`](src/components/popover.tsx) | — | Positions a triggered floating region and exposes trigger bindings. | Supports interactive anchored content. A brief label or preview has a more specific component below. |
|
|
170
|
+
| [Tooltip](src/components/tooltip.tsx) | [`Tooltip`](src/components/tooltip.tsx), [`HoverCard`](src/components/hover-card.tsx) | — | Tooltip supplies a short contextual label; HoverCard presents richer preview content. | Keeps short explanations separate from previews. Essential actions must remain reachable through the task's normal interaction. |
|
|
171
|
+
| [Risk confirmation](src/components/risk-confirmation.tsx) | [`RiskConfirmation`](src/components/risk-confirmation.tsx) | — | Presents a consequential action's warning and confirmation interaction. | Makes the requested decision explicit. The host supplies risk facts and enforces permission; confirmation UI grants no authority. |
|
|
172
|
+
| [Disclosure](src/components/disclosure.tsx) | [`Disclosure`](src/components/disclosure.tsx), [`Accordion`](src/components/accordion.tsx) | — | Disclosure expands one content region; Accordion coordinates a set in single- or multiple-open mode. | Reuses expansion behavior for ordinary content. Nested disclosures do not establish tree navigation semantics. |
|
|
126
173
|
|
|
127
174
|
### Records and surfaces
|
|
128
175
|
|
|
129
|
-
| Family
|
|
130
|
-
|
|
|
131
|
-
| [Card](src/components/card.tsx)
|
|
132
|
-
| [Resource card](src/components/resource-card.tsx)
|
|
133
|
-
| [List](src/components/list-group.tsx)
|
|
134
|
-
| [Item](src/components/item.tsx)
|
|
135
|
-
| [Description list](src/components/description-list.tsx)
|
|
136
|
-
| [Timeline](src/components/timeline.tsx)
|
|
137
|
-
| [
|
|
138
|
-
| [
|
|
139
|
-
| [
|
|
176
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
177
|
+
| ------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
178
|
+
| [Card](src/components/card.tsx) | [`Card`](src/components/card.tsx) | [`CardHeader`](src/components/card-header.tsx), [`CardTitle`](src/components/card-title.tsx), [`CardDescription`](src/components/card-description.tsx), [`CardContent`](src/components/card-content.tsx), [`CardFooter`](src/components/card-footer.tsx), [`CardAction`](src/components/card-action.tsx) | Card is the surface; CardHeader groups identity/actions; CardTitle provides its heading; CardDescription supplies context; CardContent holds its body; CardFooter holds closing content/actions; CardAction is the header action slot. | Gives one related object a coherent structure. Use a plain section for ordinary document flow and avoid adding a card around every nested block. |
|
|
179
|
+
| [Resource card](src/components/resource-card.tsx) | [`ResourceCard`](src/components/resource-card.tsx) | — | Presents a capability/resource's identity, status, description, and actions. | Fits service or resource overviews where users must identify what is available and what they can do next. Status facts come from the host. |
|
|
180
|
+
| [List](src/components/list-group.tsx) | [`ListGroup`](src/components/list-group.tsx) | `ListRow` | ListGroup groups records; ListRow arranges an individual record's content, state, and actions. | Supports repeated records without table columns. Navigation-specific lists use destination semantics instead. |
|
|
181
|
+
| [Item](src/components/item.tsx) | [`Item`](src/components/item.tsx) | — | Arranges one readable item with leading/trailing content, description, and metadata, optionally as a button. | Provides a smaller content unit than a full record row. A button item must not contain nested controls. |
|
|
182
|
+
| [Description list](src/components/description-list.tsx) | [`DescriptionList`](src/components/description-list.tsx) | `DescriptionItem` | DescriptionList groups named facts; DescriptionItem supplies a term and its value. | Preserves name/value semantics for inspectors and details instead of using a table solely for alignment. |
|
|
183
|
+
| [Timeline](src/components/timeline.tsx) | [`Timeline`](src/components/timeline.tsx) | `TimelineItem` | Timeline groups an ordered event history; TimelineItem presents one event. | Makes chronology readable without interpreting events as live execution or scheduling tasks. |
|
|
184
|
+
| [Entries](src/components/entry.tsx) | [`EntryList`](src/components/entry.tsx), `Entry` | — | Entry summarizes one piece of content: a kicker, a heading that can link to it, a standfirst and its facts; EntryList runs entries on the surrounding surface, opening each with a hairline. | Fits blog indexes, notes, release lists and search results, where each item is a titled document rather than a row in a box. An Entry is a list item in an EntryList and an article alone; its heading level follows the region. |
|
|
185
|
+
| [Table](src/components/table.tsx) | [`Table`](src/components/table.tsx) | — | Presents host rows in columns with sorting, resizing, and multiselection. | Fits column comparison and batch selection. Data order, fetching, and paging facts remain with the host. |
|
|
186
|
+
| [Resource link](src/components/resource-link.tsx) | [`ResourceLink`](src/components/resource-link.tsx) | — | Presents a whole-row reference to an openable object. | Gives files, artifacts, and other resources a recognizable entry; it does not resolve protected resources or grant access. |
|
|
187
|
+
| [Metadata row](src/components/meta-row.tsx) | [`MetaRow`](src/components/meta-row.tsx) | — | Shows compact textual facts with wrapping separators and optional host progress. | Keeps page-level facts readable without a full description list. Unknown progress must not be invented. |
|
|
140
188
|
|
|
141
189
|
### Content and inspection
|
|
142
190
|
|
|
143
|
-
| Family
|
|
144
|
-
|
|
|
145
|
-
| [Code block](src/components/code-block.tsx)
|
|
146
|
-
| [
|
|
147
|
-
| [
|
|
148
|
-
| [
|
|
149
|
-
| [
|
|
150
|
-
| [
|
|
151
|
-
| [
|
|
152
|
-
| [
|
|
153
|
-
| [
|
|
154
|
-
| [
|
|
155
|
-
| [
|
|
156
|
-
| [
|
|
157
|
-
| [
|
|
191
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
192
|
+
| ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
193
|
+
| [Code block](src/components/code-block.tsx) | [`CodeBlock`](src/components/code-block.tsx) | — | Shows raw code with highlighting, copy/wrap controls, and optional title, caption, and actions. | Reuses code reading behavior while preserving the original copy payload. Rendering code does not execute it. |
|
|
194
|
+
| [Markdown](src/components/markdown.tsx) | [`Markdown`](src/components/markdown.tsx) | — | Renders Agent or document text as safe Markdown, block by block, with a repaired tail while it streams and optional custom code fences. | Lets Agent text appear outside the complete Assistant with the same content policy; finished blocks are never rewritten, so reading, selection and copying hold while text streams. |
|
|
195
|
+
| [Mermaid diagram](src/components/mermaid-diagram.tsx) | [`MermaidDiagram`](src/components/mermaid-diagram.tsx) | — | Draws Mermaid source as SVG on the library theme, with an optional title and a Copy source action. | Keeps diagrams in the same materials and type as the rest of the page; shows the source when it cannot draw. Rendering never follows links or loads images. |
|
|
196
|
+
| [Chart](src/components/chart.tsx) | [`Chart`](src/components/chart.tsx) | — | Draws host data as a bar chart for comparison or a line chart for a trend, with a legend, keyboard readout and a data table. | Gives quantitative results a graphical comparison that never relies on color alone. The host owns data, aggregation and units; other chart types are not included. |
|
|
197
|
+
| [Terminal output](src/components/terminal-block.tsx) | [`TerminalBlock`](src/components/terminal-block.tsx) | [`OutputBlock`](src/components/output-block.tsx) | Presents host-provided terminal output. OutputBlock, a registered part rather than an export, is the shared titled, capped and copyable surface that terminal, file, diff, search and tool-call output render into. | Keeps command output recognizable; it does not start a terminal or run a command. |
|
|
198
|
+
| [File reading](src/components/read-block.tsx) | [`ReadBlock`](src/components/read-block.tsx) | — | Presents file-oriented lines with optional language highlighting. | Preserves the reading context of file/tool results without making the component a file reader. |
|
|
199
|
+
| [Diff](src/components/diff-block.tsx) | [`DiffBlock`](src/components/diff-block.tsx) | — | Presents host-provided file changes and diff lines. | Supports reviewing proposed changes; applying patches and resolving permissions stay with the host. |
|
|
200
|
+
| [Search results](src/components/search-block.tsx) | [`SearchBlock`](src/components/search-block.tsx) | — | Presents host-provided file search groups and matches. | Retains result context and grouping. Query execution and result identity belong to the search host. |
|
|
201
|
+
| [Web result](src/components/web-block.tsx) | [`WebBlock`](src/components/web-block.tsx) | — | Presents a host-provided web source/result. | Keeps web output distinct from file output. Browsing, source verification, and network access remain external. |
|
|
202
|
+
| [JSON](src/components/json-block.tsx) | [`JsonBlock`](src/components/json-block.tsx), [`JsonTree`](src/components/json-tree.tsx) | — | JsonBlock provides the JSON code surface; JsonTree provides structured expandable inspection. | Offers text copying or structural inspection according to the reading task. Neither interprets object values as executable UI. |
|
|
203
|
+
| [Image preview](src/components/image-preview.tsx) | [`ImagePreview`](src/components/image-preview.tsx), [`ImageLightbox`](src/components/image-lightbox.tsx) | — | ImagePreview handles the preview frame and loading/failure; ImageLightbox provides single-image viewing. | Covers in-flow previews and focused image inspection. Hosts supply usable resource addresses and alternative descriptions. |
|
|
204
|
+
| [Avatar](src/components/avatar.tsx) | [`Avatar`](src/components/avatar.tsx) | — | Presents a picture or initials for an identity. | Provides a compact identity cue; message identity slots can still contain other artwork. |
|
|
205
|
+
| [Text](src/components/text.tsx) | [`Text`](src/components/text.tsx), [`Prose`](src/components/prose.tsx) | — | Text sets one run of copy in a theme text role; Prose holds long-form reading content in the shared reading rhythm. | Gives copy a role instead of hand-styled `p` or `small`, and reading content one rhythm shared with chat markdown. Arranging controls and cards stays with Stack, Inline and Grid. |
|
|
206
|
+
| [Link](src/components/link.tsx) | [`Link`](src/components/link.tsx) | — | Presents a themed inline text link. | Preserves inline reading flow; a whole resource entry uses ResourceLink. |
|
|
207
|
+
| [Keyboard shortcut](src/components/shortcut-keys.tsx) | [`ShortcutKeys`](src/components/shortcut-keys.tsx) | — | Displays a keyboard shortcut. | Makes a host-defined shortcut discoverable without registering it. |
|
|
208
|
+
| [Path label](src/components/path-label.tsx) | [`PathLabel`](src/components/path-label.tsx) | — | Presents a path as readable content. | Distinguishes a displayed address from an editable path or an access capability. |
|
|
158
209
|
|
|
159
210
|
### Feedback and labels
|
|
160
211
|
|
|
161
|
-
| Family
|
|
162
|
-
|
|
|
163
|
-
| [Alert](src/components/alert.tsx)
|
|
164
|
-
| [Empty state](src/components/empty-state.tsx)
|
|
165
|
-
| [Progress](src/components/progress.tsx)
|
|
166
|
-
| [Skeleton](src/components/skeleton.tsx)
|
|
167
|
-
| [Status](src/components/status.tsx)
|
|
168
|
-
| [Text shimmer](src/components/text-shimmer.tsx)
|
|
169
|
-
| [Toast](src/components/toast.tsx)
|
|
170
|
-
| [Labels](src/components/badge.tsx)
|
|
212
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
213
|
+
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
214
|
+
| [Alert](src/components/alert.tsx) | [`Alert`](src/components/alert.tsx) | — | Presents an important inline message. | Keeps feedback in the affected reading region when users must understand or act on it. |
|
|
215
|
+
| [Empty state](src/components/empty-state.tsx) | [`EmptyState`](src/components/empty-state.tsx) | — | Explains a genuinely empty region and any next action. | Distinguishes no content from initial loading and failed refresh. |
|
|
216
|
+
| [Progress](src/components/progress.tsx) | [`Progress`](src/components/progress.tsx), [`Spinner`](src/components/spinner.tsx) | — | Progress presents labeled determinate or indeterminate progress; Spinner indicates waiting without an amount. | Use measured progress when the host knows it and a waiting indicator when it does not. |
|
|
217
|
+
| [Skeleton](src/components/skeleton.tsx) | [`Skeleton`](src/components/skeleton.tsx), [`SkeletonBoundary`](src/components/skeleton-boundary.tsx) | — | Skeleton supplies a placeholder shape; SkeletonBoundary coordinates placeholders with loading/content display. | Reserves a useful content shape during loading. Loading UI does not establish execution state or an empty result. |
|
|
218
|
+
| [Status](src/components/status.tsx) | [`Status`](src/components/status.tsx), [`StatusDot`](src/components/status-dot.tsx), [`StateDot`](src/components/state-dot.tsx) | — | Status combines a visible label and decorative dot; StatusDot supplies the shared state marker; StateDot retains the existing step/dot marker with its distinct state vocabulary. | Prefer Status for a readable standalone status. Marker-only compositions require adjacent text; the two dot vocabularies must not be translated into execution facts by guesswork. |
|
|
219
|
+
| [Text shimmer](src/components/text-shimmer.tsx) | [`TextShimmer`](src/components/text-shimmer.tsx) | — | Animates a short text cue for activity. | Supports a limited activity treatment where the surrounding text already explains the state. It does not prove work is running. |
|
|
220
|
+
| [Toast](src/components/toast.tsx) | [`Toast`](src/components/toast.tsx) | — | Presents transient feedback. | Fits brief feedback outside the main flow; the host owns its display lifetime and action results. |
|
|
221
|
+
| [Labels](src/components/badge.tsx) | [`Badge`](src/components/badge.tsx), [`Tag`](src/components/tag.tsx), [`Pill`](src/components/pill.tsx) | — | Badge supplies a compact static label; Tag supplies a fact such as a count or path; Pill supplies a capsule label/action with host-selected state. | Keeps facts distinct from interactive filtering or selection. Choose the selected/action capsule only when the user can act on it. |
|
|
171
222
|
|
|
172
223
|
### Agent and conversation
|
|
173
224
|
|
|
174
|
-
These families include the
|
|
175
|
-
work.
|
|
225
|
+
These families include the 22 chat exports and four general components used to present public
|
|
226
|
+
work. The Complete Assistant's parts are registered parts of `AssistantView`, not exports: they are
|
|
227
|
+
listed so their reference pages sit with the Assistant. Import the chat exports from `meowtail/chat`. Import the general process and work components
|
|
176
228
|
from `meowtail/components`; they are not chat-subpath exports. All are re-exported from `meowtail`.
|
|
177
229
|
|
|
178
|
-
| Family
|
|
179
|
-
|
|
|
180
|
-
| [Complete Assistant](src/chat/assistant.tsx)
|
|
181
|
-
| [Chat frame](src/chat/frame.tsx)
|
|
182
|
-
| [Message](src/chat/message.tsx)
|
|
183
|
-
| [Message list](src/chat/message-list.tsx)
|
|
184
|
-
| [Conversation scrolling](src/chat/conversation.tsx)
|
|
185
|
-
| [Composer](src/chat/composer.tsx)
|
|
186
|
-
| [Attachments](src/chat/attachments.tsx)
|
|
187
|
-
| [Chat status](src/chat/status.tsx)
|
|
188
|
-
| [Tool call](src/chat/tool-call.tsx)
|
|
189
|
-
| [Task](src/chat/task.tsx)
|
|
190
|
-
| [
|
|
191
|
-
| [
|
|
192
|
-
| [
|
|
193
|
-
| [
|
|
230
|
+
| Family | Components | Parts | Purpose | Why select or retain it |
|
|
231
|
+
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
232
|
+
| [Complete Assistant](src/chat/assistant.tsx) | [`AssistantView`](src/chat/assistant.tsx) | `AssistantComposer`, `AssistantMarkdown`, `AssistantQuestion`, `AssistantSteps` | Composes messages, safe Markdown, composer, attachments/options, activity, work details, and unanswered questions. | Default starting point for a complete Agent conversation. Local slots and part rendering permit extensions without rebuilding its reading and input behavior; see [Assistant](ASSISTANT.md). |
|
|
233
|
+
| [Chat frame](src/chat/frame.tsx) | [`ChatFrame`](src/chat/frame.tsx) | [`ChatHeader`](src/chat/header.tsx) | ChatFrame provides conversation structure; ChatHeader provides its identity/actions region. | Supports custom chat compositions when the complete Assistant does not fit the host. |
|
|
234
|
+
| [Message](src/chat/message.tsx) | [`ChatMessage`](src/chat/message.tsx) | [`ChatBubble`](src/chat/bubble.tsx), [`ChatMessageActions`](src/chat/message-actions.tsx) | ChatMessage arranges role/author/status and content; ChatBubble provides bubble presentation; ChatMessageActions groups actions associated with one message. | Preserves identity and action scope while allowing either document-like messages or bubbles. |
|
|
235
|
+
| [Message list](src/chat/message-list.tsx) | [`ChatMessageList`](src/chat/message-list.tsx) | `ChatMessageListContent`, `ChatMessageListItem`, `ChatMessageListDate` | ChatMessageList is the accessible log; ChatMessageListContent is its independently rendered message target; ChatMessageListItem hosts one message and continuity marker; ChatMessageListDate separates dates. | Makes custom logs composable without treating a date separator as a message. The caller supplies stable identities and continuity facts. |
|
|
236
|
+
| [Conversation scrolling](src/chat/conversation.tsx) | [`ChatConversation`](src/chat/conversation.tsx), `ChatConversationLatest` | — | ChatConversation owns scrolling for an append-only transcript; ChatConversationLatest is a normal-flow latest-message action for a host that already owns scrolling. | Choose one scroll owner. The standalone action leaves visibility, navigation, and focus restoration to the host. |
|
|
237
|
+
| [Composer](src/chat/composer.tsx) | [`ChatComposer`](src/chat/composer.tsx), [`ComposerPanel`](src/chat/composer-panel.tsx) | — | ChatComposer provides the writing/submit surface; ComposerPanel composes it with a page-level metadata region. | Reuses input interactions without a second writing surface. Sending, stopping, draft persistence, and submission acceptance remain explicit host responsibilities. |
|
|
238
|
+
| [Attachments](src/chat/attachments.tsx) | [`ChatAttachments`](src/chat/attachments.tsx) | — | Presents message or draft attachments. | Keeps attachments recognizable while their upload, access, and persistence remain host facts. |
|
|
239
|
+
| [Chat status](src/chat/status.tsx) | [`ChatStatus`](src/chat/status.tsx) | — | Presents compact conversation status text and tone. | Fits chat chrome; it does not calculate the execution state of every background task. |
|
|
240
|
+
| [Tool call](src/chat/tool-call.tsx) | [`ChatToolCall`](src/chat/tool-call.tsx) | — | Presents an action/target, explicit execution state, expandable input/output, and retry/cancel intent. | Keeps long results and actions in their tool context. Missing output is not failure, and callbacks do not execute or change the tool state automatically. |
|
|
241
|
+
| [Task](src/chat/task.tsx) | [`ChatTask`](src/chat/task.tsx) | — | Presents a task's public description, execution/reply facts, optional grounded progress, and children. | Makes concurrent or delegated work readable while preserving the distinction between execution success and a public reply. The host schedules and relates tasks. |
|
|
242
|
+
| [Reasoning](src/chat/reasoning.tsx) | [`ChatReasoning`](src/chat/reasoning.tsx) | — | Shows a model's visible reasoning: open with the newest lines while active, folded to one disclosure row when done. | Keeps streamed reasoning readable without script measuring or scrolling; distinct from the composer's reasoning-effort choice. |
|
|
243
|
+
| [Public process](src/chat/process.tsx) | [`ChatProcess`](src/chat/process.tsx), [`ProcessGroup`](src/components/process-group.tsx), [`ProcessStep`](src/components/process-step.tsx) | — | ChatProcess gives process content a message composition; ProcessGroup groups collapsible public steps; ProcessStep presents one step. | Reuses public activity and plan records without requiring private model reasoning or creating a plan execution engine. |
|
|
244
|
+
| [Work card](src/components/work-card.tsx) | [`WorkCard`](src/components/work-card.tsx) | — | Provides one conversation control pointing to a piece of work. | Offers a compact entry to host-owned work details instead of embedding every task's entire body. |
|
|
245
|
+
| [Task list](src/components/task-list.tsx) | [`TaskList`](src/components/task-list.tsx) | — | Shows an ordered plan of host-reported steps an agent works through, with an aggregate count. | Displays a plan's progress as host facts; it is neither executable nor a ChatTask record. |
|
|
246
|
+
| [Question](src/chat/question.tsx) | [`ChatQuestion`](src/chat/question.tsx) | — | Presents an unanswered question and its answer interaction. | Keeps waiting for a user distinct from execution failure. Question availability, submission, and whether an answer is accepted remain host facts. |
|
|
247
|
+
| [Sources](src/chat/sources.tsx) | [`ChatSources`](src/chat/sources.tsx) | — | Presents cited sources associated with conversation content. | Keeps source references close to the supported content. Verification and access rights remain with the host. |
|
|
194
248
|
|
|
195
249
|
## Agent scenario index
|
|
196
250
|
|
|
@@ -198,16 +252,16 @@ Agent interfaces need the transitions between these tasks as well as their indiv
|
|
|
198
252
|
The [Agent capability matrix](AGENT-COMPONENTS.md#capability-matrix) owns the detailed composition
|
|
199
253
|
and host boundaries; this index is for finding the relevant families.
|
|
200
254
|
|
|
201
|
-
| User task | Relevant catalog area | Boundary or remaining target
|
|
202
|
-
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
203
|
-
| Read new text, stream a reply, or inspect older messages | [Agent and conversation](#agent-and-conversation) | Stable identities and the chosen scroll owner preserve reading context.
|
|
204
|
-
| Compose, attach, choose options, send, or stop | [Agent and conversation](#agent-and-conversation), [Forms and selection](#forms-and-selection), [Actions and commands](#actions-and-commands) | Hosts own uploads, accepted submissions, draft persistence, and stop execution.
|
|
205
|
-
| Inspect tool inputs/results, including long output and media | [Agent and conversation](#agent-and-conversation), [Content and inspection](#content-and-inspection) | Show explicit queued/running/waiting/success/error/cancelled/unknown facts. Hosts merge streaming chunks and supply supported resources.
|
|
206
|
-
| Follow concurrent work, delegation, or public steps | [Agent and conversation](#agent-and-conversation), [Feedback and labels](#feedback-and-labels) | Nest or group public facts; distinguish execution return, goal completion, and reply delivery.
|
|
207
|
-
| Answer a question or approve a consequential action | [Agent and conversation](#agent-and-conversation), [Overlays and disclosure](#overlays-and-disclosure) | The host says who/what is being waited for and enforces authority. A displayed confirmation does not grant permission.
|
|
208
|
-
| Open a cited source, artifact, image, or proposed patch | [Records and surfaces](#records-and-surfaces), [Content and inspection](#content-and-inspection), [Agent and conversation](#agent-and-conversation) | Resource identity, authorization, downloads, and patch application stay with the host.
|
|
209
|
-
| Understand a process diagram or quantitative result | [Content and inspection](#content-and-inspection)
|
|
210
|
-
| Recover after interruption, stale status, or refresh failure | [Agent and conversation](#agent-and-conversation), [Feedback and labels](#feedback-and-labels) | Preserve available content and show unknown/error facts explicitly. Reconnection and retry eligibility are host decisions; no reply does not imply failed execution.
|
|
255
|
+
| User task | Relevant catalog area | Boundary or remaining target |
|
|
256
|
+
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
257
|
+
| Read new text, stream a reply, or inspect older messages | [Agent and conversation](#agent-and-conversation) | Stable identities and the chosen scroll owner preserve reading context. `Markdown` (and the Assistant text built on it) keeps finished blocks untouched while text streams, so a selection or copy in them survives, and hides half-typed markers in the open tail. |
|
|
258
|
+
| Compose, attach, choose options, send, or stop | [Agent and conversation](#agent-and-conversation), [Forms and selection](#forms-and-selection), [Actions and commands](#actions-and-commands) | Hosts own uploads, accepted submissions, draft persistence, and stop execution. `TokenField` edits several references or choices. |
|
|
259
|
+
| Inspect tool inputs/results, including long output and media | [Agent and conversation](#agent-and-conversation), [Content and inspection](#content-and-inspection) | Show explicit queued/running/waiting/success/error/cancelled/unknown facts. Hosts merge streaming chunks and supply supported resources. |
|
|
260
|
+
| Follow concurrent work, delegation, or public steps | [Agent and conversation](#agent-and-conversation), [Feedback and labels](#feedback-and-labels) | Nest or group public facts; distinguish execution return, goal completion, and reply delivery. `TreeView` navigates a hierarchy; it is not a scheduler. |
|
|
261
|
+
| Answer a question or approve a consequential action | [Agent and conversation](#agent-and-conversation), [Overlays and disclosure](#overlays-and-disclosure) | The host says who/what is being waited for and enforces authority. A displayed confirmation does not grant permission. |
|
|
262
|
+
| Open a cited source, artifact, image, or proposed patch | [Records and surfaces](#records-and-surfaces), [Content and inspection](#content-and-inspection), [Agent and conversation](#agent-and-conversation) | Resource identity, authorization, downloads, and patch application stay with the host. |
|
|
263
|
+
| Understand a process diagram or quantitative result | [Content and inspection](#content-and-inspection) | `MermaidDiagram` renders Mermaid source and `Chart` draws bar and line charts. The host supplies source text/data and its meaning; diagram rendering, statistical charts, and domain relationship graphs have distinct contracts. |
|
|
264
|
+
| Recover after interruption, stale status, or refresh failure | [Agent and conversation](#agent-and-conversation), [Feedback and labels](#feedback-and-labels) | Preserve available content and show unknown/error facts explicitly. Reconnection and retry eligibility are host decisions; no reply does not imply failed execution. |
|
|
211
265
|
|
|
212
266
|
## Targets and open candidates
|
|
213
267
|
|
|
@@ -230,23 +284,11 @@ editable-combobox question below requires a distinct input task.
|
|
|
230
284
|
|
|
231
285
|
### Selected targets
|
|
232
286
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
| Autocomplete | Enter a path, environment-variable name, command, or query, optionally accept a suggestion, and still allow custom text. | Plain input/search controls do not define a shared suggestion interaction. The existing credential editor's native datalist is an observed simple use; it remains sufficient for basic browser suggestions. A richer shared suggestion surface needs explicit keyboard, selection, and loading/empty behavior. | Keep arbitrary text valid according to the host's domain rules. The host supplies suggestions; accepting one does not execute commands or inspect the filesystem. |
|
|
239
|
-
| Token field | Add and remove multiple recipients, labels, filters, or Agent references while continuing to type. | Visible choice groups and pills do not supply a token editor's input, focus, removal, and value interaction. | Define token identity, duplicate policy, keyboard removal, and unfinished input. Token resolution and resource authority remain with the host. |
|
|
240
|
-
| Tree view | Explore files, nested tasks, or a structured outline with expansion, selection, and keyboard navigation. | Grouped navigation is flat; nested disclosures do not implement tree semantics. Meowpress's local skill tree is evidence of a hierarchical display, not a reason to add a Meowtail dependency there. | Share hierarchy interaction while the host owns data and navigation. Virtualization, drag/drop, lazy loading, and multi-selection require their own scale or task evidence. |
|
|
241
|
-
| Command palette | Search across grouped application or Agent workspace actions, inspect shortcuts, execute a choice, and return focus. | A menu, search field, and navigation list do not by themselves establish the palette's result navigation and focus lifecycle. | Reuse existing menu/overlay primitives where useful. The host owns action eligibility, execution, and global shortcut registration. |
|
|
242
|
-
| Markdown | Render Agent text independently of the complete Assistant, including incomplete streamed syntax, and preserve usable reading, selection, and copying. | Assistant has an [internal Markdown renderer](src/chat/assistant-markdown.tsx). Select public reuse and verification of streaming display/selection/copy behavior; no current defect in those behaviors is established by this catalog. | Reuse the existing renderer before considering another parser. Preserve the [Assistant content policy](ASSISTANT.md#content-and-local-customization); keep executable MDX with Meowpress/MeowSlides. Decide the public contract and observe real streaming scenarios before claiming support. |
|
|
243
|
-
| Pagination | Browse a large record table or search result set, understand the current page, and move through valid previous/next boundaries. | Table owns column interactions, not page navigation. Hosts currently can supply one page of rows, but repeated controls still need coherent labels, disabled/busy behavior, and page facts. | The host owns page state, totals, fetching, and errors. Support the actual known/unknown total contract; conversation history keeps its load-older interaction instead of acquiring arbitrary page numbers. |
|
|
244
|
-
|
|
245
|
-
Build order follows the first concrete composition and dependencies. Forms and the text/selection
|
|
246
|
-
family can improve settings and authoring; hierarchy and command search support workspaces;
|
|
247
|
-
Markdown work follows the existing Agent reading path; pagination belongs with a record-browsing
|
|
248
|
-
consumer. This is guidance, not a fixed release sequence or a requirement to finish every target
|
|
249
|
-
before adopting current components.
|
|
287
|
+
No target is open. Chart, Form, Autocomplete, Token field, Tree view, Command palette and Markdown
|
|
288
|
+
moved into their families above; their first contracts, the review that shaped them and what they
|
|
289
|
+
leave out are recorded in the
|
|
290
|
+
[selected targets design](../../docs/designs/2026-10-29-meowtail-selected-targets.md). A new target
|
|
291
|
+
is added here with its user task, current basis and implementation boundary.
|
|
250
292
|
|
|
251
293
|
### Investigate or defer
|
|
252
294
|
|
|
@@ -281,12 +323,12 @@ before adopting current components.
|
|
|
281
323
|
The JSX inventory is only one part of the package. These public surfaces remain discoverable
|
|
282
324
|
without counting utility values or every glyph as a component family:
|
|
283
325
|
|
|
284
|
-
| Surface | Purpose and selection boundary
|
|
285
|
-
| ------------------------------------------------------------------------------------------------------------------------- |
|
|
286
|
-
| [Icons](src/icons/index.ts) and [icon guide](src/icons/README.md) | Icon and IconSource provide the generic icon/source renderers; FileTypeIcon renders file-type identity. AssistantMark,
|
|
287
|
-
| [Region layout](src/components/region-layout.tsx) and [description validation](src/components/region-layout-types.ts) | `mountRegionLayout` and `validateRegionLayout` provide named workspace-region geometry and mounting. They are public capabilities, not JSX components or an unimplemented RegionLayout component.
|
|
288
|
-
| [Registry](src/registry/index.ts), [theme](src/theme/index.ts), and [installation](README.md#minimal-browser-integration) | Runtime contracts/registration and the standard theme share component identity. Registry size is not the public component count; installation helpers and theme tokens are not UI choices.
|
|
289
|
-
| [JSON](JSON.md) | A finite entry point reuses the existing components and contracts. Its supported schemas and actions are not a second component catalog or an authorization mechanism.
|
|
326
|
+
| Surface | Purpose and selection boundary |
|
|
327
|
+
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
328
|
+
| [Icons](src/icons/index.ts) and [icon guide](src/icons/README.md) | Icon and IconSource provide the generic icon/source renderers; FileTypeIcon renders file-type identity. AssistantMark, EmptyStack, ExternalArrowIcon, GithubIcon, MeowlandMark, NotesIcon, PlusIcon, SearchIcon, and TasksIcon are existing artwork/glyph exports. `iconNames`, file classification helpers, and the Lucide subpath support that surface. Assets communicate identity and do not grant navigation or file authority. |
|
|
329
|
+
| [Region layout](src/components/region-layout.tsx) and [description validation](src/components/region-layout-types.ts) | `mountRegionLayout` and `validateRegionLayout` provide named workspace-region geometry and mounting. They are public capabilities, not JSX components or an unimplemented RegionLayout component. |
|
|
330
|
+
| [Registry](src/registry/index.ts), [theme](src/theme/index.ts), and [installation](README.md#minimal-browser-integration) | Runtime contracts/registration and the standard theme share component identity. Registry size is not the public component count; installation helpers and theme tokens are not UI choices. |
|
|
331
|
+
| [JSON](JSON.md) | A finite entry point reuses the existing components and contracts. Its supported schemas and actions are not a second component catalog or an authorization mechanism. |
|
|
290
332
|
|
|
291
333
|
## Reference and decision basis
|
|
292
334
|
|
|
@@ -309,8 +351,8 @@ are integration inputs. Its [security guidance](https://pele.run/security) infor
|
|
|
309
351
|
and host resource policies.
|
|
310
352
|
[shadcn Chart](https://ui.shadcn.com/docs/components/base/chart) and
|
|
311
353
|
[Swift Charts](https://developer.apple.com/documentation/charts) inform quantitative display.
|
|
312
|
-
|
|
313
|
-
|
|
354
|
+
`Chart` covers bar and line charts; further chart types remain undecided. `MermaidDiagram` renders through
|
|
355
|
+
Pele; its family entry states the current contract.
|
|
314
356
|
|
|
315
357
|
The local evidence is the public exports, linked component sources,
|
|
316
358
|
[Assistant contract](ASSISTANT.md), and [Agent composition guide](AGENT-COMPONENTS.md).
|
|
@@ -321,8 +363,8 @@ The current list deliberately covers Agent reading and work as well as docs and
|
|
|
321
363
|
## Maintaining this list
|
|
322
364
|
|
|
323
365
|
Update the affected family in the same change that adds/removes a public component or materially
|
|
324
|
-
changes its intended use. Keep every public member's purpose and selection reason visible;
|
|
325
|
-
compound parts
|
|
366
|
+
changes its intended use. Keep every public member's purpose and selection reason visible; list
|
|
367
|
+
compound parts in their family's Parts column rather than adding duplicate task-specific entries.
|
|
326
368
|
Update the scenario index when a reading or interaction gap changes.
|
|
327
369
|
|
|
328
370
|
For a new target, state the user task, what the existing composition fails to provide, and the
|