@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,417 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* AgentThread — a conversation with agents. Each item is an article: the author's avatar in a
|
|
3
|
+
* narrow first column, the byline and the content beside it. The person's own messages sit at the
|
|
4
|
+
* end as a quiet bubble without an avatar. A run of items by one agent reads as one turn: after
|
|
5
|
+
* the first, the avatar and byline are not drawn again (the byline still names the article).
|
|
6
|
+
*/
|
|
7
|
+
.zx-agent-thread {
|
|
8
|
+
display: grid;
|
|
9
|
+
inline-size: 100%;
|
|
10
|
+
min-inline-size: 0;
|
|
11
|
+
container: zx-agent-thread / inline-size;
|
|
12
|
+
color: var(--zx-color-text);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.zx-agent-thread__feed {
|
|
16
|
+
display: grid;
|
|
17
|
+
gap: var(--zx-space-5);
|
|
18
|
+
min-inline-size: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ------------------------------------------------------------------ an item -- */
|
|
22
|
+
|
|
23
|
+
.zx-agent-thread__item {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: var(--zx-space-6) minmax(0, 1fr);
|
|
26
|
+
column-gap: var(--zx-space-3);
|
|
27
|
+
row-gap: var(--zx-space-1);
|
|
28
|
+
align-items: center;
|
|
29
|
+
min-inline-size: 0;
|
|
30
|
+
border-radius: var(--zx-radius-md);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.zx-agent-thread__item:focus-visible {
|
|
34
|
+
outline-color: transparent;
|
|
35
|
+
box-shadow: var(--zx-focus-ring);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.zx-agent-thread__avatar {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
grid-column: 1;
|
|
41
|
+
grid-row: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.zx-agent-thread__byline {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
grid-column: 2;
|
|
48
|
+
grid-row: 1;
|
|
49
|
+
align-items: baseline;
|
|
50
|
+
gap: var(--zx-space-1) var(--zx-space-2);
|
|
51
|
+
min-inline-size: 0;
|
|
52
|
+
font-size: var(--zx-text-sm);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.zx-agent-thread__body {
|
|
56
|
+
display: grid;
|
|
57
|
+
grid-column: 2;
|
|
58
|
+
gap: var(--zx-space-3);
|
|
59
|
+
min-inline-size: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.zx-agent-thread__author {
|
|
63
|
+
font-weight: var(--zx-weight-medium);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.zx-agent-thread__via,
|
|
67
|
+
.zx-agent-thread__time {
|
|
68
|
+
color: var(--zx-color-text-muted);
|
|
69
|
+
font-size: var(--zx-text-xs);
|
|
70
|
+
font-variant-numeric: tabular-nums;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.zx-agent-thread__flag {
|
|
74
|
+
padding: 0 var(--zx-space-2);
|
|
75
|
+
border-radius: var(--zx-radius-full);
|
|
76
|
+
background: var(--zx-color-warning-bg);
|
|
77
|
+
color: var(--zx-color-warning);
|
|
78
|
+
font-size: var(--zx-text-xs);
|
|
79
|
+
font-weight: var(--zx-weight-medium);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* A continued turn: the byline is spoken, not drawn, and the item sits close to the one above. */
|
|
83
|
+
.zx-agent-thread__item[data-continued="true"] {
|
|
84
|
+
margin-block-start: calc(var(--zx-space-2) - var(--zx-space-5));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.zx-agent-thread__item[data-continued="true"] > .zx-agent-thread__avatar {
|
|
88
|
+
visibility: hidden;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.zx-agent-thread__item[data-continued="true"] > .zx-agent-thread__byline,
|
|
92
|
+
.zx-agent-thread__item[data-mine="true"] > .zx-agent-thread__byline,
|
|
93
|
+
.zx-agent-thread__sr,
|
|
94
|
+
.zx-agent-thread__status {
|
|
95
|
+
position: absolute;
|
|
96
|
+
inline-size: 1px;
|
|
97
|
+
block-size: 1px;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
clip-path: inset(50%);
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.zx-agent-thread__item[data-continued="true"] > .zx-agent-thread__body,
|
|
104
|
+
.zx-agent-thread__item[data-mine="true"] > .zx-agent-thread__body {
|
|
105
|
+
grid-row: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* ------------------------------------------------------------------ the person's messages -- */
|
|
109
|
+
|
|
110
|
+
.zx-agent-thread__item[data-mine="true"] {
|
|
111
|
+
grid-template-columns: minmax(0, 1fr);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.zx-agent-thread__item[data-mine="true"] > .zx-agent-thread__body {
|
|
115
|
+
grid-column: 1;
|
|
116
|
+
justify-items: end;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.zx-agent-thread__bubble {
|
|
120
|
+
max-inline-size: min(100%, 36rem);
|
|
121
|
+
padding: var(--zx-space-2) var(--zx-space-3);
|
|
122
|
+
border-radius: var(--zx-radius-lg);
|
|
123
|
+
background: var(--zx-color-bg-muted);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.zx-agent-thread__text {
|
|
127
|
+
margin: 0;
|
|
128
|
+
font-size: var(--zx-text-md);
|
|
129
|
+
line-height: 1.55;
|
|
130
|
+
white-space: pre-line;
|
|
131
|
+
overflow-wrap: anywhere;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.zx-agent-thread__files {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-wrap: wrap;
|
|
137
|
+
justify-content: flex-end;
|
|
138
|
+
gap: var(--zx-space-2);
|
|
139
|
+
margin: 0;
|
|
140
|
+
padding: 0;
|
|
141
|
+
list-style: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.zx-agent-thread__file {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
gap: var(--zx-space-2);
|
|
148
|
+
max-inline-size: 100%;
|
|
149
|
+
padding: var(--zx-space-1) var(--zx-space-2);
|
|
150
|
+
border: 1px solid var(--zx-color-border-subtle);
|
|
151
|
+
border-radius: var(--zx-radius-md);
|
|
152
|
+
background: var(--zx-color-bg-surface);
|
|
153
|
+
font-size: var(--zx-text-sm);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.zx-agent-thread__file-icon {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
color: var(--zx-color-text-muted);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.zx-agent-thread__file-name {
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
text-overflow: ellipsis;
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.zx-agent-thread__file-size {
|
|
168
|
+
color: var(--zx-color-text-muted);
|
|
169
|
+
font-size: var(--zx-text-xs);
|
|
170
|
+
font-variant-numeric: tabular-nums;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* ------------------------------------------------------------------ notices -- */
|
|
174
|
+
|
|
175
|
+
.zx-agent-thread__item[data-type="notice"] {
|
|
176
|
+
grid-template-columns: minmax(0, 1fr);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.zx-agent-thread__item[data-type="notice"] > .zx-agent-thread__avatar {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.zx-agent-thread__item[data-type="notice"] > .zx-agent-thread__byline {
|
|
184
|
+
position: absolute;
|
|
185
|
+
inline-size: 1px;
|
|
186
|
+
block-size: 1px;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
clip-path: inset(50%);
|
|
189
|
+
white-space: nowrap;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.zx-agent-thread__item[data-type="notice"] > .zx-agent-thread__body {
|
|
193
|
+
grid-column: 1;
|
|
194
|
+
grid-row: 1;
|
|
195
|
+
justify-items: center;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.zx-agent-thread__notice {
|
|
199
|
+
display: inline-flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: var(--zx-space-2);
|
|
202
|
+
margin: 0;
|
|
203
|
+
color: var(--zx-color-text-muted);
|
|
204
|
+
font-size: var(--zx-text-sm);
|
|
205
|
+
text-align: center;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.zx-agent-thread__notice-icon {
|
|
209
|
+
display: inline-flex;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.zx-agent-thread__item[data-tone="info"] .zx-agent-thread__notice-icon { color: var(--zx-color-info); }
|
|
213
|
+
.zx-agent-thread__item[data-tone="success"] .zx-agent-thread__notice-icon { color: var(--zx-color-success); }
|
|
214
|
+
.zx-agent-thread__item[data-tone="warning"] .zx-agent-thread__notice-icon { color: var(--zx-color-warning); }
|
|
215
|
+
.zx-agent-thread__item[data-tone="danger"] .zx-agent-thread__notice-icon { color: var(--zx-color-danger); }
|
|
216
|
+
.zx-agent-thread__item[data-tone="danger"] .zx-agent-thread__notice { color: var(--zx-color-text); }
|
|
217
|
+
|
|
218
|
+
/* ------------------------------------------------------------------ answers -- */
|
|
219
|
+
|
|
220
|
+
.zx-agent-thread__footer {
|
|
221
|
+
display: grid;
|
|
222
|
+
gap: var(--zx-space-2);
|
|
223
|
+
min-inline-size: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.zx-agent-thread__footer:empty {
|
|
227
|
+
display: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.zx-agent-thread__actions {
|
|
231
|
+
display: flex;
|
|
232
|
+
flex-wrap: wrap;
|
|
233
|
+
align-items: center;
|
|
234
|
+
gap: var(--zx-space-1);
|
|
235
|
+
margin-inline-start: calc(var(--zx-space-1) * -1);
|
|
236
|
+
color: var(--zx-color-text-muted);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.zx-agent-thread__action[aria-pressed="true"] {
|
|
240
|
+
background: var(--zx-color-bg-current);
|
|
241
|
+
color: var(--zx-color-text);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.zx-agent-thread__pager {
|
|
245
|
+
display: inline-flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
gap: var(--zx-space-1);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.zx-agent-thread__pager-text {
|
|
251
|
+
min-inline-size: 3ch;
|
|
252
|
+
font-size: var(--zx-text-xs);
|
|
253
|
+
font-variant-numeric: tabular-nums;
|
|
254
|
+
text-align: center;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* ------------------------------------------------------------------ chrome -- */
|
|
258
|
+
|
|
259
|
+
.zx-agent-thread__empty {
|
|
260
|
+
padding-block: var(--zx-space-6);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.zx-agent-thread__latest {
|
|
264
|
+
position: sticky;
|
|
265
|
+
inset-block-end: var(--zx-space-3);
|
|
266
|
+
display: inline-flex;
|
|
267
|
+
justify-self: center;
|
|
268
|
+
align-items: center;
|
|
269
|
+
gap: var(--zx-space-2);
|
|
270
|
+
margin-block-start: var(--zx-space-3);
|
|
271
|
+
padding: var(--zx-space-1) var(--zx-space-3);
|
|
272
|
+
border: 1px solid var(--zx-color-border-subtle);
|
|
273
|
+
border-radius: var(--zx-radius-full);
|
|
274
|
+
background: var(--zx-color-bg-surface);
|
|
275
|
+
box-shadow: var(--zx-overlay-shadow);
|
|
276
|
+
color: var(--zx-color-text);
|
|
277
|
+
font: inherit;
|
|
278
|
+
font-size: var(--zx-text-sm);
|
|
279
|
+
cursor: pointer;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.zx-agent-thread__latest[hidden] {
|
|
283
|
+
display: none;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.zx-agent-thread__latest:hover {
|
|
287
|
+
background: var(--zx-color-bg-hover);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.zx-agent-thread__latest:focus-visible {
|
|
291
|
+
outline-color: transparent;
|
|
292
|
+
box-shadow: var(--zx-focus-ring);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* ------------------------------------------------------------------ marks, links, mentions -- */
|
|
296
|
+
|
|
297
|
+
/* An author with an `icon` (a model's mark) is drawn as a tinted tile in the avatar's place. */
|
|
298
|
+
.zx-agent-thread__mark {
|
|
299
|
+
display: inline-grid;
|
|
300
|
+
place-items: center;
|
|
301
|
+
inline-size: var(--zx-space-6);
|
|
302
|
+
block-size: var(--zx-space-6);
|
|
303
|
+
border-radius: var(--zx-radius-md);
|
|
304
|
+
background: var(--zx-color-tone-slate-bg);
|
|
305
|
+
color: var(--zx-color-tone-slate-fg);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.zx-agent-thread__mark[data-tone="blue"] { background: var(--zx-color-tone-blue-bg); color: var(--zx-color-tone-blue-fg); }
|
|
309
|
+
.zx-agent-thread__mark[data-tone="teal"] { background: var(--zx-color-tone-teal-bg); color: var(--zx-color-tone-teal-fg); }
|
|
310
|
+
.zx-agent-thread__mark[data-tone="green"] { background: var(--zx-color-tone-green-bg); color: var(--zx-color-tone-green-fg); }
|
|
311
|
+
.zx-agent-thread__mark[data-tone="amber"] { background: var(--zx-color-tone-amber-bg); color: var(--zx-color-tone-amber-fg); }
|
|
312
|
+
.zx-agent-thread__mark[data-tone="orange"] { background: var(--zx-color-tone-orange-bg); color: var(--zx-color-tone-orange-fg); }
|
|
313
|
+
.zx-agent-thread__mark[data-tone="red"] { background: var(--zx-color-tone-red-bg); color: var(--zx-color-tone-red-fg); }
|
|
314
|
+
.zx-agent-thread__mark[data-tone="pink"] { background: var(--zx-color-tone-pink-bg); color: var(--zx-color-tone-pink-fg); }
|
|
315
|
+
.zx-agent-thread__mark[data-tone="violet"] { background: var(--zx-color-tone-violet-bg); color: var(--zx-color-tone-violet-fg); }
|
|
316
|
+
|
|
317
|
+
.zx-agent-thread__mention {
|
|
318
|
+
color: var(--zx-color-accent);
|
|
319
|
+
font-weight: var(--zx-weight-medium);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.zx-agent-thread__mention[data-tone="blue"] { color: var(--zx-color-tone-blue-fg); }
|
|
323
|
+
.zx-agent-thread__mention[data-tone="teal"] { color: var(--zx-color-tone-teal-fg); }
|
|
324
|
+
.zx-agent-thread__mention[data-tone="green"] { color: var(--zx-color-tone-green-fg); }
|
|
325
|
+
.zx-agent-thread__mention[data-tone="amber"] { color: var(--zx-color-tone-amber-fg); }
|
|
326
|
+
.zx-agent-thread__mention[data-tone="orange"] { color: var(--zx-color-tone-orange-fg); }
|
|
327
|
+
.zx-agent-thread__mention[data-tone="red"] { color: var(--zx-color-tone-red-fg); }
|
|
328
|
+
.zx-agent-thread__mention[data-tone="pink"] { color: var(--zx-color-tone-pink-fg); }
|
|
329
|
+
.zx-agent-thread__mention[data-tone="violet"] { color: var(--zx-color-tone-violet-fg); }
|
|
330
|
+
|
|
331
|
+
/* A model's mark is round, an agent's a tile; `tone: 'accent'` takes the accent's quiet fill. */
|
|
332
|
+
.zx-agent-thread__mark[data-kind="model"] {
|
|
333
|
+
border-radius: var(--zx-radius-full);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.zx-agent-thread__mark[data-tone="accent"] {
|
|
337
|
+
background: var(--zx-color-accent-subtle);
|
|
338
|
+
color: var(--zx-color-accent);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.zx-agent-thread__writing {
|
|
342
|
+
margin: 0;
|
|
343
|
+
color: var(--zx-color-text-muted);
|
|
344
|
+
font-size: var(--zx-text-sm);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.zx-agent-thread__writing[hidden] {
|
|
348
|
+
display: none;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.zx-agent-thread__refs {
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-wrap: wrap;
|
|
354
|
+
gap: var(--zx-space-2);
|
|
355
|
+
margin: 0;
|
|
356
|
+
padding: 0;
|
|
357
|
+
list-style: none;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.zx-agent-thread__item[data-mine="true"] .zx-agent-thread__refs {
|
|
361
|
+
justify-content: flex-end;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.zx-agent-thread__ref,
|
|
365
|
+
.zx-agent-thread__notice-action {
|
|
366
|
+
display: inline-flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
gap: var(--zx-space-1);
|
|
369
|
+
padding: 0 var(--zx-space-2);
|
|
370
|
+
border: 1px solid var(--zx-color-border-subtle);
|
|
371
|
+
border-radius: var(--zx-radius-md);
|
|
372
|
+
background: var(--zx-color-bg-surface);
|
|
373
|
+
color: var(--zx-color-text);
|
|
374
|
+
font: inherit;
|
|
375
|
+
font-size: var(--zx-text-sm);
|
|
376
|
+
line-height: 1.6;
|
|
377
|
+
cursor: pointer;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.zx-agent-thread__ref-icon {
|
|
381
|
+
display: inline-flex;
|
|
382
|
+
color: var(--zx-color-text-muted);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.zx-agent-thread__ref:hover,
|
|
386
|
+
.zx-agent-thread__notice-action:hover {
|
|
387
|
+
background: var(--zx-color-bg-hover);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.zx-agent-thread__ref:focus-visible,
|
|
391
|
+
.zx-agent-thread__notice-action:focus-visible {
|
|
392
|
+
outline-color: transparent;
|
|
393
|
+
box-shadow: var(--zx-focus-ring);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.zx-agent-thread__notice-action {
|
|
397
|
+
margin-inline-start: var(--zx-space-1);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* The person's own message: its actions sit under the bubble, at the end. */
|
|
401
|
+
.zx-agent-thread__item[data-mine="true"] .zx-agent-thread__actions {
|
|
402
|
+
justify-content: flex-end;
|
|
403
|
+
margin-inline: 0 calc(var(--zx-space-1) * -1);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* ------------------------------------------------------------------ narrow -- */
|
|
407
|
+
|
|
408
|
+
/* In a narrow column the content takes the full width; the avatar stays beside the byline. */
|
|
409
|
+
@container zx-agent-thread (max-width: 30rem) {
|
|
410
|
+
.zx-agent-thread__body {
|
|
411
|
+
grid-column: 1 / -1;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.zx-agent-thread__item[data-continued="true"] > .zx-agent-thread__body {
|
|
415
|
+
grid-row: 1;
|
|
416
|
+
}
|
|
417
|
+
}
|