@crewlethq/ui 0.121.1 → 0.122.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 (35) hide show
  1. package/README.md +1 -1
  2. package/dist/AvatarPicker/index.js +2 -2
  3. package/dist/GraphCanvas/GraphCanvas.d.ts +187 -0
  4. package/dist/GraphCanvas/index.d.ts +9 -0
  5. package/dist/GraphCanvas/index.js +21 -0
  6. package/dist/GraphCanvas/layout.d.ts +201 -0
  7. package/dist/GraphCanvas/reach.d.ts +27 -0
  8. package/dist/GraphCanvas/walk.d.ts +20 -0
  9. package/dist/GraphCanvas-RSBMO2AF.css +388 -0
  10. package/dist/ObjectHeader/ObjectHeader.d.ts +17 -2
  11. package/dist/ObjectHeader/index.d.ts +2 -2
  12. package/dist/ObjectHeader/index.js +1 -1
  13. package/dist/{ObjectHeader-5RK5YAUK.css → ObjectHeader-BH7OBEAL.css} +12 -0
  14. package/dist/OrgTable/index.js +3 -3
  15. package/dist/PropertyList/index.js +2 -2
  16. package/dist/RichEditor/index.js +1 -1
  17. package/dist/SetupWizard/index.js +2 -2
  18. package/dist/StatusLegend/StatusLegend.d.ts +1 -1
  19. package/dist/StatusLegend/index.js +1 -1
  20. package/dist/{StatusLegend-HVMKJQFY.css → StatusLegend-DMSTS2NG.css} +9 -0
  21. package/dist/{chunk-65AMIQSW.js → chunk-4PEPSGCZ.js} +4 -2
  22. package/dist/chunk-6KPHU4EB.js +1770 -0
  23. package/dist/{chunk-5LIWAA7S.js → chunk-CXFMNOPV.js} +15 -6
  24. package/dist/{chunk-3RKS3DLF.js → chunk-ENYHABQJ.js} +1 -1
  25. package/dist/{chunk-KZTR3V2P.js → chunk-J44ZIWGH.js} +11 -3
  26. package/dist/generated/index.d.ts +1 -0
  27. package/dist/generated/index.js +42 -41
  28. package/dist/index.js +42 -41
  29. package/dist/styles.css +414 -2
  30. package/package.json +3 -3
  31. package/dist/{Editor-JCAYNXQX.js → Editor-SBHTMAEK.js} +1 -1
  32. package/dist/{chunk-WLL3PFI3.js → chunk-2DZV4PHK.js} +1 -1
  33. package/dist/{chunk-YCT7LRYR.js → chunk-JWUIGUIS.js} +1 -1
  34. package/dist/{chunk-S2ZUAI6C.js → chunk-MDD6K5M4.js} +1 -1
  35. /package/dist/{chunk-33NGH63Z.js → chunk-QV3WVNRA.js} +0 -0
package/dist/styles.css CHANGED
@@ -23120,6 +23120,397 @@ button.crewlet-finding-list__row:focus-visible {
23120
23120
  }
23121
23121
 
23122
23122
 
23123
+ /* GraphCanvas-RSBMO2AF.css */
23124
+ /*
23125
+ * A layered map on a canvas (GraphCanvas.tsx).
23126
+ *
23127
+ * Every card is one size, set here in rem and spacing tokens, so the layout
23128
+ * reads it once from a probe rather than measuring each card. Colour carries
23129
+ * state only: a dot for attention, the accent for the selection, a dashed
23130
+ * edge for an unconfirmed entry, and neutral ink for everything else.
23131
+ */
23132
+
23133
+ .crewlet-graph-canvas {
23134
+ --crewlet-graph-canvas-card-width: 13.5rem;
23135
+ --crewlet-graph-canvas-card-height: 3.25rem;
23136
+ display: flex;
23137
+ flex-direction: column;
23138
+ height: 100%;
23139
+ min-height: 0;
23140
+ }
23141
+
23142
+ .crewlet-graph-canvas > .crewlet-canvas {
23143
+ flex: 1;
23144
+ }
23145
+
23146
+ .crewlet-graph-canvas__ground,
23147
+ .crewlet-graph-canvas__edges,
23148
+ .crewlet-graph-canvas__shapes,
23149
+ .crewlet-graph-canvas__card,
23150
+ .crewlet-graph-canvas__head,
23151
+ .crewlet-graph-canvas__empty,
23152
+ .crewlet-graph-canvas__empty-probe,
23153
+ .crewlet-graph-canvas__lane-head,
23154
+ .crewlet-graph-canvas__band-title,
23155
+ .crewlet-graph-canvas__probe {
23156
+ position: absolute;
23157
+ top: 0;
23158
+ left: 0;
23159
+ }
23160
+
23161
+ .crewlet-graph-canvas__ground,
23162
+ .crewlet-graph-canvas__edges,
23163
+ .crewlet-graph-canvas__shapes {
23164
+ overflow: visible;
23165
+ pointer-events: none;
23166
+ }
23167
+
23168
+ /* ── the probes the layout reads its sizes from ────────────────────────── */
23169
+
23170
+ .crewlet-graph-canvas__probe,
23171
+ .crewlet-graph-canvas__empty-probe {
23172
+ visibility: hidden;
23173
+ pointer-events: none;
23174
+ }
23175
+
23176
+ /* The channel between columns, and the gap between rows. */
23177
+ .crewlet-graph-canvas__gap {
23178
+ width: var(--spacing-10);
23179
+ height: var(--spacing-5);
23180
+ }
23181
+
23182
+ /* A lane's padding past its cards, and the room round the map and between bands. */
23183
+ .crewlet-graph-canvas__pad {
23184
+ width: var(--spacing-3);
23185
+ height: var(--spacing-6);
23186
+ }
23187
+
23188
+ .crewlet-graph-canvas__empty-probe {
23189
+ width: var(--crewlet-graph-canvas-card-width);
23190
+ }
23191
+
23192
+ /* ── lanes and bands ──────────────────────────────────────────────────────── */
23193
+
23194
+ /* A lane is a quiet panel under its cards: the column a reader follows down. */
23195
+ .crewlet-graph-canvas__lane {
23196
+ fill: var(--color-surface-subtle);
23197
+ rx: var(--radius-xl);
23198
+ }
23199
+
23200
+ .crewlet-graph-canvas__lane-head {
23201
+ box-sizing: border-box;
23202
+ display: flex;
23203
+ align-items: center;
23204
+ gap: var(--spacing-2);
23205
+ padding: var(--spacing-3) var(--spacing-1) var(--spacing-2);
23206
+ font-size: var(--font-size-xs);
23207
+ line-height: var(--font-line-height-snug);
23208
+ white-space: nowrap;
23209
+ pointer-events: none;
23210
+ }
23211
+
23212
+ .crewlet-graph-canvas__lane-label {
23213
+ min-width: 0;
23214
+ overflow: hidden;
23215
+ text-overflow: ellipsis;
23216
+ font-weight: var(--font-weight-semibold);
23217
+ color: var(--color-text-secondary);
23218
+ }
23219
+
23220
+ .crewlet-graph-canvas__lane-count {
23221
+ color: var(--color-text-tertiary);
23222
+ font-variant-numeric: tabular-nums;
23223
+ }
23224
+
23225
+ .crewlet-graph-canvas__band-title {
23226
+ box-sizing: border-box;
23227
+ display: flex;
23228
+ align-items: flex-end;
23229
+ padding: var(--spacing-4) var(--spacing-1) var(--spacing-1);
23230
+ font-size: var(--font-size-sm);
23231
+ font-weight: var(--font-weight-semibold);
23232
+ line-height: var(--font-line-height-snug);
23233
+ color: var(--color-text-primary);
23234
+ white-space: nowrap;
23235
+ pointer-events: none;
23236
+ }
23237
+
23238
+ /* ── groups ──────────────────────────────────────────────────────────────── */
23239
+
23240
+ /* A dashed box: a card's own edge is solid, and a grouping is not a thing. */
23241
+ .crewlet-graph-canvas__group {
23242
+ fill: var(--color-surface-background);
23243
+ stroke: var(--color-border-strong);
23244
+ stroke-dasharray: 4 3;
23245
+ rx: var(--radius-lg);
23246
+ }
23247
+
23248
+ .crewlet-graph-canvas__head {
23249
+ box-sizing: border-box;
23250
+ display: flex;
23251
+ align-items: center;
23252
+ gap: var(--spacing-2);
23253
+ padding: 0 var(--spacing-2);
23254
+ font-size: var(--font-size-xs);
23255
+ line-height: var(--font-line-height-snug);
23256
+ color: var(--color-text-secondary);
23257
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
23258
+ cursor: pointer;
23259
+ outline: none;
23260
+ }
23261
+
23262
+ .crewlet-graph-canvas__head:hover {
23263
+ color: var(--color-text-primary);
23264
+ }
23265
+
23266
+ .crewlet-graph-canvas__head:focus-visible {
23267
+ outline: 2px solid var(--color-focus);
23268
+ outline-offset: var(--size-focus-ring-inset-offset);
23269
+ }
23270
+
23271
+ .crewlet-graph-canvas__lead {
23272
+ display: inline-flex;
23273
+ flex: none;
23274
+ }
23275
+
23276
+ .crewlet-graph-canvas__group-label {
23277
+ min-width: 0;
23278
+ font-weight: var(--font-weight-medium);
23279
+ }
23280
+
23281
+ .crewlet-graph-canvas__group-count {
23282
+ color: var(--color-text-tertiary);
23283
+ font-variant-numeric: tabular-nums;
23284
+ }
23285
+
23286
+ .crewlet-graph-canvas__chevron {
23287
+ flex: none;
23288
+ color: var(--color-text-tertiary);
23289
+ }
23290
+
23291
+ /* ── cards ───────────────────────────────────────────────────────────────── */
23292
+
23293
+ .crewlet-graph-canvas__card {
23294
+ box-sizing: border-box;
23295
+ width: var(--crewlet-graph-canvas-card-width);
23296
+ height: var(--crewlet-graph-canvas-card-height);
23297
+ display: flex;
23298
+ align-items: center;
23299
+ gap: var(--spacing-2);
23300
+ padding: 0 var(--spacing-3) 0 var(--spacing-2);
23301
+ background: var(--color-surface-elevated);
23302
+ border: 1px solid var(--color-border-default);
23303
+ border-radius: var(--radius-lg);
23304
+ box-shadow: var(--shadow-xs);
23305
+ color: var(--color-text-primary);
23306
+ cursor: pointer;
23307
+ outline: none;
23308
+ }
23309
+
23310
+ .crewlet-graph-canvas__card:hover {
23311
+ border-color: var(--color-border-hover);
23312
+ }
23313
+
23314
+ /* The ring is drawn over the card's own edge, never beside it. */
23315
+ .crewlet-graph-canvas__card:focus-visible {
23316
+ outline: 2px solid var(--color-focus);
23317
+ outline-offset: var(--size-focus-ring-inset-offset);
23318
+ }
23319
+
23320
+ /* The selection is where the reader is: the accent, as the card's own edge made heavier. */
23321
+ .crewlet-graph-canvas__card[data-selected] {
23322
+ border-color: var(--color-brand-accent);
23323
+ box-shadow: inset 0 0 0 1px var(--color-brand-accent);
23324
+ }
23325
+
23326
+ /* Not confirmed by anyone the map trusts: the edge is dashed, the same device a grouping uses. */
23327
+ .crewlet-graph-canvas__card[data-unconfirmed] {
23328
+ border-style: dashed;
23329
+ border-color: var(--color-border-strong);
23330
+ box-shadow: none;
23331
+ }
23332
+
23333
+ .crewlet-graph-canvas__card[data-unconfirmed][data-selected] {
23334
+ border-color: var(--color-brand-accent);
23335
+ }
23336
+
23337
+ /*
23338
+ * Pushed back: the card sinks into its lane's own fill, flat and grey, its
23339
+ * words in the quiet ink, which still clears its contrast floor; only the
23340
+ * glyph, which the name already says, fades.
23341
+ */
23342
+ .crewlet-graph-canvas__card[data-dimmed] {
23343
+ background: var(--color-surface-subtle);
23344
+ border-color: var(--color-border-default);
23345
+ box-shadow: none;
23346
+ color: var(--color-text-tertiary);
23347
+ }
23348
+
23349
+ .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__name {
23350
+ font-weight: var(--font-weight-regular);
23351
+ }
23352
+
23353
+ .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__tile {
23354
+ filter: grayscale(1);
23355
+ opacity: 0.5;
23356
+ }
23357
+
23358
+ .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__dot {
23359
+ filter: grayscale(1);
23360
+ }
23361
+
23362
+ .crewlet-graph-canvas__head[data-dimmed] {
23363
+ color: var(--color-text-tertiary);
23364
+ }
23365
+
23366
+ .crewlet-graph-canvas__tile {
23367
+ flex: none;
23368
+ }
23369
+
23370
+ .crewlet-graph-canvas__text {
23371
+ display: flex;
23372
+ flex-direction: column;
23373
+ min-width: 0;
23374
+ flex: 1;
23375
+ }
23376
+
23377
+ .crewlet-graph-canvas__name {
23378
+ font-size: var(--font-size-sm);
23379
+ font-weight: var(--font-weight-medium);
23380
+ line-height: var(--font-line-height-snug);
23381
+ }
23382
+
23383
+ .crewlet-graph-canvas__caption {
23384
+ font-size: var(--font-size-xs);
23385
+ line-height: var(--font-line-height-snug);
23386
+ color: var(--color-text-tertiary);
23387
+ }
23388
+
23389
+ .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__caption {
23390
+ color: var(--color-text-tertiary);
23391
+ }
23392
+
23393
+ /* The dot stands on the card's top corner, clear of the name. */
23394
+ .crewlet-graph-canvas__dot {
23395
+ position: absolute;
23396
+ top: var(--spacing-2);
23397
+ right: var(--spacing-2);
23398
+ }
23399
+
23400
+ .crewlet-graph-canvas__card--group .crewlet-graph-canvas__chevron {
23401
+ margin-right: calc(-1 * var(--spacing-1));
23402
+ }
23403
+
23404
+ /* ── empty lanes ────────────────────────────────────────────────────────── */
23405
+
23406
+ .crewlet-graph-canvas__empty,
23407
+ .crewlet-graph-canvas__empty-probe {
23408
+ box-sizing: border-box;
23409
+ padding: var(--spacing-3);
23410
+ font-size: var(--font-size-xs);
23411
+ line-height: var(--font-line-height-normal);
23412
+ color: var(--color-text-secondary);
23413
+ overflow-wrap: anywhere;
23414
+ }
23415
+
23416
+ .crewlet-graph-canvas__empty {
23417
+ display: flex;
23418
+ flex-direction: column;
23419
+ align-items: flex-start;
23420
+ gap: var(--spacing-2);
23421
+ border: 1px dashed var(--color-border-strong);
23422
+ border-radius: var(--radius-lg);
23423
+ outline: none;
23424
+ }
23425
+
23426
+ .crewlet-graph-canvas__empty-probe {
23427
+ display: flex;
23428
+ flex-direction: column;
23429
+ gap: var(--spacing-2);
23430
+ }
23431
+
23432
+ .crewlet-graph-canvas__empty:focus-visible {
23433
+ outline: 2px solid var(--color-focus);
23434
+ outline-offset: var(--size-focus-ring-inset-offset);
23435
+ }
23436
+
23437
+ /* ── edges ───────────────────────────────────────────────────────────────── */
23438
+
23439
+ /*
23440
+ * An edge is the content between cards, so it takes the boundary step the
23441
+ * palette holds to 3:1 on the canvas's ground, as a tree's connectors do.
23442
+ */
23443
+ .crewlet-graph-canvas__edge {
23444
+ fill: none;
23445
+ stroke: var(--color-border-control);
23446
+ stroke-width: 1.5;
23447
+ stroke-linecap: round;
23448
+ stroke-linejoin: round;
23449
+ }
23450
+
23451
+ .crewlet-graph-canvas__arrow {
23452
+ fill: var(--color-border-control);
23453
+ stroke: none;
23454
+ }
23455
+
23456
+ .crewlet-graph-canvas__edge[data-state='faint'] {
23457
+ stroke: var(--color-border-default);
23458
+ }
23459
+
23460
+ .crewlet-graph-canvas__arrow[data-state='faint'] {
23461
+ fill: var(--color-border-default);
23462
+ }
23463
+
23464
+ .crewlet-graph-canvas__edge[data-state='strong'] {
23465
+ stroke: var(--color-brand-accent);
23466
+ stroke-width: 2;
23467
+ }
23468
+
23469
+ .crewlet-graph-canvas__arrow[data-state='strong'] {
23470
+ fill: var(--color-brand-accent);
23471
+ }
23472
+
23473
+ /* ── cards as shapes, zoomed out past reading ─────────────────────────────── */
23474
+
23475
+ .crewlet-graph-canvas__shapes path {
23476
+ stroke-width: 1;
23477
+ }
23478
+
23479
+ .crewlet-graph-canvas__shapes [data-shape='card'] {
23480
+ fill: var(--color-surface-elevated);
23481
+ stroke: var(--color-border-strong);
23482
+ }
23483
+
23484
+ .crewlet-graph-canvas__shapes [data-shape='faded'] {
23485
+ fill: var(--color-surface-background);
23486
+ stroke: var(--color-border-default);
23487
+ }
23488
+
23489
+ .crewlet-graph-canvas__shapes [data-shape='dashed'] {
23490
+ fill: var(--color-surface-elevated);
23491
+ stroke: var(--color-border-strong);
23492
+ stroke-dasharray: 4 3;
23493
+ }
23494
+
23495
+ .crewlet-graph-canvas__shapes [data-shape='selected'] {
23496
+ fill: var(--color-surface-elevated);
23497
+ stroke: var(--color-brand-accent);
23498
+ stroke-width: 3;
23499
+ }
23500
+
23501
+ .crewlet-graph-canvas__shapes [data-shape='danger'] {
23502
+ fill: var(--color-feedback-danger);
23503
+ }
23504
+
23505
+ .crewlet-graph-canvas__shapes [data-shape='warning'] {
23506
+ fill: var(--color-feedback-warning);
23507
+ }
23508
+
23509
+ .crewlet-graph-canvas__shapes [data-shape='info'] {
23510
+ fill: var(--color-feedback-info);
23511
+ }
23512
+
23513
+
23123
23514
  /* Highlight-DXLV2R6L.css */
23124
23515
  /*
23125
23516
  * Words a search matched (Highlight.tsx).
@@ -30023,7 +30414,7 @@ button.crewlet-mention-chip:focus-visible {
30023
30414
  }
30024
30415
 
30025
30416
 
30026
- /* ObjectHeader-5RK5YAUK.css */
30417
+ /* ObjectHeader-BH7OBEAL.css */
30027
30418
  /*
30028
30419
  * The header of an object: its eyebrow, its head row and its fact line.
30029
30420
  *
@@ -30278,6 +30669,18 @@ button.crewlet-mention-chip:focus-visible {
30278
30669
 
30279
30670
  /* ── the by-line ───────────────────────────────────────────────────────── */
30280
30671
 
30672
+ /* An actor's mark sits on the line's own baseline, at the line's size. */
30673
+ .crewlet-set-by__mark {
30674
+ display: inline-flex;
30675
+ vertical-align: -0.125em;
30676
+ margin-right: 0.25em;
30677
+ }
30678
+
30679
+ .crewlet-set-by__mark > svg {
30680
+ width: 1em;
30681
+ height: 1em;
30682
+ }
30683
+
30281
30684
  /* The word and its arrow are one atomic box, so the arrow never takes a line
30282
30685
  of its own. */
30283
30686
  .crewlet-set-by__turn {
@@ -42067,7 +42470,7 @@ svg.crewlet-select__chevron {
42067
42470
  }
42068
42471
 
42069
42472
 
42070
- /* StatusLegend-HVMKJQFY.css */
42473
+ /* StatusLegend-DMSTS2NG.css */
42071
42474
  /*
42072
42475
  * A status legend (StatusLegend.tsx): each status's dot, word and quiet count
42073
42476
  * on one line that wraps, in a canvas bar's type. As a filter, each item is a
@@ -42101,6 +42504,15 @@ svg.crewlet-select__chevron {
42101
42504
  white-space: nowrap;
42102
42505
  }
42103
42506
 
42507
+ /* What a reader sees of an item, hidden from assistive technology, which hears one sentence instead:
42508
+ the dot and word, then the count, a step and a half apart on one line. */
42509
+ .crewlet-status-legend__face {
42510
+ display: inline-flex;
42511
+ align-items: center;
42512
+ gap: calc(var(--spacing-1) * 1.5);
42513
+ min-width: 0;
42514
+ }
42515
+
42104
42516
  button.crewlet-status-legend__item {
42105
42517
  cursor: pointer;
42106
42518
  transition:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.121.1",
3
+ "version": "0.122.0",
4
4
  "description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "clean": "rm -rf dist src/generated"
43
43
  },
44
44
  "dependencies": {
45
- "@crewlethq/icons": "0.121.1",
46
- "@crewlethq/tokens": "0.121.1",
45
+ "@crewlethq/icons": "0.122.0",
46
+ "@crewlethq/tokens": "0.122.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,5 +1,5 @@
1
- import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
2
1
  import { richEditorLabels } from './chunk-2DMTW2Y3.js';
2
+ import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
3
3
  import './chunk-KOJPDCGQ.js';
4
4
  import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
5
5
  import { Toolbar } from './chunk-NPEI2QAN.js';
@@ -1,5 +1,5 @@
1
- import { Stepper } from './chunk-EHD4CEHK.js';
2
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
+ import { Stepper } from './chunk-EHD4CEHK.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
1
  import { HuePicker } from './chunk-5P6LLFEO.js';
2
2
  import { Popover } from './chunk-KDRJZWE3.js';
3
- import { CharacterPicker } from './chunk-S4JRQJEP.js';
4
3
  import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
4
+ import { CharacterPicker } from './chunk-S4JRQJEP.js';
5
5
  import { Avatar } from './chunk-XZY6S3UC.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './AvatarPicker-POOJUOKC.css';
@@ -1,6 +1,6 @@
1
1
  import { TreeGrid } from './chunk-X5YI6QLW.js';
2
- import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
3
2
  import { OrgLabel } from './chunk-DEVO45TG.js';
3
+ import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
4
4
  import { AddPill } from './chunk-5W3EYO5Q.js';
5
5
  import { IconButton } from './chunk-X5YI6E5X.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
File without changes