@crewlethq/ui 0.179.0 → 0.181.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 (71) hide show
  1. package/README.md +48 -2
  2. package/dist/AgentIdentity/AgentIdentitySheet.d.ts +11 -0
  3. package/dist/AgentIdentity/index.d.ts +1 -1
  4. package/dist/AgentIdentity/index.js +9 -3
  5. package/dist/ArrangeList/index.js +1 -1
  6. package/dist/ArtifactCard/index.js +2 -2
  7. package/dist/AssignmentList/AssignmentList.d.ts +63 -0
  8. package/dist/AssignmentList/index.d.ts +3 -0
  9. package/dist/AssignmentList/index.js +8 -0
  10. package/dist/AssignmentList-JIUZFZGQ.css +257 -0
  11. package/dist/ChangeList/ChangeGroups.d.ts +28 -0
  12. package/dist/ChangeList/ChangeList.d.ts +18 -1
  13. package/dist/ChangeList/index.d.ts +2 -0
  14. package/dist/ChangeList/index.js +11 -1
  15. package/dist/{ChangeList-R4UZBGU5.css → ChangeList-2VAPZDT3.css} +99 -0
  16. package/dist/CommandPalette/index.js +14 -2
  17. package/dist/ConfirmModal-V2OAWUGJ.css +14 -0
  18. package/dist/ConsequenceList/ConsequenceList.d.ts +63 -0
  19. package/dist/ConsequenceList/index.d.ts +3 -0
  20. package/dist/ConsequenceList/index.js +23 -0
  21. package/dist/ConsequenceList-5TXFZPMG.css +68 -0
  22. package/dist/ContrastHelp/index.js +1 -1
  23. package/dist/DataGrid/index.js +2 -2
  24. package/dist/DataTable/index.js +15 -3
  25. package/dist/DataView/index.js +17 -6
  26. package/dist/DateTimePicker/index.js +2 -2
  27. package/dist/GraphCanvas/index.js +2 -2
  28. package/dist/InboxList/index.js +2 -2
  29. package/dist/LinkInterstitial/index.js +20 -3
  30. package/dist/Modal/ConfirmModal.d.ts +35 -2
  31. package/dist/Modal/index.d.ts +1 -0
  32. package/dist/Modal/index.js +20 -1
  33. package/dist/OrgTable/index.js +4 -4
  34. package/dist/ProposalCard/index.js +4 -4
  35. package/dist/RailList/index.js +1 -1
  36. package/dist/ScopeList/index.js +2 -2
  37. package/dist/ShareDialog/index.js +20 -3
  38. package/dist/SheetColumnEditor/index.js +2 -2
  39. package/dist/Switcher/index.js +15 -3
  40. package/dist/TimeRangePicker/index.js +13 -2
  41. package/dist/TimeWindowPicker/index.js +2 -2
  42. package/dist/TreeGrid/index.js +3 -3
  43. package/dist/{chunk-PL4YO2KU.js → chunk-2V4QQ4NB.js} +2 -2
  44. package/dist/{chunk-KCR6RKGG.js → chunk-3WJCTKUH.js} +1 -1
  45. package/dist/{chunk-L5O34MMN.js → chunk-AXKB6RKG.js} +2 -2
  46. package/dist/{chunk-FC225TSK.js → chunk-BEYMQKP3.js} +33 -2
  47. package/dist/{chunk-SN2FN2XW.js → chunk-D54HL3AN.js} +103 -14
  48. package/dist/{chunk-LJPDOZFS.js → chunk-G7YITKUF.js} +2 -2
  49. package/dist/{chunk-4P5JJR6R.js → chunk-J66BRPSY.js} +9 -2
  50. package/dist/{chunk-LOYYHQDP.js → chunk-JLUXCPKS.js} +2 -2
  51. package/dist/{chunk-5JP6ZHF7.js → chunk-L5DGZMVI.js} +2 -2
  52. package/dist/{chunk-NWSENJPQ.js → chunk-NYIVZNML.js} +2 -2
  53. package/dist/chunk-RJHSGJ7E.js +68 -0
  54. package/dist/{chunk-L3QL5QLE.js → chunk-RP7OCGCP.js} +1 -1
  55. package/dist/{chunk-ARHSHTHV.js → chunk-S2KWNN2Y.js} +1 -1
  56. package/dist/{chunk-7NR5342C.js → chunk-WG7GNCUQ.js} +1 -1
  57. package/dist/chunk-WRIUIQHA.js +90 -0
  58. package/dist/generated/index.d.ts +2 -0
  59. package/dist/generated/index.js +93 -91
  60. package/dist/index.js +93 -91
  61. package/dist/styles.css +448 -1
  62. package/package.json +3 -3
  63. package/dist/{chunk-62PXO2IU.js → chunk-3ZMDQUFO.js} +1 -1
  64. package/dist/{chunk-2EBAGM5E.js → chunk-H6NPUCDU.js} +1 -1
  65. package/dist/{chunk-HHRPF6GA.js → chunk-JLZ37UFI.js} +1 -1
  66. package/dist/{chunk-5643FBGN.js → chunk-KF7ZOWJW.js} +1 -1
  67. package/dist/{chunk-2NG3FADF.js → chunk-QFO375KV.js} +1 -1
  68. package/dist/{chunk-EULC6OBU.js → chunk-R4A2Y7HG.js} +1 -1
  69. package/dist/{chunk-OD7LFCYV.js → chunk-UTPLRVXN.js} +1 -1
  70. package/dist/{chunk-RFJI4VGF.js → chunk-XADL7CMK.js} +1 -1
  71. /package/dist/{chunk-IMD3SCK7.js → chunk-YDDWUJ4O.js} +0 -0
@@ -1,4 +1,4 @@
1
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-L3QL5QLE.js';
1
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-RP7OCGCP.js';
2
2
  import '../chunk-D5UVJL4I.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-265IX4YA.js';
@@ -11,12 +11,27 @@ import '../chunk-GKVQL352.js';
11
11
  import '../chunk-G5HHQ3RD.js';
12
12
  import '../chunk-STJ7QBC3.js';
13
13
  import '../chunk-DTIW4CHZ.js';
14
- import '../chunk-HZXS5CEL.js';
15
- import '../chunk-FC225TSK.js';
14
+ import '../chunk-BEYMQKP3.js';
15
+ import '../chunk-RJHSGJ7E.js';
16
+ import '../chunk-D54HL3AN.js';
17
+ import '../chunk-7XUP32RY.js';
16
18
  import '../chunk-UJYSDWQ7.js';
19
+ import '../chunk-RK4XPHVG.js';
20
+ import '../chunk-W4UJWFCZ.js';
21
+ import '../chunk-HZXS5CEL.js';
22
+ import '../chunk-HOIZJFYS.js';
23
+ import '../chunk-QRE6JCHS.js';
24
+ import '../chunk-WSIJDWUG.js';
25
+ import '../chunk-X6FJSY3C.js';
26
+ import '../chunk-RUROK3EU.js';
17
27
  import '../chunk-JYJ24UUX.js';
18
28
  import '../chunk-XSPCITPN.js';
29
+ import '../chunk-KH4HKMXF.js';
30
+ import '../chunk-NICEDVZM.js';
19
31
  import '../chunk-JLKO7PSK.js';
32
+ import '../chunk-AKLZJTOJ.js';
33
+ import '../chunk-TEXK4RK6.js';
34
+ import '../chunk-WGMKERCR.js';
20
35
  import '../chunk-VM73Y6TO.js';
21
36
  import '../chunk-TDFLCUBE.js';
22
37
  import '../chunk-QB3VHZRB.js';
@@ -25,6 +40,8 @@ import '../chunk-AVJKMQXK.js';
25
40
  import '../chunk-EDPMHSLZ.js';
26
41
  import '../chunk-HTS5RJ7S.js';
27
42
  import '../chunk-4ITETIGZ.js';
43
+ import '../chunk-UJRRF6RY.js';
44
+ import '../chunk-6YKTRAWI.js';
28
45
  import '../chunk-PQADV6P6.js';
29
46
  import '../chunk-RRRK2KB6.js';
30
47
  import '../chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-EULC6OBU.js';
1
+ export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-R4A2Y7HG.js';
2
2
  import '../chunk-FFMCMSJB.js';
3
3
  import '../chunk-D5UVJL4I.js';
4
4
  import '../chunk-KW7T23RT.js';
@@ -10,10 +10,10 @@ import '../chunk-4GPXNMIG.js';
10
10
  import '../chunk-SZKYOOCS.js';
11
11
  import '../chunk-7F3OPUM5.js';
12
12
  import '../chunk-QHPKLY4V.js';
13
- import '../chunk-X6FJSY3C.js';
14
13
  import '../chunk-VBBLHS2Y.js';
15
14
  import '../chunk-2YTOOH3A.js';
16
15
  import '../chunk-QRE6JCHS.js';
16
+ import '../chunk-X6FJSY3C.js';
17
17
  import '../chunk-JYJ24UUX.js';
18
18
  import '../chunk-XSPCITPN.js';
19
19
  import '../chunk-KH4HKMXF.js';
@@ -1,13 +1,23 @@
1
- export { Switcher } from '../chunk-L5O34MMN.js';
1
+ export { Switcher } from '../chunk-AXKB6RKG.js';
2
2
  import '../chunk-KW7T23RT.js';
3
- import '../chunk-HBDA76EZ.js';
4
3
  import '../chunk-AJFA2XDQ.js';
4
+ import '../chunk-HBDA76EZ.js';
5
5
  import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-SK4BIFTG.js';
7
7
  import '../chunk-COS6LJ4K.js';
8
- import '../chunk-FC225TSK.js';
8
+ import '../chunk-BEYMQKP3.js';
9
+ import '../chunk-RJHSGJ7E.js';
10
+ import '../chunk-D54HL3AN.js';
11
+ import '../chunk-7XUP32RY.js';
12
+ import '../chunk-RK4XPHVG.js';
13
+ import '../chunk-W4UJWFCZ.js';
14
+ import '../chunk-HZXS5CEL.js';
15
+ import '../chunk-HOIZJFYS.js';
16
+ import '../chunk-QRE6JCHS.js';
9
17
  import '../chunk-475DOAWF.js';
10
18
  import '../chunk-WSIJDWUG.js';
19
+ import '../chunk-X6FJSY3C.js';
20
+ import '../chunk-RUROK3EU.js';
11
21
  import '../chunk-JYJ24UUX.js';
12
22
  import '../chunk-XSPCITPN.js';
13
23
  import '../chunk-KH4HKMXF.js';
@@ -24,6 +34,8 @@ import '../chunk-AVJKMQXK.js';
24
34
  import '../chunk-EDPMHSLZ.js';
25
35
  import '../chunk-HTS5RJ7S.js';
26
36
  import '../chunk-4ITETIGZ.js';
37
+ import '../chunk-UJRRF6RY.js';
38
+ import '../chunk-6YKTRAWI.js';
27
39
  import '../chunk-PQADV6P6.js';
28
40
  import '../chunk-RRRK2KB6.js';
29
41
  import '../chunk-ODEQTPFM.js';
@@ -1,13 +1,23 @@
1
- export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-ARHSHTHV.js';
1
+ export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-S2KWNN2Y.js';
2
2
  import '../chunk-DG6H4EO2.js';
3
3
  import '../chunk-4GPXNMIG.js';
4
4
  import '../chunk-SZKYOOCS.js';
5
5
  import '../chunk-7F3OPUM5.js';
6
6
  import '../chunk-QHPKLY4V.js';
7
7
  import '../chunk-2YTOOH3A.js';
8
- import '../chunk-FC225TSK.js';
8
+ import '../chunk-BEYMQKP3.js';
9
+ import '../chunk-RJHSGJ7E.js';
10
+ import '../chunk-D54HL3AN.js';
11
+ import '../chunk-7XUP32RY.js';
9
12
  import '../chunk-UJYSDWQ7.js';
13
+ import '../chunk-RK4XPHVG.js';
14
+ import '../chunk-W4UJWFCZ.js';
15
+ import '../chunk-HZXS5CEL.js';
16
+ import '../chunk-HOIZJFYS.js';
10
17
  import '../chunk-QRE6JCHS.js';
18
+ import '../chunk-WSIJDWUG.js';
19
+ import '../chunk-X6FJSY3C.js';
20
+ import '../chunk-RUROK3EU.js';
11
21
  import '../chunk-JYJ24UUX.js';
12
22
  import '../chunk-XSPCITPN.js';
13
23
  import '../chunk-KH4HKMXF.js';
@@ -24,6 +34,7 @@ import '../chunk-AVJKMQXK.js';
24
34
  import '../chunk-EDPMHSLZ.js';
25
35
  import '../chunk-HTS5RJ7S.js';
26
36
  import '../chunk-4ITETIGZ.js';
37
+ import '../chunk-UJRRF6RY.js';
27
38
  import '../chunk-6YKTRAWI.js';
28
39
  import '../chunk-PQADV6P6.js';
29
40
  import '../chunk-RRRK2KB6.js';
@@ -1,8 +1,8 @@
1
- export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-2EBAGM5E.js';
1
+ export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-H6NPUCDU.js';
2
2
  import '../chunk-D5UVJL4I.js';
3
3
  import '../chunk-KW7T23RT.js';
4
- import '../chunk-EE3DJMSQ.js';
5
4
  import '../chunk-AJFA2XDQ.js';
5
+ import '../chunk-EE3DJMSQ.js';
6
6
  import '../chunk-2YTOOH3A.js';
7
7
  import '../chunk-JYJ24UUX.js';
8
8
  import '../chunk-XSPCITPN.js';
@@ -1,15 +1,15 @@
1
- export { TreeGrid } from '../chunk-LJPDOZFS.js';
1
+ export { TreeGrid } from '../chunk-G7YITKUF.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-2NG3FADF.js';
3
+ import '../chunk-QFO375KV.js';
4
4
  import '../chunk-QBLBUPHO.js';
5
5
  import '../chunk-CUEPPDBC.js';
6
6
  import '../chunk-WFAJYBLX.js';
7
7
  import '../chunk-JMBPMSNI.js';
8
- import '../chunk-X6FJSY3C.js';
9
8
  import '../chunk-HG7J6I65.js';
10
9
  import '../chunk-SK4BIFTG.js';
11
10
  import '../chunk-COS6LJ4K.js';
12
11
  import '../chunk-WSIJDWUG.js';
12
+ import '../chunk-X6FJSY3C.js';
13
13
  import '../chunk-JYJ24UUX.js';
14
14
  import '../chunk-XSPCITPN.js';
15
15
  import '../chunk-KH4HKMXF.js';
@@ -1,6 +1,6 @@
1
- import { InlineCode } from './chunk-W4UJWFCZ.js';
2
- import { ConfirmModal } from './chunk-FC225TSK.js';
1
+ import { ConfirmModal } from './chunk-BEYMQKP3.js';
3
2
  import { Callout } from './chunk-UJYSDWQ7.js';
3
+ import { InlineCode } from './chunk-W4UJWFCZ.js';
4
4
  import './LinkInterstitial-ET4MSVSV.css';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { useListbox, useHighlightRest } from './chunk-KW7T23RT.js';
2
2
  import { Kbd } from './chunk-VBBLHS2Y.js';
3
3
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
4
- import { useScrollerFocus, Modal } from './chunk-FC225TSK.js';
4
+ import { useScrollerFocus, Modal } from './chunk-BEYMQKP3.js';
5
5
  import { Input } from './chunk-KH4HKMXF.js';
6
6
  import { isComposing } from './chunk-EDPMHSLZ.js';
7
7
  import { Count } from './chunk-6YKTRAWI.js';
@@ -1,9 +1,9 @@
1
1
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
2
- import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
3
2
  import { Popover } from './chunk-AJFA2XDQ.js';
3
+ import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
4
4
  import { Skeleton } from './chunk-WFAJYBLX.js';
5
5
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
6
- import { Modal } from './chunk-FC225TSK.js';
6
+ import { Modal } from './chunk-BEYMQKP3.js';
7
7
  import { Text } from './chunk-475DOAWF.js';
8
8
  import { Input } from './chunk-KH4HKMXF.js';
9
9
  import { announce } from './chunk-WGMKERCR.js';
@@ -1,3 +1,5 @@
1
+ import { consequencesAnswered, ConsequenceList } from './chunk-RJHSGJ7E.js';
2
+ import { ChangeGroups } from './chunk-D54HL3AN.js';
1
3
  import { Button } from './chunk-JYJ24UUX.js';
2
4
  import { IconButton } from './chunk-VM73Y6TO.js';
3
5
  import { useComposedRef } from './chunk-L72URIHR.js';
@@ -6,6 +8,7 @@ import { focusables, useModalLayer, useBodyScrollLock } from './chunk-EDPMHSLZ.j
6
8
  import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
7
9
  import { cx } from './chunk-ODEQTPFM.js';
8
10
  import './Modal-TVHT3TEL.css';
11
+ import './ConfirmModal-V2OAWUGJ.css';
9
12
  import { useState, useLayoutEffect, useId, useRef, useCallback } from 'react';
10
13
  import { createPortal } from 'react-dom';
11
14
  import { ChevronLeftGlyph, XGlyph } from '@crewlethq/icons/glyphs';
@@ -287,6 +290,13 @@ function ConfirmModal({
287
290
  onConfirm,
288
291
  title,
289
292
  message,
293
+ moveTo,
294
+ changes,
295
+ changesHeading,
296
+ changesCollapseAfter,
297
+ consequences,
298
+ consequencesHeading,
299
+ alternative,
290
300
  children,
291
301
  confirmLabel = "Confirm",
292
302
  cancelLabel = "Cancel",
@@ -302,7 +312,9 @@ function ConfirmModal({
302
312
  }) {
303
313
  const messageId = `${useId()}-message`;
304
314
  const resolvedConfirm = confirmVariant ?? (destructive ? "danger" : "primary");
305
- const blocked = confirmDisabled || submitting;
315
+ const unanswered = !consequencesAnswered(consequences);
316
+ const held = confirmDisabled || unanswered;
317
+ const blocked = held || submitting;
306
318
  const submit = useCallback(() => {
307
319
  if (blocked) return;
308
320
  void (async () => {
@@ -326,6 +338,7 @@ function ConfirmModal({
326
338
  closeDisabledReason: busyReason,
327
339
  onSubmit: submit,
328
340
  stackBody: true,
341
+ footerStart: alternative ? /* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: alternative.onSelect, disabledReason: submitting ? busyReason : void 0, children: alternative.label }) : void 0,
329
342
  footer: /* @__PURE__ */ jsxs(Fragment, { children: [
330
343
  /* @__PURE__ */ jsx(
331
344
  Button,
@@ -342,13 +355,31 @@ function ConfirmModal({
342
355
  type: "submit",
343
356
  variant: resolvedConfirm,
344
357
  loading: submitting,
345
- disabledReason: confirmDisabled ? confirmDisabledReason : void 0,
358
+ disabledReason: held ? confirmDisabledReason : void 0,
346
359
  children: confirmLabel
347
360
  }
348
361
  )
349
362
  ] }),
350
363
  children: [
351
364
  given(message) ? /* @__PURE__ */ jsx("p", { className: "crewlet-modal__message", id: messageId, children: message }) : null,
365
+ moveTo,
366
+ changes && changes.length > 0 ? /* @__PURE__ */ jsx(
367
+ ChangeGroups,
368
+ {
369
+ groups: changes,
370
+ heading: changesHeading,
371
+ collapseAfter: changesCollapseAfter,
372
+ className: "crewlet-confirm-modal__changes"
373
+ }
374
+ ) : null,
375
+ consequences && consequences.length > 0 ? /* @__PURE__ */ jsx(
376
+ ConsequenceList,
377
+ {
378
+ items: consequences,
379
+ heading: consequencesHeading,
380
+ className: "crewlet-confirm-modal__consequences"
381
+ }
382
+ ) : null,
352
383
  children
353
384
  ]
354
385
  }
@@ -1,10 +1,12 @@
1
1
  import { DiffList } from './chunk-7XUP32RY.js';
2
2
  import { Tag } from './chunk-HOIZJFYS.js';
3
+ import { titleWhenCut } from './chunk-WSIJDWUG.js';
3
4
  import { Disclosure } from './chunk-RUROK3EU.js';
5
+ import { Button } from './chunk-JYJ24UUX.js';
4
6
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
5
7
  import { cx } from './chunk-ODEQTPFM.js';
6
- import './ChangeList-R4UZBGU5.css';
7
- import { useId } from 'react';
8
+ import './ChangeList-2VAPZDT3.css';
9
+ import { useId, useState } from 'react';
8
10
  import { ArrowRightGlyph } from '@crewlethq/icons/glyphs';
9
11
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
12
 
@@ -17,7 +19,9 @@ var CHANGE_LIST_LABELS = {
17
19
  addedWords: "added:",
18
20
  removedWords: "removed:",
19
21
  betweenChanges: ";",
20
- showWhole: "Show the whole change"
22
+ showWhole: "Show the whole change",
23
+ more: (hidden) => `Show ${hidden} more`,
24
+ less: "Show fewer"
21
25
  };
22
26
  var CHANGE_LIST_COLLAPSE_OVER = 80;
23
27
  var ELLIPSIS = "\u2026";
@@ -130,33 +134,35 @@ function ChipValue({ row, labels }) {
130
134
  function Value({
131
135
  row,
132
136
  labels,
133
- inline
137
+ inline,
138
+ truncate
134
139
  }) {
135
140
  if (row.block) return /* @__PURE__ */ jsx(BlockValue, { row, labels });
136
141
  if (inline) return /* @__PURE__ */ jsx(ChipValue, { row, labels });
142
+ const cut = truncate ? titleWhenCut : void 0;
137
143
  switch (row.kind) {
138
144
  case "fact":
139
- return /* @__PURE__ */ jsx("span", { className: "crewlet-change-list__fact", children: row.value });
145
+ return /* @__PURE__ */ jsx("span", { className: "crewlet-change-list__fact", onMouseEnter: cut, children: row.value });
140
146
  case "changed":
141
147
  return /* @__PURE__ */ jsxs("span", { className: "crewlet-change-list__pair", children: [
142
148
  /* @__PURE__ */ jsx(VisuallyHidden, { children: `${labels.changedFrom} ` }),
143
- /* @__PURE__ */ jsx("del", { className: "crewlet-change-list__from", children: row.from }),
149
+ /* @__PURE__ */ jsx("del", { className: "crewlet-change-list__from", onMouseEnter: cut, children: row.from }),
144
150
  /* @__PURE__ */ jsxs("span", { className: "crewlet-change-list__next", children: [
145
151
  /* @__PURE__ */ jsx(ArrowRightGlyph, { size: "sm", className: "crewlet-change-list__arrow" }),
146
152
  /* @__PURE__ */ jsx(VisuallyHidden, { children: ` ${labels.to} ` }),
147
- /* @__PURE__ */ jsx("ins", { className: "crewlet-change-list__to", children: row.to })
153
+ /* @__PURE__ */ jsx("ins", { className: "crewlet-change-list__to", onMouseEnter: cut, children: row.to })
148
154
  ] })
149
155
  ] });
150
156
  case "added":
151
157
  return /* @__PURE__ */ jsxs("span", { className: "crewlet-change-list__pair", children: [
152
- /* @__PURE__ */ jsxs("ins", { className: "crewlet-change-list__to", children: [
158
+ /* @__PURE__ */ jsxs("ins", { className: "crewlet-change-list__to", onMouseEnter: cut, children: [
153
159
  /* @__PURE__ */ jsx(VisuallyHidden, { children: `${labels.added} ` }),
154
160
  row.to
155
161
  ] }),
156
162
  row.isNew ? /* @__PURE__ */ jsx(Tag, { size: "xs", variant: "success", children: labels.isNew }) : null
157
163
  ] });
158
164
  case "removed":
159
- return /* @__PURE__ */ jsxs("del", { className: "crewlet-change-list__removed", children: [
165
+ return /* @__PURE__ */ jsxs("del", { className: "crewlet-change-list__removed", onMouseEnter: cut, children: [
160
166
  /* @__PURE__ */ jsx(VisuallyHidden, { children: `${labels.removed} ` }),
161
167
  row.from
162
168
  ] });
@@ -165,6 +171,9 @@ function Value({
165
171
  function ChangeList({
166
172
  rows,
167
173
  heading,
174
+ subject,
175
+ truncate = false,
176
+ collapseAfter,
168
177
  layout = "grid",
169
178
  settled = false,
170
179
  labels: overrides,
@@ -173,6 +182,14 @@ function ChangeList({
173
182
  }) {
174
183
  const labels = overrides ? { ...CHANGE_LIST_LABELS, ...overrides } : CHANGE_LIST_LABELS;
175
184
  const headingId = useId();
185
+ const subjectId = `${headingId}-subject`;
186
+ const rowsId = `${headingId}-rows`;
187
+ const [expanded, setExpanded] = useState(false);
188
+ const hasHeading = heading !== void 0 && heading !== null;
189
+ const hasSubject = subject !== void 0 && subject !== null;
190
+ const folds = collapseAfter !== void 0 && rows.length > collapseAfter + 1;
191
+ const shown = folds && !expanded ? rows.slice(0, collapseAfter) : rows;
192
+ const named = cx(hasHeading && headingId, hasSubject && subjectId) || void 0;
176
193
  return /* @__PURE__ */ jsxs(
177
194
  "div",
178
195
  {
@@ -180,11 +197,13 @@ function ChangeList({
180
197
  "crewlet-change-list",
181
198
  layout === "inline" && "crewlet-change-list--inline",
182
199
  settled && "crewlet-change-list--settled",
200
+ truncate && "crewlet-change-list--truncate",
183
201
  className
184
202
  ),
185
203
  children: [
186
- heading === void 0 || heading === null ? null : /* @__PURE__ */ jsx("div", { id: headingId, className: "crewlet-change-list__heading", children: heading }),
187
- /* @__PURE__ */ jsx("dl", { className: "crewlet-change-list__rows", "aria-labelledby": heading === void 0 || heading === null ? void 0 : headingId, children: rows.map((row, index) => /* @__PURE__ */ jsxs(
204
+ hasHeading ? /* @__PURE__ */ jsx("div", { id: headingId, className: "crewlet-change-list__heading", children: heading }) : null,
205
+ hasSubject ? /* @__PURE__ */ jsx("div", { id: subjectId, className: "crewlet-change-list__subject", onMouseEnter: truncate ? titleWhenCut : void 0, children: subject }) : null,
206
+ /* @__PURE__ */ jsx("dl", { id: rowsId, className: "crewlet-change-list__rows", "aria-labelledby": named, children: shown.map((row, index) => /* @__PURE__ */ jsxs(
188
207
  "div",
189
208
  {
190
209
  className: cx(
@@ -198,16 +217,86 @@ function ChangeList({
198
217
  row.kind === "text" ? /* @__PURE__ */ jsxs(Fragment, { children: [
199
218
  /* @__PURE__ */ jsx(WordDiff, { row, labels }),
200
219
  row.whole && row.whole.length > 0 ? /* @__PURE__ */ jsx(Disclosure, { title: labels.showWhole, headingLevel: "none", size: "compact", className: "crewlet-change-list__whole", children: /* @__PURE__ */ jsx(DiffList, { rows: [...row.whole], layout: "auto", labels: diffLabels }) }) : null
201
- ] }) : /* @__PURE__ */ jsx(Value, { row, labels, inline: layout === "inline" }),
220
+ ] }) : /* @__PURE__ */ jsx(Value, { row, labels, inline: layout === "inline", truncate }),
202
221
  row.note === void 0 || row.note === null ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-change-list__note", children: row.note })
203
222
  ] })
204
223
  ]
205
224
  },
206
225
  `${index}:${row.label}`
207
- )) })
226
+ )) }),
227
+ folds ? /* @__PURE__ */ jsx(
228
+ Button,
229
+ {
230
+ variant: "ghost",
231
+ size: "small",
232
+ flush: true,
233
+ className: "crewlet-change-list__more",
234
+ "aria-expanded": expanded,
235
+ "aria-controls": rowsId,
236
+ onClick: () => setExpanded((open) => !open),
237
+ children: expanded ? labels.less : labels.more(rows.length - collapseAfter)
238
+ }
239
+ ) : null
240
+ ]
241
+ }
242
+ );
243
+ }
244
+ var CHANGE_GROUPS_COLLAPSE_AFTER = 3;
245
+ function plain(group) {
246
+ return group.subjectText ?? (typeof group.subject === "string" ? group.subject : "");
247
+ }
248
+ function ChangeGroups({
249
+ groups,
250
+ heading,
251
+ collapseAfter = CHANGE_GROUPS_COLLAPSE_AFTER,
252
+ rowsCollapseAfter,
253
+ labels: overrides,
254
+ className
255
+ }) {
256
+ const labels = overrides ? { ...CHANGE_LIST_LABELS, ...overrides } : CHANGE_LIST_LABELS;
257
+ const id = useId();
258
+ const [expanded, setExpanded] = useState(false);
259
+ const folds = groups.length > collapseAfter + 1;
260
+ const shown = folds && !expanded ? groups.slice(0, collapseAfter) : groups;
261
+ const hiddenNames = folds ? groups.slice(collapseAfter).map(plain).filter((name) => name !== "").join(", ") : "";
262
+ const hasHeading = heading !== void 0 && heading !== null;
263
+ return /* @__PURE__ */ jsxs(
264
+ "div",
265
+ {
266
+ role: "group",
267
+ "aria-labelledby": hasHeading ? `${id}-heading` : void 0,
268
+ className: cx("crewlet-change-groups", className),
269
+ children: [
270
+ hasHeading ? /* @__PURE__ */ jsx("div", { id: `${id}-heading`, className: "crewlet-change-list__heading", children: heading }) : null,
271
+ /* @__PURE__ */ jsx("div", { id: `${id}-groups`, className: "crewlet-change-groups__list", children: shown.map((group) => /* @__PURE__ */ jsx(
272
+ ChangeList,
273
+ {
274
+ subject: group.subject,
275
+ rows: group.rows,
276
+ truncate: true,
277
+ collapseAfter: rowsCollapseAfter,
278
+ labels
279
+ },
280
+ group.key
281
+ )) }),
282
+ folds ? /* @__PURE__ */ jsxs("div", { className: "crewlet-change-groups__more", children: [
283
+ /* @__PURE__ */ jsx(
284
+ Button,
285
+ {
286
+ variant: "ghost",
287
+ size: "small",
288
+ flush: true,
289
+ "aria-expanded": expanded,
290
+ "aria-controls": `${id}-groups`,
291
+ onClick: () => setExpanded((open) => !open),
292
+ children: expanded ? labels.less : labels.more(groups.length - collapseAfter)
293
+ }
294
+ ),
295
+ expanded || hiddenNames === "" ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-change-groups__hidden", onMouseEnter: titleWhenCut, children: hiddenNames })
296
+ ] }) : null
208
297
  ]
209
298
  }
210
299
  );
211
300
  }
212
301
 
213
- export { CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeList, ChangeListItems, shortenUnchanged };
302
+ export { CHANGE_GROUPS_COLLAPSE_AFTER, CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeGroups, ChangeList, ChangeListItems, shortenUnchanged };
@@ -1,10 +1,10 @@
1
1
  import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
2
- import { fitGridColumns } from './chunk-2NG3FADF.js';
2
+ import { fitGridColumns } from './chunk-QFO375KV.js';
3
3
  import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-QBLBUPHO.js';
4
4
  import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
5
- import { Checkbox } from './chunk-X6FJSY3C.js';
6
5
  import { EmptyState } from './chunk-HG7J6I65.js';
7
6
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
7
+ import { Checkbox } from './chunk-X6FJSY3C.js';
8
8
  import { IconButton } from './chunk-VM73Y6TO.js';
9
9
  import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-AVJKMQXK.js';
10
10
  import { focusables } from './chunk-EDPMHSLZ.js';
@@ -2,7 +2,7 @@ import { List, ListItem } from './chunk-GAQU5V5R.js';
2
2
  import { FileDrop, FilePickButton } from './chunk-J73XXTGG.js';
3
3
  import { StepList, Stepper } from './chunk-2MN3RNRM.js';
4
4
  import { Copyable } from './chunk-GKVQL352.js';
5
- import { Modal } from './chunk-FC225TSK.js';
5
+ import { Modal } from './chunk-BEYMQKP3.js';
6
6
  import { Callout } from './chunk-UJYSDWQ7.js';
7
7
  import { Tag } from './chunk-HOIZJFYS.js';
8
8
  import { Text } from './chunk-475DOAWF.js';
@@ -254,7 +254,14 @@ function Walk({
254
254
  else if (unfinished) state = "stopped";
255
255
  else if (verdict.ok) state = "done";
256
256
  else state = i < failedIndex ? "done" : i === failedIndex ? "failed" : "pending";
257
- return { id: r.id, label: r.label, state };
257
+ const found = state === "done" || state === "failed" ? verdict?.steps?.[r.id] : void 0;
258
+ return {
259
+ id: r.id,
260
+ label: r.label,
261
+ state,
262
+ ...found?.note ? { note: found.note } : {},
263
+ ...found?.detail ? { detail: found.detail } : {}
264
+ };
258
265
  });
259
266
  const vendorSteps = /* @__PURE__ */ jsx(VendorSteps, { steps, link });
260
267
  const content = {
@@ -1,9 +1,9 @@
1
1
  import { EmptyValue } from './chunk-WGLOH33S.js';
2
2
  import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
3
3
  import { Menu } from './chunk-QHPKLY4V.js';
4
- import { Checkbox } from './chunk-X6FJSY3C.js';
5
4
  import { useClipboard } from './chunk-STJ7QBC3.js';
6
- import { Modal } from './chunk-FC225TSK.js';
5
+ import { Modal } from './chunk-BEYMQKP3.js';
6
+ import { Checkbox } from './chunk-X6FJSY3C.js';
7
7
  import { Button } from './chunk-JYJ24UUX.js';
8
8
  import { IconButton } from './chunk-VM73Y6TO.js';
9
9
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,7 +1,7 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
2
  import { FilterPill } from './chunk-Z4TGAPC7.js';
3
- import { DataTable } from './chunk-LOYYHQDP.js';
4
- import { DateTimePicker } from './chunk-RFJI4VGF.js';
3
+ import { DateTimePicker } from './chunk-XADL7CMK.js';
4
+ import { DataTable } from './chunk-JLUXCPKS.js';
5
5
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
6
6
  import { Toolbar } from './chunk-NPEI2QAN.js';
7
7
  import { Popover } from './chunk-AJFA2XDQ.js';
@@ -1,10 +1,10 @@
1
1
  import { ValueField } from './chunk-DJXY65LN.js';
2
2
  import { RefusalStrip, ReceiptStrip } from './chunk-UNYT6KEK.js';
3
- import { ChangeList } from './chunk-SN2FN2XW.js';
4
3
  import { StatusCard } from './chunk-SR5GHUP5.js';
5
4
  import { toInstant, currentNow, formatUntil, useNow, formatExact, toISO } from './chunk-GBKBME7Q.js';
6
- import { Checkbox } from './chunk-X6FJSY3C.js';
5
+ import { ChangeList } from './chunk-D54HL3AN.js';
7
6
  import { Callout } from './chunk-UJYSDWQ7.js';
7
+ import { Checkbox } from './chunk-X6FJSY3C.js';
8
8
  import { Disclosure } from './chunk-RUROK3EU.js';
9
9
  import { Button } from './chunk-JYJ24UUX.js';
10
10
  import { Spinner } from './chunk-XSPCITPN.js';
@@ -0,0 +1,68 @@
1
+ import { Eyebrow } from './chunk-RK4XPHVG.js';
2
+ import { InlineCode } from './chunk-W4UJWFCZ.js';
3
+ import { titleWhenCut } from './chunk-WSIJDWUG.js';
4
+ import { Checkbox } from './chunk-X6FJSY3C.js';
5
+ import { cx } from './chunk-ODEQTPFM.js';
6
+ import './ConsequenceList-5TXFZPMG.css';
7
+ import { useId } from 'react';
8
+ import { TriangleAlertGlyph, InfoGlyph, ArrowRightGlyph, LockGlyph } from '@crewlethq/icons/glyphs';
9
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
+
11
+ var FACT_GLYPHS = {
12
+ kept: LockGlyph,
13
+ follows: ArrowRightGlyph,
14
+ info: InfoGlyph,
15
+ warning: TriangleAlertGlyph,
16
+ danger: TriangleAlertGlyph
17
+ };
18
+ function ResourceName({ children, className }) {
19
+ return /* @__PURE__ */ jsx(InlineCode, { truncate: true, className: cx("crewlet-resource-name", className), onMouseEnter: titleWhenCut, children });
20
+ }
21
+ function ConsequenceList({ items, heading, className }) {
22
+ const headingId = useId();
23
+ const named = heading !== void 0 && heading !== null;
24
+ return /* @__PURE__ */ jsxs(
25
+ "div",
26
+ {
27
+ role: "group",
28
+ "aria-labelledby": named ? headingId : void 0,
29
+ className: cx("crewlet-consequence-list", className),
30
+ children: [
31
+ named ? /* @__PURE__ */ jsx(Eyebrow, { as: "div", id: headingId, className: "crewlet-consequence-list__heading", children: heading }) : null,
32
+ items.map(
33
+ (item) => item.kind === "choice" ? /* @__PURE__ */ jsx(
34
+ Checkbox,
35
+ {
36
+ className: "crewlet-consequence-list__choice",
37
+ checked: item.checked,
38
+ onCheckedChange: item.onCheckedChange,
39
+ disabled: item.disabled,
40
+ tone: item.tone === "danger" ? "danger" : "default",
41
+ label: item.name === void 0 ? item.label : /* @__PURE__ */ jsxs(Fragment, { children: [
42
+ item.label,
43
+ " ",
44
+ /* @__PURE__ */ jsx(ResourceName, { children: item.name })
45
+ ] }),
46
+ description: item.description
47
+ },
48
+ item.key
49
+ ) : /* @__PURE__ */ jsx(Fact, { fact: item }, item.key)
50
+ )
51
+ ]
52
+ }
53
+ );
54
+ }
55
+ function Fact({ fact }) {
56
+ const tone = fact.tone ?? "plain";
57
+ const Glyph = tone === "plain" ? null : FACT_GLYPHS[tone];
58
+ const glyph = fact.icon ?? (Glyph ? /* @__PURE__ */ jsx(Glyph, { size: "sm" }) : null);
59
+ return /* @__PURE__ */ jsxs("p", { className: cx("crewlet-consequence-list__fact", `crewlet-consequence-list__fact--${tone}`), children: [
60
+ /* @__PURE__ */ jsx("span", { className: "crewlet-consequence-list__mark", "aria-hidden": "true", children: glyph }),
61
+ /* @__PURE__ */ jsx("span", { className: "crewlet-consequence-list__text", children: fact.text })
62
+ ] });
63
+ }
64
+ function consequencesAnswered(items) {
65
+ return (items ?? []).every((item) => item.kind !== "choice" || !item.required || item.checked);
66
+ }
67
+
68
+ export { ConsequenceList, ResourceName, consequencesAnswered };
@@ -2,7 +2,7 @@ import { Select } from './chunk-D5UVJL4I.js';
2
2
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
3
3
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
4
4
  import { CopyButton } from './chunk-G5HHQ3RD.js';
5
- import { Modal } from './chunk-FC225TSK.js';
5
+ import { Modal } from './chunk-BEYMQKP3.js';
6
6
  import { Callout } from './chunk-UJYSDWQ7.js';
7
7
  import { Button } from './chunk-JYJ24UUX.js';
8
8
  import { IconButton } from './chunk-VM73Y6TO.js';
@@ -1,5 +1,5 @@
1
1
  import { SegmentedControl } from './chunk-4GPXNMIG.js';
2
- import { Modal } from './chunk-FC225TSK.js';
2
+ import { Modal } from './chunk-BEYMQKP3.js';
3
3
  import { Callout } from './chunk-UJYSDWQ7.js';
4
4
  import { Button } from './chunk-JYJ24UUX.js';
5
5
  import { FormField, Input } from './chunk-KH4HKMXF.js';
@@ -1,4 +1,4 @@
1
- import { TreeGrid } from './chunk-LJPDOZFS.js';
1
+ import { TreeGrid } from './chunk-G7YITKUF.js';
2
2
  import { OrgLabel } from './chunk-NIM7LEEI.js';
3
3
  import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
4
4
  import { AddPill } from './chunk-5CCM3DDA.js';