@crewlethq/ui 0.186.1 → 0.188.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 (104) hide show
  1. package/README.md +12 -0
  2. package/dist/ActivityLine/index.js +3 -3
  3. package/dist/AddPill/AddPill.d.ts +26 -9
  4. package/dist/AddPill/index.d.ts +2 -2
  5. package/dist/AddPill/index.js +1 -1
  6. package/dist/ArrangeList/index.js +2 -2
  7. package/dist/ArtifactCard/index.js +2 -2
  8. package/dist/Avatar/AvatarStack.d.ts +9 -4
  9. package/dist/Avatar/index.js +1 -1
  10. package/dist/{AvatarStack-UNBXFHTZ.css → AvatarStack-6N6V7L7L.css} +11 -3
  11. package/dist/CommentThread/index.js +1 -1
  12. package/dist/DataGrid/index.js +3 -3
  13. package/dist/{DataGrid-K2L4ZOUH.css → DataGrid-UGOZXHJS.css} +5 -0
  14. package/dist/DeepWorkCard/index.js +2 -2
  15. package/dist/DocTabsEditor/index.js +2 -2
  16. package/dist/DurationField/index.js +2 -2
  17. package/dist/EntityChip/index.js +1 -1
  18. package/dist/ImageUpload/index.js +1 -1
  19. package/dist/LimitMeters/LimitMeters.d.ts +11 -4
  20. package/dist/LimitMeters/index.js +3 -1
  21. package/dist/{LimitMeters-HDEBOATH.css → LimitMeters-BCQEUJZ3.css} +9 -4
  22. package/dist/ListInput/index.js +2 -2
  23. package/dist/Meter/Meter.d.ts +15 -16
  24. package/dist/Meter/index.d.ts +2 -2
  25. package/dist/Meter/index.js +1 -1
  26. package/dist/OrgLabel/OrgLabel.d.ts +6 -0
  27. package/dist/OrgLabel/index.js +2 -2
  28. package/dist/{OrgLabel-WCI3OIFL.css → OrgLabel-4NDGABVY.css} +11 -6
  29. package/dist/OrgNode/index.js +3 -3
  30. package/dist/OrgTable/OrgTable.d.ts +6 -3
  31. package/dist/OrgTable/index.js +8 -8
  32. package/dist/{OrgTable-5NXRECVP.css → OrgTable-73WNQCH3.css} +5 -4
  33. package/dist/PeopleRail/index.js +1 -1
  34. package/dist/PresenceStack/index.js +1 -1
  35. package/dist/Principal/index.js +1 -1
  36. package/dist/PrincipalPicker/index.js +1 -1
  37. package/dist/ProposalCard/index.js +3 -3
  38. package/dist/RailList/index.js +2 -2
  39. package/dist/Reorder/ReorderHandle.d.ts +13 -0
  40. package/dist/Reorder/index.d.ts +3 -0
  41. package/dist/Reorder/index.js +9 -1
  42. package/dist/ReorderHandle-CT5OMUSR.css +9 -0
  43. package/dist/RichEditor/index.js +1 -1
  44. package/dist/Select/Select.d.ts +10 -0
  45. package/dist/Select/index.js +1 -1
  46. package/dist/{Select-2FAOIL73.css → Select-DRBDKBRO.css} +50 -1
  47. package/dist/SettingsTable/index.js +2 -2
  48. package/dist/ShareDialog/index.js +3 -3
  49. package/dist/SheetColumnEditor/index.js +2 -2
  50. package/dist/SheetGrid/index.js +1 -1
  51. package/dist/SlideFilmstrip/index.js +2 -2
  52. package/dist/StatCard/StatCard.d.ts +1 -0
  53. package/dist/StatCard/index.js +1 -1
  54. package/dist/TableCells/index.js +1 -1
  55. package/dist/ThreadSummary/index.js +2 -2
  56. package/dist/TimeWindowPicker/index.js +2 -2
  57. package/dist/TreeGrid/index.js +4 -4
  58. package/dist/{TreeGrid-XZCH5WCC.css → TreeGrid-QKEQXK26.css} +19 -2
  59. package/dist/UtilizationDiagram/UtilizationDiagram.d.ts +33 -0
  60. package/dist/UtilizationDiagram/index.d.ts +3 -0
  61. package/dist/UtilizationDiagram/index.js +6 -0
  62. package/dist/UtilizationDiagram-IYB6TTZY.css +59 -0
  63. package/dist/ValueField/index.js +2 -2
  64. package/dist/VersionTimeline/index.js +1 -1
  65. package/dist/WorkingLine/index.js +2 -2
  66. package/dist/{chunk-6SGMBLOE.js → chunk-3PBQNCPC.js} +1 -1
  67. package/dist/{chunk-JMBPMSNI.js → chunk-4FO6WWYW.js} +21 -1
  68. package/dist/chunk-5DABULI2.js +118 -0
  69. package/dist/{chunk-S3WUN7GH.js → chunk-A42UVBJQ.js} +2 -2
  70. package/dist/{chunk-NIM7LEEI.js → chunk-BZLQHZKH.js} +3 -2
  71. package/dist/{chunk-MB2C2GGW.js → chunk-CHBNLTVC.js} +1 -1
  72. package/dist/{chunk-ELYOAZCB.js → chunk-CPOTDACH.js} +1 -1
  73. package/dist/{chunk-26G3D2L6.js → chunk-E7GZKGDY.js} +1 -1
  74. package/dist/{chunk-5CCM3DDA.js → chunk-EHRNLV3D.js} +56 -7
  75. package/dist/{chunk-7LQRG3BP.js → chunk-EO4CV3P7.js} +1 -1
  76. package/dist/{chunk-DV7KWYC6.js → chunk-FTWZ2AQR.js} +1 -1
  77. package/dist/{chunk-UBXJBVYV.js → chunk-GQL2XQTS.js} +3 -3
  78. package/dist/{chunk-4ASS2GXQ.js → chunk-HJ63EXMY.js} +1 -1
  79. package/dist/{chunk-7U6JFHJY.js → chunk-IKGEOJEA.js} +12 -5
  80. package/dist/{chunk-MXOT2CWL.js → chunk-JEFGH3AQ.js} +17 -9
  81. package/dist/{chunk-KKEVX2PD.js → chunk-KITMVT74.js} +20 -12
  82. package/dist/{chunk-JH2IATUQ.js → chunk-KQWB2MDP.js} +1 -1
  83. package/dist/{chunk-D4ACFQCR.js → chunk-LG72TVII.js} +2 -2
  84. package/dist/{chunk-WDVENT6N.js → chunk-MD5KDF7W.js} +33 -12
  85. package/dist/{chunk-D5UVJL4I.js → chunk-QZNENGHA.js} +31 -16
  86. package/dist/{chunk-BYU7YSOM.js → chunk-S33O4PTO.js} +1 -1
  87. package/dist/{chunk-TCBV4K7V.js → chunk-T53EKFO2.js} +1 -1
  88. package/dist/{chunk-HNDQZWTX.js → chunk-V2ZUNC7X.js} +1 -1
  89. package/dist/{chunk-W3YTURNG.js → chunk-VGGEVVIT.js} +1 -1
  90. package/dist/{chunk-M34LSGMH.js → chunk-WU73BKXL.js} +17 -6
  91. package/dist/{chunk-T7Y5FM4B.js → chunk-X2CFDU5S.js} +7 -2
  92. package/dist/{chunk-UIA7FKDE.js → chunk-XG6PTSHE.js} +1 -1
  93. package/dist/{chunk-5MPQ657T.js → chunk-Z3FXGNT5.js} +1 -1
  94. package/dist/{chunk-O7KT5EIN.js → chunk-ZA2STYRY.js} +1 -1
  95. package/dist/{chunk-A4CTKERL.js → chunk-ZDHQ5ZDT.js} +1 -1
  96. package/dist/{chunk-7U3OHBGV.js → chunk-ZX6E6DSB.js} +1 -1
  97. package/dist/{chunk-KFX6FQKU.js → chunk-ZXX24HXF.js} +1 -1
  98. package/dist/generated/index.d.ts +1 -0
  99. package/dist/generated/index.js +57 -56
  100. package/dist/index.js +57 -56
  101. package/dist/styles.css +191 -27
  102. package/package.json +3 -3
  103. package/dist/{Editor-WFP2MM6M.js → Editor-NFC7HEWU.js} +1 -1
  104. /package/dist/{chunk-7ZBJ7YTF.js → chunk-LE7SVMCB.js} +0 -0
@@ -213,20 +213,21 @@
213
213
  * whatever it crosses.
214
214
  *
215
215
  * ITS HEADING TAKES THE SAME EDGE, so the word stands over the controls it names.
216
+ * A last column that asks for `align: 'left'` keeps its start edge.
216
217
  */
217
- .crewlet-org-table [role='gridcell']:last-child,
218
- .crewlet-org-table [role='columnheader']:last-child {
218
+ .crewlet-org-table [role='gridcell']:last-child:not([data-align='left']),
219
+ .crewlet-org-table [role='columnheader']:last-child:not([data-align='left']) {
219
220
  justify-content: safe flex-end;
220
221
  }
221
222
 
222
223
  /* AND A LAST HEAD THAT SORTS ENDS WITH ITS VALUES: its button fills the head,
223
224
  so the button takes the end, and its arrow goes before the word, as a
224
225
  right-aligned head's does, so the word stays on the column's edge. */
225
- .crewlet-org-table [role='columnheader']:last-child > .crewlet-data-grid__sort {
226
+ .crewlet-org-table [role='columnheader']:last-child:not([data-align='left']) > .crewlet-data-grid__sort {
226
227
  justify-content: safe flex-end;
227
228
  }
228
229
 
229
- .crewlet-org-table [role='columnheader']:last-child .crewlet-data-grid__sort-mark {
230
+ .crewlet-org-table [role='columnheader']:last-child:not([data-align='left']) .crewlet-data-grid__sort-mark {
230
231
  order: -1;
231
232
  }
232
233
 
@@ -2,7 +2,7 @@ export { PEOPLE_RAIL_LABELS, PeopleRail, peopleRailKey } from '../chunk-IIGKE3AY
2
2
  import '../chunk-CENOOTAV.js';
3
3
  import '../chunk-Z7JYG5TF.js';
4
4
  import '../chunk-AYKXMIOR.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -3,7 +3,7 @@ import '../chunk-CENOOTAV.js';
3
3
  import '../chunk-EFX2YC5T.js';
4
4
  import '../chunk-Z7JYG5TF.js';
5
5
  import '../chunk-AYKXMIOR.js';
6
- import '../chunk-T7Y5FM4B.js';
6
+ import '../chunk-X2CFDU5S.js';
7
7
  import '../chunk-EX5XAEST.js';
8
8
  import '../chunk-AJFA2XDQ.js';
9
9
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
1
  export { PRINCIPAL_KINDS, PrincipalAvatar } from '../chunk-265IX4YA.js';
2
- import '../chunk-T7Y5FM4B.js';
2
+ import '../chunk-X2CFDU5S.js';
3
3
  import '../chunk-EX5XAEST.js';
4
4
  import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-YMFFGPFE.js';
@@ -2,7 +2,7 @@ export { PrincipalPicker } from '../chunk-R3UFA2S5.js';
2
2
  import '../chunk-YXRC2NSO.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-265IX4YA.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -1,6 +1,6 @@
1
- export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-HNDQZWTX.js';
2
- import '../chunk-S3WUN7GH.js';
3
- import '../chunk-D5UVJL4I.js';
1
+ export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-V2ZUNC7X.js';
2
+ import '../chunk-A42UVBJQ.js';
3
+ import '../chunk-QZNENGHA.js';
4
4
  import '../chunk-LCJC3LTP.js';
5
5
  import '../chunk-YXRC2NSO.js';
6
6
  import '../chunk-KW7T23RT.js';
@@ -1,7 +1,7 @@
1
- export { RAIL_LIST_LABELS, RailList } from '../chunk-KFX6FQKU.js';
1
+ export { RAIL_LIST_LABELS, RailList } from '../chunk-ZXX24HXF.js';
2
2
  import '../chunk-D6UBQK3C.js';
3
3
  import '../chunk-6KWNXIDE.js';
4
- import '../chunk-D5UVJL4I.js';
4
+ import '../chunk-QZNENGHA.js';
5
5
  import '../chunk-TODOBUXO.js';
6
6
  import '../chunk-KW7T23RT.js';
7
7
  import '../chunk-HBDA76EZ.js';
@@ -0,0 +1,13 @@
1
+ import type { ReorderHandleProps as HandleBinding } from './useReorder.js';
2
+ export interface ReorderHandleComponentProps extends HandleBinding {
3
+ /**
4
+ * Out of the tab order, for a row whose own keys move it (a grid row with Alt and
5
+ * an arrow): the handle is then the pointer's only.
6
+ */
7
+ pointerOnly?: boolean | undefined;
8
+ /** Held in place: drawn, not draggable. */
9
+ disabled?: boolean | undefined;
10
+ className?: string | undefined;
11
+ }
12
+ /** The grip a `useReorder` or `useReorderLists` item is dragged by: spread `handleProps(key)` on it. */
13
+ export declare function ReorderHandle({ pointerOnly, disabled, className, ...binding }: ReorderHandleComponentProps): import("react").JSX.Element;
@@ -1,2 +1,5 @@
1
+ import './ReorderHandle.css';
1
2
  export { useReorder, useReorderLists, moveKey, DEFAULT_REORDER_LABELS } from './useReorder.js';
3
+ export { ReorderHandle } from './ReorderHandle.js';
4
+ export type { ReorderHandleComponentProps } from './ReorderHandle.js';
2
5
  export type { Reorder, ReorderAxis, ReorderContainerProps, ReorderHandleProps, ReorderItemProps, ReorderLabels, ReorderLists, ReorderListsState, UseReorderListsOptions, UseReorderOptions, } from './useReorder.js';
@@ -1,6 +1,14 @@
1
- export { DEFAULT_REORDER_LABELS, moveKey, useReorder, useReorderLists } from '../chunk-JMBPMSNI.js';
1
+ export { DEFAULT_REORDER_LABELS, ReorderHandle, moveKey, useReorder, useReorderLists } from '../chunk-4FO6WWYW.js';
2
2
  import '../chunk-SK4BIFTG.js';
3
3
  import '../chunk-COS6LJ4K.js';
4
4
  import '../chunk-WGMKERCR.js';
5
+ import '../chunk-CMEZGORB.js';
6
+ import '../chunk-TDFLCUBE.js';
7
+ import '../chunk-KOBTCG2T.js';
8
+ import '../chunk-HTS5RJ7S.js';
9
+ import '../chunk-L72URIHR.js';
10
+ import '../chunk-AVJKMQXK.js';
11
+ import '../chunk-EDPMHSLZ.js';
12
+ import '../chunk-4ITETIGZ.js';
5
13
  import '../chunk-RRRK2KB6.js';
6
14
  import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,9 @@
1
+ /* The grip an item is dragged by (ReorderHandle.tsx). */
2
+ .crewlet-reorder-handle {
3
+ cursor: grab;
4
+ color: var(--color-text-tertiary);
5
+ }
6
+
7
+ .crewlet-reorder-handle:active {
8
+ cursor: grabbing;
9
+ }
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-A4CTKERL.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-ZDHQ5ZDT.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-DGXHQMNP.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KMTOGF6T.js';
@@ -146,6 +146,16 @@ export interface SelectProps extends NativePassthrough {
146
146
  * A quiet filter that is on takes the accent's soft fill and ink.
147
147
  */
148
148
  appearance?: SelectAppearance;
149
+ /**
150
+ * `flush` pulls the trigger back by its own padding and border, so its text
151
+ * starts on the column's x, as a quiet picker in a table cell wants.
152
+ */
153
+ inset?: 'default' | 'flush' | undefined;
154
+ /**
155
+ * `fit` sets every option's `hint` in one column at the row's end, as wide as
156
+ * the widest, so a status dot in each starts at one x. Listbox mode only.
157
+ */
158
+ hintColumn?: 'inline' | 'fit' | undefined;
149
159
  ariaLabel?: string;
150
160
  searchable?: boolean;
151
161
  searchPlaceholder?: string;
@@ -1,4 +1,4 @@
1
- export { Select } from '../chunk-D5UVJL4I.js';
1
+ export { Select } from '../chunk-QZNENGHA.js';
2
2
  import '../chunk-KW7T23RT.js';
3
3
  import '../chunk-2YTOOH3A.js';
4
4
  import '../chunk-JLKO7PSK.js';
@@ -164,6 +164,16 @@
164
164
  cursor: not-allowed;
165
165
  }
166
166
 
167
+ /* FLUSH: pulled back by its own leading padding and border, so its text starts on the column's x. */
168
+ .crewlet-select--flush {
169
+ --crewlet-select-flush: calc(var(--spacing-3) + 1px);
170
+ margin-inline-start: calc(-1 * var(--crewlet-select-flush));
171
+ }
172
+
173
+ .crewlet-select--flush.crewlet-select--sm {
174
+ --crewlet-select-flush: calc(var(--spacing-2) + 1px);
175
+ }
176
+
167
177
  /* ── The trigger, native and built ───────────────────────────────────── */
168
178
 
169
179
  /*
@@ -469,7 +479,9 @@ svg.crewlet-select__chevron {
469
479
  /* A hint ends the row's FIRST line, on the label's baseline, rather than
470
480
  sitting on the row's top edge at its own smaller size. */
471
481
  .crewlet-select__option:has(> .crewlet-listbox__hint) .crewlet-select__option-body,
472
- .crewlet-select__option > .crewlet-listbox__hint {
482
+ .crewlet-select__option > .crewlet-listbox__hint,
483
+ .crewlet-select__option-main:has(> .crewlet-listbox__hint) > .crewlet-select__option-body,
484
+ .crewlet-select__option-main > .crewlet-listbox__hint {
473
485
  align-self: baseline;
474
486
  }
475
487
 
@@ -573,3 +585,40 @@ svg.crewlet-select__chevron {
573
585
  transition: none;
574
586
  }
575
587
  }
588
+
589
+ /* A FITTED HINT COLUMN: every row on two shared tracks, so each hint starts at one x.
590
+ One weight in every row, so the chosen row's hint is no wider. */
591
+ .crewlet-select__list.crewlet-select__list--fit {
592
+ display: grid;
593
+ grid-template-columns: minmax(0, 1fr) auto;
594
+ align-content: start;
595
+ column-gap: var(--spacing-3);
596
+ }
597
+
598
+ .crewlet-select__list--fit > .crewlet-select__option,
599
+ .crewlet-select__list--fit > .crewlet-select__group,
600
+ .crewlet-select__list--fit > .crewlet-select__group > .crewlet-select__option {
601
+ display: grid;
602
+ grid-template-columns: subgrid;
603
+ grid-column: 1 / -1;
604
+ }
605
+
606
+ .crewlet-select__list--fit > .crewlet-select__group > .crewlet-listbox__heading {
607
+ grid-column: 1 / -1;
608
+ }
609
+
610
+ .crewlet-select__option-main {
611
+ display: flex;
612
+ align-items: flex-start;
613
+ gap: var(--spacing-2);
614
+ min-width: 0;
615
+ }
616
+
617
+ .crewlet-select__menu .crewlet-select__option-hint {
618
+ display: inline-flex;
619
+ align-items: center;
620
+ justify-self: start;
621
+ margin-left: 0;
622
+ min-height: calc(var(--font-line-height-normal) * 1em);
623
+ font-weight: var(--font-weight-regular);
624
+ }
@@ -1,5 +1,5 @@
1
- export { SETTINGS_TABLE_ROW_LABELS, SettingsTable, SettingsTableRow } from '../chunk-D4ACFQCR.js';
2
- import '../chunk-M34LSGMH.js';
1
+ export { SETTINGS_TABLE_ROW_LABELS, SettingsTable, SettingsTableRow } from '../chunk-LG72TVII.js';
2
+ import '../chunk-WU73BKXL.js';
3
3
  import '../chunk-5WJKJGL4.js';
4
4
  import '../chunk-STJ7QBC3.js';
5
5
  import '../chunk-DTIW4CHZ.js';
@@ -1,8 +1,8 @@
1
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-6SGMBLOE.js';
2
- import '../chunk-D5UVJL4I.js';
1
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-3PBQNCPC.js';
2
+ import '../chunk-QZNENGHA.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-265IX4YA.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -1,6 +1,6 @@
1
- export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-7LQRG3BP.js';
1
+ export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-EO4CV3P7.js';
2
2
  import '../chunk-FFMCMSJB.js';
3
- import '../chunk-D5UVJL4I.js';
3
+ import '../chunk-QZNENGHA.js';
4
4
  import '../chunk-KW7T23RT.js';
5
5
  import '../chunk-LFSIKGRQ.js';
6
6
  import '../chunk-Z7JYG5TF.js';
@@ -8,7 +8,7 @@ import '../chunk-LFSIKGRQ.js';
8
8
  import '../chunk-Z7JYG5TF.js';
9
9
  import '../chunk-AYKXMIOR.js';
10
10
  import '../chunk-4IB7HVDN.js';
11
- import '../chunk-T7Y5FM4B.js';
11
+ import '../chunk-X2CFDU5S.js';
12
12
  import '../chunk-EX5XAEST.js';
13
13
  import '../chunk-AJFA2XDQ.js';
14
14
  import '../chunk-YMFFGPFE.js';
@@ -1,7 +1,7 @@
1
- export { SlideFilmstrip } from '../chunk-7U3OHBGV.js';
1
+ export { SlideFilmstrip } from '../chunk-ZX6E6DSB.js';
2
2
  import '../chunk-7O53SWKI.js';
3
3
  import '../chunk-4IB7HVDN.js';
4
- import '../chunk-JMBPMSNI.js';
4
+ import '../chunk-4FO6WWYW.js';
5
5
  import '../chunk-VBBLHS2Y.js';
6
6
  import '../chunk-SK4BIFTG.js';
7
7
  import '../chunk-COS6LJ4K.js';
@@ -85,6 +85,7 @@ export interface StatCardProps extends HTMLAttributes<HTMLDivElement> {
85
85
  /**
86
86
  * How many lines the second line keeps room for, loading or not, so a row
87
87
  * whose notes wrap differently, or have not arrived, stands at one height.
88
+ * `0` draws no second line at all, for a row of tiles that say a label and a value only.
88
89
  */
89
90
  subLines?: number | undefined;
90
91
  /** What a reader is told while it is loading. */
@@ -1,3 +1,3 @@
1
- export { StatCard } from '../chunk-4ASS2GXQ.js';
1
+ export { StatCard } from '../chunk-HJ63EXMY.js';
2
2
  import '../chunk-RRRK2KB6.js';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -2,7 +2,7 @@ export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, T
2
2
  import '../chunk-MGJAOLZC.js';
3
3
  import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
- export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-DV7KWYC6.js';
2
- import '../chunk-T7Y5FM4B.js';
1
+ export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-FTWZ2AQR.js';
2
+ import '../chunk-X2CFDU5S.js';
3
3
  import '../chunk-EX5XAEST.js';
4
4
  import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
- export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-MB2C2GGW.js';
2
- import '../chunk-D5UVJL4I.js';
1
+ export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-CHBNLTVC.js';
2
+ import '../chunk-QZNENGHA.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-EE3DJMSQ.js';
5
5
  import '../chunk-AJFA2XDQ.js';
@@ -1,10 +1,10 @@
1
- export { TreeGrid } from '../chunk-WDVENT6N.js';
1
+ export { TreeGrid } from '../chunk-MD5KDF7W.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-UBXJBVYV.js';
4
- import '../chunk-M34LSGMH.js';
3
+ import '../chunk-GQL2XQTS.js';
4
+ import '../chunk-WU73BKXL.js';
5
5
  import '../chunk-CUEPPDBC.js';
6
6
  import '../chunk-WFAJYBLX.js';
7
- import '../chunk-JMBPMSNI.js';
7
+ import '../chunk-4FO6WWYW.js';
8
8
  import '../chunk-HG7J6I65.js';
9
9
  import '../chunk-SK4BIFTG.js';
10
10
  import '../chunk-COS6LJ4K.js';
@@ -56,6 +56,11 @@
56
56
  border-radius: var(--radius-md);
57
57
  }
58
58
 
59
+ /* A face stack in a row is cut out of the row's own ground (AvatarStack.css). */
60
+ .crewlet-tree-grid {
61
+ --crewlet-avatar-stack-ground: var(--color-surface-subtle);
62
+ }
63
+
59
64
  .crewlet-tree-grid__grid {
60
65
  display: grid;
61
66
  grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
@@ -134,6 +139,7 @@
134
139
  }
135
140
 
136
141
  .crewlet-tree-grid__body > .crewlet-tree-grid__row:hover {
142
+ --crewlet-avatar-stack-tint: var(--color-surface-hover);
137
143
  background: var(--color-surface-hover);
138
144
  }
139
145
 
@@ -295,6 +301,13 @@
295
301
  outline-offset: var(--size-focus-ring-inset-offset);
296
302
  }
297
303
 
304
+ /* AFTER A POINTER PRESS, NO RING: the keyboard's ring returns with its next key.
305
+ Transparent rather than none, so forced-colors mode still draws one. */
306
+ .crewlet-tree-grid[data-pointer] .crewlet-tree-grid__row:focus-visible,
307
+ .crewlet-tree-grid[data-pointer] .crewlet-tree-grid__cell:focus-visible {
308
+ outline: 2px solid transparent;
309
+ }
310
+
298
311
  /*
299
312
  * A HEADLESS GRID keeps its header row for a screen reader and draws no band:
300
313
  * the row is taken out of the layout the way VisuallyHidden takes text out.
@@ -399,8 +412,12 @@
399
412
  justify-content: flex-start;
400
413
  }
401
414
 
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. */
415
+ /* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES in a compact card (below); a
416
+ labelled card starts it at the grid's edge, so its labels are one column. */
417
+ .crewlet-tree-grid[data-stacked]:not([data-phone-rows='compact']) .crewlet-tree-grid__cell {
418
+ --crewlet-tree-grid-value-indent: var(--crewlet-tree-grid-edge);
419
+ }
420
+
404
421
  .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:not(:first-child) {
405
422
  padding-block: 1px;
406
423
  padding-inline: var(
@@ -0,0 +1,33 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export type UtilizationMode = 'balanced' | 'sequential';
3
+ export interface UtilizationDiagramProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
4
+ /** `sequential` fills lane 1, then 2, then 3; `balanced` fills them together to one level. */
5
+ mode: UtilizationMode;
6
+ /** How many lanes, 2 to 5; 3 by default. */
7
+ lanes?: number | undefined;
8
+ /** Names the picture for assistive technology; without it the diagram is decoration. */
9
+ label?: string | undefined;
10
+ }
11
+ /** The phases of one loop, in milliseconds. */
12
+ export declare const UTILIZATION_TIMING: {
13
+ readonly fill: 1200;
14
+ readonly balancedFill: 2400;
15
+ readonly hold: 1500;
16
+ readonly fade: 400;
17
+ };
18
+ /** Where a balanced loop rests: every lane level, below the warning line. */
19
+ export declare const BALANCED_LEVEL = 0.6;
20
+ /** One loop's length for a mode and a lane count. */
21
+ export declare function utilizationCycle(mode: UtilizationMode, lanes: number): number;
22
+ /** Each lane's level (0 to 1) and opacity at `ms` into the loop. */
23
+ export declare function utilizationFrame(mode: UtilizationMode, lanes: number, ms: number): {
24
+ level: number;
25
+ opacity: number;
26
+ }[];
27
+ /** The still frame under reduced motion: lane 1 at its limit and lane 2 part way, or every lane level. */
28
+ export declare function utilizationStill(mode: UtilizationMode, lanes: number): number[];
29
+ /**
30
+ * A utilization strategy as lanes of usage bars that loop while seen, each in its level's
31
+ * usage tone. Paused off screen or in a hidden tab; a still frame under reduced motion.
32
+ */
33
+ export declare function UtilizationDiagram({ mode, lanes, label, className, ...rest }: UtilizationDiagramProps): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './UtilizationDiagram.css';
2
+ export { UtilizationDiagram } from './UtilizationDiagram.js';
3
+ export type { UtilizationDiagramProps, UtilizationMode } from './UtilizationDiagram.js';
@@ -0,0 +1,6 @@
1
+ export { UtilizationDiagram } from '../chunk-5DABULI2.js';
2
+ import '../chunk-JEFGH3AQ.js';
3
+ import '../chunk-SK4BIFTG.js';
4
+ import '../chunk-COS6LJ4K.js';
5
+ import '../chunk-RRRK2KB6.js';
6
+ import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,59 @@
1
+ /* A utilization strategy as looping usage bars (UtilizationDiagram.tsx). */
2
+ .crewlet-utilization-diagram {
3
+ display: inline-flex;
4
+ flex-direction: column;
5
+ justify-content: center;
6
+ gap: var(--spacing-2);
7
+ box-sizing: border-box;
8
+ inline-size: var(--crewlet-utilization-diagram-width, 6.75rem);
9
+ padding: var(--spacing-2) var(--spacing-3);
10
+ border-radius: var(--radius-md);
11
+ background: var(--color-surface-subtle);
12
+ }
13
+
14
+ .crewlet-utilization-diagram__lane {
15
+ display: flex;
16
+ align-items: center;
17
+ gap: var(--spacing-1);
18
+ }
19
+
20
+ .crewlet-utilization-diagram__n {
21
+ min-inline-size: 1ch;
22
+ font-size: var(--font-size-2xs);
23
+ font-weight: var(--font-weight-semibold);
24
+ font-variant-numeric: tabular-nums;
25
+ line-height: 1;
26
+ color: var(--color-text-tertiary);
27
+ }
28
+
29
+ .crewlet-utilization-diagram__track {
30
+ position: relative;
31
+ flex: 1;
32
+ block-size: 6px;
33
+ border-radius: var(--radius-pill);
34
+ background: var(--color-border-default);
35
+ overflow: hidden;
36
+ }
37
+
38
+ .crewlet-utilization-diagram__fill {
39
+ position: absolute;
40
+ inset: 0;
41
+ border-radius: var(--radius-pill);
42
+ transform: scaleX(0);
43
+ transform-origin: left center;
44
+ background: var(--color-feedback-success);
45
+ }
46
+
47
+ .crewlet-utilization-diagram__fill[data-tone='warning'] {
48
+ background: var(--color-feedback-warning);
49
+ }
50
+
51
+ .crewlet-utilization-diagram__fill[data-tone='danger'] {
52
+ background: var(--color-feedback-danger);
53
+ }
54
+
55
+ @media (forced-colors: active) {
56
+ .crewlet-utilization-diagram__fill {
57
+ background: CanvasText;
58
+ }
59
+ }
@@ -1,5 +1,5 @@
1
- export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-S3WUN7GH.js';
2
- import '../chunk-D5UVJL4I.js';
1
+ export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-A42UVBJQ.js';
2
+ import '../chunk-QZNENGHA.js';
3
3
  import '../chunk-YXRC2NSO.js';
4
4
  import '../chunk-KW7T23RT.js';
5
5
  import '../chunk-2YTOOH3A.js';
@@ -2,7 +2,7 @@ export { VersionTimeline } from '../chunk-KCV47P7J.js';
2
2
  import '../chunk-265IX4YA.js';
3
3
  import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
- export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-BYU7YSOM.js';
2
- import '../chunk-T7Y5FM4B.js';
1
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-S33O4PTO.js';
2
+ import '../chunk-X2CFDU5S.js';
3
3
  import '../chunk-EX5XAEST.js';
4
4
  import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-YMFFGPFE.js';
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
3
3
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
4
4
  import { CopyButton } from './chunk-5WJKJGL4.js';
@@ -1,6 +1,11 @@
1
1
  import { prefersReducedMotion } from './chunk-COS6LJ4K.js';
2
2
  import { announce } from './chunk-WGMKERCR.js';
3
+ import { IconButton } from './chunk-CMEZGORB.js';
4
+ import { cx } from './chunk-ODEQTPFM.js';
5
+ import './ReorderHandle-CT5OMUSR.css';
3
6
  import { useId, useState, useRef, useCallback, useLayoutEffect, useMemo } from 'react';
7
+ import { GripVerticalGlyph } from '@crewlethq/icons/glyphs';
8
+ import { jsx } from 'react/jsx-runtime';
4
9
 
5
10
  var DEFAULT_REORDER_LABELS = {
6
11
  handle: (name) => `Move ${name}`,
@@ -274,5 +279,20 @@ function useReorder({
274
279
  hint: r.hint
275
280
  };
276
281
  }
282
+ function ReorderHandle({ pointerOnly = false, disabled = false, className, ...binding }) {
283
+ const { "aria-label": label, ...handle } = binding;
284
+ return /* @__PURE__ */ jsx(
285
+ IconButton,
286
+ {
287
+ size: "sm",
288
+ variant: "ghost",
289
+ className: cx("crewlet-reorder-handle", className),
290
+ label,
291
+ icon: /* @__PURE__ */ jsx(GripVerticalGlyph, { size: "sm" }),
292
+ ...pointerOnly ? { tabIndex: -1 } : {},
293
+ ...disabled ? { disabled: true } : handle
294
+ }
295
+ );
296
+ }
277
297
 
278
- export { DEFAULT_REORDER_LABELS, moveKey, useReorder, useReorderLists };
298
+ export { DEFAULT_REORDER_LABELS, ReorderHandle, moveKey, useReorder, useReorderLists };