@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
@@ -1,3 +1,3 @@
1
- export { ADD_PILL_MS, AddPill } from '../chunk-SSN7Y3UY.js';
1
+ export { ADD_PILL_MS, AddPill } from '../chunk-DVRECWCB.js';
2
2
  import '../chunk-UT6CW3C7.js';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-MOP4D5HF.js';
2
- import '../chunk-WSR4OB4T.js';
2
+ import '../chunk-XOVSHJTZ.js';
3
3
  import '../chunk-FP6OFRAU.js';
4
4
  import '../chunk-IYJCJOHW.js';
5
5
  import '../chunk-EGMQURBR.js';
@@ -1,5 +1,5 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
- /** How close to the end, in pixels, still counts as reading the latest. */
2
+ /** How close to the end, in pixels, a reader scrolling down is taken back to it. */
3
3
  export declare const CHAT_THREAD_FOLLOW_WITHIN = 48;
4
4
  export interface ChatThreadLabels {
5
5
  /** The pill that returns to the end. */
@@ -39,10 +39,16 @@ export interface ChatThreadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'r
39
39
  /** A request is running: the log is `aria-busy` until it settles. */
40
40
  busy?: boolean | undefined;
41
41
  /**
42
- * Keeps the end in view while the reader is at it (within 48px). `true` by
43
- * default; `false` never moves the scroll on its own.
42
+ * Keeps the end in view while the reader is at it. `true` by default;
43
+ * `false` never moves the scroll on its own.
44
44
  */
45
45
  follow?: boolean | undefined;
46
+ /**
47
+ * Called when the reader leaves the end or comes back to it: the one
48
+ * answer to "is the reader at the latest", for a host that counts what
49
+ * arrives meanwhile rather than reading the scroll position a second way.
50
+ */
51
+ onFollowChange?: ((following: boolean) => void) | undefined;
46
52
  /**
47
53
  * Draws the Jump to latest row under the log while the reader is scrolled
48
54
  * away from the end. `true` by default; `false` for a log that offers its
@@ -71,11 +77,19 @@ export interface ChatThreadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'r
71
77
  * `Announcer`, when an answer completes. It is focusable, so a keyboard
72
78
  * reader can scroll it, and `aria-busy` while a request runs.
73
79
  *
74
- * IT STICKS TO THE END ONLY WHILE THE READER IS THERE. Within 48px of the end
75
- * it follows whatever arrives; scrolled up, it stays put and a "Jump to
76
- * latest" pill counts what arrived since. The browser's own scroll anchoring
77
- * is turned off (it fights a last child that keeps growing), and the
78
- * anchoring is done here instead.
80
+ * IT STICKS TO THE END ONLY WHILE THE READER IS THERE. At the end it follows
81
+ * whatever arrives, and a view that shrinks under it (a composer growing a
82
+ * line) keeps the latest in sight. The reader leaves the end with the first
83
+ * upward move, however small: it used to count anywhere within 48px as the
84
+ * end and pull them back on the next render, so a slow wheel or a trackpad
85
+ * near the end could not scroll up at all. Scrolling down to within 48px
86
+ * takes them back. Scrolled up, a "Jump to latest" pill counts what arrived.
87
+ *
88
+ * AND THE READER'S PLACE HOLDS WHILE THEY ARE AWAY. The browser's own scroll
89
+ * anchoring is turned off (it fights a last child that keeps growing), so the
90
+ * thread anchors itself: the item at the top of the view stays where it
91
+ * stood while what is above it changes height (an older page, a row drawn
92
+ * at its real height, a preview that loads), before the change is painted.
79
93
  *
80
94
  * A JUMP HOLDS UNTIL IT LANDS. A smooth scroll passes through positions short
81
95
  * of the end, and each one read as the reader leaving: the pill came back and
@@ -1,4 +1,4 @@
1
- export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-RPCIU4S5.js';
1
+ export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-3NCIQO2P.js';
2
2
  import '../chunk-YJQXESOJ.js';
3
3
  import '../chunk-6KUOHUY5.js';
4
4
  import '../chunk-XSPCITPN.js';
@@ -14,7 +14,8 @@
14
14
  /*
15
15
  * THE BROWSER'S SCROLL ANCHORING IS OFF: it pins the content above the
16
16
  * reader's view, which fights a last child that keeps growing as an answer
17
- * streams in. ChatThread.tsx anchors to the end itself.
17
+ * streams in. ChatThread.tsx anchors itself: to the end while the reader is
18
+ * there, and to the item at the top of the view while they are away.
18
19
  *
19
20
  * THE SCROLLER IS THE CONTAINING BLOCK for everything positioned inside it.
20
21
  * It was not, so an absolutely positioned descendant with no positioned
@@ -1,4 +1,5 @@
1
- export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, useAnyDataGridDriving, useDataGridDriving } from '../chunk-AHPMAPVN.js';
1
+ export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, useAnyDataGridDriving, useDataGridDriving } from '../chunk-Z346ESBB.js';
2
+ import '../chunk-CTQZK5J3.js';
2
3
  import '../chunk-M6G7XLLP.js';
3
4
  import '../chunk-YJQXESOJ.js';
4
5
  import '../chunk-PPUR46MK.js';
@@ -1,5 +1,5 @@
1
- export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-4FNAPCCK.js';
2
- import '../chunk-KUMHQY2B.js';
1
+ export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-KN4YCWWO.js';
2
+ import '../chunk-LIDKF3LL.js';
3
3
  import '../chunk-YS4PWTNL.js';
4
4
  import '../chunk-RQFRRPV6.js';
5
5
  import '../chunk-4BEMS6Q7.js';
@@ -1,6 +1,6 @@
1
1
  export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-EF3CJDZO.js';
2
2
  import '../chunk-NXFTCPF6.js';
3
- import '../chunk-WSR4OB4T.js';
3
+ import '../chunk-XOVSHJTZ.js';
4
4
  import '../chunk-FP6OFRAU.js';
5
5
  import '../chunk-IYJCJOHW.js';
6
6
  import '../chunk-EGMQURBR.js';
@@ -1,5 +1,5 @@
1
1
  export { MERGE_CONFLICTS_LABELS, MergeConflicts } from '../chunk-VULZ4FAA.js';
2
- import '../chunk-WSR4OB4T.js';
2
+ import '../chunk-XOVSHJTZ.js';
3
3
  import '../chunk-FP6OFRAU.js';
4
4
  import '../chunk-IYJCJOHW.js';
5
5
  import '../chunk-EGMQURBR.js';
@@ -147,6 +147,12 @@ interface OrgLabelWords {
147
147
  * with no slot at all, which is the console chart's own node.
148
148
  */
149
149
  trailing?: ReactNode | undefined;
150
+ /**
151
+ * A live state's dot on the corner of the mark's zone, the same spot on every node.
152
+ * Drawn over a zone of fixed size, so a change of state, or a first state arriving,
153
+ * never changes what a chart measures.
154
+ */
155
+ markStatus?: ReactNode | undefined;
150
156
  /**
151
157
  * Added to the outermost element this layout HAS: the row's own wrapper, and
152
158
  * in a node the text column, which is the outermost element a layout that
@@ -1,4 +1,4 @@
1
- export { OrgLabel } from '../chunk-4XYKBZJE.js';
1
+ export { OrgLabel } from '../chunk-44GFQ4O3.js';
2
2
  import '../chunk-YTLWOHOY.js';
3
3
  import '../chunk-XZY6S3UC.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -144,6 +144,29 @@
144
144
  content: none;
145
145
  }
146
146
 
147
+ /*
148
+ * A LIVE STATE'S DOT, on the zone's lower corner: out of the flow in a box of fixed
149
+ * size, so a change of state changes nothing a chart measures. It stands on the
150
+ * card's own ground, written as the card paints it, to read clear of the mark.
151
+ */
152
+ .crewlet-org-label__icon {
153
+ position: relative;
154
+ }
155
+
156
+ .crewlet-org-label__status {
157
+ position: absolute;
158
+ top: calc(50% + var(--spacing-1));
159
+ left: calc(50% + var(--spacing-1));
160
+ display: inline-flex;
161
+ padding: 2px;
162
+ border-radius: var(--radius-circle);
163
+ background-color: var(--color-surface-background);
164
+ background-image: linear-gradient(
165
+ var(--crewlet-tree-canvas-card-fill, var(--color-surface-subtle)),
166
+ var(--crewlet-tree-canvas-card-fill, var(--color-surface-subtle))
167
+ );
168
+ }
169
+
147
170
  /* ---- The name and its caption -------------------------------------------- */
148
171
 
149
172
  /*
@@ -1,5 +1,5 @@
1
- export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from '../chunk-JQCKRABK.js';
2
- import '../chunk-4XYKBZJE.js';
1
+ export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from '../chunk-2WQEHXXB.js';
2
+ import '../chunk-44GFQ4O3.js';
3
3
  import '../chunk-YTLWOHOY.js';
4
4
  import '../chunk-XZY6S3UC.js';
5
5
  import '../chunk-ODEQTPFM.js';
@@ -112,8 +112,8 @@ export interface OrgTableAddProps extends AddPillProps {
112
112
  onOpen?: (() => void) | undefined;
113
113
  /**
114
114
  * `end` (the default) holds the open pill's room at the row's end. `name`
115
- * stands beside a name (`OrgLabel` `nameAction`): closed it takes its mark's
116
- * room alone, and open it takes the room it opens into, toward the row's end.
115
+ * stands beside a name (`OrgLabel` `nameAction`) and takes its mark's room
116
+ * alone, open or closed, so opening moves nothing: the pill opens over the row.
117
117
  */
118
118
  placement?: 'end' | 'name' | undefined;
119
119
  }
@@ -1,12 +1,13 @@
1
- export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-Z6E3WOWS.js';
2
- import '../chunk-ROFAWLFS.js';
1
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-ZPNFWORS.js';
2
+ import '../chunk-ERESJG6C.js';
3
3
  import '../chunk-MY374UUD.js';
4
- import '../chunk-4XYKBZJE.js';
4
+ import '../chunk-44GFQ4O3.js';
5
+ import '../chunk-CTQZK5J3.js';
5
6
  import '../chunk-X4HBZSXA.js';
6
7
  import '../chunk-YTLWOHOY.js';
7
8
  import '../chunk-XZY6S3UC.js';
8
9
  import '../chunk-M6G7XLLP.js';
9
- import '../chunk-SSN7Y3UY.js';
10
+ import '../chunk-DVRECWCB.js';
10
11
  import '../chunk-56ES76ST.js';
11
12
  import '../chunk-NICEDVZM.js';
12
13
  import '../chunk-PGCLHYVP.js';
@@ -55,19 +55,12 @@
55
55
  var(--size-target-min) * var(--crewlet-org-table-add-kinds) + (var(--crewlet-org-table-add-kinds) - 1) * 1px + 2px
56
56
  );
57
57
  /*
58
- * THE TRACK A ROW'S CONTROL STRIP TAKES, and why it is a number at all:
59
- * EVERY ROW IS ITS OWN GRID, so an `auto` last track is as wide as that
60
- * row's own controls. The header row holds none, so its last track measured
61
- * 16px where a row's measured 108, and every flexible column before it began
62
- * somewhere else in the header than in the rows: a table whose headings
63
- * named the wrong columns.
64
- *
65
- * The add's slot, the strip, and the cell's own inset. A caller with a
66
- * different number sets its own track; what matters is that the track is
67
- * fixed, and that it holds the add OPEN.
58
+ * THE TRACK A ROW'S CONTROL STRIP TAKES: the add's slot, the strip, the gap
59
+ * between them and the cell's own inset. A number because the strip's room is
60
+ * reserved whatever a row draws in it, and because the track holds the add OPEN.
68
61
  */
69
62
  --crewlet-org-table-actions: calc(
70
- var(--crewlet-org-table-add) + var(--crewlet-org-table-strip) + var(--spacing-2) * 3
63
+ var(--crewlet-org-table-add) + var(--crewlet-org-table-strip) + var(--spacing-2) + var(--spacing-3) * 2
71
64
  );
72
65
  /*
73
66
  * THE ROOM THE QUIET STRIP KEEPS, whatever that row draws in it: three
@@ -138,9 +131,13 @@
138
131
  }
139
132
  }
140
133
 
134
+ /* A PHONE'S ROW IS A NAME AND ITS TWO CONTROLS, so the room a cell keeps either
135
+ side of a control goes to the name. */
141
136
  @container crewlet-org-table (width < 40rem) {
142
- .crewlet-org-table__grid {
137
+ .crewlet-org-table .crewlet-org-table__grid {
143
138
  --crewlet-org-table-indent: var(--spacing-3);
139
+ --crewlet-tree-grid-inset: var(--spacing-1);
140
+ --crewlet-tree-grid-edge: var(--spacing-1);
144
141
  }
145
142
  }
146
143
 
@@ -194,7 +191,7 @@
194
191
  * centres what it holds.
195
192
  */
196
193
  .crewlet-org-table [role='gridcell']:first-child {
197
- align-self: stretch;
194
+ padding-block: 0;
198
195
  padding-inline-start: var(--spacing-2);
199
196
  }
200
197
 
@@ -205,8 +202,11 @@
205
202
  * END of the row, past the table's own edge and out of its scroller. Ended, it
206
203
  * spills back over the row instead, where the pill's own ground covers
207
204
  * whatever it crosses.
205
+ *
206
+ * ITS HEADING TAKES THE SAME EDGE, so the word stands over the controls it names.
208
207
  */
209
- .crewlet-org-table [role='gridcell']:last-child {
208
+ .crewlet-org-table [role='gridcell']:last-child,
209
+ .crewlet-org-table [role='columnheader']:last-child {
210
210
  justify-content: flex-end;
211
211
  }
212
212
 
@@ -234,8 +234,8 @@
234
234
  * the row's ground. In the plain border step it all but vanished on the
235
235
  * table's own ground, and the branches beside it read as loose dashes.
236
236
  *
237
- * It starts one hairline above the cell, over the grid's rule between rows,
238
- * so the segments meet rather than being cut by that rule.
237
+ * It starts one hairline above the cell, over the rule the row above draws at
238
+ * its foot, so the segments meet rather than being cut by that rule.
239
239
  */
240
240
  .crewlet-org-table__wire[data-trunk]::before {
241
241
  inset-block: -1px 0;
@@ -378,6 +378,9 @@
378
378
  justify-content: flex-end;
379
379
  gap: var(--spacing-1);
380
380
  min-width: var(--crewlet-org-table-strip);
381
+ /* THE LAST GLYPH ENDS ON THE COLUMN'S EDGE, under its heading: a small icon
382
+ button's own inset is taken back and only its hover's ground reaches past. */
383
+ margin-inline-end: calc((var(--font-size-xs) - var(--size-control-sm)) / 2);
381
384
  opacity: 0;
382
385
  transition: opacity var(--motion-duration-fast) var(--motion-easing-default);
383
386
  }
@@ -433,18 +436,20 @@
433
436
  width: var(--crewlet-org-table-add);
434
437
  }
435
438
 
436
- /* BESIDE A NAME the closed pill takes its mark's room alone, so a name gives
437
- way only while the pill is open, and then into the room it opens into. */
439
+ /* BESIDE A NAME the slot is its mark's room, open or closed. A slot that grew
440
+ as the pill opened squeezed the name and pulled the mark out from under the
441
+ pointer, which closed the pill, which brought the mark back: a loop. */
438
442
  .crewlet-org-table__add[data-placement='name'] {
439
443
  justify-content: flex-start;
440
444
  width: auto;
441
445
  }
442
446
 
443
- .crewlet-org-table__add[data-placement='name']:has(.crewlet-add-pill:not([data-phase='closed'])) {
444
- width: var(--crewlet-org-table-add);
445
- }
446
-
447
- /* It opens from its mark toward the row's end, never back over the name. */
447
+ /* It opens from its mark toward the row's end, over the row and never back
448
+ over the name, on its own opaque ground and above the cells after it. */
448
449
  .crewlet-org-table__add[data-placement='name'] .crewlet-add-pill[data-layout='split'] {
449
450
  --crewlet-add-pill-origin: translate(calc(var(--size-target-min) / -2), -50%);
450
451
  }
452
+
453
+ .crewlet-org-table__add[data-placement='name'] .crewlet-add-pill__sections {
454
+ z-index: var(--z-index-raised);
455
+ }
@@ -1,6 +1,6 @@
1
- export { RAIL_LIST_LABELS, RailList } from '../chunk-NKNG6YER.js';
2
- import '../chunk-BRK3HXGZ.js';
1
+ export { RAIL_LIST_LABELS, RailList } from '../chunk-G44KKOMB.js';
3
2
  import '../chunk-IAR2ULSK.js';
3
+ import '../chunk-BRK3HXGZ.js';
4
4
  import '../chunk-O5CEG7TQ.js';
5
5
  import '../chunk-YGRTX67J.js';
6
6
  import '../chunk-TEV5REGB.js';
@@ -1,5 +1,5 @@
1
- export { RUN_STATES, RunChip } from '../chunk-MYFSVZKZ.js';
2
- import '../chunk-KUMHQY2B.js';
1
+ export { RUN_STATES, RunChip } from '../chunk-SJP7WYIV.js';
2
+ import '../chunk-LIDKF3LL.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
4
  import '../chunk-NAHA62WD.js';
5
5
  import '../chunk-XSPCITPN.js';
@@ -1,4 +1,4 @@
1
- import '../chunk-WSR4OB4T.js';
1
+ import '../chunk-XOVSHJTZ.js';
2
2
  export { SegmentedControl } from '../chunk-FP6OFRAU.js';
3
3
  import '../chunk-IYJCJOHW.js';
4
4
  import '../chunk-EGMQURBR.js';
@@ -144,10 +144,13 @@
144
144
  says nothing more. On the chosen chip the inset pill's tertiary figure lay
145
145
  on the accent fill at 1.4:1; inheriting, it is the label's on-accent ink. */
146
146
  .crewlet-segmented--chips .crewlet-count {
147
- min-width: 0;
147
+ /* ROOM FOR TWO DIGITS, in step, so a live count passing 9 moves no chip. */
148
+ min-width: 2ch;
148
149
  padding: 0;
149
150
  background: none;
150
151
  color: inherit;
152
+ font-variant-numeric: tabular-nums;
153
+ text-align: start;
151
154
  }
152
155
 
153
156
  /* What completes the last choice sits in the row, at the chips' own height
@@ -26,6 +26,11 @@ export interface SelectionBarProps {
26
26
  * would fall to the page body with the button that held it.
27
27
  */
28
28
  returnFocusRef?: RefObject<HTMLElement | null> | undefined;
29
+ /**
30
+ * `compact` draws the bar a small control's height, for a row of chips it
31
+ * takes the place of, where the tall bar would move the list under it.
32
+ */
33
+ size?: 'md' | 'compact' | undefined;
29
34
  className?: string | undefined;
30
35
  labels?: Partial<SelectionBarLabels> | undefined;
31
36
  }
@@ -47,4 +52,4 @@ export interface SelectionBarProps {
47
52
  * ONE STOP IN THE TAB ORDER: the actions and Clear are a `Toolbar`, walked
48
53
  * with the arrows.
49
54
  */
50
- export declare function SelectionBar({ count, onClear, children, returnFocusRef, className, labels }: SelectionBarProps): import("react").JSX.Element | null;
55
+ export declare function SelectionBar({ count, onClear, children, returnFocusRef, size, className, labels }: SelectionBarProps): import("react").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- export { SelectionBar } from '../chunk-3QBQY2XK.js';
1
+ export { SelectionBar } from '../chunk-QIVLL5HB.js';
2
2
  import '../chunk-NXFTCPF6.js';
3
3
  import '../chunk-6KUOHUY5.js';
4
4
  import '../chunk-XSPCITPN.js';
@@ -22,6 +22,15 @@
22
22
  box-shadow: var(--shadow-sm);
23
23
  }
24
24
 
25
+ /* A small control's height and the hairline round it, where the bar takes the
26
+ place of a row of chips. A phone docks the bar instead, at its full height. */
27
+ @media (width >= 640px) {
28
+ .crewlet-toolbar.crewlet-selection-bar--compact {
29
+ min-height: calc(var(--size-control-sm) + 2px);
30
+ padding-block: 0;
31
+ }
32
+ }
33
+
25
34
  .crewlet-selection-bar__count {
26
35
  flex: none;
27
36
  color: var(--color-text-primary);
@@ -1,5 +1,5 @@
1
- export { SetupWizard } from '../chunk-IX6CHGM4.js';
2
- import '../chunk-KUMHQY2B.js';
1
+ export { SetupWizard } from '../chunk-MFZBLJYF.js';
2
+ import '../chunk-LIDKF3LL.js';
3
3
  import '../chunk-FPDIHEM4.js';
4
4
  import '../chunk-YJQXESOJ.js';
5
5
  import '../chunk-QRE6JCHS.js';
@@ -1,4 +1,4 @@
1
- export { StatusLegend } from '../chunk-6FS6W3P5.js';
1
+ export { StatusLegend } from '../chunk-3QKJV3KE.js';
2
2
  import '../chunk-QRE6JCHS.js';
3
3
  import '../chunk-UT6CW3C7.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -55,8 +55,10 @@ button.crewlet-status-legend__item[aria-pressed='true'] {
55
55
  color: var(--color-brand-accent-ink);
56
56
  }
57
57
 
58
- /* The count is a quiet figure after the word, in step down the column. */
58
+ /* The count is a quiet figure after the word, in step down the column, and
59
+ room for two digits, so a count passing 9 moves no key beside it. */
59
60
  .crewlet-status-legend__count {
61
+ min-width: 2ch;
60
62
  font-variant-numeric: tabular-nums;
61
63
  color: var(--color-text-tertiary);
62
64
  }
@@ -1,4 +1,4 @@
1
- export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepDetailPieces } from '../chunk-KUMHQY2B.js';
1
+ export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepDetailPieces } from '../chunk-LIDKF3LL.js';
2
2
  import '../chunk-QRE6JCHS.js';
3
3
  import '../chunk-XSPCITPN.js';
4
4
  import '../chunk-UT6CW3C7.js';
@@ -26,6 +26,11 @@
26
26
  sizes around a pill: SetupWizard's row of steps clears the target band
27
27
  above and under it by this height. Read it; do not set it. */
28
28
  --crewlet-stepper-pill-height: calc(20px * var(--density, 1));
29
+ /* The design's 5px between a mark and the word, and the two marks a pill
30
+ draws: the 12px check and the 7px dot. See A PILL KEEPS ITS WIDTH. */
31
+ --crewlet-stepper-mark-gap: calc(var(--spacing-1) * 1.25);
32
+ --crewlet-stepper-check: 12px;
33
+ --crewlet-stepper-dot: 7px;
29
34
 
30
35
  display: flex;
31
36
  flex-wrap: wrap;
@@ -74,8 +79,7 @@
74
79
  .crewlet-stepper__chip {
75
80
  display: inline-flex;
76
81
  align-items: center;
77
- /* The design's 5px between the check or the dot and the word. */
78
- gap: calc(var(--spacing-1) * 1.25);
82
+ gap: var(--crewlet-stepper-mark-gap);
79
83
  box-sizing: border-box;
80
84
  /* The design's 20px pill, which follows the density with every other step
81
85
  height in the kit. A pill that only labels takes no press; one a reader
@@ -93,6 +97,20 @@
93
97
  white-space: nowrap;
94
98
  }
95
99
 
100
+ /*
101
+ * A PILL KEEPS ITS WIDTH AS THE SEQUENCE ADVANCES: each holds the check's room, split
102
+ * evenly about what it draws (the dot, or no mark). A row of steps is then one width
103
+ * at every step, and either always wraps or never does.
104
+ */
105
+ .crewlet-stepper__step--upcoming > .crewlet-stepper__chip,
106
+ .crewlet-stepper__step--optional > .crewlet-stepper__chip {
107
+ padding-inline: calc(var(--spacing-2) + (var(--crewlet-stepper-check) + var(--crewlet-stepper-mark-gap)) / 2);
108
+ }
109
+
110
+ .crewlet-stepper__step--current:not(.crewlet-stepper__step--attention) > .crewlet-stepper__chip {
111
+ padding-inline: calc(var(--spacing-2) + (var(--crewlet-stepper-check) - var(--crewlet-stepper-dot)) / 2);
112
+ }
113
+
96
114
  .crewlet-stepper__label {
97
115
  min-width: 0;
98
116
  overflow: hidden;
@@ -1,7 +1,7 @@
1
1
  export { DensitySwitcher, ThemeSwitcher } from '../chunk-7IW4BVZF.js';
2
2
  export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
3
3
  export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from '../chunk-ZXXDZJQN.js';
4
- import '../chunk-WSR4OB4T.js';
4
+ import '../chunk-XOVSHJTZ.js';
5
5
  import '../chunk-FP6OFRAU.js';
6
6
  import '../chunk-IYJCJOHW.js';
7
7
  import '../chunk-EGMQURBR.js';
@@ -1,7 +1,7 @@
1
1
  export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-IA3NL54W.js';
2
2
  import '../chunk-EMDRNB23.js';
3
3
  import '../chunk-BPCY7ZID.js';
4
- import '../chunk-WSR4OB4T.js';
4
+ import '../chunk-XOVSHJTZ.js';
5
5
  import '../chunk-FP6OFRAU.js';
6
6
  import '../chunk-IYJCJOHW.js';
7
7
  import '../chunk-EGMQURBR.js';
@@ -40,15 +40,23 @@ export interface TreeGridColumn {
40
40
  */
41
41
  headerHidden?: boolean | undefined;
42
42
  /**
43
- * This column's grid track. One flexible column by default.
44
- *
45
- * A LENGTH OR A FRACTION, NEVER A SIZE THE CONTENT DECIDES. Every row is a
46
- * grid of its own on this template, so `auto`, `max-content` or
47
- * `fit-content()` is sized row by row, and each row then starts its columns
48
- * somewhere else. A column of one control is the control and the cell's
49
- * padding on either side: `calc(var(--size-control-sm) + var(--spacing-2) * 2)`.
43
+ * An exact track, in place of the default flexible one. A column whose values a
44
+ * live push changes takes a length: the track list is the whole table's, so a
45
+ * content-sized track moves every column after it when its widest value changes.
50
46
  */
51
47
  width?: string | undefined;
48
+ /**
49
+ * Shrink to content, up to a fifth of the grid (`fit-content(20%)`), for a
50
+ * column of values that hold still. One track list serves the header and every
51
+ * row, so the track is sized by all of them together.
52
+ */
53
+ shrink?: boolean | undefined;
54
+ /**
55
+ * The narrowest a flexible column may be drawn: its track is
56
+ * `minmax(floor, 1fr)` rather than `minmax(0, 1fr)`. For the column that is
57
+ * the point of the list, which at zero gave way to every column beside it.
58
+ */
59
+ floor?: string | undefined;
52
60
  /**
53
61
  * The grid's own width, in CSS pixels, below which this column is left out
54
62
  * with its header. A cell's words can then move into another column's.
@@ -1,5 +1,6 @@
1
- export { TreeGrid } from '../chunk-ROFAWLFS.js';
1
+ export { TreeGrid } from '../chunk-ERESJG6C.js';
2
2
  import '../chunk-MY374UUD.js';
3
+ import '../chunk-CTQZK5J3.js';
3
4
  import '../chunk-X4HBZSXA.js';
4
5
  import '../chunk-WDLAAZFZ.js';
5
6
  import '../chunk-TDFLCUBE.js';