@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
package/README.md CHANGED
@@ -252,6 +252,18 @@ Stories: Patterns / Confirmation dialogs (remove a model, remove an MCP server,
252
252
  disconnect an integration, move a seat's model, review and save, long names,
253
253
  many rows), `ConsequenceList`, `ChangeGroups` and `AssignmentList`.
254
254
 
255
+ ## Changes in 0.188.0
256
+
257
+ ### Usage bars are green, yellow and red by one threshold, and a strategy loops as usage bars
258
+
259
+ **Every usage bar now takes one rule**: green below 80% of the limit (the engine's warning line, `USAGE_WARN_AT`), yellow from 80%, red at the limit. `Meter`'s spent ramp paints an ordinary reading green and turns at 0.8 (it turned at 0.75 in the data series' blue); `LimitMeters` paints an ordinary window green (it was grey), and a known `used` past 80% or the limit escalates a quieter state. `okTone` keeps the old look where a bar is not a usage (`quantity` on `Meter`, `neutral` on `LimitMeters`), and `usageTone(used)` gives the tone to any other drawing. **`UtilizationDiagram`** draws a utilization strategy as looping lanes: `sequential` numbers them and fills lane 1, then 2, then 3, holds 1.5 s and starts again; `balanced` fills them together to one level; each lane takes its level's usage tone, the loop pauses off screen or in a hidden tab, and reduced motion draws a still frame. **`ReorderHandle`** is the grip a `useReorder` item is dragged by (`pointerOnly` for a row whose keys move it), and **`StatCard subLines={0}`** draws no second line. Stories: Usage and strategy (Usage Thresholds, Utilization, Tiles Without A Note, Handle).
260
+
261
+ ## Changes in 0.187.0
262
+
263
+ ### Rows of groups and members: faces, adds, strips and pickers that fit a table
264
+
265
+ **`AvatarStack` is cut out of the row it stands in.** Its ring and plates read two inherited properties, `--crewlet-avatar-stack-ground` (the opaque surface) and `--crewlet-avatar-stack-tint` (a row's wash over it); `TreeGrid` and `DataGrid` set both on hovered, selected and picked rows, so the ring reads as a gap on every row state and the faces stay opaque. `ground` sets the ground on one stack. **`AddPill` and `OrgTableAdd` take `onAdd`** for one thing to add (a press runs it, the mark never splits) and **`face={false}`** to keep the mark's face under the pointer; **`AddCircleGlyph`** is the control's circled plus. **`Select` takes `hintColumn="fit"`** (every hint in one column at the row's end, as wide as the widest, so status dots line up) and **`inset="flush"`** (a quiet picker's text on its column's x). **`OrgLabel` and `OrgTableName` take `iconTone="own"`** for a mark in its own colours. **`OrgTableActions` takes `slots`**, the controls its strip keeps room for. An org table's last column keeps `align: 'left'`; a tree grid row shows no focus ring after a pointer press, the next key brings it back; a labelled phone card starts its values at the grid's edge. Stories: Avatar Stack In A Table Row, AddPill One Thing To Add and Add Circle, Select Hint Column Fit, OrgLabel Own Colours, OrgTable Rows.
266
+
255
267
  ## Changes in 0.186.1
256
268
 
257
269
  ### The shared clock answers one instant within a render
@@ -1,6 +1,6 @@
1
- export { ActivityLine } from '../chunk-TCBV4K7V.js';
2
- import '../chunk-BYU7YSOM.js';
3
- import '../chunk-T7Y5FM4B.js';
1
+ export { ActivityLine } from '../chunk-T53EKFO2.js';
2
+ import '../chunk-S33O4PTO.js';
3
+ import '../chunk-X2CFDU5S.js';
4
4
  import '../chunk-EX5XAEST.js';
5
5
  import '../chunk-AJFA2XDQ.js';
6
6
  import '../chunk-YMFFGPFE.js';
@@ -45,7 +45,8 @@
45
45
  * this in a pointer-only strip owes its keyboard reader the same choices
46
46
  * somewhere reachable, in the node's own menu. Both are the same list.
47
47
  */
48
- import { type ReactNode } from 'react';
48
+ import { type ReactNode, type SVGProps } from 'react';
49
+ import { type GlyphSize } from '@crewlethq/icons/glyphs';
49
50
  /**
50
51
  * How long the pill takes to open or to close, in milliseconds.
51
52
  *
@@ -73,19 +74,19 @@ export interface AddPillSection {
73
74
  */
74
75
  disabledReason?: string | undefined;
75
76
  }
76
- export interface AddPillProps {
77
+ export interface AddCircleGlyphProps extends Omit<SVGProps<SVGSVGElement>, 'children' | 'viewBox'> {
78
+ /** A glyph step, px or any CSS length; `1em` by default. */
79
+ size?: GlyphSize | undefined;
80
+ }
81
+ /** The add control's own mark, a plus inside a ring, for any control that adds in its place. Decorative. */
82
+ export declare function AddCircleGlyph({ size, className, ...rest }: AddCircleGlyphProps): import("react").JSX.Element;
83
+ interface AddPillBaseProps {
77
84
  /**
78
85
  * The resting mark's accessible name, which is what the pill belongs to:
79
86
  * "Add to Engineering". Nine controls on one chart all called "Add" are nine
80
87
  * controls a reader tells apart by looking at where they are.
81
88
  */
82
89
  label: string;
83
- /**
84
- * The choices, in the order they are drawn across the pill. Two to four: the
85
- * pill is as wide as a pointer target per section, and past four it is wider
86
- * than the node it hangs under.
87
- */
88
- sections: readonly AddPillSection[];
89
90
  /**
90
91
  * How big the control is.
91
92
  *
@@ -107,10 +108,26 @@ export interface AddPillProps {
107
108
  * draws are not covered by a pill over them.
108
109
  */
109
110
  layout?: 'split' | 'inline' | undefined;
111
+ /** `false` keeps the mark's face under the pointer: hover lifts its ink, a press opens the choices. */
112
+ face?: boolean | undefined;
110
113
  /** Focus stays out of the pill, for a chart that puts it in a pointer-only strip. */
111
114
  tabIndex?: number | undefined;
112
115
  /** Called when a press opens the pill, for a grid whose one tab stop follows focus. */
113
116
  onOpen?: (() => void) | undefined;
114
117
  className?: string | undefined;
115
118
  }
116
- export declare function AddPill({ label, sections, size, layout, tabIndex, onOpen, className, }: AddPillProps): import("react").JSX.Element;
119
+ export type AddPillProps = AddPillBaseProps & ({
120
+ /**
121
+ * The choices, in the order they are drawn across the pill. Two to four: the
122
+ * pill is as wide as a pointer target per section, and past four it is wider
123
+ * than the node it hangs under.
124
+ */
125
+ sections: readonly AddPillSection[];
126
+ onAdd?: undefined;
127
+ } | {
128
+ /** One thing to add: a press runs it, and the mark never splits on hover. */
129
+ onAdd: () => void;
130
+ sections?: undefined;
131
+ });
132
+ export declare function AddPill(props: AddPillProps): import("react").JSX.Element;
133
+ export {};
@@ -1,3 +1,3 @@
1
1
  import './AddPill.css';
2
- export { AddPill, ADD_PILL_MS } from './AddPill.js';
3
- export type { AddPillProps, AddPillSection } from './AddPill.js';
2
+ export { AddCircleGlyph, AddPill, ADD_PILL_MS } from './AddPill.js';
3
+ export type { AddCircleGlyphProps, AddPillProps, AddPillSection } from './AddPill.js';
@@ -1,3 +1,3 @@
1
- export { ADD_PILL_MS, AddPill } from '../chunk-5CCM3DDA.js';
1
+ export { ADD_PILL_MS, AddCircleGlyph, AddPill } from '../chunk-EHRNLV3D.js';
2
2
  import '../chunk-RRRK2KB6.js';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -1,6 +1,6 @@
1
- export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-26G3D2L6.js';
1
+ export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-E7GZKGDY.js';
2
2
  import '../chunk-6YYRFGXO.js';
3
- import '../chunk-JMBPMSNI.js';
3
+ import '../chunk-4FO6WWYW.js';
4
4
  import '../chunk-SK4BIFTG.js';
5
5
  import '../chunk-COS6LJ4K.js';
6
6
  import '../chunk-ED24QJYL.js';
@@ -1,4 +1,4 @@
1
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-ELYOAZCB.js';
1
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-CPOTDACH.js';
2
2
  import '../chunk-265IX4YA.js';
3
3
  import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
@@ -8,7 +8,7 @@ import '../chunk-AV2DXAEL.js';
8
8
  import '../chunk-W3A6NBUM.js';
9
9
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
10
10
  import '../chunk-DOY3KC6I.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';
@@ -58,6 +58,11 @@ export interface AvatarStackProps extends Omit<HTMLAttributes<HTMLSpanElement>,
58
58
  * three names would say them twice.
59
59
  */
60
60
  decorative?: boolean | undefined;
61
+ /**
62
+ * The opaque colour the stack stands on, for its cut-out and its plates. Without
63
+ * it the stack inherits `--crewlet-avatar-stack-ground` (tables set it), else the sheet.
64
+ */
65
+ ground?: string | undefined;
61
66
  }
62
67
  /**
63
68
  * What a stack says to somebody who cannot see it: how many of each kind, and
@@ -73,13 +78,13 @@ export declare function avatarStackLabel(members: readonly AvatarStackMember[]):
73
78
  *
74
79
  * EACH BADGE OVERLAPS THE ONE BEFORE IT BY 6PX and is cut out of it by a 2px
75
80
  * ring in the colour of the ground the stack stands on, which is the design's
76
- * own stack. The ground is `--crewlet-avatar-stack-ground`, the sheet by
77
- * default, which is where the design draws every stack; a stack standing on a
78
- * card or on any other surface sets it on the stack. Past `max` the rest are
81
+ * own stack. The ground is `--crewlet-avatar-stack-ground` (inherited, the sheet
82
+ * by default) with `--crewlet-avatar-stack-tint` laid over it; a table row sets
83
+ * both, and `ground` sets the first on the stack itself. Past `max` the rest are
79
84
  * counted in a chip, which is a PILL rather than either kind's outline: it is
80
85
  * a number, not somebody.
81
86
  *
82
87
  * ONE IMAGE TO A SCREEN READER, named by `avatarStackLabel`, so a row reads
83
88
  * "3 agents: SWE, CTO, PM" once rather than three badge names and a "+2".
84
89
  */
85
- export declare function AvatarStack({ members, max, size, spread, label, decorative, className, style, ...rest }: AvatarStackProps): import("react").JSX.Element | null;
90
+ export declare function AvatarStack({ members, max, size, spread, label, decorative, ground, className, style, ...rest }: AvatarStackProps): import("react").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- export { AvatarStack, avatarStackLabel } from '../chunk-T7Y5FM4B.js';
1
+ export { AvatarStack, avatarStackLabel } from '../chunk-X2CFDU5S.js';
2
2
  import '../chunk-EX5XAEST.js';
3
3
  import '../chunk-AJFA2XDQ.js';
4
4
  export { AVATAR_CHARACTER_FULL_DETAIL, AVATAR_CORNER_RANGE, AVATAR_CORNER_RATIO, AVATAR_SIZES, AVATAR_STATUSES, AVATAR_STATUS_LABELS, AVATAR_VERDICTS, AVATAR_VERDICT_LABELS, Avatar, avatarCorner, avatarInitialsName, avatarPixels, avatarTint, getInitials } from '../chunk-YMFFGPFE.js';
@@ -17,12 +17,14 @@
17
17
  * the sheet, with the design's own cut-out drawn in the sheet's colour. A stack
18
18
  * that stands on a card, or on anything else, sets it on the stack itself.
19
19
  *
20
+ * INHERITED: `--crewlet-avatar-stack-ground`, the opaque surface (the sheet when unset), and
21
+ * `--crewlet-avatar-stack-tint`, a row's wash laid over it (none when unset). Tables set both.
22
+ *
20
23
  * Every rule is two classes deep, so it outweighs the badge's own one-class
21
24
  * rules whichever order the stylesheets are bundled in.
22
25
  */
23
26
 
24
27
  .crewlet-avatar-stack {
25
- --crewlet-avatar-stack-ground: var(--color-surface-background);
26
28
  /* The badges' box, which the component sets from the step it was given; the
27
29
  default is the default step's, sm. The chip reads it, so it stands exactly
28
30
  as tall as the badges beside it. */
@@ -34,7 +36,9 @@
34
36
  }
35
37
 
36
38
  .crewlet-avatar-stack > .crewlet-avatar-stack__member {
37
- box-shadow: 0 0 0 2px var(--crewlet-avatar-stack-ground);
39
+ box-shadow:
40
+ 0 0 0 2px var(--crewlet-avatar-stack-tint, transparent),
41
+ 0 0 0 2px var(--crewlet-avatar-stack-ground, var(--color-surface-background));
38
42
  }
39
43
 
40
44
  /*
@@ -78,7 +82,11 @@
78
82
  .crewlet-avatar-stack > .crewlet-avatar-stack__member > .crewlet-avatar {
79
83
  background-image:
80
84
  linear-gradient(var(--crewlet-avatar-plate), var(--crewlet-avatar-plate)),
81
- linear-gradient(var(--crewlet-avatar-stack-ground), var(--crewlet-avatar-stack-ground));
85
+ linear-gradient(var(--crewlet-avatar-stack-tint, transparent), var(--crewlet-avatar-stack-tint, transparent)),
86
+ linear-gradient(
87
+ var(--crewlet-avatar-stack-ground, var(--color-surface-background)),
88
+ var(--crewlet-avatar-stack-ground, var(--color-surface-background))
89
+ );
82
90
  }
83
91
 
84
92
  /* The design's 6px, a little under a third of its 22px badge: enough that the
@@ -3,7 +3,7 @@ import '../chunk-265IX4YA.js';
3
3
  import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
5
5
  import '../chunk-I4PBFJGX.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,7 +1,7 @@
1
- export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-UBXJBVYV.js';
2
- export { nextGridSort, parseGridSort } from '../chunk-M34LSGMH.js';
1
+ export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-GQL2XQTS.js';
2
+ export { nextGridSort, parseGridSort } from '../chunk-WU73BKXL.js';
3
3
  import '../chunk-WFAJYBLX.js';
4
- import '../chunk-JMBPMSNI.js';
4
+ import '../chunk-4FO6WWYW.js';
5
5
  import '../chunk-HG7J6I65.js';
6
6
  import '../chunk-SK4BIFTG.js';
7
7
  import '../chunk-COS6LJ4K.js';
@@ -33,6 +33,8 @@
33
33
  border-radius: var(--radius-md);
34
34
  overflow: clip;
35
35
  background: var(--color-surface-subtle);
36
+ /* A face stack in a row is cut out of the row's own ground (AvatarStack.css). */
37
+ --crewlet-avatar-stack-ground: var(--color-surface-subtle);
36
38
  }
37
39
 
38
40
  /*
@@ -355,11 +357,13 @@ button.crewlet-data-grid__row-link {
355
357
  /* Under the pointer, or pointed at from another surface showing the same records: one overlay, the same. */
356
358
  .crewlet-data-grid__row:hover,
357
359
  .crewlet-data-grid__row--pointed {
360
+ --crewlet-avatar-stack-tint: var(--color-surface-hover);
358
361
  background: var(--color-surface-hover);
359
362
  }
360
363
 
361
364
  .crewlet-data-grid__row--selected,
362
365
  .crewlet-data-grid__row--selected:hover {
366
+ --crewlet-avatar-stack-tint: var(--color-brand-accent-soft);
363
367
  background: var(--color-brand-accent-soft);
364
368
  }
365
369
 
@@ -370,6 +374,7 @@ button.crewlet-data-grid__row-link {
370
374
  */
371
375
  .crewlet-data-grid__row--picked,
372
376
  .crewlet-data-grid__row--picked:hover {
377
+ --crewlet-avatar-stack-tint: var(--color-surface-selected);
373
378
  background: var(--color-surface-selected);
374
379
  }
375
380
 
@@ -1,6 +1,6 @@
1
- export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-5MPQ657T.js';
1
+ export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-Z3FXGNT5.js';
2
2
  import '../chunk-LCJC3LTP.js';
3
- import '../chunk-MXOT2CWL.js';
3
+ import '../chunk-JEFGH3AQ.js';
4
4
  import '../chunk-WLIODLUL.js';
5
5
  import '../chunk-G732IWP4.js';
6
6
  import '../chunk-AV2DXAEL.js';
@@ -1,6 +1,6 @@
1
- export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-W3YTURNG.js';
1
+ export { DOC_TABS_EDITOR_LABELS, DocTabsEditor } from '../chunk-VGGEVVIT.js';
2
2
  import '../chunk-4IB7HVDN.js';
3
- import '../chunk-JMBPMSNI.js';
3
+ import '../chunk-4FO6WWYW.js';
4
4
  import '../chunk-SK4BIFTG.js';
5
5
  import '../chunk-COS6LJ4K.js';
6
6
  import '../chunk-NMIXL2YH.js';
@@ -1,5 +1,5 @@
1
- export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from '../chunk-UIA7FKDE.js';
2
- import '../chunk-D5UVJL4I.js';
1
+ export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from '../chunk-XG6PTSHE.js';
2
+ import '../chunk-QZNENGHA.js';
3
3
  import '../chunk-XS7NYCTQ.js';
4
4
  import '../chunk-7WMQ7CXI.js';
5
5
  import '../chunk-KW7T23RT.js';
@@ -1,5 +1,5 @@
1
1
  export { EntityChip } from '../chunk-OPN5Q3OL.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';
@@ -1,5 +1,5 @@
1
1
  export { ImageUpload } from '../chunk-4QWTD6JO.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';
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes, ReactNode } from 'react';
2
- import type { MeterState } from '../Meter/index.js';
2
+ import { type MeterState } from '../Meter/index.js';
3
3
  /** One window of a limit: a 5-hour window, a weekly one, a model's own. */
4
4
  export interface LimitWindow {
5
5
  /** Unique within the stack. */
@@ -32,11 +32,18 @@ export interface LimitMetersProps extends Omit<HTMLAttributes<HTMLDivElement>, '
32
32
  empty?: ReactNode;
33
33
  /** A muted line under the windows, such as how old the reading is: "as of 2h ago". */
34
34
  caption?: ReactNode;
35
+ /** How an ordinary window is painted: `success` (green, the default) or `neutral`. */
36
+ okTone?: 'success' | 'neutral' | undefined;
35
37
  }
36
- /** The tone a limit window is painted in. */
37
- export declare function limitWindowTone(state: MeterState): 'neutral' | 'warning' | 'danger';
38
+ type LimitTone = 'success' | 'neutral' | 'warning' | 'danger';
39
+ /**
40
+ * A window's tone: green inside the limit, yellow near it, red at it. A known `used`
41
+ * past 80% or the limit escalates a quieter state, so every bar turns at one place.
42
+ */
43
+ export declare function limitWindowTone(state: MeterState, used?: number, okTone?: 'success' | 'neutral'): LimitTone;
38
44
  /**
39
45
  * A compact stack of a limit's windows for a table cell, one line each. A known
40
46
  * fraction is a `meter`; a window known only by its state is a hatched `img`.
41
47
  */
42
- export declare function LimitMeters({ windows, label, empty, caption, className, ...rest }: LimitMetersProps): import("react").JSX.Element;
48
+ export declare function LimitMeters({ windows, label, empty, caption, okTone, className, ...rest }: LimitMetersProps): import("react").JSX.Element;
49
+ export {};
@@ -1,2 +1,4 @@
1
- export { LimitMeters, limitWindowTone } from '../chunk-KKEVX2PD.js';
1
+ export { LimitMeters, limitWindowTone } from '../chunk-KITMVT74.js';
2
+ import '../chunk-JEFGH3AQ.js';
3
+ import '../chunk-RRRK2KB6.js';
2
4
  import '../chunk-ODEQTPFM.js';
@@ -31,11 +31,16 @@
31
31
  --crewlet-limit-meters-tone: var(--color-text-tertiary);
32
32
  }
33
33
 
34
- .crewlet-limit-meters__window[data-state='near'] {
34
+ /* Green inside the limit, yellow from the warning line, red at the limit (LimitMeters.tsx). */
35
+ .crewlet-limit-meters__window[data-tone='success'] {
36
+ --crewlet-limit-meters-tone: var(--color-feedback-success);
37
+ }
38
+
39
+ .crewlet-limit-meters__window[data-tone='warning'] {
35
40
  --crewlet-limit-meters-tone: var(--color-feedback-warning);
36
41
  }
37
42
 
38
- .crewlet-limit-meters__window[data-state='refusing'] {
43
+ .crewlet-limit-meters__window[data-tone='danger'] {
39
44
  --crewlet-limit-meters-tone: var(--color-feedback-danger);
40
45
  }
41
46
 
@@ -86,11 +91,11 @@
86
91
  color: var(--color-text-primary);
87
92
  }
88
93
 
89
- .crewlet-limit-meters__window[data-state='near'] .crewlet-limit-meters__figure {
94
+ .crewlet-limit-meters__window[data-tone='warning'] .crewlet-limit-meters__figure {
90
95
  color: var(--color-feedback-warning-ink);
91
96
  }
92
97
 
93
- .crewlet-limit-meters__window[data-state='refusing'] .crewlet-limit-meters__figure {
98
+ .crewlet-limit-meters__window[data-tone='danger'] .crewlet-limit-meters__figure {
94
99
  color: var(--color-feedback-danger-ink);
95
100
  }
96
101
 
@@ -1,5 +1,5 @@
1
- export { ListInput, withDraft } from '../chunk-O7KT5EIN.js';
2
- import '../chunk-JMBPMSNI.js';
1
+ export { ListInput, withDraft } from '../chunk-ZA2STYRY.js';
2
+ import '../chunk-4FO6WWYW.js';
3
3
  import '../chunk-VBBLHS2Y.js';
4
4
  import '../chunk-SK4BIFTG.js';
5
5
  import '../chunk-COS6LJ4K.js';
@@ -1,16 +1,7 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
2
  /**
3
- * What the bar is saying.
4
- *
5
- * `quantity` is the ordinary reading, because a budget that is being spent is
6
- * not in a state; it is just a number. It is the first data series,
7
- * `--color-data-1`: a meter is a figure of one quantity, and the label that
8
- * names it is what a data hue asks for, where the accent it used to take
9
- * means "act here" and a bar is not an action. The three that ARE states are
10
- * derived from the fill unless a caller overrides them, so a bar that is
11
- * nearly full says so without every call site remembering to. A caller that
12
- * owns the rule passes a `MeterState` instead, which names the state rather
13
- * than the paint.
3
+ * What the bar is saying: on the `spent` ramp green inside the limit, `warning` near it,
4
+ * `danger` at it. `quantity` (the first data series) is for a figure that is not a usage.
14
5
  */
15
6
  export type MeterTone = 'quantity' | 'success' | 'warning' | 'danger' | 'neutral';
16
7
  /**
@@ -59,11 +50,17 @@ export interface MeterThresholds {
59
50
  */
60
51
  near: number;
61
52
  }
53
+ /** Where a usage reading turns yellow: the engine's own warning line, 80% of the limit. */
54
+ export declare const USAGE_WARN_AT = 0.8;
62
55
  /**
63
- * The thresholds a meter uses when nobody says otherwise: `near` at three
64
- * quarters of the limit, the ramp every existing caller has always had.
56
+ * The thresholds a meter uses when nobody says otherwise: `near` at the
57
+ * engine's warning line (`USAGE_WARN_AT`), so every usage bar turns at one place.
65
58
  */
66
59
  export declare const DEFAULT_METER_THRESHOLDS: Readonly<MeterThresholds>;
60
+ /** What an ordinary (`ok`) reading is painted: green by default, or the quiet look it had. */
61
+ export type MeterOkTone = 'success' | 'quantity';
62
+ /** A usage fraction's tone: green below 80%, yellow from 80%, red at the limit. */
63
+ export declare function usageTone(used: number): 'success' | 'warning' | 'danger';
67
64
  interface MeterBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
68
65
  value: number;
69
66
  /**
@@ -95,6 +92,8 @@ interface MeterBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
95
92
  size?: 'default' | 'compact' | undefined;
96
93
  /** Keep the label out of the picture. It stays in the accessibility tree. */
97
94
  hideLabel?: boolean | undefined;
95
+ /** How an ordinary reading is painted on the `spent` ramp: `success` (green, the default) or `quantity`. */
96
+ okTone?: MeterOkTone | undefined;
98
97
  }
99
98
  /**
100
99
  * THE VERDICT: a caller that owns the rule says which state the quantity is
@@ -136,8 +135,8 @@ export interface MeterThresholdProps {
136
135
  thresholds?: MeterThresholds | undefined;
137
136
  }
138
137
  export type MeterProps = MeterBaseProps & (MeterVerdictProps | MeterRampProps | MeterThresholdProps);
139
- /** The tone a `MeterState` is painted in. */
140
- export declare function meterStateTone(state: MeterState): MeterTone;
138
+ /** The tone a `MeterState` is painted in; `okTone` paints an ordinary reading. */
139
+ export declare function meterStateTone(state: MeterState, okTone?: MeterOkTone): MeterTone;
141
140
  /**
142
141
  * The state a fraction of the limit is in: at or past the limit it is
143
142
  * `refusing`, at or past `thresholds.near` it is `near`, below that `ok`.
@@ -209,5 +208,5 @@ export declare function progressTone(percent: number): MeterTone;
209
208
  * figures, so nothing is lost: what a reader hears is "140 of 100", not a bar
210
209
  * that quietly rounds itself down to exactly the limit it has overrun.
211
210
  */
212
- export declare function Meter({ value, max, label, valueText, hint, state, tone, polarity, thresholds, size, hideLabel, className, ...rest }: MeterProps): import("react").JSX.Element;
211
+ export declare function Meter({ value, max, label, valueText, hint, state, tone, polarity, thresholds, okTone, size, hideLabel, className, ...rest }: MeterProps): import("react").JSX.Element;
213
212
  export {};
@@ -1,3 +1,3 @@
1
1
  import './Meter.css';
2
- export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone, } from './Meter.js';
3
- export type { MeterPolarity, MeterProps, MeterRampProps, MeterState, MeterThresholdProps, MeterThresholds, MeterTone, MeterVerdictProps, } from './Meter.js';
2
+ export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone, usageTone, USAGE_WARN_AT, } from './Meter.js';
3
+ export type { MeterPolarity, MeterOkTone, MeterProps, MeterRampProps, MeterState, MeterThresholdProps, MeterThresholds, MeterTone, MeterVerdictProps, } from './Meter.js';
@@ -1,3 +1,3 @@
1
- export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, meterState, meterStateTone, meterTone, progressTone } from '../chunk-MXOT2CWL.js';
1
+ export { DEFAULT_METER_THRESHOLDS, METER_STATES, Meter, USAGE_WARN_AT, meterState, meterStateTone, meterTone, progressTone, usageTone } from '../chunk-JEFGH3AQ.js';
2
2
  import '../chunk-RRRK2KB6.js';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -91,6 +91,11 @@ export type OrgLabelMark = {
91
91
  * the glyph alone, as the console table does.
92
92
  */
93
93
  iconRing?: boolean | undefined;
94
+ /**
95
+ * `zone` (the default) paints the mark in the zone's ink; `own` keeps a
96
+ * mark's own colours, for a product mark or a face in the zone.
97
+ */
98
+ iconTone?: 'zone' | 'own' | undefined;
94
99
  /**
95
100
  * An organization's own logo in place of the glyph: contained in its own
96
101
  * colours, never stretched or cropped, and as tall as the words beside it.
@@ -118,6 +123,7 @@ export type OrgLabelMark = {
118
123
  icon?: undefined;
119
124
  iconSize?: undefined;
120
125
  iconRing?: undefined;
126
+ iconTone?: undefined;
121
127
  logo?: undefined;
122
128
  };
123
129
  /** What both layouts say besides the mark, in the order they say it. */
@@ -1,5 +1,5 @@
1
- export { OrgLabel } from '../chunk-NIM7LEEI.js';
2
- import '../chunk-T7Y5FM4B.js';
1
+ export { OrgLabel } from '../chunk-BZLQHZKH.js';
2
+ import '../chunk-X2CFDU5S.js';
3
3
  import '../chunk-EX5XAEST.js';
4
4
  import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-YMFFGPFE.js';
@@ -54,6 +54,11 @@
54
54
  font-size: var(--font-size-3xl);
55
55
  }
56
56
 
57
+ /* `iconTone="own"`: a mark in its own colours (a product mark, a face), never repainted by the zone. */
58
+ .crewlet-org-label__icon--own {
59
+ color: inherit;
60
+ }
61
+
57
62
  /* AN ORGANIZATION'S LOGO, whole and in its own colours: on a node as tall as
58
63
  the name and caption beside it, in a row the size of a seat's badge there. */
59
64
  .crewlet-org-label__logo {
@@ -77,9 +82,9 @@
77
82
  * in its corner. Stated as the zone's own rule rather than asked of each
78
83
  * caller, because the zone is what decides that a node is drawn in one colour.
79
84
  */
80
- .crewlet-org-label__icon svg,
81
- .crewlet-org-label__icon svg g,
82
- .crewlet-org-label__icon svg path {
85
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg,
86
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg g,
87
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg path {
83
88
  /* THE INK AS WELL AS THE FILL, which is what made the rule above true. A
84
89
  mark may publish its own hue as a `color` on its own root (the Crewlet
85
90
  figure does, from the brand token), and `currentcolor` under that root
@@ -101,9 +106,9 @@
101
106
  group in the zone, a mask's included, so a hole cut by a mask fills with a
102
107
  share of the ink that changes with the hue: every agent's eyes on the chart
103
108
  did, until the Crewlet characters cut their faces into their own paths. */
104
- .crewlet-org-label__icon svg:not(.crewlet-glyph),
105
- .crewlet-org-label__icon svg:not(.crewlet-glyph) g:not(.crewlet-glyph *),
106
- .crewlet-org-label__icon svg:not(.crewlet-glyph) path:not(.crewlet-glyph *) {
109
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg:not(.crewlet-glyph),
110
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg:not(.crewlet-glyph) g:not(.crewlet-glyph *),
111
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg:not(.crewlet-glyph) path:not(.crewlet-glyph *) {
107
112
  fill: currentColor;
108
113
  }
109
114
 
@@ -1,6 +1,6 @@
1
- export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from '../chunk-JH2IATUQ.js';
2
- import '../chunk-NIM7LEEI.js';
3
- import '../chunk-T7Y5FM4B.js';
1
+ export { OrgNodeDisclosure, OrgNodeLabel, OrgNodeLead } from '../chunk-KQWB2MDP.js';
2
+ import '../chunk-BZLQHZKH.js';
3
+ import '../chunk-X2CFDU5S.js';
4
4
  import '../chunk-EX5XAEST.js';
5
5
  import '../chunk-AJFA2XDQ.js';
6
6
  import '../chunk-YMFFGPFE.js';
@@ -86,22 +86,25 @@ export declare function OrgTableName({ tone, ...content }: OrgTableNameProps): i
86
86
  * nothing here is pointer-only and nothing is a control a keyboard meets
87
87
  * invisible.
88
88
  */
89
- export declare function OrgTableActions({ children, shown, className, }: {
89
+ export declare function OrgTableActions({ children, shown, slots, className, }: {
90
90
  children: ReactNode;
91
91
  /** Drawn at rest too, for a table whose rows are edited as often as they are read. */
92
92
  shown?: boolean | undefined;
93
+ /** How many small controls the strip keeps room for; three by default. */
94
+ slots?: number | undefined;
93
95
  className?: string | undefined;
94
96
  }): import("react").JSX.Element;
95
- export interface OrgTableAddProps extends AddPillProps {
97
+ export type OrgTableAddProps = AddPillProps & {
96
98
  /** Says a press opened it, so the grid's one tab stop follows focus here. */
97
99
  onOpen?: (() => void) | undefined;
98
100
  /**
99
101
  * `end` (the default) holds the open pill's room at the row's end. `name`
100
102
  * stands beside a name (`OrgLabel` `nameAction`) and takes its mark's room
101
103
  * alone, open or closed, so opening moves nothing: the pill opens over the row.
104
+ * With `onAdd` there is no pill, and the slot is the mark's.
102
105
  */
103
106
  placement?: 'end' | 'name' | undefined;
104
- }
107
+ };
105
108
  /**
106
109
  * The split add pill on a row: `AddPill`, in the slot the row reserves for it.
107
110
  *
@@ -1,20 +1,20 @@
1
- export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-7U6JFHJY.js';
2
- import '../chunk-WDVENT6N.js';
3
- import '../chunk-NIM7LEEI.js';
1
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-IKGEOJEA.js';
2
+ import '../chunk-MD5KDF7W.js';
3
+ import '../chunk-BZLQHZKH.js';
4
4
  import '../chunk-MY374UUD.js';
5
- import '../chunk-UBXJBVYV.js';
6
- import '../chunk-M34LSGMH.js';
5
+ import '../chunk-GQL2XQTS.js';
6
+ import '../chunk-WU73BKXL.js';
7
7
  import '../chunk-CUEPPDBC.js';
8
8
  import '../chunk-WFAJYBLX.js';
9
- import '../chunk-JMBPMSNI.js';
9
+ import '../chunk-4FO6WWYW.js';
10
10
  import '../chunk-HG7J6I65.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';
15
+ import '../chunk-EHRNLV3D.js';
15
16
  import '../chunk-SK4BIFTG.js';
16
17
  import '../chunk-COS6LJ4K.js';
17
- import '../chunk-5CCM3DDA.js';
18
18
  import '../chunk-ED24QJYL.js';
19
19
  import '../chunk-WSIJDWUG.js';
20
20
  import '../chunk-NMIXL2YH.js';