@crewlethq/ui 0.183.0 → 0.185.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 (41) hide show
  1. package/README.md +12 -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/ArrangeFrame/ArrangeFrame.d.ts +3 -2
  6. package/dist/ArrangeFrame/index.js +1 -1
  7. package/dist/{ArrangeFrame-7B6PUS37.css → ArrangeFrame-BW76K5LZ.css} +6 -9
  8. package/dist/CodeBlock/index.js +1 -1
  9. package/dist/ColorSwatch/index.js +2 -2
  10. package/dist/Copyable/Copyable.d.ts +5 -1
  11. package/dist/Copyable/index.js +1 -1
  12. package/dist/{Copyable-U4RPG75T.css → Copyable-CMT2N2JE.css} +38 -1
  13. package/dist/GraphCanvas/index.js +2 -2
  14. package/dist/List/List.d.ts +9 -1
  15. package/dist/List/index.d.ts +2 -0
  16. package/dist/List/index.js +1 -1
  17. package/dist/List/useFitRows.d.ts +19 -0
  18. package/dist/{List-DG77FXA6.css → List-LVKZDICE.css} +16 -0
  19. package/dist/ObjectHeader/index.js +1 -1
  20. package/dist/{ObjectHeader-3YYG2BAF.css → ObjectHeader-O5VCDIUY.css} +34 -4
  21. package/dist/PropertyList/index.js +2 -2
  22. package/dist/RoomRow/index.js +2 -2
  23. package/dist/ShareDialog/index.js +1 -1
  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-45OOFAL6.js → chunk-FSCTR6XE.js} +1 -1
  31. package/dist/{chunk-P6X7CDCG.js → chunk-OYFFSNKJ.js} +1 -1
  32. package/dist/{chunk-GAQU5V5R.js → chunk-Q7ZP6UPU.js} +76 -3
  33. package/dist/{chunk-GF7VSU5G.js → chunk-WLK4PASS.js} +1 -1
  34. package/dist/{chunk-FGDYDO6Q.js → chunk-XGWNL65J.js} +10 -8
  35. package/dist/{chunk-B3UALXOX.js → chunk-XULMT56O.js} +1 -1
  36. package/dist/{chunk-GKVQL352.js → chunk-ZTJ7BV33.js} +5 -3
  37. package/dist/generated/index.js +25 -25
  38. package/dist/index.js +25 -25
  39. package/dist/styles.css +106 -32
  40. package/package.json +3 -3
  41. package/dist/{chunk-OD7LFCYV.js → chunk-UTPLRVXN.js} +1 -1
package/dist/styles.css CHANGED
@@ -1016,10 +1016,10 @@
1016
1016
  }
1017
1017
 
1018
1018
 
1019
- /* AgentIdentitySheet-D2T7ELGN.css */
1019
+ /* AgentIdentitySheet-QIOWB7XK.css */
1020
1020
  /*
1021
1021
  * The set-up sheet's step: its parts stacked at one gap, each value to copy
1022
- * under the words of its own step, and the vendor's page on a line of its own.
1022
+ * after the words of its own step, and the vendor's page on a line of its own.
1023
1023
  */
1024
1024
  .crewlet-agent-identity-sheet__step {
1025
1025
  display: flex;
@@ -1028,13 +1028,6 @@
1028
1028
  min-inline-size: 0;
1029
1029
  }
1030
1030
 
1031
- .crewlet-agent-identity-sheet__copy {
1032
- display: flex;
1033
- flex-direction: column;
1034
- gap: var(--spacing-1);
1035
- min-inline-size: 0;
1036
- }
1037
-
1038
1031
  .crewlet-agent-identity-sheet__link {
1039
1032
  display: flex;
1040
1033
  }
@@ -2379,7 +2372,7 @@ button.crewlet-account-row__who:focus-visible {
2379
2372
  }
2380
2373
 
2381
2374
 
2382
- /* ArrangeFrame-7B6PUS37.css */
2375
+ /* ArrangeFrame-BW76K5LZ.css */
2383
2376
  /*
2384
2377
  * ArrangeFrame: a block of a page being arranged.
2385
2378
  *
@@ -2414,12 +2407,10 @@ button.crewlet-account-row__who:focus-visible {
2414
2407
  min-height: 0;
2415
2408
  }
2416
2409
 
2417
- /* A height of the reader's: the content scrolls inside it, and the wheel
2418
- passes to the page at its ends (vertical `contain` held it even over a block
2419
- whose content fits). Sideways it stays, so a swipe never turns the page back. */
2410
+ /* A height of the reader's never scrolls: the content fits itself to it (a
2411
+ `fit` List shows the rows that fit whole) and the rest is clipped. */
2420
2412
  .crewlet-arrange-frame.is-fixed-height .crewlet-arrange-frame__content > * {
2421
- overflow: auto;
2422
- overscroll-behavior-x: contain;
2413
+ overflow: clip;
2423
2414
  }
2424
2415
 
2425
2416
  /* ---- Editing ---------------------------------------------------------- */
@@ -2447,10 +2438,9 @@ button.crewlet-account-row__who:focus-visible {
2447
2438
  * so the border changes colour rather than a second line appearing around it.
2448
2439
  *
2449
2440
  * IT IS A LAYER OF ITS OWN, above the content. An outline is painted with the
2450
- * block, under any content that is positioned or scrolls (a card with a fixed
2451
- * height scrolls its list), and that content covered it. Positioned after the
2452
- * content with no depth of its own, it paints over the content and under the
2453
- * toolbar and the handle, which are raised.
2441
+ * block, under any content that is positioned or clips, and that content
2442
+ * covered it. Positioned after the content with no depth of its own, it paints
2443
+ * over the content and under the toolbar and the handle, which are raised.
2454
2444
  */
2455
2445
  .crewlet-arrange-frame.is-editing::after {
2456
2446
  content: '';
@@ -16178,10 +16168,11 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
16178
16168
  }
16179
16169
 
16180
16170
 
16181
- /* Copyable-U4RPG75T.css */
16171
+ /* Copyable-CMT2N2JE.css */
16182
16172
  /*
16183
16173
  * Copyable: a value and the IconButton that copies it, as a `chip` (a pill for
16184
- * a table cell), `inline` (in a detail row) or `block` (a panel for a command).
16174
+ * a table cell), `inline` (in a detail row), `compact` (in a sentence) or
16175
+ * `block` (a panel for a command).
16185
16176
  */
16186
16177
 
16187
16178
  .crewlet-copyable {
@@ -16263,6 +16254,42 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
16263
16254
  letter-spacing: inherit;
16264
16255
  }
16265
16256
 
16257
+ /* ---- compact ----------------------------------------------------------- */
16258
+
16259
+ /* A value set in a sentence ("Name: crewlet-sre"): framed, sized to the value,
16260
+ kept on the sentence's line, its control always drawn. */
16261
+ .crewlet-copyable--compact {
16262
+ gap: 0;
16263
+ padding-inline-start: var(--spacing-2);
16264
+ background: var(--color-surface-inset);
16265
+ border: 1px solid var(--color-border-strong);
16266
+ border-radius: var(--radius-sm);
16267
+ }
16268
+
16269
+ /* Whole and as copied, as a block is: a value too long for the line wraps
16270
+ inside the frame, a hairline of room above and below it. */
16271
+ .crewlet-copyable--compact .crewlet-copyable__value {
16272
+ font-size: var(--font-size-compact);
16273
+ color: var(--color-text-primary);
16274
+ padding-block: calc(var(--spacing-1) / 2);
16275
+ white-space: pre-wrap;
16276
+ overflow: visible;
16277
+ overflow-wrap: anywhere;
16278
+ text-overflow: clip;
16279
+ }
16280
+
16281
+ /* The control at the target floor (24px), the frame's tallest part on one line. */
16282
+ .crewlet-copyable--compact .crewlet-copyable__button {
16283
+ opacity: 1;
16284
+ width: var(--size-target-min);
16285
+ height: var(--size-target-min);
16286
+ }
16287
+
16288
+ /* Flush with the frame, so its ring covers the edge rather than standing off it. */
16289
+ .crewlet-copyable--compact .crewlet-copyable__button:focus-visible {
16290
+ outline-offset: var(--size-focus-ring-inset-offset);
16291
+ }
16292
+
16266
16293
  /* ---- block ------------------------------------------------------------- */
16267
16294
 
16268
16295
  .crewlet-copyable--block {
@@ -29044,7 +29071,7 @@ a.crewlet-link-card__link:hover .crewlet-link-card__title {
29044
29071
  }
29045
29072
 
29046
29073
 
29047
- /* List-DG77FXA6.css */
29074
+ /* List-LVKZDICE.css */
29048
29075
  /*
29049
29076
  * The non-tabular list. One row recipe, four framings.
29050
29077
  *
@@ -29131,6 +29158,16 @@ a.crewlet-link-card__link:hover .crewlet-link-card__title {
29131
29158
  outline-offset: var(--size-focus-ring-inset-offset);
29132
29159
  }
29133
29160
 
29161
+ /*
29162
+ * A list that fits its box takes the room its column leaves it and clips,
29163
+ * without becoming a scroll container; the rows past its edge are hidden.
29164
+ */
29165
+ .crewlet-list--fit {
29166
+ flex: 1 1 auto;
29167
+ min-height: 0;
29168
+ overflow: clip;
29169
+ }
29170
+
29134
29171
  /* ---- Framings ---------------------------------------------------------- */
29135
29172
 
29136
29173
  .crewlet-list--divided .crewlet-list__item {
@@ -29141,6 +29178,12 @@ a.crewlet-link-card__link:hover .crewlet-link-card__title {
29141
29178
  border-bottom: none;
29142
29179
  }
29143
29180
 
29181
+ /* The last row a fitting list shows keeps its rule's width, so fitting never
29182
+ changes a row's height and refits it. */
29183
+ .crewlet-list--divided .crewlet-list__item:has(+ [data-fit-hidden]) {
29184
+ border-bottom-color: transparent;
29185
+ }
29186
+
29144
29187
  .crewlet-list--divided .crewlet-list__row {
29145
29188
  border-radius: 0;
29146
29189
  }
@@ -33091,7 +33134,7 @@ button.crewlet-mention-chip:focus-visible {
33091
33134
  }
33092
33135
 
33093
33136
 
33094
- /* ObjectHeader-3YYG2BAF.css */
33137
+ /* ObjectHeader-O5VCDIUY.css */
33095
33138
  /*
33096
33139
  * The header of an object: its eyebrow, its head row and its fact line.
33097
33140
  *
@@ -33336,16 +33379,46 @@ button.crewlet-mention-chip:focus-visible {
33336
33379
  overflow-wrap: normal;
33337
33380
  }
33338
33381
 
33339
- /* A footnote may not set its column's width: the track does, and the note
33340
- wraps inside it, balanced so the wrap reads as deliberate. It is set as
33341
- the label is, so a fact line holds two sizes, the labels' and the values'. */
33342
- .crewlet-fact-line__note,
33382
+ /* A footnote may not set its column's width: the track does, and a by-line
33383
+ wraps inside it, balanced so the wrap reads as deliberate. */
33343
33384
  .crewlet-fact-line__set-by {
33344
33385
  font-size: var(--font-size-xs);
33345
33386
  color: var(--color-text-tertiary);
33346
33387
  text-wrap: balance;
33347
33388
  }
33348
33389
 
33390
+ /* A note is an aside to its value, a step under the label in the quiet ink;
33391
+ it wraps inside the track, balanced, as a by-line does. */
33392
+ .crewlet-fact-line__note {
33393
+ min-width: 0;
33394
+ font-size: var(--font-size-2xs);
33395
+ font-weight: var(--font-weight-regular);
33396
+ color: var(--color-text-tertiary);
33397
+ text-wrap: balance;
33398
+ }
33399
+
33400
+ /* A phrase's note sits beside its value where both fit and wraps under it
33401
+ where they do not; the value keeps its own two-line clamp either way. */
33402
+ .crewlet-fact-line__phrase {
33403
+ display: flex;
33404
+ flex-wrap: wrap;
33405
+ align-items: baseline;
33406
+ column-gap: var(--spacing-3);
33407
+ min-width: 0;
33408
+ overflow: clip;
33409
+ }
33410
+
33411
+ /* The dot hangs in the gap before the note, so a note wrapped to a line of
33412
+ its own puts it past the phrase's edge, where the clip takes it. */
33413
+ .crewlet-fact-line__phrase > .crewlet-fact-line__note::before {
33414
+ content: '·';
33415
+ content: '·' / '';
33416
+ display: inline-block;
33417
+ width: var(--spacing-3);
33418
+ margin-inline-start: calc(-1 * var(--spacing-3));
33419
+ text-align: center;
33420
+ }
33421
+
33349
33422
  /* ── the by-line ───────────────────────────────────────────────────────── */
33350
33423
 
33351
33424
  /* An actor's mark sits on the line's own baseline, at the line's size. */
@@ -53463,16 +53536,17 @@ svg.crewlet-time-window__tick {
53463
53536
  }
53464
53537
 
53465
53538
 
53466
- /* VendorText-ET5DJY5Y.css */
53539
+ /* VendorText-XAKA4QY5.css */
53467
53540
  /*
53468
- * A name on a vendor's screen inside a sentence: medium-weight primary ink in
53469
- * a hairline frame on the subtle surface, set apart by shape, not ink alone.
53541
+ * A name on a vendor's screen inside a sentence: semibold primary ink in a
53542
+ * framed chip, set apart by shape, not ink alone. The fill is a translucent
53543
+ * step, so the chip stands off whatever surface it is set on.
53470
53544
  */
53471
53545
  .crewlet-vendor-ui {
53472
53546
  font-weight: var(--font-weight-semibold);
53473
53547
  color: var(--color-text-primary);
53474
- background: var(--color-surface-subtle);
53475
- border: 1px solid var(--color-border-default);
53548
+ background: var(--color-surface-pressed);
53549
+ border: 1px solid var(--color-border-strong);
53476
53550
  border-radius: var(--radius-xs);
53477
53551
  padding: 0 var(--spacing-1);
53478
53552
  /* Inline, so a link's underline reaches the name; sliced where it wraps, as InlineCode is. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.183.0",
3
+ "version": "0.185.0",
4
4
  "description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,8 +43,8 @@
43
43
  "clean": "rm -rf dist src/generated"
44
44
  },
45
45
  "dependencies": {
46
- "@crewlethq/icons": "0.183.0",
47
- "@crewlethq/tokens": "0.183.0",
46
+ "@crewlethq/icons": "0.185.0",
47
+ "@crewlethq/tokens": "0.185.0",
48
48
  "prosemirror-commands": "1.7.2",
49
49
  "prosemirror-gapcursor": "1.4.1",
50
50
  "prosemirror-history": "1.5.1",
@@ -1,6 +1,6 @@
1
1
  import { useMeasuredSizes, isTypeAheadKey, typeAheadBuffer } from './chunk-MY374UUD.js';
2
- import { FilterChip } from './chunk-L6HUVA33.js';
3
2
  import { FullscreenToggle } from './chunk-5EAMUZAJ.js';
3
+ import { FilterChip } from './chunk-L6HUVA33.js';
4
4
  import { CANVAS_FIT_PADDING, Canvas } from './chunk-M2QGWIPH.js';
5
5
  import { Text } from './chunk-475DOAWF.js';
6
6
  import { LayerHost } from './chunk-AVJKMQXK.js';