meowtail 0.2.0-alpha.0 → 0.2.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/AGENT-COMPONENTS.md +65 -65
- package/ASSISTANT.md +35 -35
- package/JSON.md +11 -11
- package/README.md +413 -385
- package/THIRD_PARTY_NOTICES.md +8 -0
- package/dist/src/chat/assistant-composer.js +58 -98
- package/dist/src/chat/assistant-content.d.ts +1 -3
- package/dist/src/chat/assistant-content.js +36 -44
- package/dist/src/chat/assistant-markdown.js +4 -8
- package/dist/src/chat/assistant-question.js +13 -14
- package/dist/src/chat/assistant.js +27 -26
- package/dist/src/chat/attachments.d.ts +3 -2
- package/dist/src/chat/attachments.js +43 -34
- package/dist/src/chat/composer-panel.d.ts +16 -0
- package/dist/src/chat/composer-panel.js +11 -0
- package/dist/src/chat/composer.d.ts +7 -3
- package/dist/src/chat/composer.js +71 -22
- 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/task.js +9 -15
- package/dist/src/chat/tool-call.js +7 -14
- package/dist/src/components/accordion.d.ts +24 -0
- package/dist/src/components/accordion.js +50 -0
- 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/avatar.d.ts +22 -0
- package/dist/src/components/avatar.js +44 -0
- package/dist/src/components/breadcrumb.js +1 -1
- package/dist/src/components/checkbox.d.ts +6 -2
- package/dist/src/components/checkbox.js +36 -8
- package/dist/src/components/choice-group.d.ts +1 -0
- package/dist/src/components/choice-group.js +12 -17
- package/dist/src/components/choice-select.d.ts +3 -1
- package/dist/src/components/choice-select.js +56 -54
- package/dist/src/components/code-block.d.ts +3 -3
- package/dist/src/components/code-block.js +31 -27
- package/dist/src/components/context-menu.d.ts +16 -0
- package/dist/src/components/context-menu.js +49 -0
- package/dist/src/components/credential-source.js +12 -12
- package/dist/src/components/diff-block.js +1 -1
- package/dist/src/components/disclosure.d.ts +2 -2
- package/dist/src/components/disclosure.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 +12 -0
- package/dist/src/components/index.js +12 -0
- package/dist/src/components/json-block.js +2 -2
- package/dist/src/components/json-tree.js +3 -3
- package/dist/src/components/link.d.ts +13 -0
- package/dist/src/components/link.js +9 -0
- package/dist/src/components/list-group.d.ts +1 -1
- package/dist/src/components/menu-button.d.ts +13 -0
- package/dist/src/components/menu-button.js +10 -0
- package/dist/src/components/menu.d.ts +4 -0
- package/dist/src/components/menu.js +3 -3
- package/dist/src/components/meta-row.d.ts +34 -0
- package/dist/src/components/meta-row.js +61 -0
- package/dist/src/components/nav-item.js +2 -5
- package/dist/src/components/number-input.d.ts +29 -0
- package/dist/src/components/number-input.js +137 -0
- package/dist/src/components/output-block.js +8 -15
- 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 +9 -14
- package/dist/src/components/pill.js +2 -5
- package/dist/src/components/popover.js +4 -4
- package/dist/src/components/process-group.d.ts +2 -2
- package/dist/src/components/progress.d.ts +15 -0
- package/dist/src/components/progress.js +12 -0
- 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/risk-confirmation.js +2 -5
- package/dist/src/components/search-block.js +2 -3
- package/dist/src/components/segmented-control.js +3 -3
- package/dist/src/components/skeleton-boundary.js +4 -7
- package/dist/src/components/slider.d.ts +22 -0
- package/dist/src/components/slider.js +49 -0
- package/dist/src/components/table.d.ts +41 -0
- package/dist/src/components/table.js +146 -0
- package/dist/src/components/tabs.d.ts +1 -1
- package/dist/src/components/tabs.js +11 -20
- package/dist/src/components/terminal-block.js +6 -6
- package/dist/src/components/text-shimmer.js +2 -5
- 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 +99 -5
- package/dist/src/registry/index.js +28 -3
- 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 +47 -0
- package/dist/src/theme/chat/composer.styles.js +69 -60
- package/dist/src/theme/chat/task.styles.js +5 -6
- package/dist/src/theme/components/accordion.styles.d.ts +1 -0
- package/dist/src/theme/components/accordion.styles.js +63 -0
- 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/avatar.styles.d.ts +1 -0
- package/dist/src/theme/components/avatar.styles.js +52 -0
- package/dist/src/theme/components/button.styles.js +9 -0
- package/dist/src/theme/components/card.styles.js +2 -0
- package/dist/src/theme/components/code-block.styles.js +7 -0
- package/dist/src/theme/components/context-menu.styles.d.ts +1 -0
- package/dist/src/theme/components/context-menu.styles.js +14 -0
- package/dist/src/theme/components/dialog.styles.js +7 -0
- package/dist/src/theme/components/link.styles.d.ts +1 -0
- package/dist/src/theme/components/link.styles.js +33 -0
- package/dist/src/theme/components/list-group.styles.js +1 -0
- package/dist/src/theme/components/menu.styles.js +9 -3
- 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/number-input.styles.d.ts +1 -0
- package/dist/src/theme/components/number-input.styles.js +106 -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/progress.styles.d.ts +1 -0
- package/dist/src/theme/components/progress.styles.js +71 -0
- package/dist/src/theme/components/resource-card.styles.js +7 -0
- package/dist/src/theme/components/slider.styles.d.ts +1 -0
- package/dist/src/theme/components/slider.styles.js +129 -0
- package/dist/src/theme/components/table.styles.d.ts +1 -0
- package/dist/src/theme/components/table.styles.js +156 -0
- package/dist/src/theme/components/tag.styles.js +3 -3
- package/dist/src/theme/components/toggle.styles.js +10 -0
- 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 +24 -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 +9 -4
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
17
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] > ${partSelector(chatComposerContract, "root")} > ${partSelector(chatComposerContract, "surface")} {
|
|
18
|
+
min-width: 0;
|
|
19
|
+
padding: 12px 14px 10px;
|
|
20
|
+
border: 1px solid ${uiTokens.borderSoft};
|
|
21
|
+
border-radius: 24px;
|
|
22
|
+
background: ${uiTokens.surface};
|
|
23
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
|
|
24
|
+
transition: border-color ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
25
|
+
}
|
|
26
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] > ${partSelector(chatComposerContract, "root")} > ${partSelector(chatComposerContract, "surface")}:focus-within {
|
|
27
|
+
border-color: ${uiTokens.border};
|
|
28
|
+
}
|
|
29
|
+
${partSelector(composerPanelContract, "meta")} {
|
|
30
|
+
min-width: 0;
|
|
31
|
+
padding: 2px 8px 0;
|
|
32
|
+
}
|
|
33
|
+
${partSelector(composerPanelContract, "surface")} ${partSelector(chatComposerContract, "submit")} {
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (pointer: coarse) {
|
|
38
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] ${partSelector(chatComposerContract, "root")}[data-meowui-part] ${partSelector(chatComposerContract, "actions")}[data-meowui-part] button,
|
|
39
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] ${partSelector(chatComposerContract, "root")}[data-meowui-part] ${partSelector(chatComposerContract, "submit")} {
|
|
40
|
+
min-width: 44px;
|
|
41
|
+
min-height: 44px;
|
|
42
|
+
}
|
|
43
|
+
${partSelector(composerPanelContract, "surface")}[data-meowui-part] ${partSelector(chatComposerContract, "root")}[data-meowui-part] ${partSelector(chatComposerContract, "input")} {
|
|
44
|
+
min-height: 44px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
@@ -82,7 +82,20 @@ export const chatComposerStyles = css `
|
|
|
82
82
|
background-color: ${uiTokens.hover};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/* The form groups the writing surface and its external supporting instructions. */
|
|
85
86
|
${partSelector(chatComposerContract, "root")} {
|
|
87
|
+
position: relative;
|
|
88
|
+
display: grid;
|
|
89
|
+
grid-template-columns: minmax(0, 1fr);
|
|
90
|
+
gap: 6px;
|
|
91
|
+
min-width: 0;
|
|
92
|
+
padding: 0;
|
|
93
|
+
border: 0;
|
|
94
|
+
background: transparent;
|
|
95
|
+
box-shadow: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
${partSelector(chatComposerContract, "surface")} {
|
|
86
99
|
display: grid;
|
|
87
100
|
grid-template-columns: minmax(0, 1fr);
|
|
88
101
|
gap: 12px;
|
|
@@ -121,27 +134,20 @@ export const chatComposerStyles = css `
|
|
|
121
134
|
display: none;
|
|
122
135
|
}
|
|
123
136
|
|
|
124
|
-
${partSelector(chatComposerContract, "
|
|
137
|
+
${partSelector(chatComposerContract, "surface")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
|
|
125
138
|
:has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
|
|
126
139
|
)
|
|
127
140
|
${partSelector(chatComposerContract, "input")} {
|
|
128
141
|
grid-row: 2;
|
|
129
142
|
}
|
|
130
143
|
|
|
131
|
-
${partSelector(chatComposerContract, "
|
|
144
|
+
${partSelector(chatComposerContract, "surface")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
|
|
132
145
|
:has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
|
|
133
146
|
)
|
|
134
147
|
${partSelector(chatComposerContract, "actions")} {
|
|
135
148
|
grid-row: 3;
|
|
136
149
|
}
|
|
137
150
|
|
|
138
|
-
${partSelector(chatComposerContract, "root")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
|
|
139
|
-
:has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
|
|
140
|
-
)
|
|
141
|
-
${partSelector(chatComposerContract, "hint")} {
|
|
142
|
-
grid-row: 4;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
151
|
${partSelector(chatComposerContract, "attachments")} ${partSelector(chatAttachmentsContract, "file")} {
|
|
146
152
|
min-height: 64px;
|
|
147
153
|
}
|
|
@@ -167,13 +173,14 @@ export const chatComposerStyles = css `
|
|
|
167
173
|
caret-color: ${uiTokens.focus};
|
|
168
174
|
}
|
|
169
175
|
|
|
170
|
-
|
|
176
|
+
/* Focus paint stays inside the surface when an embedding form clips overflow. */
|
|
177
|
+
${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:focus:not(:disabled)) {
|
|
171
178
|
outline: 1px solid color-mix(in srgb, ${uiTokens.primary} 45%, transparent);
|
|
172
|
-
outline-offset: 1px;
|
|
179
|
+
outline-offset: -1px;
|
|
173
180
|
}
|
|
174
181
|
|
|
175
182
|
@media (hover: hover) {
|
|
176
|
-
${partSelector(chatComposerContract, "
|
|
183
|
+
${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:hover:not(:disabled):not(:focus)) {
|
|
177
184
|
border-color: transparent;
|
|
178
185
|
}
|
|
179
186
|
}
|
|
@@ -187,9 +194,9 @@ export const chatComposerStyles = css `
|
|
|
187
194
|
outline: none;
|
|
188
195
|
}
|
|
189
196
|
|
|
190
|
-
${partSelector(chatComposerContract, "
|
|
197
|
+
${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:focus-visible) {
|
|
191
198
|
outline: 2px solid ${uiTokens.focus};
|
|
192
|
-
outline-offset: 2px;
|
|
199
|
+
outline-offset: -2px;
|
|
193
200
|
}
|
|
194
201
|
|
|
195
202
|
@supports (field-sizing: content) {
|
|
@@ -199,7 +206,7 @@ export const chatComposerStyles = css `
|
|
|
199
206
|
}
|
|
200
207
|
|
|
201
208
|
${partSelector(chatComposerContract, "input")}::placeholder {
|
|
202
|
-
color: ${uiTokens.
|
|
209
|
+
color: ${uiTokens.placeholder};
|
|
203
210
|
font-size: ${uiTokens.fontBody};
|
|
204
211
|
}
|
|
205
212
|
|
|
@@ -208,7 +215,7 @@ export const chatComposerStyles = css `
|
|
|
208
215
|
color: ${uiTokens.subtleForeground};
|
|
209
216
|
}
|
|
210
217
|
|
|
211
|
-
${partSelector(chatComposerContract, "
|
|
218
|
+
${partSelector(chatComposerContract, "surface")}:has(${partSelector(chatComposerContract, "input")}:disabled) {
|
|
212
219
|
background: ${uiTokens.surfaceMuted};
|
|
213
220
|
box-shadow: none;
|
|
214
221
|
}
|
|
@@ -292,7 +299,7 @@ export const chatComposerStyles = css `
|
|
|
292
299
|
}
|
|
293
300
|
|
|
294
301
|
@media (max-width: 680px) {
|
|
295
|
-
${partSelector(chatComposerContract, "
|
|
302
|
+
${partSelector(chatComposerContract, "surface")} {
|
|
296
303
|
grid-template-columns: minmax(0, 1fr);
|
|
297
304
|
padding: 8px 0 0;
|
|
298
305
|
}
|
|
@@ -302,62 +309,50 @@ export const chatComposerStyles = css `
|
|
|
302
309
|
}
|
|
303
310
|
}
|
|
304
311
|
|
|
305
|
-
@media (max-width: 760px) {
|
|
306
|
-
${partSelector(chatComposerContract, "hint")} {
|
|
307
|
-
position: absolute;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
312
|
${partSelector(chatComposerContract, "submit")}:active:not(:disabled) {
|
|
312
313
|
box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
|
|
313
314
|
transition-duration: 40ms;
|
|
314
315
|
}
|
|
315
316
|
|
|
316
|
-
/* A compact writing surface grows with the draft, not with an empty tools row.
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
317
|
+
/* A compact writing surface grows with the draft, not with an empty tools row.
|
|
318
|
+
The inline row keeps the one-line text and the send action on the optical
|
|
319
|
+
center: equal block padding around the 24px line, a symmetric action row, and
|
|
320
|
+
no base-layout nudge on the submit button. */
|
|
321
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] > ${partSelector(chatComposerContract, "surface")} {
|
|
322
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
323
|
+
align-items: center;
|
|
324
|
+
padding: ${uiTokens.controlPaddingInline} ${uiTokens.spaceSection};
|
|
323
325
|
}
|
|
324
326
|
|
|
325
327
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "input")} {
|
|
326
328
|
grid-column: 1;
|
|
327
329
|
grid-row: 1;
|
|
328
330
|
min-height: ${uiTokens.controlLarge};
|
|
329
|
-
padding-block:
|
|
331
|
+
padding-block: 8px;
|
|
330
332
|
}
|
|
331
333
|
|
|
332
334
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "actions")} {
|
|
333
335
|
grid-column: 2;
|
|
334
336
|
grid-row: 1;
|
|
335
337
|
flex-wrap: nowrap;
|
|
338
|
+
padding-block: 4px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "submit")} {
|
|
342
|
+
transform: none;
|
|
336
343
|
}
|
|
337
344
|
|
|
338
345
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] ${partSelector(chatComposerContract, "attachments")} {
|
|
339
346
|
grid-column: 1 / -1;
|
|
340
347
|
}
|
|
341
348
|
|
|
342
|
-
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"]:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
|
|
349
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"] > ${partSelector(chatComposerContract, "surface")}:has(> ${partSelector(chatComposerContract, "attachments")}:not(:empty)):not(
|
|
343
350
|
:has(> ${partSelector(chatComposerContract, "attachments")} > [hidden]:only-child)
|
|
344
351
|
)
|
|
345
352
|
:is(${partSelector(chatComposerContract, "input")}, ${partSelector(chatComposerContract, "actions")}) {
|
|
346
353
|
grid-row: 2;
|
|
347
354
|
}
|
|
348
355
|
|
|
349
|
-
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"]:focus-within ${partSelector(chatComposerContract, "hint")} {
|
|
350
|
-
position: static;
|
|
351
|
-
grid-column: 1 / -1;
|
|
352
|
-
grid-row: 3;
|
|
353
|
-
width: auto;
|
|
354
|
-
height: auto;
|
|
355
|
-
clip-path: none;
|
|
356
|
-
white-space: normal;
|
|
357
|
-
color: ${uiTokens.mutedForeground};
|
|
358
|
-
font-size: ${uiTokens.fontCaption};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
356
|
@media (pointer: coarse) {
|
|
362
357
|
${partSelector(chatComposerContract, "input")} {
|
|
363
358
|
font-size: max(16px, ${uiTokens.fontBody});
|
|
@@ -365,14 +360,14 @@ export const chatComposerStyles = css `
|
|
|
365
360
|
}
|
|
366
361
|
|
|
367
362
|
@media (prefers-reduced-motion: reduce) {
|
|
368
|
-
${partSelector(chatComposerContract, "
|
|
363
|
+
${partSelector(chatComposerContract, "surface")},
|
|
369
364
|
${partSelector(chatComposerContract, "input")},
|
|
370
365
|
${partSelector(chatComposerContract, "submit")} {
|
|
371
366
|
transition: none;
|
|
372
367
|
}
|
|
373
368
|
}
|
|
374
369
|
|
|
375
|
-
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] {
|
|
370
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] > ${partSelector(chatComposerContract, "surface")} {
|
|
376
371
|
position: relative;
|
|
377
372
|
gap: 4px;
|
|
378
373
|
padding: 12px 12px 10px;
|
|
@@ -405,14 +400,18 @@ export const chatComposerStyles = css `
|
|
|
405
400
|
color: ${uiTokens.foreground};
|
|
406
401
|
}
|
|
407
402
|
|
|
408
|
-
/* The model
|
|
403
|
+
/* The model and its supporting choices stay beside send, not stranded after attach. */
|
|
409
404
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")} > ${partSelector(chatComposerContract, "trailing")} {
|
|
410
|
-
margin-left:
|
|
405
|
+
margin-left: auto;
|
|
411
406
|
min-width: 0;
|
|
412
407
|
max-width: min(360px, 70%);
|
|
413
408
|
}
|
|
414
409
|
|
|
415
410
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")} > ${partSelector(chatComposerContract, "submit")} {
|
|
411
|
+
margin-left: 0;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")}:not(:has(> ${partSelector(chatComposerContract, "trailing")})) > ${partSelector(chatComposerContract, "submit")} {
|
|
416
415
|
margin-left: auto;
|
|
417
416
|
}
|
|
418
417
|
|
|
@@ -435,29 +434,27 @@ export const chatComposerStyles = css `
|
|
|
435
434
|
opacity: 0.35;
|
|
436
435
|
}
|
|
437
436
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
437
|
+
/* Supporting text is outside the writing surface and never joins its action grid. */
|
|
438
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] > ${partSelector(chatComposerContract, "hint")},
|
|
439
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="inline"]:focus-within > ${partSelector(chatComposerContract, "hint")} {
|
|
440
|
+
position: static;
|
|
441
|
+
min-width: 0;
|
|
442
442
|
width: auto;
|
|
443
443
|
height: auto;
|
|
444
|
+
padding-inline: 6px;
|
|
444
445
|
overflow: visible;
|
|
445
446
|
clip-path: none;
|
|
447
|
+
white-space: normal;
|
|
448
|
+
overflow-wrap: anywhere;
|
|
446
449
|
color: ${layerTokens.faint};
|
|
447
450
|
font-size: 12px;
|
|
448
451
|
line-height: 18px;
|
|
449
|
-
pointer-events:
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
@media (max-width: 680px) {
|
|
453
|
-
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "hint")} {
|
|
454
|
-
display: none;
|
|
455
|
-
}
|
|
452
|
+
pointer-events: auto;
|
|
456
453
|
}
|
|
457
454
|
|
|
458
455
|
/* A phone writes on one row: attach, text, send. The model choice keeps a quiet row beneath. */
|
|
459
456
|
@media (max-width: 768px) {
|
|
460
|
-
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] {
|
|
457
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] > ${partSelector(chatComposerContract, "surface")} {
|
|
461
458
|
display: grid;
|
|
462
459
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
463
460
|
align-items: end;
|
|
@@ -501,6 +498,7 @@ export const chatComposerStyles = css `
|
|
|
501
498
|
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("layout")}="stacked"] ${partSelector(chatComposerContract, "actions")} > ${partSelector(chatComposerContract, "trailing")} {
|
|
502
499
|
grid-column: 2 / -1;
|
|
503
500
|
grid-row: 3;
|
|
501
|
+
margin-left: 0;
|
|
504
502
|
max-width: none;
|
|
505
503
|
padding-top: 2px;
|
|
506
504
|
justify-content: flex-start;
|
|
@@ -516,5 +514,16 @@ export const chatComposerStyles = css `
|
|
|
516
514
|
margin-left: 0;
|
|
517
515
|
border-radius: 50%;
|
|
518
516
|
}
|
|
517
|
+
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* Explicit bare embedding removes only the writing surface chrome. The form
|
|
521
|
+
and external supporting instructions keep their normal layout. */
|
|
522
|
+
${partSelector(chatComposerContract, "root")}[${chatComposerOptions.attribute("surface")}="none"] > ${partSelector(chatComposerContract, "surface")} {
|
|
523
|
+
padding: 0;
|
|
524
|
+
border: 0;
|
|
525
|
+
border-radius: 0;
|
|
526
|
+
background: transparent;
|
|
527
|
+
box-shadow: none;
|
|
519
528
|
}
|
|
520
529
|
`;
|
|
@@ -51,13 +51,12 @@ export const chatTaskStyles = css `
|
|
|
51
51
|
color: ${uiTokens.mutedForeground};
|
|
52
52
|
font-size: ${uiTokens.fontCaption};
|
|
53
53
|
}
|
|
54
|
-
${part("
|
|
55
|
-
display: block;
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
width: 100%;
|
|
54
|
+
${part("progressLabel")} {
|
|
58
55
|
min-width: 0;
|
|
59
|
-
height:
|
|
60
|
-
|
|
56
|
+
line-height: 1.4;
|
|
57
|
+
}
|
|
58
|
+
${part("progressBar")} {
|
|
59
|
+
display: contents;
|
|
61
60
|
}
|
|
62
61
|
${part("body")} {
|
|
63
62
|
display: grid;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const accordionStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { accordionContract } from "../../components/accordion.js";
|
|
4
|
+
import { disclosureContract } from "../../components/disclosure.js";
|
|
5
|
+
import { layerTokens, lineTokens, radiusTokens } from "../palette.js";
|
|
6
|
+
const root = partSelector(accordionContract, "root");
|
|
7
|
+
const item = partSelector(accordionContract, "item");
|
|
8
|
+
const disclosure = partSelector(disclosureContract, "root");
|
|
9
|
+
const summary = partSelector(disclosureContract, "summary");
|
|
10
|
+
const icon = partSelector(disclosureContract, "icon");
|
|
11
|
+
const content = partSelector(disclosureContract, "content");
|
|
12
|
+
export const accordionStyles = css `
|
|
13
|
+
${root} {
|
|
14
|
+
display: grid;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
border: ${lineTokens.width} solid ${lineTokens.edge};
|
|
18
|
+
border-radius: ${radiusTokens.card};
|
|
19
|
+
background: ${layerTokens.raised};
|
|
20
|
+
color: ${uiTokens.foreground};
|
|
21
|
+
}
|
|
22
|
+
${item} + ${item} {
|
|
23
|
+
border-top: ${lineTokens.width} solid ${lineTokens.divider};
|
|
24
|
+
}
|
|
25
|
+
${root} ${disclosure} {
|
|
26
|
+
font-size: ${uiTokens.fontBody};
|
|
27
|
+
}
|
|
28
|
+
${root} ${summary} {
|
|
29
|
+
min-height: 44px;
|
|
30
|
+
padding: 12px 16px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
color: ${uiTokens.foreground};
|
|
33
|
+
border-radius: 0;
|
|
34
|
+
transition:
|
|
35
|
+
color ${uiTokens.durationResponse} ${uiTokens.ease},
|
|
36
|
+
background-color ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
37
|
+
}
|
|
38
|
+
${root} ${icon} {
|
|
39
|
+
color: ${uiTokens.mutedForeground};
|
|
40
|
+
}
|
|
41
|
+
@media (hover: hover) {
|
|
42
|
+
${root} ${summary}:hover {
|
|
43
|
+
background: ${layerTokens.sunken};
|
|
44
|
+
color: ${uiTokens.foreground};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
${root} ${content} {
|
|
48
|
+
padding: 0 16px 16px 38px;
|
|
49
|
+
color: ${uiTokens.mutedForeground};
|
|
50
|
+
line-height: ${uiTokens.leading};
|
|
51
|
+
}
|
|
52
|
+
${root} ${content} > :first-child {
|
|
53
|
+
margin-block-start: 0;
|
|
54
|
+
}
|
|
55
|
+
${root} ${content} > :last-child {
|
|
56
|
+
margin-block-end: 0;
|
|
57
|
+
}
|
|
58
|
+
@media (prefers-reduced-motion: reduce) {
|
|
59
|
+
${root} ${summary} {
|
|
60
|
+
transition: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
@@ -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
|
+
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
2
|
import { alertTokens, uiTokens } from "../tokens.js";
|
|
3
|
-
import { alertContract } from "../../components/alert.js";
|
|
3
|
+
import { alertContract, alertOptions } from "../../components/alert.js";
|
|
4
4
|
export const alertStyles = css `
|
|
5
5
|
${partSelector(alertContract, "root")} {
|
|
6
6
|
display: grid;
|
|
@@ -25,4 +25,45 @@ export const alertStyles = css `
|
|
|
25
25
|
flex-wrap: wrap;
|
|
26
26
|
gap: ${uiTokens.spaceGroup};
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
/* A page notice is one compact line with an optional end action; the block
|
|
30
|
+
alert keeps the title/body/action stack for outcomes that need reading. */
|
|
31
|
+
${partSelector(alertContract, "root")}[${alertOptions.attribute("layout")}="bar"] {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: ${uiTokens.spaceGroup};
|
|
35
|
+
min-height: 36px;
|
|
36
|
+
padding: 6px 8px 6px 12px;
|
|
37
|
+
border-radius: ${uiTokens.radiusSmall};
|
|
38
|
+
font-size: 13px;
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
}
|
|
41
|
+
${partSelector(alertContract, "root")}[${alertOptions.attribute("layout")}="bar"]::before {
|
|
42
|
+
content: "";
|
|
43
|
+
width: 8px;
|
|
44
|
+
height: 8px;
|
|
45
|
+
flex: none;
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
background: ${alertTokens.accent};
|
|
48
|
+
}
|
|
49
|
+
${partSelector(alertContract, "root")}[${alertOptions.attribute("layout")}="bar"] ${partSelector(alertContract, "title")} {
|
|
50
|
+
flex: none;
|
|
51
|
+
}
|
|
52
|
+
${partSelector(alertContract, "root")}[${alertOptions.attribute("layout")}="bar"] ${partSelector(alertContract, "body")} {
|
|
53
|
+
flex: 1;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
line-height: 20px;
|
|
56
|
+
}
|
|
57
|
+
${partSelector(alertContract, "root")}[${alertOptions.attribute("layout")}="bar"] ${partSelector(alertContract, "actions")} {
|
|
58
|
+
flex: none;
|
|
59
|
+
margin-left: auto;
|
|
60
|
+
flex-wrap: nowrap;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (pointer: coarse) {
|
|
64
|
+
${partSelector(alertContract, "root")}[${alertOptions.attribute("layout")}="bar"] ${partSelector(alertContract, "actions")} > * {
|
|
65
|
+
min-width: 44px;
|
|
66
|
+
min-height: 44px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
28
69
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const appBarStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { appBarContract } from "../../components/app-bar.js";
|
|
4
|
+
export const appBarStyles = css `
|
|
5
|
+
${partSelector(appBarContract, "root")} {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: ${uiTokens.spaceGroup};
|
|
9
|
+
min-width: 0;
|
|
10
|
+
min-height: 56px;
|
|
11
|
+
padding: 10px 16px;
|
|
12
|
+
border-bottom: 0.5px solid ${uiTokens.borderSubtle};
|
|
13
|
+
background: ${uiTokens.surface};
|
|
14
|
+
}
|
|
15
|
+
${partSelector(appBarContract, "identity")} {
|
|
16
|
+
display: grid;
|
|
17
|
+
gap: 2px;
|
|
18
|
+
flex: 1;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
}
|
|
21
|
+
${partSelector(appBarContract, "title")} {
|
|
22
|
+
margin: 0;
|
|
23
|
+
overflow-wrap: anywhere;
|
|
24
|
+
color: ${uiTokens.foreground};
|
|
25
|
+
font-size: 20px;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
line-height: 1.25;
|
|
28
|
+
}
|
|
29
|
+
${partSelector(appBarContract, "status")} {
|
|
30
|
+
min-width: 0;
|
|
31
|
+
color: ${uiTokens.mutedForeground};
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
line-height: 18px;
|
|
34
|
+
}
|
|
35
|
+
${partSelector(appBarContract, "actions")} {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 4px;
|
|
39
|
+
flex: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (pointer: coarse) {
|
|
43
|
+
${partSelector(appBarContract, "actions")} > * {
|
|
44
|
+
min-width: 44px;
|
|
45
|
+
min-height: 44px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const avatarStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { lineTokens } from "../palette.js";
|
|
4
|
+
import { avatarContract, avatarOptions } from "../../components/avatar.js";
|
|
5
|
+
const root = partSelector(avatarContract, "root");
|
|
6
|
+
export const avatarStyles = css `
|
|
7
|
+
${root} {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: inline-grid;
|
|
10
|
+
place-items: center;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
width: 32px;
|
|
14
|
+
height: 32px;
|
|
15
|
+
border: ${lineTokens.width} solid ${lineTokens.edge};
|
|
16
|
+
border-radius: ${uiTokens.controlRadius};
|
|
17
|
+
background: ${uiTokens.primary};
|
|
18
|
+
color: ${uiTokens.onPrimary};
|
|
19
|
+
font: 600 ${uiTokens.fontCaption}/1 ${uiTokens.font};
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
22
|
+
${root} {
|
|
23
|
+
${avatarOptions.when({ size: "small" })} {
|
|
24
|
+
width: 24px;
|
|
25
|
+
height: 24px;
|
|
26
|
+
border-radius: ${uiTokens.radiusSmall};
|
|
27
|
+
font-size: 10px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
${root} {
|
|
31
|
+
${avatarOptions.when({ size: "large" })} {
|
|
32
|
+
width: 40px;
|
|
33
|
+
height: 40px;
|
|
34
|
+
font-size: ${uiTokens.fontBody};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
${partSelector(avatarContract, "initials")} {
|
|
38
|
+
display: grid;
|
|
39
|
+
place-items: center;
|
|
40
|
+
letter-spacing: 0.04em;
|
|
41
|
+
}
|
|
42
|
+
${partSelector(avatarContract, "image")} {
|
|
43
|
+
position: absolute;
|
|
44
|
+
inset: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
object-fit: cover;
|
|
48
|
+
}
|
|
49
|
+
${partSelector(avatarContract, "image")}[hidden] {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
@@ -135,9 +135,18 @@ ${partSelector(iconButtonContract, "root")} {
|
|
|
135
135
|
min-height: ${uiTokens.buttonLarge};
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
+
${partSelector(buttonContract, "root")} svg {
|
|
139
|
+
transition: transform ${uiTokens.durationSettle} ${uiTokens.ease};
|
|
140
|
+
}
|
|
141
|
+
${partSelector(buttonContract, "root")}[aria-expanded="true"] svg:last-child {
|
|
142
|
+
transform: rotate(180deg);
|
|
143
|
+
}
|
|
138
144
|
@media (prefers-reduced-motion: reduce) {
|
|
139
145
|
:where(${partSelector(iconButtonContract, "root")}, ${partSelector(buttonContract, "root")}) {
|
|
140
146
|
transition: none;
|
|
141
147
|
}
|
|
148
|
+
${partSelector(buttonContract, "root")} svg {
|
|
149
|
+
transition: none;
|
|
150
|
+
}
|
|
142
151
|
}
|
|
143
152
|
`;
|
|
@@ -15,6 +15,7 @@ ${partSelector(cardContract, "root")} {
|
|
|
15
15
|
border: 0.5px solid ${uiTokens.border};
|
|
16
16
|
border-radius: ${uiTokens.panelRadius};
|
|
17
17
|
background: ${uiTokens.surface};
|
|
18
|
+
--meowui-focus-halo: ${uiTokens.surface};
|
|
18
19
|
color: ${uiTokens.foreground};
|
|
19
20
|
font: ${uiTokens.fontBody}/${uiTokens.leading} ${uiTokens.font};
|
|
20
21
|
}
|
|
@@ -30,6 +31,7 @@ button${partSelector(cardContract, "root")}:focus-visible {
|
|
|
30
31
|
border: 0;
|
|
31
32
|
border-radius: 0;
|
|
32
33
|
background: transparent;
|
|
34
|
+
--meowui-focus-halo: inherit;
|
|
33
35
|
box-shadow: none;
|
|
34
36
|
}
|
|
35
37
|
${partSelector(cardHeaderContract, "root")} {
|