@crewlethq/ui 0.100.2 → 0.102.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.
Files changed (102) hide show
  1. package/dist/AgentHandoffPanel/index.js +6 -6
  2. package/dist/AppShell/index.js +3 -3
  3. package/dist/ArrangeList/index.js +1 -1
  4. package/dist/ArtifactBar/index.js +1 -1
  5. package/dist/ArtifactCard/index.js +2 -2
  6. package/dist/AuthLayout/index.js +1 -1
  7. package/dist/AvatarPicker/index.js +3 -3
  8. package/dist/BriefCard/index.js +1 -1
  9. package/dist/CharacterPicker/index.js +2 -2
  10. package/dist/Combobox/index.js +2 -2
  11. package/dist/CommandPalette/index.js +4 -4
  12. package/dist/CommentThread/index.js +6 -6
  13. package/dist/Composer/index.js +2 -2
  14. package/dist/DataGrid/DataGrid.d.ts +145 -41
  15. package/dist/DataGrid/index.d.ts +2 -2
  16. package/dist/DataGrid/index.js +7 -5
  17. package/dist/DataGrid/parts.d.ts +163 -0
  18. package/dist/{DataGrid-SAHEL4SN.css → DataGrid-YNLCEH3E.css} +228 -19
  19. package/dist/DataTable/index.js +4 -4
  20. package/dist/DataView/index.js +6 -6
  21. package/dist/DatasetSource/index.js +1 -1
  22. package/dist/DeepWorkCard/index.js +1 -1
  23. package/dist/DocTabsEditor/index.js +4 -4
  24. package/dist/EditingStatus/index.js +2 -2
  25. package/dist/EntityList/index.js +1 -1
  26. package/dist/InlineEditor/index.js +3 -3
  27. package/dist/KeyValueRows/index.js +3 -3
  28. package/dist/ListInput/index.js +4 -4
  29. package/dist/OpenInAppCard/index.js +1 -1
  30. package/dist/OrgTable/OrgTable.d.ts +5 -20
  31. package/dist/OrgTable/index.js +10 -3
  32. package/dist/{OrgTable-XYHEFI5X.css → OrgTable-5NXRECVP.css} +29 -9
  33. package/dist/PeekRail/index.js +2 -2
  34. package/dist/PrincipalPicker/index.js +3 -3
  35. package/dist/ProposalCard/index.js +3 -3
  36. package/dist/RailList/index.js +3 -2
  37. package/dist/RefusalCard/index.js +1 -1
  38. package/dist/RelatedRow/index.js +3 -2
  39. package/dist/ResultTableCard/index.js +1 -1
  40. package/dist/RichEditor/index.js +1 -1
  41. package/dist/SetupWizard/index.js +1 -1
  42. package/dist/ShareDialog/index.js +2 -2
  43. package/dist/SheetColumnEditor/index.js +5 -5
  44. package/dist/SheetGrid/index.js +3 -3
  45. package/dist/SlideFilmstrip/index.js +2 -2
  46. package/dist/StatusCard/index.js +1 -1
  47. package/dist/Switcher/index.js +4 -4
  48. package/dist/TableCells/TableCells.d.ts +10 -2
  49. package/dist/TableCells/index.js +4 -3
  50. package/dist/Text/index.js +2 -1
  51. package/dist/ThreadSummary/index.js +1 -1
  52. package/dist/TimeRangePicker/index.js +4 -4
  53. package/dist/TimeWindowPicker/index.js +4 -4
  54. package/dist/TreeGrid/TreeGrid.d.ts +143 -12
  55. package/dist/TreeGrid/index.d.ts +1 -1
  56. package/dist/TreeGrid/index.js +15 -2
  57. package/dist/{TreeGrid-H3GHMKZX.css → TreeGrid-XZCH5WCC.css} +232 -2
  58. package/dist/ValueField/index.js +3 -3
  59. package/dist/{chunk-G44KKOMB.js → chunk-2LLMUJFB.js} +1 -1
  60. package/dist/{chunk-BK4KUIAZ.js → chunk-AP6JSZGT.js} +12 -4
  61. package/dist/chunk-BZUBONYA.js +557 -0
  62. package/dist/{chunk-PCXMJZTE.js → chunk-DBH7ORCH.js} +1 -1
  63. package/dist/{chunk-MKTHLT4E.js → chunk-EMXUREKE.js} +1 -1
  64. package/dist/{chunk-CL3FWLDO.js → chunk-HI47TXSW.js} +1 -1
  65. package/dist/{chunk-PXYDEDNN.js → chunk-J3QFTG4B.js} +1 -1
  66. package/dist/{chunk-G6QKJGQQ.js → chunk-L72GPZ56.js} +1 -1
  67. package/dist/{chunk-HYVYYODN.js → chunk-M6EVTMTK.js} +1 -1
  68. package/dist/chunk-MO5YV3XV.js +899 -0
  69. package/dist/{chunk-XQWWA2LG.js → chunk-PAJAGGSE.js} +19 -51
  70. package/dist/{chunk-NHQ7O4DG.js → chunk-PF6X74C5.js} +3 -3
  71. package/dist/{chunk-SBVTOIFP.js → chunk-PMO6W5NE.js} +2 -2
  72. package/dist/chunk-WSIJDWUG.js +10 -0
  73. package/dist/{chunk-O5CEG7TQ.js → chunk-XLMURU75.js} +1 -6
  74. package/dist/{chunk-V3QWPHY4.js → chunk-XRKBPNX4.js} +1 -1
  75. package/dist/generated/index.js +77 -77
  76. package/dist/index.js +77 -77
  77. package/dist/styles.css +492 -33
  78. package/dist/utils/titleIfCut.d.ts +18 -0
  79. package/package.json +3 -3
  80. package/dist/chunk-CCNAGB3F.js +0 -591
  81. package/dist/chunk-CTQZK5J3.js +0 -8
  82. package/dist/chunk-ERESJG6C.js +0 -353
  83. package/dist/{Editor-XRI2NOO5.js → Editor-YHHCK5SJ.js} +2 -2
  84. package/dist/{chunk-NRMF2PKX.js → chunk-3Z2BSKS5.js} +1 -1
  85. package/dist/{chunk-6IAW2ZIE.js → chunk-5KJOG5YP.js} +2 -2
  86. package/dist/{chunk-HBHKMFAH.js → chunk-7L6JJ7VJ.js} +1 -1
  87. package/dist/{chunk-HEXH3HQJ.js → chunk-A5ISYHW7.js} +2 -2
  88. package/dist/{chunk-CRRW4UGJ.js → chunk-AC255TMQ.js} +1 -1
  89. package/dist/{chunk-YPXXDYTR.js → chunk-AP6SM6BL.js} +1 -1
  90. package/dist/{chunk-QCCWXOKK.js → chunk-DK7CXQFY.js} +1 -1
  91. package/dist/{chunk-GCKHZMWG.js → chunk-E23AXDKL.js} +1 -1
  92. package/dist/{chunk-V6CVW6PF.js → chunk-GA773IOZ.js} +1 -1
  93. package/dist/{chunk-TXQ6FZJL.js → chunk-HU5PAZMU.js} +1 -1
  94. package/dist/{chunk-CTHZHMVG.js → chunk-IA3NL54W.js} +1 -1
  95. package/dist/{chunk-3JE6YIG5.js → chunk-JZADK2FT.js} +2 -2
  96. package/dist/{chunk-S4JRQJEP.js → chunk-LNQSNXGJ.js} +1 -1
  97. package/dist/{chunk-HR5O6PSR.js → chunk-MTKHMGJH.js} +1 -1
  98. package/dist/{chunk-NIZRR2NN.js → chunk-OAKECTYH.js} +1 -1
  99. package/dist/{chunk-I2GJLUU3.js → chunk-OU6ZSWEJ.js} +1 -1
  100. package/dist/{chunk-LNXL22Y7.js → chunk-RSI6EJSH.js} +1 -1
  101. package/dist/{chunk-BGRYFVSK.js → chunk-XHQ2JJCB.js} +1 -1
  102. package/dist/{chunk-CQAR3F33.js → chunk-XLVWSNW3.js} +1 -1
@@ -10,8 +10,15 @@
10
10
  own in a flush card. */
11
11
  --crewlet-tree-grid-inset: var(--spacing-3);
12
12
  --crewlet-tree-grid-edge: var(--spacing-3);
13
+ /* THE HEAD AND THE FOOT ARE DATAGRID'S OWN PARTS (DataGrid/parts.tsx), so
14
+ they read this grid's edge through DataGrid's name for it. */
15
+ --crewlet-data-grid-edge: var(--crewlet-tree-grid-edge);
13
16
 
14
17
  position: relative;
18
+ /* A flex or grid item that may shrink below its content, as DataGrid's
19
+ frame: at its automatic minimum a tree widened its parent to its
20
+ longest line. */
21
+ min-width: 0;
15
22
  }
16
23
 
17
24
  /*
@@ -76,14 +83,15 @@
76
83
 
77
84
  .crewlet-tree-grid--container .crewlet-tree-grid__head {
78
85
  position: sticky;
79
- top: 0;
86
+ /* At the offset an application gives its grids' heads, as a DataGrid's. */
87
+ top: var(--crewlet-data-grid-sticky-top, var(--spacing-0));
80
88
  z-index: var(--z-index-sticky);
81
89
  border-start-start-radius: calc(var(--radius-md) - 1px);
82
90
  border-start-end-radius: calc(var(--radius-md) - 1px);
83
91
  }
84
92
 
85
93
  /*
86
- * INSIDE A FLUSH CARD THE CARD IS THE FRAME. A flush card exists so that a
94
+ * INSIDE A FLUSH CARD THE CARD IS THE FRAME, and so with `flush`. A flush card exists so that a
87
95
  * table's rows reach its edges (Card.css), and a grid that drew its own border
88
96
  * and corner there was a second rounded box one pixel inside the first, with
89
97
  * the card's footer hanging outside it. The rows keep their own hairlines, and
@@ -99,6 +107,22 @@
99
107
  border-radius: 0;
100
108
  }
101
109
 
110
+ /* `flush` outside a flush card: the card's body, with one rule above its head. */
111
+ .crewlet-tree-grid[data-flush] {
112
+ --crewlet-tree-grid-edge: var(--spacing-4);
113
+ }
114
+
115
+ .crewlet-tree-grid[data-flush] .crewlet-tree-grid__scroller {
116
+ background: none;
117
+ border: none;
118
+ border-top: 1px solid var(--color-border-default);
119
+ border-radius: 0;
120
+ }
121
+
122
+ .crewlet-card__header + .crewlet-tree-grid[data-flush] .crewlet-tree-grid__scroller {
123
+ border-top: 0;
124
+ }
125
+
102
126
  .crewlet-tree-grid__row {
103
127
  align-items: center;
104
128
  min-height: var(--size-row-md);
@@ -163,6 +187,40 @@
163
187
  --crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-edge);
164
188
  }
165
189
 
190
+ /*
191
+ * THE HEAD IS DATAGRID'S HEAD CELL (its sort button, marks and edges), on this
192
+ * grid's insets: the button takes back exactly the padding its head has.
193
+ */
194
+ .crewlet-tree-grid__head > .crewlet-tree-grid__row > .crewlet-data-grid__th {
195
+ --crewlet-data-grid-cell-start: var(--crewlet-tree-grid-cell-start);
196
+ --crewlet-data-grid-cell-end: var(--crewlet-tree-grid-cell-end);
197
+ }
198
+
199
+ /* AN ICON COLUMN keeps the cells' own step on both sides wherever it stands, as a DataGrid's. */
200
+ .crewlet-tree-grid__row > .crewlet-data-grid__th.crewlet-data-grid__th--icon,
201
+ .crewlet-tree-grid__row > .crewlet-tree-grid__cell.crewlet-tree-grid__cell--icon {
202
+ --crewlet-tree-grid-cell-start: var(--crewlet-tree-grid-inset);
203
+ --crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-inset);
204
+ }
205
+
206
+ /* ONE EDGE PER COLUMN, shared by its head and its values, as a DataGrid's:
207
+ figures and times on the right in tabular digits, one mark centred, and
208
+ (`safe`) a value wider than its track cut at its end, never its start. */
209
+ .crewlet-tree-grid__cell--right {
210
+ justify-content: safe flex-end;
211
+ font-variant-numeric: tabular-nums;
212
+ }
213
+
214
+ .crewlet-tree-grid__cell--center {
215
+ justify-content: safe center;
216
+ }
217
+
218
+ /* A SHRINK COLUMN does not wrap inside its capped track, nor paint past it. */
219
+ .crewlet-tree-grid__cell--shrink {
220
+ white-space: nowrap;
221
+ overflow: clip;
222
+ }
223
+
166
224
  /* A COLUMN OF VALUES READ AFTER THE NAME takes the caption's size, a step under the name's. */
167
225
  .crewlet-tree-grid__cell[data-size='sm'] {
168
226
  font-size: var(--font-size-2xs);
@@ -250,7 +308,179 @@
250
308
  white-space: nowrap;
251
309
  }
252
310
 
311
+ /* THE SELECT BOX'S SLOT, kept on every row, so a row with no box keeps its name in line. */
312
+ .crewlet-tree-grid__select {
313
+ display: inline-flex;
314
+ flex: none;
315
+ align-items: center;
316
+ justify-content: center;
317
+ width: var(--size-target-min);
318
+ }
319
+
320
+ /*
321
+ * THE ROW'S OWN LINK, STRETCHED OVER IT (`rowHref`), out of flow so it takes
322
+ * no track. The row is its containing block. The cells' own controls sit
323
+ * above it, positioned and later in the document; `:where` keeps that at no
324
+ * weight, so a control that positions itself keeps its own rule.
325
+ */
326
+ .crewlet-tree-grid__row[data-linked] {
327
+ position: relative;
328
+ cursor: pointer;
329
+ }
330
+
331
+ .crewlet-tree-grid__row-link {
332
+ position: absolute;
333
+ inset: 0;
334
+ }
335
+
336
+ :where(
337
+ .crewlet-tree-grid__row[data-linked]
338
+ :is(a, button, input, label, [data-above-row]):not(.crewlet-tree-grid__row-link)
339
+ ) {
340
+ position: relative;
341
+ }
342
+
343
+ /* A FAILED ROW IS MARKED ON ITS EDGE, as a DataGrid's: its cells say why. */
344
+ .crewlet-tree-grid__row[data-failed] {
345
+ box-shadow: inset 2px 0 0 var(--color-feedback-danger-ink);
346
+ }
347
+
253
348
  /* The selection is where the reader is, so it takes the accent. */
254
349
  .crewlet-tree-grid__row[aria-selected='true'] {
255
350
  box-shadow: inset 2px 0 0 var(--color-brand-accent);
256
351
  }
352
+
353
+ /*
354
+ * THE FOOT IS DATAGRID'S (what the width dropped, what is loaded, the way to
355
+ * more), under the rows inside the frame. It holds still while the rows
356
+ * scroll sideways, so its words stay in view.
357
+ */
358
+ .crewlet-tree-grid__scroller > .crewlet-data-grid__foot-group {
359
+ position: sticky;
360
+ inset-inline-start: 0;
361
+ }
362
+
363
+ /* ---- WHERE COLUMNS DO NOT FIT, A ROW IS A CARD (`phoneRows`) ----------------
364
+ Set on a phone and where the give-way columns have all gone. The row keeps
365
+ its first cell (its chevron, its level and its name) and every other value
366
+ becomes a line under it, named, at the name's indent, so the hierarchy still
367
+ reads down the left. The head stays for a screen reader, unseen. */
368
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__scroller {
369
+ overflow-x: visible;
370
+ }
371
+
372
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__grid {
373
+ display: block;
374
+ min-width: 0;
375
+ }
376
+
377
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__head {
378
+ position: absolute;
379
+ width: 1px;
380
+ height: 1px;
381
+ overflow: hidden;
382
+ clip-path: inset(50%);
383
+ white-space: nowrap;
384
+ }
385
+
386
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__body,
387
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__row {
388
+ display: block;
389
+ }
390
+
391
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__row {
392
+ padding-block: var(--spacing-1);
393
+ }
394
+
395
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell {
396
+ align-items: baseline;
397
+ gap: var(--spacing-3);
398
+ white-space: normal;
399
+ justify-content: flex-start;
400
+ }
401
+
402
+ /* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES: past the edge, the chevron
403
+ and the row's level. A drawn indent (an org table's wires) sets its own. */
404
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:not(:first-child) {
405
+ padding-block: 1px;
406
+ padding-inline: var(
407
+ --crewlet-tree-grid-value-indent,
408
+ calc(
409
+ var(--crewlet-tree-grid-edge) + var(--size-control-sm) + var(--spacing-2) + var(--spacing-5) *
410
+ var(--crewlet-tree-grid-depth, 0)
411
+ )
412
+ )
413
+ var(--crewlet-tree-grid-edge);
414
+ }
415
+
416
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:first-child {
417
+ align-items: center;
418
+ }
419
+
420
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:empty {
421
+ display: none;
422
+ }
423
+
424
+ .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell[data-label]::before {
425
+ content: attr(data-label);
426
+ flex: 0 0 7rem;
427
+ overflow-wrap: anywhere;
428
+ font-size: var(--font-size-2xs);
429
+ text-transform: uppercase;
430
+ letter-spacing: var(--font-letter-spacing-wide);
431
+ color: var(--color-text-tertiary);
432
+ }
433
+
434
+ /* THE COMPACT CARD: the name, then its values as one run of marks under it.
435
+ The row is indented to its values' line and the name takes that back, so
436
+ a value that wraps to a new line still starts under the name. A zero-height
437
+ break after the name ends its line, as DataGrid's compact row does. */
438
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__row {
439
+ display: flex;
440
+ flex-wrap: wrap;
441
+ align-items: center;
442
+ column-gap: var(--spacing-2);
443
+ padding-inline: var(
444
+ --crewlet-tree-grid-value-indent,
445
+ calc(
446
+ var(--crewlet-tree-grid-edge) + var(--size-control-sm) + var(--spacing-2) + var(--spacing-5) *
447
+ var(--crewlet-tree-grid-depth, 0)
448
+ )
449
+ )
450
+ var(--crewlet-tree-grid-edge);
451
+ }
452
+
453
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell:not(:first-child) {
454
+ padding: 0;
455
+ }
456
+
457
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__row::after {
458
+ content: '';
459
+ order: 1;
460
+ flex-basis: 100%;
461
+ height: 0;
462
+ }
463
+
464
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell {
465
+ order: 2;
466
+ }
467
+
468
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell:first-child {
469
+ flex: 1 1 auto;
470
+ order: 0;
471
+ margin-inline: calc(
472
+ -1 *
473
+ var(
474
+ --crewlet-tree-grid-value-indent,
475
+ calc(
476
+ var(--crewlet-tree-grid-edge) + var(--size-control-sm) + var(--spacing-2) + var(--spacing-5) *
477
+ var(--crewlet-tree-grid-depth, 0)
478
+ )
479
+ )
480
+ )
481
+ calc(-1 * var(--crewlet-tree-grid-edge));
482
+ }
483
+
484
+ .crewlet-tree-grid[data-phone-rows='compact'] .crewlet-tree-grid__cell[data-label]::before {
485
+ content: none;
486
+ }
@@ -1,11 +1,11 @@
1
- export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-PXYDEDNN.js';
1
+ export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-J3QFTG4B.js';
2
2
  import '../chunk-IAR2ULSK.js';
3
- import '../chunk-CRRW4UGJ.js';
3
+ import '../chunk-AC255TMQ.js';
4
4
  import '../chunk-YGRTX67J.js';
5
- import '../chunk-2YTOOH3A.js';
6
5
  import '../chunk-56ES76ST.js';
7
6
  import '../chunk-NICEDVZM.js';
8
7
  import '../chunk-PGCLHYVP.js';
8
+ import '../chunk-2YTOOH3A.js';
9
9
  import '../chunk-WDLAAZFZ.js';
10
10
  import '../chunk-TDFLCUBE.js';
11
11
  import '../chunk-QZKGFBAR.js';
@@ -1,6 +1,6 @@
1
1
  import { Select } from './chunk-IAR2ULSK.js';
2
2
  import { SidebarNav, NavItem } from './chunk-BRK3HXGZ.js';
3
- import { Text } from './chunk-O5CEG7TQ.js';
3
+ import { Text } from './chunk-XLMURU75.js';
4
4
  import { Card } from './chunk-U2IQNDDR.js';
5
5
  import './RailList-N2ZBPRM2.css';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,5 +1,6 @@
1
- import { Text } from './chunk-O5CEG7TQ.js';
1
+ import { Text } from './chunk-XLMURU75.js';
2
2
  import { Link } from './chunk-2PB5D4TI.js';
3
+ import { titleIfCut } from './chunk-WSIJDWUG.js';
3
4
  import { Tag } from './chunk-SJ3EUCFD.js';
4
5
  import { RelativeTime } from './chunk-EJNJMHQG.js';
5
6
  import { EmptyValue } from './chunk-RE3FBGQQ.js';
@@ -79,10 +80,17 @@ function TableTagsCell({ tags, max = 3, emptyLabel = "No tags", labels: override
79
80
  ] })
80
81
  ] });
81
82
  }
82
- function TableTextCell({ children, icon, mark }) {
83
- return /* @__PURE__ */ jsxs("span", { className: "crewlet-table-cell__text", children: [
83
+ function TableTextCell({ children, title, icon, mark }) {
84
+ return /* @__PURE__ */ jsxs("span", { className: "crewlet-table-cell__text", title, children: [
84
85
  mark ?? (icon !== void 0 && icon !== null ? /* @__PURE__ */ jsx("span", { className: "crewlet-table-cell__icon", "aria-hidden": "true", children: icon }) : null),
85
- /* @__PURE__ */ jsx("span", { className: "crewlet-table-cell__truncate", children })
86
+ /* @__PURE__ */ jsx(
87
+ "span",
88
+ {
89
+ className: "crewlet-table-cell__truncate",
90
+ onMouseEnter: title === void 0 ? (event) => titleIfCut(event.currentTarget) : void 0,
91
+ children
92
+ }
93
+ )
86
94
  ] });
87
95
  }
88
96
  function TableTwoLineCell({