@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.
- package/README.md +1 -1
- package/dist/ActivityLine/ActivityLine.d.ts +16 -22
- package/dist/ActivityLine/index.js +4 -2
- package/dist/ActivityLine-TIMSOQGU.css +32 -0
- package/dist/ArtifactCard/index.js +3 -3
- package/dist/AvatarPicker/index.js +3 -3
- package/dist/CharacterPicker/index.js +2 -2
- package/dist/CommentThread/index.js +1 -1
- package/dist/DataGrid/index.js +1 -1
- package/dist/{DataGrid-YNLCEH3E.css → DataGrid-7KUUYSHA.css} +48 -7
- package/dist/OrgTable/index.js +5 -5
- package/dist/RichEditor/index.js +1 -1
- package/dist/ShareDialog/index.js +2 -2
- package/dist/SheetGrid/index.js +3 -3
- package/dist/TableCells/index.js +1 -1
- package/dist/ThreadSummary/ThreadSummary.d.ts +1 -1
- package/dist/ThreadSummary/index.js +1 -1
- package/dist/TreeGrid/index.js +2 -2
- package/dist/WorkingLine/BouncingDots.d.ts +8 -0
- package/dist/WorkingLine/WorkingLine.d.ts +97 -0
- package/dist/WorkingLine/index.d.ts +5 -0
- package/dist/WorkingLine/index.js +5 -0
- package/dist/WorkingLine-NUFSSAOL.css +332 -0
- package/dist/{chunk-ECGYBWRI.js → chunk-32QH3CAO.js} +1 -1
- package/dist/{chunk-45VQPH27.js → chunk-6S2Q4DGN.js} +1 -1
- package/dist/{chunk-RHD46WIZ.js → chunk-R4PZUVPD.js} +1 -1
- package/dist/chunk-RNIPNSCH.js +158 -0
- package/dist/{chunk-Y3FLNQEE.js → chunk-S3ZFYKNS.js} +16 -8
- package/dist/{chunk-DTZ72KVX.js → chunk-TXTYTIIH.js} +1 -1
- package/dist/chunk-ZLCPU4HW.js +17 -0
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +30 -29
- package/dist/index.js +30 -29
- package/dist/styles.css +392 -58
- package/package.json +3 -3
- package/dist/ActivityLine-AMSERTOB.css +0 -74
- package/dist/chunk-5YFQMMTJ.js +0 -29
- package/dist/{Editor-YITN2DWX.js → Editor-XT73VTSJ.js} +1 -1
- package/dist/{chunk-AQMB6ONN.js → chunk-2NUQBD3O.js} +1 -1
- package/dist/{chunk-LNQSNXGJ.js → chunk-S4JRQJEP.js} +1 -1
- package/dist/{chunk-ENYB3HIA.js → chunk-TEOJ7OKD.js} +1 -1
- /package/dist/{chunk-2DYEPDT7.js → chunk-XDBCWSM5.js} +0 -0
package/dist/styles.css
CHANGED
|
@@ -242,9 +242,9 @@
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
/* ActivityLine-
|
|
245
|
+
/* ActivityLine-TIMSOQGU.css */
|
|
246
246
|
/*
|
|
247
|
-
* Who is typing and which
|
|
247
|
+
* Who is typing and which agents are working, under a composer, in the meta
|
|
248
248
|
* step and the tertiary ink.
|
|
249
249
|
*/
|
|
250
250
|
|
|
@@ -259,63 +259,21 @@
|
|
|
259
259
|
font-size: var(--crewlet-chat-meta);
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
/* No piece is wider than the line: a long working
|
|
262
|
+
/* No piece is wider than the line: a long working line truncates. */
|
|
263
263
|
.crewlet-activity-line > * {
|
|
264
264
|
max-width: 100%;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
/* The working line in the line's own step, over the indicator's. */
|
|
268
|
-
.crewlet-activity-line .crewlet-activity-line__working {
|
|
269
|
-
font-size: var(--crewlet-chat-meta);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
267
|
.crewlet-activity-line__typing {
|
|
273
268
|
display: inline-flex;
|
|
274
269
|
align-items: center;
|
|
275
|
-
gap: var(--spacing-
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.crewlet-activity-line__dots {
|
|
279
|
-
display: inline-flex;
|
|
280
|
-
gap: 2px;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.crewlet-activity-line__dots > i {
|
|
284
|
-
width: 4px;
|
|
285
|
-
height: 4px;
|
|
286
|
-
border-radius: var(--radius-circle);
|
|
287
|
-
background: currentColor;
|
|
288
|
-
animation: crewlet-activity-line-typing calc(var(--motion-duration-slow) * 4) var(--motion-easing-in-out) infinite;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.crewlet-activity-line__dots > i:nth-child(2) {
|
|
292
|
-
animation-delay: var(--motion-duration-base);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.crewlet-activity-line__dots > i:nth-child(3) {
|
|
296
|
-
animation-delay: var(--motion-duration-slow);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
@keyframes crewlet-activity-line-typing {
|
|
300
|
-
0%,
|
|
301
|
-
60%,
|
|
302
|
-
100% {
|
|
303
|
-
opacity: 0.3;
|
|
304
|
-
transform: none;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
30% {
|
|
308
|
-
opacity: 1;
|
|
309
|
-
transform: translateY(-2px);
|
|
310
|
-
}
|
|
270
|
+
gap: var(--spacing-1);
|
|
311
271
|
}
|
|
312
272
|
|
|
313
|
-
/*
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
animation: none;
|
|
318
|
-
}
|
|
273
|
+
/* Nobody typing: the live region stays mounted but out of the flow, so it
|
|
274
|
+
never wraps onto a line of its own beside a long working line. */
|
|
275
|
+
.crewlet-activity-line__typing:empty {
|
|
276
|
+
position: absolute;
|
|
319
277
|
}
|
|
320
278
|
|
|
321
279
|
|
|
@@ -15557,7 +15515,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
|
|
|
15557
15515
|
}
|
|
15558
15516
|
|
|
15559
15517
|
|
|
15560
|
-
/* DataGrid-
|
|
15518
|
+
/* DataGrid-7KUUYSHA.css */
|
|
15561
15519
|
/*
|
|
15562
15520
|
* DataGrid: a list as columns, one track list on the grid.
|
|
15563
15521
|
*
|
|
@@ -15581,6 +15539,11 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
|
|
|
15581
15539
|
that of every band that spans it (a band's head and foot, the foot). The
|
|
15582
15540
|
cells' own step on a grid standing alone; the card's own in a card. */
|
|
15583
15541
|
--crewlet-data-grid-edge: var(--spacing-3);
|
|
15542
|
+
/* THE STICKY STACK: the column heads at the application's offset, then one
|
|
15543
|
+
band head per level of grouping under them. Both heights are definite, so
|
|
15544
|
+
each level sticks exactly under the one above it. */
|
|
15545
|
+
--crewlet-data-grid-head-height: var(--size-row-md);
|
|
15546
|
+
--crewlet-data-grid-band-head-height: calc(var(--spacing-2) * 2 + var(--font-size-xs) * var(--font-line-height-normal));
|
|
15584
15547
|
|
|
15585
15548
|
display: grid;
|
|
15586
15549
|
min-width: 0;
|
|
@@ -15641,7 +15604,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
|
|
|
15641
15604
|
*/
|
|
15642
15605
|
.crewlet-data-grid__head {
|
|
15643
15606
|
align-items: center;
|
|
15644
|
-
min-height: var(--
|
|
15607
|
+
min-height: var(--crewlet-data-grid-head-height);
|
|
15645
15608
|
border-bottom: 1px solid var(--color-border-hover);
|
|
15646
15609
|
background: var(--color-surface-elevated);
|
|
15647
15610
|
position: sticky;
|
|
@@ -15849,6 +15812,9 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
|
|
|
15849
15812
|
cursor: pointer;
|
|
15850
15813
|
/* The containing block for the row's link. */
|
|
15851
15814
|
position: relative;
|
|
15815
|
+
/* A row keeps whatever it holds to itself: a cell's control raised with a
|
|
15816
|
+
z-index of its own still paints under the sticky heads, never over them. */
|
|
15817
|
+
isolation: isolate;
|
|
15852
15818
|
transition: background var(--motion-duration-fast) var(--motion-easing-default);
|
|
15853
15819
|
}
|
|
15854
15820
|
|
|
@@ -15952,6 +15918,8 @@ button.crewlet-data-grid__row-link {
|
|
|
15952
15918
|
grid-template-columns: subgrid;
|
|
15953
15919
|
grid-column: 1 / -1;
|
|
15954
15920
|
border-bottom: 1px solid var(--color-border-default);
|
|
15921
|
+
/* Under the sticky heads, as a row is. */
|
|
15922
|
+
isolation: isolate;
|
|
15955
15923
|
}
|
|
15956
15924
|
|
|
15957
15925
|
.crewlet-data-grid__subrow:not(:last-child):has(+ .crewlet-data-grid__subrow) {
|
|
@@ -16138,7 +16106,10 @@ button.crewlet-data-grid__row-link {
|
|
|
16138
16106
|
* every row, for a grid in a drawer or a side panel read beside something
|
|
16139
16107
|
* else. The type stays; only the rows' height and their air give.
|
|
16140
16108
|
*/
|
|
16141
|
-
.crewlet-data-grid[data-density='compact']
|
|
16109
|
+
.crewlet-data-grid[data-density='compact'] {
|
|
16110
|
+
--crewlet-data-grid-head-height: var(--size-row-sm);
|
|
16111
|
+
}
|
|
16112
|
+
|
|
16142
16113
|
.crewlet-data-grid[data-density='compact'] .crewlet-data-grid__row {
|
|
16143
16114
|
min-height: var(--size-row-sm);
|
|
16144
16115
|
}
|
|
@@ -16182,16 +16153,37 @@ button.crewlet-data-grid__row-link {
|
|
|
16182
16153
|
display: flex;
|
|
16183
16154
|
align-items: center;
|
|
16184
16155
|
gap: var(--spacing-2);
|
|
16156
|
+
box-sizing: border-box;
|
|
16157
|
+
height: var(--crewlet-data-grid-band-head-height);
|
|
16185
16158
|
padding: var(--spacing-2) var(--crewlet-data-grid-edge);
|
|
16186
16159
|
background: var(--color-surface-elevated);
|
|
16187
16160
|
font-size: var(--font-size-xs);
|
|
16161
|
+
line-height: var(--font-line-height-normal);
|
|
16188
16162
|
font-weight: var(--font-weight-semibold);
|
|
16163
|
+
/* One line, so it never outgrows its height onto the rows under it. */
|
|
16164
|
+
white-space: nowrap;
|
|
16189
16165
|
position: sticky;
|
|
16190
|
-
/* Under the column heads
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
|
-
|
|
16194
|
-
|
|
16166
|
+
/* Under the column heads and under the head of every band it is inside: its
|
|
16167
|
+
level of grouping (`--crewlet-data-grid-band-depth`, which DataGrid.tsx
|
|
16168
|
+
writes on a sub-band's head) counts them. Confined to its own band, so it
|
|
16169
|
+
leaves with the band. */
|
|
16170
|
+
top: calc(
|
|
16171
|
+
var(--crewlet-data-grid-sticky-top, var(--spacing-0)) + var(--crewlet-data-grid-head-height) +
|
|
16172
|
+
var(--crewlet-data-grid-band-head-height) * var(--crewlet-data-grid-band-depth, 0)
|
|
16173
|
+
);
|
|
16174
|
+
/* Above the rows (which isolate), below the column heads, and a level under
|
|
16175
|
+
the head of the band it is inside, which it slides beneath as it leaves. */
|
|
16176
|
+
z-index: calc(var(--z-index-sticky) - 1 - var(--crewlet-data-grid-band-depth, 0));
|
|
16177
|
+
}
|
|
16178
|
+
|
|
16179
|
+
/* THE NAME GIVES WAY, the mark and the count keep their size: the name ends
|
|
16180
|
+
in an ellipsis and carries its whole text as its title while it is cut. */
|
|
16181
|
+
.crewlet-data-grid__band-head > .crewlet-data-grid__band-cell > * {
|
|
16182
|
+
flex: none;
|
|
16183
|
+
}
|
|
16184
|
+
|
|
16185
|
+
.crewlet-data-grid__band-head > .crewlet-data-grid__band-cell > .crewlet-data-grid__truncate {
|
|
16186
|
+
flex: 0 1 auto;
|
|
16195
16187
|
}
|
|
16196
16188
|
|
|
16197
16189
|
/* A SECOND AXIS IS A BAND INSIDE A BAND, inset and quieter, so it does not
|
|
@@ -16362,6 +16354,13 @@ button.crewlet-data-grid__row-link {
|
|
|
16362
16354
|
display: none;
|
|
16363
16355
|
}
|
|
16364
16356
|
|
|
16357
|
+
/* WITH NO COLUMN HEADS DRAWN, the band heads stick at the application's offset
|
|
16358
|
+
itself, not a hidden head's height under it, where rows showed through the
|
|
16359
|
+
gap. As specific as the compact rule and after it, so it wins there too. */
|
|
16360
|
+
.crewlet-data-grid[data-stacked] {
|
|
16361
|
+
--crewlet-data-grid-head-height: 0px;
|
|
16362
|
+
}
|
|
16363
|
+
|
|
16365
16364
|
:where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__body,
|
|
16366
16365
|
:where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__band,
|
|
16367
16366
|
:where(.crewlet-data-grid[data-stacked]) .crewlet-data-grid__subrow {
|
|
@@ -49567,3 +49566,338 @@ svg.crewlet-time-window__tick {
|
|
|
49567
49566
|
flex: none;
|
|
49568
49567
|
color: var(--color-feedback-warning-ink);
|
|
49569
49568
|
}
|
|
49569
|
+
|
|
49570
|
+
|
|
49571
|
+
/* WorkingLine-NUFSSAOL.css */
|
|
49572
|
+
/*
|
|
49573
|
+
* Every agent at work on one line (WorkingLine.tsx): a stack of faces, one
|
|
49574
|
+
* sentence under a sweeping band, bouncing dots, and one line per agent on
|
|
49575
|
+
* demand. In the chat's meta step, so it sits under a message, at the end of
|
|
49576
|
+
* a thread and under a composer alike.
|
|
49577
|
+
*/
|
|
49578
|
+
|
|
49579
|
+
.crewlet-working-line {
|
|
49580
|
+
/* The ground the faces' cut-out is drawn in: the transcript's. */
|
|
49581
|
+
--crewlet-avatar-stack-ground: var(--crewlet-chat-ground);
|
|
49582
|
+
display: flex;
|
|
49583
|
+
flex-direction: column;
|
|
49584
|
+
min-width: 0;
|
|
49585
|
+
max-width: 100%;
|
|
49586
|
+
color: var(--color-text-secondary);
|
|
49587
|
+
font-family: var(--font-family-sans);
|
|
49588
|
+
font-size: var(--crewlet-chat-meta);
|
|
49589
|
+
line-height: 20px;
|
|
49590
|
+
}
|
|
49591
|
+
|
|
49592
|
+
/* Nobody at work: no box at all, only the live region, which is positioned
|
|
49593
|
+
out of the flow, so a host's gap and height never count an empty line. */
|
|
49594
|
+
.crewlet-working-line.is-idle {
|
|
49595
|
+
display: contents;
|
|
49596
|
+
}
|
|
49597
|
+
|
|
49598
|
+
/* One line as tall as its 20px faces, never wider than its column. */
|
|
49599
|
+
.crewlet-working-line__summary {
|
|
49600
|
+
position: relative;
|
|
49601
|
+
display: flex;
|
|
49602
|
+
align-items: center;
|
|
49603
|
+
gap: var(--spacing-2);
|
|
49604
|
+
min-width: 0;
|
|
49605
|
+
max-width: 100%;
|
|
49606
|
+
min-height: 20px;
|
|
49607
|
+
border-radius: var(--radius-sm);
|
|
49608
|
+
}
|
|
49609
|
+
|
|
49610
|
+
.crewlet-working-line__faces {
|
|
49611
|
+
flex: none;
|
|
49612
|
+
}
|
|
49613
|
+
|
|
49614
|
+
/*
|
|
49615
|
+
* THE WORDS. Only the names give way where the column is narrow, down to a
|
|
49616
|
+
* few letters, so the count of the rest, the verb and the dots always read
|
|
49617
|
+
* whole: any shrink at all would put an ellipsis in the verb. Past that, in a
|
|
49618
|
+
* column too narrow for the line, the words are clipped rather than spilling
|
|
49619
|
+
* out of it.
|
|
49620
|
+
*/
|
|
49621
|
+
.crewlet-working-line__text {
|
|
49622
|
+
display: flex;
|
|
49623
|
+
align-items: baseline;
|
|
49624
|
+
gap: var(--spacing-1);
|
|
49625
|
+
min-width: 0;
|
|
49626
|
+
overflow: hidden;
|
|
49627
|
+
white-space: nowrap;
|
|
49628
|
+
}
|
|
49629
|
+
|
|
49630
|
+
/*
|
|
49631
|
+
* Who: the names and, after three or more, the count of the rest, which is
|
|
49632
|
+
* drawn whole. A grid, because its names track (at least a few letters, at
|
|
49633
|
+
* most every name) is what bounds how far the pair shrinks; unwrapped text in
|
|
49634
|
+
* a flex row would count its whole width as its minimum. The sweep crosses
|
|
49635
|
+
* both, clipped to their glyphs.
|
|
49636
|
+
*/
|
|
49637
|
+
.crewlet-working-line__who {
|
|
49638
|
+
display: grid;
|
|
49639
|
+
flex: 0 1 auto;
|
|
49640
|
+
grid-auto-columns: max-content;
|
|
49641
|
+
grid-auto-flow: column;
|
|
49642
|
+
grid-template-columns: minmax(var(--spacing-6), max-content);
|
|
49643
|
+
column-gap: var(--spacing-1);
|
|
49644
|
+
color: var(--color-text-secondary);
|
|
49645
|
+
font-weight: var(--font-weight-medium);
|
|
49646
|
+
}
|
|
49647
|
+
|
|
49648
|
+
.crewlet-working-line__names {
|
|
49649
|
+
overflow: hidden;
|
|
49650
|
+
text-overflow: ellipsis;
|
|
49651
|
+
}
|
|
49652
|
+
|
|
49653
|
+
.crewlet-working-line__verb {
|
|
49654
|
+
flex: none;
|
|
49655
|
+
animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
|
|
49656
|
+
}
|
|
49657
|
+
|
|
49658
|
+
.crewlet-working-line__queued {
|
|
49659
|
+
flex: none;
|
|
49660
|
+
color: var(--color-text-tertiary);
|
|
49661
|
+
}
|
|
49662
|
+
|
|
49663
|
+
.crewlet-working-line__queued::before {
|
|
49664
|
+
content: '\00b7';
|
|
49665
|
+
margin-inline-end: var(--spacing-1);
|
|
49666
|
+
}
|
|
49667
|
+
|
|
49668
|
+
/*
|
|
49669
|
+
* THE SWEEP: a lighter band crosses the names, left to right, then rests off
|
|
49670
|
+
* the end for the last 30% of the period before it loops. The names are the
|
|
49671
|
+
* secondary ink at rest and the band is the primary ink, so they read at every
|
|
49672
|
+
* point of it in both palettes. The gradient is twice the names' width and
|
|
49673
|
+
* repeats, so the band enters from beyond the start and leaves past the end.
|
|
49674
|
+
*/
|
|
49675
|
+
@supports (background-clip: text) or (-webkit-background-clip: text) {
|
|
49676
|
+
.crewlet-working-line__who {
|
|
49677
|
+
background-image: linear-gradient(
|
|
49678
|
+
90deg,
|
|
49679
|
+
var(--color-text-secondary) 0%,
|
|
49680
|
+
var(--color-text-secondary) 43%,
|
|
49681
|
+
var(--color-text-primary) 50%,
|
|
49682
|
+
var(--color-text-secondary) 57%,
|
|
49683
|
+
var(--color-text-secondary) 100%
|
|
49684
|
+
);
|
|
49685
|
+
background-size: 200% 100%;
|
|
49686
|
+
-webkit-background-clip: text;
|
|
49687
|
+
background-clip: text;
|
|
49688
|
+
color: transparent;
|
|
49689
|
+
animation: crewlet-working-line-sweep var(--motion-duration-breath) linear infinite;
|
|
49690
|
+
}
|
|
49691
|
+
}
|
|
49692
|
+
|
|
49693
|
+
@keyframes crewlet-working-line-sweep {
|
|
49694
|
+
0% {
|
|
49695
|
+
background-position: 150% 0;
|
|
49696
|
+
}
|
|
49697
|
+
|
|
49698
|
+
70%,
|
|
49699
|
+
100% {
|
|
49700
|
+
background-position: -50% 0;
|
|
49701
|
+
}
|
|
49702
|
+
}
|
|
49703
|
+
|
|
49704
|
+
/* A new phrase arrives from a third of its strength, so the change is seen
|
|
49705
|
+
without the words ever vanishing. */
|
|
49706
|
+
@keyframes crewlet-working-line-phase {
|
|
49707
|
+
from {
|
|
49708
|
+
opacity: 0.3;
|
|
49709
|
+
}
|
|
49710
|
+
|
|
49711
|
+
to {
|
|
49712
|
+
opacity: 1;
|
|
49713
|
+
}
|
|
49714
|
+
}
|
|
49715
|
+
|
|
49716
|
+
/* QUEUED: nothing has started, so nothing moves. */
|
|
49717
|
+
.crewlet-working-line.is-queued .crewlet-working-line__who {
|
|
49718
|
+
background-image: none;
|
|
49719
|
+
color: var(--color-text-secondary);
|
|
49720
|
+
animation: none;
|
|
49721
|
+
}
|
|
49722
|
+
|
|
49723
|
+
.crewlet-working-line.is-queued .crewlet-working-line__verb {
|
|
49724
|
+
color: var(--color-text-tertiary);
|
|
49725
|
+
}
|
|
49726
|
+
|
|
49727
|
+
/*
|
|
49728
|
+
* THE TOGGLE: a chevron at the line's end whose target is the whole line, so
|
|
49729
|
+
* the line opens wherever it is pressed while the button stays one control
|
|
49730
|
+
* with one name. The ring is drawn round the whole line.
|
|
49731
|
+
*/
|
|
49732
|
+
.crewlet-working-line__toggle {
|
|
49733
|
+
display: inline-flex;
|
|
49734
|
+
flex: none;
|
|
49735
|
+
align-items: center;
|
|
49736
|
+
justify-content: center;
|
|
49737
|
+
width: 20px;
|
|
49738
|
+
height: 20px;
|
|
49739
|
+
margin: 0;
|
|
49740
|
+
padding: 0;
|
|
49741
|
+
border: 0;
|
|
49742
|
+
background: transparent;
|
|
49743
|
+
color: var(--color-text-tertiary);
|
|
49744
|
+
font: inherit;
|
|
49745
|
+
cursor: pointer;
|
|
49746
|
+
}
|
|
49747
|
+
|
|
49748
|
+
.crewlet-working-line__toggle::after {
|
|
49749
|
+
content: '';
|
|
49750
|
+
position: absolute;
|
|
49751
|
+
inset: 0;
|
|
49752
|
+
border-radius: inherit;
|
|
49753
|
+
}
|
|
49754
|
+
|
|
49755
|
+
/* The ring is the line's (below); the button keeps a transparent outline,
|
|
49756
|
+
which forced-colors mode paints in the system ink. */
|
|
49757
|
+
.crewlet-working-line__toggle:focus-visible {
|
|
49758
|
+
outline: 2px solid transparent;
|
|
49759
|
+
}
|
|
49760
|
+
|
|
49761
|
+
.crewlet-working-line__summary:has(.crewlet-working-line__toggle:focus-visible) {
|
|
49762
|
+
outline: 2px solid var(--color-focus);
|
|
49763
|
+
outline-offset: 2px;
|
|
49764
|
+
}
|
|
49765
|
+
|
|
49766
|
+
.crewlet-working-line__summary:has(.crewlet-working-line__toggle:hover) .crewlet-working-line__toggle,
|
|
49767
|
+
.crewlet-working-line__summary:has(.crewlet-working-line__toggle:hover) .crewlet-working-line__verb {
|
|
49768
|
+
color: var(--color-text-primary);
|
|
49769
|
+
}
|
|
49770
|
+
|
|
49771
|
+
.crewlet-working-line__chevron {
|
|
49772
|
+
transition: transform var(--motion-duration-fast) var(--motion-easing-out);
|
|
49773
|
+
}
|
|
49774
|
+
|
|
49775
|
+
.crewlet-working-line.is-open .crewlet-working-line__chevron {
|
|
49776
|
+
transform: rotate(180deg);
|
|
49777
|
+
}
|
|
49778
|
+
|
|
49779
|
+
/* ONE COMPACT LINE PER AGENT: a 20px face, the name and its own phrase. */
|
|
49780
|
+
.crewlet-working-line__detail {
|
|
49781
|
+
display: flex;
|
|
49782
|
+
flex-direction: column;
|
|
49783
|
+
gap: 2px;
|
|
49784
|
+
margin: 0;
|
|
49785
|
+
padding: var(--spacing-1) 0 0;
|
|
49786
|
+
list-style: none;
|
|
49787
|
+
}
|
|
49788
|
+
|
|
49789
|
+
.crewlet-working-line__agent {
|
|
49790
|
+
display: flex;
|
|
49791
|
+
align-items: center;
|
|
49792
|
+
gap: var(--spacing-2);
|
|
49793
|
+
min-width: 0;
|
|
49794
|
+
min-height: 22px;
|
|
49795
|
+
white-space: nowrap;
|
|
49796
|
+
}
|
|
49797
|
+
|
|
49798
|
+
.crewlet-working-line__agent-name {
|
|
49799
|
+
flex: 0 1 auto;
|
|
49800
|
+
min-width: 0;
|
|
49801
|
+
overflow: hidden;
|
|
49802
|
+
color: var(--color-text-primary);
|
|
49803
|
+
font-weight: var(--font-weight-medium);
|
|
49804
|
+
text-overflow: ellipsis;
|
|
49805
|
+
}
|
|
49806
|
+
|
|
49807
|
+
.crewlet-working-line__agent-phrase {
|
|
49808
|
+
flex: 0 10 auto;
|
|
49809
|
+
min-width: 0;
|
|
49810
|
+
overflow: hidden;
|
|
49811
|
+
text-overflow: ellipsis;
|
|
49812
|
+
animation: crewlet-working-line-phase var(--motion-duration-slow) var(--motion-easing-out);
|
|
49813
|
+
}
|
|
49814
|
+
|
|
49815
|
+
.crewlet-working-line__agent.is-queued .crewlet-working-line__agent-phrase {
|
|
49816
|
+
color: var(--color-text-tertiary);
|
|
49817
|
+
}
|
|
49818
|
+
|
|
49819
|
+
/*
|
|
49820
|
+
* THE DOTS, three in turn, each lifting and brightening once a period. Shared
|
|
49821
|
+
* with somebody typing (ActivityLine), in the ink around them.
|
|
49822
|
+
*/
|
|
49823
|
+
.crewlet-bouncing-dots {
|
|
49824
|
+
display: inline-flex;
|
|
49825
|
+
flex: none;
|
|
49826
|
+
align-items: flex-end;
|
|
49827
|
+
align-self: center;
|
|
49828
|
+
gap: 2px;
|
|
49829
|
+
}
|
|
49830
|
+
|
|
49831
|
+
.crewlet-bouncing-dots > i {
|
|
49832
|
+
width: 4px;
|
|
49833
|
+
height: 4px;
|
|
49834
|
+
border-radius: var(--radius-circle);
|
|
49835
|
+
background: currentColor;
|
|
49836
|
+
animation: crewlet-bouncing-dots calc(var(--motion-duration-slow) * 4) var(--motion-easing-in-out) infinite;
|
|
49837
|
+
}
|
|
49838
|
+
|
|
49839
|
+
.crewlet-bouncing-dots > i:nth-child(2) {
|
|
49840
|
+
animation-delay: var(--motion-duration-base);
|
|
49841
|
+
}
|
|
49842
|
+
|
|
49843
|
+
.crewlet-bouncing-dots > i:nth-child(3) {
|
|
49844
|
+
animation-delay: var(--motion-duration-slow);
|
|
49845
|
+
}
|
|
49846
|
+
|
|
49847
|
+
@keyframes crewlet-bouncing-dots {
|
|
49848
|
+
0%,
|
|
49849
|
+
60%,
|
|
49850
|
+
100% {
|
|
49851
|
+
opacity: 0.3;
|
|
49852
|
+
transform: none;
|
|
49853
|
+
}
|
|
49854
|
+
|
|
49855
|
+
30% {
|
|
49856
|
+
opacity: 1;
|
|
49857
|
+
transform: translateY(-3px);
|
|
49858
|
+
}
|
|
49859
|
+
}
|
|
49860
|
+
|
|
49861
|
+
/* UNDER REDUCED MOTION every part holds still: the names in the primary ink
|
|
49862
|
+
without the band, the phrases without their fade, the dots at full
|
|
49863
|
+
strength, and the chevron turned at once. */
|
|
49864
|
+
@media (prefers-reduced-motion: reduce) {
|
|
49865
|
+
.crewlet-working-line__who {
|
|
49866
|
+
background-image: none;
|
|
49867
|
+
color: var(--color-text-primary);
|
|
49868
|
+
animation: none;
|
|
49869
|
+
}
|
|
49870
|
+
|
|
49871
|
+
.crewlet-working-line.is-queued .crewlet-working-line__who {
|
|
49872
|
+
color: var(--color-text-secondary);
|
|
49873
|
+
}
|
|
49874
|
+
|
|
49875
|
+
.crewlet-working-line__verb {
|
|
49876
|
+
animation: none;
|
|
49877
|
+
}
|
|
49878
|
+
|
|
49879
|
+
.crewlet-working-line__agent-phrase {
|
|
49880
|
+
animation: none;
|
|
49881
|
+
}
|
|
49882
|
+
|
|
49883
|
+
.crewlet-working-line__chevron {
|
|
49884
|
+
transition: none;
|
|
49885
|
+
}
|
|
49886
|
+
|
|
49887
|
+
.crewlet-bouncing-dots > i {
|
|
49888
|
+
opacity: 1;
|
|
49889
|
+
animation: none;
|
|
49890
|
+
}
|
|
49891
|
+
}
|
|
49892
|
+
|
|
49893
|
+
/* The system's own ink: a gradient clipped to text is dropped there. */
|
|
49894
|
+
@media (forced-colors: active) {
|
|
49895
|
+
.crewlet-working-line__who {
|
|
49896
|
+
background-image: none;
|
|
49897
|
+
color: CanvasText;
|
|
49898
|
+
}
|
|
49899
|
+
|
|
49900
|
+
.crewlet-working-line__summary:has(.crewlet-working-line__toggle:focus-visible) {
|
|
49901
|
+
outline-color: Highlight;
|
|
49902
|
+
}
|
|
49903
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.113.1",
|
|
4
4
|
"description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clean": "rm -rf dist src/generated"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@crewlethq/icons": "0.
|
|
46
|
-
"@crewlethq/tokens": "0.
|
|
45
|
+
"@crewlethq/icons": "0.113.1",
|
|
46
|
+
"@crewlethq/tokens": "0.113.1",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Who is typing and which agent is working, under a composer, in the meta
|
|
3
|
-
* step and the tertiary ink.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.crewlet-activity-line {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-wrap: wrap;
|
|
9
|
-
align-items: center;
|
|
10
|
-
gap: var(--spacing-1) var(--spacing-4);
|
|
11
|
-
min-height: 20px;
|
|
12
|
-
min-width: 0;
|
|
13
|
-
color: var(--color-text-tertiary);
|
|
14
|
-
font-size: var(--crewlet-chat-meta);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* No piece is wider than the line: a long working status truncates. */
|
|
18
|
-
.crewlet-activity-line > * {
|
|
19
|
-
max-width: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* The working line in the line's own step, over the indicator's. */
|
|
23
|
-
.crewlet-activity-line .crewlet-activity-line__working {
|
|
24
|
-
font-size: var(--crewlet-chat-meta);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.crewlet-activity-line__typing {
|
|
28
|
-
display: inline-flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
gap: var(--spacing-2);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.crewlet-activity-line__dots {
|
|
34
|
-
display: inline-flex;
|
|
35
|
-
gap: 2px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.crewlet-activity-line__dots > i {
|
|
39
|
-
width: 4px;
|
|
40
|
-
height: 4px;
|
|
41
|
-
border-radius: var(--radius-circle);
|
|
42
|
-
background: currentColor;
|
|
43
|
-
animation: crewlet-activity-line-typing calc(var(--motion-duration-slow) * 4) var(--motion-easing-in-out) infinite;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.crewlet-activity-line__dots > i:nth-child(2) {
|
|
47
|
-
animation-delay: var(--motion-duration-base);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.crewlet-activity-line__dots > i:nth-child(3) {
|
|
51
|
-
animation-delay: var(--motion-duration-slow);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@keyframes crewlet-activity-line-typing {
|
|
55
|
-
0%,
|
|
56
|
-
60%,
|
|
57
|
-
100% {
|
|
58
|
-
opacity: 0.3;
|
|
59
|
-
transform: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
30% {
|
|
63
|
-
opacity: 1;
|
|
64
|
-
transform: translateY(-2px);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Under reduced motion the dots hold still at full strength: the words say
|
|
69
|
-
who is typing. */
|
|
70
|
-
@media (prefers-reduced-motion: reduce) {
|
|
71
|
-
.crewlet-activity-line__dots > i {
|
|
72
|
-
animation: none;
|
|
73
|
-
}
|
|
74
|
-
}
|
package/dist/chunk-5YFQMMTJ.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ThinkingIndicator } from './chunk-DX7ZHO47.js';
|
|
2
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChatScale-6NM4TP7R.css';
|
|
4
|
-
import './ActivityLine-AMSERTOB.css';
|
|
5
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function ActivityLine({ typing, working, workingLabel, queued, className, ...rest }) {
|
|
8
|
-
return /* @__PURE__ */ jsxs("div", { ...rest, className: cx("crewlet-activity-line", className), children: [
|
|
9
|
-
working ? /* @__PURE__ */ jsx(
|
|
10
|
-
ThinkingIndicator,
|
|
11
|
-
{
|
|
12
|
-
status: working,
|
|
13
|
-
label: workingLabel ?? working,
|
|
14
|
-
queued,
|
|
15
|
-
className: "crewlet-activity-line__working"
|
|
16
|
-
}
|
|
17
|
-
) : null,
|
|
18
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-activity-line__typing", role: "status", children: typing ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
-
/* @__PURE__ */ jsxs("span", { className: "crewlet-activity-line__dots", "aria-hidden": "true", children: [
|
|
20
|
-
/* @__PURE__ */ jsx("i", {}),
|
|
21
|
-
/* @__PURE__ */ jsx("i", {}),
|
|
22
|
-
/* @__PURE__ */ jsx("i", {})
|
|
23
|
-
] }),
|
|
24
|
-
typing
|
|
25
|
-
] }) : null })
|
|
26
|
-
] });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { ActivityLine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
1
|
import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
|
|
2
|
+
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
3
3
|
import './chunk-KOJPDCGQ.js';
|
|
4
4
|
import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
|
|
5
5
|
import { Toolbar } from './chunk-NPEI2QAN.js';
|
|
@@ -6,9 +6,9 @@ import { isEmptyValue, displayText, ratingMax, findPerson, findOption, statusTon
|
|
|
6
6
|
import { presenceLabels } from './chunk-Z7JYG5TF.js';
|
|
7
7
|
import { Tag } from './chunk-SJ3EUCFD.js';
|
|
8
8
|
import { Popover } from './chunk-KDRJZWE3.js';
|
|
9
|
-
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
10
9
|
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
11
10
|
import { Menu } from './chunk-QHUKJN33.js';
|
|
11
|
+
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
12
12
|
import { Button } from './chunk-NPPPQSRU.js';
|
|
13
13
|
import { IconButton } from './chunk-BF2BXM6V.js';
|
|
14
14
|
import { Tooltip } from './chunk-HXVMXH6U.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
2
1
|
import { useRoving, tabStop } from './chunk-EGMQURBR.js';
|
|
2
|
+
import { Avatar } from './chunk-XZY6S3UC.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import { CREWLET_CHARACTERS, CREWLET_CHARACTER_GEOMETRY } from '@crewlethq/icons/characters';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -2,11 +2,11 @@ import { Skeleton } from './chunk-BMTNY3FK.js';
|
|
|
2
2
|
import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
|
|
3
3
|
import { RelativeTime } from './chunk-GBKBME7Q.js';
|
|
4
4
|
import { Card } from './chunk-3C3TSWRR.js';
|
|
5
|
-
import { AvatarStack } from './chunk-5SMYKL3D.js';
|
|
6
5
|
import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
|
|
7
6
|
import { Checkbox } from './chunk-DTEDUAEW.js';
|
|
8
7
|
import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
|
|
9
8
|
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
9
|
+
import { AvatarStack } from './chunk-5SMYKL3D.js';
|
|
10
10
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
11
11
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
12
12
|
import './ArtifactKinds-27TE3KJL.css';
|