@crewlethq/ui 0.98.0 → 0.100.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 (55) hide show
  1. package/dist/AddPill/index.js +1 -1
  2. package/dist/ArtifactBar/index.js +1 -1
  3. package/dist/ChatThread/ChatThread.d.ts +22 -8
  4. package/dist/ChatThread/index.js +1 -1
  5. package/dist/{ChatThread-HAECJMP6.css → ChatThread-XANOIJXN.css} +2 -1
  6. package/dist/DataGrid/index.js +2 -1
  7. package/dist/DeepWorkCard/index.js +2 -2
  8. package/dist/MarkdownEditor/index.js +1 -1
  9. package/dist/MergeConflicts/index.js +1 -1
  10. package/dist/OrgLabel/OrgLabel.d.ts +6 -0
  11. package/dist/OrgLabel/index.js +1 -1
  12. package/dist/{OrgLabel-6UGWHDQQ.css → OrgLabel-7UJKEDT3.css} +23 -0
  13. package/dist/OrgNode/index.js +2 -2
  14. package/dist/OrgTable/OrgTable.d.ts +2 -2
  15. package/dist/OrgTable/index.js +5 -4
  16. package/dist/{OrgTable-GBRYKTDH.css → OrgTable-3DXA23ZA.css} +28 -23
  17. package/dist/RailList/index.js +2 -2
  18. package/dist/RunChip/index.js +2 -2
  19. package/dist/SegmentedControl/index.js +1 -1
  20. package/dist/{SegmentedControl-PWTB7KEE.css → SegmentedControl-MHZMS2JJ.css} +4 -1
  21. package/dist/SelectionBar/SelectionBar.d.ts +6 -1
  22. package/dist/SelectionBar/index.js +1 -1
  23. package/dist/{SelectionBar-SCAU6EBY.css → SelectionBar-54W5IFF5.css} +9 -0
  24. package/dist/SetupWizard/index.js +2 -2
  25. package/dist/StatusLegend/index.js +1 -1
  26. package/dist/{StatusLegend-7MS2SBVC.css → StatusLegend-HVMKJQFY.css} +3 -1
  27. package/dist/Stepper/index.js +1 -1
  28. package/dist/{Stepper-YQBNYCIS.css → Stepper-S4RC4OZ3.css} +20 -2
  29. package/dist/ThemeSwitcher/index.js +1 -1
  30. package/dist/TimeRangePicker/index.js +1 -1
  31. package/dist/TreeGrid/TreeGrid.d.ts +15 -7
  32. package/dist/TreeGrid/index.js +2 -1
  33. package/dist/{TreeGrid-PZ3DFVRO.css → TreeGrid-H3GHMKZX.css} +74 -33
  34. package/dist/VersionCompare/index.js +1 -1
  35. package/dist/{chunk-JQCKRABK.js → chunk-2WQEHXXB.js} +1 -1
  36. package/dist/{chunk-RPCIU4S5.js → chunk-3NCIQO2P.js} +97 -19
  37. package/dist/{chunk-6FS6W3P5.js → chunk-3QKJV3KE.js} +1 -1
  38. package/dist/{chunk-4XYKBZJE.js → chunk-44GFQ4O3.js} +24 -14
  39. package/dist/chunk-CTQZK5J3.js +8 -0
  40. package/dist/{chunk-SSN7Y3UY.js → chunk-DVRECWCB.js} +1 -1
  41. package/dist/{chunk-ROFAWLFS.js → chunk-ERESJG6C.js} +4 -3
  42. package/dist/{chunk-4FNAPCCK.js → chunk-KN4YCWWO.js} +1 -1
  43. package/dist/{chunk-KUMHQY2B.js → chunk-LIDKF3LL.js} +1 -1
  44. package/dist/{chunk-IX6CHGM4.js → chunk-MFZBLJYF.js} +1 -1
  45. package/dist/{chunk-3QBQY2XK.js → chunk-QIVLL5HB.js} +27 -20
  46. package/dist/{chunk-MYFSVZKZ.js → chunk-SJP7WYIV.js} +1 -1
  47. package/dist/{chunk-WSR4OB4T.js → chunk-XOVSHJTZ.js} +1 -1
  48. package/dist/{chunk-AHPMAPVN.js → chunk-Z346ESBB.js} +2 -5
  49. package/dist/{chunk-Z6E3WOWS.js → chunk-ZPNFWORS.js} +4 -4
  50. package/dist/generated/index.js +42 -41
  51. package/dist/index.js +42 -41
  52. package/dist/styles.css +171 -69
  53. package/dist/utils/tableTrack.d.ts +21 -0
  54. package/package.json +3 -3
  55. package/dist/{chunk-NKNG6YER.js → chunk-G44KKOMB.js} +1 -1
package/dist/styles.css CHANGED
@@ -11326,7 +11326,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
11326
11326
  }
11327
11327
 
11328
11328
 
11329
- /* ChatThread-HAECJMP6.css */
11329
+ /* ChatThread-XANOIJXN.css */
11330
11330
  /*
11331
11331
  * A conversation as it grows: the scroller, the items a spacing step and a
11332
11332
  * half apart on the panel's 16px inset, and the Jump to latest pill in a row
@@ -11343,7 +11343,8 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
11343
11343
  /*
11344
11344
  * THE BROWSER'S SCROLL ANCHORING IS OFF: it pins the content above the
11345
11345
  * reader's view, which fights a last child that keeps growing as an answer
11346
- * streams in. ChatThread.tsx anchors to the end itself.
11346
+ * streams in. ChatThread.tsx anchors itself: to the end while the reader is
11347
+ * there, and to the item at the top of the view while they are away.
11347
11348
  *
11348
11349
  * THE SCROLLER IS THE CONTAINING BLOCK for everything positioned inside it.
11349
11350
  * It was not, so an absolutely positioned descendant with no positioned
@@ -29115,7 +29116,7 @@ button.crewlet-mention-chip:focus-visible {
29115
29116
  }
29116
29117
 
29117
29118
 
29118
- /* OrgLabel-6UGWHDQQ.css */
29119
+ /* OrgLabel-7UJKEDT3.css */
29119
29120
  /*
29120
29121
  * What a node of an org chart and a row of an org table both say
29121
29122
  * (OrgLabel.tsx).
@@ -29262,6 +29263,29 @@ button.crewlet-mention-chip:focus-visible {
29262
29263
  content: none;
29263
29264
  }
29264
29265
 
29266
+ /*
29267
+ * A LIVE STATE'S DOT, on the zone's lower corner: out of the flow in a box of fixed
29268
+ * size, so a change of state changes nothing a chart measures. It stands on the
29269
+ * card's own ground, written as the card paints it, to read clear of the mark.
29270
+ */
29271
+ .crewlet-org-label__icon {
29272
+ position: relative;
29273
+ }
29274
+
29275
+ .crewlet-org-label__status {
29276
+ position: absolute;
29277
+ top: calc(50% + var(--spacing-1));
29278
+ left: calc(50% + var(--spacing-1));
29279
+ display: inline-flex;
29280
+ padding: 2px;
29281
+ border-radius: var(--radius-circle);
29282
+ background-color: var(--color-surface-background);
29283
+ background-image: linear-gradient(
29284
+ var(--crewlet-tree-canvas-card-fill, var(--color-surface-subtle)),
29285
+ var(--crewlet-tree-canvas-card-fill, var(--color-surface-subtle))
29286
+ );
29287
+ }
29288
+
29265
29289
  /* ---- The name and its caption -------------------------------------------- */
29266
29290
 
29267
29291
  /*
@@ -29752,7 +29776,7 @@ button.crewlet-mention-chip:focus-visible {
29752
29776
  }
29753
29777
 
29754
29778
 
29755
- /* OrgTable-GBRYKTDH.css */
29779
+ /* OrgTable-3DXA23ZA.css */
29756
29780
  /*
29757
29781
  * An organization as an indented table of rows (OrgTable.tsx).
29758
29782
  *
@@ -29810,19 +29834,12 @@ button.crewlet-mention-chip:focus-visible {
29810
29834
  var(--size-target-min) * var(--crewlet-org-table-add-kinds) + (var(--crewlet-org-table-add-kinds) - 1) * 1px + 2px
29811
29835
  );
29812
29836
  /*
29813
- * THE TRACK A ROW'S CONTROL STRIP TAKES, and why it is a number at all:
29814
- * EVERY ROW IS ITS OWN GRID, so an `auto` last track is as wide as that
29815
- * row's own controls. The header row holds none, so its last track measured
29816
- * 16px where a row's measured 108, and every flexible column before it began
29817
- * somewhere else in the header than in the rows: a table whose headings
29818
- * named the wrong columns.
29819
- *
29820
- * The add's slot, the strip, and the cell's own inset. A caller with a
29821
- * different number sets its own track; what matters is that the track is
29822
- * fixed, and that it holds the add OPEN.
29837
+ * THE TRACK A ROW'S CONTROL STRIP TAKES: the add's slot, the strip, the gap
29838
+ * between them and the cell's own inset. A number because the strip's room is
29839
+ * reserved whatever a row draws in it, and because the track holds the add OPEN.
29823
29840
  */
29824
29841
  --crewlet-org-table-actions: calc(
29825
- var(--crewlet-org-table-add) + var(--crewlet-org-table-strip) + var(--spacing-2) * 3
29842
+ var(--crewlet-org-table-add) + var(--crewlet-org-table-strip) + var(--spacing-2) + var(--spacing-3) * 2
29826
29843
  );
29827
29844
  /*
29828
29845
  * THE ROOM THE QUIET STRIP KEEPS, whatever that row draws in it: three
@@ -29893,9 +29910,13 @@ button.crewlet-mention-chip:focus-visible {
29893
29910
  }
29894
29911
  }
29895
29912
 
29913
+ /* A PHONE'S ROW IS A NAME AND ITS TWO CONTROLS, so the room a cell keeps either
29914
+ side of a control goes to the name. */
29896
29915
  @container crewlet-org-table (width < 40rem) {
29897
- .crewlet-org-table__grid {
29916
+ .crewlet-org-table .crewlet-org-table__grid {
29898
29917
  --crewlet-org-table-indent: var(--spacing-3);
29918
+ --crewlet-tree-grid-inset: var(--spacing-1);
29919
+ --crewlet-tree-grid-edge: var(--spacing-1);
29899
29920
  }
29900
29921
  }
29901
29922
 
@@ -29949,7 +29970,7 @@ button.crewlet-mention-chip:focus-visible {
29949
29970
  * centres what it holds.
29950
29971
  */
29951
29972
  .crewlet-org-table [role='gridcell']:first-child {
29952
- align-self: stretch;
29973
+ padding-block: 0;
29953
29974
  padding-inline-start: var(--spacing-2);
29954
29975
  }
29955
29976
 
@@ -29960,8 +29981,11 @@ button.crewlet-mention-chip:focus-visible {
29960
29981
  * END of the row, past the table's own edge and out of its scroller. Ended, it
29961
29982
  * spills back over the row instead, where the pill's own ground covers
29962
29983
  * whatever it crosses.
29984
+ *
29985
+ * ITS HEADING TAKES THE SAME EDGE, so the word stands over the controls it names.
29963
29986
  */
29964
- .crewlet-org-table [role='gridcell']:last-child {
29987
+ .crewlet-org-table [role='gridcell']:last-child,
29988
+ .crewlet-org-table [role='columnheader']:last-child {
29965
29989
  justify-content: flex-end;
29966
29990
  }
29967
29991
 
@@ -29989,8 +30013,8 @@ button.crewlet-mention-chip:focus-visible {
29989
30013
  * the row's ground. In the plain border step it all but vanished on the
29990
30014
  * table's own ground, and the branches beside it read as loose dashes.
29991
30015
  *
29992
- * It starts one hairline above the cell, over the grid's rule between rows,
29993
- * so the segments meet rather than being cut by that rule.
30016
+ * It starts one hairline above the cell, over the rule the row above draws at
30017
+ * its foot, so the segments meet rather than being cut by that rule.
29994
30018
  */
29995
30019
  .crewlet-org-table__wire[data-trunk]::before {
29996
30020
  inset-block: -1px 0;
@@ -30133,6 +30157,9 @@ button.crewlet-mention-chip:focus-visible {
30133
30157
  justify-content: flex-end;
30134
30158
  gap: var(--spacing-1);
30135
30159
  min-width: var(--crewlet-org-table-strip);
30160
+ /* THE LAST GLYPH ENDS ON THE COLUMN'S EDGE, under its heading: a small icon
30161
+ button's own inset is taken back and only its hover's ground reaches past. */
30162
+ margin-inline-end: calc((var(--font-size-xs) - var(--size-control-sm)) / 2);
30136
30163
  opacity: 0;
30137
30164
  transition: opacity var(--motion-duration-fast) var(--motion-easing-default);
30138
30165
  }
@@ -30188,22 +30215,24 @@ button.crewlet-mention-chip:focus-visible {
30188
30215
  width: var(--crewlet-org-table-add);
30189
30216
  }
30190
30217
 
30191
- /* BESIDE A NAME the closed pill takes its mark's room alone, so a name gives
30192
- way only while the pill is open, and then into the room it opens into. */
30218
+ /* BESIDE A NAME the slot is its mark's room, open or closed. A slot that grew
30219
+ as the pill opened squeezed the name and pulled the mark out from under the
30220
+ pointer, which closed the pill, which brought the mark back: a loop. */
30193
30221
  .crewlet-org-table__add[data-placement='name'] {
30194
30222
  justify-content: flex-start;
30195
30223
  width: auto;
30196
30224
  }
30197
30225
 
30198
- .crewlet-org-table__add[data-placement='name']:has(.crewlet-add-pill:not([data-phase='closed'])) {
30199
- width: var(--crewlet-org-table-add);
30200
- }
30201
-
30202
- /* It opens from its mark toward the row's end, never back over the name. */
30226
+ /* It opens from its mark toward the row's end, over the row and never back
30227
+ over the name, on its own opaque ground and above the cells after it. */
30203
30228
  .crewlet-org-table__add[data-placement='name'] .crewlet-add-pill[data-layout='split'] {
30204
30229
  --crewlet-add-pill-origin: translate(calc(var(--size-target-min) / -2), -50%);
30205
30230
  }
30206
30231
 
30232
+ .crewlet-org-table__add[data-placement='name'] .crewlet-add-pill__sections {
30233
+ z-index: var(--z-index-raised);
30234
+ }
30235
+
30207
30236
 
30208
30237
  /* Outline-VCXKKU3E.css */
30209
30238
  /*
@@ -34287,7 +34316,7 @@ button.crewlet-presence-stack__member:focus-visible {
34287
34316
  }
34288
34317
 
34289
34318
 
34290
- /* SegmentedControl-PWTB7KEE.css */
34319
+ /* SegmentedControl-MHZMS2JJ.css */
34291
34320
  /*
34292
34321
  * SegmentedControl: the pill row, drawn with the Tabs classes.
34293
34322
  *
@@ -34434,10 +34463,13 @@ button.crewlet-presence-stack__member:focus-visible {
34434
34463
  says nothing more. On the chosen chip the inset pill's tertiary figure lay
34435
34464
  on the accent fill at 1.4:1; inheriting, it is the label's on-accent ink. */
34436
34465
  .crewlet-segmented--chips .crewlet-count {
34437
- min-width: 0;
34466
+ /* ROOM FOR TWO DIGITS, in step, so a live count passing 9 moves no chip. */
34467
+ min-width: 2ch;
34438
34468
  padding: 0;
34439
34469
  background: none;
34440
34470
  color: inherit;
34471
+ font-variant-numeric: tabular-nums;
34472
+ text-align: start;
34441
34473
  }
34442
34474
 
34443
34475
  /* What completes the last choice sits in the row, at the chips' own height
@@ -35127,7 +35159,7 @@ svg.crewlet-select__chevron {
35127
35159
  }
35128
35160
 
35129
35161
 
35130
- /* SelectionBar-SCAU6EBY.css */
35162
+ /* SelectionBar-54W5IFF5.css */
35131
35163
  /*
35132
35164
  * What is picked and what can be done to it: the count, the bulk actions and
35133
35165
  * Clear, on the raised rung inside the strong hairline so it reads as a bar
@@ -35152,6 +35184,15 @@ svg.crewlet-select__chevron {
35152
35184
  box-shadow: var(--shadow-sm);
35153
35185
  }
35154
35186
 
35187
+ /* A small control's height and the hairline round it, where the bar takes the
35188
+ place of a row of chips. A phone docks the bar instead, at its full height. */
35189
+ @media (width >= 640px) {
35190
+ .crewlet-toolbar.crewlet-selection-bar--compact {
35191
+ min-height: calc(var(--size-control-sm) + 2px);
35192
+ padding-block: 0;
35193
+ }
35194
+ }
35195
+
35155
35196
  .crewlet-selection-bar__count {
35156
35197
  flex: none;
35157
35198
  color: var(--color-text-primary);
@@ -40363,7 +40404,7 @@ svg.crewlet-select__chevron {
40363
40404
  }
40364
40405
 
40365
40406
 
40366
- /* StatusLegend-7MS2SBVC.css */
40407
+ /* StatusLegend-HVMKJQFY.css */
40367
40408
  /*
40368
40409
  * A status legend (StatusLegend.tsx): each status's dot, word and quiet count
40369
40410
  * on one line that wraps, in a canvas bar's type. As a filter, each item is a
@@ -40421,8 +40462,10 @@ button.crewlet-status-legend__item[aria-pressed='true'] {
40421
40462
  color: var(--color-brand-accent-ink);
40422
40463
  }
40423
40464
 
40424
- /* The count is a quiet figure after the word, in step down the column. */
40465
+ /* The count is a quiet figure after the word, in step down the column, and
40466
+ room for two digits, so a count passing 9 moves no key beside it. */
40425
40467
  .crewlet-status-legend__count {
40468
+ min-width: 2ch;
40426
40469
  font-variant-numeric: tabular-nums;
40427
40470
  color: var(--color-text-tertiary);
40428
40471
  }
@@ -40634,7 +40677,7 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
40634
40677
  }
40635
40678
 
40636
40679
 
40637
- /* Stepper-YQBNYCIS.css */
40680
+ /* Stepper-S4RC4OZ3.css */
40638
40681
  /*
40639
40682
  * The stepper: where a sequence has got to (Stepper.tsx).
40640
40683
  *
@@ -40663,6 +40706,11 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
40663
40706
  sizes around a pill: SetupWizard's row of steps clears the target band
40664
40707
  above and under it by this height. Read it; do not set it. */
40665
40708
  --crewlet-stepper-pill-height: calc(20px * var(--density, 1));
40709
+ /* The design's 5px between a mark and the word, and the two marks a pill
40710
+ draws: the 12px check and the 7px dot. See A PILL KEEPS ITS WIDTH. */
40711
+ --crewlet-stepper-mark-gap: calc(var(--spacing-1) * 1.25);
40712
+ --crewlet-stepper-check: 12px;
40713
+ --crewlet-stepper-dot: 7px;
40666
40714
 
40667
40715
  display: flex;
40668
40716
  flex-wrap: wrap;
@@ -40711,8 +40759,7 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
40711
40759
  .crewlet-stepper__chip {
40712
40760
  display: inline-flex;
40713
40761
  align-items: center;
40714
- /* The design's 5px between the check or the dot and the word. */
40715
- gap: calc(var(--spacing-1) * 1.25);
40762
+ gap: var(--crewlet-stepper-mark-gap);
40716
40763
  box-sizing: border-box;
40717
40764
  /* The design's 20px pill, which follows the density with every other step
40718
40765
  height in the kit. A pill that only labels takes no press; one a reader
@@ -40730,6 +40777,20 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
40730
40777
  white-space: nowrap;
40731
40778
  }
40732
40779
 
40780
+ /*
40781
+ * A PILL KEEPS ITS WIDTH AS THE SEQUENCE ADVANCES: each holds the check's room, split
40782
+ * evenly about what it draws (the dot, or no mark). A row of steps is then one width
40783
+ * at every step, and either always wraps or never does.
40784
+ */
40785
+ .crewlet-stepper__step--upcoming > .crewlet-stepper__chip,
40786
+ .crewlet-stepper__step--optional > .crewlet-stepper__chip {
40787
+ padding-inline: calc(var(--spacing-2) + (var(--crewlet-stepper-check) + var(--crewlet-stepper-mark-gap)) / 2);
40788
+ }
40789
+
40790
+ .crewlet-stepper__step--current:not(.crewlet-stepper__step--attention) > .crewlet-stepper__chip {
40791
+ padding-inline: calc(var(--spacing-2) + (var(--crewlet-stepper-check) - var(--crewlet-stepper-dot)) / 2);
40792
+ }
40793
+
40733
40794
  .crewlet-stepper__label {
40734
40795
  min-width: 0;
40735
40796
  overflow: hidden;
@@ -47078,18 +47139,20 @@ svg.crewlet-time-window__tick {
47078
47139
  }
47079
47140
 
47080
47141
 
47081
- /* TreeGrid-PZ3DFVRO.css */
47142
+ /* TreeGrid-H3GHMKZX.css */
47082
47143
  /*
47083
- * A hierarchy as rows and columns (TreeGrid.tsx).
47084
- *
47085
- * Each row is a grid on ONE column template, so the cells of every row line up
47086
- * without a table: a table row cannot be a focusable treegrid row with a
47087
- * level. The grid keeps a minimum width and scrolls sideways in its own box
47088
- * below that, so a phone width screen keeps every column readable and the page
47089
- * itself never scrolls sideways.
47144
+ * A hierarchy as rows and columns (TreeGrid.tsx), on `DataGrid`'s table rules: one
47145
+ * track list on the grid, which the head, body and rows pass through as `subgrid`.
47146
+ * Below its minimum width it scrolls sideways in its own box, never the page's.
47090
47147
  */
47091
47148
 
47092
47149
  .crewlet-tree-grid {
47150
+ /* The inset between two columns, and the inset at the grid's two outer edges,
47151
+ as `--crewlet-data-grid-edge`: the cells' own step standing alone, the card's
47152
+ own in a flush card. */
47153
+ --crewlet-tree-grid-inset: var(--spacing-3);
47154
+ --crewlet-tree-grid-edge: var(--spacing-3);
47155
+
47093
47156
  position: relative;
47094
47157
  }
47095
47158
 
@@ -47124,15 +47187,25 @@ svg.crewlet-time-window__tick {
47124
47187
  * menus open in, which must not be clipped.
47125
47188
  */
47126
47189
  background: var(--color-surface-subtle);
47127
- border: 1px solid var(--color-border-default);
47128
- border-radius: var(--radius-lg);
47190
+ border: 1px solid var(--color-border-hover);
47191
+ border-radius: var(--radius-md);
47129
47192
  }
47130
47193
 
47131
47194
  .crewlet-tree-grid__grid {
47195
+ display: grid;
47196
+ grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
47132
47197
  min-width: var(--crewlet-tree-grid-min-width, 45rem);
47133
47198
  font-size: var(--font-size-compact);
47134
47199
  }
47135
47200
 
47201
+ .crewlet-tree-grid__head,
47202
+ .crewlet-tree-grid__body,
47203
+ .crewlet-tree-grid__row {
47204
+ display: grid;
47205
+ grid-template-columns: subgrid;
47206
+ grid-column: 1 / -1;
47207
+ }
47208
+
47136
47209
  /* A CONTAINER-WIDTH GRID never scrolls sideways: it leaves out the columns its
47137
47210
  width cannot hold, so its header can hold at the top of the page's scroll. */
47138
47211
  .crewlet-tree-grid--container .crewlet-tree-grid__scroller {
@@ -47147,17 +47220,21 @@ svg.crewlet-time-window__tick {
47147
47220
  position: sticky;
47148
47221
  top: 0;
47149
47222
  z-index: var(--z-index-sticky);
47150
- background: var(--color-surface-subtle);
47151
- border-start-start-radius: calc(var(--radius-lg) - 1px);
47152
- border-start-end-radius: calc(var(--radius-lg) - 1px);
47223
+ border-start-start-radius: calc(var(--radius-md) - 1px);
47224
+ border-start-end-radius: calc(var(--radius-md) - 1px);
47153
47225
  }
47154
47226
 
47155
47227
  /*
47156
47228
  * INSIDE A FLUSH CARD THE CARD IS THE FRAME. A flush card exists so that a
47157
47229
  * table's rows reach its edges (Card.css), and a grid that drew its own border
47158
47230
  * and corner there was a second rounded box one pixel inside the first, with
47159
- * the card's footer hanging outside it. The rows keep their own hairlines.
47231
+ * the card's footer hanging outside it. The rows keep their own hairlines, and
47232
+ * the outer cells take the card's inset.
47160
47233
  */
47234
+ .crewlet-card--flush .crewlet-tree-grid {
47235
+ --crewlet-tree-grid-edge: var(--spacing-4);
47236
+ }
47237
+
47161
47238
  .crewlet-card--flush .crewlet-tree-grid__scroller {
47162
47239
  background: none;
47163
47240
  border: none;
@@ -47165,22 +47242,29 @@ svg.crewlet-time-window__tick {
47165
47242
  }
47166
47243
 
47167
47244
  .crewlet-tree-grid__row {
47168
- display: grid;
47169
- grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
47170
47245
  align-items: center;
47171
47246
  min-height: var(--size-row-md);
47172
- border-top: 1px solid var(--color-border-default);
47247
+ border-bottom: 1px solid var(--color-border-default);
47248
+ }
47249
+
47250
+ .crewlet-tree-grid__body > .crewlet-tree-grid__row:last-child {
47251
+ border-bottom: 0;
47252
+ }
47253
+
47254
+ .crewlet-tree-grid__body > .crewlet-tree-grid__row:hover {
47255
+ background: var(--color-surface-hover);
47173
47256
  }
47174
47257
 
47175
47258
  /*
47176
- * THE HEAD IS THE TABLE'S HEADER REGISTER, in full. It spelled three of the
47177
- * register's five declarations and left the tracking and the case off, so a
47178
- * treegrid and a table standing on the same screen named their columns two
47179
- * different ways. It is one micro-label step, declared once, wherever a column
47180
- * is named.
47259
+ * THE HEAD IS THE TABLE'S HEADER REGISTER, in full, on the raised ground under
47260
+ * the stronger hairline `DataGrid` draws its head on. It is one micro-label
47261
+ * step, declared once, wherever a column is named.
47181
47262
  */
47182
47263
  .crewlet-tree-grid__head .crewlet-tree-grid__row {
47183
- border-top: 0;
47264
+ background: var(--color-surface-elevated);
47265
+ border-bottom: 1px solid var(--color-border-hover);
47266
+ border-start-start-radius: inherit;
47267
+ border-start-end-radius: inherit;
47184
47268
  font-size: var(--font-size-2xs);
47185
47269
  font-weight: var(--font-weight-medium);
47186
47270
  letter-spacing: var(--font-letter-spacing-wide);
@@ -47188,13 +47272,37 @@ svg.crewlet-time-window__tick {
47188
47272
  color: var(--color-text-tertiary);
47189
47273
  }
47190
47274
 
47275
+ /*
47276
+ * A heading and its cells share one inline inset, so they start on one line. A cell
47277
+ * is the row's full height and centres what it holds, so a value that changes never
47278
+ * moves its box, and a focused cell's ring is the row's.
47279
+ */
47191
47280
  .crewlet-tree-grid__row > [role='columnheader'],
47192
47281
  .crewlet-tree-grid__cell {
47282
+ --crewlet-tree-grid-cell-start: var(--crewlet-tree-grid-inset);
47283
+ --crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-inset);
47284
+
47193
47285
  display: flex;
47286
+ align-self: stretch;
47194
47287
  align-items: center;
47195
47288
  gap: var(--spacing-2);
47196
47289
  min-width: 0;
47197
- padding: 0 var(--spacing-2);
47290
+ padding-block: var(--spacing-1);
47291
+ padding-inline: var(--crewlet-tree-grid-cell-start) var(--crewlet-tree-grid-cell-end);
47292
+ }
47293
+
47294
+ .crewlet-tree-grid__row > [role='columnheader'] {
47295
+ padding-block: var(--spacing-2);
47296
+ }
47297
+
47298
+ .crewlet-tree-grid__row > [role='columnheader']:first-child,
47299
+ .crewlet-tree-grid__cell:first-child {
47300
+ --crewlet-tree-grid-cell-start: var(--crewlet-tree-grid-edge);
47301
+ }
47302
+
47303
+ .crewlet-tree-grid__row > [role='columnheader']:last-child,
47304
+ .crewlet-tree-grid__cell:last-child {
47305
+ --crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-edge);
47198
47306
  }
47199
47307
 
47200
47308
  /* A COLUMN OF VALUES READ AFTER THE NAME takes the caption's size, a step under the name's. */
@@ -47205,11 +47313,11 @@ svg.crewlet-time-window__tick {
47205
47313
  /*
47206
47314
  * The indent is the row's own level, set on the row, ON TOP OF the inset every
47207
47315
  * cell has. Replacing that inset left a top-level row's chevron flush against
47208
- * the frame, its hover ground touching the edge, and the column starting 8px
47209
- * further out than its own heading and every other column.
47316
+ * the frame, its hover ground touching the edge, and the column starting further
47317
+ * out than its own heading and every other column.
47210
47318
  */
47211
47319
  .crewlet-tree-grid__cell:first-child {
47212
- padding-inline-start: calc(var(--spacing-2) + var(--spacing-5) * var(--crewlet-tree-grid-depth, 0));
47320
+ padding-inline-start: calc(var(--crewlet-tree-grid-edge) + var(--spacing-5) * var(--crewlet-tree-grid-depth, 0));
47213
47321
  }
47214
47322
 
47215
47323
  /*
@@ -47273,9 +47381,7 @@ svg.crewlet-time-window__tick {
47273
47381
 
47274
47382
  /*
47275
47383
  * A HEADLESS GRID keeps its header row for a screen reader and draws no band:
47276
- * the row is taken out of the layout the way VisuallyHidden takes text out,
47277
- * and the first row of the body loses the hairline that would otherwise sit
47278
- * under the frame's own edge as a second line.
47384
+ * the row is taken out of the layout the way VisuallyHidden takes text out.
47279
47385
  */
47280
47386
  .crewlet-tree-grid--headless .crewlet-tree-grid__head {
47281
47387
  position: absolute;
@@ -47286,10 +47392,6 @@ svg.crewlet-time-window__tick {
47286
47392
  white-space: nowrap;
47287
47393
  }
47288
47394
 
47289
- .crewlet-tree-grid--headless .crewlet-tree-grid__head + [role='rowgroup'] > .crewlet-tree-grid__row:first-child {
47290
- border-top: 0;
47291
- }
47292
-
47293
47395
  /* The selection is where the reader is, so it takes the accent. */
47294
47396
  .crewlet-tree-grid__row[aria-selected='true'] {
47295
47397
  box-shadow: inset 2px 0 0 var(--color-brand-accent);
@@ -0,0 +1,21 @@
1
+ /** How a table's column asks for its track. */
2
+ export interface TableTrack {
3
+ /** An exact track, in place of the computed one. */
4
+ width?: string | undefined;
5
+ /** Shrink to content, up to a fifth of the table. */
6
+ shrink?: boolean | undefined;
7
+ /** The narrowest a flexible column may be drawn. */
8
+ floor?: string | undefined;
9
+ }
10
+ /**
11
+ * The most of a table one `shrink` column may take: a fraction, so it is the
12
+ * same promise on a phone and a wide screen, and two at the cap still leave
13
+ * three fifths of the table to the flexible columns that are the point of it.
14
+ */
15
+ export declare const SHRINK_SHARE = 0.2;
16
+ /**
17
+ * A column's grid track, by the rules every table of columns in the kit sizes by: a
18
+ * content-sized column is capped with `fit-content()`, since `max-content` would
19
+ * starve the name, and a flexible one takes the rest above its floor.
20
+ */
21
+ export declare function tableTrack({ width, shrink, floor }: TableTrack): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.98.0",
3
+ "version": "0.100.0",
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.98.0",
46
- "@crewlethq/tokens": "0.98.0",
45
+ "@crewlethq/icons": "0.100.0",
46
+ "@crewlethq/tokens": "0.100.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,5 +1,5 @@
1
- import { SidebarNav, NavItem } from './chunk-BRK3HXGZ.js';
2
1
  import { Select } from './chunk-IAR2ULSK.js';
2
+ import { SidebarNav, NavItem } from './chunk-BRK3HXGZ.js';
3
3
  import { Text } from './chunk-O5CEG7TQ.js';
4
4
  import { Card } from './chunk-U2IQNDDR.js';
5
5
  import './RailList-N2ZBPRM2.css';