@crewlethq/ui 0.160.1 → 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 (74) 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/BriefCard/index.js +3 -3
  5. package/dist/ChangeList/index.js +2 -2
  6. package/dist/ChipField/index.js +2 -2
  7. package/dist/ContrastBadge/index.js +2 -2
  8. package/dist/ContrastHelp/index.js +3 -3
  9. package/dist/DatasetSource/index.js +2 -2
  10. package/dist/DeepWorkCard/index.js +4 -4
  11. package/dist/EntityList/index.js +3 -3
  12. package/dist/InboxList/InboxList.d.ts +23 -7
  13. package/dist/InboxList/index.js +1 -1
  14. package/dist/{InboxList-XOUPZUCK.css → InboxList-NQABW65H.css} +95 -9
  15. package/dist/LinkCard/LinkCard.d.ts +13 -5
  16. package/dist/LinkCard/index.js +1 -1
  17. package/dist/{LinkCard-5I4MYU6I.css → LinkCard-W4SVOHLD.css} +35 -8
  18. package/dist/LogoSlot/index.js +3 -3
  19. package/dist/OpenInAppCard/index.js +4 -4
  20. package/dist/PricingCard/index.js +2 -2
  21. package/dist/ProposalCard/ProposalCard.d.ts +26 -5
  22. package/dist/ProposalCard/index.js +4 -4
  23. package/dist/RefusalCard/index.js +3 -3
  24. package/dist/ResultTableCard/index.js +3 -3
  25. package/dist/ReviewList/index.js +2 -2
  26. package/dist/RichEditor/index.js +2 -2
  27. package/dist/RunChip/index.js +2 -2
  28. package/dist/SetupWizard/index.js +2 -2
  29. package/dist/SheetGrid/index.js +2 -2
  30. package/dist/StatusCard/index.js +2 -2
  31. package/dist/{StepList-OAJ45IBX.css → StepList-MQVJ3DZF.css} +14 -0
  32. package/dist/Stepper/StepList.d.ts +20 -5
  33. package/dist/Stepper/index.js +1 -1
  34. package/dist/TableCells/index.js +2 -2
  35. package/dist/Tag/index.js +1 -1
  36. package/dist/{Tag-SNAX7OQH.css → Tag-H2EA4ZCW.css} +12 -1
  37. package/dist/TagsInput/index.js +2 -2
  38. package/dist/ThemeGallery/index.js +2 -2
  39. package/dist/ThreadSummary/index.js +2 -2
  40. package/dist/{chunk-3ZW42I4H.js → chunk-2JDLC5A4.js} +1 -1
  41. package/dist/{chunk-GBNQJGV4.js → chunk-2LVAA4JM.js} +1 -1
  42. package/dist/{chunk-EHD4CEHK.js → chunk-2MN3RNRM.js} +2 -1
  43. package/dist/{chunk-UVVPYLZX.js → chunk-3GIGAGEG.js} +1 -1
  44. package/dist/{chunk-2EG6YZJC.js → chunk-3ZBYTHLJ.js} +1 -1
  45. package/dist/{chunk-EKRW7F45.js → chunk-4BBS3XU2.js} +1 -1
  46. package/dist/{chunk-MA7EOX4J.js → chunk-ALJGUP4X.js} +1 -1
  47. package/dist/{chunk-GY3XZ5FW.js → chunk-DSKPTCYM.js} +1 -1
  48. package/dist/{chunk-L6SYLG3F.js → chunk-EH2DDHHP.js} +1 -1
  49. package/dist/{chunk-2DZV4PHK.js → chunk-EZIMNB6H.js} +1 -1
  50. package/dist/{chunk-VIGFEWSQ.js → chunk-GI4THYUT.js} +2 -2
  51. package/dist/{chunk-M4CXGMYO.js → chunk-GXX6B5XM.js} +1 -1
  52. package/dist/{chunk-DZIID2CS.js → chunk-HM3HM3OF.js} +1 -1
  53. package/dist/{chunk-5O4KQYCS.js → chunk-HOIZJFYS.js} +1 -1
  54. package/dist/{chunk-35Q3WVLB.js → chunk-ITFAH735.js} +2 -2
  55. package/dist/{chunk-FSVTNCAU.js → chunk-JSYAITYQ.js} +1 -1
  56. package/dist/{chunk-HOCXIVKC.js → chunk-KP7DRFIR.js} +1 -1
  57. package/dist/{chunk-TFRTT2L5.js → chunk-MCYS3HLW.js} +1 -1
  58. package/dist/{chunk-ZUXJG3JN.js → chunk-MKKUM4AR.js} +1 -1
  59. package/dist/{chunk-JBUJMWWE.js → chunk-OVWDE63E.js} +25 -9
  60. package/dist/{chunk-7DYHWFU2.js → chunk-PJMDWQC2.js} +1 -1
  61. package/dist/{chunk-UMEK5DHS.js → chunk-PUPOP3XN.js} +129 -18
  62. package/dist/{chunk-PVMDBNZ5.js → chunk-RSZE4FED.js} +41 -32
  63. package/dist/{chunk-OZNL3WOR.js → chunk-T6HFLCXB.js} +1 -1
  64. package/dist/{chunk-SPJUVFOI.js → chunk-TLMAPIWU.js} +1 -1
  65. package/dist/{chunk-FQQEC3AB.js → chunk-W3PSFOH2.js} +1 -1
  66. package/dist/{chunk-R43WH27Z.js → chunk-XDFFMIHY.js} +1 -1
  67. package/dist/{chunk-CLOWVDGV.js → chunk-YL3G6LPS.js} +1 -1
  68. package/dist/{chunk-YSGFG6OG.js → chunk-Z226JFUB.js} +1 -1
  69. package/dist/generated/index.js +46 -46
  70. package/dist/index.js +46 -46
  71. package/dist/styles.css +160 -22
  72. package/package.json +3 -3
  73. package/dist/{Editor-RDC4N2UZ.js → Editor-CL2RZDZG.js} +1 -1
  74. package/dist/{chunk-RMPHADLT.js → chunk-L5UJPASY.js} +1 -1
package/README.md CHANGED
@@ -208,6 +208,20 @@ places:
208
208
  - A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
209
209
  when the content beneath it moves, and every panel anchored inside follows.
210
210
 
211
+ ## Changes in 0.161.0
212
+
213
+ ### Cards and lists that say what is true, once, to every reader
214
+
215
+ - **A `ProposalCard` whose wait has run out is expired.** A card the host still holds as `pending` or `stepup` whose `expiresAt` has passed reads "Expired" with `labels.expiredNotice` ("This proposal expired. Nothing changed.") and draws no decision, whether the instant had passed before it was drawn or passes while it is on screen: the countdown hears the tick that makes it due, and the card settles before that frame is painted, moving focus off a button that leaves to the strip, as any settling card does. A card being carried out (`applying`) or already settled keeps its own state, and a host's `notice`, written for the wait, gives way to the expired sentence. The root carries `data-lapsed` while it is so. `labels.lapsed` is no longer drawn, and is kept so a host that passes it still compiles. Stories: `ProposalCard` Lapsed While Waiting, Lapses On Screen.
216
+ - **A `StepList` step says why in prose.** `note` (on `StepListStep`) is a sentence for a person, under the label in the body face and the secondary ink, before `detail`, which stays the request line in the mono face. A refusal or a failure's reason was set in the request line's code face. Stories: `StepList` Refused With Reason, Failed With Reason.
217
+ - **An `InboxList` is one Tab stop.** The row focus was last in (else the open row, else the first) keeps its control and its `aside` controls in the tab order, and every other row's leave it, so Tab enters the list once, reaches that row's own task and actions, and leaves; the arrow keys, Home and End move between rows, and the row they land on is the stop. A row's quick-actions tray is hidden (not only clear) while the row is neither hovered nor focused, so it is no Tab stop of its own. Focus in a row that leaves goes to the next row, or the one before. A row outside an `InboxList` is a Tab stop as before. Story: `InboxList` Conversation History.
218
+ - **A row's quick actions stand beside its time, never over it.** The time and any status move aside into room the name's first line always keeps for the tray (the row measures the tray onto itself as `--crewlet-inbox-row-tray`), so neither is covered and the name never moves or rewraps.
219
+ - **An `InboxRow`'s name starts with the words it shows** (WCAG 2.5.3). The `leading` mark is drawn over its slot from outside the control, with a hidden copy holding the slot, so a face's initials are no longer the control's first visible words; what the mark says to a screen reader is the control's description rather than the start of its name. Pass a face `decorative`, as the title names who.
220
+ - **A `LinkCard` is named by the words it shows.** The link is now the title, stretched over the whole preview so a press anywhere follows it and the focus ring rings the preview; the source, the details and the owner describe it. The preview's root is a `div` carrying `className` and `style`; every other attribute (`onClick`, an id, a data attribute) is the link's (`crewlet-link-card__link`).
221
+ - **A `Tag` on a hovered or selected row keeps 4.5:1.** A tinted tag paints its tint over `--crewlet-tag-ground` when an ancestor names one, and an `InboxRow` names the sheet while it is hovered or selected, so the pill is the composite the palette measures rather than its tint over the row's translucent wash (the info tag measured 4.43:1 on a selected row in light, and every tone fell under 4.5:1 there in several themes).
222
+
223
+ What to change: nothing is required. To show a step's reason as prose, pass it as `note` and keep only the request in `detail`. A stylesheet that selected `a.crewlet-link-card` selects `.crewlet-link-card__link` (the link) or `.crewlet-link-card` (the preview).
224
+
211
225
  ## Changes in 0.157.0
212
226
 
213
227
  ### A list item holds blocks
@@ -1,13 +1,13 @@
1
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-RMPHADLT.js';
1
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-L5UJPASY.js';
2
2
  import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-265IX4YA.js';
4
4
  import '../chunk-GBKBME7Q.js';
5
5
  import '../chunk-WGLOH33S.js';
6
+ import '../chunk-W3A6NBUM.js';
6
7
  import '../chunk-E7KRB77B.js';
7
8
  import '../chunk-AV2DXAEL.js';
8
9
  import '../chunk-475DOAWF.js';
9
10
  import '../chunk-WSIJDWUG.js';
10
- import '../chunk-W3A6NBUM.js';
11
11
  import '../chunk-TGENJXOJ.js';
12
12
  import '../chunk-DOY3KC6I.js';
13
13
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
@@ -1,5 +1,5 @@
1
- export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from '../chunk-7DYHWFU2.js';
2
- import '../chunk-5O4KQYCS.js';
1
+ export { ATTACHMENT_CHIP_LABELS, AttachmentChip } from '../chunk-PJMDWQC2.js';
2
+ import '../chunk-HOIZJFYS.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
4
  import '../chunk-XSPCITPN.js';
5
5
  import '../chunk-RRRK2KB6.js';
@@ -1,8 +1,8 @@
1
- export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from '../chunk-TFRTT2L5.js';
1
+ export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from '../chunk-MCYS3HLW.js';
2
2
  import '../chunk-IR3OWPAZ.js';
3
3
  import '../chunk-6C7GQOBV.js';
4
- import '../chunk-UVVPYLZX.js';
5
- import '../chunk-5O4KQYCS.js';
4
+ import '../chunk-3GIGAGEG.js';
5
+ import '../chunk-HOIZJFYS.js';
6
6
  import '../chunk-E7KRB77B.js';
7
7
  import '../chunk-AV2DXAEL.js';
8
8
  import '../chunk-475DOAWF.js';
@@ -1,6 +1,6 @@
1
- export { CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeList, ChangeListItems, shortenUnchanged } from '../chunk-MA7EOX4J.js';
1
+ export { CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeList, ChangeListItems, shortenUnchanged } from '../chunk-ALJGUP4X.js';
2
2
  import '../chunk-7XUP32RY.js';
3
- import '../chunk-5O4KQYCS.js';
3
+ import '../chunk-HOIZJFYS.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-D5O64CVE.js';
6
6
  import '../chunk-ODN2TPIG.js';
@@ -1,5 +1,5 @@
1
- export { CHIP_FIELD_LABELS, ChipField } from '../chunk-35Q3WVLB.js';
2
- import '../chunk-5O4KQYCS.js';
1
+ export { CHIP_FIELD_LABELS, ChipField } from '../chunk-ITFAH735.js';
2
+ import '../chunk-HOIZJFYS.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
4
  import '../chunk-AVJKMQXK.js';
5
5
  import '../chunk-EDPMHSLZ.js';
@@ -1,6 +1,6 @@
1
- export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-3ZW42I4H.js';
1
+ export { ContrastBadge, ContrastLevelTag, contrastLevel, contrastRatio, formatContrastRatio } from '../chunk-2JDLC5A4.js';
2
2
  import '../chunk-7W3LYIOC.js';
3
- import '../chunk-5O4KQYCS.js';
3
+ import '../chunk-HOIZJFYS.js';
4
4
  import '../chunk-QRE6JCHS.js';
5
5
  import '../chunk-RRRK2KB6.js';
6
6
  import '../chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
- export { ContrastHelp } from '../chunk-HOCXIVKC.js';
2
- import '../chunk-3ZW42I4H.js';
1
+ export { ContrastHelp } from '../chunk-KP7DRFIR.js';
2
+ import '../chunk-2JDLC5A4.js';
3
3
  import '../chunk-7W3LYIOC.js';
4
- import '../chunk-5O4KQYCS.js';
4
+ import '../chunk-HOIZJFYS.js';
5
5
  import '../chunk-AJFA2XDQ.js';
6
6
  import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-XHTQ4X4P.js';
@@ -1,5 +1,5 @@
1
- export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-FQQEC3AB.js';
2
- import '../chunk-5O4KQYCS.js';
1
+ export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-W3PSFOH2.js';
2
+ import '../chunk-HOIZJFYS.js';
3
3
  import '../chunk-GBKBME7Q.js';
4
4
  import '../chunk-WGLOH33S.js';
5
5
  import '../chunk-QRE6JCHS.js';
@@ -1,9 +1,9 @@
1
- export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-VIGFEWSQ.js';
2
- import '../chunk-EHD4CEHK.js';
1
+ export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-GI4THYUT.js';
2
+ import '../chunk-2MN3RNRM.js';
3
3
  import '../chunk-3XXFU4XP.js';
4
4
  import '../chunk-MXOT2CWL.js';
5
- import '../chunk-UVVPYLZX.js';
6
- import '../chunk-5O4KQYCS.js';
5
+ import '../chunk-3GIGAGEG.js';
6
+ import '../chunk-HOIZJFYS.js';
7
7
  import '../chunk-E7KRB77B.js';
8
8
  import '../chunk-AV2DXAEL.js';
9
9
  import '../chunk-475DOAWF.js';
@@ -1,6 +1,6 @@
1
- export { EntityList } from '../chunk-GBNQJGV4.js';
2
- import '../chunk-UVVPYLZX.js';
3
- import '../chunk-5O4KQYCS.js';
1
+ export { EntityList } from '../chunk-2LVAA4JM.js';
2
+ import '../chunk-3GIGAGEG.js';
3
+ import '../chunk-HOIZJFYS.js';
4
4
  import '../chunk-E7KRB77B.js';
5
5
  import '../chunk-AV2DXAEL.js';
6
6
  import '../chunk-475DOAWF.js';
@@ -16,7 +16,7 @@ export interface InboxListProps extends HTMLAttributes<HTMLElement> {
16
16
  */
17
17
  density?: InboxListDensity | undefined;
18
18
  }
19
- export declare function InboxList({ label, density, className, children, onKeyDown, ...rest }: InboxListProps): import("react").JSX.Element;
19
+ export declare function InboxList({ label, density, className, children, onKeyDown, onFocus, ...rest }: InboxListProps): import("react").JSX.Element;
20
20
  export declare namespace InboxList {
21
21
  var Group: typeof InboxGroup;
22
22
  var Row: typeof InboxRow;
@@ -104,7 +104,12 @@ export interface InboxRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'on
104
104
  /**
105
105
  * Before the words: an avatar or a mark, at the target size. Its slot is at
106
106
  * least a target square and grows to fit a larger mark, such as a 32px face,
107
- * with the name's line beside its top.
107
+ * with the name's line beside its top. A picture of who the row is from,
108
+ * which the title says in words: it is drawn beside the row's control
109
+ * rather than inside it, so the control's visible words begin with its
110
+ * name, and what it says to a screen reader (if anything: pass a face
111
+ * `decorative`) is the control's description rather than the start of its
112
+ * name.
108
113
  */
109
114
  leading?: ReactNode;
110
115
  /** What the row says, in up to three lines (`lines`). */
@@ -124,11 +129,13 @@ export interface InboxRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'on
124
129
  /** A small glyph before the context, hidden from a screen reader: the kind of row. */
125
130
  contextIcon?: ReactNode;
126
131
  /**
127
- * The row's quick actions (a `MessageActions` tray): floated over the end
128
- * of its first line, over the time, while the row is hovered or holds
129
- * focus. Never a reflow: the row keeps its height and its words their
130
- * place. Outside the row's control, so each action is a control of its own,
131
- * reached by Tab after the row.
132
+ * The row's quick actions (a `MessageActions` tray): shown at the end of
133
+ * its first line while the row is hovered or holds focus, with the time
134
+ * and any status moved aside to stand beside it, never under it. Never a
135
+ * reflow: the room the tray takes is kept at the end of the name's line, so
136
+ * the words never move. Outside the row's control, so each action is a
137
+ * control of its own, reached by Tab from the row; a row that does not
138
+ * hold focus keeps its tray out of the tab order.
132
139
  */
133
140
  actions?: ReactNode;
134
141
  /** Drawn after the words in the quiet ink, inside the same three lines: a comment's own text. */
@@ -207,6 +214,15 @@ export interface InboxRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'on
207
214
  * caller names in the head (`status`): every word stays legible, and the
208
215
  * state is never carried by a decoration alone.
209
216
  *
217
+ * ITS WORDS START WITH ITS NAME. A person who speaks what they see says the
218
+ * name, so the control's visible text begins with it (WCAG 2.5.3, label in
219
+ * name). The leading mark is a picture, and a face's initials are letters
220
+ * nobody says: it is drawn over the control's leading slot from outside it,
221
+ * while a copy nobody sees or reads holds the slot's place inside it.
222
+ *
223
+ * THE TIME IS NEVER COVERED. A row's quick actions show beside the time,
224
+ * which moves aside into room the name's line always keeps for them.
225
+ *
210
226
  * NOTHING IS CUT AT THE EDGE. The name and its qualifier wrap to two lines
211
227
  * before they stop, the time keeps a column of its own and never wraps, and
212
228
  * the words take up to three lines before they stop, so a row says what it is
@@ -1,4 +1,4 @@
1
- export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from '../chunk-UMEK5DHS.js';
1
+ export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from '../chunk-PUPOP3XN.js';
2
2
  import '../chunk-RK4XPHVG.js';
3
3
  import '../chunk-6C7GQOBV.js';
4
4
  import '../chunk-SNKQNAJI.js';
@@ -168,6 +168,11 @@
168
168
  overflow: hidden;
169
169
  }
170
170
 
171
+ /* What the row draws over itself (its mark, its tray) closes with it. */
172
+ .crewlet-inbox-row--leaving {
173
+ overflow: hidden;
174
+ }
175
+
171
176
  .crewlet-inbox-row:hover {
172
177
  background: var(--color-surface-hover);
173
178
  }
@@ -177,6 +182,21 @@
177
182
  background: var(--color-surface-pressed);
178
183
  }
179
184
 
185
+ /*
186
+ * A TAG ON A WASHED ROW KEEPS ITS CONTRAST. The hover and the selected fill
187
+ * are translucent overlays, and a tinted tag (a status, "Answering") laid its
188
+ * own translucent tint over them: a composite the palette never measured,
189
+ * which fell under 4.5:1 for every tone in several themes (the info tag on a
190
+ * selected row measured 4.43:1 in light). The row hands its tags the sheet as
191
+ * their ground (Tag.css), so each pill paints its tint over an opaque rung,
192
+ * the pair the palette holds at 4.5:1 in every theme, while the row's wash
193
+ * shows around it.
194
+ */
195
+ .crewlet-inbox-row:hover,
196
+ .crewlet-inbox-row--selected {
197
+ --crewlet-tag-ground: var(--color-surface-background);
198
+ }
199
+
180
200
  /*
181
201
  * FORCED COLORS repaints every author background to Canvas, which takes the
182
202
  * open row's fill with it, so the row the pane is showing would look like
@@ -237,8 +257,6 @@
237
257
  * mark hangs from the same top, beside the name's line and the one under it.
238
258
  */
239
259
  .crewlet-inbox-row__control--leading {
240
- --crewlet-inbox-row-lift: max(0px, (var(--size-target-min) - 1lh) / 2);
241
-
242
260
  padding-top: calc(var(--spacing-2) + var(--spacing-1) / 2 - var(--crewlet-inbox-row-lift));
243
261
  }
244
262
 
@@ -255,6 +273,36 @@
255
273
  min-height: max(var(--size-target-min), 1lh);
256
274
  }
257
275
 
276
+ /*
277
+ * THE MARK IS DRAWN BESIDE THE CONTROL, NOT IN IT. Inside, a face's initials
278
+ * were the control's first visible words while its name began with the
279
+ * title, so the words a person saw and the name they had to say differed
280
+ * (WCAG 2.5.3). The slot inside keeps a copy nobody sees, so the words lay
281
+ * out exactly as they did, and the mark itself is laid over that slot from
282
+ * the row: at the control's own top and start pads (the row's body starts
283
+ * where the control does), taking no press, so a press on the face is a
284
+ * press on the row.
285
+ */
286
+ .crewlet-inbox-row--leading {
287
+ /* How far the words move down to centre the name's line on a target-sized
288
+ mark, which the control's top pad gives back (above); declared on the row
289
+ so the mark drawn over the slot reads the same lift. */
290
+ --crewlet-inbox-row-lift: max(0px, (var(--size-target-min) - 1lh) / 2);
291
+
292
+ position: relative;
293
+ }
294
+
295
+ .crewlet-inbox-row__leading--place {
296
+ visibility: hidden;
297
+ }
298
+
299
+ .crewlet-inbox-row__leading--drawn {
300
+ position: absolute;
301
+ inset-block-start: calc(var(--spacing-2) + var(--spacing-1) / 2 - var(--crewlet-inbox-row-lift));
302
+ inset-inline-start: var(--spacing-2);
303
+ pointer-events: none;
304
+ }
305
+
258
306
  .crewlet-inbox-row__main {
259
307
  display: grid;
260
308
  flex: 1;
@@ -482,21 +530,38 @@
482
530
  }
483
531
 
484
532
  /*
485
- * THE QUICK ACTIONS FLOAT, never reflow: lifted over the end of the first
486
- * line (the time) while the row is hovered or holds focus, and taking no room
487
- * otherwise. Shown by opacity rather than display, so Tab still reaches them
488
- * from the row and focus brings them up.
533
+ * THE QUICK ACTIONS STAND BESIDE THE TIME, never over it, and never reflow.
534
+ * The tray floats at the end of the first line while the row is hovered or
535
+ * holds focus, and the time (with any status) moves aside to stand before
536
+ * it. The room it moves into is kept at the end of the name's line all the
537
+ * time, in the float's place (`--crewlet-inbox-row-room`: the tray's width,
538
+ * which the row measures into `--crewlet-inbox-row-tray`, from where the
539
+ * tray stands to where the words end, and a gap), so the name never wraps
540
+ * differently under the pointer and the row keeps its height.
541
+ *
542
+ * HIDDEN, NOT ONLY CLEAR, while the row is neither hovered nor focused: a
543
+ * tray drawn at zero opacity was a Tab stop on every row, two stops a row in
544
+ * a list that is meant to be one. The row that holds focus shows its tray,
545
+ * so Tab from the row reaches its actions, and focus brings them up.
489
546
  */
490
547
  .crewlet-inbox-row--actions {
548
+ --crewlet-inbox-row-tray-end: var(--spacing-2);
549
+ --crewlet-inbox-row-words-end: var(--spacing-2);
550
+ --crewlet-inbox-row-room: max(
551
+ 0px,
552
+ var(--crewlet-inbox-row-tray, 0px) + var(--crewlet-inbox-row-tray-end) + var(--spacing-2) - var(--crewlet-inbox-row-words-end)
553
+ );
554
+
491
555
  position: relative;
492
556
  }
493
557
 
494
558
  .crewlet-inbox-row__actions {
495
559
  position: absolute;
496
560
  top: var(--crewlet-inbox-row-actions-top, 0px);
497
- inset-inline-end: var(--spacing-2);
561
+ inset-inline-end: var(--crewlet-inbox-row-tray-end, var(--spacing-2));
498
562
  z-index: 1;
499
563
  opacity: 0;
564
+ visibility: hidden;
500
565
  pointer-events: none;
501
566
  }
502
567
 
@@ -504,9 +569,24 @@
504
569
  .crewlet-inbox-row:focus-within > .crewlet-inbox-row__actions,
505
570
  .crewlet-inbox-row__actions:has([aria-expanded='true']) {
506
571
  opacity: 1;
572
+ visibility: visible;
507
573
  pointer-events: auto;
508
574
  }
509
575
 
576
+ .crewlet-inbox-row--actions .crewlet-inbox-row__head-end--place {
577
+ padding-inline-end: var(--crewlet-inbox-row-room);
578
+ }
579
+
580
+ .crewlet-inbox-row--actions .crewlet-inbox-row__head-end--drawn {
581
+ transition: inset-inline-end var(--motion-duration-fast) var(--motion-easing-default);
582
+ }
583
+
584
+ .crewlet-inbox-row--actions:hover .crewlet-inbox-row__head-end--drawn,
585
+ .crewlet-inbox-row--actions:focus-within .crewlet-inbox-row__head-end--drawn,
586
+ .crewlet-inbox-row--actions:has(> .crewlet-inbox-row__actions [aria-expanded='true']) .crewlet-inbox-row__head-end--drawn {
587
+ inset-inline-end: var(--crewlet-inbox-row-room);
588
+ }
589
+
510
590
  /* ---- Chat density -------------------------------------------------------- */
511
591
 
512
592
  /*
@@ -549,10 +629,15 @@
549
629
  border-bottom: 1px solid var(--color-border-default);
550
630
  /* The tray sits on the name's line: its middle on the line's middle. */
551
631
  --crewlet-inbox-row-actions-top: calc(var(--spacing-4) + var(--crewlet-chat-line) * var(--crewlet-chat-text) / 2 - var(--crewlet-chat-toolbar) / 2);
632
+ /* It stands a step in from the row's end, where the words end at the side inset. */
633
+ --crewlet-inbox-row-tray-end: var(--spacing-3);
634
+ --crewlet-inbox-row-words-end: var(--crewlet-chat-pad-x);
552
635
  }
553
636
 
554
- .crewlet-inbox-list--chat .crewlet-inbox-row__actions {
555
- inset-inline-end: var(--spacing-3);
637
+ /* The mark at the chat row's own pads. */
638
+ .crewlet-inbox-list--chat .crewlet-inbox-row__leading--drawn {
639
+ inset-block-start: var(--spacing-4);
640
+ inset-inline-start: var(--crewlet-chat-pad-x);
556
641
  }
557
642
 
558
643
  /* The face hangs from the row's top pad, beside the name's line and the one
@@ -634,6 +719,7 @@
634
719
 
635
720
  @media (prefers-reduced-motion: reduce) {
636
721
  .crewlet-inbox-row,
722
+ .crewlet-inbox-row--actions .crewlet-inbox-row__head-end--drawn,
637
723
  .crewlet-inbox-row--leaving {
638
724
  transition: none;
639
725
  }
@@ -52,13 +52,21 @@ export interface LinkCardProps extends Omit<AnchorHTMLAttributes<HTMLAnchorEleme
52
52
  * message rather than a card laid on it, and the same unfurl serves a room's
53
53
  * list of everything shared in it.
54
54
  *
55
- * NAMED BY ITS TITLE. The whole preview is one link, so a reader moving
56
- * through the links of a room hears "WRK-41 Fix the login redirect" and then
57
- * where it is from and what state it is in as its description, rather than
58
- * every line run together as one name.
55
+ * THE LINK IS THE TITLE, AND IT IS NAMED BY WHAT IT SHOWS. A reader moving
56
+ * through the links of a room hears "WRK-41 Fix the login redirect", and then
57
+ * where it is from and what state it is in as its description. The link used
58
+ * to be the whole preview, named by its title alone while it showed the
59
+ * source, the details and the owner as well: a link whose visible words were
60
+ * not its name, so a person who said what they saw could not reach it (WCAG
61
+ * 2.5.3, label in name). Now only the title is the link, its name its own
62
+ * words, and it stretches over the whole preview, so a press anywhere on the
63
+ * preview still follows it and its ring still rings the whole preview.
59
64
  *
60
65
  * AN ADDRESS IS FOLLOWED ONLY WHEN IT IS SAFE. The href passes `safeHref`, so
61
66
  * a `javascript:` or a bare relative address in a message never becomes a
62
67
  * link; the preview is still drawn, as words.
68
+ *
69
+ * `className` and `style` are the preview's; every other attribute (a press
70
+ * handler, an id, a data attribute) is the link's.
63
71
  */
64
- export declare function LinkCard({ href, external, newTabLabel, address, source, code, title, meta, status, statusTone, owner, className, ...rest }: LinkCardProps): import("react").JSX.Element;
72
+ export declare function LinkCard({ href, external, newTabLabel, address, source, code, title, meta, status, statusTone, owner, className, style, ...rest }: LinkCardProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export { LinkCard } from '../chunk-PVMDBNZ5.js';
1
+ export { LinkCard } from '../chunk-RSZE4FED.js';
2
2
  import '../chunk-KOJPDCGQ.js';
3
3
  import '../chunk-KMTOGF6T.js';
4
4
  import '../chunk-RRRK2KB6.js';
@@ -58,12 +58,39 @@
58
58
  --crewlet-link-card-dot: var(--color-feedback-danger);
59
59
  }
60
60
 
61
- /* No box to ring over: the ring stands off the preview's words. */
62
- .crewlet-link-card:focus-visible {
61
+ /*
62
+ * THE TITLE IS THE LINK, STRETCHED OVER THE PREVIEW. Only the title is the
63
+ * link, so its name is the words it shows (WCAG 2.5.3), and a layer of it
64
+ * covers the whole preview, so a press on the source, the details or the bar
65
+ * follows it as a press on the title does. The source, the details and the
66
+ * owner are its description.
67
+ */
68
+ .crewlet-link-card__link {
69
+ display: block;
70
+ max-width: 100%;
71
+ color: inherit;
72
+ text-decoration: none;
73
+ }
74
+
75
+ .crewlet-link-card__link::after {
76
+ content: '';
77
+ position: absolute;
78
+ inset: 0;
79
+ border-radius: inherit;
80
+ }
81
+
82
+ /* No box to ring over: the ring stands off the preview's words, round the
83
+ whole preview, which is what the link covers. The title's own ring would
84
+ draw a second one inside it. */
85
+ .crewlet-link-card:has(> .crewlet-link-card__link:focus-visible) {
63
86
  outline: 2px solid var(--color-focus);
64
87
  outline-offset: 2px;
65
88
  }
66
89
 
90
+ .crewlet-link-card__link:focus-visible {
91
+ outline: 2px solid transparent;
92
+ }
93
+
67
94
  /* The app it comes from: its mark and its name, small and quiet. */
68
95
  .crewlet-link-card__source {
69
96
  display: inline-flex;
@@ -91,15 +118,15 @@
91
118
  overflow-wrap: anywhere;
92
119
  }
93
120
 
94
- /* THE TITLE ALONE IS UNDERLINED. The document's base underlines every link
95
- under the pointer, and an underline on the link runs through all of its
96
- lines (the source, the details, the owner), which no line inside can
97
- take off again. */
98
- a.crewlet-link-card:hover {
121
+ /* THE TITLE ALONE IS UNDERLINED, under the pointer anywhere on the preview
122
+ (the link's layer covers it). The document's base underlines every link
123
+ under the pointer, which the link takes off for itself and gives back to
124
+ the title. */
125
+ a.crewlet-link-card__link:hover {
99
126
  text-decoration: none;
100
127
  }
101
128
 
102
- a.crewlet-link-card:hover .crewlet-link-card__title {
129
+ a.crewlet-link-card__link:hover .crewlet-link-card__title {
103
130
  color: var(--color-brand-accent-ink);
104
131
  text-decoration: underline;
105
132
  text-underline-offset: 2px;
@@ -1,8 +1,8 @@
1
- export { LogoSlot, LogoSlotGroup } from '../chunk-2EG6YZJC.js';
1
+ export { LogoSlot, LogoSlotGroup } from '../chunk-3ZBYTHLJ.js';
2
2
  import '../chunk-C7YE4L5Y.js';
3
- import '../chunk-3ZW42I4H.js';
3
+ import '../chunk-2JDLC5A4.js';
4
4
  import '../chunk-7W3LYIOC.js';
5
- import '../chunk-5O4KQYCS.js';
5
+ import '../chunk-HOIZJFYS.js';
6
6
  import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-34K3XN47.js';
8
8
  import '../chunk-XSPCITPN.js';
@@ -1,14 +1,14 @@
1
- export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-EKRW7F45.js';
1
+ export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-4BBS3XU2.js';
2
2
  import '../chunk-KOJPDCGQ.js';
3
3
  import '../chunk-VRVNLJUA.js';
4
4
  import '../chunk-3XXFU4XP.js';
5
- import '../chunk-UVVPYLZX.js';
6
- import '../chunk-KMTOGF6T.js';
7
- import '../chunk-5O4KQYCS.js';
5
+ import '../chunk-3GIGAGEG.js';
6
+ import '../chunk-HOIZJFYS.js';
8
7
  import '../chunk-E7KRB77B.js';
9
8
  import '../chunk-AV2DXAEL.js';
10
9
  import '../chunk-475DOAWF.js';
11
10
  import '../chunk-WSIJDWUG.js';
11
+ import '../chunk-KMTOGF6T.js';
12
12
  import '../chunk-QRE6JCHS.js';
13
13
  import '../chunk-34K3XN47.js';
14
14
  import '../chunk-XSPCITPN.js';
@@ -1,4 +1,4 @@
1
- export { PricingCard } from '../chunk-FSVTNCAU.js';
2
- import '../chunk-5O4KQYCS.js';
1
+ export { PricingCard } from '../chunk-JSYAITYQ.js';
2
+ import '../chunk-HOIZJFYS.js';
3
3
  import '../chunk-QRE6JCHS.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -97,7 +97,12 @@ export interface ProposalCardLabels {
97
97
  stepUpAhead: string;
98
98
  /** What leads the time left on a card with `expiresAt`: "Expires" followed by "in 12m". */
99
99
  expires: string;
100
- /** Said in place of the time left once `expiresAt` has passed and the card still waits. */
100
+ /**
101
+ * @deprecated No longer drawn. A card whose `expiresAt` passes while it
102
+ * waits reads as `expired` itself ("Expired", `expiredNotice`, no
103
+ * decision), so nothing says it lapsed beside buttons that still offer it.
104
+ * Kept so a host that passes it still compiles.
105
+ */
101
106
  lapsed: string;
102
107
  }
103
108
  export declare const PROPOSAL_CARD_LABELS: ProposalCardLabels;
@@ -210,11 +215,19 @@ export interface ProposalCardProps extends Omit<HTMLAttributes<HTMLElement>, 'ti
210
215
  /**
211
216
  * When the proposal stops waiting. While the card can be decided its foot
212
217
  * counts down to it ("Expires in 12m") on the shared clock, with the exact
213
- * instant on hover, and says `labels.lapsed` once it has passed. An
214
- * unparseable value draws nothing.
218
+ * instant on hover. Once it has passed, a card that still waits (`pending`
219
+ * or `stepup`) IS EXPIRED: it reads "Expired" with `labels.expiredNotice`
220
+ * and draws no decision, whether the instant had passed before the card
221
+ * was drawn or passes while it is on screen. An unparseable value draws
222
+ * nothing and never expires the card.
215
223
  */
216
224
  expiresAt?: TimeValue;
217
- /** Replaces the default sentence of a step-up, declined, expired or stale card. */
225
+ /**
226
+ * Replaces the default sentence of a step-up, declined, expired or stale
227
+ * card, in the state the host gave. A waiting card that has lapsed says
228
+ * `labels.expiredNotice` instead: a notice written for the wait no longer
229
+ * describes it.
230
+ */
218
231
  notice?: ReactNode;
219
232
  labels?: Partial<ProposalCardLabels> | undefined;
220
233
  /** Words for the change list. */
@@ -270,10 +283,18 @@ export interface ProposalCardProps extends Omit<HTMLAttributes<HTMLElement>, 'ti
270
283
  * THE PRECISE REQUEST IS THERE, FOLDED (`details`): a compact disclosure,
271
284
  * collapsed by default, for a reader who wants the method, path and body.
272
285
  *
286
+ * A WAIT THAT HAS RUN OUT IS EXPIRED, whatever the host still holds. A card
287
+ * whose `expiresAt` has passed while it waits on the person reads "Expired"
288
+ * and "This proposal expired. Nothing changed." and draws no decision, so it
289
+ * never offers an approval that would be refused for lateness. It turns
290
+ * expired on its first draw when the instant has already passed, and on the
291
+ * clock's tick when it passes on screen, moving focus off a button that
292
+ * leaves as any settling card does.
293
+ *
273
294
  * WHAT DECIDING INVOLVES IS SAID BEFORE THE PRESS. A change prepared from
274
295
  * somebody else's words says so first (`caution`), and the foot says whether
275
296
  * approving asks for a fresh sign-in (`stepUp`) and how long the decision
276
297
  * stays open (`expiresAt`), each with its glyph, so neither the sign-in check
277
298
  * nor a refusal for lateness comes as a surprise.
278
299
  */
279
- export declare function ProposalCard({ title, subtitle, state, scope, kind, summary, changes, changesHeading, note, details, tone, confirmation, approveLabel, onApprove, onDecline, onPrepareAgain, onRetry, receipt, failure, failureOutcome, failureHint, approveBlocked, decisionRefusal, caution, stepUp, expiresAt, notice, labels: overrides, changeLabels, diffLabels, className, ...rest }: ProposalCardProps): import("react").JSX.Element;
300
+ export declare function ProposalCard({ title, subtitle, state: given, scope, kind, summary, changes, changesHeading, note, details, tone, confirmation, approveLabel, onApprove, onDecline, onPrepareAgain, onRetry, receipt, failure, failureOutcome, failureHint, approveBlocked, decisionRefusal, caution, stepUp, expiresAt, notice: givenNotice, labels: overrides, changeLabels, diffLabels, className, ...rest }: ProposalCardProps): import("react").JSX.Element;
@@ -1,10 +1,10 @@
1
- export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-JBUJMWWE.js';
1
+ export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-OVWDE63E.js';
2
2
  import '../chunk-3XXFU4XP.js';
3
- import '../chunk-MA7EOX4J.js';
3
+ import '../chunk-ALJGUP4X.js';
4
4
  import '../chunk-7XUP32RY.js';
5
- import '../chunk-UVVPYLZX.js';
5
+ import '../chunk-3GIGAGEG.js';
6
6
  import '../chunk-I4NRQIRF.js';
7
- import '../chunk-5O4KQYCS.js';
7
+ import '../chunk-HOIZJFYS.js';
8
8
  import '../chunk-GBKBME7Q.js';
9
9
  import '../chunk-WGLOH33S.js';
10
10
  import '../chunk-E7KRB77B.js';
@@ -1,6 +1,6 @@
1
- export { REFUSAL_CARD_LABELS, RefusalCard } from '../chunk-ZUXJG3JN.js';
2
- import '../chunk-UVVPYLZX.js';
3
- import '../chunk-5O4KQYCS.js';
1
+ export { REFUSAL_CARD_LABELS, RefusalCard } from '../chunk-MKKUM4AR.js';
2
+ import '../chunk-3GIGAGEG.js';
3
+ import '../chunk-HOIZJFYS.js';
4
4
  import '../chunk-E7KRB77B.js';
5
5
  import '../chunk-AV2DXAEL.js';
6
6
  import '../chunk-475DOAWF.js';
@@ -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';