rift-ds 1.23.0 → 1.24.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.
@@ -21,7 +21,11 @@
21
21
  /* The vertical padding sits inside the viewport height; content-box
22
22
  sizing ran the rail 40px past the bottom and clipped the profile. */
23
23
  box-sizing: border-box;
24
- background-color: var(--color-bg-page-primary);
24
+ /* The flush rail, the shell recipe's (src/behaviors/shell.css): the
25
+ shell plane behind a hairline divider. A host that marks itself a
26
+ shell sets both; a rail standing alone takes the same look. */
27
+ background-color: var(--ds-shell-rail-bg, var(--color-bg-app-shell));
28
+ border-inline-end: var(--border-025) solid var(--ds-shell-rail-divider, var(--color-bg-container-border));
25
29
  /* The logo mark draws in currentColor; without a colour of its own the
26
30
  rail inherited the host's, and the mark vanished on a dark host. */
27
31
  color: var(--color-text-primary);
@@ -49,13 +53,15 @@
49
53
  top: var(--ds-sidebar-float-inset, 20px);
50
54
  inset-inline-start: var(--ds-sidebar-float-inset, 20px);
51
55
  height: calc(100dvh - var(--ds-sidebar-float-inset, 20px) * 2);
52
- background-color: var(--color-bg-glass);
53
- border: var(--border-025) solid var(--color-bg-container-border);
54
- border-radius: var(--radius-600);
55
- box-shadow: var(--shadow-floating);
56
+ /* The shell recipe's glass card (src/behaviors/shell.css), with its
57
+ values as fallbacks for a rail standing outside a shell host. */
58
+ background-color: var(--ds-shell-glass, var(--color-bg-glass));
59
+ border: var(--border-025) solid var(--ds-shell-edge-border, var(--color-bg-container-border));
60
+ border-radius: var(--ds-shell-radius, var(--radius-600));
61
+ box-shadow: var(--ds-shell-edge-shadow, var(--shadow-floating));
56
62
  /* The glass token is deliberately translucent; this blur is what keeps
57
63
  content behind the rail readable through it. */
58
- backdrop-filter: blur(24px);
64
+ backdrop-filter: var(--ds-shell-glass-blur, blur(24px));
59
65
  }
60
66
 
61
67
  /* The inset layout's gap: between the content surface and the viewport
@@ -71,7 +77,9 @@
71
77
  from the edges (AppLayout's inset layout)
72
78
  ============================================ */
73
79
  .ds-app-sidebar--inset {
74
- background-color: var(--color-bg-app-shell);
80
+ background-color: var(--ds-shell-rail-bg, var(--color-bg-app-shell));
81
+ /* The content surface's raised edge is the seam; the rail needs none. */
82
+ border-inline-end-color: transparent;
75
83
  }
76
84
 
77
85
  /* ============================================
@@ -85,6 +93,12 @@
85
93
  overflow-x: hidden;
86
94
  flex: 1;
87
95
  min-height: 0;
96
+ /* The scroller clips at its edge, and the logo row sits on it: the
97
+ collapse toggle's hover pill, a --gap-100 step out from the icon, lost
98
+ its top to it. A pill's worth of room inside the top edge, taken back
99
+ from the rail's padding, so nothing moves. */
100
+ padding-top: var(--gap-100);
101
+ margin-top: calc(-1 * var(--gap-100));
88
102
  }
89
103
 
90
104
  /* ============================================
@@ -349,6 +363,15 @@
349
363
  transition: opacity var(--motion-duration-base) var(--motion-ease-standard);
350
364
  }
351
365
 
366
+ /* Collapsed, the row is a 40px circle, and its clip follows the curve: the
367
+ corner badge, which overhangs the icon seat's top end, lost its corner
368
+ to it. The collapsed row draws nothing that needs the clip (the label
369
+ and chevron truncate themselves, and the hover circle is the row's own
370
+ fill), so it lets the badge hang over. */
371
+ .ds-app-sidebar:not(.ds-app-sidebar--expanded) .ds-app-sidebar__btn {
372
+ overflow: visible;
373
+ }
374
+
352
375
  .ds-app-sidebar--expanded .ds-app-sidebar__btn-corner-badge {
353
376
  opacity: 0;
354
377
  transition-duration: var(--motion-duration-fast);
@@ -536,6 +559,12 @@
536
559
  grid-area: 1 / 1;
537
560
  }
538
561
 
562
+ /* The footer's controls start on the rail's leading line, the logo's, the
563
+ row icons' and the avatar's, a step deeper than the top slot. */
564
+ .ds-app-sidebar__footer > .ds-app-sidebar__footer-slot:not(.ds-app-sidebar__footer-slot--collapsed) {
565
+ padding-inline: var(--padding-500);
566
+ }
567
+
539
568
  .ds-app-sidebar__footer-slot--collapsed {
540
569
  display: flex;
541
570
  flex-direction: column;
@@ -599,12 +628,13 @@
599
628
  opacity: 1;
600
629
  }
601
630
 
631
+ /* The profile pairs its lines as EntitySwitcher does: the name in
632
+ paragraph-sm emphasis, the second line in caption, secondary. */
602
633
  .ds-app-sidebar__profile-name {
603
- font-family: var(--font-paragraph-emphasis-family);
604
- font-size: var(--font-paragraph-emphasis-size);
605
- font-weight: var(--font-paragraph-emphasis-weight);
606
- line-height: var(--font-paragraph-emphasis-line-height);
607
- letter-spacing: var(--font-paragraph-emphasis-letter-spacing);
634
+ font-family: var(--font-paragraph-sm-emphasis-family);
635
+ font-size: var(--font-paragraph-sm-emphasis-size);
636
+ font-weight: var(--font-paragraph-sm-emphasis-weight);
637
+ line-height: var(--font-paragraph-sm-emphasis-line-height);
608
638
  color: var(--color-text-primary);
609
639
  white-space: nowrap;
610
640
  overflow: hidden;
@@ -612,11 +642,11 @@
612
642
  }
613
643
 
614
644
  .ds-app-sidebar__profile-email {
615
- font-family: var(--font-paragraph-family);
616
- font-size: var(--font-paragraph-size);
617
- font-weight: var(--font-paragraph-weight);
618
- line-height: var(--font-paragraph-line-height);
619
- color: var(--color-text-tertiary);
645
+ font-family: var(--font-caption-family);
646
+ font-size: var(--font-caption-size);
647
+ font-weight: var(--font-caption-weight);
648
+ line-height: var(--font-caption-line-height);
649
+ color: var(--color-text-secondary);
620
650
  white-space: nowrap;
621
651
  overflow: hidden;
622
652
  text-overflow: ellipsis;
@@ -702,11 +732,13 @@
702
732
  top: var(--ds-sidebar-float-inset, 20px);
703
733
  inset-inline-start: calc(var(--ds-sidebar-float-inset, 20px) + 64px + var(--gap-300));
704
734
  height: calc(100dvh - var(--ds-sidebar-float-inset, 20px) * 2);
705
- background-color: var(--color-bg-glass);
706
- border: var(--border-025) solid var(--color-bg-container-border);
707
- border-radius: var(--radius-600);
708
- box-shadow: var(--shadow-floating);
709
- backdrop-filter: blur(24px);
735
+ /* The shell recipe's glass card (src/behaviors/shell.css), with its
736
+ values as fallbacks for a rail standing outside a shell host. */
737
+ background-color: var(--ds-shell-glass, var(--color-bg-glass));
738
+ border: var(--border-025) solid var(--ds-shell-edge-border, var(--color-bg-container-border));
739
+ border-radius: var(--ds-shell-radius, var(--radius-600));
740
+ box-shadow: var(--ds-shell-edge-shadow, var(--shadow-floating));
741
+ backdrop-filter: var(--ds-shell-glass-blur, blur(24px));
710
742
  }
711
743
 
712
744
  .ds-app-sidebar__panel--floating.ds-app-sidebar__panel--panel-mode {
@@ -721,8 +753,16 @@
721
753
  divider between the two levels, and the inset content surface starts
722
754
  beyond both (AppLayout reserves the panel's width while it shows). The
723
755
  trailing edge needs no border: the surface's own edge ends the panel. */
756
+ /* Flush: the panel continues the rail on its shell colour, and the rail's
757
+ own divider is the seam between them, so the panel's leading hairline
758
+ would double it. */
759
+ .ds-app-sidebar__panel:not(.ds-app-sidebar__panel--floating, .ds-app-sidebar__panel--inset) {
760
+ background-color: var(--ds-shell-rail-bg, var(--color-bg-app-shell));
761
+ border-inline-start-color: transparent;
762
+ }
763
+
724
764
  .ds-app-sidebar__panel--inset {
725
- background-color: var(--color-bg-app-shell);
765
+ background-color: var(--ds-shell-rail-bg, var(--color-bg-app-shell));
726
766
  border-inline-end-color: transparent;
727
767
  }
728
768
 
@@ -992,3 +1032,48 @@
992
1032
  .material-symbols-rounded:not(:where(.ds-app-sidebar__top-slot *, .ds-app-sidebar__footer-slot *)) {
993
1033
  color: inherit;
994
1034
  }
1035
+
1036
+ /* The toggle's pressed pill, ThreadPanel's: a passive hover and active fill
1037
+ a gap step out from the 24px icon, drawn behind it so the icon's box and
1038
+ the row's alignment stay as they are. Expanded only; collapsed, the toggle
1039
+ has no width to draw around. */
1040
+ .ds-app-sidebar__toggle-tip {
1041
+ flex: none;
1042
+ }
1043
+
1044
+ /* Collapsed, the rail is too narrow for the tooltip and the toggle is gone;
1045
+ the panel stays out of the way. */
1046
+ .ds-app-sidebar:not(.ds-app-sidebar--expanded) .ds-app-sidebar__toggle-tip .ds-tooltip__panel {
1047
+ display: none;
1048
+ }
1049
+
1050
+ /* In the phone drawer the toggle is the drawer's close, a glyph that names
1051
+ itself, and it takes the focus as the drawer opens: a tooltip there
1052
+ would rise over the brand name on every open, so the drawer has none. */
1053
+ .ds-app-sidebar--mobile-open .ds-app-sidebar__toggle-tip .ds-tooltip__panel {
1054
+ display: none;
1055
+ }
1056
+
1057
+ .ds-app-sidebar--expanded .ds-app-sidebar__toggle {
1058
+ position: relative;
1059
+ z-index: 0;
1060
+ overflow: visible;
1061
+ }
1062
+
1063
+ .ds-app-sidebar__toggle::before {
1064
+ content: '';
1065
+ position: absolute;
1066
+ inset: calc(-1 * var(--gap-100));
1067
+ z-index: -1;
1068
+ border-radius: var(--radius-pill);
1069
+ background-color: transparent;
1070
+ transition: background-color var(--motion-duration-fast) var(--motion-ease-standard);
1071
+ }
1072
+
1073
+ .ds-app-sidebar__toggle:hover::before {
1074
+ background-color: var(--color-action-passive-bg-hover);
1075
+ }
1076
+
1077
+ .ds-app-sidebar__toggle:active::before {
1078
+ background-color: var(--color-action-passive-bg-active);
1079
+ }
@@ -61,7 +61,7 @@ export interface AppSidebarProfile {
61
61
  /** Avatar image URL */
62
62
  avatarUrl?: string;
63
63
  }
64
- /** How the rail meets the page: edge to edge, floating as a card, or flush beside an inset content surface. */
64
+ /** The three app shell modes, how the rail meets the page: edge to edge behind a hairline, floating as a card, or flush beside a raised inset surface. */
65
65
  export type AppSidebarLayout = 'flush' | 'floating' | 'inset';
66
66
  /** Props owned by AppSidebar itself — everything else falls through to the `<nav>`. */
67
67
  type AppSidebarOwnProps = {
@@ -99,13 +99,16 @@ type AppSidebarOwnProps = {
99
99
  /** Callback when profile more button clicked */
100
100
  onProfileMore?: () => void;
101
101
  /**
102
- * How the rail meets the page. `flush` runs it edge to edge on the page
103
- * colour. `floating` floats it off the viewport edges as a glass card:
102
+ * How the rail meets the page, one of the three app shell modes. `flush`
103
+ * runs it edge to edge on the shell colour behind a hairline divider,
104
+ * nothing raised. `floating` floats it off the viewport edges as a glass card:
104
105
  * inset with rounded corners, the translucent glass fill over a backdrop
105
106
  * blur, and the floating shadow (the inset defaults to 20px and is
106
107
  * overridable via the --ds-sidebar-float-inset custom property). `inset`
107
- * runs it flush on the app shell colour, beside a content surface inset
108
- * from the edges, as AppLayout's `inset` layout draws it. Defaults to
108
+ * runs it flush on the app shell colour, beside a raised content surface
109
+ * inset from the edges, as AppLayout's `inset` layout draws it. Inside a
110
+ * host that marks itself a shell (AppLayout, a chat or template page), the
111
+ * rail reads that host's mode from the shell recipe. Defaults to
109
112
  * `flush` (or `floating` while the deprecated `floating` is set).
110
113
  */
111
114
  layout?: AppSidebarLayout;
@@ -9,6 +9,8 @@ import { mediaAbove, mediaBelow, BREAKPOINT_TABLET_PX, BREAKPOINT_MOBILE_PX } fr
9
9
  import { Avatar } from "../Avatar/Avatar.js";
10
10
  import { PixelAvatar } from "../PixelAvatar/PixelAvatar.js";
11
11
  import { SidebarPanel } from "../SidebarPanel/SidebarPanel.js";
12
+ import { Tooltip } from "../Tooltip/Tooltip.js";
13
+ import "../../behaviors/shell.css";
12
14
  import "./AppSidebar.css";
13
15
  import "../../behaviors/direction.css";
14
16
  import "../../fonts/material-symbols.css";
@@ -104,6 +106,7 @@ const AppSidebar = React.forwardRef(function AppSidebar2({
104
106
  return () => band.removeEventListener("change", onChange);
105
107
  }, []);
106
108
  const [mobileOpen, setMobileOpen] = useState(false);
109
+ const toggleLabel = mobileOpen ? closeLabel : isExpanded ? collapseLabel : expandLabel;
107
110
  const drawerRef = useRef(null);
108
111
  const setDrawerRef = (node) => {
109
112
  drawerRef.current = node;
@@ -299,15 +302,15 @@ const AppSidebar = React.forwardRef(function AppSidebar2({
299
302
  ]
300
303
  }
301
304
  ),
302
- /* @__PURE__ */ jsx(
305
+ /* @__PURE__ */ jsx(Tooltip, { content: toggleLabel, position: "start", className: `${baseClass}__toggle-tip`, children: /* @__PURE__ */ jsx(
303
306
  "button",
304
307
  {
305
308
  className: `${baseClass}__toggle`,
306
309
  onClick: mobileOpen ? closeMobile : toggleExpanded,
307
- "aria-label": mobileOpen ? closeLabel : isExpanded ? collapseLabel : expandLabel,
310
+ "aria-label": toggleLabel,
308
311
  children: /* @__PURE__ */ jsx("span", { className: "material-symbols-rounded ds-mirror-rtl", children: mobileOpen ? "close" : isExpanded ? "left_panel_close" : "left_panel_open" })
309
312
  }
310
- )
313
+ ) })
311
314
  ] }),
312
315
  topSlot && /* @__PURE__ */ jsx(
313
316
  "div",
@@ -187,3 +187,9 @@
187
187
  animation: none;
188
188
  }
189
189
  }
190
+
191
+ /* The trigger's tooltip names the swatch; with the menu open the menu says
192
+ it all, and the bubble would sit on the side the menu takes. */
193
+ .ds-theme-picker--open .ds-theme-picker__trigger-tip .ds-tooltip__panel {
194
+ display: none;
195
+ }
@@ -2,6 +2,7 @@
2
2
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
3
3
  import React, { useState, useRef, useId, useEffect } from "react";
4
4
  import { ChosenMark } from "../Dropdown/Dropdown.js";
5
+ import { Tooltip } from "../Tooltip/Tooltip.js";
5
6
  import { useAnchoredPosition } from "../../behaviors/useAnchoredPosition.js";
6
7
  import { useLayer } from "../../behaviors/useLayer.js";
7
8
  import "./ThemePicker.css";
@@ -101,18 +102,26 @@ const ThemePicker = React.forwardRef(
101
102
  className: [baseClass, `${baseClass}--${size}`, isOpen && `${baseClass}--open`, className].filter(Boolean).join(" "),
102
103
  children: [
103
104
  /* @__PURE__ */ jsx(
104
- "button",
105
+ Tooltip,
105
106
  {
106
- ref: triggerRef,
107
- type: "button",
108
- className: `${baseClass}__trigger`,
109
- "aria-label": active ? triggerLabel(active.label) : menuLabel,
110
- "aria-haspopup": "menu",
111
- "aria-expanded": isOpen,
112
- "aria-controls": isOpen ? menuId : void 0,
113
- disabled,
114
- onClick: () => setOpen(!isOpen),
115
- children: swatch(active, "swatch")
107
+ content: active ? triggerLabel(active.label) : menuLabel,
108
+ position: placement,
109
+ className: `${baseClass}__trigger-tip`,
110
+ children: /* @__PURE__ */ jsx(
111
+ "button",
112
+ {
113
+ ref: triggerRef,
114
+ type: "button",
115
+ className: `${baseClass}__trigger`,
116
+ "aria-label": active ? triggerLabel(active.label) : menuLabel,
117
+ "aria-haspopup": "menu",
118
+ "aria-expanded": isOpen,
119
+ "aria-controls": isOpen ? menuId : void 0,
120
+ disabled,
121
+ onClick: () => setOpen(!isOpen),
122
+ children: swatch(active, "swatch")
123
+ }
124
+ )
116
125
  }
117
126
  ),
118
127
  isOpen && !disabled && /* @__PURE__ */ jsxs(
@@ -61,7 +61,9 @@
61
61
  align-items: center;
62
62
  flex: none;
63
63
  min-width: 0;
64
- padding: var(--padding-150) var(--padding-200);
64
+ /* The top inset seats the logo and the toggle 20px down, AppSidebar's
65
+ top line. */
66
+ padding: var(--padding-100) var(--padding-200) var(--padding-150);
65
67
  margin-bottom: var(--gap-300);
66
68
  }
67
69
 
@@ -190,12 +192,11 @@
190
192
  display: none;
191
193
  }
192
194
 
193
- /* The glyph's ink stops a bearing short of its 24px box, so the box is
194
- pulled out by that much: the mark's right edge lands on the rail the
195
- rows' meta captions and the profile's caption end on. */
195
+ /* The toggle's box sits on the rail's trailing line, where AppSidebar's
196
+ does, 20px in; the rows' trailing items keep a step more room, inside
197
+ their pills. */
196
198
  .ds-thread-panel--expanded .ds-thread-panel__toggle {
197
199
  width: 24px;
198
- margin-inline-end: calc(-1 * var(--gap-100));
199
200
  opacity: 1;
200
201
  }
201
202
 
@@ -346,7 +347,7 @@
346
347
  }
347
348
 
348
349
  /* ============================================
349
- PROJECTS — standing rows under their own overline header
350
+ PROJECTS — standing rows under their own group heading
350
351
  Rows share the controls' anatomy (icon circles while collapsed, labels
351
352
  fading with the sweep); the header carries the section's name and the
352
353
  quiet new-project button, and fades out whole while collapsed — the
@@ -387,12 +388,10 @@
387
388
  min-width: 0;
388
389
  overflow: hidden;
389
390
  white-space: nowrap;
390
- font-family: var(--font-overline-family);
391
- font-size: var(--font-caption-size);
392
- font-weight: var(--font-overline-weight);
393
- line-height: var(--font-overline-line-height);
394
- letter-spacing: var(--font-overline-letter-spacing);
395
- text-transform: uppercase;
391
+ font-family: var(--font-paragraph-sm-family);
392
+ font-size: var(--font-paragraph-sm-size);
393
+ font-weight: var(--font-paragraph-sm-weight);
394
+ line-height: var(--font-paragraph-sm-line-height);
396
395
  color: var(--color-text-tertiary);
397
396
  }
398
397
 
@@ -509,23 +508,21 @@
509
508
  gap: var(--gap-050);
510
509
  }
511
510
 
512
- /* The overline face set one step down, at the caption's size: the labels
513
- sit among caption-sized meta and second lines, and the full overline
514
- outweighed the thread titles it files. The overline's own line-height
515
- stays, so the rhythm below is unchanged. Aligned with the text seat. The vertical padding
511
+ /* The rails' one group heading, AppSidebar's category and SidebarPanel's
512
+ group label: paragraph small in the tertiary text, mixed case. Its
513
+ 20px line is the overline's it replaced, so the rhythm below is
514
+ unchanged. On the rail's leading line, the logo's. The vertical padding
516
515
  is the rows' own inset restated — as if the label sat inside a row —
517
- so the overline keeps the pills' rhythm instead of hugging the
516
+ so the heading keeps the pills' rhythm instead of hugging the
518
517
  new-thread row above and the first thread below. */
519
518
  .ds-thread-panel__group-label {
520
519
  padding: var(--padding-200);
521
520
  overflow: hidden;
522
521
  white-space: nowrap;
523
- font-family: var(--font-overline-family);
524
- font-size: var(--font-caption-size);
525
- font-weight: var(--font-overline-weight);
526
- line-height: var(--font-overline-line-height);
527
- letter-spacing: var(--font-overline-letter-spacing);
528
- text-transform: uppercase;
522
+ font-family: var(--font-paragraph-sm-family);
523
+ font-size: var(--font-paragraph-sm-size);
524
+ font-weight: var(--font-paragraph-sm-weight);
525
+ line-height: var(--font-paragraph-sm-line-height);
529
526
  color: var(--color-text-tertiary);
530
527
  }
531
528
 
@@ -861,28 +858,45 @@
861
858
  pointer-events: auto;
862
859
  }
863
860
 
864
- /* --padding-100 centres the 32px avatar on the rail's axis (12 + 4) in
865
- both states, so it holds still like the header's mark; expanded, only
866
- the trailing inset deepens, landing the caption on the rows' meta rail. */
861
+ /* The footer's controls start on the rail's leading line, over the avatar,
862
+ where AppSidebar's do. */
863
+ .ds-thread-panel__footer-slot {
864
+ padding-inline-start: var(--padding-200);
865
+ }
866
+
867
+ /* The rails' one profile block, AppSidebar's: a 40px avatar, the name over
868
+ the meta line in paragraph type, AppSidebar's avatar-to-name gap.
869
+ Collapsed, the avatar sits on the rail's axis (12 + 40 + 12 = 64);
870
+ expanded, it glides to the rail's leading line, 20px in, as AppSidebar's
871
+ does. Only the inline padding moves, so the row's height never snaps. */
867
872
  .ds-thread-panel__profile {
868
- display: flex;
873
+ display: grid;
874
+ grid-template-columns: auto minmax(0, 1fr);
875
+ grid-template-areas: 'avatar name' 'avatar meta';
869
876
  align-items: center;
870
- gap: var(--gap-200);
877
+ column-gap: 10px; /* ds-allow(spacing): AppSidebar's avatar-to-name gap, between the 8px and 12px steps */
871
878
  min-width: 0;
872
- padding: var(--padding-100);
879
+ padding: var(--padding-200) 0 0;
873
880
  transition: padding var(--motion-duration-slow) var(--motion-ease-emphasized);
874
881
  }
875
882
 
876
883
  .ds-thread-panel--expanded .ds-thread-panel__profile {
877
- padding: var(--padding-100) var(--padding-200) var(--padding-100)
878
- var(--padding-100);
884
+ padding: var(--padding-200) var(--padding-200) 0;
879
885
  }
880
886
 
887
+ .ds-thread-panel__profile > :first-child {
888
+ grid-area: avatar;
889
+ }
890
+
891
+ /* The profile pairs its lines as EntitySwitcher does: the name in
892
+ paragraph-sm emphasis, the second line in caption, secondary. */
881
893
  .ds-thread-panel__profile-name {
882
- flex: 1;
894
+ grid-area: name;
895
+ align-self: end;
883
896
  min-width: 0;
884
897
  overflow: hidden;
885
898
  white-space: nowrap;
899
+ text-overflow: ellipsis;
886
900
  font-family: var(--font-paragraph-sm-emphasis-family);
887
901
  font-size: var(--font-paragraph-sm-emphasis-size);
888
902
  font-weight: var(--font-paragraph-sm-emphasis-weight);
@@ -897,14 +911,17 @@
897
911
  }
898
912
 
899
913
  .ds-thread-panel__profile-meta {
900
- flex: none;
914
+ grid-area: meta;
915
+ align-self: start;
916
+ min-width: 0;
901
917
  overflow: hidden;
902
918
  white-space: nowrap;
919
+ text-overflow: ellipsis;
903
920
  font-family: var(--font-caption-family);
904
921
  font-size: var(--font-caption-size);
905
922
  font-weight: var(--font-caption-weight);
906
923
  line-height: var(--font-caption-line-height);
907
- color: var(--color-text-tertiary);
924
+ color: var(--color-text-secondary);
908
925
  opacity: 0;
909
926
  transition: opacity var(--motion-duration-base) var(--motion-ease-standard);
910
927
  }
@@ -923,9 +940,21 @@
923
940
  dots under the pen's visible edge while the glyph itself stays centred
924
941
  under the logo. None of it shows collapsed, so nothing moves. */
925
942
  .ds-thread-panel__thread,
926
- .ds-thread-panel__group-label,
927
- .ds-thread-panel__projects-header,
928
943
  .ds-thread-panel__more,
929
944
  .ds-thread-panel__rename {
930
945
  padding-inline-start: var(--padding-300);
931
946
  }
947
+
948
+ /* Group headings sit on the rail's leading line, the logo's and the row
949
+ icons', where AppSidebar's category does. */
950
+ .ds-thread-panel__group-label,
951
+ .ds-thread-panel__projects-header {
952
+ padding-inline-start: var(--padding-200);
953
+ }
954
+
955
+ /* A row's trailing item (the meta caption) keeps AppSidebar's badge room
956
+ from its pill's end, a step more than the pill's own inset. */
957
+ .ds-thread-panel__thread,
958
+ .ds-thread-panel__project {
959
+ padding-inline-end: var(--padding-300);
960
+ }
@@ -44,7 +44,7 @@ export interface ThreadPanelThread {
44
44
  pinned?: boolean;
45
45
  }
46
46
  export interface ThreadPanelGroup {
47
- /** Group heading in the overline face, e.g. a project or repo name. Omit for an unlabelled run of threads. */
47
+ /** Group heading in the rails' shared mixed-case style, e.g. a project or repo name. Omit for an unlabelled run of threads. */
48
48
  label?: string;
49
49
  /** The group's threads, in display order. */
50
50
  threads: ThreadPanelThread[];
@@ -76,9 +76,9 @@ export interface ThreadPanelProject {
76
76
  export interface ThreadPanelProfile {
77
77
  /** The signed-in person's display name; also seeds the Avatar's initials. */
78
78
  name: string;
79
- /** Quiet caption beside the name, e.g. the plan or workspace. */
79
+ /** The quiet second line under the name, e.g. the person's email, plan or workspace (AppSidebar's profile block carries the email there). */
80
80
  meta?: string;
81
- /** Replace the initials Avatar with a custom element, e.g. an `<Avatar src>`. */
81
+ /** Replace the initials Avatar with a custom element, e.g. an `<Avatar src>`; the row seats a 40px mark (Avatar at `md`). */
82
82
  avatar?: React.ReactNode;
83
83
  }
84
84
  /** Props owned by ThreadPanel itself — everything else falls through to the root `<div>`. */
@@ -134,9 +134,9 @@ type ThreadPanelOwnProps = {
134
134
  controls?: ThreadPanelControl[];
135
135
  /** Fires with the clicked control's id. Rows with an `href` navigate as well. */
136
136
  onControlSelect?: (id: string) => void;
137
- /** Project rows between the standing controls and the history, under their own overline header. The section renders only when non-empty; collapsed, the rows fold to icon circles like the controls. */
137
+ /** Project rows between the standing controls and the history, under their own group heading. The section renders only when non-empty; collapsed, the rows fold to icon circles like the controls. */
138
138
  projects?: ThreadPanelProject[];
139
- /** The projects section's overline header text. */
139
+ /** The projects section's group heading text. */
140
140
  projectsLabel?: string;
141
141
  /** Id of the open project. Its row renders filled and carries `aria-current`. */
142
142
  activeProjectId?: string;
@@ -515,7 +515,7 @@ const ThreadPanel = React.forwardRef(
515
515
  className: `${baseClass}__profile`,
516
516
  title: expanded ? void 0 : profile.name,
517
517
  children: [
518
- profile.avatar ?? /* @__PURE__ */ jsx(Avatar, { name: profile.name, size: "sm" }),
518
+ profile.avatar ?? /* @__PURE__ */ jsx(Avatar, { name: profile.name, size: "md" }),
519
519
  /* @__PURE__ */ jsx("span", { className: `${baseClass}__profile-name`, children: profile.name }),
520
520
  profile.meta && /* @__PURE__ */ jsx("span", { className: `${baseClass}__profile-meta`, children: profile.meta })
521
521
  ]
@@ -155,7 +155,7 @@
155
155
  "name": "AppLayout",
156
156
  "label": "App layout",
157
157
  "slug": "app-layout",
158
- "description": "Full-page template pairing the collapsible App sidebar with a content area, centred or set in an inset surface.",
158
+ "description": "Full-page template pairing the collapsible App sidebar with a content area, in one of the three app shell modes: flush, floating or inset.",
159
159
  "category": "layout",
160
160
  "client": true
161
161
  },
@@ -155,7 +155,7 @@ declare const _default: {
155
155
  "name": "AppLayout",
156
156
  "label": "App layout",
157
157
  "slug": "app-layout",
158
- "description": "Full-page template pairing the collapsible App sidebar with a content area, centred or set in an inset surface.",
158
+ "description": "Full-page template pairing the collapsible App sidebar with a content area, in one of the three app shell modes: flush, floating or inset.",
159
159
  "category": "layout",
160
160
  "client": true
161
161
  },