@crewlethq/ui 0.160.0 → 0.161.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 (77) hide show
  1. package/README.md +14 -0
  2. package/dist/ArtifactCard/index.js +2 -2
  3. package/dist/AttachmentChip/index.js +2 -2
  4. package/dist/AttentionList/index.js +1 -1
  5. package/dist/{AttentionList-CUPNJX6B.css → AttentionList-F5Q4DS5K.css} +7 -1
  6. package/dist/BriefCard/index.js +3 -3
  7. package/dist/ChangeList/index.js +2 -2
  8. package/dist/ChipField/index.js +2 -2
  9. package/dist/ContrastBadge/index.js +2 -2
  10. package/dist/ContrastHelp/index.js +3 -3
  11. package/dist/DatasetSource/index.js +2 -2
  12. package/dist/DeepWorkCard/index.js +4 -4
  13. package/dist/EntityList/index.js +3 -3
  14. package/dist/InboxList/InboxList.d.ts +23 -7
  15. package/dist/InboxList/index.js +1 -1
  16. package/dist/{InboxList-XOUPZUCK.css → InboxList-NQABW65H.css} +95 -9
  17. package/dist/LinkCard/LinkCard.d.ts +13 -5
  18. package/dist/LinkCard/index.js +1 -1
  19. package/dist/{LinkCard-5I4MYU6I.css → LinkCard-W4SVOHLD.css} +35 -8
  20. package/dist/LogoSlot/index.js +3 -3
  21. package/dist/OpenInAppCard/index.js +4 -4
  22. package/dist/PricingCard/index.js +2 -2
  23. package/dist/ProposalCard/ProposalCard.d.ts +26 -5
  24. package/dist/ProposalCard/index.js +4 -4
  25. package/dist/RefusalCard/index.js +3 -3
  26. package/dist/ResultTableCard/index.js +3 -3
  27. package/dist/ReviewList/index.js +2 -2
  28. package/dist/RichEditor/index.js +2 -2
  29. package/dist/RunChip/index.js +2 -2
  30. package/dist/SetupWizard/index.js +2 -2
  31. package/dist/SheetGrid/index.js +2 -2
  32. package/dist/StatusCard/index.js +2 -2
  33. package/dist/{StepList-OAJ45IBX.css → StepList-MQVJ3DZF.css} +14 -0
  34. package/dist/Stepper/StepList.d.ts +20 -5
  35. package/dist/Stepper/index.js +1 -1
  36. package/dist/TableCells/index.js +2 -2
  37. package/dist/Tag/index.js +1 -1
  38. package/dist/{Tag-SNAX7OQH.css → Tag-H2EA4ZCW.css} +12 -1
  39. package/dist/TagsInput/index.js +2 -2
  40. package/dist/ThemeGallery/index.js +2 -2
  41. package/dist/ThreadSummary/index.js +2 -2
  42. package/dist/{chunk-3ZW42I4H.js → chunk-2JDLC5A4.js} +1 -1
  43. package/dist/{chunk-GBNQJGV4.js → chunk-2LVAA4JM.js} +1 -1
  44. package/dist/{chunk-EHD4CEHK.js → chunk-2MN3RNRM.js} +2 -1
  45. package/dist/{chunk-UVVPYLZX.js → chunk-3GIGAGEG.js} +1 -1
  46. package/dist/{chunk-2EG6YZJC.js → chunk-3ZBYTHLJ.js} +1 -1
  47. package/dist/{chunk-EKRW7F45.js → chunk-4BBS3XU2.js} +1 -1
  48. package/dist/{chunk-MA7EOX4J.js → chunk-ALJGUP4X.js} +1 -1
  49. package/dist/{chunk-GY3XZ5FW.js → chunk-DSKPTCYM.js} +1 -1
  50. package/dist/{chunk-L6SYLG3F.js → chunk-EH2DDHHP.js} +1 -1
  51. package/dist/{chunk-2DZV4PHK.js → chunk-EZIMNB6H.js} +1 -1
  52. package/dist/{chunk-VIGFEWSQ.js → chunk-GI4THYUT.js} +2 -2
  53. package/dist/{chunk-M4CXGMYO.js → chunk-GXX6B5XM.js} +1 -1
  54. package/dist/{chunk-DZIID2CS.js → chunk-HM3HM3OF.js} +1 -1
  55. package/dist/{chunk-5O4KQYCS.js → chunk-HOIZJFYS.js} +1 -1
  56. package/dist/{chunk-35Q3WVLB.js → chunk-ITFAH735.js} +2 -2
  57. package/dist/{chunk-FSVTNCAU.js → chunk-JSYAITYQ.js} +1 -1
  58. package/dist/{chunk-HOCXIVKC.js → chunk-KP7DRFIR.js} +1 -1
  59. package/dist/{chunk-TFRTT2L5.js → chunk-MCYS3HLW.js} +1 -1
  60. package/dist/{chunk-ZUXJG3JN.js → chunk-MKKUM4AR.js} +1 -1
  61. package/dist/{chunk-JBUJMWWE.js → chunk-OVWDE63E.js} +25 -9
  62. package/dist/{chunk-7DYHWFU2.js → chunk-PJMDWQC2.js} +1 -1
  63. package/dist/{chunk-UMEK5DHS.js → chunk-PUPOP3XN.js} +129 -18
  64. package/dist/{chunk-VBRIKJLO.js → chunk-QNWWXSDW.js} +1 -1
  65. package/dist/{chunk-PVMDBNZ5.js → chunk-RSZE4FED.js} +41 -32
  66. package/dist/{chunk-OZNL3WOR.js → chunk-T6HFLCXB.js} +1 -1
  67. package/dist/{chunk-SPJUVFOI.js → chunk-TLMAPIWU.js} +1 -1
  68. package/dist/{chunk-FQQEC3AB.js → chunk-W3PSFOH2.js} +1 -1
  69. package/dist/{chunk-R43WH27Z.js → chunk-XDFFMIHY.js} +1 -1
  70. package/dist/{chunk-CLOWVDGV.js → chunk-YL3G6LPS.js} +1 -1
  71. package/dist/{chunk-YSGFG6OG.js → chunk-Z226JFUB.js} +1 -1
  72. package/dist/generated/index.js +47 -47
  73. package/dist/index.js +47 -47
  74. package/dist/styles.css +168 -24
  75. package/package.json +3 -3
  76. package/dist/{Editor-RDC4N2UZ.js → Editor-CL2RZDZG.js} +1 -1
  77. package/dist/{chunk-RMPHADLT.js → chunk-L5UJPASY.js} +1 -1
@@ -1,10 +1,10 @@
1
- export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from '../chunk-GY3XZ5FW.js';
1
+ export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from '../chunk-DSKPTCYM.js';
2
2
  import '../chunk-YGN4SBNP.js';
3
3
  import '../chunk-XJOLNBEI.js';
4
4
  import '../chunk-YNRKVY7X.js';
5
5
  import '../chunk-DTIW4CHZ.js';
6
- import '../chunk-UVVPYLZX.js';
7
- import '../chunk-5O4KQYCS.js';
6
+ import '../chunk-3GIGAGEG.js';
7
+ import '../chunk-HOIZJFYS.js';
8
8
  import '../chunk-E7KRB77B.js';
9
9
  import '../chunk-AV2DXAEL.js';
10
10
  import '../chunk-475DOAWF.js';
@@ -1,6 +1,6 @@
1
- export { ReviewList } from '../chunk-SPJUVFOI.js';
1
+ export { ReviewList } from '../chunk-TLMAPIWU.js';
2
2
  import '../chunk-VRVNLJUA.js';
3
- import '../chunk-5O4KQYCS.js';
3
+ import '../chunk-HOIZJFYS.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-PQADV6P6.js';
6
6
  import '../chunk-ODEQTPFM.js';
@@ -1,9 +1,9 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-OZNL3WOR.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-T6HFLCXB.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-DGXHQMNP.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-I4NRQIRF.js';
5
- import '../chunk-KMTOGF6T.js';
6
5
  import '../chunk-WFAJYBLX.js';
6
+ import '../chunk-KMTOGF6T.js';
7
7
  import '../chunk-34K3XN47.js';
8
8
  import '../chunk-XSPCITPN.js';
9
9
  import '../chunk-XHTQ4X4P.js';
@@ -1,5 +1,5 @@
1
- export { RUN_STATES, RunChip } from '../chunk-L6SYLG3F.js';
2
- import '../chunk-EHD4CEHK.js';
1
+ export { RUN_STATES, RunChip } from '../chunk-EH2DDHHP.js';
2
+ import '../chunk-2MN3RNRM.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
4
  import '../chunk-D5O64CVE.js';
5
5
  import '../chunk-XSPCITPN.js';
@@ -1,6 +1,6 @@
1
- export { SetupWizard } from '../chunk-2DZV4PHK.js';
1
+ export { SetupWizard } from '../chunk-EZIMNB6H.js';
2
2
  import '../chunk-FPDIHEM4.js';
3
- import '../chunk-EHD4CEHK.js';
3
+ import '../chunk-2MN3RNRM.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-D5O64CVE.js';
6
6
  import '../chunk-SK4BIFTG.js';
@@ -1,4 +1,4 @@
1
- export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-M4CXGMYO.js';
1
+ export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-GXX6B5XM.js';
2
2
  import '../chunk-FOUIZS7Q.js';
3
3
  import '../chunk-CENOOTAV.js';
4
4
  import '../chunk-MMCYH5LB.js';
@@ -6,7 +6,7 @@ import '../chunk-EFX2YC5T.js';
6
6
  import '../chunk-QCYKNWLA.js';
7
7
  import '../chunk-LFSIKGRQ.js';
8
8
  import '../chunk-Z7JYG5TF.js';
9
- import '../chunk-5O4KQYCS.js';
9
+ import '../chunk-HOIZJFYS.js';
10
10
  import '../chunk-AJFA2XDQ.js';
11
11
  import '../chunk-AYKXMIOR.js';
12
12
  import '../chunk-QRE6JCHS.js';
@@ -1,5 +1,5 @@
1
- export { StatusCard } from '../chunk-UVVPYLZX.js';
2
- import '../chunk-5O4KQYCS.js';
1
+ export { StatusCard } from '../chunk-3GIGAGEG.js';
2
+ import '../chunk-HOIZJFYS.js';
3
3
  import '../chunk-E7KRB77B.js';
4
4
  import '../chunk-AV2DXAEL.js';
5
5
  import '../chunk-475DOAWF.js';
@@ -99,6 +99,20 @@
99
99
  color: var(--color-text-tertiary);
100
100
  }
101
101
 
102
+ /*
103
+ * WHY, IN A SENTENCE FOR A PERSON: the body face, a step down from the label,
104
+ * in the secondary ink, wrapping as words do. It is read, so it is never set
105
+ * in the request line's mono face or its tertiary ink.
106
+ */
107
+ .crewlet-step-list__note {
108
+ display: block;
109
+ font-family: var(--font-family-sans);
110
+ font-size: var(--font-size-xs);
111
+ line-height: var(--font-line-height-snug);
112
+ color: var(--color-text-secondary);
113
+ overflow-wrap: break-word;
114
+ }
115
+
102
116
  /*
103
117
  * WHAT THE STEP ASKED FOR, in the mono face. Each piece between separators is
104
118
  * one inline block, so a line breaks only between pieces (at a space, or
@@ -38,11 +38,20 @@ export interface StepListStep {
38
38
  /** How long it took, already formatted: "0.4s". Drawn in the mono face at the end of the label's line. */
39
39
  duration?: string | undefined;
40
40
  /**
41
- * What the step asked for, in the mono face under the label: the tool and
42
- * the request it made (`get_spend · GET /tokens/breakdown?group=seat`). A
43
- * string breaks only at a space or after `/`, `?` or `&`, never inside a
44
- * name such as `sign-in`, and wraps inside a piece only when that piece is
45
- * wider than the line. A node is drawn as given.
41
+ * A sentence for a person, under the label in the body face: why a step
42
+ * failed or was refused, in the engine's words ("This address did not come
43
+ * from you, a search or a page, so it was not read."). Prose, wrapped as
44
+ * words wrap, and drawn before `detail`, which stays the technical line.
45
+ */
46
+ note?: ReactNode;
47
+ /**
48
+ * What the step asked for, in the mono face under the label (and under
49
+ * `note`): the tool and the request it made (`get_spend · GET
50
+ * /tokens/breakdown?group=seat`). A machine's line, never a sentence for a
51
+ * person, which is `note`. A string breaks only at a space or after `/`,
52
+ * `?` or `&`, never inside a name such as `sign-in`, and wraps inside a
53
+ * piece only when that piece is wider than the line. A node is drawn as
54
+ * given.
46
55
  */
47
56
  detail?: ReactNode;
48
57
  }
@@ -66,6 +75,12 @@ export declare function stepDetailPieces(text: string): string[];
66
75
  * however far the detail under it wraps, and the request's own mark in the
67
76
  * chip above stands in the same column.
68
77
  *
78
+ * WORDS FOR A PERSON ARE PROSE, A REQUEST IS MONO. Why a step failed or was
79
+ * refused is a sentence (`note`), drawn in the body face; what it asked the
80
+ * system for is a machine's line (`detail`), drawn in the mono face under it.
81
+ * A refusal set in the face of a request line read as one more technical
82
+ * string rather than as the answer to "why did this not happen".
83
+ *
69
84
  * AN ORDERED LIST, because the order is what happened. Each state is also
70
85
  * said in words after the step's label, because the mark is a picture of it.
71
86
  *
@@ -1,4 +1,4 @@
1
- export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepDetailPieces } from '../chunk-EHD4CEHK.js';
1
+ export { STEP_STATES, STEP_STATE_LABELS, StepList, StepStateMark, Stepper, stepDetailPieces } from '../chunk-2MN3RNRM.js';
2
2
  import '../chunk-QRE6JCHS.js';
3
3
  import '../chunk-XSPCITPN.js';
4
4
  import '../chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
- export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-CLOWVDGV.js';
1
+ export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-YL3G6LPS.js';
2
2
  import '../chunk-UTKI2SAM.js';
3
- import '../chunk-5O4KQYCS.js';
3
+ import '../chunk-HOIZJFYS.js';
4
4
  import '../chunk-GBKBME7Q.js';
5
5
  import '../chunk-WGLOH33S.js';
6
6
  import '../chunk-475DOAWF.js';
package/dist/Tag/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Tag } from '../chunk-5O4KQYCS.js';
1
+ export { Tag } from '../chunk-HOIZJFYS.js';
2
2
  import '../chunk-QRE6JCHS.js';
3
3
  import '../chunk-ODEQTPFM.js';
@@ -36,6 +36,17 @@
36
36
  * The boundary at rest is `--crewlet-tag-edge`: transparent for a tinted
37
37
  * pill, whose hue already separates it from any neutral ground, and the
38
38
  * strong border step for the neutral one (see its rule below).
39
+ *
40
+ * A TINT IS TRANSLUCENT, SO IT IS ONLY AS GOOD AS WHAT IS UNDER IT. The
41
+ * palette holds each ink at 4.5:1 on its own soft tint over the four opaque
42
+ * rungs, and nowhere else. A row that draws a translucent overlay of its
43
+ * own (hovered, selected) put a second wash under the tint, and the ink
44
+ * fell under 4.5:1 there: 4.43:1 for the info pill on a selected inbox row
45
+ * in light, 3.74:1 for success on a pressed raised row in one dark theme.
46
+ * So the tint is painted over `--crewlet-tag-ground` when an ancestor names
47
+ * one, an opaque rung such a row hands down, and the pill is then exactly
48
+ * the composite the palette measures, whatever the row draws around it.
49
+ * Nothing names it by default, and a pill paints over what is beneath it.
39
50
  */
40
51
  --crewlet-tag-height: calc(22px * var(--density, 1));
41
52
  --crewlet-tag-floor: 0px;
@@ -57,7 +68,7 @@
57
68
  padding: 0 var(--crewlet-tag-pad);
58
69
  border: 1px solid var(--crewlet-tag-edge);
59
70
  border-radius: var(--radius-pill);
60
- background: var(--crewlet-tag-fill);
71
+ background: linear-gradient(var(--crewlet-tag-fill), var(--crewlet-tag-fill)), var(--crewlet-tag-ground, transparent);
61
72
  color: var(--crewlet-tag-ink);
62
73
  font-family: var(--font-family-sans);
63
74
  font-size: var(--font-size-xs);
@@ -1,6 +1,6 @@
1
- export { TagsInput } from '../chunk-DZIID2CS.js';
1
+ export { TagsInput } from '../chunk-HM3HM3OF.js';
2
2
  import '../chunk-KW7T23RT.js';
3
- import '../chunk-5O4KQYCS.js';
3
+ import '../chunk-HOIZJFYS.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-XHTQ4X4P.js';
6
6
  import '../chunk-TDFLCUBE.js';
@@ -1,7 +1,7 @@
1
- export { ThemeGallery } from '../chunk-YSGFG6OG.js';
1
+ export { ThemeGallery } from '../chunk-Z226JFUB.js';
2
2
  import '../chunk-3XQUEF5C.js';
3
3
  import '../chunk-KW7T23RT.js';
4
- import '../chunk-5O4KQYCS.js';
4
+ import '../chunk-HOIZJFYS.js';
5
5
  import '../chunk-7F3OPUM5.js';
6
6
  import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-EDPMHSLZ.js';
@@ -1,5 +1,5 @@
1
- export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-R43WH27Z.js';
2
- import '../chunk-5O4KQYCS.js';
1
+ export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-XDFFMIHY.js';
2
+ import '../chunk-HOIZJFYS.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
4
  import '../chunk-2PSOUDCS.js';
5
5
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
1
  import { normalizeHex } from './chunk-7W3LYIOC.js';
2
- import { Tag } from './chunk-5O4KQYCS.js';
2
+ import { Tag } from './chunk-HOIZJFYS.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ContrastBadge-CBZPGG3G.css';
@@ -1,4 +1,4 @@
1
- import { StatusCard } from './chunk-UVVPYLZX.js';
1
+ import { StatusCard } from './chunk-3GIGAGEG.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './EntityList-DT3BQLUW.css';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -3,7 +3,7 @@ import { Spinner } from './chunk-XSPCITPN.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './Stepper-BRWYNQAC.css';
6
- import './StepList-OAJ45IBX.css';
6
+ import './StepList-MQVJ3DZF.css';
7
7
  import { CircleCheckGlyph, CircleAlertGlyph, LockGlyph, CircleStopGlyph, CircleDashedGlyph, ClockGlyph, CheckGlyph, TriangleAlertGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
9
  import { Fragment as Fragment$1 } from 'react';
@@ -190,6 +190,7 @@ function StepList({ steps, label, summary, labels: overrides, className, ...rest
190
190
  step.label,
191
191
  /* @__PURE__ */ jsx(VisuallyHidden, { children: `, ${labels[step.state]}` })
192
192
  ] }),
193
+ step.note === void 0 || step.note === null ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-step-list__note", children: step.note }),
193
194
  step.detail === void 0 ? null : /* @__PURE__ */ jsx("code", { className: "crewlet-step-list__detail", children: /* @__PURE__ */ jsx(Detail, { children: step.detail }) })
194
195
  ] }),
195
196
  step.duration === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-step-list__duration", children: step.duration })
@@ -1,4 +1,4 @@
1
- import { Tag } from './chunk-5O4KQYCS.js';
1
+ import { Tag } from './chunk-HOIZJFYS.js';
2
2
  import { Card } from './chunk-E7KRB77B.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  import { FileDrop, FilePickButton } from './chunk-C7YE4L5Y.js';
2
- import { contrastRatio } from './chunk-3ZW42I4H.js';
2
+ import { contrastRatio } from './chunk-2JDLC5A4.js';
3
3
  import { normalizeHex } from './chunk-7W3LYIOC.js';
4
4
  import { Button } from './chunk-34K3XN47.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
1
  import { IconTile } from './chunk-VRVNLJUA.js';
2
2
  import { ReceiptStrip } from './chunk-3XXFU4XP.js';
3
- import { StatusCard } from './chunk-UVVPYLZX.js';
3
+ import { StatusCard } from './chunk-3GIGAGEG.js';
4
4
  import { safeHref } from './chunk-KMTOGF6T.js';
5
5
  import { ButtonLink, Button } from './chunk-34K3XN47.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  import { DiffList } from './chunk-7XUP32RY.js';
2
- import { Tag } from './chunk-5O4KQYCS.js';
2
+ import { Tag } from './chunk-HOIZJFYS.js';
3
3
  import { Disclosure } from './chunk-D5O64CVE.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,6 +1,6 @@
1
1
  import { Table } from './chunk-YGN4SBNP.js';
2
2
  import { DownloadButton } from './chunk-XJOLNBEI.js';
3
- import { StatusCard } from './chunk-UVVPYLZX.js';
3
+ import { StatusCard } from './chunk-3GIGAGEG.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ResultTableCard-AP355LQM.css';
6
6
  import { useState } from 'react';
@@ -1,4 +1,4 @@
1
- import { StepStateMark } from './chunk-EHD4CEHK.js';
1
+ import { StepStateMark } from './chunk-2MN3RNRM.js';
2
2
  import { DisclosureAnatomy } from './chunk-ODN2TPIG.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
- import { Stepper } from './chunk-EHD4CEHK.js';
2
+ import { Stepper } from './chunk-2MN3RNRM.js';
3
3
  import { Disclosure } from './chunk-D5O64CVE.js';
4
4
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
5
5
  import { useHeadingLevel, nextHeadingLevel, headingTag, HeadingLevelProvider } from './chunk-PQADV6P6.js';
@@ -1,7 +1,7 @@
1
- import { StepList } from './chunk-EHD4CEHK.js';
1
+ import { StepList } from './chunk-2MN3RNRM.js';
2
2
  import { ReceiptStrip } from './chunk-3XXFU4XP.js';
3
3
  import { Meter } from './chunk-MXOT2CWL.js';
4
- import { StatusCard } from './chunk-UVVPYLZX.js';
4
+ import { StatusCard } from './chunk-3GIGAGEG.js';
5
5
  import { Disclosure } from './chunk-D5O64CVE.js';
6
6
  import { Spinner } from './chunk-XSPCITPN.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
@@ -4,7 +4,7 @@ import { presenceHueClass } from './chunk-EFX2YC5T.js';
4
4
  import { ChangeMark } from './chunk-QCYKNWLA.js';
5
5
  import { isEmptyValue, displayText, ratingMax, findPerson, findOption, statusTone, editText, textMax, sheetLabels, normalizeValue, sameValue, spokenText, drawnColumns, fitSamples, fittedWidth, columnWidth, SHEET_COLUMN_BOUNDS, sortRows, SHEET_ROW_HEIGHT, cellKey, columnOffsets, SHEET_ROW_NUMBER_WIDTH, rangeOf, presenceByCell, presenceByRow, presenceByColumn, scrollToRow, planClear, visibleRows, cellDescription, nextSort, rowName, inRange, hasPrevious, flagText, toTSV, planPaste, parseTSV, isMod, moveFrom, isTypingKey, editorSide, optionHue, parseText, liveOptions, checkValue } from './chunk-LFSIKGRQ.js';
6
6
  import { presenceLabels } from './chunk-Z7JYG5TF.js';
7
- import { Tag } from './chunk-5O4KQYCS.js';
7
+ import { Tag } from './chunk-HOIZJFYS.js';
8
8
  import { Popover } from './chunk-AJFA2XDQ.js';
9
9
  import { StatusDot } from './chunk-QRE6JCHS.js';
10
10
  import { Menu } from './chunk-EUET4PNC.js';
@@ -1,5 +1,5 @@
1
1
  import { useListbox } from './chunk-KW7T23RT.js';
2
- import { Tag } from './chunk-5O4KQYCS.js';
2
+ import { Tag } from './chunk-HOIZJFYS.js';
3
3
  import { IconButton } from './chunk-XHTQ4X4P.js';
4
4
  import { isComposing } from './chunk-EDPMHSLZ.js';
5
5
  import { useFocusModality } from './chunk-4ITETIGZ.js';
@@ -1,6 +1,6 @@
1
1
  import { StatusDot } from './chunk-QRE6JCHS.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './Tag-SNAX7OQH.css';
3
+ import './Tag-H2EA4ZCW.css';
4
4
  import { XGlyph } from '@crewlethq/icons/glyphs';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
6
 
@@ -1,9 +1,9 @@
1
- import { Tag } from './chunk-5O4KQYCS.js';
1
+ import { Tag } from './chunk-HOIZJFYS.js';
2
2
  import { isComposing } from './chunk-EDPMHSLZ.js';
3
3
  import { useFocusModality } from './chunk-4ITETIGZ.js';
4
4
  import { announce } from './chunk-WGMKERCR.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
- import './Tag-SNAX7OQH.css';
6
+ import './Tag-H2EA4ZCW.css';
7
7
  import './ChipField-D4CW6XFA.css';
8
8
  import { useRef } from 'react';
9
9
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { Tag } from './chunk-5O4KQYCS.js';
1
+ import { Tag } from './chunk-HOIZJFYS.js';
2
2
  import './PricingCard-BXMLP7KD.css';
3
3
  import { forwardRef } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { ContrastLevelTag } from './chunk-3ZW42I4H.js';
1
+ import { ContrastLevelTag } from './chunk-2JDLC5A4.js';
2
2
  import { Popover } from './chunk-AJFA2XDQ.js';
3
3
  import { IconButton } from './chunk-XHTQ4X4P.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,6 +1,6 @@
1
1
  import { SuggestionList, SuggestionRow } from './chunk-IR3OWPAZ.js';
2
2
  import { developing } from './chunk-6C7GQOBV.js';
3
- import { StatusCard } from './chunk-UVVPYLZX.js';
3
+ import { StatusCard } from './chunk-3GIGAGEG.js';
4
4
  import { StatusDot } from './chunk-QRE6JCHS.js';
5
5
  import { Button } from './chunk-34K3XN47.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { StatusCard } from './chunk-UVVPYLZX.js';
1
+ import { StatusCard } from './chunk-3GIGAGEG.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './RefusalCard-UM67F5HB.css';
4
4
  import { LockGlyph } from '@crewlethq/icons/glyphs';
@@ -1,8 +1,8 @@
1
1
  import { RefusalStrip, ReceiptStrip } from './chunk-3XXFU4XP.js';
2
- import { ChangeList } from './chunk-MA7EOX4J.js';
3
- import { StatusCard } from './chunk-UVVPYLZX.js';
2
+ import { ChangeList } from './chunk-ALJGUP4X.js';
3
+ import { StatusCard } from './chunk-3GIGAGEG.js';
4
4
  import { Callout } from './chunk-I4NRQIRF.js';
5
- import { toInstant, formatUntil, useNow, formatExact, toISO } from './chunk-GBKBME7Q.js';
5
+ import { toInstant, currentNow, formatUntil, useNow, formatExact, toISO } from './chunk-GBKBME7Q.js';
6
6
  import { Checkbox } from './chunk-TGENJXOJ.js';
7
7
  import { Disclosure } from './chunk-D5O64CVE.js';
8
8
  import { Button } from './chunk-34K3XN47.js';
@@ -10,7 +10,7 @@ import { Spinner } from './chunk-XSPCITPN.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
11
11
  import './VisuallyHidden-OUYVMKEH.css';
12
12
  import './ProposalCard-CU4C6BKL.css';
13
- import { useId, useRef, useLayoutEffect, useState, useEffect } from 'react';
13
+ import { useState, useCallback, useId, useRef, useLayoutEffect, useEffect } from 'react';
14
14
  import { LockGlyph, RefreshCwGlyph, BanGlyph, ClockGlyph, CircleAlertGlyph, CircleCheckGlyph } from '@crewlethq/icons/glyphs';
15
15
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
16
16
 
@@ -91,11 +91,19 @@ function headingOf(state, kind, labels) {
91
91
  if (SETTLED.has(state)) return labels.whatWasProposed;
92
92
  return kind === "create" ? labels.whatWillBeCreated : labels.whatWillChange;
93
93
  }
94
- function TimeLeft({ at, labels }) {
94
+ function isDue(at, now) {
95
+ return formatUntil(at, now) === "due";
96
+ }
97
+ function TimeLeft({ at, labels, onDue }) {
95
98
  const until = formatUntil(at, useNow());
99
+ const due = until === "due";
100
+ useLayoutEffect(() => {
101
+ if (due) onDue();
102
+ }, [due, onDue]);
103
+ if (due) return null;
96
104
  return /* @__PURE__ */ jsxs("span", { className: "crewlet-proposal-card__term", children: [
97
105
  /* @__PURE__ */ jsx(ClockGlyph, { size: "xs" }),
98
- until === "due" ? labels.lapsed : /* @__PURE__ */ jsxs("time", { dateTime: toISO(at) ?? void 0, title: formatExact(at) ?? void 0, children: [
106
+ /* @__PURE__ */ jsxs("time", { dateTime: toISO(at) ?? void 0, title: formatExact(at) ?? void 0, children: [
99
107
  labels.expires,
100
108
  " ",
101
109
  until
@@ -105,7 +113,7 @@ function TimeLeft({ at, labels }) {
105
113
  function ProposalCard({
106
114
  title,
107
115
  subtitle,
108
- state,
116
+ state: given,
109
117
  scope = "server",
110
118
  kind = "change",
111
119
  summary,
@@ -129,7 +137,7 @@ function ProposalCard({
129
137
  caution,
130
138
  stepUp = false,
131
139
  expiresAt,
132
- notice,
140
+ notice: givenNotice,
133
141
  labels: overrides,
134
142
  changeLabels,
135
143
  diffLabels,
@@ -137,6 +145,13 @@ function ProposalCard({
137
145
  ...rest
138
146
  }) {
139
147
  const labels = overrides ? { ...PROPOSAL_CARD_LABELS, ...overrides } : PROPOSAL_CARD_LABELS;
148
+ const waits = given === "pending" || given === "stepup";
149
+ const instant = waits ? toInstant(expiresAt) : null;
150
+ const [lapsedAt, setLapsedAt] = useState(null);
151
+ const lapsed = instant !== null && (lapsedAt === instant || isDue(instant, currentNow()));
152
+ const onDue = useCallback(() => setLapsedAt(instant), [instant]);
153
+ const state = lapsed ? "expired" : given;
154
+ const notice = lapsed ? void 0 : givenNotice;
140
155
  const settled = SETTLED.has(state);
141
156
  const uid = useId();
142
157
  const cardId = rest.id ?? `${uid}-card`;
@@ -168,7 +183,7 @@ function ProposalCard({
168
183
  /* @__PURE__ */ jsx(LockGlyph, { size: "xs" }),
169
184
  labels.stepUpAhead
170
185
  ] }) : null,
171
- expiry === void 0 ? null : /* @__PURE__ */ jsx(TimeLeft, { at: expiry, labels })
186
+ expiry === void 0 ? null : /* @__PURE__ */ jsx(TimeLeft, { at: expiry, labels, onDue })
172
187
  ] }) : null;
173
188
  const identity = `${title}\0${approveLabel}`;
174
189
  const [tickedFor, setTickedFor] = useState(void 0);
@@ -268,6 +283,7 @@ function ProposalCard({
268
283
  className
269
284
  ),
270
285
  "data-state": state,
286
+ "data-lapsed": lapsed || void 0,
271
287
  "data-tone": danger ? "danger" : void 0,
272
288
  "data-outcome": state === "failed" ? failureOutcome : void 0,
273
289
  children: [
@@ -1,4 +1,4 @@
1
- import { Tag } from './chunk-5O4KQYCS.js';
1
+ import { Tag } from './chunk-HOIZJFYS.js';
2
2
  import { Spinner } from './chunk-XSPCITPN.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';