@crewlethq/ui 0.126.3 → 0.128.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 (117) hide show
  1. package/README.md +16 -0
  2. package/dist/ActivityLine/index.js +3 -3
  3. package/dist/AgentHandoffPanel/index.js +7 -7
  4. package/dist/AppShell/index.js +3 -3
  5. package/dist/ArtifactCard/index.js +3 -3
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-CRSLRUVT.css → Avatar-RHFI55UZ.css} +14 -0
  8. package/dist/{AvatarStack-GNEJHEU6.css → AvatarStack-UNBXFHTZ.css} +14 -1
  9. package/dist/Canvas/Canvas.d.ts +12 -1
  10. package/dist/Canvas/index.d.ts +1 -1
  11. package/dist/Canvas/index.js +1 -1
  12. package/dist/CanvasBoard/index.js +3 -3
  13. package/dist/CanvasToolbar/index.js +2 -2
  14. package/dist/ChatThread/index.js +3 -3
  15. package/dist/Clamp/Clamp.d.ts +50 -0
  16. package/dist/Clamp/index.d.ts +3 -0
  17. package/dist/Clamp/index.js +12 -0
  18. package/dist/Clamp-Q5WKCGWY.css +60 -0
  19. package/dist/Combobox/index.js +2 -2
  20. package/dist/CommandPalette/index.js +5 -5
  21. package/dist/CommentThread/index.js +7 -7
  22. package/dist/Composer/index.js +3 -3
  23. package/dist/DataGrid/index.js +3 -3
  24. package/dist/DataTable/index.js +4 -4
  25. package/dist/DataView/index.js +6 -6
  26. package/dist/DeliveryReceipt/DeliveryReceipt.d.ts +37 -24
  27. package/dist/DeliveryReceipt/index.js +1 -2
  28. package/dist/{DeliveryReceipt-G55ILD6O.css → DeliveryReceipt-BILVVNTO.css} +11 -14
  29. package/dist/DocTabsEditor/index.js +4 -4
  30. package/dist/DockColumn/index.js +1 -1
  31. package/dist/EntityChip/index.js +1 -1
  32. package/dist/GraphCanvas/GraphCanvas.d.ts +35 -6
  33. package/dist/GraphCanvas/index.d.ts +1 -1
  34. package/dist/GraphCanvas/index.js +3 -3
  35. package/dist/{GraphCanvas-V4VJADVF.css → GraphCanvas-R242DSDH.css} +17 -0
  36. package/dist/ImageUpload/index.js +1 -1
  37. package/dist/KeyValueRows/index.js +3 -3
  38. package/dist/ListInput/index.js +4 -4
  39. package/dist/OrgLabel/index.js +1 -1
  40. package/dist/OrgNode/index.js +1 -1
  41. package/dist/OrgTable/index.js +6 -6
  42. package/dist/PeopleRail/index.js +1 -1
  43. package/dist/PresenceStack/index.js +1 -1
  44. package/dist/Principal/index.js +1 -1
  45. package/dist/PrincipalPicker/index.js +4 -4
  46. package/dist/ProposalCard/index.js +3 -3
  47. package/dist/RailList/index.js +5 -5
  48. package/dist/RichEditor/index.js +1 -1
  49. package/dist/SectionFrame/index.js +3 -3
  50. package/dist/Select/index.js +2 -2
  51. package/dist/SendKeys/index.js +2 -2
  52. package/dist/SetupWizard/index.js +1 -1
  53. package/dist/ShareDialog/index.js +6 -6
  54. package/dist/SheetColumnEditor/index.js +7 -7
  55. package/dist/SheetGrid/index.js +1 -1
  56. package/dist/SidebarNav/index.js +2 -2
  57. package/dist/SlideFilmstrip/index.js +4 -4
  58. package/dist/Switcher/index.js +2 -2
  59. package/dist/TableCells/index.js +1 -1
  60. package/dist/ThreadSummary/ThreadSummary.d.ts +24 -16
  61. package/dist/ThreadSummary/index.js +2 -2
  62. package/dist/{ThreadSummary-2AFEU6NH.css → ThreadSummary-3AODTHAM.css} +44 -35
  63. package/dist/TimeRangePicker/index.js +4 -4
  64. package/dist/TimeWindowPicker/index.js +5 -5
  65. package/dist/TreeCanvas/index.js +4 -4
  66. package/dist/TreeGrid/index.js +4 -4
  67. package/dist/ValueField/index.js +4 -4
  68. package/dist/VersionTimeline/index.js +1 -1
  69. package/dist/WorkingLine/index.js +2 -2
  70. package/dist/{chunk-C7BHAZVR.js → chunk-26TNM64L.js} +2 -2
  71. package/dist/{chunk-ZJQNN7ZJ.js → chunk-556M2A4S.js} +1 -1
  72. package/dist/{chunk-4QDFH4AA.js → chunk-56WQTRIW.js} +1 -1
  73. package/dist/{chunk-YNREHSBZ.js → chunk-66TVD3RU.js} +1 -1
  74. package/dist/{chunk-P47YVFX6.js → chunk-6LG6JJSW.js} +2 -2
  75. package/dist/{chunk-DL6Y7SVB.js → chunk-7GGX7TDB.js} +2 -2
  76. package/dist/{chunk-5UNIA2VJ.js → chunk-7VBZDGOS.js} +2 -2
  77. package/dist/{chunk-5SMYKL3D.js → chunk-ARZGEHWE.js} +2 -2
  78. package/dist/{chunk-NZFYX5UF.js → chunk-AVH6XN2O.js} +1 -1
  79. package/dist/{chunk-VCFV7FTE.js → chunk-BZVQ7KTX.js} +1 -1
  80. package/dist/{chunk-GKHZSNIV.js → chunk-CVNJ6VHK.js} +7 -3
  81. package/dist/{chunk-GQPKDPMS.js → chunk-ELV2BL4R.js} +2 -2
  82. package/dist/{chunk-BG4GI5W3.js → chunk-FNJCCVQX.js} +1 -1
  83. package/dist/chunk-GTNXDLYH.js +146 -0
  84. package/dist/{chunk-T2FJN6C6.js → chunk-GVDV4X43.js} +1 -1
  85. package/dist/{chunk-2S3J5LEN.js → chunk-ICIJUGKK.js} +3 -3
  86. package/dist/chunk-IZGB6SQE.js +89 -0
  87. package/dist/{chunk-NSUMHNUS.js → chunk-LETSZEMX.js} +1 -1
  88. package/dist/{chunk-EFY7R766.js → chunk-LPP2PMKP.js} +1 -1
  89. package/dist/{chunk-VIS6DKGQ.js → chunk-NB2QYDYA.js} +1 -1
  90. package/dist/{chunk-SFO4KY65.js → chunk-OYKQVTJB.js} +1 -1
  91. package/dist/{chunk-5GIBHRCS.js → chunk-PAK2FUDN.js} +2 -2
  92. package/dist/{chunk-QDXSBVZR.js → chunk-PCSIMBUQ.js} +2 -2
  93. package/dist/{chunk-CWHFC7FS.js → chunk-R4LHYCZN.js} +36 -32
  94. package/dist/{chunk-I5HJ6Y6E.js → chunk-U4HA6LRQ.js} +8 -14
  95. package/dist/{chunk-BF3PFRBE.js → chunk-Y54H5NJO.js} +1 -1
  96. package/dist/generated/index.d.ts +1 -0
  97. package/dist/generated/index.js +79 -78
  98. package/dist/index.js +79 -78
  99. package/dist/styles.css +168 -55
  100. package/package.json +3 -3
  101. package/dist/chunk-WNPKXYDJ.js +0 -141
  102. package/dist/{Editor-CTZXT2FC.js → Editor-UIBCHECM.js} +2 -2
  103. package/dist/{chunk-QV3WVNRA.js → chunk-2KUAO2CX.js} +0 -0
  104. package/dist/{chunk-Z64KEJ3N.js → chunk-2ZO7WP3T.js} +2 -2
  105. package/dist/{chunk-PYF5DNOK.js → chunk-6RMR2YYQ.js} +1 -1
  106. package/dist/{chunk-4OKNZZ5E.js → chunk-7AAM3PCB.js} +1 -1
  107. package/dist/{chunk-SM2MM4DQ.js → chunk-BS5DASEB.js} +1 -1
  108. package/dist/{chunk-CPWSBK3F.js → chunk-COPAHZHK.js} +1 -1
  109. package/dist/{chunk-KTKPC3CV.js → chunk-CRXNGDYG.js} +1 -1
  110. package/dist/{chunk-WUJ54OTI.js → chunk-CWGZE3JW.js} +1 -1
  111. package/dist/{chunk-3R7AB45M.js → chunk-FXKRSBUM.js} +1 -1
  112. package/dist/{chunk-TLZ7NG6T.js → chunk-HGL7HMBZ.js} +1 -1
  113. package/dist/{chunk-EOMLCNC4.js → chunk-LLPDEZT5.js} +1 -1
  114. package/dist/{chunk-TU6IC2XD.js → chunk-RE6MXNIM.js} +1 -1
  115. package/dist/{chunk-Q7WKCU2U.js → chunk-U56B2BAX.js} +1 -1
  116. package/dist/{chunk-6ZFQ6TAM.js → chunk-YKCLV77Z.js} +1 -1
  117. package/dist/{chunk-UZMXC5T6.js → chunk-YUVQUJND.js} +1 -1
package/dist/styles.css CHANGED
@@ -5333,7 +5333,7 @@ a.crewlet-make-row__item:active {
5333
5333
  }
5334
5334
 
5335
5335
 
5336
- /* Avatar-CRSLRUVT.css */
5336
+ /* Avatar-RHFI55UZ.css */
5337
5337
  /*
5338
5338
  * The identity badge.
5339
5339
  *
@@ -5402,6 +5402,20 @@ a.crewlet-make-row__item:active {
5402
5402
  box-sizing: border-box;
5403
5403
  }
5404
5404
 
5405
+ /*
5406
+ * ONE PLACE ON A LINE, WHATEVER THE FACE HOLDS. An inline flex box takes its
5407
+ * baseline from its first item, so a face standing in a line of text or in an
5408
+ * inline wrapper (a title tooltip's span) sat on its initials' baseline when
5409
+ * it held initials and on its picture's foot when it held a character: a
5410
+ * person beside two agents stood 2px lower at 20px, measured. Centred on the
5411
+ * line, every face lands on the same middle. A face in a sentence
5412
+ * (`size="text"`) is placed by the sentence that holds it (InlineRef.css), so
5413
+ * it is left out here.
5414
+ */
5415
+ .crewlet-avatar:not(.crewlet-avatar--text) {
5416
+ vertical-align: middle;
5417
+ }
5418
+
5405
5419
  /*
5406
5420
  * The four steps. Each pairs its box with a type step, so two initials sit
5407
5421
  * inside the outline at every one of them. A numeric size sets the same
@@ -5845,7 +5859,7 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
5845
5859
  }
5846
5860
 
5847
5861
 
5848
- /* AvatarStack-GNEJHEU6.css */
5862
+ /* AvatarStack-UNBXFHTZ.css */
5849
5863
  /*
5850
5864
  * Several badges as one mark (AvatarStack.tsx).
5851
5865
  *
@@ -5886,7 +5900,7 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
5886
5900
  }
5887
5901
 
5888
5902
  /*
5889
- * THE RING IS THE ONLY EDGE A STACKED FACE NEEDS. A face's own hairline inside
5903
+ * THE RING IS THE ONLY EDGE A PLATED FACE NEEDS. A face's own hairline inside
5890
5904
  * the ring drew each face as a framed tile, two edges a pixel apart, so a
5891
5905
  * stacked face (a member, or the face a member wraps) draws its border in no
5892
5906
  * colour. The border keeps its width, so the face keeps its box.
@@ -5896,6 +5910,19 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
5896
5910
  border-color: transparent;
5897
5911
  }
5898
5912
 
5913
+ /*
5914
+ * EXCEPT A FACE WITH NO PLATE OF ITS OWN. The neutral badge (a person's
5915
+ * initials, an agent nobody gave a hue) is the raised rung, which on the
5916
+ * light sheet is a step of 1.03:1, so with its hairline gone it had no edge
5917
+ * at all: a person's initials stood bare between agents' tinted plates and
5918
+ * read as a smaller face. Its hairline is its plate's only edge, and it keeps
5919
+ * it inside the ring.
5920
+ */
5921
+ .crewlet-avatar-stack > .crewlet-avatar-stack__member.crewlet-avatar--neutral,
5922
+ .crewlet-avatar-stack > .crewlet-avatar-stack__member > .crewlet-avatar--neutral {
5923
+ border-color: var(--color-edge-hairline);
5924
+ }
5925
+
5899
5926
  /*
5900
5927
  * A BADGE IN FRONT HIDES THE ONE BEHIND IT. A hue's plate is a tint, 12% of
5901
5928
  * the hue over whatever the badge stands on, and in a stack that is partly
@@ -13277,6 +13304,69 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
13277
13304
  }
13278
13305
 
13279
13306
 
13307
+ /* Clamp-Q5WKCGWY.css */
13308
+ /*
13309
+ * A long block folded to a height, with Show more under it (Clamp.tsx).
13310
+ */
13311
+ .crewlet-clamp {
13312
+ --crewlet-clamp-height: 20rem;
13313
+ /* How far above the fold the last lines fade out. */
13314
+ --crewlet-clamp-fade: var(--spacing-10);
13315
+ position: relative;
13316
+ display: flex;
13317
+ flex-direction: column;
13318
+ align-items: flex-start;
13319
+ gap: var(--spacing-1);
13320
+ min-width: 0;
13321
+ }
13322
+
13323
+ /* The body runs the block's width; only the control hugs its words. */
13324
+ .crewlet-clamp__body {
13325
+ align-self: stretch;
13326
+ min-width: 0;
13327
+ }
13328
+
13329
+ /* The fold, measured: an empty box as tall as it, out of the flow and unseen,
13330
+ so the block can tell whether it is long enough to fold. */
13331
+ .crewlet-clamp__fold {
13332
+ position: absolute;
13333
+ top: 0;
13334
+ left: 0;
13335
+ width: 0;
13336
+ height: var(--crewlet-clamp-height);
13337
+ visibility: hidden;
13338
+ pointer-events: none;
13339
+ }
13340
+
13341
+ /*
13342
+ * FOLDED, the body stops at the fold and its last lines fade out. The fade is
13343
+ * a MASK: it takes the block's own ground away rather than painting one over
13344
+ * it, so it needs no colour of whatever the block stands on. Any opaque ink
13345
+ * draws a mask; only its alpha is read.
13346
+ */
13347
+ .crewlet-clamp[data-state='folded'] > .crewlet-clamp__body {
13348
+ max-height: var(--crewlet-clamp-height);
13349
+ overflow: hidden;
13350
+ mask-image: linear-gradient(
13351
+ to bottom,
13352
+ var(--color-text-primary) calc(100% - var(--crewlet-clamp-fade)),
13353
+ transparent
13354
+ );
13355
+ }
13356
+
13357
+ @media print {
13358
+ .crewlet-clamp[data-state='folded'] > .crewlet-clamp__body {
13359
+ max-height: none;
13360
+ overflow: visible;
13361
+ mask-image: none;
13362
+ }
13363
+
13364
+ .crewlet-clamp > .crewlet-clamp__toggle {
13365
+ display: none;
13366
+ }
13367
+ }
13368
+
13369
+
13280
13370
  /* CodeBlock-LS7H6KUQ.css */
13281
13371
  /*
13282
13372
  * CodeBlock, a monospace command, config or record surface. One step off the
@@ -19929,37 +20019,34 @@ svg.crewlet-datetime__chevron {
19929
20019
  }
19930
20020
 
19931
20021
 
19932
- /* DeliveryReceipt-G55ILD6O.css */
20022
+ /* DeliveryReceipt-BILVVNTO.css */
19933
20023
  /*
19934
20024
  * Who a person's message reached and who answered, under its words; and the
19935
20025
  * same line over a composer, before the message is sent.
20026
+ *
20027
+ * ONE LINE OF TEXT: a sentence that wraps like any other, with its mark
20028
+ * standing at its start. It was a row of flex parts with a dot between them,
20029
+ * which made two facts out of one and named the seats that answered twice.
19936
20030
  */
19937
-
19938
20031
  .crewlet-delivery-receipt {
19939
- display: flex;
19940
- flex-wrap: wrap;
19941
- align-items: center;
19942
- column-gap: var(--spacing-1);
19943
20032
  max-width: 100%;
19944
20033
  margin: 0;
19945
20034
  color: var(--color-text-tertiary);
19946
20035
  font-size: var(--crewlet-chat-meta);
19947
20036
  line-height: var(--font-line-height-snug);
20037
+ overflow-wrap: anywhere;
19948
20038
  }
19949
20039
 
19950
- .crewlet-delivery-receipt__part {
19951
- display: inline-flex;
19952
- align-items: center;
19953
- gap: var(--spacing-1);
19954
- min-width: 0;
19955
- }
19956
-
20040
+ /* The mark stands on the sentence's first line, centred on it, a step
20041
+ before the words. */
19957
20042
  .crewlet-delivery-receipt__mark {
19958
20043
  display: inline-flex;
19959
- flex: none;
20044
+ vertical-align: middle;
20045
+ margin-inline-end: var(--spacing-1);
19960
20046
  }
19961
20047
 
19962
- .crewlet-delivery-receipt__answered {
20048
+ /* An answer lifts the line to the secondary ink, check and all. */
20049
+ .crewlet-delivery-receipt--answered {
19963
20050
  color: var(--color-text-secondary);
19964
20051
  }
19965
20052
 
@@ -23261,7 +23348,7 @@ button.crewlet-finding-list__row:focus-visible {
23261
23348
  }
23262
23349
 
23263
23350
 
23264
- /* GraphCanvas-V4VJADVF.css */
23351
+ /* GraphCanvas-R242DSDH.css */
23265
23352
  /*
23266
23353
  * A layered map on a canvas (GraphCanvas.tsx).
23267
23354
  *
@@ -23763,6 +23850,23 @@ button.crewlet-finding-list__row:focus-visible {
23763
23850
  outline-offset: var(--size-focus-ring-inset-offset);
23764
23851
  }
23765
23852
 
23853
+ /* What would fill the lane: its parts stand in the lane's own column, as if unwrapped. */
23854
+ .crewlet-graph-canvas__empty-words {
23855
+ display: contents;
23856
+ }
23857
+
23858
+ /*
23859
+ * UNDER HALF SIZE AN EMPTY LANE IS ITS DASHED OUTLINE, under its title and its
23860
+ * count of none, which hold their size. Its words scale with the map, so there
23861
+ * they are a few pixels of grey texture, and a link among them would be a
23862
+ * target nobody can see: they come back with the cards. A fitted map of a new
23863
+ * company on a phone is drawn at this size. The lane stays a stop of the walk,
23864
+ * named "empty".
23865
+ */
23866
+ .crewlet-graph-canvas__world:not([data-detail='cards']) .crewlet-graph-canvas__empty-words {
23867
+ visibility: hidden;
23868
+ }
23869
+
23766
23870
  /* ── edges ───────────────────────────────────────────────────────────────── */
23767
23871
 
23768
23872
  .crewlet-graph-canvas__edge-layer {
@@ -47436,12 +47540,13 @@ b.crewlet-switcher__match {
47436
47540
  }
47437
47541
 
47438
47542
 
47439
- /* ThreadSummary-2AFEU6NH.css */
47543
+ /* ThreadSummary-3AODTHAM.css */
47440
47544
  /*
47441
47545
  * The line under a message that has replies, and the working line under it.
47442
47546
  */
47443
47547
 
47444
- /* The column's width, so the line's own cap (below) is what bounds it. */
47548
+ /* A column under the message: the line hugs its own content, and the working
47549
+ line under it may run the column's width. */
47445
47550
  .crewlet-thread-summary-wrap {
47446
47551
  display: flex;
47447
47552
  flex-direction: column;
@@ -47456,18 +47561,25 @@ b.crewlet-switcher__match {
47456
47561
  max-width: 100%;
47457
47562
  }
47458
47563
 
47459
- /* The faces sit on the content edge: the line's 1px edge and its inset are
47460
- taken back by the same amount outside it. It runs the content column's
47461
- width up to a reading cap, so the whole line is the target and its end
47462
- stands at one place down a room. */
47564
+ /*
47565
+ * AS LONG AS WHAT IT SAYS: the faces, the count, how many are new, when the
47566
+ * last reply came and the chevron's place, and no more. It was a bar the
47567
+ * content column's width up to 37.5rem, with "View thread" or "Thread open"
47568
+ * at its far end, which turned a two-word fact into the heaviest thing under
47569
+ * a message.
47570
+ *
47571
+ * The faces sit on the content edge: the line's 1px edge and its inset are
47572
+ * taken back by the same amount outside it.
47573
+ */
47463
47574
  .crewlet-thread-summary {
47464
47575
  --crewlet-thread-summary-inset: var(--spacing-1);
47465
- display: flex;
47576
+ display: inline-flex;
47466
47577
  align-items: center;
47467
- gap: var(--spacing-2);
47468
- width: min(100%, 37.5rem);
47469
- /* The 24px faces with 5px of air above and below. */
47470
- height: calc(var(--size-control-md) + var(--spacing-1));
47578
+ gap: var(--spacing-1);
47579
+ /* The small control's height: the 20px faces with a little air inside the
47580
+ hairline. */
47581
+ height: var(--size-control-sm);
47582
+ min-width: 0;
47471
47583
  box-sizing: border-box;
47472
47584
  margin-inline-start: calc((var(--crewlet-thread-summary-inset) + 1px) * -1);
47473
47585
  padding: 0 var(--crewlet-thread-summary-inset);
@@ -47479,6 +47591,7 @@ b.crewlet-switcher__match {
47479
47591
  font-size: var(--font-size-compact);
47480
47592
  line-height: 1;
47481
47593
  text-align: start;
47594
+ white-space: nowrap;
47482
47595
  cursor: pointer;
47483
47596
  }
47484
47597
 
@@ -47494,47 +47607,53 @@ b.crewlet-switcher__match {
47494
47607
  outline-offset: var(--size-focus-ring-inset-offset);
47495
47608
  }
47496
47609
 
47610
+ /* A step between the faces and the words, wider than the one between the
47611
+ words themselves. */
47612
+ .crewlet-thread-summary > .crewlet-avatar-stack {
47613
+ margin-inline-end: var(--spacing-1);
47614
+ }
47615
+
47497
47616
  .crewlet-thread-summary__count {
47498
47617
  flex: none;
47499
47618
  color: var(--color-brand-accent-ink);
47500
47619
  font-weight: var(--font-weight-medium);
47501
- white-space: nowrap;
47502
47620
  }
47503
47621
 
47504
- /* When the last reply came, laid out at rest and shown on the line's hover:
47505
- the part that gives way first where the column is narrow. */
47622
+ /* When the last reply came, after the count and a middle dot the eye reads
47623
+ between them, in the quiet ink: always shown, and the part that gives way
47624
+ first where the column is narrow. */
47506
47625
  .crewlet-thread-summary__last {
47507
47626
  min-width: 0;
47508
47627
  overflow: hidden;
47509
47628
  color: var(--color-text-tertiary);
47510
47629
  text-overflow: ellipsis;
47511
- white-space: nowrap;
47512
- opacity: 0;
47513
- transition: opacity var(--motion-duration-moderate) var(--motion-easing-default);
47514
47630
  }
47515
47631
 
47516
- /* "View thread" and the chevron that says the line opens, at its end. */
47517
- .crewlet-thread-summary__end {
47518
- display: inline-flex;
47519
- flex: none;
47520
- align-items: center;
47521
- gap: var(--spacing-1);
47522
- margin-inline-start: auto;
47523
- color: var(--color-text-secondary);
47524
- white-space: nowrap;
47525
- opacity: 0;
47632
+ .crewlet-thread-summary__last::before {
47633
+ content: '\00b7\00a0';
47526
47634
  }
47527
47635
 
47636
+ /* The chevron that says the line opens: its place always laid out, shown
47637
+ under the pointer or the keyboard. */
47528
47638
  .crewlet-thread-summary__chevron {
47639
+ flex: none;
47529
47640
  color: var(--color-text-tertiary);
47641
+ opacity: 0;
47530
47642
  }
47531
47643
 
47532
- .crewlet-thread-summary:is(:hover, :focus-visible) .crewlet-thread-summary__last,
47533
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__end {
47644
+ .crewlet-thread-summary:is(:hover, :focus-visible) .crewlet-thread-summary__chevron {
47534
47645
  opacity: 1;
47535
47646
  }
47536
47647
 
47537
- /* OPEN, the end says so and opens nothing new. */
47648
+ /* OPEN, the line is the selected surface inside its hairline, and opens
47649
+ nothing new: no chevron. */
47650
+ .crewlet-thread-summary.is-open,
47651
+ .crewlet-thread-summary.is-open:is(:hover, :focus-visible) {
47652
+ border-color: var(--color-edge-hairline);
47653
+ background: var(--color-surface-selected);
47654
+ color: var(--color-text-primary);
47655
+ }
47656
+
47538
47657
  .crewlet-thread-summary.is-open .crewlet-thread-summary__chevron {
47539
47658
  visibility: hidden;
47540
47659
  }
@@ -47547,12 +47666,6 @@ b.crewlet-switcher__match {
47547
47666
  background: var(--color-surface-selected);
47548
47667
  }
47549
47668
 
47550
- @media (prefers-reduced-motion: reduce) {
47551
- .crewlet-thread-summary__last {
47552
- transition: none;
47553
- }
47554
- }
47555
-
47556
47669
 
47557
47670
  /* TileGrid-XOEJ4P52.css */
47558
47671
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.126.3",
3
+ "version": "0.128.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.126.3",
46
- "@crewlethq/tokens": "0.126.3",
45
+ "@crewlethq/icons": "0.128.0",
46
+ "@crewlethq/tokens": "0.128.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,141 +0,0 @@
1
- import { VisuallyHidden } from './chunk-RRRK2KB6.js';
2
- import { cx } from './chunk-ODEQTPFM.js';
3
- import './ChatScale-LGESYXCO.css';
4
- import './DeliveryReceipt-G55ILD6O.css';
5
- import { useState } from 'react';
6
- import { CheckGlyph, TriangleAlertGlyph } from '@crewlethq/icons/glyphs';
7
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
-
9
- var DELIVERY_RECEIPT_LABELS = {
10
- reached: (who) => `Reached ${who}`,
11
- reaches: (who) => `Will reach ${who}`,
12
- none: "Reached no agent",
13
- noneDraft: "Will reach no agent",
14
- answered: (who) => `${who} answered`,
15
- list: (names) => names.join(", "),
16
- reason: (words) => `(${words})`,
17
- groups: (groups) => groups.join("; "),
18
- truncated: "Some seats were not reached",
19
- more: (count) => `and ${count} more`,
20
- fewer: "Show fewer"
21
- };
22
- function reachOf(recipients, labels) {
23
- const order = [];
24
- const byReason = /* @__PURE__ */ new Map();
25
- for (const r of recipients) {
26
- const key = r.reason ?? "";
27
- const names = byReason.get(key);
28
- if (names) {
29
- names.push(r.name);
30
- } else {
31
- order.push(key);
32
- byReason.set(key, [r.name]);
33
- }
34
- }
35
- return labels.groups(
36
- order.map((key) => {
37
- const list = labels.list(byReason.get(key) ?? []);
38
- return key ? `${list} ${labels.reason(key)}` : list;
39
- })
40
- );
41
- }
42
- function DeliveryReceipt({
43
- recipients,
44
- tense = "sent",
45
- truncated = false,
46
- hint,
47
- announce = false,
48
- max = 1,
49
- labels: overrides,
50
- className,
51
- ...rest
52
- }) {
53
- if (max !== Infinity && (!Number.isInteger(max) || max < 1)) {
54
- throw new RangeError(
55
- `DeliveryReceipt max must be a whole number of at least 1; it was ${max}`
56
- );
57
- }
58
- const [expanded, setExpanded] = useState(false);
59
- const labels = overrides ? { ...DELIVERY_RECEIPT_LABELS, ...overrides } : DELIVERY_RECEIPT_LABELS;
60
- const cap = expanded ? Infinity : max;
61
- const capped = (all) => all.length > cap + 1 ? all.slice(0, cap) : all;
62
- const none = recipients.length === 0;
63
- const answeredAll = tense === "sent" ? recipients.filter((r) => r.answered).map((r) => r.name) : [];
64
- const answered = capped(answeredAll);
65
- const reached = capped(recipients);
66
- const hiddenReach = recipients.length - reached.length;
67
- const hiddenAnswered = answeredAll.length - answered.length;
68
- const toggle = hiddenReach > 0 || hiddenAnswered > 0 || expanded ? /* @__PURE__ */ jsx(
69
- "button",
70
- {
71
- type: "button",
72
- className: "crewlet-delivery-receipt__more",
73
- "aria-expanded": expanded,
74
- onClick: () => setExpanded((was) => !was),
75
- children: expanded ? labels.fewer : labels.more(hiddenReach)
76
- }
77
- ) : null;
78
- const reach = none ? tense === "draft" ? labels.noneDraft : labels.none : (tense === "draft" ? labels.reaches : labels.reached)(
79
- reachOf(reached, labels)
80
- );
81
- const parts = [
82
- {
83
- key: "reach",
84
- mark: none ? /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "xs" }) : void 0,
85
- words: reach,
86
- after: toggle
87
- }
88
- ];
89
- if (truncated && !none)
90
- parts.push({ key: "truncated", words: labels.truncated });
91
- if (answered.length > 0) {
92
- parts.push({
93
- key: "answered",
94
- className: "crewlet-delivery-receipt__answered",
95
- mark: /* @__PURE__ */ jsx(CheckGlyph, { size: "xs" }),
96
- words: labels.answered(
97
- hiddenAnswered > 0 ? `${labels.list(answered)} ${labels.more(hiddenAnswered)}` : labels.list(answered)
98
- )
99
- });
100
- }
101
- if (none && hint)
102
- parts.push({
103
- key: "hint",
104
- className: "crewlet-delivery-receipt__hint",
105
- words: hint
106
- });
107
- return /* @__PURE__ */ jsx(
108
- "p",
109
- {
110
- ...rest,
111
- role: announce ? "status" : void 0,
112
- "data-tense": tense,
113
- className: cx(
114
- "crewlet-delivery-receipt",
115
- none && "crewlet-delivery-receipt--none",
116
- className
117
- ),
118
- children: parts.map((part, i) => /* @__PURE__ */ jsxs(
119
- "span",
120
- {
121
- className: cx("crewlet-delivery-receipt__part", part.className),
122
- children: [
123
- i > 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-delivery-receipt__dot", "aria-hidden": "true", children: "\xB7" }) : null,
124
- part.mark ? /* @__PURE__ */ jsx("span", { className: "crewlet-delivery-receipt__mark", "aria-hidden": "true", children: part.mark }) : null,
125
- /* @__PURE__ */ jsxs("span", { children: [
126
- part.words,
127
- part.after ? /* @__PURE__ */ jsxs(Fragment, { children: [
128
- " ",
129
- part.after
130
- ] }) : null
131
- ] }),
132
- i < parts.length - 1 ? /* @__PURE__ */ jsx(VisuallyHidden, { children: ". " }) : null
133
- ]
134
- },
135
- part.key
136
- ))
137
- }
138
- );
139
- }
140
-
141
- export { DELIVERY_RECEIPT_LABELS, DeliveryReceipt };
@@ -4,13 +4,13 @@ import './chunk-KOJPDCGQ.js';
4
4
  import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
5
5
  import { Toolbar } from './chunk-NPEI2QAN.js';
6
6
  import { Menu } from './chunk-FIQGLZ5Q.js';
7
+ import { Button } from './chunk-M2M6ZD7P.js';
8
+ import './chunk-XSPCITPN.js';
7
9
  import { FormField, Input } from './chunk-NN44J7BP.js';
8
10
  import './chunk-NICEDVZM.js';
9
11
  import './chunk-JLKO7PSK.js';
10
12
  import './chunk-PJV5HVZY.js';
11
13
  import './chunk-TEXK4RK6.js';
12
- import { Button } from './chunk-M2M6ZD7P.js';
13
- import './chunk-XSPCITPN.js';
14
14
  import { IconButton } from './chunk-X5YI6E5X.js';
15
15
  import './chunk-TDFLCUBE.js';
16
16
  import './chunk-HXVMXH6U.js';
File without changes
@@ -1,8 +1,8 @@
1
1
  import { useReorder } from './chunk-JMBPMSNI.js';
2
- import { FormField, Textarea } from './chunk-NN44J7BP.js';
3
- import { characterCountState, CharacterCount, countCharacters } from './chunk-TEXK4RK6.js';
4
2
  import { Kbd } from './chunk-VBBLHS2Y.js';
5
3
  import { Button } from './chunk-M2M6ZD7P.js';
4
+ import { FormField, Textarea } from './chunk-NN44J7BP.js';
5
+ import { characterCountState, CharacterCount, countCharacters } from './chunk-TEXK4RK6.js';
6
6
  import { IconButton } from './chunk-X5YI6E5X.js';
7
7
  import { isComposing } from './chunk-EDPMHSLZ.js';
8
8
  import { announce } from './chunk-WGMKERCR.js';
@@ -1,8 +1,8 @@
1
1
  import { useScrollerFocus, Modal } from './chunk-IU7QVXHA.js';
2
2
  import { useListbox, useHighlightRest } from './chunk-KW7T23RT.js';
3
- import { Input } from './chunk-NN44J7BP.js';
4
3
  import { Kbd } from './chunk-VBBLHS2Y.js';
5
4
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
5
+ import { Input } from './chunk-NN44J7BP.js';
6
6
  import { isComposing } from './chunk-EDPMHSLZ.js';
7
7
  import { Count } from './chunk-Y5CMDLQM.js';
8
8
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
1
  import { SlideStage } from './chunk-7O53SWKI.js';
2
- import { useReorder } from './chunk-JMBPMSNI.js';
3
2
  import { Menu } from './chunk-FIQGLZ5Q.js';
3
+ import { useReorder } from './chunk-JMBPMSNI.js';
4
4
  import { Kbd, isApplePlatform } from './chunk-VBBLHS2Y.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,9 +1,9 @@
1
1
  import { Divider } from './chunk-6KWNXIDE.js';
2
2
  import { LockedLabel } from './chunk-TODOBUXO.js';
3
3
  import { KeyChip } from './chunk-HBDA76EZ.js';
4
- import { prefersReducedMotion } from './chunk-COS6LJ4K.js';
5
4
  import { Button } from './chunk-M2M6ZD7P.js';
6
5
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
6
+ import { prefersReducedMotion } from './chunk-COS6LJ4K.js';
7
7
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
8
8
  import { cx } from './chunk-ODEQTPFM.js';
9
9
  import './HitArea-QUOS6ZDJ.css';
@@ -3,8 +3,8 @@ import { titleWhenCut, titleIfCut } from './chunk-WSIJDWUG.js';
3
3
  import { useReorder } from './chunk-JMBPMSNI.js';
4
4
  import { Checkbox } from './chunk-KFTVPWG2.js';
5
5
  import { EmptyState } from './chunk-PPUR46MK.js';
6
- import { useMediaMatch } from './chunk-COS6LJ4K.js';
7
6
  import { Button } from './chunk-M2M6ZD7P.js';
7
+ import { useMediaMatch } from './chunk-COS6LJ4K.js';
8
8
  import { IconButton } from './chunk-X5YI6E5X.js';
9
9
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,6 +1,6 @@
1
1
  import { CHAT_MESSAGE_CLASS } from './chunk-Y3EV3Q2U.js';
2
- import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
3
2
  import { Button } from './chunk-M2M6ZD7P.js';
3
+ import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './ChatThread-V5MANQ3C.css';
@@ -1,6 +1,6 @@
1
1
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
2
- import { Input } from './chunk-NN44J7BP.js';
3
2
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
3
+ import { Input } from './chunk-NN44J7BP.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './HitArea-QUOS6ZDJ.css';
6
6
  import './Combobox-F5VEJIAO.css';
@@ -1,8 +1,8 @@
1
1
  import { Modal } from './chunk-IU7QVXHA.js';
2
2
  import { Callout } from './chunk-RCQLXOGS.js';
3
3
  import { SegmentedControl } from './chunk-FODDW4BC.js';
4
- import { FormField, Input } from './chunk-NN44J7BP.js';
5
4
  import { Button } from './chunk-M2M6ZD7P.js';
5
+ import { FormField, Input } from './chunk-NN44J7BP.js';
6
6
  import { useState } from 'react';
7
7
  import { ClockGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
- import { useReorder } from './chunk-JMBPMSNI.js';
2
1
  import { Menu } from './chunk-FIQGLZ5Q.js';
2
+ import { useReorder } from './chunk-JMBPMSNI.js';
3
3
  import { Input } from './chunk-NN44J7BP.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -2,8 +2,8 @@ import { Modal } from './chunk-IU7QVXHA.js';
2
2
  import { useClipboard } from './chunk-STJ7QBC3.js';
3
3
  import { EmptyValue } from './chunk-WGLOH33S.js';
4
4
  import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
5
- import { Checkbox } from './chunk-KFTVPWG2.js';
6
5
  import { Menu } from './chunk-FIQGLZ5Q.js';
6
+ import { Checkbox } from './chunk-KFTVPWG2.js';
7
7
  import { Button } from './chunk-M2M6ZD7P.js';
8
8
  import { IconButton } from './chunk-X5YI6E5X.js';
9
9
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -3,9 +3,9 @@ import { useRailShape, RailShapeContext, RailLeavingContext } from './chunk-JLOE
3
3
  import { Menu } from './chunk-FIQGLZ5Q.js';
4
4
  import { PeekContext, AsideContext } from './chunk-MBEZOURR.js';
5
5
  import { ResizeHandle, clampSize } from './chunk-FQ6J4DK7.js';
6
- import { useMediaMatch } from './chunk-COS6LJ4K.js';
7
6
  import { isApplePlatform, ariaKeyshortcuts, Kbd } from './chunk-VBBLHS2Y.js';
8
7
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
8
+ import { useMediaMatch } from './chunk-COS6LJ4K.js';
9
9
  import { IconButton } from './chunk-X5YI6E5X.js';
10
10
  import { Tooltip } from './chunk-HXVMXH6U.js';
11
11
  import { focusables, useEscapeWithin, useModalLayer } from './chunk-EDPMHSLZ.js';
@@ -1,5 +1,5 @@
1
- import { FormField, Label, Input } from './chunk-NN44J7BP.js';
2
1
  import { Button } from './chunk-M2M6ZD7P.js';
2
+ import { FormField, Label, Input } from './chunk-NN44J7BP.js';
3
3
  import { IconButton } from './chunk-X5YI6E5X.js';
4
4
  import { announce } from './chunk-WGMKERCR.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';