@crewlethq/ui 0.105.0 → 0.106.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 (57) hide show
  1. package/dist/AgentHandoffPanel/index.js +5 -4
  2. package/dist/AppShell/index.js +3 -2
  3. package/dist/ArtifactPanel/index.js +4 -3
  4. package/dist/ChatDay/index.js +2 -2
  5. package/dist/{ChatDay-Z67WTCTN.css → ChatDay-523C65KY.css} +7 -4
  6. package/dist/ChatDivider/ChatDivider.d.ts +8 -2
  7. package/dist/ChatDivider/index.js +1 -1
  8. package/dist/{ChatDivider-7ZNDL2PZ.css → ChatDivider-7SPCQXUQ.css} +27 -2
  9. package/dist/ChatThread/index.js +1 -1
  10. package/dist/{ChatThread-XANOIJXN.css → ChatThread-MKAN2Q4H.css} +4 -0
  11. package/dist/DataView/index.js +1 -1
  12. package/dist/DockColumn/DockColumn.d.ts +31 -1
  13. package/dist/DockColumn/index.d.ts +3 -1
  14. package/dist/DockColumn/index.js +3 -1
  15. package/dist/{DockColumn-SMJCXHS4.css → DockColumn-OVAA5PLL.css} +38 -8
  16. package/dist/EmojiPicker/EmojiPicker.d.ts +7 -1
  17. package/dist/EmojiPicker/index.js +1 -1
  18. package/dist/{EmojiPicker-FMWYN2WX.css → EmojiPicker-W722WJ5M.css} +43 -1
  19. package/dist/MessageActions/index.js +2 -2
  20. package/dist/PeekRail/index.js +3 -2
  21. package/dist/RailList/index.js +3 -3
  22. package/dist/ReactionBar/index.js +2 -2
  23. package/dist/{ResizeHandle-2UNSZ4ZQ.css → ResizeHandle-W6GA5OO6.css} +9 -0
  24. package/dist/SectionFrame/index.js +2 -2
  25. package/dist/ShareDialog/index.js +1 -1
  26. package/dist/SidePanel/index.js +4 -3
  27. package/dist/SidebarNav/SidebarNav.d.ts +17 -8
  28. package/dist/SidebarNav/index.js +1 -1
  29. package/dist/{SidebarNav-IKBKGXW4.css → SidebarNav-VXDUW6W5.css} +141 -27
  30. package/dist/ThreadSummary/ThreadSummary.d.ts +10 -7
  31. package/dist/ThreadSummary/index.js +1 -1
  32. package/dist/ThreadSummary-CFAHYY57.css +114 -0
  33. package/dist/{chunk-JUKHV7UH.js → chunk-2OK6PQ7W.js} +1 -1
  34. package/dist/{chunk-6YQRCPJ3.js → chunk-4GBEQZQ4.js} +22 -8
  35. package/dist/{chunk-ZNXTN76G.js → chunk-5HHDVJBY.js} +1 -1
  36. package/dist/{chunk-5AHNW5CP.js → chunk-5N3G7TK6.js} +1 -1
  37. package/dist/{chunk-INREAF4Z.js → chunk-7DMD3U7S.js} +1 -1
  38. package/dist/{chunk-5KAADF4G.js → chunk-EIHPORS4.js} +2 -1
  39. package/dist/chunk-EKWLQFL2.js +92 -0
  40. package/dist/{chunk-PIYJNCN7.js → chunk-FQ6J4DK7.js} +2 -10
  41. package/dist/{chunk-XQQN2NZB.js → chunk-FTSPBN7P.js} +2 -4
  42. package/dist/{chunk-2POUISAE.js → chunk-GKP2DWNQ.js} +1 -1
  43. package/dist/{chunk-I5W6I2HN.js → chunk-I7S7JJMM.js} +1 -1
  44. package/dist/{chunk-GAWG5TU7.js → chunk-KBUV24VV.js} +6 -4
  45. package/dist/chunk-MBEZOURR.js +13 -0
  46. package/dist/{chunk-T5P3K2TM.js → chunk-PFNTWGQB.js} +3 -2
  47. package/dist/{chunk-3CT7JOVJ.js → chunk-QQPF5SBJ.js} +3 -3
  48. package/dist/{chunk-4EZOLSUO.js → chunk-SKMTVBJT.js} +3 -2
  49. package/dist/{chunk-2ES6LAV2.js → chunk-U4YG5KBN.js} +2 -2
  50. package/dist/{chunk-KRAZYXAA.js → chunk-VWZECTOJ.js} +1 -1
  51. package/dist/{chunk-TRPYEDZM.js → chunk-YBO5PGUG.js} +39 -4
  52. package/dist/generated/index.js +53 -52
  53. package/dist/index.js +53 -52
  54. package/dist/styles.css +324 -73
  55. package/package.json +3 -3
  56. package/dist/ThreadSummary-AGR4NDMD.css +0 -90
  57. package/dist/chunk-5JPOFAVN.js +0 -58
package/dist/styles.css CHANGED
@@ -10811,7 +10811,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
10811
10811
  }
10812
10812
 
10813
10813
 
10814
- /* ChatDay-Z67WTCTN.css */
10814
+ /* ChatDay-523C65KY.css */
10815
10815
  /*
10816
10816
  * ChatDay: a day of a conversation under its date, set on the conversation's
10817
10817
  * own scale (ChatScale.css).
@@ -10848,7 +10848,9 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
10848
10848
  flex: none;
10849
10849
  justify-content: center;
10850
10850
  height: var(--crewlet-chat-day-pill);
10851
- margin-top: calc(var(--crewlet-chat-day-gap) - var(--crewlet-chat-day-pill) / 2);
10851
+ /* MORE AIR ABOVE A DAY THAN UNDER ITS RULE, so the date is read with the
10852
+ messages it introduces rather than the ones it ends. */
10853
+ margin-top: calc(var(--crewlet-chat-day-gap) * 2 - var(--crewlet-chat-day-pill) / 2);
10852
10854
  pointer-events: none;
10853
10855
  /* A host that raises the pin (a banner arriving) moves the pinned pill
10854
10856
  down with it rather than jumping it. */
@@ -10879,7 +10881,8 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
10879
10881
  /*
10880
10882
  * THE PILL floats over the rows: the transcript's own ground, ringed with the
10881
10883
  * hairline and a small shadow, so it reads as lifted off the messages it
10882
- * passes over. The ring is a shadow, which forced colors drops, so a
10884
+ * passes over. The rule recedes and the date does not: its words are the
10885
+ * primary ink at the semibold weight. The ring is a shadow, which forced colors drops, so a
10883
10886
  * transparent outline stands in for it there.
10884
10887
  */
10885
10888
  .crewlet-chat-day__pill {
@@ -10897,10 +10900,10 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
10897
10900
  box-shadow:
10898
10901
  0 0 0 1px var(--color-edge-hairline),
10899
10902
  var(--shadow-xs);
10900
- color: var(--color-text-secondary);
10903
+ color: var(--color-text-primary);
10901
10904
  font: inherit;
10902
10905
  font-size: var(--font-size-xs);
10903
- font-weight: var(--font-weight-medium);
10906
+ font-weight: var(--font-weight-semibold);
10904
10907
  line-height: 1;
10905
10908
  white-space: nowrap;
10906
10909
  pointer-events: auto;
@@ -10932,7 +10935,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
10932
10935
  }
10933
10936
 
10934
10937
 
10935
- /* ChatDivider-7ZNDL2PZ.css */
10938
+ /* ChatDivider-7SPCQXUQ.css */
10936
10939
  /*
10937
10940
  * ChatDivider: a line between the rows of a conversation, set on the
10938
10941
  * conversation's own scale (ChatScale.css).
@@ -10961,6 +10964,30 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
10961
10964
  white-space: nowrap;
10962
10965
  }
10963
10966
 
10967
+ /* A count at the start, on the faces' edge, and a hairline running on. */
10968
+ .crewlet-chat-divider--count {
10969
+ display: flex;
10970
+ align-items: center;
10971
+ gap: var(--spacing-3);
10972
+ margin: var(--spacing-1) 0;
10973
+ padding: 0 var(--crewlet-chat-pad-x);
10974
+ color: var(--color-text-tertiary);
10975
+ font-size: var(--crewlet-chat-meta);
10976
+ font-weight: var(--font-weight-regular);
10977
+ line-height: var(--font-line-height-snug);
10978
+ }
10979
+
10980
+ .crewlet-chat-divider--count::after {
10981
+ content: '';
10982
+ flex: 1;
10983
+ height: 1px;
10984
+ background: var(--color-edge-hairline);
10985
+ }
10986
+
10987
+ .crewlet-chat-divider--count .crewlet-chat-divider__label {
10988
+ white-space: nowrap;
10989
+ }
10990
+
10964
10991
  /*
10965
10992
  * THE NEW LINE TAKES NO HEIGHT. A hairline across the whole list in the
10966
10993
  * danger hue, laid on the boundary between the last read message and the
@@ -10994,7 +11021,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
10994
11021
  background: var(--crewlet-chat-ground);
10995
11022
  color: var(--color-feedback-danger-ink);
10996
11023
  font-size: var(--font-size-xs);
10997
- font-weight: var(--font-weight-medium);
11024
+ font-weight: var(--font-weight-semibold);
10998
11025
  line-height: var(--font-line-height-normal);
10999
11026
  }
11000
11027
 
@@ -11005,7 +11032,8 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
11005
11032
  @media (forced-colors: active) {
11006
11033
  .crewlet-chat-divider--unread::before,
11007
11034
  .crewlet-chat-divider--date::before,
11008
- .crewlet-chat-divider--date::after {
11035
+ .crewlet-chat-divider--date::after,
11036
+ .crewlet-chat-divider--count::after {
11009
11037
  border-top: 1px solid CanvasText;
11010
11038
  }
11011
11039
  }
@@ -11371,7 +11399,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
11371
11399
  }
11372
11400
 
11373
11401
 
11374
- /* ChatThread-XANOIJXN.css */
11402
+ /* ChatThread-MKAN2Q4H.css */
11375
11403
  /*
11376
11404
  * A conversation as it grows: the scroller, the items a spacing step and a
11377
11405
  * half apart on the panel's 16px inset, and the Jump to latest pill in a row
@@ -11408,6 +11436,10 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
11408
11436
  overflow: auto;
11409
11437
  overflow-anchor: none;
11410
11438
  overscroll-behavior: contain;
11439
+ /* A control focused from out of view (Tab onto a row scrolled off the top)
11440
+ comes in a step clear of the edge, so its outset ring is not cut. */
11441
+ scroll-padding-top: var(--spacing-2);
11442
+ scroll-padding-bottom: var(--spacing-2);
11411
11443
  }
11412
11444
 
11413
11445
  /* A ring inside the region, which an edge-to-edge scroller would otherwise clip. */
@@ -20610,7 +20642,7 @@ svg.crewlet-datetime__chevron {
20610
20642
  }
20611
20643
 
20612
20644
 
20613
- /* DockColumn-SMJCXHS4.css */
20645
+ /* DockColumn-OVAA5PLL.css */
20614
20646
  /*
20615
20647
  * A column docked beside the content (DockColumn.tsx).
20616
20648
  *
@@ -20631,23 +20663,36 @@ svg.crewlet-datetime__chevron {
20631
20663
  */
20632
20664
 
20633
20665
  .crewlet-dock-column {
20666
+ position: relative;
20634
20667
  display: flex;
20635
- justify-content: flex-end;
20636
20668
  width: 0;
20637
20669
  min-width: 0;
20638
20670
  min-height: 0;
20639
- overflow: clip;
20640
20671
  transition: width var(--motion-duration-slow) var(--motion-easing-emphasized);
20641
20672
  }
20642
20673
 
20643
- .crewlet-dock-column[data-side='end'] {
20644
- justify-content: flex-start;
20645
- }
20646
-
20647
20674
  .crewlet-dock-column[data-open] {
20648
20675
  width: var(--crewlet-dock-column-width);
20649
20676
  }
20650
20677
 
20678
+ /*
20679
+ * THE CLIP, inside the column so a handle can stand across the column's edge.
20680
+ * Clipped rather than hidden, so it is never a scroll container a focus or a
20681
+ * scrollIntoView could scroll.
20682
+ */
20683
+ .crewlet-dock-column__clip {
20684
+ display: flex;
20685
+ flex: 1 1 auto;
20686
+ justify-content: flex-end;
20687
+ min-width: 0;
20688
+ min-height: 0;
20689
+ overflow: clip;
20690
+ }
20691
+
20692
+ .crewlet-dock-column[data-side='end'] > .crewlet-dock-column__clip {
20693
+ justify-content: flex-start;
20694
+ }
20695
+
20651
20696
  .crewlet-dock-column__panel {
20652
20697
  display: flex;
20653
20698
  flex: none;
@@ -20659,14 +20704,31 @@ svg.crewlet-datetime__chevron {
20659
20704
  }
20660
20705
 
20661
20706
  /* The hairline on the panel's edge that faces the content. */
20662
- .crewlet-dock-column--divider[data-side='start'] > .crewlet-dock-column__panel {
20707
+ .crewlet-dock-column--divider[data-side='start'] .crewlet-dock-column__panel {
20663
20708
  border-inline-end: 1px solid var(--color-border-default);
20664
20709
  }
20665
20710
 
20666
- .crewlet-dock-column--divider[data-side='end'] > .crewlet-dock-column__panel {
20711
+ .crewlet-dock-column--divider[data-side='end'] .crewlet-dock-column__panel {
20667
20712
  border-inline-start: 1px solid var(--color-border-default);
20668
20713
  }
20669
20714
 
20715
+ /*
20716
+ * THE HANDLE STRADDLES THE EDGE that faces the content, half over the panel
20717
+ * and half over the content, so its hairline is the line it grips.
20718
+ */
20719
+ .crewlet-dock-column[data-side='start'] > .crewlet-dock-column__handle {
20720
+ right: calc(var(--crewlet-resize-handle-width) / -2);
20721
+ }
20722
+
20723
+ .crewlet-dock-column[data-side='end'] > .crewlet-dock-column__handle {
20724
+ left: calc(var(--crewlet-resize-handle-width) / -2);
20725
+ }
20726
+
20727
+ /* SIZED BY HAND, the column follows at once: an eased width trails the pointer. */
20728
+ .crewlet-dock-column:has(> .crewlet-dock-column__handle:is([data-dragging], :focus-visible)) {
20729
+ transition: none;
20730
+ }
20731
+
20670
20732
  @media (prefers-reduced-motion: reduce) {
20671
20733
  .crewlet-dock-column {
20672
20734
  transition: none;
@@ -21249,10 +21311,11 @@ svg.crewlet-datetime__chevron {
21249
21311
  }
21250
21312
 
21251
21313
 
21252
- /* EmojiPicker-FMWYN2WX.css */
21314
+ /* EmojiPicker-W722WJ5M.css */
21253
21315
  /*
21254
21316
  * A searchable grid of emoji in a popover: the field, then each group under
21255
- * its quiet heading, eight to a row, in a scroller of its own.
21317
+ * its quiet heading, eight to a row, in a scroller of its own, and a preview
21318
+ * line under the grid that is always there, so the panel never changes size.
21256
21319
  */
21257
21320
 
21258
21321
  .crewlet-emoji-picker__body {
@@ -21302,12 +21365,53 @@ svg.crewlet-datetime__chevron {
21302
21365
  background: var(--color-surface-hover);
21303
21366
  }
21304
21367
 
21368
+ /* The match Enter picks while searching: the accent's soft fill, which the
21369
+ pointer's step does not take away. */
21370
+ .crewlet-emoji-picker__cell.is-chosen {
21371
+ background: var(--color-brand-accent-soft);
21372
+ }
21373
+
21305
21374
  .crewlet-emoji-picker__cell:focus-visible {
21306
21375
  background: var(--color-surface-hover);
21307
21376
  outline: 2px solid var(--color-focus);
21308
21377
  outline-offset: var(--size-focus-ring-inset-offset);
21309
21378
  }
21310
21379
 
21380
+ .crewlet-emoji-picker__preview {
21381
+ display: flex;
21382
+ align-items: center;
21383
+ gap: var(--spacing-2);
21384
+ min-height: var(--size-control-md);
21385
+ padding: var(--spacing-2) var(--spacing-1) 0;
21386
+ border-top: 1px solid var(--color-edge-hairline);
21387
+ }
21388
+
21389
+ .crewlet-emoji-picker__preview-emoji {
21390
+ font-size: var(--font-size-xl);
21391
+ line-height: 1;
21392
+ }
21393
+
21394
+ .crewlet-emoji-picker__preview-words {
21395
+ display: flex;
21396
+ flex-direction: column;
21397
+ min-width: 0;
21398
+ }
21399
+
21400
+ .crewlet-emoji-picker__preview-name {
21401
+ overflow: hidden;
21402
+ color: var(--color-text-primary);
21403
+ font-size: var(--font-size-sm);
21404
+ font-weight: var(--font-weight-semibold);
21405
+ text-overflow: ellipsis;
21406
+ white-space: nowrap;
21407
+ }
21408
+
21409
+ .crewlet-emoji-picker__preview-code,
21410
+ .crewlet-emoji-picker__preview-idle {
21411
+ color: var(--color-text-tertiary);
21412
+ font-size: var(--font-size-xs);
21413
+ }
21414
+
21311
21415
  .crewlet-emoji-picker__none {
21312
21416
  margin: var(--spacing-3) var(--spacing-1);
21313
21417
  color: var(--color-text-tertiary);
@@ -33388,7 +33492,7 @@ button.crewlet-presence-stack__member:focus-visible {
33388
33492
  }
33389
33493
 
33390
33494
 
33391
- /* ResizeHandle-2UNSZ4ZQ.css */
33495
+ /* ResizeHandle-W6GA5OO6.css */
33392
33496
  /*
33393
33497
  * The grip between a panel and the page beside it (`ResizeHandle`).
33394
33498
  *
@@ -33436,6 +33540,15 @@ button.crewlet-presence-stack__member:focus-visible {
33436
33540
  background: var(--color-brand-accent-soft);
33437
33541
  }
33438
33542
 
33543
+ /*
33544
+ * THE POINTER'S WASH WAITS A BEAT, so a pointer crossing the seam on its way
33545
+ * somewhere else does not flash it; the cursor says it is a grip from the
33546
+ * first pixel. Focus and a drag show it at once, and it leaves at once.
33547
+ */
33548
+ .crewlet-resize-handle:hover:not(:focus-visible, [data-dragging]) {
33549
+ transition-delay: var(--motion-duration-base);
33550
+ }
33551
+
33439
33552
  /* Inside its own box: it draws no edge, and the seam it stands in is the
33440
33553
  two neighbours' edges, which a ring set outward would run over. */
33441
33554
  .crewlet-resize-handle:focus-visible {
@@ -38024,7 +38137,7 @@ svg.crewlet-select__chevron {
38024
38137
  }
38025
38138
 
38026
38139
 
38027
- /* SidebarNav-IKBKGXW4.css */
38140
+ /* SidebarNav-VXDUW6W5.css */
38028
38141
  /*
38029
38142
  * The rail's navigation.
38030
38143
  *
@@ -38157,11 +38270,30 @@ svg.crewlet-select__chevron {
38157
38270
  color: inherit;
38158
38271
  }
38159
38272
 
38160
- .crewlet-nav-group__chevron {
38161
- display: inline-flex;
38273
+ /*
38274
+ * THE HEADING'S GLYPH COLUMN: a nav glyph's 14px, holding the chevron and, in
38275
+ * a group with a glyph of its own (`icon`), that glyph on the same spot.
38276
+ */
38277
+ .crewlet-nav-group__slot {
38278
+ display: inline-grid;
38162
38279
  flex: none;
38163
- margin: 0 calc((14px - 12px) / 2);
38164
- transition: transform var(--motion-duration-fast) var(--motion-easing-default);
38280
+ place-items: center;
38281
+ width: 14px;
38282
+ }
38283
+
38284
+ .crewlet-nav-group__slot > * {
38285
+ display: inline-flex;
38286
+ grid-area: 1 / 1;
38287
+ }
38288
+
38289
+ .crewlet-nav-group__chevron {
38290
+ transition:
38291
+ transform var(--motion-duration-fast) var(--motion-easing-default),
38292
+ opacity var(--motion-duration-instant) var(--motion-easing-default);
38293
+ }
38294
+
38295
+ .crewlet-nav-group__icon {
38296
+ transition: opacity var(--motion-duration-instant) var(--motion-easing-default);
38165
38297
  }
38166
38298
 
38167
38299
  /* Folded, the chevron points at the words it would open. */
@@ -38169,6 +38301,25 @@ svg.crewlet-select__chevron {
38169
38301
  transform: rotate(-90deg);
38170
38302
  }
38171
38303
 
38304
+ /*
38305
+ * A GROUP WITH A GLYPH shows it at rest, and the chevron takes its spot while
38306
+ * the heading is pointed at or focused, and while the group is folded, so a
38307
+ * folded group still says so at a glance.
38308
+ */
38309
+ .crewlet-nav-group--iconic .crewlet-nav-group__chevron {
38310
+ opacity: 0;
38311
+ }
38312
+
38313
+ .crewlet-nav-group--iconic.crewlet-nav-group--collapsed .crewlet-nav-group__chevron,
38314
+ .crewlet-nav-group--iconic .crewlet-nav-group__head:is(:hover, :focus-within) .crewlet-nav-group__chevron {
38315
+ opacity: 1;
38316
+ }
38317
+
38318
+ .crewlet-nav-group--iconic.crewlet-nav-group--collapsed .crewlet-nav-group__toggle .crewlet-nav-group__icon,
38319
+ .crewlet-nav-group--iconic .crewlet-nav-group__head:is(:hover, :focus-within) .crewlet-nav-group__toggle .crewlet-nav-group__icon {
38320
+ opacity: 0;
38321
+ }
38322
+
38172
38323
  /* The heading's control. Pushed to the end whether or not the heading has
38173
38324
  words, and at the floor the heading stands at. */
38174
38325
  .crewlet-nav-group__action {
@@ -38535,44 +38686,119 @@ svg.crewlet-select__chevron {
38535
38686
  }
38536
38687
 
38537
38688
  /*
38538
- * THE DENSE LIST (`dense`): a list read in passing that runs long, a step
38539
- * denser than the application's navigation.
38689
+ * THE DENSE LIST (`dense`): a list read in passing that runs long, drawn as
38690
+ * one even column.
38691
+ *
38692
+ * ROWS ON A 28px PITCH WITH NOTHING BETWEEN THEM (the target floor and a
38693
+ * step), so a long list reads as a column rather than a stack of pills, and
38694
+ * the highlight is inset by the gutter on both sides, at the small radius. The
38695
+ * glyph column is as wide as a small face (an `Avatar` at `xs`), so a face, a
38696
+ * glyph and a group's count stand in one column and every name starts on one
38697
+ * line; names are at the chat's word step in the regular weight, which is
38698
+ * what lets an unread row stand out by weight.
38540
38699
  *
38541
- * Its rows stand at the 24px target floor, the gutter is halved so a row's
38542
- * highlight runs nearly from edge to edge (a long bar rather than a pill), and
38543
- * the row's pad grows by exactly what the gutter gave up, so every glyph and
38544
- * name stays on the line it was on, whatever the surface set the two tokens
38545
- * to. The glyph column is as wide as a small face (an `Avatar` at `xs`), so a
38546
- * face, a glyph and a group's count stand in one column and every name starts
38547
- * on one line. Names are set in the regular weight, a step lighter than the
38548
- * navigation's, which is what lets an unread row stand out by weight.
38700
+ * THE ROWS UNDER A NAMED GROUP STAND A STEP IN from its heading, whose glyph
38701
+ * column is the plain rows' (the views above the groups), so a room reads as
38702
+ * a child of its section without a guide line.
38703
+ *
38704
+ * A POINTED ROW IS DRAWN AT ONCE. In a list scanned by moving the pointer down
38705
+ * it, a fade trails the pointer by a row.
38549
38706
  */
38550
38707
  .crewlet-sidebar-nav--dense {
38551
- --crewlet-nav-dense-pad: calc(var(--size-nav-row-pad) + var(--size-nav-gutter) - var(--spacing-1));
38708
+ --crewlet-nav-dense-row: calc(var(--spacing-6) + var(--spacing-1));
38709
+ --crewlet-nav-dense-pad: var(--spacing-2);
38710
+ --crewlet-nav-dense-indent: var(--spacing-4);
38552
38711
  --crewlet-nav-dense-slot: 20px;
38553
- padding-right: var(--spacing-1);
38554
- padding-left: var(--spacing-1);
38712
+ gap: 0;
38713
+ padding-right: var(--size-nav-gutter);
38714
+ padding-left: var(--size-nav-gutter);
38715
+ }
38716
+
38717
+ .crewlet-sidebar-nav--dense .crewlet-nav-group {
38718
+ --crewlet-nav-row-gap: 0px;
38719
+ gap: 0;
38555
38720
  }
38556
38721
 
38557
38722
  .crewlet-sidebar-nav--dense .crewlet-nav-item__row {
38558
- min-height: var(--size-target-min);
38723
+ min-height: var(--crewlet-nav-dense-row);
38559
38724
  padding-right: var(--crewlet-nav-dense-pad);
38560
38725
  padding-left: var(--crewlet-nav-dense-pad);
38726
+ border-radius: var(--radius-sm);
38727
+ font-size: var(--font-size-sm);
38561
38728
  font-weight: var(--font-weight-regular);
38729
+ transition-property: none;
38730
+ }
38731
+
38732
+ .crewlet-sidebar-nav--dense .crewlet-nav-group--named > .crewlet-nav-item > .crewlet-nav-item__head > .crewlet-nav-item__row {
38733
+ padding-left: calc(var(--crewlet-nav-dense-pad) + var(--crewlet-nav-dense-indent));
38562
38734
  }
38563
38735
 
38736
+ .crewlet-sidebar-nav--dense .crewlet-nav-item__icon,
38737
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__slot {
38738
+ min-width: var(--crewlet-nav-dense-slot);
38739
+ }
38740
+
38741
+ /*
38742
+ * THE HEADING is a row of the list: the row's height, its pad and its type
38743
+ * step, in the medium weight and the secondary ink, 10px below the run above.
38744
+ * A heading that folds is pressed anywhere along it and takes the pointed
38745
+ * fill at once, at the extra-small radius so it reads as a heading rather
38746
+ * than a destination.
38747
+ */
38564
38748
  .crewlet-sidebar-nav--dense .crewlet-nav-group__head {
38749
+ min-height: var(--crewlet-nav-dense-row);
38750
+ margin-top: calc(var(--spacing-2) + var(--spacing-1) / 2);
38565
38751
  padding-right: calc(var(--crewlet-nav-dense-pad) - (var(--size-target-min) - 14px) / 2);
38566
38752
  padding-left: var(--crewlet-nav-dense-pad);
38753
+ border-radius: var(--radius-xs);
38567
38754
  }
38568
38755
 
38569
- .crewlet-sidebar-nav--dense .crewlet-nav-item__icon {
38570
- min-width: var(--crewlet-nav-dense-slot);
38756
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__head:has(> .crewlet-nav-group__toggle):hover {
38757
+ background: var(--color-surface-hover);
38758
+ }
38759
+
38760
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__toggle {
38761
+ flex: 1 1 auto;
38762
+ align-self: stretch;
38763
+ text-align: start;
38764
+ color: var(--color-text-secondary);
38765
+ transition-property: none;
38766
+ }
38767
+
38768
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__head:hover .crewlet-nav-group__toggle {
38769
+ color: var(--color-text-primary);
38770
+ }
38771
+
38772
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__label {
38773
+ font-size: var(--font-size-sm);
38774
+ font-weight: var(--font-weight-medium);
38775
+ color: var(--color-text-secondary);
38776
+ }
38777
+
38778
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__toggle > .crewlet-nav-group__label {
38779
+ color: inherit;
38780
+ }
38781
+
38782
+ /* Pressed on a pointed heading, the control is one step stronger than it. */
38783
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__action:hover {
38784
+ background: var(--color-surface-pressed);
38571
38785
  }
38572
38786
 
38573
- .crewlet-sidebar-nav--dense .crewlet-nav-group__chevron {
38574
- margin-right: calc((var(--crewlet-nav-dense-slot) - 12px) / 2);
38575
- margin-left: calc((var(--crewlet-nav-dense-slot) - 12px) / 2);
38787
+ /*
38788
+ * THE HEADING'S CONTROL SHOWS WHERE THE READER REACHES FOR IT: under the
38789
+ * pointer and while focus is in the heading. It keeps its place while hidden,
38790
+ * so the label never moves as it comes and goes, and it stays in the tab
38791
+ * order, which is what shows it to a keyboard. Where nothing hovers (touch),
38792
+ * it is always shown.
38793
+ */
38794
+ @media (hover: hover) {
38795
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__action {
38796
+ opacity: 0;
38797
+ }
38798
+
38799
+ .crewlet-sidebar-nav--dense .crewlet-nav-group__head:is(:hover, :focus-within) .crewlet-nav-group__action {
38800
+ opacity: 1;
38801
+ }
38576
38802
  }
38577
38803
 
38578
38804
  .crewlet-sidebar-nav--dense .crewlet-nav-item__children {
@@ -38581,14 +38807,14 @@ svg.crewlet-select__chevron {
38581
38807
  }
38582
38808
 
38583
38809
  /*
38584
- * A ROW WITH NEWS (`unread`): its name a step heavier than its neighbours' and
38585
- * in the primary ink, which is the whole of the signal in a dense list whose
38586
- * names are regular. A muted row is never drawn unread (the component drops
38810
+ * A ROW WITH NEWS (`unread`): its name two steps heavier than a dense row's
38811
+ * regular (semibold) and in the primary ink, which is the whole of the signal:
38812
+ * one step read as a different face rather than as news. A muted row is never drawn unread (the component drops
38587
38813
  * the class), so the two rules never meet.
38588
38814
  */
38589
38815
  .crewlet-nav-item--unread > .crewlet-nav-item__head > .crewlet-nav-item__row {
38590
38816
  color: var(--color-text-primary);
38591
- font-weight: var(--font-weight-medium);
38817
+ font-weight: var(--font-weight-semibold);
38592
38818
  }
38593
38819
 
38594
38820
  /*
@@ -38603,6 +38829,7 @@ svg.crewlet-select__chevron {
38603
38829
  .crewlet-nav-group__action,
38604
38830
  .crewlet-nav-group__toggle,
38605
38831
  .crewlet-nav-group__chevron,
38832
+ .crewlet-nav-group__icon,
38606
38833
  .crewlet-nav-item__row,
38607
38834
  .crewlet-nav-item__chevron {
38608
38835
  transition: none;
@@ -45064,16 +45291,18 @@ b.crewlet-switcher__match {
45064
45291
  }
45065
45292
 
45066
45293
 
45067
- /* ThreadSummary-AGR4NDMD.css */
45294
+ /* ThreadSummary-CFAHYY57.css */
45068
45295
  /*
45069
45296
  * The line under a message that has replies, and the working line under it.
45070
45297
  */
45071
45298
 
45299
+ /* The column's width, so the line's own cap (below) is what bounds it. */
45072
45300
  .crewlet-thread-summary-wrap {
45073
45301
  display: flex;
45074
45302
  flex-direction: column;
45075
45303
  align-items: flex-start;
45076
45304
  gap: var(--spacing-1);
45305
+ width: 100%;
45077
45306
  max-width: 100%;
45078
45307
  }
45079
45308
 
@@ -45083,13 +45312,15 @@ b.crewlet-switcher__match {
45083
45312
  }
45084
45313
 
45085
45314
  /* The faces sit on the content edge: the line's 1px edge and its inset are
45086
- taken back by the same amount outside it. */
45315
+ taken back by the same amount outside it. It runs the content column's
45316
+ width up to a reading cap, so the whole line is the target and its end
45317
+ stands at one place down a room. */
45087
45318
  .crewlet-thread-summary {
45088
45319
  --crewlet-thread-summary-inset: var(--spacing-1);
45089
- display: inline-flex;
45320
+ display: flex;
45090
45321
  align-items: center;
45091
45322
  gap: var(--spacing-2);
45092
- max-width: 100%;
45323
+ width: min(100%, 37.5rem);
45093
45324
  height: var(--size-control-md);
45094
45325
  box-sizing: border-box;
45095
45326
  margin-inline-start: calc((var(--crewlet-thread-summary-inset) + 1px) * -1);
@@ -45105,9 +45336,9 @@ b.crewlet-switcher__match {
45105
45336
  cursor: pointer;
45106
45337
  }
45107
45338
 
45108
- /* Lifted onto the transcript's own ground inside a hairline, under the
45109
- pointer or the keyboard, and while the thread is open. */
45110
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) {
45339
+ /* Set into the transcript's own ground inside a hairline, under the pointer
45340
+ or the keyboard: a step back from the hovered row, not a raised button. */
45341
+ .crewlet-thread-summary:is(:hover, :focus-visible) {
45111
45342
  border-color: var(--color-edge-hairline);
45112
45343
  background: var(--crewlet-chat-ground);
45113
45344
  }
@@ -45118,42 +45349,62 @@ b.crewlet-switcher__match {
45118
45349
  }
45119
45350
 
45120
45351
  .crewlet-thread-summary__count {
45352
+ flex: none;
45121
45353
  color: var(--color-brand-accent-ink);
45122
45354
  font-weight: var(--font-weight-medium);
45123
45355
  white-space: nowrap;
45124
45356
  }
45125
45357
 
45126
- /* "Last reply 1h ago" and "View thread" share one cell, so the line keeps
45127
- its width when one gives way to the other under the pointer. */
45128
- .crewlet-thread-summary__tail {
45129
- display: inline-grid;
45358
+ /* When the last reply came, laid out at rest and shown on the line's hover:
45359
+ the part that gives way first where the column is narrow. */
45360
+ .crewlet-thread-summary__last {
45130
45361
  min-width: 0;
45131
- padding-inline-end: var(--spacing-1);
45362
+ overflow: hidden;
45363
+ color: var(--color-text-tertiary);
45364
+ text-overflow: ellipsis;
45132
45365
  white-space: nowrap;
45366
+ opacity: 0;
45367
+ transition: opacity var(--motion-duration-moderate) var(--motion-easing-default);
45133
45368
  }
45134
45369
 
45135
- .crewlet-thread-summary__last,
45136
- .crewlet-thread-summary__view {
45137
- grid-area: 1 / 1;
45370
+ /* "View thread" and the chevron that says the line opens, at its end. */
45371
+ .crewlet-thread-summary__end {
45372
+ display: inline-flex;
45373
+ flex: none;
45374
+ align-items: center;
45375
+ gap: var(--spacing-1);
45376
+ margin-inline-start: auto;
45377
+ color: var(--color-text-secondary);
45378
+ white-space: nowrap;
45379
+ opacity: 0;
45138
45380
  }
45139
45381
 
45140
- .crewlet-thread-summary__last {
45382
+ .crewlet-thread-summary__chevron {
45141
45383
  color: var(--color-text-tertiary);
45142
45384
  }
45143
45385
 
45144
- .crewlet-thread-summary__view {
45145
- justify-self: end;
45146
- visibility: hidden;
45147
- color: var(--color-text-secondary);
45148
- font-weight: var(--font-weight-regular);
45386
+ .crewlet-thread-summary:is(:hover, :focus-visible) .crewlet-thread-summary__last,
45387
+ .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__end {
45388
+ opacity: 1;
45149
45389
  }
45150
45390
 
45151
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__last {
45391
+ /* OPEN, the end says so and opens nothing new. */
45392
+ .crewlet-thread-summary.is-open .crewlet-thread-summary__chevron {
45152
45393
  visibility: hidden;
45153
45394
  }
45154
45395
 
45155
- .crewlet-thread-summary:is(:hover, :focus-visible, .is-open) .crewlet-thread-summary__view {
45156
- visibility: visible;
45396
+ /* THE MESSAGE WHOSE THREAD IS OPEN beside the room wears the selected
45397
+ surface, under the pointer too: the one sign of which conversation the
45398
+ pane belongs to, gone when the pane closes. */
45399
+ .crewlet-chat-message:has(.crewlet-thread-summary.is-open),
45400
+ .crewlet-chat-message:has(.crewlet-thread-summary.is-open):hover {
45401
+ background: var(--color-surface-selected);
45402
+ }
45403
+
45404
+ @media (prefers-reduced-motion: reduce) {
45405
+ .crewlet-thread-summary__last {
45406
+ transition: none;
45407
+ }
45157
45408
  }
45158
45409
 
45159
45410
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.105.0",
3
+ "version": "0.106.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.105.0",
46
- "@crewlethq/tokens": "0.105.0",
45
+ "@crewlethq/icons": "0.106.0",
46
+ "@crewlethq/tokens": "0.106.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",