@crewlethq/ui 0.182.0 → 0.184.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 (47) hide show
  1. package/README.md +13 -0
  2. package/dist/AgentIdentity/AgentIdentitySheet.d.ts +8 -5
  3. package/dist/AgentIdentity/index.js +3 -3
  4. package/dist/{AgentIdentitySheet-D2T7ELGN.css → AgentIdentitySheet-QIOWB7XK.css} +1 -8
  5. package/dist/CodeBlock/index.js +1 -1
  6. package/dist/ColorSwatch/index.js +2 -2
  7. package/dist/CommandPalette/index.js +2 -2
  8. package/dist/ContrastHelp/index.js +1 -1
  9. package/dist/Copyable/Copyable.d.ts +5 -1
  10. package/dist/Copyable/index.js +1 -1
  11. package/dist/{Copyable-U4RPG75T.css → Copyable-CMT2N2JE.css} +38 -1
  12. package/dist/DataTable/index.js +2 -2
  13. package/dist/DataView/index.js +3 -3
  14. package/dist/LinkInterstitial/index.js +2 -2
  15. package/dist/Modal/ConfirmModal.d.ts +3 -1
  16. package/dist/Modal/index.js +1 -1
  17. package/dist/ObjectHeader/index.js +1 -1
  18. package/dist/{ObjectHeader-3YYG2BAF.css → ObjectHeader-O5VCDIUY.css} +34 -4
  19. package/dist/PropertyList/index.js +2 -2
  20. package/dist/RichEditor/index.js +1 -1
  21. package/dist/ShareDialog/index.js +3 -3
  22. package/dist/Switcher/index.js +3 -3
  23. package/dist/TimeRangePicker/index.js +2 -2
  24. package/dist/ToolCallLog/index.js +1 -1
  25. package/dist/VendorText/VendorText.d.ts +4 -3
  26. package/dist/VendorText/index.js +1 -1
  27. package/dist/{VendorText-ET5DJY5Y.css → VendorText-XAKA4QY5.css} +5 -4
  28. package/dist/{chunk-XVT4KMM4.js → chunk-32ZF74VX.js} +25 -15
  29. package/dist/{chunk-FPQHRX6W.js → chunk-7AMB4RWX.js} +1 -1
  30. package/dist/{chunk-ZZCUQWA2.js → chunk-CWYHS4IT.js} +1 -1
  31. package/dist/{chunk-UI37YHEJ.js → chunk-IMDQOEMC.js} +2 -2
  32. package/dist/{chunk-SEBNQVEU.js → chunk-MF6ONZJ3.js} +1 -1
  33. package/dist/{chunk-GQAHG6NB.js → chunk-NGHRKHT5.js} +1 -1
  34. package/dist/{chunk-P6X7CDCG.js → chunk-OYFFSNKJ.js} +1 -1
  35. package/dist/{chunk-IZDILOZ5.js → chunk-PEEIVTQG.js} +1 -1
  36. package/dist/{chunk-6PXXUHIH.js → chunk-PEUKUZGJ.js} +1 -1
  37. package/dist/{chunk-GJVLQXDA.js → chunk-SEWONIXP.js} +10 -8
  38. package/dist/{chunk-KIPQWDPP.js → chunk-SQZZHFPD.js} +1 -1
  39. package/dist/{chunk-HLIWHEXR.js → chunk-TJWV4TYG.js} +6 -1
  40. package/dist/{chunk-B3UALXOX.js → chunk-XULMT56O.js} +1 -1
  41. package/dist/{chunk-LBLHL5KZ.js → chunk-YBJEEPEW.js} +1 -1
  42. package/dist/{chunk-GKVQL352.js → chunk-ZTJ7BV33.js} +5 -3
  43. package/dist/generated/index.js +38 -38
  44. package/dist/index.js +38 -38
  45. package/dist/styles.css +82 -21
  46. package/package.json +3 -3
  47. package/dist/{Editor-HW7A54RA.js → Editor-ANVKGFJ6.js} +1 -1
package/README.md CHANGED
@@ -223,6 +223,7 @@ its parts are props, so the layout, spacing, rules and tones come with them:
223
223
  | `changes` | Before and after, a subject at a time (`ChangeGroup[]`) | `ChangeGroups` |
224
224
  | `consequences` | What else happens (`ConsequenceItem[]`), with `consequencesHeading` | `ConsequenceList`, under a rule |
225
225
  | `alternative` | A quieter way out on the footer start, "Disable instead" | a ghost button |
226
+ | `icon` | A glyph beside the title, in the framed shape's head | the head |
226
227
 
227
228
  - **A consequence is typed.** A `choice` is a checkbox with a short label and
228
229
  what it does under it; a `fact` is a muted line that simply happens or stays
@@ -251,6 +252,18 @@ Stories: Patterns / Confirmation dialogs (remove a model, remove an MCP server,
251
252
  disconnect an integration, move a seat's model, review and save, long names,
252
253
  many rows), `ConsequenceList`, `ChangeGroups` and `AssignmentList`.
253
254
 
255
+ ## Changes in 0.184.0
256
+
257
+ ### A value to copy sits in its sentence, vendor names stand out, and a fact's note follows its value
258
+
259
+ **`Copyable` takes `variant="compact"`**: a value set in a sentence ("Name: crewlet-sre"), framed and sized to itself, its copy control always drawn at the target floor with its focus ring on the frame's edge. It is drawn whole and as copied unless `truncate` asks otherwise: a value too long for the line wraps inside its frame, after a `/`, or anywhere for one opaque run. **`AgentIdentitySheet` draws each value to copy as a compact `Copyable` after its step's words**, on the same line, where it drew a full-width panel under them with the vendor's naming rule under that. `copy.rule` is no longer drawn, since the value is copied as it is, and is deprecated. **`VendorUI` is filled with the pressed overlay and framed with the strong border**, where its fill was the subtle surface, the very surface of the card or sheet it sits on, and its frame the default hairline: it now stands off every opaque surface in both modes (its fill at least 1.2:1 on each, its frame at least 1.4:1 on the page and card surfaces, its words over 7:1 on it). **A `FactLine` note follows a phrase's value** ("41s ago · next in 9m"), at the 11px step in the tertiary ink: beside the value where both fit, on a line of its own where they do not, so the value keeps its two-line clamp and the note is never cut. The dot is drawn, not read; a screen reader hears "41s ago, next in 9m". A token, a set or a whole reading keeps its note on a line of its own, at the same size. Nothing to change. Stories: `Copyable` Compact, Compact In A Sentence; `ObjectHeader` With Mark, Fact Notes.
260
+
261
+ ## Changes in 0.183.0
262
+
263
+ ### A dialog's first focus is never its quieter way out
264
+
265
+ **`Modal` starts focus on the footer's own actions before its start** when the body has nothing to focus, so a dialog with a footer start ("Disable instead", a ConfirmModal's `alternative`) opens on Cancel rather than on that action. **`ConfirmModal` takes `icon`**, the glyph its framed head draws beside the title, as `Modal`'s does. Story: Patterns / Confirmation dialogs, Disconnect Integration.
266
+
254
267
  ## Changes in 0.182.0
255
268
 
256
269
  ### An assignment row links its name and splits its value, and a consequence list rules itself off
@@ -5,13 +5,16 @@ export interface AgentIdentityCopy {
5
5
  /** What the value is, for the copy control's name: "key's name". */
6
6
  label: string;
7
7
  value: string;
8
- /** The rule the value keeps, said under it: "Lowercase letters, digits and hyphens, at most 30." */
8
+ /**
9
+ * The rule the value keeps: "Lowercase letters, digits and hyphens, at most 30."
10
+ * @deprecated Not drawn: the suggested value is copied as it is.
11
+ */
9
12
  rule?: ReactNode;
10
13
  }
11
14
  /** One numbered step at the vendor, in the vendor's own labels. */
12
15
  export interface AgentIdentityVendorStep {
13
16
  text: ReactNode;
14
- /** The value to copy at this step, drawn under its words. */
17
+ /** The value to copy at this step, drawn after its words on the same line. */
15
18
  copy?: AgentIdentityCopy | undefined;
16
19
  }
17
20
  /** One read the check makes, or one thing Crewlet does when it makes the identity itself. */
@@ -132,9 +135,9 @@ export interface AgentIdentitySheetProps {
132
135
  * The one sheet every vendor's Set up identity opens, in the same three steps:
133
136
  *
134
137
  * 1. At the vendor: numbered steps in its own labels, the vendor's page linked
135
- * on the step that names it, each value to copy under its step with the
136
- * rule it keeps; or, where Crewlet
137
- * can, one button that makes it, the steps by hand folded under it.
138
+ * on the step that names it, each value to copy after its step's words;
139
+ * or, where Crewlet can, one button that makes it, the steps by hand
140
+ * folded under it.
138
141
  * 2. Back here: the file or the token the vendor gave, or nothing.
139
142
  * 3. Check: the reads Crewlet makes, then the verdict.
140
143
  *
@@ -1,12 +1,12 @@
1
- export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-GJVLQXDA.js';
1
+ export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-SEWONIXP.js';
2
2
  import '../chunk-GAQU5V5R.js';
3
3
  import '../chunk-J73XXTGG.js';
4
4
  import '../chunk-2MN3RNRM.js';
5
- import '../chunk-GKVQL352.js';
5
+ import '../chunk-ZTJ7BV33.js';
6
6
  import '../chunk-G5HHQ3RD.js';
7
7
  import '../chunk-STJ7QBC3.js';
8
8
  import '../chunk-DTIW4CHZ.js';
9
- import '../chunk-HLIWHEXR.js';
9
+ import '../chunk-TJWV4TYG.js';
10
10
  import '../chunk-LNS3I6MG.js';
11
11
  import '../chunk-D54HL3AN.js';
12
12
  import '../chunk-7XUP32RY.js';
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * The set-up sheet's step: its parts stacked at one gap, each value to copy
3
- * under the words of its own step, and the vendor's page on a line of its own.
3
+ * after the words of its own step, and the vendor's page on a line of its own.
4
4
  */
5
5
  .crewlet-agent-identity-sheet__step {
6
6
  display: flex;
@@ -9,13 +9,6 @@
9
9
  min-inline-size: 0;
10
10
  }
11
11
 
12
- .crewlet-agent-identity-sheet__copy {
13
- display: flex;
14
- flex-direction: column;
15
- gap: var(--spacing-1);
16
- min-inline-size: 0;
17
- }
18
-
19
12
  .crewlet-agent-identity-sheet__link {
20
13
  display: flex;
21
14
  }
@@ -1,5 +1,5 @@
1
1
  export { CodeBlock } from '../chunk-WTBWYQZD.js';
2
- import '../chunk-GKVQL352.js';
2
+ import '../chunk-ZTJ7BV33.js';
3
3
  import '../chunk-G5HHQ3RD.js';
4
4
  import '../chunk-STJ7QBC3.js';
5
5
  import '../chunk-DTIW4CHZ.js';
@@ -1,6 +1,6 @@
1
- export { ColorSwatch } from '../chunk-P6X7CDCG.js';
1
+ export { ColorSwatch } from '../chunk-OYFFSNKJ.js';
2
2
  import '../chunk-7W3LYIOC.js';
3
- import '../chunk-GKVQL352.js';
3
+ import '../chunk-ZTJ7BV33.js';
4
4
  import '../chunk-G5HHQ3RD.js';
5
5
  import '../chunk-STJ7QBC3.js';
6
6
  import '../chunk-DTIW4CHZ.js';
@@ -1,8 +1,8 @@
1
- export { CommandPalette } from '../chunk-IZDILOZ5.js';
1
+ export { CommandPalette } from '../chunk-PEEIVTQG.js';
2
2
  import '../chunk-KW7T23RT.js';
3
3
  import '../chunk-VBBLHS2Y.js';
4
4
  import '../chunk-2YTOOH3A.js';
5
- import '../chunk-HLIWHEXR.js';
5
+ import '../chunk-TJWV4TYG.js';
6
6
  import '../chunk-LNS3I6MG.js';
7
7
  import '../chunk-D54HL3AN.js';
8
8
  import '../chunk-7XUP32RY.js';
@@ -1,7 +1,7 @@
1
1
  export { ContrastHelp } from '../chunk-VG3QSR5H.js';
2
2
  import '../chunk-2JDLC5A4.js';
3
- import '../chunk-AJFA2XDQ.js';
4
3
  import '../chunk-7W3LYIOC.js';
4
+ import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-HOIZJFYS.js';
6
6
  import '../chunk-QRE6JCHS.js';
7
7
  import '../chunk-VM73Y6TO.js';
@@ -1,4 +1,8 @@
1
- export type CopyableVariant = 'chip' | 'inline' | 'block';
1
+ /**
2
+ * `chip` a pill for a table cell, `inline` a value in a detail row, `compact` a
3
+ * framed value set in a sentence with its control always drawn, `block` a panel.
4
+ */
5
+ export type CopyableVariant = 'chip' | 'inline' | 'compact' | 'block';
2
6
  export interface CopyableProps {
3
7
  /** The value shown, and the text copied. */
4
8
  value: string | number | null | undefined;
@@ -1,4 +1,4 @@
1
- export { Copyable } from '../chunk-GKVQL352.js';
1
+ export { Copyable } from '../chunk-ZTJ7BV33.js';
2
2
  export { CopyButton } from '../chunk-G5HHQ3RD.js';
3
3
  import '../chunk-STJ7QBC3.js';
4
4
  import '../chunk-DTIW4CHZ.js';
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  * Copyable: a value and the IconButton that copies it, as a `chip` (a pill for
3
- * a table cell), `inline` (in a detail row) or `block` (a panel for a command).
3
+ * a table cell), `inline` (in a detail row), `compact` (in a sentence) or
4
+ * `block` (a panel for a command).
4
5
  */
5
6
 
6
7
  .crewlet-copyable {
@@ -82,6 +83,42 @@
82
83
  letter-spacing: inherit;
83
84
  }
84
85
 
86
+ /* ---- compact ----------------------------------------------------------- */
87
+
88
+ /* A value set in a sentence ("Name: crewlet-sre"): framed, sized to the value,
89
+ kept on the sentence's line, its control always drawn. */
90
+ .crewlet-copyable--compact {
91
+ gap: 0;
92
+ padding-inline-start: var(--spacing-2);
93
+ background: var(--color-surface-inset);
94
+ border: 1px solid var(--color-border-strong);
95
+ border-radius: var(--radius-sm);
96
+ }
97
+
98
+ /* Whole and as copied, as a block is: a value too long for the line wraps
99
+ inside the frame, a hairline of room above and below it. */
100
+ .crewlet-copyable--compact .crewlet-copyable__value {
101
+ font-size: var(--font-size-compact);
102
+ color: var(--color-text-primary);
103
+ padding-block: calc(var(--spacing-1) / 2);
104
+ white-space: pre-wrap;
105
+ overflow: visible;
106
+ overflow-wrap: anywhere;
107
+ text-overflow: clip;
108
+ }
109
+
110
+ /* The control at the target floor (24px), the frame's tallest part on one line. */
111
+ .crewlet-copyable--compact .crewlet-copyable__button {
112
+ opacity: 1;
113
+ width: var(--size-target-min);
114
+ height: var(--size-target-min);
115
+ }
116
+
117
+ /* Flush with the frame, so its ring covers the edge rather than standing off it. */
118
+ .crewlet-copyable--compact .crewlet-copyable__button:focus-visible {
119
+ outline-offset: var(--size-focus-ring-inset-offset);
120
+ }
121
+
85
122
  /* ---- block ------------------------------------------------------------- */
86
123
 
87
124
  .crewlet-copyable--block {
@@ -1,10 +1,10 @@
1
- export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-GQAHG6NB.js';
1
+ export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-NGHRKHT5.js';
2
2
  import '../chunk-WGLOH33S.js';
3
3
  import '../chunk-AV2DXAEL.js';
4
4
  import '../chunk-QHPKLY4V.js';
5
5
  import '../chunk-STJ7QBC3.js';
6
6
  import '../chunk-DTIW4CHZ.js';
7
- import '../chunk-HLIWHEXR.js';
7
+ import '../chunk-TJWV4TYG.js';
8
8
  import '../chunk-LNS3I6MG.js';
9
9
  import '../chunk-D54HL3AN.js';
10
10
  import '../chunk-7XUP32RY.js';
@@ -1,8 +1,8 @@
1
- export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-6PXXUHIH.js';
1
+ export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-PEUKUZGJ.js';
2
2
  import '../chunk-FPDIHEM4.js';
3
3
  import '../chunk-Z4TGAPC7.js';
4
4
  import '../chunk-RFJI4VGF.js';
5
- import '../chunk-GQAHG6NB.js';
5
+ import '../chunk-NGHRKHT5.js';
6
6
  import '../chunk-KW7T23RT.js';
7
7
  import '../chunk-EE3DJMSQ.js';
8
8
  import '../chunk-NPEI2QAN.js';
@@ -14,7 +14,7 @@ import '../chunk-QHPKLY4V.js';
14
14
  import '../chunk-VBBLHS2Y.js';
15
15
  import '../chunk-STJ7QBC3.js';
16
16
  import '../chunk-DTIW4CHZ.js';
17
- import '../chunk-HLIWHEXR.js';
17
+ import '../chunk-TJWV4TYG.js';
18
18
  import '../chunk-LNS3I6MG.js';
19
19
  import '../chunk-D54HL3AN.js';
20
20
  import '../chunk-7XUP32RY.js';
@@ -1,5 +1,5 @@
1
- export { LinkInterstitial, openExternal } from '../chunk-KIPQWDPP.js';
2
- import '../chunk-HLIWHEXR.js';
1
+ export { LinkInterstitial, openExternal } from '../chunk-SQZZHFPD.js';
2
+ import '../chunk-TJWV4TYG.js';
3
3
  import '../chunk-LNS3I6MG.js';
4
4
  import '../chunk-D54HL3AN.js';
5
5
  import '../chunk-7XUP32RY.js';
@@ -13,6 +13,8 @@ export interface ConfirmModalProps {
13
13
  */
14
14
  onConfirm: () => void | Promise<void>;
15
15
  title: ReactNode;
16
+ /** A glyph beside the title, drawn in the framed shape's head; the prompt shape has none. */
17
+ icon?: ReactNode;
16
18
  /** The sentence the prompt leads with. */
17
19
  message?: ReactNode;
18
20
  /**
@@ -104,4 +106,4 @@ export interface ConfirmModalProps {
104
106
  * and the two buttons, 420px and centred. `shape="framed"` is the way back
105
107
  * for a confirmation that grew a form inside it.
106
108
  */
107
- export declare function ConfirmModal({ open, onClose, onConfirm, title, message, moveTo, changes, changesHeading, changesCollapseAfter, consequences, consequencesHeading, alternative, children, confirmLabel, cancelLabel, destructive, confirmVariant, cancelVariant, confirmDisabled, confirmDisabledReason, submitting, busyReason, shape, size, }: ConfirmModalProps): import("react").JSX.Element;
109
+ export declare function ConfirmModal({ open, onClose, onConfirm, title, icon, message, moveTo, changes, changesHeading, changesCollapseAfter, consequences, consequencesHeading, alternative, children, confirmLabel, cancelLabel, destructive, confirmVariant, cancelVariant, confirmDisabled, confirmDisabledReason, submitting, busyReason, shape, size, }: ConfirmModalProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export { ConfirmModal, Modal } from '../chunk-HLIWHEXR.js';
1
+ export { ConfirmModal, Modal } from '../chunk-TJWV4TYG.js';
2
2
  import '../chunk-LNS3I6MG.js';
3
3
  import '../chunk-D54HL3AN.js';
4
4
  import '../chunk-7XUP32RY.js';
@@ -1,4 +1,4 @@
1
- export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from '../chunk-XVT4KMM4.js';
1
+ export { FactLine, ObjectHeader, SET_BY_VERBS, SetByLine } from '../chunk-32ZF74VX.js';
2
2
  import '../chunk-MGJAOLZC.js';
3
3
  import '../chunk-475DOAWF.js';
4
4
  import '../chunk-WSIJDWUG.js';
@@ -242,16 +242,46 @@
242
242
  overflow-wrap: normal;
243
243
  }
244
244
 
245
- /* A footnote may not set its column's width: the track does, and the note
246
- wraps inside it, balanced so the wrap reads as deliberate. It is set as
247
- the label is, so a fact line holds two sizes, the labels' and the values'. */
248
- .crewlet-fact-line__note,
245
+ /* A footnote may not set its column's width: the track does, and a by-line
246
+ wraps inside it, balanced so the wrap reads as deliberate. */
249
247
  .crewlet-fact-line__set-by {
250
248
  font-size: var(--font-size-xs);
251
249
  color: var(--color-text-tertiary);
252
250
  text-wrap: balance;
253
251
  }
254
252
 
253
+ /* A note is an aside to its value, a step under the label in the quiet ink;
254
+ it wraps inside the track, balanced, as a by-line does. */
255
+ .crewlet-fact-line__note {
256
+ min-width: 0;
257
+ font-size: var(--font-size-2xs);
258
+ font-weight: var(--font-weight-regular);
259
+ color: var(--color-text-tertiary);
260
+ text-wrap: balance;
261
+ }
262
+
263
+ /* A phrase's note sits beside its value where both fit and wraps under it
264
+ where they do not; the value keeps its own two-line clamp either way. */
265
+ .crewlet-fact-line__phrase {
266
+ display: flex;
267
+ flex-wrap: wrap;
268
+ align-items: baseline;
269
+ column-gap: var(--spacing-3);
270
+ min-width: 0;
271
+ overflow: clip;
272
+ }
273
+
274
+ /* The dot hangs in the gap before the note, so a note wrapped to a line of
275
+ its own puts it past the phrase's edge, where the clip takes it. */
276
+ .crewlet-fact-line__phrase > .crewlet-fact-line__note::before {
277
+ content: '·';
278
+ content: '·' / '';
279
+ display: inline-block;
280
+ width: var(--spacing-3);
281
+ margin-inline-start: calc(-1 * var(--spacing-3));
282
+ text-align: center;
283
+ }
284
+
255
285
  /* ── the by-line ───────────────────────────────────────────────────────── */
256
286
 
257
287
  /* An actor's mark sits on the line's own baseline, at the line's size. */
@@ -1,5 +1,5 @@
1
- export { PropertyList } from '../chunk-FPQHRX6W.js';
2
- import '../chunk-XVT4KMM4.js';
1
+ export { PropertyList } from '../chunk-7AMB4RWX.js';
2
+ import '../chunk-32ZF74VX.js';
3
3
  import '../chunk-MGJAOLZC.js';
4
4
  import '../chunk-LH4OF7FI.js';
5
5
  import '../chunk-WGLOH33S.js';
@@ -1,4 +1,4 @@
1
- export { RichEditor, preloadRichEditor } from '../chunk-SEBNQVEU.js';
1
+ export { RichEditor, preloadRichEditor } from '../chunk-MF6ONZJ3.js';
2
2
  export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-DGXHQMNP.js';
3
3
  import '../chunk-KOJPDCGQ.js';
4
4
  import '../chunk-KMTOGF6T.js';
@@ -1,4 +1,4 @@
1
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-LBLHL5KZ.js';
1
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-YBJEEPEW.js';
2
2
  import '../chunk-D5UVJL4I.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-265IX4YA.js';
@@ -7,11 +7,11 @@ import '../chunk-YMFFGPFE.js';
7
7
  import '../chunk-2YTOOH3A.js';
8
8
  import '../chunk-SK4BIFTG.js';
9
9
  import '../chunk-COS6LJ4K.js';
10
- import '../chunk-GKVQL352.js';
10
+ import '../chunk-ZTJ7BV33.js';
11
11
  import '../chunk-G5HHQ3RD.js';
12
12
  import '../chunk-STJ7QBC3.js';
13
13
  import '../chunk-DTIW4CHZ.js';
14
- import '../chunk-HLIWHEXR.js';
14
+ import '../chunk-TJWV4TYG.js';
15
15
  import '../chunk-LNS3I6MG.js';
16
16
  import '../chunk-D54HL3AN.js';
17
17
  import '../chunk-7XUP32RY.js';
@@ -1,11 +1,11 @@
1
- export { Switcher } from '../chunk-UI37YHEJ.js';
1
+ export { Switcher } from '../chunk-IMDQOEMC.js';
2
2
  import '../chunk-KW7T23RT.js';
3
- import '../chunk-AJFA2XDQ.js';
4
3
  import '../chunk-HBDA76EZ.js';
4
+ import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-WFAJYBLX.js';
6
6
  import '../chunk-SK4BIFTG.js';
7
7
  import '../chunk-COS6LJ4K.js';
8
- import '../chunk-HLIWHEXR.js';
8
+ import '../chunk-TJWV4TYG.js';
9
9
  import '../chunk-LNS3I6MG.js';
10
10
  import '../chunk-D54HL3AN.js';
11
11
  import '../chunk-7XUP32RY.js';
@@ -1,11 +1,11 @@
1
- export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-ZZCUQWA2.js';
1
+ export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-CWYHS4IT.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-HLIWHEXR.js';
8
+ import '../chunk-TJWV4TYG.js';
9
9
  import '../chunk-LNS3I6MG.js';
10
10
  import '../chunk-D54HL3AN.js';
11
11
  import '../chunk-7XUP32RY.js';
@@ -3,7 +3,7 @@ import '../chunk-3LJHDMAZ.js';
3
3
  import '../chunk-FD4E352A.js';
4
4
  import '../chunk-SK4BIFTG.js';
5
5
  import '../chunk-COS6LJ4K.js';
6
- import '../chunk-GKVQL352.js';
6
+ import '../chunk-ZTJ7BV33.js';
7
7
  import '../chunk-G5HHQ3RD.js';
8
8
  import '../chunk-STJ7QBC3.js';
9
9
  import '../chunk-DTIW4CHZ.js';
@@ -10,9 +10,10 @@ export interface VendorUIProps {
10
10
  className?: string | undefined;
11
11
  }
12
12
  /**
13
- * A name on a vendor's screen, set inside a sentence of instructions: medium
14
- * weight in a hairline frame, so it reads apart from the words around it by
15
- * shape as well as ink. A menu path draws a chevron between its levels.
13
+ * A name on a vendor's screen, set inside a sentence of instructions: semibold
14
+ * in a framed chip that stands off the surface under it, so it reads apart from
15
+ * the words around it by shape as well as ink. A menu path draws a chevron
16
+ * between its levels.
16
17
  */
17
18
  export declare function VendorUI({ path, separatorLabel, className }: VendorUIProps): import("react").JSX.Element;
18
19
  export interface StepLinkProps {
@@ -1,4 +1,4 @@
1
- export { StepLink, VendorText, VendorUI, vendorTextString } from '../chunk-B3UALXOX.js';
1
+ export { StepLink, VendorText, VendorUI, vendorTextString } from '../chunk-XULMT56O.js';
2
2
  import '../chunk-MGJAOLZC.js';
3
3
  import '../chunk-RRRK2KB6.js';
4
4
  import '../chunk-ODEQTPFM.js';
@@ -1,12 +1,13 @@
1
1
  /*
2
- * A name on a vendor's screen inside a sentence: medium-weight primary ink in
3
- * a hairline frame on the subtle surface, set apart by shape, not ink alone.
2
+ * A name on a vendor's screen inside a sentence: semibold primary ink in a
3
+ * framed chip, set apart by shape, not ink alone. The fill is a translucent
4
+ * step, so the chip stands off whatever surface it is set on.
4
5
  */
5
6
  .crewlet-vendor-ui {
6
7
  font-weight: var(--font-weight-semibold);
7
8
  color: var(--color-text-primary);
8
- background: var(--color-surface-subtle);
9
- border: 1px solid var(--color-border-default);
9
+ background: var(--color-surface-pressed);
10
+ border: 1px solid var(--color-border-strong);
10
11
  border-radius: var(--radius-xs);
11
12
  padding: 0 var(--spacing-1);
12
13
  /* Inline, so a link's underline reaches the name; sliced where it wraps, as InlineCode is. */
@@ -1,7 +1,8 @@
1
1
  import { Link } from './chunk-MGJAOLZC.js';
2
2
  import { Text } from './chunk-475DOAWF.js';
3
+ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
4
  import { cx } from './chunk-ODEQTPFM.js';
4
- import './ObjectHeader-3YYG2BAF.css';
5
+ import './ObjectHeader-O5VCDIUY.css';
5
6
  import { ArrowUpRightGlyph } from '@crewlethq/icons/glyphs';
6
7
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
8
 
@@ -38,6 +39,18 @@ function SetByLine({ setBy, fields, turnLabel = "turn", className }) {
38
39
  }
39
40
  var clamps = (fact) => !fact.token && !fact.whole && !fact.set;
40
41
  var valueOf = (fact) => fact.href ? /* @__PURE__ */ jsx(Link, { href: fact.href, size: "inherit", children: fact.value }) : fact.value;
42
+ function FactValue({ fact }) {
43
+ return /* @__PURE__ */ jsx(
44
+ "span",
45
+ {
46
+ className: cx(
47
+ "crewlet-fact-line__value",
48
+ fact.token ? "crewlet-fact-line__value--token" : clamps(fact) && "crewlet-fact-line__value--clamp"
49
+ ),
50
+ children: clamps(fact) ? /* @__PURE__ */ jsx(Text, { variant: "inherit", clamp: 2, children: valueOf(fact) }) : valueOf(fact)
51
+ }
52
+ );
53
+ }
41
54
  function FactLine({ facts, className }) {
42
55
  const shown = facts.filter((fact) => fact.value !== null && fact.value !== void 0 && fact.value !== "");
43
56
  if (shown.length === 0) return null;
@@ -52,20 +65,17 @@ function FactLine({ facts, className }) {
52
65
  children: [
53
66
  /* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__label", children: fact.label }),
54
67
  /* @__PURE__ */ jsxs("span", { className: "crewlet-fact-line__body", children: [
55
- /* @__PURE__ */ jsx(
56
- "span",
57
- {
58
- className: cx(
59
- "crewlet-fact-line__value",
60
- fact.token ? "crewlet-fact-line__value--token" : clamps(fact) && "crewlet-fact-line__value--clamp"
61
- ),
62
- children: clamps(fact) ? (
63
- // A kit Text clamps, so a cut value carries its words on hover.
64
- /* @__PURE__ */ jsx(Text, { variant: "inherit", clamp: 2, children: valueOf(fact) })
65
- ) : valueOf(fact)
66
- }
67
- ),
68
- fact.note ? /* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__note", children: fact.note }) : null,
68
+ fact.note && clamps(fact) ? (
69
+ // The note beside its value where both fit; the separator is drawn by CSS and said here.
70
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-fact-line__phrase", children: [
71
+ /* @__PURE__ */ jsx(FactValue, { fact }),
72
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: ", " }),
73
+ /* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__note", children: fact.note })
74
+ ] })
75
+ ) : /* @__PURE__ */ jsxs(Fragment, { children: [
76
+ /* @__PURE__ */ jsx(FactValue, { fact }),
77
+ fact.note ? /* @__PURE__ */ jsx("span", { className: "crewlet-fact-line__note", children: fact.note }) : null
78
+ ] }),
69
79
  fact.setBy ? /* @__PURE__ */ jsx(SetByLine, { setBy: fact.setBy, className: "crewlet-fact-line__set-by" }) : null
70
80
  ] })
71
81
  ]
@@ -1,4 +1,4 @@
1
- import { SetByLine } from './chunk-XVT4KMM4.js';
1
+ import { SetByLine } from './chunk-32ZF74VX.js';
2
2
  import { Link } from './chunk-MGJAOLZC.js';
3
3
  import { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
4
4
  import { EmptyValue } from './chunk-WGLOH33S.js';
@@ -1,5 +1,5 @@
1
1
  import { SegmentedControl } from './chunk-4GPXNMIG.js';
2
- import { Modal } from './chunk-HLIWHEXR.js';
2
+ import { Modal } from './chunk-TJWV4TYG.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,9 +1,9 @@
1
1
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
2
- import { Popover } from './chunk-AJFA2XDQ.js';
3
2
  import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
3
+ import { Popover } from './chunk-AJFA2XDQ.js';
4
4
  import { Skeleton } from './chunk-WFAJYBLX.js';
5
5
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
6
- import { Modal } from './chunk-HLIWHEXR.js';
6
+ import { Modal } from './chunk-TJWV4TYG.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';
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var engine = null;
10
10
  var loading = null;
11
11
  function loadEngine() {
12
- loading ??= import('./Editor-HW7A54RA.js').then(
12
+ loading ??= import('./Editor-ANVKGFJ6.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -2,7 +2,7 @@ import { EmptyValue } from './chunk-WGLOH33S.js';
2
2
  import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
3
3
  import { Menu } from './chunk-QHPKLY4V.js';
4
4
  import { useClipboard } from './chunk-STJ7QBC3.js';
5
- import { Modal } from './chunk-HLIWHEXR.js';
5
+ import { Modal } from './chunk-TJWV4TYG.js';
6
6
  import { Checkbox } from './chunk-X6FJSY3C.js';
7
7
  import { Button } from './chunk-JYJ24UUX.js';
8
8
  import { IconButton } from './chunk-VM73Y6TO.js';
@@ -1,5 +1,5 @@
1
1
  import { normalizeHex } from './chunk-7W3LYIOC.js';
2
- import { Copyable } from './chunk-GKVQL352.js';
2
+ import { Copyable } from './chunk-ZTJ7BV33.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ColorSwatch-HBNYO6EK.css';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -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-HLIWHEXR.js';
4
+ import { useScrollerFocus, Modal } from './chunk-TJWV4TYG.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,7 +1,7 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
2
  import { FilterPill } from './chunk-Z4TGAPC7.js';
3
3
  import { DateTimePicker } from './chunk-RFJI4VGF.js';
4
- import { DataTable } from './chunk-GQAHG6NB.js';
4
+ import { DataTable } from './chunk-NGHRKHT5.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';