@crewlethq/ui 0.186.1 → 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 (68) hide show
  1. package/README.md +6 -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/ArtifactCard/index.js +2 -2
  7. package/dist/Avatar/AvatarStack.d.ts +9 -4
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{AvatarStack-UNBXFHTZ.css → AvatarStack-6N6V7L7L.css} +11 -3
  10. package/dist/CommentThread/index.js +1 -1
  11. package/dist/DataGrid/index.js +2 -2
  12. package/dist/{DataGrid-K2L4ZOUH.css → DataGrid-UGOZXHJS.css} +5 -0
  13. package/dist/DurationField/index.js +2 -2
  14. package/dist/EntityChip/index.js +1 -1
  15. package/dist/ImageUpload/index.js +1 -1
  16. package/dist/OrgLabel/OrgLabel.d.ts +6 -0
  17. package/dist/OrgLabel/index.js +2 -2
  18. package/dist/{OrgLabel-WCI3OIFL.css → OrgLabel-4NDGABVY.css} +11 -6
  19. package/dist/OrgNode/index.js +3 -3
  20. package/dist/OrgTable/OrgTable.d.ts +6 -3
  21. package/dist/OrgTable/index.js +7 -7
  22. package/dist/{OrgTable-5NXRECVP.css → OrgTable-73WNQCH3.css} +5 -4
  23. package/dist/PeopleRail/index.js +1 -1
  24. package/dist/PresenceStack/index.js +1 -1
  25. package/dist/Principal/index.js +1 -1
  26. package/dist/PrincipalPicker/index.js +1 -1
  27. package/dist/ProposalCard/index.js +3 -3
  28. package/dist/RailList/index.js +2 -2
  29. package/dist/Select/Select.d.ts +10 -0
  30. package/dist/Select/index.js +1 -1
  31. package/dist/{Select-2FAOIL73.css → Select-DRBDKBRO.css} +50 -1
  32. package/dist/SettingsTable/index.js +2 -2
  33. package/dist/ShareDialog/index.js +3 -3
  34. package/dist/SheetColumnEditor/index.js +2 -2
  35. package/dist/SheetGrid/index.js +1 -1
  36. package/dist/TableCells/index.js +1 -1
  37. package/dist/ThreadSummary/index.js +2 -2
  38. package/dist/TimeWindowPicker/index.js +2 -2
  39. package/dist/TreeGrid/index.js +3 -3
  40. package/dist/{TreeGrid-XZCH5WCC.css → TreeGrid-QKEQXK26.css} +19 -2
  41. package/dist/ValueField/index.js +2 -2
  42. package/dist/VersionTimeline/index.js +1 -1
  43. package/dist/WorkingLine/index.js +2 -2
  44. package/dist/{chunk-6SGMBLOE.js → chunk-3PBQNCPC.js} +1 -1
  45. package/dist/{chunk-WDVENT6N.js → chunk-72AZMU55.js} +33 -12
  46. package/dist/{chunk-S3WUN7GH.js → chunk-A42UVBJQ.js} +2 -2
  47. package/dist/{chunk-NIM7LEEI.js → chunk-BZLQHZKH.js} +3 -2
  48. package/dist/{chunk-MB2C2GGW.js → chunk-CHBNLTVC.js} +1 -1
  49. package/dist/{chunk-ELYOAZCB.js → chunk-CPOTDACH.js} +1 -1
  50. package/dist/{chunk-UBXJBVYV.js → chunk-DPDOQJWH.js} +2 -2
  51. package/dist/{chunk-5CCM3DDA.js → chunk-EHRNLV3D.js} +56 -7
  52. package/dist/{chunk-7LQRG3BP.js → chunk-EO4CV3P7.js} +1 -1
  53. package/dist/{chunk-DV7KWYC6.js → chunk-FTWZ2AQR.js} +1 -1
  54. package/dist/{chunk-JH2IATUQ.js → chunk-KQWB2MDP.js} +1 -1
  55. package/dist/{chunk-D4ACFQCR.js → chunk-LG72TVII.js} +2 -2
  56. package/dist/{chunk-D5UVJL4I.js → chunk-QZNENGHA.js} +31 -16
  57. package/dist/{chunk-7U6JFHJY.js → chunk-RYTE4I55.js} +12 -5
  58. package/dist/{chunk-BYU7YSOM.js → chunk-S33O4PTO.js} +1 -1
  59. package/dist/{chunk-TCBV4K7V.js → chunk-T53EKFO2.js} +1 -1
  60. package/dist/{chunk-HNDQZWTX.js → chunk-V2ZUNC7X.js} +1 -1
  61. package/dist/{chunk-M34LSGMH.js → chunk-WU73BKXL.js} +17 -6
  62. package/dist/{chunk-T7Y5FM4B.js → chunk-X2CFDU5S.js} +7 -2
  63. package/dist/{chunk-UIA7FKDE.js → chunk-XG6PTSHE.js} +1 -1
  64. package/dist/{chunk-KFX6FQKU.js → chunk-ZXX24HXF.js} +1 -1
  65. package/dist/generated/index.js +48 -48
  66. package/dist/index.js +48 -48
  67. package/dist/styles.css +107 -22
  68. package/package.json +3 -3
@@ -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,7 +1,7 @@
1
- export { TreeGrid } from '../chunk-WDVENT6N.js';
1
+ export { TreeGrid } from '../chunk-72AZMU55.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-UBXJBVYV.js';
4
- import '../chunk-M34LSGMH.js';
3
+ import '../chunk-DPDOQJWH.js';
4
+ import '../chunk-WU73BKXL.js';
5
5
  import '../chunk-CUEPPDBC.js';
6
6
  import '../chunk-WFAJYBLX.js';
7
7
  import '../chunk-JMBPMSNI.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(
@@ -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,6 @@
1
1
  import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
2
- import { fitGridColumns } from './chunk-UBXJBVYV.js';
3
- import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-M34LSGMH.js';
2
+ import { fitGridColumns } from './chunk-DPDOQJWH.js';
3
+ import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-WU73BKXL.js';
4
4
  import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
5
5
  import { EmptyState } from './chunk-HG7J6I65.js';
6
6
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
@@ -9,8 +9,8 @@ import { IconButton } from './chunk-CMEZGORB.js';
9
9
  import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-AVJKMQXK.js';
10
10
  import { focusables } from './chunk-EDPMHSLZ.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
12
- import './TreeGrid-XZCH5WCC.css';
13
- import { useRef, useState, useLayoutEffect, useEffect, useMemo, useCallback, useImperativeHandle } from 'react';
12
+ import './TreeGrid-QKEQXK26.css';
13
+ import { useRef, useState, useEffect, useLayoutEffect, useMemo, useCallback, useImperativeHandle } from 'react';
14
14
  import { breakpoint } from '@crewlethq/tokens';
15
15
  import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
16
16
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -97,6 +97,14 @@ function TreeGrid({
97
97
  }) {
98
98
  const text = { ...LABELS, ...labels };
99
99
  const frame = useRef(null);
100
+ const [pointer, setPointer] = useState(false);
101
+ useEffect(() => {
102
+ if (!pointer) return void 0;
103
+ const key = () => setPointer(false);
104
+ document.addEventListener("keydown", key, true);
105
+ return () => document.removeEventListener("keydown", key, true);
106
+ }, [pointer]);
107
+ const onPointerDownCapture = () => setPointer(true);
100
108
  const gridEl = useRef(null);
101
109
  const [width, setWidth] = useState(0);
102
110
  const reportWidth = useRef(onWidthChange);
@@ -363,16 +371,26 @@ function TreeGrid({
363
371
  className
364
372
  );
365
373
  if (forest.length === 0 && empty) {
366
- return /* @__PURE__ */ jsx("div", { ref: frame, className: frameClass, "data-flush": flush || void 0, children: /* @__PURE__ */ jsx("div", { className: "crewlet-tree-grid__scroller", children: /* @__PURE__ */ jsx(
367
- EmptyState,
374
+ return /* @__PURE__ */ jsx(
375
+ "div",
368
376
  {
369
- size: "compact",
370
- icon: empty.icon,
371
- title: empty.title,
372
- description: empty.hint,
373
- action: empty.action
377
+ ref: frame,
378
+ className: frameClass,
379
+ "data-flush": flush || void 0,
380
+ "data-pointer": pointer || void 0,
381
+ onPointerDownCapture,
382
+ children: /* @__PURE__ */ jsx("div", { className: "crewlet-tree-grid__scroller", children: /* @__PURE__ */ jsx(
383
+ EmptyState,
384
+ {
385
+ size: "compact",
386
+ icon: empty.icon,
387
+ title: empty.title,
388
+ description: empty.hint,
389
+ action: empty.action
390
+ }
391
+ ) })
374
392
  }
375
- ) }) });
393
+ );
376
394
  }
377
395
  return /* @__PURE__ */ jsx(
378
396
  "div",
@@ -382,6 +400,8 @@ function TreeGrid({
382
400
  "data-flush": flush || void 0,
383
401
  "data-stacked": stacked || void 0,
384
402
  "data-phone-rows": stacked && phoneRows === "compact" ? "compact" : void 0,
403
+ "data-pointer": pointer || void 0,
404
+ onPointerDownCapture,
385
405
  children: /* @__PURE__ */ jsxs(LayerHost, { className: "crewlet-tree-grid__layer", children: [
386
406
  /* @__PURE__ */ jsxs("div", { className: "crewlet-tree-grid__scroller", onScroll, children: [
387
407
  /* @__PURE__ */ jsxs(
@@ -455,6 +475,7 @@ function TreeGrid({
455
475
  "aria-colindex": col,
456
476
  tabIndex: stop(id, col) && !hasControl(id, col, drawn[col - 1]?.key ?? "") ? 0 : -1,
457
477
  "data-size": one?.size === "sm" ? "sm" : void 0,
478
+ "data-align": one?.align,
458
479
  "data-label": one && !one.action && col > 1 ? headerWord(one) || one.label || void 0 : void 0,
459
480
  className: cx(
460
481
  "crewlet-tree-grid__cell",
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { Combobox } from './chunk-YXRC2NSO.js';
3
3
  import { Button } from './chunk-NMIXL2YH.js';
4
4
  import { FormField, Textarea, InputAffix } from './chunk-LSQ5BNLZ.js';
@@ -7,7 +7,7 @@ import './Input-YVCNNTYT.css';
7
7
  import './VisuallyHidden-OUYVMKEH.css';
8
8
  import './HitArea-QUOS6ZDJ.css';
9
9
  import './Combobox-GHT43K32.css';
10
- import './Select-2FAOIL73.css';
10
+ import './Select-DRBDKBRO.css';
11
11
  import './ValueField-JK7JPVR6.css';
12
12
  import { useId, useState, useRef } from 'react';
13
13
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import { Avatar } from './chunk-YMFFGPFE.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './OrgLabel-WCI3OIFL.css';
3
+ import './OrgLabel-4NDGABVY.css';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
 
6
6
  function OrgLabel(props) {
@@ -11,7 +11,8 @@ function OrgLabel(props) {
11
11
  className: cx(
12
12
  "crewlet-org-label__icon",
13
13
  props.iconSize === "lg" && "crewlet-org-label__icon--lg",
14
- props.iconRing === true && "crewlet-org-label__icon--ring"
14
+ props.iconRing === true && "crewlet-org-label__icon--ring",
15
+ props.iconTone === "own" && "crewlet-org-label__icon--own"
15
16
  ),
16
17
  "aria-hidden": "true",
17
18
  children: [
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
3
3
  import { Popover } from './chunk-AJFA2XDQ.js';
4
4
  import { Button } from './chunk-NMIXL2YH.js';
@@ -5,7 +5,7 @@ import { Card } from './chunk-G732IWP4.js';
5
5
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
6
6
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
7
7
  import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
8
- import { AvatarStack } from './chunk-T7Y5FM4B.js';
8
+ import { AvatarStack } from './chunk-X2CFDU5S.js';
9
9
  import { Checkbox } from './chunk-ED24QJYL.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { GRID_FOOT_LABELS, GRID_ICON_TRACK, headerWord, sortByValue, parseGridSort, overrunning, tableTrack, GridHeadCell, GridFoot, droppedNames, nextGridSort, rowLinkTitle, squeezedCells, SHORT_COLUMN_PX, alignOf } from './chunk-M34LSGMH.js';
1
+ import { GRID_FOOT_LABELS, GRID_ICON_TRACK, headerWord, sortByValue, parseGridSort, overrunning, tableTrack, GridHeadCell, GridFoot, droppedNames, nextGridSort, rowLinkTitle, squeezedCells, SHORT_COLUMN_PX, alignOf } from './chunk-WU73BKXL.js';
2
2
  import { Skeleton } from './chunk-WFAJYBLX.js';
3
3
  import { useReorder } from './chunk-JMBPMSNI.js';
4
4
  import { EmptyState } from './chunk-HG7J6I65.js';
@@ -8,7 +8,7 @@ import { titleWhenCut } from './chunk-WSIJDWUG.js';
8
8
  import { IconButton } from './chunk-CMEZGORB.js';
9
9
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
11
- import './DataGrid-K2L4ZOUH.css';
11
+ import './DataGrid-UGOZXHJS.css';
12
12
  import { useId, useRef, useState, useMemo, useCallback, useLayoutEffect, useImperativeHandle, useSyncExternalStore, useEffect, Fragment as Fragment$1 } from 'react';
13
13
  import { breakpoint } from '@crewlethq/tokens';
14
14
  import { GripVerticalGlyph, ChevronRightGlyph } from '@crewlethq/icons/glyphs';
@@ -2,12 +2,61 @@ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './AddPill-XLESL6BA.css';
4
4
  import { useState, useId, useRef, useCallback, useEffect, Fragment } from 'react';
5
+ import { cssLength } from '@crewlethq/icons/glyphs';
5
6
  import { jsxs, jsx } from 'react/jsx-runtime';
6
7
 
7
8
  var ADD_PILL_MS = 200;
8
- function AddPill({
9
+ function AddCircleGlyph({ size, className, ...rest }) {
10
+ const length = cssLength(size);
11
+ return /* @__PURE__ */ jsxs(
12
+ "svg",
13
+ {
14
+ width: length,
15
+ height: length,
16
+ fill: "none",
17
+ stroke: "currentColor",
18
+ strokeWidth: 1.5,
19
+ strokeLinecap: "round",
20
+ "aria-hidden": "true",
21
+ focusable: "false",
22
+ className: cx("crewlet-add-mark", className),
23
+ ...rest,
24
+ viewBox: "0 0 16 16",
25
+ children: [
26
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7" }),
27
+ /* @__PURE__ */ jsx("path", { d: "M8 4.5v7M4.5 8h7" })
28
+ ]
29
+ }
30
+ );
31
+ }
32
+ function AddPill(props) {
33
+ return props.onAdd === void 0 ? /* @__PURE__ */ jsx(SplitAddPill, { ...props }) : /* @__PURE__ */ jsx(SingleAdd, { ...props });
34
+ }
35
+ function SingleAdd({ label, onAdd, size = "sm", tabIndex, onOpen, className }) {
36
+ return /* @__PURE__ */ jsx("div", { className: cx("crewlet-add-pill", className), "data-phase": "closed", "data-size": size, "data-face": "off", children: /* @__PURE__ */ jsxs(
37
+ "button",
38
+ {
39
+ type: "button",
40
+ className: "crewlet-add-pill__mark",
41
+ "aria-label": label,
42
+ title: label,
43
+ tabIndex,
44
+ onClick: (event) => {
45
+ event.stopPropagation();
46
+ onOpen?.();
47
+ onAdd();
48
+ },
49
+ children: [
50
+ /* @__PURE__ */ jsx("span", { className: "crewlet-add-pill__disc", "aria-hidden": "true" }),
51
+ /* @__PURE__ */ jsx(AddCircleGlyph, {})
52
+ ]
53
+ }
54
+ ) });
55
+ }
56
+ function SplitAddPill({
9
57
  label,
10
58
  sections,
59
+ face = true,
11
60
  size = "sm",
12
61
  layout = "split",
13
62
  tabIndex,
@@ -72,9 +121,12 @@ function AddPill({
72
121
  "data-phase": phase,
73
122
  "data-size": size,
74
123
  "data-layout": layout,
124
+ "data-face": face ? void 0 : "off",
75
125
  ref: group,
76
126
  onBlur,
77
- onMouseEnter: () => setPhase((was) => was === "locked" ? was : "preview"),
127
+ onMouseEnter: () => {
128
+ if (face) setPhase((was) => was === "locked" ? was : "preview");
129
+ },
78
130
  onMouseLeave: () => {
79
131
  if (phase === "preview") close(false);
80
132
  },
@@ -93,10 +145,7 @@ function AddPill({
93
145
  onClick: press,
94
146
  children: [
95
147
  /* @__PURE__ */ jsx("span", { className: "crewlet-add-pill__disc", "aria-hidden": "true" }),
96
- /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", focusable: "false", children: [
97
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7" }),
98
- /* @__PURE__ */ jsx("path", { d: "M8 4.5v7M4.5 8h7" })
99
- ] })
148
+ /* @__PURE__ */ jsx(AddCircleGlyph, {})
100
149
  ]
101
150
  }
102
151
  ),
@@ -137,4 +186,4 @@ function AddPill({
137
186
  );
138
187
  }
139
188
 
140
- export { ADD_PILL_MS, AddPill };
189
+ export { ADD_PILL_MS, AddCircleGlyph, AddPill };
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
3
3
  import { HueSwatch } from './chunk-NFLSK6T3.js';
4
4
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
@@ -1,4 +1,4 @@
1
- import { AvatarStack } from './chunk-T7Y5FM4B.js';
1
+ import { AvatarStack } from './chunk-X2CFDU5S.js';
2
2
  import { Tag } from './chunk-ASBBB5AJ.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ChatScale-LGESYXCO.css';
@@ -1,4 +1,4 @@
1
- import { OrgLabel } from './chunk-NIM7LEEI.js';
1
+ import { OrgLabel } from './chunk-BZLQHZKH.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './OrgNode-6OCBAIBK.css';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { GridHeadCell } from './chunk-M34LSGMH.js';
1
+ import { GridHeadCell } from './chunk-WU73BKXL.js';
2
2
  import { copyGlyph, CopyStatus } from './chunk-5WJKJGL4.js';
3
3
  import { useClipboard } from './chunk-STJ7QBC3.js';
4
4
  import { StatusDot } from './chunk-QRE6JCHS.js';
@@ -6,7 +6,7 @@ import { Button } from './chunk-NMIXL2YH.js';
6
6
  import { IconButton } from './chunk-CMEZGORB.js';
7
7
  import { returnFocus } from './chunk-4ITETIGZ.js';
8
8
  import { cx } from './chunk-ODEQTPFM.js';
9
- import './DataGrid-K2L4ZOUH.css';
9
+ import './DataGrid-UGOZXHJS.css';
10
10
  import './SettingsTable-IMFNMIJI.css';
11
11
  import { useState, useRef, useLayoutEffect } from 'react';
12
12
  import { RotateCcwGlyph } from '@crewlethq/icons/glyphs';
@@ -6,7 +6,7 @@ import { useFocusModality, returnFocus } from './chunk-4ITETIGZ.js';
6
6
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './HitArea-QUOS6ZDJ.css';
9
- import './Select-2FAOIL73.css';
9
+ import './Select-DRBDKBRO.css';
10
10
  import { forwardRef, useId, useMemo, useState, useRef, useCallback, useEffect, useLayoutEffect } from 'react';
11
11
  import { createPortal } from 'react-dom';
12
12
  import { ChevronDownGlyph, CheckGlyph, SearchGlyph } from '@crewlethq/icons/glyphs';
@@ -31,6 +31,8 @@ var Select = forwardRef(function Select2({
31
31
  active = false,
32
32
  error: errorProp,
33
33
  appearance = "field",
34
+ inset = "default",
35
+ hintColumn = "inline",
34
36
  ariaLabel,
35
37
  searchable = false,
36
38
  searchPlaceholder = "Search",
@@ -45,7 +47,12 @@ var Select = forwardRef(function Select2({
45
47
  useFocusModality();
46
48
  const generatedId = useId();
47
49
  const rootId = id ?? generatedId;
48
- const classes = cx(className, width === "auto" && "crewlet-select--auto", appearance === "quiet" && "crewlet-select--quiet");
50
+ const classes = cx(
51
+ className,
52
+ width === "auto" && "crewlet-select--auto",
53
+ appearance === "quiet" && "crewlet-select--quiet",
54
+ inset === "flush" && "crewlet-select--flush"
55
+ );
49
56
  const chosen = useMemo(() => {
50
57
  if (multiple) return Array.isArray(value) ? value : [];
51
58
  if (value === void 0 || value === null) return [];
@@ -108,6 +115,7 @@ var Select = forwardRef(function Select2({
108
115
  multiple,
109
116
  renderTrigger,
110
117
  renderOption,
118
+ hintColumn,
111
119
  renderMultiLabel,
112
120
  emptyMessage,
113
121
  onHighlight,
@@ -196,6 +204,7 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
196
204
  multiple,
197
205
  renderTrigger,
198
206
  renderOption,
207
+ hintColumn,
199
208
  renderMultiLabel,
200
209
  emptyMessage,
201
210
  onHighlight,
@@ -242,6 +251,7 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
242
251
  const flat = useMemo(() => groups.flatMap((group) => group.items), [groups]);
243
252
  const described = useMemo(() => options.some((option) => Boolean(option.description)), [options]);
244
253
  const tickAtEnd = useMemo(() => flat.some((option) => option.leading !== void 0), [flat]);
254
+ const fitted = hintColumn === "fit";
245
255
  const close = useCallback((restore) => {
246
256
  setOpen(false);
247
257
  setQuery("");
@@ -439,6 +449,19 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
439
449
  }
440
450
  };
441
451
  };
452
+ const content = (option, highlighted, selected, tick, hint = true) => renderOption ? renderOption(option, { active: highlighted, selected }) : /* @__PURE__ */ jsxs(Fragment, { children: [
453
+ tickAtEnd ? null : tick,
454
+ option.leading !== void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-select__option-leading", "aria-hidden": "true", children: option.leading }) : null,
455
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-select__option-body", children: [
456
+ /* @__PURE__ */ jsx("span", { className: "crewlet-select__option-label", children: option.label }),
457
+ option.description ? /* @__PURE__ */ jsx("span", { className: "crewlet-select__option-desc", children: option.description }) : null
458
+ ] }),
459
+ hint && option.hint !== void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
460
+ " ",
461
+ /* @__PURE__ */ jsx("span", { className: "crewlet-listbox__hint", children: option.hint })
462
+ ] }) : null,
463
+ tickAtEnd ? tick : null
464
+ ] });
442
465
  let index = -1;
443
466
  const rows = groups.map((group, position2) => {
444
467
  const items = group.items.map((option) => {
@@ -471,19 +494,11 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
471
494
  option.disabled && "is-disabled"
472
495
  ),
473
496
  ...option.disabled ? {} : optionHandlers(at),
474
- children: renderOption ? renderOption(option, { active: highlighted, selected }) : /* @__PURE__ */ jsxs(Fragment, { children: [
475
- tickAtEnd ? null : tick,
476
- option.leading !== void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-select__option-leading", "aria-hidden": "true", children: option.leading }) : null,
477
- /* @__PURE__ */ jsxs("span", { className: "crewlet-select__option-body", children: [
478
- /* @__PURE__ */ jsx("span", { className: "crewlet-select__option-label", children: option.label }),
479
- option.description ? /* @__PURE__ */ jsx("span", { className: "crewlet-select__option-desc", children: option.description }) : null
480
- ] }),
481
- option.hint !== void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
482
- " ",
483
- /* @__PURE__ */ jsx("span", { className: "crewlet-listbox__hint", children: option.hint })
484
- ] }) : null,
485
- tickAtEnd ? tick : null
486
- ] })
497
+ children: fitted ? /* @__PURE__ */ jsxs(Fragment, { children: [
498
+ /* @__PURE__ */ jsx("span", { className: "crewlet-select__option-main", children: content(option, highlighted, selected, tick, renderOption !== void 0) }),
499
+ " ",
500
+ /* @__PURE__ */ jsx("span", { className: "crewlet-listbox__hint crewlet-select__option-hint", children: renderOption ? null : option.hint })
501
+ ] }) : content(option, highlighted, selected, tick)
487
502
  },
488
503
  String(option.value)
489
504
  );
@@ -553,7 +568,7 @@ var ListboxSelect = forwardRef(function ListboxSelect2({
553
568
  list.current = el;
554
569
  },
555
570
  id: listId,
556
- className: cx("crewlet-listbox", "crewlet-select__list"),
571
+ className: cx("crewlet-listbox", "crewlet-select__list", fitted && "crewlet-select__list--fit"),
557
572
  role: "listbox",
558
573
  "aria-label": ariaLabel ?? placeholder,
559
574
  "aria-multiselectable": multiple || void 0,
@@ -1,10 +1,10 @@
1
- import { TreeGrid } from './chunk-WDVENT6N.js';
2
- import { OrgLabel } from './chunk-NIM7LEEI.js';
1
+ import { TreeGrid } from './chunk-72AZMU55.js';
2
+ import { OrgLabel } from './chunk-BZLQHZKH.js';
3
3
  import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
4
- import { AddPill } from './chunk-5CCM3DDA.js';
4
+ import { AddPill } from './chunk-EHRNLV3D.js';
5
5
  import { IconButton } from './chunk-CMEZGORB.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
- import './OrgTable-5NXRECVP.css';
7
+ import './OrgTable-73WNQCH3.css';
8
8
  import { useMemo, useRef, useImperativeHandle, useCallback } from 'react';
9
9
  import { ChevronDownGlyph, ChevronUpGlyph } from '@crewlethq/icons/glyphs';
10
10
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -138,9 +138,16 @@ function OrgTableName({ tone, ...content }) {
138
138
  function OrgTableActions({
139
139
  children,
140
140
  shown = false,
141
+ slots,
141
142
  className
142
143
  }) {
143
- return /* @__PURE__ */ jsx("span", { className: cx("crewlet-org-table__actions", className), "data-shown": shown ? "" : void 0, children });
144
+ if (slots !== void 0 && (!Number.isInteger(slots) || slots < 1)) {
145
+ throw new RangeError(`OrgTableActions slots must be a whole number of at least 1; it was ${slots}`);
146
+ }
147
+ const room = slots === void 0 ? void 0 : {
148
+ "--crewlet-org-table-strip": `calc(var(--size-control-sm) * ${slots} + var(--spacing-1) * ${slots - 1})`
149
+ };
150
+ return /* @__PURE__ */ jsx("span", { className: cx("crewlet-org-table__actions", className), "data-shown": shown ? "" : void 0, style: room, children });
144
151
  }
145
152
  function OrgTableAdd({ onOpen, placement = "end", className, ...pill }) {
146
153
  return /* @__PURE__ */ jsx(
@@ -1,4 +1,4 @@
1
- import { AvatarStack } from './chunk-T7Y5FM4B.js';
1
+ import { AvatarStack } from './chunk-X2CFDU5S.js';
2
2
  import { Avatar } from './chunk-YMFFGPFE.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { BouncingDots, WorkingLine } from './chunk-BYU7YSOM.js';
1
+ import { BouncingDots, WorkingLine } from './chunk-S33O4PTO.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ChatScale-LGESYXCO.css';
4
4
  import './ActivityLine-6RZHUYAC.css';
@@ -1,4 +1,4 @@
1
- import { ValueField } from './chunk-S3WUN7GH.js';
1
+ import { ValueField } from './chunk-A42UVBJQ.js';
2
2
  import { RefusalStrip, ReceiptStrip } from './chunk-LCJC3LTP.js';
3
3
  import { StatusCard } from './chunk-WLIODLUL.js';
4
4
  import { toInstant, currentNow, formatUntil, useNow, formatExact, toISO } from './chunk-5ZL3PXEL.js';
@@ -97,13 +97,24 @@ function GridHeadCell({
97
97
  const word = headerWord(column);
98
98
  const glyph = !word && !column.action ? column.label : void 0;
99
99
  const named = word ? void 0 : glyph ?? (column.action && !worded ? column.label ?? actionsLabel : void 0);
100
- return /* @__PURE__ */ jsxs("div", { className: headClass, role: "columnheader", "aria-colindex": colIndex, title: glyph, "aria-sort": ariaSort, children: [
101
- label,
102
- mark,
103
- named && /* @__PURE__ */ jsx(VisuallyHidden, { children: named })
104
- ] });
100
+ return /* @__PURE__ */ jsxs(
101
+ "div",
102
+ {
103
+ className: headClass,
104
+ "data-align": column.align,
105
+ role: "columnheader",
106
+ "aria-colindex": colIndex,
107
+ title: glyph,
108
+ "aria-sort": ariaSort,
109
+ children: [
110
+ label,
111
+ mark,
112
+ named && /* @__PURE__ */ jsx(VisuallyHidden, { children: named })
113
+ ]
114
+ }
115
+ );
105
116
  }
106
- return /* @__PURE__ */ jsx("div", { className: headClass, role: "columnheader", "aria-colindex": colIndex, "aria-sort": ariaSort, children: /* @__PURE__ */ jsxs(
117
+ return /* @__PURE__ */ jsx("div", { className: headClass, "data-align": column.align, role: "columnheader", "aria-colindex": colIndex, "aria-sort": ariaSort, children: /* @__PURE__ */ jsxs(
107
118
  "button",
108
119
  {
109
120
  type: "button",
@@ -2,7 +2,7 @@ import { shownBeforeOverflow } from './chunk-EX5XAEST.js';
2
2
  import { AVATAR_SIZES, Avatar } from './chunk-YMFFGPFE.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './Avatar-NPFII656.css';
5
- import './AvatarStack-UNBXFHTZ.css';
5
+ import './AvatarStack-6N6V7L7L.css';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
7
 
8
8
  function counted(count, one, many) {
@@ -23,6 +23,7 @@ function AvatarStack({
23
23
  spread = false,
24
24
  label,
25
25
  decorative = false,
26
+ ground,
26
27
  className,
27
28
  style,
28
29
  ...rest
@@ -44,7 +45,11 @@ function AvatarStack({
44
45
  spread && "crewlet-avatar-stack--spread",
45
46
  className
46
47
  ),
47
- style: { "--crewlet-avatar-stack-size": `${typeof size === "number" ? size : AVATAR_SIZES[size]}px`, ...style },
48
+ style: {
49
+ "--crewlet-avatar-stack-size": `${typeof size === "number" ? size : AVATAR_SIZES[size]}px`,
50
+ ...ground === void 0 ? null : { "--crewlet-avatar-stack-ground": ground },
51
+ ...style
52
+ },
48
53
  role: decorative ? void 0 : "img",
49
54
  "aria-label": decorative ? void 0 : label ?? avatarStackLabel(members),
50
55
  "aria-hidden": decorative ? true : void 0,