meowtail 0.2.0-alpha.0 → 0.2.0-alpha.1
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 +65 -65
- package/ASSISTANT.md +35 -35
- package/JSON.md +11 -11
- package/README.md +397 -385
- package/THIRD_PARTY_NOTICES.md +8 -0
- package/dist/src/chat/attachments.js +9 -5
- package/dist/src/chat/composer-panel.d.ts +17 -0
- package/dist/src/chat/composer-panel.js +12 -0
- package/dist/src/chat/composer.d.ts +2 -0
- package/dist/src/chat/composer.js +5 -2
- package/dist/src/chat/conversation.js +2 -2
- package/dist/src/chat/index.d.ts +1 -0
- package/dist/src/chat/index.js +1 -0
- package/dist/src/chat/message-list.js +1 -1
- package/dist/src/chat/message.js +3 -3
- package/dist/src/chat/question.js +1 -1
- package/dist/src/chat/sources.js +1 -1
- package/dist/src/chat/tool-call.js +6 -6
- package/dist/src/components/action-rail.d.ts +19 -0
- package/dist/src/components/action-rail.js +13 -0
- package/dist/src/components/add-button.js +1 -1
- package/dist/src/components/alert.d.ts +2 -0
- package/dist/src/components/alert.js +2 -1
- package/dist/src/components/app-bar.d.ts +17 -0
- package/dist/src/components/app-bar.js +10 -0
- package/dist/src/components/breadcrumb.js +1 -1
- package/dist/src/components/choice-select.js +1 -1
- package/dist/src/components/code-block.js +6 -6
- package/dist/src/components/credential-source.js +12 -12
- package/dist/src/components/diff-block.js +1 -1
- package/dist/src/components/hover-card.js +2 -2
- package/dist/src/components/image-lightbox.js +3 -3
- package/dist/src/components/image-preview.js +1 -1
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/index.js +3 -0
- package/dist/src/components/json-block.js +2 -2
- package/dist/src/components/json-tree.js +3 -3
- package/dist/src/components/list-group.d.ts +1 -1
- package/dist/src/components/meta-row.d.ts +33 -0
- package/dist/src/components/meta-row.js +45 -0
- package/dist/src/components/output-block.js +7 -7
- package/dist/src/components/page-frame.d.ts +6 -2
- package/dist/src/components/page-frame.js +2 -2
- package/dist/src/components/path-picker.js +4 -4
- package/dist/src/components/process-group.d.ts +2 -2
- package/dist/src/components/rail-item.d.ts +2 -2
- package/dist/src/components/rail-section.d.ts +1 -1
- package/dist/src/components/read-block.js +2 -2
- package/dist/src/components/resource-card.d.ts +1 -1
- package/dist/src/components/resource-link.d.ts +1 -1
- package/dist/src/components/search-block.js +2 -3
- package/dist/src/components/terminal-block.js +6 -6
- package/dist/src/components/web-block.js +3 -3
- package/dist/src/components/work-card.d.ts +2 -2
- package/dist/src/components/work-card.js +1 -1
- package/dist/src/icons/README.md +13 -2
- package/dist/src/icons/icon-frame.d.ts +11 -0
- package/dist/src/icons/icon-frame.js +4 -0
- package/dist/src/icons/icon-source.d.ts +17 -0
- package/dist/src/icons/icon-source.js +6 -0
- package/dist/src/icons/icon.d.ts +44 -37
- package/dist/src/icons/icon.js +55 -128
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +1 -0
- package/dist/src/icons/lucide.d.ts +1 -0
- package/dist/src/icons/lucide.js +4 -0
- package/dist/src/registry/index.d.ts +38 -3
- package/dist/src/registry/index.js +11 -2
- package/dist/src/shared/execution-state.js +7 -7
- package/dist/src/theme/chat/composer-panel.styles.d.ts +1 -0
- package/dist/src/theme/chat/composer-panel.styles.js +44 -0
- package/dist/src/theme/chat/composer.styles.js +37 -6
- package/dist/src/theme/components/action-rail.styles.d.ts +1 -0
- package/dist/src/theme/components/action-rail.styles.js +47 -0
- package/dist/src/theme/components/alert.styles.js +42 -1
- package/dist/src/theme/components/app-bar.styles.d.ts +1 -0
- package/dist/src/theme/components/app-bar.styles.js +48 -0
- package/dist/src/theme/components/code-block.styles.js +7 -0
- package/dist/src/theme/components/dialog.styles.js +7 -0
- package/dist/src/theme/components/list-group.styles.js +1 -0
- package/dist/src/theme/components/meta-row.styles.d.ts +1 -0
- package/dist/src/theme/components/meta-row.styles.js +66 -0
- package/dist/src/theme/components/output-block.styles.js +9 -0
- package/dist/src/theme/components/page-frame.styles.js +7 -1
- package/dist/src/theme/components/page-header.styles.js +7 -0
- package/dist/src/theme/components/resource-card.styles.js +7 -0
- package/dist/src/theme/components/tag.styles.js +3 -3
- package/dist/src/theme/components/toolbar.styles.js +7 -0
- package/dist/src/theme/index.d.ts +15 -15
- package/dist/src/theme/index.js +8 -0
- package/dist/src/theme/palette.d.ts +1 -1
- package/dist/src/theme/palette.js +1 -1
- package/dist/src/theme/shared/code-highlight.tokens.d.ts +6 -6
- package/dist/src/theme/shared/code-highlight.tokens.js +6 -6
- package/dist/src/theme/tokens.d.ts +7 -7
- package/dist/src/theme/tokens.js +14 -8
- package/package.json +7 -2
package/dist/src/icons/icon.js
CHANGED
|
@@ -1,135 +1,62 @@
|
|
|
1
|
-
// Fragment is required by the classic JSX transform for the
|
|
1
|
+
// Fragment is required by the classic JSX transform for the local settings group.
|
|
2
2
|
// eslint-disable-next-line no-unused-vars
|
|
3
3
|
import { h, Fragment } from "meowjsx";
|
|
4
|
-
|
|
4
|
+
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpRight, Brain, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Copy, ExternalLink, Eye, File, FileText, Folder, FolderOpen, Gauge, History, List, ListChecks, LoaderCircle, Map, Mic, Menu, MessageSquare, Minus, Network, NotebookTabs, PanelLeft, Paperclip, Plus, RefreshCw, Search, ShieldCheck, Square, Terminal, Timer, UserRound, Wrench, X, Database, } from "lucide";
|
|
5
|
+
import { IconFrame } from "./icon-frame.js";
|
|
6
|
+
function renderNodes(nodes) {
|
|
7
|
+
return nodes.map(([tag, attrs]) => h(tag, attrs));
|
|
8
|
+
}
|
|
9
|
+
// Local optical tuning: the upstream gear reads larger and rounder at the
|
|
10
|
+
// standard theme's 16px icon size, so the semantic set keeps this adjustment.
|
|
11
|
+
const settings = () => (h(Fragment, null,
|
|
12
|
+
h("path", { d: "M9.5 3h5l.6 2.5 2.2 1.3 2.5-.7 2.5 4.3-1.9 1.8v2.6l1.9 1.8-2.5 4.3-2.5-.7-2.2 1.3-.6 2.5h-5l-.6-2.5-2.2-1.3-2.5.7-2.5-4.3 1.9-1.8v-2.6l-1.9-1.8 2.5-4.3 2.5.7 2.2-1.3z", transform: "translate(0 -1.5) scale(1 .95)" }),
|
|
13
|
+
h("circle", { cx: "12", cy: "12", r: "3" })));
|
|
5
14
|
const shapes = {
|
|
6
|
-
terminal: () =>
|
|
7
|
-
menu: () =>
|
|
8
|
-
settings
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"arrow-left": () => (h(Fragment, null,
|
|
50
|
-
h("path", { d: "m12 19-7-7 7-7" }),
|
|
51
|
-
h("path", { d: "M19 12H5" }))),
|
|
52
|
-
"arrow-right": () => (h(Fragment, null,
|
|
53
|
-
h("path", { d: "M5 12h14" }),
|
|
54
|
-
h("path", { d: "m12 5 7 7-7 7" }))),
|
|
55
|
-
"arrow-up-right": () => (h(Fragment, null,
|
|
56
|
-
h("path", { d: "M7 7h10v10" }),
|
|
57
|
-
h("path", { d: "M7 17 17 7" }))),
|
|
58
|
-
"file-text": () => (h(Fragment, null,
|
|
59
|
-
h("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
60
|
-
h("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
61
|
-
h("path", { d: "M10 9H8" }),
|
|
62
|
-
h("path", { d: "M16 13H8" }),
|
|
63
|
-
h("path", { d: "M16 17H8" }))),
|
|
64
|
-
file: () => (h(Fragment, null,
|
|
65
|
-
h("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
66
|
-
h("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }))),
|
|
67
|
-
folder: () => (h(Fragment, null,
|
|
68
|
-
h("path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }))),
|
|
69
|
-
"folder-open": () => (h(Fragment, null,
|
|
70
|
-
h("path", { d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }))),
|
|
71
|
-
copy: () => (h(Fragment, null,
|
|
72
|
-
h("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
73
|
-
h("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }))),
|
|
74
|
-
x: () => (h(Fragment, null,
|
|
75
|
-
h("path", { d: "M18 6 6 18" }),
|
|
76
|
-
h("path", { d: "m6 6 12 12" }))),
|
|
77
|
-
"chevron-down": () => (h(Fragment, null,
|
|
78
|
-
h("path", { d: "m6 9 6 6 6-6" }))),
|
|
79
|
-
"chevron-left": () => (h(Fragment, null,
|
|
80
|
-
h("path", { d: "m15 18-6-6 6-6" }))),
|
|
81
|
-
"chevron-right": () => (h(Fragment, null,
|
|
82
|
-
h("path", { d: "m9 18 6-6-6-6" }))),
|
|
83
|
-
"chevron-up": () => (h(Fragment, null,
|
|
84
|
-
h("path", { d: "m18 15-6-6-6 6" }))),
|
|
85
|
-
search: () => (h(Fragment, null,
|
|
86
|
-
h("path", { d: "m21 21-4.34-4.34" }),
|
|
87
|
-
h("circle", { cx: "11", cy: "11", r: "8" }))),
|
|
88
|
-
plus: () => (h(Fragment, null,
|
|
89
|
-
h("path", { d: "M5 12h14" }),
|
|
90
|
-
h("path", { d: "M12 5v14" }))),
|
|
91
|
-
minus: () => (h(Fragment, null,
|
|
92
|
-
h("path", { d: "M5 12h14" }))),
|
|
93
|
-
"panel-left": () => (h(Fragment, null,
|
|
94
|
-
h("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
95
|
-
h("path", { d: "M9 3v18" }))),
|
|
96
|
-
list: () => (h(Fragment, null,
|
|
97
|
-
h("path", { d: "M3 5h.01" }),
|
|
98
|
-
h("path", { d: "M3 12h.01" }),
|
|
99
|
-
h("path", { d: "M3 19h.01" }),
|
|
100
|
-
h("path", { d: "M8 5h13" }),
|
|
101
|
-
h("path", { d: "M8 12h13" }),
|
|
102
|
-
h("path", { d: "M8 19h13" }))),
|
|
103
|
-
network: () => (h(Fragment, null,
|
|
104
|
-
h("rect", { x: "16", y: "16", width: "6", height: "6", rx: "1" }),
|
|
105
|
-
h("rect", { x: "2", y: "16", width: "6", height: "6", rx: "1" }),
|
|
106
|
-
h("rect", { x: "9", y: "2", width: "6", height: "6", rx: "1" }),
|
|
107
|
-
h("path", { d: "M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3" }),
|
|
108
|
-
h("path", { d: "M12 12V8" }))),
|
|
109
|
-
"external-link": () => (h(Fragment, null,
|
|
110
|
-
h("path", { d: "M15 3h6v6" }),
|
|
111
|
-
h("path", { d: "M10 14 21 3" }),
|
|
112
|
-
h("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }))),
|
|
113
|
-
brain: () => (h(Fragment, null,
|
|
114
|
-
h("path", { d: "M12 18V5" }),
|
|
115
|
-
h("path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4" }),
|
|
116
|
-
h("path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" }),
|
|
117
|
-
h("path", { d: "M17.997 5.125a4 4 0 0 1 2.526 5.77" }),
|
|
118
|
-
h("path", { d: "M18 18a4 4 0 0 0 2-7.464" }),
|
|
119
|
-
h("path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" }),
|
|
120
|
-
h("path", { d: "M6 18a4 4 0 0 1-2-7.464" }),
|
|
121
|
-
h("path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77" }))),
|
|
122
|
-
eye: () => (h(Fragment, null,
|
|
123
|
-
h("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }),
|
|
124
|
-
h("circle", { cx: "12", cy: "12", r: "3" }))),
|
|
125
|
-
wrench: () => (h(Fragment, null,
|
|
126
|
-
h("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }))),
|
|
127
|
-
"loader-circle": () => (h(Fragment, null,
|
|
128
|
-
h("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }))),
|
|
129
|
-
square: () => (h(Fragment, null,
|
|
130
|
-
h("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }))),
|
|
15
|
+
terminal: () => renderNodes(Terminal),
|
|
16
|
+
menu: () => renderNodes(Menu),
|
|
17
|
+
settings,
|
|
18
|
+
"arrow-up": () => renderNodes(ArrowUp),
|
|
19
|
+
"list-checks": () => renderNodes(ListChecks),
|
|
20
|
+
"message-square": () => renderNodes(MessageSquare),
|
|
21
|
+
map: () => renderNodes(Map),
|
|
22
|
+
"user-round": () => renderNodes(UserRound),
|
|
23
|
+
"notebook-tabs": () => renderNodes(NotebookTabs),
|
|
24
|
+
"refresh-cw": () => renderNodes(RefreshCw),
|
|
25
|
+
paperclip: () => renderNodes(Paperclip),
|
|
26
|
+
"arrow-down": () => renderNodes(ArrowDown),
|
|
27
|
+
"arrow-left": () => renderNodes(ArrowLeft),
|
|
28
|
+
"arrow-right": () => renderNodes(ArrowRight),
|
|
29
|
+
"arrow-up-right": () => renderNodes(ArrowUpRight),
|
|
30
|
+
"file-text": () => renderNodes(FileText),
|
|
31
|
+
file: () => renderNodes(File),
|
|
32
|
+
folder: () => renderNodes(Folder),
|
|
33
|
+
"folder-open": () => renderNodes(FolderOpen),
|
|
34
|
+
copy: () => renderNodes(Copy),
|
|
35
|
+
x: () => renderNodes(X),
|
|
36
|
+
"chevron-down": () => renderNodes(ChevronDown),
|
|
37
|
+
"chevron-left": () => renderNodes(ChevronLeft),
|
|
38
|
+
"chevron-right": () => renderNodes(ChevronRight),
|
|
39
|
+
"chevron-up": () => renderNodes(ChevronUp),
|
|
40
|
+
search: () => renderNodes(Search),
|
|
41
|
+
plus: () => renderNodes(Plus),
|
|
42
|
+
minus: () => renderNodes(Minus),
|
|
43
|
+
"panel-left": () => renderNodes(PanelLeft),
|
|
44
|
+
list: () => renderNodes(List),
|
|
45
|
+
network: () => renderNodes(Network),
|
|
46
|
+
"external-link": () => renderNodes(ExternalLink),
|
|
47
|
+
brain: () => renderNodes(Brain),
|
|
48
|
+
eye: () => renderNodes(Eye),
|
|
49
|
+
wrench: () => renderNodes(Wrench),
|
|
50
|
+
"loader-circle": () => renderNodes(LoaderCircle),
|
|
51
|
+
square: () => renderNodes(Square),
|
|
52
|
+
mic: () => renderNodes(Mic),
|
|
53
|
+
"shield-check": () => renderNodes(ShieldCheck),
|
|
54
|
+
gauge: () => renderNodes(Gauge),
|
|
55
|
+
timer: () => renderNodes(Timer),
|
|
56
|
+
database: () => renderNodes(Database),
|
|
57
|
+
history: () => renderNodes(History),
|
|
131
58
|
};
|
|
132
59
|
export const iconNames = Object.keys(shapes);
|
|
133
60
|
export function Icon({ name, size = 18, className, label }) {
|
|
134
|
-
return (h(
|
|
61
|
+
return (h(IconFrame, { size: size, className: className, label: label, dataIcon: name }, shapes[name]()));
|
|
135
62
|
}
|
|
@@ -8,3 +8,4 @@ export { SearchIcon } from "./search.js";
|
|
|
8
8
|
export { TasksIcon } from "./tasks.js";
|
|
9
9
|
export { FileTypeIcon, classifyFileType, fileExtension, type FileTypeKind, type FileTypeIconProps, } from "./file-type-icon.js";
|
|
10
10
|
export { Icon, iconNames, type IconName, type IconProps } from "./icon.js";
|
|
11
|
+
export { IconSource, type IconNode, type IconSourceProps } from "./icon-source.js";
|
package/dist/src/icons/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "lucide";
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { chatTaskContract } from "../chat/task.js";
|
|
2
2
|
import { type Runtime, type RuntimePlugin } from "meowjsx";
|
|
3
3
|
import { pageFrameContract } from "../components/page-frame.js";
|
|
4
|
+
import { appBarContract } from "../components/app-bar.js";
|
|
4
5
|
import { regionLayoutContract } from "../components/region-layout.js";
|
|
5
6
|
import { imagePreviewContract } from "../components/image-preview.js";
|
|
6
7
|
import { segmentedControlContract, textShimmerContract, riskConfirmationContract, webBlockContract, jsonTreeContract, jsonBlockContract, imageLightboxContract, shortcutKeysContract, pathLabelContract, stateDotContract, hoverCardContract } from "../components/index.js";
|
|
7
8
|
import { menuContract, toastContract } from "../components/index.js";
|
|
8
9
|
import { outputBlockContract } from "../components/output-block.js";
|
|
9
10
|
import { terminalBlockContract, readBlockContract, diffBlockContract, searchBlockContract } from "../components/index.js";
|
|
10
|
-
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonBoundaryContract, spinnerContract, descriptionListContract, descriptionItemContract, tooltipContract, buttonContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, checkboxContract, switchContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, statusDotContract, statusContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract } from "../components/index.js";
|
|
11
|
-
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, chatHeaderContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract } from "../chat/index.js";
|
|
11
|
+
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonBoundaryContract, spinnerContract, descriptionListContract, descriptionItemContract, tooltipContract, buttonContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, actionRailContract, metaRowContract, checkboxContract, switchContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, statusDotContract, statusContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract } from "../components/index.js";
|
|
12
|
+
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, composerPanelContract, chatHeaderContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract } from "../chat/index.js";
|
|
12
13
|
import { assistantStepsContract } from "../chat/assistant-content.js";
|
|
13
14
|
import { assistantMarkdownContract } from "../chat/assistant-markdown.js";
|
|
14
15
|
import { assistantComposerContract } from "../chat/assistant-composer.js";
|
|
15
16
|
import { assistantQuestionContract } from "../chat/assistant-question.js";
|
|
16
17
|
export declare const MeowUIComponent: {
|
|
17
18
|
readonly PageFrame: "page-frame";
|
|
19
|
+
readonly AppBar: "app-bar";
|
|
18
20
|
readonly RegionLayout: "region-layout";
|
|
19
21
|
readonly Pill: "pill";
|
|
20
22
|
readonly ImagePreview: "image-preview";
|
|
@@ -62,6 +64,8 @@ export declare const MeowUIComponent: {
|
|
|
62
64
|
readonly Button: "button";
|
|
63
65
|
readonly IconButton: "icon-button";
|
|
64
66
|
readonly Toolbar: "toolbar";
|
|
67
|
+
readonly ActionRail: "action-rail";
|
|
68
|
+
readonly MetaRow: "meta-row";
|
|
65
69
|
readonly EmptyState: "empty-state";
|
|
66
70
|
readonly Card: "card";
|
|
67
71
|
readonly Badge: "badge";
|
|
@@ -95,6 +99,7 @@ export declare const MeowUIComponent: {
|
|
|
95
99
|
readonly ChatMessage: "chat-message";
|
|
96
100
|
readonly ChatMessageActions: "chat-message-actions";
|
|
97
101
|
readonly ChatComposer: "chat-composer";
|
|
102
|
+
readonly ComposerPanel: "composer-panel";
|
|
98
103
|
readonly ChatToolCall: "chat-tool-call";
|
|
99
104
|
readonly ChatTask: "chat-task";
|
|
100
105
|
readonly StatusDot: "status-dot";
|
|
@@ -121,11 +126,14 @@ export declare const MeowUIComponent: {
|
|
|
121
126
|
};
|
|
122
127
|
export declare const meowUIComponents: readonly [{
|
|
123
128
|
readonly name: "page-frame";
|
|
124
|
-
readonly parts: readonly ["root", "toolbar", "header", "body"];
|
|
129
|
+
readonly parts: readonly ["root", "toolbar", "header", "notice", "body", "footer"];
|
|
125
130
|
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
126
131
|
readonly variant: readonly ["page", "workspace"];
|
|
127
132
|
readonly scrollOwner: readonly ["content", "layout"];
|
|
128
133
|
}>>;
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "app-bar";
|
|
136
|
+
readonly parts: readonly ["root", "identity", "title", "status", "actions"];
|
|
129
137
|
}, {
|
|
130
138
|
readonly name: "region-layout";
|
|
131
139
|
readonly parts: readonly ["root", "back", "grid", "region", "content"];
|
|
@@ -231,6 +239,7 @@ export declare const meowUIComponents: readonly [{
|
|
|
231
239
|
readonly parts: readonly ["root", "title", "body", "actions"];
|
|
232
240
|
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
233
241
|
readonly tone: readonly ["info", "success", "warning", "danger"];
|
|
242
|
+
readonly layout: readonly ["block", "bar"];
|
|
234
243
|
}>>;
|
|
235
244
|
}, {
|
|
236
245
|
readonly name: "skeleton";
|
|
@@ -327,6 +336,16 @@ export declare const meowUIComponents: readonly [{
|
|
|
327
336
|
}, {
|
|
328
337
|
readonly name: "toolbar";
|
|
329
338
|
readonly parts: readonly ["root"];
|
|
339
|
+
}, {
|
|
340
|
+
readonly name: "action-rail";
|
|
341
|
+
readonly parts: readonly ["root", "leading", "trailing", "submit"];
|
|
342
|
+
}, {
|
|
343
|
+
readonly name: "meta-row";
|
|
344
|
+
readonly parts: readonly ["root", "item", "icon", "label", "separator", "progress"];
|
|
345
|
+
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
346
|
+
readonly align: readonly ["start", "center"];
|
|
347
|
+
readonly progressTone: readonly ["neutral", "accent"];
|
|
348
|
+
}>>;
|
|
330
349
|
}, {
|
|
331
350
|
readonly name: "empty-state";
|
|
332
351
|
readonly parts: readonly ["root", "illustration", "title", "description", "action"];
|
|
@@ -441,7 +460,11 @@ export declare const meowUIComponents: readonly [{
|
|
|
441
460
|
readonly parts: readonly ["root", "attachments", "field", "input", "hint", "actions", "trailing", "submit"];
|
|
442
461
|
readonly styleProps: import("meowcss/meowjsx").StylePropsBinding<import("meowcss").Options<{
|
|
443
462
|
readonly layout: readonly ["stacked", "inline", "hero"];
|
|
463
|
+
readonly surface: readonly ["default", "none"];
|
|
444
464
|
}>>;
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "composer-panel";
|
|
467
|
+
readonly parts: readonly ["root", "surface", "meta"];
|
|
445
468
|
}, {
|
|
446
469
|
readonly name: "chat-tool-call";
|
|
447
470
|
readonly parts: readonly ["root", "header", "icon", "label", "summary", "status", "chevron", "detail", "body", "input", "output", "outputSummary", "actions"];
|
|
@@ -518,6 +541,9 @@ declare module "meowjsx" {
|
|
|
518
541
|
"page-frame": {
|
|
519
542
|
parts: (typeof pageFrameContract.parts)[number];
|
|
520
543
|
};
|
|
544
|
+
"app-bar": {
|
|
545
|
+
parts: (typeof appBarContract.parts)[number];
|
|
546
|
+
};
|
|
521
547
|
"region-layout": {
|
|
522
548
|
parts: (typeof regionLayoutContract.parts)[number];
|
|
523
549
|
};
|
|
@@ -662,6 +688,12 @@ declare module "meowjsx" {
|
|
|
662
688
|
toolbar: {
|
|
663
689
|
parts: (typeof toolbarContract.parts)[number];
|
|
664
690
|
};
|
|
691
|
+
"action-rail": {
|
|
692
|
+
parts: (typeof actionRailContract.parts)[number];
|
|
693
|
+
};
|
|
694
|
+
"meta-row": {
|
|
695
|
+
parts: (typeof metaRowContract.parts)[number];
|
|
696
|
+
};
|
|
665
697
|
"empty-state": {
|
|
666
698
|
parts: (typeof emptyStateContract.parts)[number];
|
|
667
699
|
};
|
|
@@ -773,6 +805,9 @@ declare module "meowjsx" {
|
|
|
773
805
|
"chat-composer": {
|
|
774
806
|
parts: (typeof chatComposerContract.parts)[number];
|
|
775
807
|
};
|
|
808
|
+
"composer-panel": {
|
|
809
|
+
parts: (typeof composerPanelContract.parts)[number];
|
|
810
|
+
};
|
|
776
811
|
"chat-tool-call": {
|
|
777
812
|
parts: (typeof chatToolCallContract.parts)[number];
|
|
778
813
|
};
|
|
@@ -2,6 +2,7 @@ import { chatTaskContract } from "../chat/task.js";
|
|
|
2
2
|
import { defaultRuntime } from "meowjsx";
|
|
3
3
|
import { pillContract } from "../components/pill.js";
|
|
4
4
|
import { pageFrameContract } from "../components/page-frame.js";
|
|
5
|
+
import { appBarContract } from "../components/app-bar.js";
|
|
5
6
|
import { regionLayoutContract } from "../components/region-layout.js";
|
|
6
7
|
import { imagePreviewContract } from "../components/image-preview.js";
|
|
7
8
|
import { createStylePropsPlugin } from "meowcss/meowjsx";
|
|
@@ -9,14 +10,15 @@ import { segmentedControlContract, textShimmerContract, riskConfirmationContract
|
|
|
9
10
|
import { menuContract, toastContract } from "../components/index.js";
|
|
10
11
|
import { outputBlockContract } from "../components/output-block.js";
|
|
11
12
|
import { terminalBlockContract, readBlockContract, diffBlockContract, searchBlockContract, } from "../components/index.js";
|
|
12
|
-
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonContract, skeletonBoundaryContract, spinnerContract, stackContract, layoutItemContract, descriptionListContract, descriptionItemContract, inlineContract, gridContract, containerContract, cardHeaderContract, cardTitleContract, cardDescriptionContract, cardContentContract, cardFooterContract, cardActionContract, aspectRatioContract, tooltipContract, badgeContract, buttonContract, cardContract, dialogActionsContract, dialogContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, inputContract, checkboxContract, switchContract, selectContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, separatorContract, textareaContract, statusDotContract, statusContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract, } from "../components/index.js";
|
|
13
|
-
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, chatFrameContract, chatHeaderContract, chatMessageActionsContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract, } from "../chat/index.js";
|
|
13
|
+
import { codeBlockContract, itemContract, fieldGroupContract, tabsContract, breadcrumbContract, alertContract, skeletonContract, skeletonBoundaryContract, spinnerContract, stackContract, layoutItemContract, descriptionListContract, descriptionItemContract, inlineContract, gridContract, containerContract, cardHeaderContract, cardTitleContract, cardDescriptionContract, cardContentContract, cardFooterContract, cardActionContract, aspectRatioContract, tooltipContract, badgeContract, buttonContract, cardContract, dialogActionsContract, dialogContract, dialogHeaderContract, dialogPanelContract, emptyStateContract, fieldContract, iconButtonContract, toolbarContract, actionRailContract, metaRowContract, inputContract, checkboxContract, switchContract, selectContract, choiceSelectContract, choiceGroupContract, popoverContract, searchInputContract, pathPickerContract, disclosureContract, navItemContract, separatorContract, textareaContract, statusDotContract, statusContract, tagContract, processGroupContract, processStepContract, workCardContract, iconRailContract, railItemContract, railSectionContract, detailSectionContract, timelineContract, timelineItemContract, resourceLinkContract, pageHeaderContract, windowTitleBarContract, listGroupContract, listRowContract, resourceCardContract, drawerContract, } from "../components/index.js";
|
|
14
|
+
import { assistantViewContract, chatBubbleContract, chatConversationContract, chatAttachmentsContract, chatProcessContract, chatQuestionContract, chatSourcesContract, chatComposerContract, composerPanelContract, chatFrameContract, chatHeaderContract, chatMessageActionsContract, chatMessageContract, chatMessageListContract, chatStatusContract, chatToolCallContract, } from "../chat/index.js";
|
|
14
15
|
import { assistantStepsContract } from "../chat/assistant-content.js";
|
|
15
16
|
import { assistantMarkdownContract } from "../chat/assistant-markdown.js";
|
|
16
17
|
import { assistantComposerContract } from "../chat/assistant-composer.js";
|
|
17
18
|
import { assistantQuestionContract } from "../chat/assistant-question.js";
|
|
18
19
|
export const MeowUIComponent = {
|
|
19
20
|
PageFrame: pageFrameContract.name,
|
|
21
|
+
AppBar: appBarContract.name,
|
|
20
22
|
RegionLayout: regionLayoutContract.name,
|
|
21
23
|
Pill: pillContract.name,
|
|
22
24
|
ImagePreview: imagePreviewContract.name,
|
|
@@ -64,6 +66,8 @@ export const MeowUIComponent = {
|
|
|
64
66
|
Button: buttonContract.name,
|
|
65
67
|
IconButton: iconButtonContract.name,
|
|
66
68
|
Toolbar: toolbarContract.name,
|
|
69
|
+
ActionRail: actionRailContract.name,
|
|
70
|
+
MetaRow: metaRowContract.name,
|
|
67
71
|
EmptyState: emptyStateContract.name,
|
|
68
72
|
Card: cardContract.name,
|
|
69
73
|
Badge: badgeContract.name,
|
|
@@ -97,6 +101,7 @@ export const MeowUIComponent = {
|
|
|
97
101
|
ChatMessage: chatMessageContract.name,
|
|
98
102
|
ChatMessageActions: chatMessageActionsContract.name,
|
|
99
103
|
ChatComposer: chatComposerContract.name,
|
|
104
|
+
ComposerPanel: composerPanelContract.name,
|
|
100
105
|
ChatToolCall: chatToolCallContract.name,
|
|
101
106
|
ChatTask: chatTaskContract.name,
|
|
102
107
|
StatusDot: statusDotContract.name,
|
|
@@ -123,6 +128,7 @@ export const MeowUIComponent = {
|
|
|
123
128
|
};
|
|
124
129
|
export const meowUIComponents = [
|
|
125
130
|
pageFrameContract,
|
|
131
|
+
appBarContract,
|
|
126
132
|
regionLayoutContract,
|
|
127
133
|
pillContract,
|
|
128
134
|
imagePreviewContract,
|
|
@@ -177,6 +183,8 @@ export const meowUIComponents = [
|
|
|
177
183
|
buttonContract,
|
|
178
184
|
iconButtonContract,
|
|
179
185
|
toolbarContract,
|
|
186
|
+
actionRailContract,
|
|
187
|
+
metaRowContract,
|
|
180
188
|
emptyStateContract,
|
|
181
189
|
cardContract,
|
|
182
190
|
badgeContract,
|
|
@@ -210,6 +218,7 @@ export const meowUIComponents = [
|
|
|
210
218
|
chatMessageContract,
|
|
211
219
|
chatMessageActionsContract,
|
|
212
220
|
chatComposerContract,
|
|
221
|
+
composerPanelContract,
|
|
213
222
|
chatToolCallContract,
|
|
214
223
|
chatTaskContract,
|
|
215
224
|
statusDotContract,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export function executionStateLabel(state) {
|
|
2
2
|
switch (state) {
|
|
3
3
|
case "queued":
|
|
4
|
-
return "
|
|
4
|
+
return "Queued";
|
|
5
5
|
case "running":
|
|
6
|
-
return "
|
|
6
|
+
return "Running";
|
|
7
7
|
case "waiting":
|
|
8
|
-
return "
|
|
8
|
+
return "Waiting";
|
|
9
9
|
case "error":
|
|
10
|
-
return "
|
|
10
|
+
return "Error";
|
|
11
11
|
case "cancelled":
|
|
12
|
-
return "
|
|
12
|
+
return "Canceled";
|
|
13
13
|
case "unknown":
|
|
14
|
-
return "
|
|
14
|
+
return "Unconfirmed result";
|
|
15
15
|
default:
|
|
16
|
-
return "
|
|
16
|
+
return "Completed";
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
export function executionStateTone(state) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const composerPanelStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { composerPanelContract } from "../../chat/composer-panel.js";
|
|
4
|
+
import { chatComposerContract } from "../../chat/composer.js";
|
|
5
|
+
export const composerPanelStyles = css `
|
|
6
|
+
${partSelector(composerPanelContract, "root")} {
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: ${uiTokens.spaceGroup};
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
font-family: ${uiTokens.font};
|
|
12
|
+
color: ${uiTokens.foreground};
|
|
13
|
+
}
|
|
14
|
+
${partSelector(composerPanelContract, "surface")} {
|
|
15
|
+
min-width: 0;
|
|
16
|
+
padding: 12px 14px 10px;
|
|
17
|
+
border: 1px solid ${uiTokens.borderSoft};
|
|
18
|
+
border-radius: 24px;
|
|
19
|
+
background: ${uiTokens.surface};
|
|
20
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
|
|
21
|
+
transition: border-color ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
22
|
+
}
|
|
23
|
+
${partSelector(composerPanelContract, "surface")}:focus-within {
|
|
24
|
+
border-color: ${uiTokens.border};
|
|
25
|
+
}
|
|
26
|
+
${partSelector(composerPanelContract, "meta")} {
|
|
27
|
+
min-width: 0;
|
|
28
|
+
padding: 2px 8px 0;
|
|
29
|
+
}
|
|
30
|
+
${partSelector(composerPanelContract, "surface")} ${partSelector(chatComposerContract, "submit")} {
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (pointer: coarse) {
|
|
35
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] ${partSelector(chatComposerContract, "root")}[data-meowui-part] ${partSelector(chatComposerContract, "actions")}[data-meowui-part] button,
|
|
36
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] ${partSelector(chatComposerContract, "root")}[data-meowui-part] ${partSelector(chatComposerContract, "submit")} {
|
|
37
|
+
min-width: 44px;
|
|
38
|
+
min-height: 44px;
|
|
39
|
+
}
|
|
40
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] ${partSelector(chatComposerContract, "root")}[data-meowui-part] ${partSelector(chatComposerContract, "input")} {
|
|
41
|
+
min-height: 44px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
@@ -199,7 +199,7 @@ export const chatComposerStyles = css `
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
${partSelector(chatComposerContract, "input")}::placeholder {
|
|
202
|
-
color: ${uiTokens.
|
|
202
|
+
color: ${uiTokens.placeholder};
|
|
203
203
|
font-size: ${uiTokens.fontBody};
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -313,11 +313,14 @@ export const chatComposerStyles = css `
|
|
|
313
313
|
transition-duration: 40ms;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
/* A compact writing surface grows with the draft, not with an empty tools row.
|
|
316
|
+
/* A compact writing surface grows with the draft, not with an empty tools row.
|
|
317
|
+
The inline row keeps the one-line text and the send action on the optical
|
|
318
|
+
center: equal block padding around the 24px line, a symmetric action row, and
|
|
319
|
+
no base-layout nudge on the submit button. */
|
|
317
320
|
${partSelector(chatComposerContract, "root")} {
|
|
318
321
|
${chatComposerOptions.when({ layout: "inline" })} {
|
|
319
322
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
320
|
-
align-items:
|
|
323
|
+
align-items: center;
|
|
321
324
|
padding: ${uiTokens.controlPaddingInline} ${uiTokens.spaceSection};
|
|
322
325
|
}
|
|
323
326
|
}
|
|
@@ -326,13 +329,18 @@ export const chatComposerStyles = css `
|
|
|
326
329
|
grid-column: 1;
|
|
327
330
|
grid-row: 1;
|
|
328
331
|
min-height: ${uiTokens.controlLarge};
|
|
329
|
-
padding-block:
|
|
332
|
+
padding-block: 8px;
|
|
330
333
|
}
|
|
331
334
|
|
|
332
335
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "actions")} {
|
|
333
336
|
grid-column: 2;
|
|
334
337
|
grid-row: 1;
|
|
335
338
|
flex-wrap: nowrap;
|
|
339
|
+
padding-block: 4px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "submit")} {
|
|
343
|
+
transform: none;
|
|
336
344
|
}
|
|
337
345
|
|
|
338
346
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "attachments")} {
|
|
@@ -405,14 +413,18 @@ export const chatComposerStyles = css `
|
|
|
405
413
|
color: ${uiTokens.foreground};
|
|
406
414
|
}
|
|
407
415
|
|
|
408
|
-
/* The model
|
|
416
|
+
/* The model and its supporting choices stay beside send, not stranded after attach. */
|
|
409
417
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")} > ${partSelector(chatComposerContract, "trailing")} {
|
|
410
|
-
margin-left:
|
|
418
|
+
margin-left: auto;
|
|
411
419
|
min-width: 0;
|
|
412
420
|
max-width: min(360px, 70%);
|
|
413
421
|
}
|
|
414
422
|
|
|
415
423
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")} > ${partSelector(chatComposerContract, "submit")} {
|
|
424
|
+
margin-left: 0;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")}:not(:has(> ${partSelector(chatComposerContract, "trailing")})) > ${partSelector(chatComposerContract, "submit")} {
|
|
416
428
|
margin-left: auto;
|
|
417
429
|
}
|
|
418
430
|
|
|
@@ -517,4 +529,23 @@ export const chatComposerStyles = css `
|
|
|
517
529
|
border-radius: 50%;
|
|
518
530
|
}
|
|
519
531
|
}
|
|
532
|
+
|
|
533
|
+
/* A composing panel owns the surface; the composer then contributes only its
|
|
534
|
+
editor and action row, without a second chrome or padding layer. */
|
|
535
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("surface")}="none"] {
|
|
536
|
+
padding: 0;
|
|
537
|
+
border: 0;
|
|
538
|
+
border-radius: 0;
|
|
539
|
+
background: transparent;
|
|
540
|
+
box-shadow: none;
|
|
541
|
+
}
|
|
542
|
+
@media (max-width: 768px) {
|
|
543
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("surface")}="none"] {
|
|
544
|
+
padding: 0;
|
|
545
|
+
border: 0;
|
|
546
|
+
border-radius: 0;
|
|
547
|
+
background: transparent;
|
|
548
|
+
box-shadow: none;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
520
551
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const actionRailStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { actionRailContract } from "../../components/action-rail.js";
|
|
4
|
+
import { buttonContract } from "../../components/button.js";
|
|
5
|
+
export const actionRailStyles = css `
|
|
6
|
+
${partSelector(actionRailContract, "root")} {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: ${uiTokens.spaceGroup};
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
${partSelector(actionRailContract, "leading")} {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 6px;
|
|
16
|
+
flex: 0 1 auto;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
min-width: min-content;
|
|
19
|
+
}
|
|
20
|
+
${partSelector(actionRailContract, "trailing")} {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: flex-end;
|
|
24
|
+
flex: 1 1 auto;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
gap: 6px;
|
|
27
|
+
min-width: min-content;
|
|
28
|
+
}
|
|
29
|
+
:is(${partSelector(actionRailContract, "leading")}, ${partSelector(actionRailContract, "trailing")}) > ${partSelector(buttonContract, "root")} {
|
|
30
|
+
min-width: 0;
|
|
31
|
+
max-width: 100%;
|
|
32
|
+
white-space: normal;
|
|
33
|
+
overflow-wrap: anywhere;
|
|
34
|
+
}
|
|
35
|
+
${partSelector(actionRailContract, "submit")} {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
flex: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (pointer: coarse) {
|
|
42
|
+
${partSelector(actionRailContract, "root")} button {
|
|
43
|
+
min-width: 44px;
|
|
44
|
+
min-height: 44px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|