@crewlethq/ui 0.112.0 → 0.113.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/ActivityLine/ActivityLine.d.ts +16 -22
  3. package/dist/ActivityLine/index.js +4 -2
  4. package/dist/ActivityLine-TIMSOQGU.css +32 -0
  5. package/dist/ArtifactCard/index.js +3 -3
  6. package/dist/AvatarPicker/index.js +3 -3
  7. package/dist/CharacterPicker/index.js +2 -2
  8. package/dist/CommentThread/index.js +1 -1
  9. package/dist/DataGrid/index.js +1 -1
  10. package/dist/{DataGrid-YNLCEH3E.css → DataGrid-7KUUYSHA.css} +48 -7
  11. package/dist/OrgTable/index.js +5 -5
  12. package/dist/RichEditor/index.js +1 -1
  13. package/dist/ShareDialog/index.js +2 -2
  14. package/dist/SheetGrid/index.js +3 -3
  15. package/dist/TableCells/index.js +1 -1
  16. package/dist/ThreadSummary/ThreadSummary.d.ts +1 -1
  17. package/dist/ThreadSummary/index.js +1 -1
  18. package/dist/TreeGrid/index.js +2 -2
  19. package/dist/WorkingLine/BouncingDots.d.ts +8 -0
  20. package/dist/WorkingLine/WorkingLine.d.ts +97 -0
  21. package/dist/WorkingLine/index.d.ts +5 -0
  22. package/dist/WorkingLine/index.js +5 -0
  23. package/dist/WorkingLine-NUFSSAOL.css +332 -0
  24. package/dist/{chunk-ECGYBWRI.js → chunk-32QH3CAO.js} +1 -1
  25. package/dist/{chunk-45VQPH27.js → chunk-6S2Q4DGN.js} +1 -1
  26. package/dist/{chunk-RHD46WIZ.js → chunk-R4PZUVPD.js} +1 -1
  27. package/dist/chunk-RNIPNSCH.js +158 -0
  28. package/dist/{chunk-Y3FLNQEE.js → chunk-S3ZFYKNS.js} +16 -8
  29. package/dist/{chunk-DTZ72KVX.js → chunk-TXTYTIIH.js} +1 -1
  30. package/dist/chunk-ZLCPU4HW.js +17 -0
  31. package/dist/generated/index.d.ts +1 -0
  32. package/dist/generated/index.js +30 -29
  33. package/dist/index.js +30 -29
  34. package/dist/styles.css +392 -58
  35. package/package.json +3 -3
  36. package/dist/ActivityLine-AMSERTOB.css +0 -74
  37. package/dist/chunk-5YFQMMTJ.js +0 -29
  38. package/dist/{Editor-YITN2DWX.js → Editor-XT73VTSJ.js} +1 -1
  39. package/dist/{chunk-AQMB6ONN.js → chunk-2NUQBD3O.js} +1 -1
  40. package/dist/{chunk-LNQSNXGJ.js → chunk-S4JRQJEP.js} +1 -1
  41. package/dist/{chunk-ENYB3HIA.js → chunk-TEOJ7OKD.js} +1 -1
  42. /package/dist/{chunk-2DYEPDT7.js → chunk-XDBCWSM5.js} +0 -0
@@ -0,0 +1,332 @@
1
+ /*
2
+ * Every agent at work on one line (WorkingLine.tsx): a stack of faces, one
3
+ * sentence under a sweeping band, bouncing dots, and one line per agent on
4
+ * demand. In the chat's meta step, so it sits under a message, at the end of
5
+ * a thread and under a composer alike.
6
+ */
7
+
8
+ .crewlet-working-line {
9
+ /* The ground the faces' cut-out is drawn in: the transcript's. */
10
+ --crewlet-avatar-stack-ground: var(--crewlet-chat-ground);
11
+ display: flex;
12
+ flex-direction: column;
13
+ min-width: 0;
14
+ max-width: 100%;
15
+ color: var(--color-text-secondary);
16
+ font-family: var(--font-family-sans);
17
+ font-size: var(--crewlet-chat-meta);
18
+ line-height: 20px;
19
+ }
20
+
21
+ /* Nobody at work: no box at all, only the live region, which is positioned
22
+ out of the flow, so a host's gap and height never count an empty line. */
23
+ .crewlet-working-line.is-idle {
24
+ display: contents;
25
+ }
26
+
27
+ /* One line as tall as its 20px faces, never wider than its column. */
28
+ .crewlet-working-line__summary {
29
+ position: relative;
30
+ display: flex;
31
+ align-items: center;
32
+ gap: var(--spacing-2);
33
+ min-width: 0;
34
+ max-width: 100%;
35
+ min-height: 20px;
36
+ border-radius: var(--radius-sm);
37
+ }
38
+
39
+ .crewlet-working-line__faces {
40
+ flex: none;
41
+ }
42
+
43
+ /*
44
+ * THE WORDS. Only the names give way where the column is narrow, down to a
45
+ * few letters, so the count of the rest, the verb and the dots always read
46
+ * whole: any shrink at all would put an ellipsis in the verb. Past that, in a
47
+ * column too narrow for the line, the words are clipped rather than spilling
48
+ * out of it.
49
+ */
50
+ .crewlet-working-line__text {
51
+ display: flex;
52
+ align-items: baseline;
53
+ gap: var(--spacing-1);
54
+ min-width: 0;
55
+ overflow: hidden;
56
+ white-space: nowrap;
57
+ }
58
+
59
+ /*
60
+ * Who: the names and, after three or more, the count of the rest, which is
61
+ * drawn whole. A grid, because its names track (at least a few letters, at
62
+ * most every name) is what bounds how far the pair shrinks; unwrapped text in
63
+ * a flex row would count its whole width as its minimum. The sweep crosses
64
+ * both, clipped to their glyphs.
65
+ */
66
+ .crewlet-working-line__who {
67
+ display: grid;
68
+ flex: 0 1 auto;
69
+ grid-auto-columns: max-content;
70
+ grid-auto-flow: column;
71
+ grid-template-columns: minmax(var(--spacing-6), max-content);
72
+ column-gap: var(--spacing-1);
73
+ color: var(--color-text-secondary);
74
+ font-weight: var(--font-weight-medium);
75
+ }
76
+
77
+ .crewlet-working-line__names {
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ }
81
+
82
+ .crewlet-working-line__verb {
83
+ flex: none;
84
+ animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
85
+ }
86
+
87
+ .crewlet-working-line__queued {
88
+ flex: none;
89
+ color: var(--color-text-tertiary);
90
+ }
91
+
92
+ .crewlet-working-line__queued::before {
93
+ content: '\00b7';
94
+ margin-inline-end: var(--spacing-1);
95
+ }
96
+
97
+ /*
98
+ * THE SWEEP: a lighter band crosses the names, left to right, then rests off
99
+ * the end for the last 30% of the period before it loops. The names are the
100
+ * secondary ink at rest and the band is the primary ink, so they read at every
101
+ * point of it in both palettes. The gradient is twice the names' width and
102
+ * repeats, so the band enters from beyond the start and leaves past the end.
103
+ */
104
+ @supports (background-clip: text) or (-webkit-background-clip: text) {
105
+ .crewlet-working-line__who {
106
+ background-image: linear-gradient(
107
+ 90deg,
108
+ var(--color-text-secondary) 0%,
109
+ var(--color-text-secondary) 43%,
110
+ var(--color-text-primary) 50%,
111
+ var(--color-text-secondary) 57%,
112
+ var(--color-text-secondary) 100%
113
+ );
114
+ background-size: 200% 100%;
115
+ -webkit-background-clip: text;
116
+ background-clip: text;
117
+ color: transparent;
118
+ animation: crewlet-working-line-sweep var(--motion-duration-breath) linear infinite;
119
+ }
120
+ }
121
+
122
+ @keyframes crewlet-working-line-sweep {
123
+ 0% {
124
+ background-position: 150% 0;
125
+ }
126
+
127
+ 70%,
128
+ 100% {
129
+ background-position: -50% 0;
130
+ }
131
+ }
132
+
133
+ /* A new phrase arrives from a third of its strength, so the change is seen
134
+ without the words ever vanishing. */
135
+ @keyframes crewlet-working-line-phase {
136
+ from {
137
+ opacity: 0.3;
138
+ }
139
+
140
+ to {
141
+ opacity: 1;
142
+ }
143
+ }
144
+
145
+ /* QUEUED: nothing has started, so nothing moves. */
146
+ .crewlet-working-line.is-queued .crewlet-working-line__who {
147
+ background-image: none;
148
+ color: var(--color-text-secondary);
149
+ animation: none;
150
+ }
151
+
152
+ .crewlet-working-line.is-queued .crewlet-working-line__verb {
153
+ color: var(--color-text-tertiary);
154
+ }
155
+
156
+ /*
157
+ * THE TOGGLE: a chevron at the line's end whose target is the whole line, so
158
+ * the line opens wherever it is pressed while the button stays one control
159
+ * with one name. The ring is drawn round the whole line.
160
+ */
161
+ .crewlet-working-line__toggle {
162
+ display: inline-flex;
163
+ flex: none;
164
+ align-items: center;
165
+ justify-content: center;
166
+ width: 20px;
167
+ height: 20px;
168
+ margin: 0;
169
+ padding: 0;
170
+ border: 0;
171
+ background: transparent;
172
+ color: var(--color-text-tertiary);
173
+ font: inherit;
174
+ cursor: pointer;
175
+ }
176
+
177
+ .crewlet-working-line__toggle::after {
178
+ content: '';
179
+ position: absolute;
180
+ inset: 0;
181
+ border-radius: inherit;
182
+ }
183
+
184
+ /* The ring is the line's (below); the button keeps a transparent outline,
185
+ which forced-colors mode paints in the system ink. */
186
+ .crewlet-working-line__toggle:focus-visible {
187
+ outline: 2px solid transparent;
188
+ }
189
+
190
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:focus-visible) {
191
+ outline: 2px solid var(--color-focus);
192
+ outline-offset: 2px;
193
+ }
194
+
195
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:hover) .crewlet-working-line__toggle,
196
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:hover) .crewlet-working-line__verb {
197
+ color: var(--color-text-primary);
198
+ }
199
+
200
+ .crewlet-working-line__chevron {
201
+ transition: transform var(--motion-duration-fast) var(--motion-easing-out);
202
+ }
203
+
204
+ .crewlet-working-line.is-open .crewlet-working-line__chevron {
205
+ transform: rotate(180deg);
206
+ }
207
+
208
+ /* ONE COMPACT LINE PER AGENT: a 20px face, the name and its own phrase. */
209
+ .crewlet-working-line__detail {
210
+ display: flex;
211
+ flex-direction: column;
212
+ gap: 2px;
213
+ margin: 0;
214
+ padding: var(--spacing-1) 0 0;
215
+ list-style: none;
216
+ }
217
+
218
+ .crewlet-working-line__agent {
219
+ display: flex;
220
+ align-items: center;
221
+ gap: var(--spacing-2);
222
+ min-width: 0;
223
+ min-height: 22px;
224
+ white-space: nowrap;
225
+ }
226
+
227
+ .crewlet-working-line__agent-name {
228
+ flex: 0 1 auto;
229
+ min-width: 0;
230
+ overflow: hidden;
231
+ color: var(--color-text-primary);
232
+ font-weight: var(--font-weight-medium);
233
+ text-overflow: ellipsis;
234
+ }
235
+
236
+ .crewlet-working-line__agent-phrase {
237
+ flex: 0 10 auto;
238
+ min-width: 0;
239
+ overflow: hidden;
240
+ text-overflow: ellipsis;
241
+ animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
242
+ }
243
+
244
+ .crewlet-working-line__agent.is-queued .crewlet-working-line__agent-phrase {
245
+ color: var(--color-text-tertiary);
246
+ }
247
+
248
+ /*
249
+ * THE DOTS, three in turn, each lifting and brightening once a period. Shared
250
+ * with somebody typing (ActivityLine), in the ink around them.
251
+ */
252
+ .crewlet-bouncing-dots {
253
+ display: inline-flex;
254
+ flex: none;
255
+ align-items: flex-end;
256
+ align-self: center;
257
+ gap: 2px;
258
+ }
259
+
260
+ .crewlet-bouncing-dots > i {
261
+ width: 4px;
262
+ height: 4px;
263
+ border-radius: var(--radius-circle);
264
+ background: currentColor;
265
+ animation: crewlet-bouncing-dots calc(var(--motion-duration-slow) * 4) var(--motion-easing-in-out) infinite;
266
+ }
267
+
268
+ .crewlet-bouncing-dots > i:nth-child(2) {
269
+ animation-delay: var(--motion-duration-base);
270
+ }
271
+
272
+ .crewlet-bouncing-dots > i:nth-child(3) {
273
+ animation-delay: var(--motion-duration-slow);
274
+ }
275
+
276
+ @keyframes crewlet-bouncing-dots {
277
+ 0%,
278
+ 60%,
279
+ 100% {
280
+ opacity: 0.3;
281
+ transform: none;
282
+ }
283
+
284
+ 30% {
285
+ opacity: 1;
286
+ transform: translateY(-3px);
287
+ }
288
+ }
289
+
290
+ /* UNDER REDUCED MOTION every part holds still: the names in the primary ink
291
+ without the band, the phrases without their fade, the dots at full
292
+ strength, and the chevron turned at once. */
293
+ @media (prefers-reduced-motion: reduce) {
294
+ .crewlet-working-line__who {
295
+ background-image: none;
296
+ color: var(--color-text-primary);
297
+ animation: none;
298
+ }
299
+
300
+ .crewlet-working-line.is-queued .crewlet-working-line__who {
301
+ color: var(--color-text-secondary);
302
+ }
303
+
304
+ .crewlet-working-line__verb {
305
+ animation: none;
306
+ }
307
+
308
+ .crewlet-working-line__agent-phrase {
309
+ animation: none;
310
+ }
311
+
312
+ .crewlet-working-line__chevron {
313
+ transition: none;
314
+ }
315
+
316
+ .crewlet-bouncing-dots > i {
317
+ opacity: 1;
318
+ animation: none;
319
+ }
320
+ }
321
+
322
+ /* The system's own ink: a gradient clipped to text is dropped there. */
323
+ @media (forced-colors: active) {
324
+ .crewlet-working-line__who {
325
+ background-image: none;
326
+ color: CanvasText;
327
+ }
328
+
329
+ .crewlet-working-line__summary:has(.crewlet-working-line__toggle:focus-visible) {
330
+ outline-color: Highlight;
331
+ }
332
+ }
@@ -1,6 +1,6 @@
1
1
  import { HuePicker } from './chunk-QVNEQSOL.js';
2
2
  import { Popover } from './chunk-KDRJZWE3.js';
3
- import { CharacterPicker } from './chunk-LNQSNXGJ.js';
3
+ import { CharacterPicker } from './chunk-S4JRQJEP.js';
4
4
  import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
5
  import { Avatar } from './chunk-XZY6S3UC.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var engine = null;
10
10
  var loading = null;
11
11
  function loadEngine() {
12
- loading ??= import('./Editor-YITN2DWX.js').then(
12
+ loading ??= import('./Editor-XT73VTSJ.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -1,4 +1,4 @@
1
- import { TreeGrid } from './chunk-DTZ72KVX.js';
1
+ import { TreeGrid } from './chunk-TXTYTIIH.js';
2
2
  import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
3
3
  import { OrgLabel } from './chunk-DEVO45TG.js';
4
4
  import { AddPill } from './chunk-5W3EYO5Q.js';
@@ -0,0 +1,158 @@
1
+ import { AvatarStack } from './chunk-5SMYKL3D.js';
2
+ import { Avatar } from './chunk-XZY6S3UC.js';
3
+ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
+ import { cx } from './chunk-ODEQTPFM.js';
5
+ import './ChatScale-6NM4TP7R.css';
6
+ import './WorkingLine-NUFSSAOL.css';
7
+ import { useState, useId } from 'react';
8
+ import { ChevronDownGlyph } from '@crewlethq/icons/glyphs';
9
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
10
+
11
+ function BouncingDots({ className }) {
12
+ return /* @__PURE__ */ jsxs("span", { className: cx("crewlet-bouncing-dots", className), "aria-hidden": "true", children: [
13
+ /* @__PURE__ */ jsx("i", {}),
14
+ /* @__PURE__ */ jsx("i", {}),
15
+ /* @__PURE__ */ jsx("i", {})
16
+ ] });
17
+ }
18
+ var WORKING_LINE_LABELS = {
19
+ working: "are working",
20
+ queued: "are queued",
21
+ workingOne: "is working",
22
+ queuedOne: "is queued",
23
+ others: (count) => `and ${count} ${count === 1 ? "other" : "others"}`,
24
+ series: (names) => names.join(", "),
25
+ queuedCount: (count) => `${count} queued`,
26
+ list: (names) => names.length < 2 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`,
27
+ detail: "Each agent at work"
28
+ };
29
+ function phrase(status) {
30
+ return (status ?? "").trim().replace(/(?:\.{3}|…)$/u, "").trimEnd();
31
+ }
32
+ function agentPhrase(agent, labels) {
33
+ return phrase(agent.status) || (agent.queued ? labels.queuedOne : labels.workingOne);
34
+ }
35
+ function workingSentence(agents, overrides) {
36
+ const labels = overrides ? { ...WORKING_LINE_LABELS, ...overrides } : WORKING_LINE_LABELS;
37
+ const active = agents.filter((agent) => !agent.queued);
38
+ const waiting = agents.filter((agent) => agent.queued);
39
+ const lead = active.length > 0 ? active : waiting;
40
+ const counted = lead.length > 2;
41
+ const names = counted ? labels.series(lead.slice(0, 2).map((agent) => agent.name)) : labels.list(lead.map((agent) => agent.name));
42
+ const others = counted ? labels.others(lead.length - 2) : "";
43
+ const verb = lead.length === 1 ? agentPhrase(lead[0], labels) : active.length > 0 ? labels.working : labels.queued;
44
+ const queued = active.length > 0 && waiting.length > 0 ? labels.queuedCount(waiting.length) : "";
45
+ return { names, others, verb, queued, everyone: !counted && queued === "", waiting: active.length === 0 };
46
+ }
47
+ function workingAnnouncement(agents, overrides) {
48
+ const labels = overrides ? { ...WORKING_LINE_LABELS, ...overrides } : WORKING_LINE_LABELS;
49
+ const said = (group, one, many) => group.length === 0 ? "" : `${labels.list(group.map((agent) => agent.name))} ${group.length === 1 ? one : many}.`;
50
+ return [
51
+ said(
52
+ agents.filter((agent) => !agent.queued),
53
+ labels.workingOne,
54
+ labels.working
55
+ ),
56
+ said(
57
+ agents.filter((agent) => agent.queued),
58
+ labels.queuedOne,
59
+ labels.queued
60
+ )
61
+ ].filter(Boolean).join(" ");
62
+ }
63
+ function WorkingLine({
64
+ agents,
65
+ max = 3,
66
+ announce = true,
67
+ defaultExpanded = false,
68
+ labels: overrides,
69
+ className,
70
+ ...rest
71
+ }) {
72
+ const labels = overrides ? { ...WORKING_LINE_LABELS, ...overrides } : WORKING_LINE_LABELS;
73
+ const [open, setOpen] = useState(defaultExpanded);
74
+ const detailID = useId();
75
+ const ordered = [...agents.filter((agent) => !agent.queued), ...agents.filter((agent) => agent.queued)];
76
+ const sentence = workingSentence(ordered, labels);
77
+ const expandable = ordered.length > 1;
78
+ const expanded = expandable && open;
79
+ return /* @__PURE__ */ jsxs(
80
+ "div",
81
+ {
82
+ ...rest,
83
+ className: cx(
84
+ "crewlet-working-line",
85
+ ordered.length === 0 && "is-idle",
86
+ sentence.waiting && "is-queued",
87
+ expanded && "is-open",
88
+ className
89
+ ),
90
+ children: [
91
+ announce ? /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", { role: "status", children: workingAnnouncement(ordered, labels) }) }) : null,
92
+ ordered.length === 0 ? null : /* @__PURE__ */ jsxs("div", { className: "crewlet-working-line__summary", children: [
93
+ /* @__PURE__ */ jsx(
94
+ AvatarStack,
95
+ {
96
+ className: "crewlet-working-line__faces",
97
+ members: ordered,
98
+ max,
99
+ size: "xs",
100
+ decorative: sentence.everyone,
101
+ label: labels.list(ordered.map((agent) => agent.name))
102
+ }
103
+ ),
104
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-working-line__text", children: [
105
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-working-line__who", children: [
106
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__names", children: sentence.names }),
107
+ sentence.others ? /* @__PURE__ */ jsxs(Fragment, { children: [
108
+ " ",
109
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__others", children: sentence.others })
110
+ ] }) : null
111
+ ] }),
112
+ " ",
113
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__verb", children: sentence.verb }, sentence.verb),
114
+ sentence.waiting ? null : /* @__PURE__ */ jsx(BouncingDots, { className: "crewlet-working-line__dots" }),
115
+ sentence.queued ? /* @__PURE__ */ jsxs(Fragment, { children: [
116
+ " ",
117
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__queued", children: sentence.queued })
118
+ ] }) : null
119
+ ] }),
120
+ expandable ? /* @__PURE__ */ jsx(
121
+ "button",
122
+ {
123
+ type: "button",
124
+ className: "crewlet-working-line__toggle",
125
+ "aria-label": labels.detail,
126
+ "aria-expanded": expanded,
127
+ "aria-controls": detailID,
128
+ onClick: () => setOpen((was) => !was),
129
+ children: /* @__PURE__ */ jsx(ChevronDownGlyph, { size: "sm", className: "crewlet-working-line__chevron" })
130
+ }
131
+ ) : null
132
+ ] }),
133
+ expanded ? /* @__PURE__ */ jsx("ul", { id: detailID, className: "crewlet-working-line__detail", "aria-label": labels.detail, children: ordered.map((agent) => {
134
+ const words = agentPhrase(agent, labels);
135
+ return /* @__PURE__ */ jsxs("li", { className: cx("crewlet-working-line__agent", agent.queued && "is-queued"), children: [
136
+ /* @__PURE__ */ jsx(
137
+ Avatar,
138
+ {
139
+ name: agent.name,
140
+ kind: agent.kind,
141
+ src: agent.src,
142
+ character: agent.character,
143
+ hue: agent.hue,
144
+ size: "xs",
145
+ decorative: true
146
+ }
147
+ ),
148
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__agent-name", children: agent.name }),
149
+ " ",
150
+ /* @__PURE__ */ jsx("span", { className: "crewlet-working-line__agent-phrase", children: words }, words)
151
+ ] }, agent.id ?? agent.name);
152
+ }) }) : null
153
+ ]
154
+ }
155
+ );
156
+ }
157
+
158
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence };
@@ -8,7 +8,7 @@ import { Button } from './chunk-NPPPQSRU.js';
8
8
  import { IconButton } from './chunk-BF2BXM6V.js';
9
9
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
11
- import './DataGrid-YNLCEH3E.css';
11
+ import './DataGrid-7KUUYSHA.css';
12
12
  import { useId, useRef, useState, useMemo, useCallback, useLayoutEffect, useImperativeHandle, useSyncExternalStore, useEffect, Fragment as Fragment$1 } from 'react';
13
13
  import { breakpoint } from '@crewlethq/tokens';
14
14
  import { ArrowDownGlyph, ArrowUpGlyph, ArrowUpDownGlyph, GripVerticalGlyph, ChevronRightGlyph } from '@crewlethq/icons/glyphs';
@@ -752,18 +752,26 @@ function DataGrid({
752
752
  `summary-${summary.key}`
753
753
  );
754
754
  }
755
- function renderBand(band) {
755
+ function renderBand(band, depth = 0) {
756
756
  const loaded = bandRows(band).length;
757
757
  return (
758
758
  // A BAND IS ROWS OF THE TABLE: its head and its foot are rows of one
759
759
  // cell each across every column, and its own box is layout alone.
760
760
  /* @__PURE__ */ jsxs("div", { className: "crewlet-data-grid__band", role: "none", children: [
761
- /* @__PURE__ */ jsx("div", { className: "crewlet-data-grid__band-head", role: "row", children: /* @__PURE__ */ jsxs("span", { className: "crewlet-data-grid__band-cell", role: "rowheader", "aria-colspan": drawnColumns.length, children: [
762
- band.mark,
763
- /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__truncate", onMouseEnter: titleWhenCut, children: band.label }),
764
- /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__band-count", children: band.total != null && band.total !== loaded ? `${loaded} of ${band.total}` : loaded })
765
- ] }) }),
766
- band.bands ? band.bands.map((sub) => renderBand(sub)) : sortRows(band.rows).map(renderRow),
761
+ /* @__PURE__ */ jsx(
762
+ "div",
763
+ {
764
+ className: "crewlet-data-grid__band-head",
765
+ role: "row",
766
+ style: depth ? { "--crewlet-data-grid-band-depth": depth } : void 0,
767
+ children: /* @__PURE__ */ jsxs("span", { className: "crewlet-data-grid__band-cell", role: "rowheader", "aria-colspan": drawnColumns.length, children: [
768
+ band.mark,
769
+ /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__truncate", onMouseEnter: titleWhenCut, children: band.label }),
770
+ /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__band-count", children: band.total != null && band.total !== loaded ? `${loaded} of ${band.total}` : loaded })
771
+ ] })
772
+ }
773
+ ),
774
+ band.bands ? band.bands.map((sub) => renderBand(sub, depth + 1)) : sortRows(band.rows).map(renderRow),
767
775
  band.footer && /* @__PURE__ */ jsx("div", { className: "crewlet-data-grid__band-foot", role: "row", children: /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__band-cell", role: "cell", "aria-colspan": drawnColumns.length, children: band.footer }) })
768
776
  ] }, band.key)
769
777
  );
@@ -1,5 +1,5 @@
1
1
  import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
2
- import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-Y3FLNQEE.js';
2
+ import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-S3ZFYKNS.js';
3
3
  import { LayerNodeBridge } from './chunk-X4HBZSXA.js';
4
4
  import { Checkbox } from './chunk-DTEDUAEW.js';
5
5
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
@@ -0,0 +1,17 @@
1
+ import { WorkingLine, BouncingDots } from './chunk-RNIPNSCH.js';
2
+ import { cx } from './chunk-ODEQTPFM.js';
3
+ import './ChatScale-6NM4TP7R.css';
4
+ import './ActivityLine-TIMSOQGU.css';
5
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
+
7
+ function ActivityLine({ typing, agents, workingLabels, className, ...rest }) {
8
+ return /* @__PURE__ */ jsxs("div", { ...rest, className: cx("crewlet-activity-line", className), children: [
9
+ /* @__PURE__ */ jsx(WorkingLine, { agents: agents ?? [], labels: workingLabels, className: "crewlet-activity-line__working" }),
10
+ /* @__PURE__ */ jsx("span", { className: "crewlet-activity-line__typing", role: "status", children: typing ? /* @__PURE__ */ jsxs(Fragment, { children: [
11
+ typing,
12
+ /* @__PURE__ */ jsx(BouncingDots, {})
13
+ ] }) : null })
14
+ ] });
15
+ }
16
+
17
+ export { ActivityLine };
@@ -258,4 +258,5 @@ export * from '../VersionCompare/index.js';
258
258
  export * from '../VersionTimeline/index.js';
259
259
  export * from '../VisuallyHidden/index.js';
260
260
  export * from '../WidgetFrame/index.js';
261
+ export * from '../WorkingLine/index.js';
261
262
  export * from '../utils/index.js';