@zeyos/zx 5.5.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +210 -0
- package/README.md +73 -7
- package/bin/zx-css.js +328 -0
- package/dist/types/components/account-menu/account-menu.d.ts +4 -2
- package/dist/types/components/activity-list/activity-list.d.ts +14 -8
- package/dist/types/components/agent-thread/ag-ui.d.ts +340 -0
- package/dist/types/components/agent-thread/agent-thread.d.ts +711 -0
- package/dist/types/components/agent-thread/ui-message-stream.d.ts +401 -0
- package/dist/types/components/app-sidebar/app-sidebar.d.ts +14 -8
- package/dist/types/components/approval-card/approval-card.d.ts +596 -0
- package/dist/types/components/avatar/avatar.d.ts +91 -4
- package/dist/types/components/block-view/block-view.d.ts +205 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +3 -3
- package/dist/types/components/calendar/calendar-model.d.ts +9 -2
- package/dist/types/components/calendar/calendar.d.ts +12 -4
- package/dist/types/components/chart/chart.d.ts +25 -13
- package/dist/types/components/code-editor/code-editor.d.ts +7 -2
- package/dist/types/components/composer/composer.d.ts +938 -0
- package/dist/types/components/composer/queue.d.ts +76 -0
- package/dist/types/components/copy/copy-button.d.ts +6 -4
- package/dist/types/components/copy/copy-input.d.ts +10 -6
- package/dist/types/components/datebox/date-range-box.d.ts +33 -0
- package/dist/types/components/datebox/placeholder.d.ts +7 -0
- package/dist/types/components/dock/dock.d.ts +12 -3
- package/dist/types/components/entity-ref/entity-ref.d.ts +5 -3
- package/dist/types/components/field-upload/field-upload.d.ts +3 -2
- package/dist/types/components/file-item/file-item.d.ts +3 -2
- package/dist/types/components/file-list/file-list.d.ts +14 -8
- package/dist/types/components/filter/filter-model.d.ts +31 -1
- package/dist/types/components/filter/filter.d.ts +20 -2
- package/dist/types/components/finder/finder.d.ts +14 -6
- package/dist/types/components/flag/flag.d.ts +99 -0
- package/dist/types/components/grid/grid.d.ts +1 -1
- package/dist/types/components/kanban-view/kanban-view.d.ts +8 -66
- package/dist/types/components/launcher/launcher.d.ts +2 -0
- package/dist/types/components/multi-value-editor/multi-value-editor.d.ts +3 -2
- package/dist/types/components/number-field/number-field.d.ts +17 -6
- package/dist/types/components/prompt-starters/prompt-starters.d.ts +107 -0
- package/dist/types/components/prose/prose.d.ts +9 -6
- package/dist/types/components/questionnaire/conditions.d.ts +270 -0
- package/dist/types/components/questionnaire/items.d.ts +52 -30
- package/dist/types/components/questionnaire/questionnaire.d.ts +44 -4
- package/dist/types/components/rating/rating.d.ts +5 -3
- package/dist/types/components/run-status/run-status.d.ts +393 -0
- package/dist/types/components/run-trace/run-trace.d.ts +624 -0
- package/dist/types/components/select/country.d.ts +106 -0
- package/dist/types/components/select/field-adapter.d.ts +2 -1
- package/dist/types/components/select/locale.d.ts +102 -0
- package/dist/types/components/select/select.d.ts +41 -2
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/sort-control/sort-control.d.ts +7 -3
- package/dist/types/components/source-list/source-list.d.ts +179 -0
- package/dist/types/components/split-view/split-view.d.ts +5 -3
- package/dist/types/components/surface/catalog.d.ts +260 -0
- package/dist/types/components/surface/elicit.d.ts +81 -0
- package/dist/types/components/surface/mcp.d.ts +165 -0
- package/dist/types/components/surface/schema.d.ts +314 -0
- package/dist/types/components/surface/stream.d.ts +118 -0
- package/dist/types/components/surface/surface.d.ts +718 -0
- package/dist/types/components/surface/text.d.ts +277 -0
- package/dist/types/components/surface/validate.d.ts +339 -0
- package/dist/types/components/table/table.d.ts +55 -3
- package/dist/types/components/table/window.d.ts +203 -0
- package/dist/types/components/toolbar/toolbar.d.ts +10 -6
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components/tree/tree.d.ts +20 -13
- package/dist/types/core/component.d.ts +10 -0
- package/dist/types/core/date.d.ts +8 -1
- package/dist/types/core/dom.d.ts +1 -0
- package/dist/types/core/http.d.ts +10 -0
- package/dist/types/core/i18n.d.ts +38 -0
- package/dist/types/core/messages.d.ts +479 -1
- package/dist/types/core/storage.d.ts +7 -2
- package/dist/types/elements/define.d.ts +21 -46
- package/dist/types/elements/definitions.d.ts +147 -0
- package/dist/types/elements/kit.d.ts +7 -0
- package/dist/types/elements/reflect.d.ts +6 -3
- package/dist/types/index.d.ts +18 -1
- package/dist/types/internal/agent-model.d.ts +587 -0
- package/dist/types/internal/date-locale.d.ts +7 -0
- package/dist/types/internal/highlight.d.ts +24 -0
- package/dist/types/internal/json-patch.d.ts +146 -0
- package/dist/types/internal/presence-loop.d.ts +148 -0
- package/dist/types/locales/de.d.ts +13 -0
- package/dist/types/locales/en.d.ts +2 -0
- package/dist/types/locales/index.d.ts +823 -0
- package/dist/types/zeyos/view.d.ts +8 -1
- package/dist/zx-zeyos.esm.js +20505 -18748
- package/dist/zx-zeyos.esm.min.js +5 -5
- package/dist/zx.core.css +1276 -0
- package/dist/zx.core.min.css +1 -0
- package/dist/zx.css +2424 -134
- package/dist/zx.esm.js +46167 -28468
- package/dist/zx.esm.min.js +40 -8
- package/dist/zx.global.js +46167 -28468
- package/dist/zx.global.min.js +40 -8
- package/dist/zx.layered.css +17302 -0
- package/dist/zx.layered.min.css +1 -0
- package/dist/zx.min.css +1 -1
- package/docs/agent-catalog.json +12501 -0
- package/docs/agent-surfaces.md +340 -0
- package/docs/api.json +2057 -166
- package/docs/llms.md +1458 -58
- package/docs/llms.txt +38 -8
- package/package.json +29 -6
- package/src/components/account-menu/account-menu.js +6 -3
- package/src/components/activity-item/activity-item.js +2 -1
- package/src/components/activity-list/activity-list.js +16 -10
- package/src/components/agent-thread/ag-ui.js +1439 -0
- package/src/components/agent-thread/agent-thread.css +417 -0
- package/src/components/agent-thread/agent-thread.js +1670 -0
- package/src/components/agent-thread/ui-message-stream.js +1281 -0
- package/src/components/app-sidebar/app-sidebar.js +18 -8
- package/src/components/approval-card/approval-card.css +289 -0
- package/src/components/approval-card/approval-card.js +1378 -0
- package/src/components/avatar/avatar.css +56 -1
- package/src/components/avatar/avatar.js +148 -26
- package/src/components/block-view/block-view.css +300 -0
- package/src/components/block-view/block-view.js +524 -0
- package/src/components/breadcrumb/breadcrumb.js +8 -5
- package/src/components/calendar/calendar-model.js +8 -2
- package/src/components/calendar/calendar.js +53 -18
- package/src/components/chart/chart.js +54 -23
- package/src/components/code-editor/code-editor.js +45 -8
- package/src/components/code-editor/field-adapter.js +1 -1
- package/src/components/composer/composer.css +482 -0
- package/src/components/composer/composer.js +1815 -0
- package/src/components/composer/queue.js +78 -0
- package/src/components/context-menu/context-menu.js +12 -1
- package/src/components/copy/copy-button.js +9 -7
- package/src/components/copy/copy-input.js +10 -6
- package/src/components/date-picker/date-picker.js +2 -1
- package/src/components/date-picker/date-range-picker.js +8 -7
- package/src/components/datebox/date-range-box.js +3 -9
- package/src/components/datebox/datebox.js +18 -21
- package/src/components/datebox/placeholder.js +18 -0
- package/src/components/dialog/dialog.js +1 -1
- package/src/components/dock/dock.js +34 -13
- package/src/components/entity-ref/entity-ref.js +16 -5
- package/src/components/field-upload/field-upload.js +81 -38
- package/src/components/file-item/file-item.js +70 -40
- package/src/components/file-list/file-list.js +15 -9
- package/src/components/filter/filter-model.js +46 -8
- package/src/components/filter/filter.css +3 -3
- package/src/components/filter/filter.js +29 -10
- package/src/components/filter-panel/filter-panel.js +13 -5
- package/src/components/finder/finder.js +50 -26
- package/src/components/flag/flag.css +40 -0
- package/src/components/flag/flag.js +177 -0
- package/src/components/form/form.js +1 -1
- package/src/components/grid/grid.js +22 -8
- package/src/components/kanban-view/kanban-view.js +51 -81
- package/src/components/launcher/launcher.js +17 -2
- package/src/components/list-toolbar/list-toolbar.js +2 -1
- package/src/components/master-panel/master-panel.js +1 -1
- package/src/components/menu-button/menu-button.js +4 -0
- package/src/components/message/message.js +3 -0
- package/src/components/multi-value-editor/multi-value-editor.js +10 -9
- package/src/components/navigation-bar/navigation-bar.js +3 -3
- package/src/components/number-field/number-field.js +29 -13
- package/src/components/prompt-starters/prompt-starters.css +91 -0
- package/src/components/prompt-starters/prompt-starters.js +206 -0
- package/src/components/prose/prose.js +14 -10
- package/src/components/questionnaire/conditions.js +666 -0
- package/src/components/questionnaire/items.js +150 -41
- package/src/components/questionnaire/questionnaire.js +126 -32
- package/src/components/rating/rating.js +5 -4
- package/src/components/run-status/run-status.css +208 -0
- package/src/components/run-status/run-status.js +782 -0
- package/src/components/run-trace/run-trace.css +443 -0
- package/src/components/run-trace/run-trace.js +1209 -0
- package/src/components/select/country.js +136 -0
- package/src/components/select/field-adapter.js +7 -2
- package/src/components/select/locale.js +219 -0
- package/src/components/select/select.css +20 -22
- package/src/components/select/select.js +94 -12
- package/src/components/sheet/sheet-stack.js +10 -1
- package/src/components/slider/slider.js +7 -2
- package/src/components/sort-control/sort-control.js +15 -5
- package/src/components/source-list/source-list.css +208 -0
- package/src/components/source-list/source-list.js +358 -0
- package/src/components/split-view/split-view.js +5 -3
- package/src/components/surface/catalog.js +1334 -0
- package/src/components/surface/elicit.js +107 -0
- package/src/components/surface/mcp.js +243 -0
- package/src/components/surface/schema.js +644 -0
- package/src/components/surface/stream.js +245 -0
- package/src/components/surface/surface.css +308 -0
- package/src/components/surface/surface.js +2291 -0
- package/src/components/surface/text.js +513 -0
- package/src/components/surface/validate.js +2218 -0
- package/src/components/tabbox/tabbox.js +9 -0
- package/src/components/table/table.css +63 -3
- package/src/components/table/table.js +167 -28
- package/src/components/table/window.js +317 -0
- package/src/components/toolbar/toolbar.js +12 -7
- package/src/components/tooltip/tooltip.css +2 -3
- package/src/components/tooltip/tooltip.js +32 -5
- package/src/components/tree/tree.js +53 -23
- package/src/core/component.js +25 -1
- package/src/core/date.js +62 -16
- package/src/core/dom.js +22 -2
- package/src/core/format.js +15 -13
- package/src/core/http.js +29 -20
- package/src/core/i18n.js +83 -10
- package/src/core/keyboard.js +79 -8
- package/src/core/messages.js +519 -2
- package/src/core/overlay-host.js +1 -0
- package/src/core/storage.js +59 -6
- package/src/elements/define.js +178 -130
- package/src/elements/definitions.js +229 -0
- package/src/elements/kit.js +444 -0
- package/src/elements/reflect.js +8 -3
- package/src/index.js +18 -1
- package/src/internal/agent-model.js +488 -0
- package/src/internal/date-locale.js +11 -0
- package/src/internal/highlight.js +104 -0
- package/src/internal/json-patch.js +405 -0
- package/src/internal/presence-loop.js +343 -0
- package/src/locales/de.js +911 -0
- package/src/locales/en.js +2 -0
- package/src/locales/index.js +7 -0
- package/src/zeyos/calendar.js +2 -1
- package/src/zeyos/form.js +2 -1
- package/src/zeyos/launcher.js +7 -6
- package/src/zeyos/module-bar.js +2 -1
- package/src/zeyos/schema.js +37 -23
- package/src/zeyos/select.js +4 -3
- package/src/zeyos/table.js +2 -13
- package/src/zeyos/view.js +57 -17
- package/styles/core.css +11 -0
- package/styles/tokens/semantic.css +1 -0
- package/styles/zeyos.css +2 -0
- package/styles/zx.css +11 -8
- package/styles/zx.layered.css +1 -0
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Composer — the message box of an agent conversation. A filled box on the chrome tone with no
|
|
3
|
+
* frame of its own: the context and attachment chips, the text, and a bar of quiet tools ending in
|
|
4
|
+
* Send. Focus in the text rings the whole box. The `@` suggestions open above it, in the top layer.
|
|
5
|
+
*/
|
|
6
|
+
.zx-composer {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: grid;
|
|
9
|
+
gap: var(--zx-space-2);
|
|
10
|
+
min-inline-size: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.zx-composer__frame {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: grid;
|
|
16
|
+
gap: var(--zx-space-1);
|
|
17
|
+
min-inline-size: 0;
|
|
18
|
+
padding: var(--zx-space-2) var(--zx-space-3);
|
|
19
|
+
border-radius: var(--zx-radius-lg);
|
|
20
|
+
background: var(--zx-color-bg-chrome);
|
|
21
|
+
color: var(--zx-color-text);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.zx-composer__frame:has(.zx-composer__input:focus) {
|
|
25
|
+
box-shadow: var(--zx-focus-ring);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.zx-composer[aria-disabled="true"] .zx-composer__frame {
|
|
29
|
+
opacity: 0.6;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* ------------------------------------------------------------------ text -- */
|
|
33
|
+
|
|
34
|
+
.zx-composer .zx-composer__input {
|
|
35
|
+
display: block;
|
|
36
|
+
inline-size: 100%;
|
|
37
|
+
min-block-size: 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: var(--zx-space-1);
|
|
40
|
+
overflow-y: hidden;
|
|
41
|
+
border: 0;
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
background: transparent;
|
|
44
|
+
box-shadow: none;
|
|
45
|
+
color: inherit;
|
|
46
|
+
font: inherit;
|
|
47
|
+
font-size: var(--zx-text-md);
|
|
48
|
+
line-height: 1.5;
|
|
49
|
+
resize: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.zx-composer .zx-composer__input[data-scrolls="true"] {
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.zx-composer .zx-composer__input::placeholder {
|
|
57
|
+
color: var(--zx-color-text-placeholder);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* The box draws the ring; the text inside it draws none of its own. */
|
|
61
|
+
.zx-composer .zx-composer__input:is(:focus, :focus-visible) {
|
|
62
|
+
outline-color: transparent;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.zx-composer .zx-composer__input:disabled {
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ------------------------------------------------------------------- bar -- */
|
|
71
|
+
|
|
72
|
+
/* The bar is the container its own narrow form asks about: the composer itself may sit in a
|
|
73
|
+
shrink-to-fit parent, the bar always spans the box. */
|
|
74
|
+
.zx-composer__bar {
|
|
75
|
+
container: zx-composer-bar / inline-size;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: var(--zx-space-1);
|
|
79
|
+
min-inline-size: 0;
|
|
80
|
+
margin-inline-start: calc(-1 * var(--zx-space-1));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.zx-composer__tools {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex: none;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: var(--zx-space-1);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.zx-composer__tools[hidden] {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.zx-composer__spacer {
|
|
95
|
+
flex: 1 1 auto;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.zx-composer__hint {
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
min-inline-size: 0;
|
|
101
|
+
padding-inline-start: var(--zx-space-1);
|
|
102
|
+
color: var(--zx-color-text-muted);
|
|
103
|
+
font-size: var(--zx-text-xs);
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* The tools are quiet glyphs until they are pointed at. */
|
|
109
|
+
.zx-composer .zx-composer__tool > .zx-icon {
|
|
110
|
+
color: var(--zx-color-text-subtle);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.zx-composer .zx-composer__tool:hover:not(:disabled) > .zx-icon {
|
|
114
|
+
color: var(--zx-color-text);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.zx-composer .zx-composer__tool:disabled > .zx-icon {
|
|
118
|
+
color: var(--zx-color-text-placeholder);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* A pressed tool is a mode the next message is sent in: the neutral current fill, an edge, and the
|
|
122
|
+
full glyph colour, so the state never rests on colour alone. */
|
|
123
|
+
.zx-composer .zx-composer__tool[aria-pressed="true"] {
|
|
124
|
+
background: var(--zx-color-bg-current);
|
|
125
|
+
box-shadow: inset 0 0 0 1px var(--zx-color-border-strong);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.zx-composer .zx-composer__tool[aria-pressed="true"] > .zx-icon {
|
|
129
|
+
color: var(--zx-color-text);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.zx-composer .zx-composer__tool[aria-pressed="true"]:hover:not(:disabled) {
|
|
133
|
+
background: linear-gradient(var(--zx-color-bg-hover), var(--zx-color-bg-hover)), var(--zx-color-bg-current);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.zx-composer .zx-composer__tool[aria-pressed="true"]:focus-visible {
|
|
137
|
+
box-shadow: inset var(--zx-focus-ring);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Send is a neutral square until there is something to send; then it is the accent. Stop takes
|
|
141
|
+
its place while the agent works. */
|
|
142
|
+
.zx-composer .zx-composer__send {
|
|
143
|
+
flex: none;
|
|
144
|
+
inline-size: var(--zx-control-height);
|
|
145
|
+
block-size: var(--zx-control-height);
|
|
146
|
+
border-radius: var(--zx-radius-lg);
|
|
147
|
+
background: var(--zx-color-bg-current);
|
|
148
|
+
color: var(--zx-color-text);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.zx-composer .zx-composer__send:hover {
|
|
152
|
+
background: var(--zx-color-bg-current);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.zx-composer .zx-composer__send[aria-disabled="true"],
|
|
156
|
+
.zx-composer .zx-composer__send:disabled {
|
|
157
|
+
color: var(--zx-color-text-placeholder);
|
|
158
|
+
cursor: default;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.zx-composer .zx-composer__send[data-mode="send"][aria-disabled="false"]:not(:disabled) {
|
|
162
|
+
background: var(--zx-color-accent-solid);
|
|
163
|
+
color: var(--zx-color-on-accent-solid);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.zx-composer .zx-composer__send[data-mode="send"][aria-disabled="false"]:not(:disabled):hover {
|
|
167
|
+
background: var(--zx-color-accent-solid-hover);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.zx-composer .zx-composer__send[data-mode="stop"] > .zx-icon {
|
|
171
|
+
fill: currentColor;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.zx-composer .zx-composer__send:focus-visible {
|
|
175
|
+
outline-color: transparent;
|
|
176
|
+
box-shadow: var(--zx-focus-ring);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* A solid accent under the accent ring: an inner line in its own ink keeps them apart. */
|
|
180
|
+
.zx-composer .zx-composer__send[data-mode="send"][aria-disabled="false"]:focus-visible {
|
|
181
|
+
box-shadow: inset 0 0 0 1px var(--zx-color-on-accent-solid), var(--zx-focus-ring);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* `sendLabel`: the glyph and a word ("Start task", "Stop" while busy). */
|
|
185
|
+
.zx-composer .zx-composer__send:has(> .zx-composer__send-label) {
|
|
186
|
+
display: inline-flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
gap: var(--zx-space-2);
|
|
190
|
+
inline-size: auto;
|
|
191
|
+
max-inline-size: 100%;
|
|
192
|
+
padding-inline: var(--zx-space-3);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.zx-composer__send-label {
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
font-size: var(--zx-control-font-size);
|
|
198
|
+
font-weight: var(--zx-control-font-weight);
|
|
199
|
+
text-overflow: ellipsis;
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* In a narrow composer — a phone, a side column — Send goes back to its square: the word is drawn
|
|
204
|
+
no more but stays the button's name, and its tooltip. */
|
|
205
|
+
@container zx-composer-bar (inline-size < 24rem) {
|
|
206
|
+
.zx-composer .zx-composer__send:has(> .zx-composer__send-label) {
|
|
207
|
+
inline-size: var(--zx-control-height);
|
|
208
|
+
padding-inline: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.zx-composer__send-label {
|
|
212
|
+
position: absolute;
|
|
213
|
+
inline-size: 1px;
|
|
214
|
+
block-size: 1px;
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
clip-path: inset(50%);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* ----------------------------------------------------------------- chips -- */
|
|
221
|
+
|
|
222
|
+
.zx-composer__chips {
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-wrap: wrap;
|
|
225
|
+
gap: var(--zx-space-2);
|
|
226
|
+
margin: 0;
|
|
227
|
+
padding: var(--zx-space-1) 0 0;
|
|
228
|
+
list-style: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.zx-composer__chips[hidden] {
|
|
232
|
+
display: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.zx-composer__chip {
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
gap: var(--zx-space-2);
|
|
239
|
+
max-inline-size: 100%;
|
|
240
|
+
min-block-size: calc(var(--zx-control-height) - var(--zx-space-1));
|
|
241
|
+
padding-inline: var(--zx-space-2) var(--zx-space-1);
|
|
242
|
+
border: 1px solid var(--zx-color-border-subtle);
|
|
243
|
+
border-radius: var(--zx-radius-md);
|
|
244
|
+
background: var(--zx-color-bg-surface);
|
|
245
|
+
font-size: var(--zx-text-sm);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* What the message is about reads as the accent's quiet tint; files stay on the surface. */
|
|
249
|
+
.zx-composer__chip[data-kind="context"] {
|
|
250
|
+
border-color: transparent;
|
|
251
|
+
background: var(--zx-color-accent-subtle);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.zx-composer__chip > .zx-icon {
|
|
255
|
+
flex: none;
|
|
256
|
+
color: var(--zx-color-text-subtle);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.zx-composer__chip-label {
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
min-inline-size: 0;
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.zx-composer__chip-meta {
|
|
267
|
+
flex: none;
|
|
268
|
+
color: var(--zx-color-text-muted);
|
|
269
|
+
font-size: var(--zx-text-xs);
|
|
270
|
+
font-variant-numeric: tabular-nums;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.zx-composer .zx-composer__remove {
|
|
274
|
+
inline-size: calc(var(--zx-control-height) - var(--zx-space-2));
|
|
275
|
+
block-size: calc(var(--zx-control-height) - var(--zx-space-2));
|
|
276
|
+
border-radius: var(--zx-radius-sm);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* ----------------------------------------------------------------- queue -- */
|
|
280
|
+
|
|
281
|
+
/* What waits for the agent, at the top of the box and set off by a line from the message being
|
|
282
|
+
written: both sit on the same tone. A long queue scrolls, so the text stays on screen. */
|
|
283
|
+
.zx-composer__queue {
|
|
284
|
+
display: grid;
|
|
285
|
+
gap: var(--zx-space-1);
|
|
286
|
+
min-inline-size: 0;
|
|
287
|
+
padding: var(--zx-space-1) 0 var(--zx-space-2);
|
|
288
|
+
border-block-end: 1px solid var(--zx-color-border-subtle);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.zx-composer__queue[hidden] {
|
|
292
|
+
display: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.zx-composer__queue-label {
|
|
296
|
+
color: var(--zx-color-text-muted);
|
|
297
|
+
font-size: var(--zx-text-xs);
|
|
298
|
+
font-weight: var(--zx-weight-medium);
|
|
299
|
+
font-variant-numeric: tabular-nums;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.zx-composer__queue-list {
|
|
303
|
+
display: grid;
|
|
304
|
+
gap: 2px;
|
|
305
|
+
min-inline-size: 0;
|
|
306
|
+
max-block-size: calc(5 * var(--zx-control-height));
|
|
307
|
+
margin: 0;
|
|
308
|
+
overflow-y: auto;
|
|
309
|
+
padding: 0;
|
|
310
|
+
list-style: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.zx-composer__queued {
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
gap: var(--zx-space-2);
|
|
317
|
+
min-inline-size: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.zx-composer__queued-text {
|
|
321
|
+
flex: 1 1 auto;
|
|
322
|
+
overflow: hidden;
|
|
323
|
+
min-inline-size: 0;
|
|
324
|
+
font-size: var(--zx-text-sm);
|
|
325
|
+
text-overflow: ellipsis;
|
|
326
|
+
white-space: nowrap;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.zx-composer__queued-meta {
|
|
330
|
+
flex: none;
|
|
331
|
+
color: var(--zx-color-text-muted);
|
|
332
|
+
font-size: var(--zx-text-xs);
|
|
333
|
+
font-variant-numeric: tabular-nums;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.zx-composer__queued-actions {
|
|
337
|
+
display: flex;
|
|
338
|
+
flex: none;
|
|
339
|
+
align-items: center;
|
|
340
|
+
gap: 2px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* Words rather than glyphs, quiet until they are pointed at. */
|
|
344
|
+
.zx-composer .zx-composer__queued-action {
|
|
345
|
+
inline-size: auto;
|
|
346
|
+
block-size: calc(var(--zx-control-height) - var(--zx-space-1));
|
|
347
|
+
padding-inline: var(--zx-space-2);
|
|
348
|
+
font-size: var(--zx-text-xs);
|
|
349
|
+
font-weight: var(--zx-weight-medium);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* -------------------------------------------------------------- dropping -- */
|
|
353
|
+
|
|
354
|
+
.zx-composer__drop {
|
|
355
|
+
position: absolute;
|
|
356
|
+
inset: 0;
|
|
357
|
+
display: none;
|
|
358
|
+
place-items: center;
|
|
359
|
+
align-content: center;
|
|
360
|
+
gap: var(--zx-space-1);
|
|
361
|
+
border-radius: inherit;
|
|
362
|
+
background: var(--zx-color-accent-subtle);
|
|
363
|
+
box-shadow: inset 0 0 0 1px var(--zx-color-accent);
|
|
364
|
+
color: var(--zx-color-accent);
|
|
365
|
+
font-size: var(--zx-text-sm);
|
|
366
|
+
font-weight: var(--zx-weight-medium);
|
|
367
|
+
pointer-events: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.zx-composer[data-state="dropping"] .zx-composer__drop {
|
|
371
|
+
display: grid;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* ------------------------------------------------------------------ note -- */
|
|
375
|
+
|
|
376
|
+
.zx-composer__note {
|
|
377
|
+
margin: 0;
|
|
378
|
+
color: var(--zx-color-text-muted);
|
|
379
|
+
font-size: var(--zx-text-xs);
|
|
380
|
+
text-align: center;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* ----------------------------------------------------------- suggestions -- */
|
|
384
|
+
|
|
385
|
+
.zx-composer__suggestions {
|
|
386
|
+
display: grid;
|
|
387
|
+
gap: 2px;
|
|
388
|
+
inline-size: min(22rem, calc(100vw - var(--zx-space-4)));
|
|
389
|
+
max-block-size: min(18rem, 45vh);
|
|
390
|
+
overflow: auto;
|
|
391
|
+
overscroll-behavior: contain;
|
|
392
|
+
padding: var(--zx-space-1);
|
|
393
|
+
border: 1px solid var(--zx-color-overlay-border);
|
|
394
|
+
border-radius: var(--zx-radius-panel);
|
|
395
|
+
background-color: var(--zx-color-overlay-surface);
|
|
396
|
+
background-image: var(--zx-overlay-surface-image);
|
|
397
|
+
background-clip: padding-box;
|
|
398
|
+
-webkit-backdrop-filter: var(--zx-glass-filter-overlay);
|
|
399
|
+
backdrop-filter: var(--zx-glass-filter-overlay);
|
|
400
|
+
box-shadow: var(--zx-glass-overlay-shadow);
|
|
401
|
+
color: var(--zx-color-text);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.zx-composer__suggestions[hidden] {
|
|
405
|
+
display: none;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
409
|
+
.zx-composer__suggestions {
|
|
410
|
+
border-color: var(--zx-color-border-strong);
|
|
411
|
+
background: var(--zx-color-bg-raised);
|
|
412
|
+
-webkit-backdrop-filter: none;
|
|
413
|
+
backdrop-filter: none;
|
|
414
|
+
box-shadow: var(--zx-overlay-shadow);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.zx-composer__option {
|
|
419
|
+
display: flex;
|
|
420
|
+
align-items: center;
|
|
421
|
+
gap: var(--zx-space-2);
|
|
422
|
+
min-block-size: calc(var(--zx-control-height) - 2px);
|
|
423
|
+
padding: var(--zx-space-1) var(--zx-space-2);
|
|
424
|
+
border-radius: var(--zx-radius-sm);
|
|
425
|
+
line-height: 1.35;
|
|
426
|
+
cursor: pointer;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* The highlighted suggestion takes the same neutral step as a highlighted option in any list. */
|
|
430
|
+
.zx-composer__option[aria-selected="true"] {
|
|
431
|
+
background: var(--zx-color-overlay-hover);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.zx-composer__option > .zx-icon {
|
|
435
|
+
flex: none;
|
|
436
|
+
color: var(--zx-color-text-subtle);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.zx-composer__option-text {
|
|
440
|
+
display: grid;
|
|
441
|
+
min-inline-size: 0;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.zx-composer__option-label {
|
|
445
|
+
overflow: hidden;
|
|
446
|
+
font-size: var(--zx-text-sm);
|
|
447
|
+
font-weight: var(--zx-weight-medium);
|
|
448
|
+
text-overflow: ellipsis;
|
|
449
|
+
white-space: nowrap;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.zx-composer__option-description {
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
color: var(--zx-color-text-muted);
|
|
455
|
+
font-size: var(--zx-text-xs);
|
|
456
|
+
text-overflow: ellipsis;
|
|
457
|
+
white-space: nowrap;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* Spoken, not drawn: the number of suggestions. */
|
|
461
|
+
.zx-composer__status {
|
|
462
|
+
position: absolute;
|
|
463
|
+
inline-size: 1px;
|
|
464
|
+
block-size: 1px;
|
|
465
|
+
overflow: hidden;
|
|
466
|
+
clip-path: inset(50%);
|
|
467
|
+
white-space: nowrap;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* ---------------------------------------------------------------- motion -- */
|
|
471
|
+
|
|
472
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
473
|
+
.zx-composer .zx-composer__send {
|
|
474
|
+
transition:
|
|
475
|
+
background-color var(--zx-dur-fast) var(--zx-ease),
|
|
476
|
+
color var(--zx-dur-fast) var(--zx-ease);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.zx-composer__frame {
|
|
480
|
+
transition: box-shadow var(--zx-dur-fast) var(--zx-ease);
|
|
481
|
+
}
|
|
482
|
+
}
|