@crewlethq/ui 0.186.0 → 0.187.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 (90) 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/AgentHandoffPanel/index.js +1 -1
  7. package/dist/AppShell/index.js +2 -2
  8. package/dist/ArtifactCard/index.js +4 -4
  9. package/dist/Avatar/AvatarStack.d.ts +9 -4
  10. package/dist/Avatar/index.js +1 -1
  11. package/dist/{AvatarStack-UNBXFHTZ.css → AvatarStack-6N6V7L7L.css} +11 -3
  12. package/dist/CommentThread/index.js +3 -3
  13. package/dist/DataGrid/index.js +2 -2
  14. package/dist/{DataGrid-K2L4ZOUH.css → DataGrid-UGOZXHJS.css} +5 -0
  15. package/dist/DataView/index.js +2 -2
  16. package/dist/DatasetSource/index.js +2 -2
  17. package/dist/DurationField/index.js +2 -2
  18. package/dist/EditingStatus/index.js +2 -2
  19. package/dist/EntityChip/index.js +1 -1
  20. package/dist/ImageUpload/index.js +1 -1
  21. package/dist/InlineEditor/index.js +3 -3
  22. package/dist/OrgLabel/OrgLabel.d.ts +6 -0
  23. package/dist/OrgLabel/index.js +2 -2
  24. package/dist/{OrgLabel-WCI3OIFL.css → OrgLabel-4NDGABVY.css} +11 -6
  25. package/dist/OrgNode/index.js +3 -3
  26. package/dist/OrgTable/OrgTable.d.ts +6 -3
  27. package/dist/OrgTable/index.js +7 -7
  28. package/dist/{OrgTable-5NXRECVP.css → OrgTable-73WNQCH3.css} +5 -4
  29. package/dist/PeopleRail/index.js +1 -1
  30. package/dist/PresenceStack/index.js +1 -1
  31. package/dist/Principal/index.js +1 -1
  32. package/dist/PrincipalPicker/index.js +1 -1
  33. package/dist/ProposalCard/index.js +4 -4
  34. package/dist/RailList/index.js +2 -2
  35. package/dist/RelativeTime/clock.d.ts +6 -0
  36. package/dist/RelativeTime/index.js +1 -1
  37. package/dist/RichEditor/index.js +1 -1
  38. package/dist/Select/Select.d.ts +10 -0
  39. package/dist/Select/index.js +1 -1
  40. package/dist/{Select-2FAOIL73.css → Select-DRBDKBRO.css} +50 -1
  41. package/dist/SettingsTable/index.js +2 -2
  42. package/dist/ShareDialog/index.js +3 -3
  43. package/dist/SheetColumnEditor/index.js +2 -2
  44. package/dist/SheetGrid/index.js +1 -1
  45. package/dist/TableCells/index.js +3 -3
  46. package/dist/ThreadSummary/index.js +2 -2
  47. package/dist/TimeWindowPicker/index.js +2 -2
  48. package/dist/TreeGrid/index.js +3 -3
  49. package/dist/{TreeGrid-XZCH5WCC.css → TreeGrid-QKEQXK26.css} +19 -2
  50. package/dist/ValueField/index.js +2 -2
  51. package/dist/VersionTimeline/index.js +3 -3
  52. package/dist/WidgetFrame/index.js +2 -2
  53. package/dist/WorkingLine/index.js +2 -2
  54. package/dist/{chunk-4NOTOHF7.js → chunk-2TN6ALNE.js} +1 -1
  55. package/dist/{chunk-6SGMBLOE.js → chunk-3PBQNCPC.js} +1 -1
  56. package/dist/{chunk-LMP2Y7PZ.js → chunk-5UUG3QCO.js} +1 -1
  57. package/dist/{chunk-GBKBME7Q.js → chunk-5ZL3PXEL.js} +6 -1
  58. package/dist/{chunk-L4M3EOCH.js → chunk-6DQPSI54.js} +1 -1
  59. package/dist/{chunk-WDVENT6N.js → chunk-72AZMU55.js} +33 -12
  60. package/dist/{chunk-5LLZEA7F.js → chunk-7BDGWCB4.js} +1 -1
  61. package/dist/{chunk-S3WUN7GH.js → chunk-A42UVBJQ.js} +2 -2
  62. package/dist/{chunk-ZDHQ5ZDT.js → chunk-A4CTKERL.js} +1 -1
  63. package/dist/{chunk-NIM7LEEI.js → chunk-BZLQHZKH.js} +3 -2
  64. package/dist/{chunk-MB2C2GGW.js → chunk-CHBNLTVC.js} +1 -1
  65. package/dist/{chunk-D3G7T4NA.js → chunk-CPOTDACH.js} +3 -3
  66. package/dist/{chunk-UBXJBVYV.js → chunk-DPDOQJWH.js} +2 -2
  67. package/dist/{chunk-5CCM3DDA.js → chunk-EHRNLV3D.js} +56 -7
  68. package/dist/{chunk-7LQRG3BP.js → chunk-EO4CV3P7.js} +1 -1
  69. package/dist/{chunk-DV7KWYC6.js → chunk-FTWZ2AQR.js} +1 -1
  70. package/dist/{chunk-6PDRZJJA.js → chunk-KCV47P7J.js} +1 -1
  71. package/dist/{chunk-JH2IATUQ.js → chunk-KQWB2MDP.js} +1 -1
  72. package/dist/{chunk-D4ACFQCR.js → chunk-LG72TVII.js} +2 -2
  73. package/dist/{chunk-NKSPHNL2.js → chunk-PV3TWLEK.js} +1 -1
  74. package/dist/{chunk-D5UVJL4I.js → chunk-QZNENGHA.js} +31 -16
  75. package/dist/{chunk-7U6JFHJY.js → chunk-RYTE4I55.js} +12 -5
  76. package/dist/{chunk-BYU7YSOM.js → chunk-S33O4PTO.js} +1 -1
  77. package/dist/{chunk-TCBV4K7V.js → chunk-T53EKFO2.js} +1 -1
  78. package/dist/{chunk-KRF3GQ63.js → chunk-TDQB6AXC.js} +1 -1
  79. package/dist/{chunk-FEMWZYZV.js → chunk-UIRMNARM.js} +1 -1
  80. package/dist/{chunk-JIBK6CQZ.js → chunk-V2ZUNC7X.js} +2 -2
  81. package/dist/{chunk-M34LSGMH.js → chunk-WU73BKXL.js} +17 -6
  82. package/dist/{chunk-T7Y5FM4B.js → chunk-X2CFDU5S.js} +7 -2
  83. package/dist/{chunk-UIA7FKDE.js → chunk-XG6PTSHE.js} +1 -1
  84. package/dist/{chunk-KFX6FQKU.js → chunk-ZXX24HXF.js} +1 -1
  85. package/dist/generated/index.js +58 -58
  86. package/dist/index.js +58 -58
  87. package/dist/styles.css +107 -22
  88. package/package.json +3 -3
  89. package/dist/{Editor-NFC7HEWU.js → Editor-WFP2MM6M.js} +1 -1
  90. package/dist/{chunk-5EYWFZ4G.js → chunk-SVA5VPCB.js} +1 -1
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.187.0
256
+
257
+ ### Rows of groups and members: faces, adds, strips and pickers that fit a table
258
+
259
+ **`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.
260
+
261
+ ## Changes in 0.186.1
262
+
263
+ ### The shared clock answers one instant within a render
264
+
265
+ **A stopped clock is read once per synchronous pass.** While no reader is subscribed, `useNow` and `currentNow` replace a reading a second or more old; the first read of a pass now decides that, and every later read in the pass returns the same instant until a microtask ends it. React's development build reads a snapshot twice on mount, and two reads either side of that second differed, so a reader mounted at that moment logged "The result of getSnapshot should be cached to avoid an infinite loop", failing a test suite that fails on an unexpected `console.error`. Nothing to change in an application. A test that moves a faked system clock between two reads of a stopped clock ends the pass first (awaits a microtask), and a suite whose fake timers also fake `queueMicrotask` (Jest's default) runs its pending microtasks between passes, or the clock keeps its first reading.
266
+
255
267
  ## Changes in 0.186.0
256
268
 
257
269
  ### A list's overflow says what it hides and lists it on demand
@@ -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';
@@ -5,9 +5,9 @@ import '../chunk-EGBHW6FS.js';
5
5
  import '../chunk-YUVQUJND.js';
6
6
  import '../chunk-HGDZBOOE.js';
7
7
  import '../chunk-JYP6IRMH.js';
8
- import '../chunk-VBBLHS2Y.js';
9
8
  import '../chunk-MBEZOURR.js';
10
9
  import '../chunk-FQ6J4DK7.js';
10
+ import '../chunk-VBBLHS2Y.js';
11
11
  import '../chunk-2YTOOH3A.js';
12
12
  import '../chunk-SK4BIFTG.js';
13
13
  import '../chunk-COS6LJ4K.js';
@@ -1,10 +1,10 @@
1
- export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-5EYWFZ4G.js';
1
+ export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-SVA5VPCB.js';
2
2
  import '../chunk-SNKQNAJI.js';
3
3
  import '../chunk-JLOESTT2.js';
4
4
  import '../chunk-4IB7HVDN.js';
5
- import '../chunk-VBBLHS2Y.js';
6
5
  export { useAppShellAside, useAppShellPeek } from '../chunk-MBEZOURR.js';
7
6
  export { RESIZE_HANDLE_LARGE_STEP, RESIZE_HANDLE_STEP, ResizeHandle, clampSize } from '../chunk-FQ6J4DK7.js';
7
+ import '../chunk-VBBLHS2Y.js';
8
8
  import '../chunk-2YTOOH3A.js';
9
9
  import '../chunk-SK4BIFTG.js';
10
10
  import '../chunk-COS6LJ4K.js';
@@ -1,14 +1,14 @@
1
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-D3G7T4NA.js';
1
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-CPOTDACH.js';
2
2
  import '../chunk-265IX4YA.js';
3
- import '../chunk-GBKBME7Q.js';
3
+ import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
5
5
  import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-G732IWP4.js';
7
7
  import '../chunk-AV2DXAEL.js';
8
- export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
9
8
  import '../chunk-W3A6NBUM.js';
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
@@ -1,9 +1,9 @@
1
- export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-LMP2Y7PZ.js';
1
+ export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-5UUG3QCO.js';
2
2
  import '../chunk-265IX4YA.js';
3
- import '../chunk-GBKBME7Q.js';
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,5 +1,5 @@
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-DPDOQJWH.js';
2
+ export { nextGridSort, parseGridSort } from '../chunk-WU73BKXL.js';
3
3
  import '../chunk-WFAJYBLX.js';
4
4
  import '../chunk-JMBPMSNI.js';
5
5
  import '../chunk-HG7J6I65.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,4 +1,4 @@
1
- export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-L4M3EOCH.js';
1
+ export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-6DQPSI54.js';
2
2
  import '../chunk-FPDIHEM4.js';
3
3
  import '../chunk-BICOU6XR.js';
4
4
  import '../chunk-PHA2MBXY.js';
@@ -6,7 +6,7 @@ import '../chunk-KOTOBDOA.js';
6
6
  import '../chunk-KW7T23RT.js';
7
7
  import '../chunk-EE3DJMSQ.js';
8
8
  import '../chunk-NPEI2QAN.js';
9
- import '../chunk-GBKBME7Q.js';
9
+ import '../chunk-5ZL3PXEL.js';
10
10
  import '../chunk-WGLOH33S.js';
11
11
  import '../chunk-AV2DXAEL.js';
12
12
  import '../chunk-4IB7HVDN.js';
@@ -1,5 +1,5 @@
1
- export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-FEMWZYZV.js';
2
- import '../chunk-GBKBME7Q.js';
1
+ export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-UIRMNARM.js';
2
+ import '../chunk-5ZL3PXEL.js';
3
3
  import '../chunk-WGLOH33S.js';
4
4
  import '../chunk-2YTOOH3A.js';
5
5
  import '../chunk-ASBBB5AJ.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
- export { EditingStatus } from '../chunk-KRF3GQ63.js';
2
- import '../chunk-GBKBME7Q.js';
1
+ export { EditingStatus } from '../chunk-TDQB6AXC.js';
2
+ import '../chunk-5ZL3PXEL.js';
3
3
  import '../chunk-WGLOH33S.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-RRRK2KB6.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,6 +1,6 @@
1
- export { INLINE_EDITOR_LABELS, InlineEditor } from '../chunk-4NOTOHF7.js';
2
- import '../chunk-KRF3GQ63.js';
3
- import '../chunk-GBKBME7Q.js';
1
+ export { INLINE_EDITOR_LABELS, InlineEditor } from '../chunk-2TN6ALNE.js';
2
+ import '../chunk-TDQB6AXC.js';
3
+ import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
5
5
  import '../chunk-VBBLHS2Y.js';
6
6
  import '../chunk-QRE6JCHS.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,18 +1,18 @@
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-RYTE4I55.js';
2
+ import '../chunk-72AZMU55.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-DPDOQJWH.js';
6
+ import '../chunk-WU73BKXL.js';
7
7
  import '../chunk-CUEPPDBC.js';
8
8
  import '../chunk-WFAJYBLX.js';
9
9
  import '../chunk-JMBPMSNI.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-5CCM3DDA.js';
15
+ import '../chunk-EHRNLV3D.js';
16
16
  import '../chunk-SK4BIFTG.js';
17
17
  import '../chunk-COS6LJ4K.js';
18
18
  import '../chunk-ED24QJYL.js';
@@ -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,11 +1,11 @@
1
- export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-JIBK6CQZ.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';
7
7
  import '../chunk-WLIODLUL.js';
8
- import '../chunk-GBKBME7Q.js';
8
+ import '../chunk-5ZL3PXEL.js';
9
9
  import '../chunk-WGLOH33S.js';
10
10
  import '../chunk-G732IWP4.js';
11
11
  import '../chunk-AV2DXAEL.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';
@@ -1,3 +1,9 @@
1
+ /**
2
+ * The shared instant, in epoch ms, re-rendering the caller once a second.
3
+ *
4
+ * Pass the value DOWN rather than calling this again deeper: two components
5
+ * reading their own clock is the disagreement it exists to prevent.
6
+ */
1
7
  export declare function useNow(): number;
2
8
  /** The current instant without subscribing, for an event handler or an effect. */
3
9
  export declare function currentNow(): number;
@@ -1,4 +1,4 @@
1
- export { RelativeTime, currentNow, formatElapsed, formatExact, formatRelative, formatUntil, toISO, toInstant, useNow } from '../chunk-GBKBME7Q.js';
1
+ export { RelativeTime, currentNow, formatElapsed, formatExact, formatRelative, formatUntil, toISO, toInstant, useNow } from '../chunk-5ZL3PXEL.js';
2
2
  import '../chunk-WGLOH33S.js';
3
3
  import '../chunk-RRRK2KB6.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-ZDHQ5ZDT.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-A4CTKERL.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-DGXHQMNP.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KMTOGF6T.js';