rift-ds 1.33.0 → 1.35.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 (95) hide show
  1. package/README.md +3 -3
  2. package/behaviors/chat-card.css +11 -6
  3. package/behaviors/locale.d.ts +9 -0
  4. package/behaviors/locale.js +2 -0
  5. package/bin/templates/blocks/app/dashboard/page.tsx +1 -1
  6. package/bin/templates/blocks/components/blocks/AppShell.module.css +10 -6
  7. package/chat/AssistantTurn.d.ts +2 -0
  8. package/chat/AssistantTurn.js +18 -7
  9. package/chat/ChatProvider.js +14 -0
  10. package/chat/ChatTabs.js +1 -1
  11. package/chat/ChatWidget.css +10 -0
  12. package/chat/ChatWidget.d.ts +9 -5
  13. package/chat/ChatWidget.js +7 -4
  14. package/chat/DemoWelcome.js +2 -2
  15. package/chat/FollowupSuggestions.js +1 -1
  16. package/chat/agentState.d.ts +2 -1
  17. package/chat/agentState.js +4 -1
  18. package/chat/awaiting.d.ts +19 -0
  19. package/chat/awaiting.js +21 -0
  20. package/chat/context.d.ts +4 -0
  21. package/chat/index.d.ts +1 -0
  22. package/chat/index.js +3 -1
  23. package/chat/server.d.ts +8 -3
  24. package/chat/server.js +1 -1
  25. package/components/ActionBar/ActionBar.css +78 -0
  26. package/components/ActionBar/ActionBar.d.ts +40 -0
  27. package/components/ActionBar/ActionBar.js +29 -0
  28. package/components/ActionCard/ActionCard.css +3 -3
  29. package/components/AgentStatus/AgentStatus.css +114 -22
  30. package/components/AgentStatus/AgentStatus.d.ts +10 -7
  31. package/components/AgentStatus/AgentStatus.js +10 -0
  32. package/components/AiButton/AiButton.d.ts +3 -3
  33. package/components/AiButton/AiButton.js +1 -1
  34. package/components/Alert/Alert.css +16 -0
  35. package/components/Alert/Alert.d.ts +2 -2
  36. package/components/Alert/Alert.js +3 -1
  37. package/components/AppSidebar/AppSidebar.css +140 -4
  38. package/components/AppSidebar/AppSidebar.d.ts +12 -0
  39. package/components/AppSidebar/AppSidebar.js +7 -3
  40. package/components/ChatThread/ChatThread.d.ts +5 -1
  41. package/components/ChatThread/ChatThread.js +1 -1
  42. package/components/Composer/Composer.css +14 -9
  43. package/components/Composer/Composer.d.ts +10 -8
  44. package/components/Composer/Composer.js +2 -1
  45. package/components/ContextMenu/ContextMenu.d.ts +5 -1
  46. package/components/ContextMenu/ContextMenu.js +2 -1
  47. package/components/ContributionGraph/ContributionGraph.d.ts +7 -1
  48. package/components/ContributionGraph/ContributionGraph.js +4 -18
  49. package/components/ContributionGraph/weeks.d.ts +8 -0
  50. package/components/ContributionGraph/weeks.js +25 -0
  51. package/components/DataTable/DataTable.js +1 -1
  52. package/components/DocumentChip/DocumentChip.js +1 -1
  53. package/components/EntitySwitcher/EntitySwitcher.css +11 -3
  54. package/components/EntitySwitcher/EntitySwitcher.js +1 -1
  55. package/components/EventCalendar/EventCalendar.css +152 -0
  56. package/components/EventCalendar/EventCalendar.d.ts +50 -4
  57. package/components/EventCalendar/EventCalendar.js +154 -23
  58. package/components/EventCalendar/eventTime.d.ts +31 -0
  59. package/components/EventCalendar/eventTime.js +42 -0
  60. package/components/FileInput/FileInput.d.ts +12 -4
  61. package/components/FileInput/FileInput.js +27 -4
  62. package/components/Input/Input.css +30 -0
  63. package/components/Input/Input.d.ts +8 -0
  64. package/components/Input/Input.js +3 -0
  65. package/components/MessageCard/MessageCard.css +1 -1
  66. package/components/Popover/Popover.d.ts +5 -1
  67. package/components/Popover/Popover.js +3 -1
  68. package/components/ProgressBar/ProgressBar.d.ts +5 -1
  69. package/components/ProgressBar/ProgressBar.js +1 -1
  70. package/components/PromptSuggestions/PromptSuggestions.d.ts +5 -1
  71. package/components/PromptSuggestions/PromptSuggestions.js +1 -1
  72. package/components/ResourceTimeline/ResourceTimeline.js +2 -2
  73. package/components/SegmentedControl/SegmentedControl.css +120 -3
  74. package/components/SegmentedControl/SegmentedControl.d.ts +9 -0
  75. package/components/SegmentedControl/SegmentedControl.js +11 -1
  76. package/components/ShaderScene/ShaderScene.d.ts +3 -3
  77. package/components/ShaderScene/scenes.d.ts +17 -0
  78. package/components/ShaderScene/scenes.js +175 -1
  79. package/components/SourceTrail/SourceTrail.css +1 -1
  80. package/components/Stat/Stat.css +12 -0
  81. package/components/Stat/Stat.d.ts +5 -0
  82. package/components/Stat/Stat.js +9 -3
  83. package/components/TableToolbar/TableToolbar.js +2 -2
  84. package/components/ThemeToggle/ThemeToggle.d.ts +1 -1
  85. package/components/ThreadTabs/ThreadTabs.d.ts +5 -1
  86. package/components/ThreadTabs/ThreadTabs.js +2 -1
  87. package/components/ToggleGroup/ToggleGroup.d.ts +5 -1
  88. package/components/ToolCall/ToolCall.css +2 -2
  89. package/components/UsageCard/UsageCard.css +4 -3
  90. package/components/registry.json +21 -4
  91. package/components/registry.json.d.ts +21 -4
  92. package/components/registry.json.js +1 -1
  93. package/index.d.ts +1 -0
  94. package/index.js +2 -0
  95. package/package.json +1 -1
@@ -1681,7 +1681,180 @@ vec3 scene(vec2 uv, float t) {
1681
1681
  `
1682
1682
  )
1683
1683
  };
1684
- const SCENES = [horizon, rift, glyphs, prism, meteors, waves, aurora, highway, ocean, sky, galaxy];
1684
+ const tide = {
1685
+ id: "tide",
1686
+ label: "Tide",
1687
+ description: "Dusk over still water, smeared like a long exposure: a band of fire on the horizon under night coming down, mirrored in the water.",
1688
+ /* The whole set: the scene casts it by temperature. */
1689
+ colours: [
1690
+ "--color-ambient-1",
1691
+ "--color-ambient-2",
1692
+ "--color-ambient-3",
1693
+ "--color-ambient-4",
1694
+ "--color-ambient-5",
1695
+ "--color-ambient-6"
1696
+ ],
1697
+ params: [
1698
+ { key: "horizon", label: "Horizon", min: 0.15, max: 0.95, step: 0.01, default: 0.4 },
1699
+ { key: "glow", label: "Fire", min: 0, max: 2, step: 0.01, default: 1 },
1700
+ { key: "line", label: "Hot line", min: 0, max: 2, step: 0.01, default: 1 },
1701
+ { key: "sunX", label: "Sun position", min: -1, max: 1, step: 0.01, default: 0.15 },
1702
+ { key: "cloud", label: "Cloud", min: 0, max: 1, step: 0.01, default: 0.6 },
1703
+ { key: "cloudY", label: "Cloud height", min: 0, max: 0.4, step: 0.01, default: 0.12 },
1704
+ { key: "ripple", label: "Ripples", min: 0, max: 2, step: 0.01, default: 1 },
1705
+ { key: "land", label: "Land", min: 0, max: 1, step: 0.01, default: 0.5 },
1706
+ { key: "depth", label: "Sky depth", min: 0, max: 1.5, step: 0.01, default: 1 },
1707
+ { key: "brush", label: "Brush", min: 0, max: 2, step: 0.01, default: 1 },
1708
+ { key: "drift", label: "Drift", min: 0, max: 3, step: 0.05, default: 1 }
1709
+ ],
1710
+ glsl: (
1711
+ /* glsl */
1712
+ `
1713
+ vec3 tBlue;
1714
+ vec3 tSlate;
1715
+ vec3 tPale;
1716
+ vec3 tCoral;
1717
+ vec3 tAmber;
1718
+ vec3 tGold;
1719
+ vec3 tViolet;
1720
+ float tDay;
1721
+
1722
+ float tideLum(vec3 c) {
1723
+ return dot(c, vec3(0.2126, 0.7152, 0.0722));
1724
+ }
1725
+
1726
+ /* A theme's ambient tone at full brightness, so it reads as a hue; a tone
1727
+ with next to no hue keeps its own value, or a grey would come out white. */
1728
+ vec3 tideHue(vec3 c) {
1729
+ float hi = max(c.r, max(c.g, c.b));
1730
+ float chroma = (hi - min(c.r, min(c.g, c.b))) / max(hi, 1e-3);
1731
+ return mix(c, c / max(hi, 1e-3), smoothstep(0.04, 0.2, chroma));
1732
+ }
1733
+
1734
+ /* A mix made by eye rather than by light, so a thinned blue stays blue. */
1735
+ vec3 tideMix(vec3 a, vec3 b, float k) {
1736
+ return pow(mix(pow(a, vec3(1.0 / 2.2)), pow(b, vec3(1.0 / 2.2)), k), vec3(2.2));
1737
+ }
1738
+
1739
+ /* One amount by night, another by day. */
1740
+ float tideDk(float night, float day) {
1741
+ return mix(night, day, tDay);
1742
+ }
1743
+
1744
+ /* Light laid on a base: added on a dark ground, mixed in by eye on a light one. */
1745
+ vec3 tideLay(vec3 base, vec3 c, float k) {
1746
+ return mix(base + c * k, tideMix(base, c, clamp(k, 0.0, 1.0)), tDay);
1747
+ }
1748
+
1749
+ /* The sky a height a above the horizon: night overhead, a cold clear band
1750
+ lower down, and the fire right on the water, hottest under the sun. */
1751
+ vec3 tideSky(float x, float a, float sx, float aspect) {
1752
+ float side = exp(-(x - sx) * (x - sx) / (0.5 * aspect * aspect));
1753
+ float climb = pow(clamp(a / max(1.0 - u_horizon, 0.1), 0.0, 1.0), 0.6);
1754
+ vec3 zenith = tideLay(u_ground, mix(tSlate, tViolet, 0.15), tideDk(0.018, 0.62) * u_depth);
1755
+ vec3 clear = tideLay(u_ground, tPale, tideDk(0.09, 0.3) * u_depth * (0.5 + 0.5 * side));
1756
+ vec3 col = mix(clear, zenith, climb);
1757
+ float warm = exp(-a * a / (0.012 * u_glow + 1e-4)) * (0.3 + 0.7 * side);
1758
+ float hot = exp(-a * a / (0.0022 * u_glow + 1e-4)) * (0.4 + 0.6 * side);
1759
+ col = tideLay(col, mix(tCoral, tViolet, 0.15), warm * tideDk(0.22, 0.45) * min(u_glow, 1.0));
1760
+ col = tideLay(col, mix(tCoral, tAmber, 0.5), hot * tideDk(1.4, 0.75) * min(u_glow, 1.4));
1761
+ return col;
1762
+ }
1763
+
1764
+ vec3 scene(vec2 uv, float t) {
1765
+ float aspect = u_size.x / u_size.y;
1766
+ float x = (uv.x - 0.5) * aspect;
1767
+ tDay = smoothstep(0.1, 0.45, tideLum(u_ground));
1768
+ /* A theme's slots carry no fixed hue, so the tones are cast by
1769
+ temperature: the coolest of the set is the sky, the warmest the fire,
1770
+ the next warmest its second tone. */
1771
+ vec3 tones[6];
1772
+ int coolest = 0;
1773
+ int warmest = 0;
1774
+ for (int i = 0; i < 6; i++) {
1775
+ tones[i] = tideHue(u_col[i]);
1776
+ float heat = tones[i].r - tones[i].b;
1777
+ if (heat < tones[coolest].r - tones[coolest].b) coolest = i;
1778
+ if (heat > tones[warmest].r - tones[warmest].b) warmest = i;
1779
+ }
1780
+ int second = warmest == 0 ? 1 : 0;
1781
+ for (int i = 0; i < 6; i++) {
1782
+ if (i != warmest && tones[i].r - tones[i].b > tones[second].r - tones[second].b) second = i;
1783
+ }
1784
+ tBlue = tones[coolest];
1785
+ tSlate = mix(tBlue, vec3(tideLum(tBlue)), 0.35);
1786
+ tPale = mix(tBlue, vec3(1.0), 0.2);
1787
+ tCoral = tones[warmest];
1788
+ tAmber = mix(tones[second], tCoral, 0.3);
1789
+ tGold = mix(tAmber, vec3(1.0, 0.9, 0.6), 0.35);
1790
+ tViolet = mix(tBlue, tCoral, 0.4);
1791
+ float w = t * u_drift;
1792
+ float sx = u_sunX * 0.5 * aspect;
1793
+ float near = exp(-(x - sx) * (x - sx) / 0.15);
1794
+ float side = exp(-(x - sx) * (x - sx) / (0.5 * aspect * aspect));
1795
+
1796
+ /* Every edge is a stroke of the brush, so the bands waver a little
1797
+ along their length. */
1798
+ float jitter = (fbm(vec2(x * 1.3 + w * 0.01, uv.y * 3.0)) - 0.5) * 0.035 * u_brush;
1799
+ float up = uv.y - u_horizon;
1800
+ float a = max(up + jitter * smoothstep(0.0, 0.03, up), 0.0);
1801
+
1802
+ vec3 col = tideSky(x, a, sx, aspect);
1803
+
1804
+ /* A smear of cloud above the fire, combed flat by the drag, dark in its
1805
+ body and burning along its underside where the fire reaches it. */
1806
+ float n = fbm(vec2(x * 0.42 - w * 0.004, uv.y * 7.5 + 3.0));
1807
+ float n2 = fbm(vec2(x * 1.6 - w * 0.006, uv.y * 26.0 + 11.0));
1808
+ float lane = exp(-pow(a - u_cloudY, 2.0) / 0.012);
1809
+ float leftward = mix(1.0, smoothstep(sx + 0.6 * aspect, sx - 0.2 * aspect, x), 0.6);
1810
+ float cloud = smoothstep(0.4, 0.66, n * 0.75 + n2 * 0.35) * lane * leftward * u_cloud * smoothstep(0.0, 0.02, up);
1811
+ vec3 cloudCol = mix(u_ground * 0.55 + tSlate * 0.006, tideMix(u_ground, mix(tSlate, tViolet, 0.2) * 0.3, 0.82), tDay);
1812
+ col = mix(col, cloudCol, min(1.0, cloud * 1.3));
1813
+ float under = cloud * exp(-a * a / (0.03 * u_glow + 1e-4)) * (1.0 - smoothstep(0.35, 0.8, n2));
1814
+ col = tideLay(col, mix(tCoral, tAmber, 0.3), under * tideDk(0.5, 0.55) * (0.4 + 0.6 * side));
1815
+
1816
+ /* The hot line right on the water, a pixel or two thick. */
1817
+ float lw = 1.4 * u_ratio / u_size.y;
1818
+ float line = exp(-up * up / (lw * lw)) + 0.35 * exp(-up * up / (36.0 * lw * lw));
1819
+ col = tideLay(col, mix(tGold, vec3(1.0), 0.3), line * u_line * (0.35 + 0.65 * side) * tideDk(2.4, 0.8));
1820
+
1821
+ /* The water: the sky mirrored and broken into streaks that close up as
1822
+ they run off to the horizon, dark under the near shore. */
1823
+ float d = max(-up, 0.0);
1824
+ float depth = 0.3 / (d + 0.025);
1825
+ float ripple = fbm(vec2(x * depth * 0.12 + w * 0.01, depth * 2.4 - w * 0.12));
1826
+ float fine = vnoise(vec2(x * depth * 0.5 - w * 0.03, depth * 8.0 + w * 0.3));
1827
+ float ra = d * 1.25 + (ripple - 0.5) * 0.06 * u_ripple;
1828
+ vec3 refl = tideSky(x + (fine - 0.5) * 0.04 * u_ripple, max(ra, 0.0), sx, aspect);
1829
+ vec3 waterBase = mix(u_ground + tSlate * 0.02 * u_depth, tideMix(u_ground, tSlate * 0.55, 0.55 * u_depth), tDay);
1830
+ float mirror = exp(-d / 0.22) * mix(1.0, 0.15 + 1.0 * smoothstep(0.4, 0.75, ripple), min(1.0, u_ripple));
1831
+ vec3 water = mix(waterBase, refl * tideDk(0.7, 0.88), min(1.0, mirror * 0.85));
1832
+ vec3 deep = mix(u_ground * 0.9, tideMix(u_ground, tSlate * 0.22, 0.85 * u_depth), tDay);
1833
+ water = mix(water, deep, smoothstep(0.06, 0.45, d) * 0.7);
1834
+ float glint = pow(fine, 5.0) * near * exp(-d / 0.18) * u_ripple;
1835
+ water = tideLay(water, mix(tCoral, tGold, 0.45), glint * tideDk(1.1, 0.6) * min(u_glow, 1.0));
1836
+
1837
+ /* A low spit of land out on the right, laid on the horizon, with its
1838
+ dark reflection under it. */
1839
+ float region = smoothstep(0.05 * aspect, 0.35 * aspect, x) * u_land;
1840
+ float landH = region * (0.014 + 0.012 * fbm(vec2(x * 2.5, 4.0)));
1841
+ float px = u_ratio / u_size.y;
1842
+ vec3 landCol = mix(u_ground * 0.6 + tSlate * 0.008, tideMix(u_ground, tSlate * 0.2, 0.8), tDay);
1843
+ float onLand = smoothstep(landH + px, landH - px, up) * smoothstep(-2.0 * px, 0.0, up) * step(0.001, region);
1844
+ col = mix(col, landCol, onLand);
1845
+ water = mix(water, landCol, smoothstep(landH * 1.3 + px, landH * 1.3 - px, d) * step(0.001, region) * 0.55);
1846
+
1847
+ col = mix(water, col, smoothstep(-px, px, up));
1848
+
1849
+ /* The weave of the canvas, and the fine combing of the brush. */
1850
+ float comb = vnoise(vec2(x * 3.0 + w * 0.004, uv.y * u_size.y / u_ratio * 0.45));
1851
+ col *= 1.0 + (comb - 0.5) * 0.14 * u_brush;
1852
+ return max(col, vec3(0.0));
1853
+ }
1854
+ `
1855
+ )
1856
+ };
1857
+ const SCENES = [horizon, rift, glyphs, prism, meteors, waves, aurora, highway, ocean, sky, galaxy, tide];
1685
1858
  export {
1686
1859
  SCENES,
1687
1860
  aurora,
@@ -1694,5 +1867,6 @@ export {
1694
1867
  prism,
1695
1868
  rift,
1696
1869
  sky,
1870
+ tide,
1697
1871
  waves
1698
1872
  };
@@ -126,7 +126,7 @@
126
126
 
127
127
  .ds-source-trail__list {
128
128
  margin: 0;
129
- /* 12px above and below, every chat card's edge inset. */
129
+ /* The recipe's edge above and below, every chat card's edge inset. */
130
130
  padding: var(--ds-chat-card-edge) var(--ds-chat-card-inset);
131
131
  border-top: var(--border-025) solid var(--color-divider);
132
132
  list-style: none;
@@ -90,6 +90,18 @@
90
90
  color: var(--color-text-tertiary);
91
91
  }
92
92
 
93
+ /* A caption placed under the label: the label's area holds both lines,
94
+ so every placement's grid keeps its areas. */
95
+ .ds-stat__label--captioned {
96
+ display: flex;
97
+ flex-direction: column;
98
+ align-items: flex-start;
99
+ }
100
+
101
+ .ds-stat__label--captioned .ds-stat__caption {
102
+ margin-inline-start: 0;
103
+ }
104
+
93
105
  /* ============================================
94
106
  DELTA — trend-coloured annotation
95
107
  ============================================ */
@@ -23,6 +23,11 @@ type StatOwnProps = {
23
23
  icon?: string | React.ReactNode;
24
24
  /** A short note at the far end of the top row, in the caption face: the period the figure covers ("Last 30 days"), its source. */
25
25
  caption?: React.ReactNode;
26
+ /**
27
+ * Where the caption sits: `head`, at the far end of the top row beside the
28
+ * icon, or `label`, a second line under the label. Defaults to `head`.
29
+ */
30
+ captionPlacement?: 'head' | 'label';
26
31
  /** Shown after the value, label and delta, such as a Sparkline of the metric's recent history or an AvatarGroup of who it counts. */
27
32
  children?: React.ReactNode;
28
33
  /** The BCP 47 locale a number `value` is written in, such as `ar-EG`. Defaults to `en-US`. This component can render from a Server Component, so it takes the prop alone and reads no LocaleProvider. */
@@ -19,6 +19,7 @@ const Stat = React.forwardRef(
19
19
  size = "default",
20
20
  icon,
21
21
  caption,
22
+ captionPlacement = "head",
22
23
  children,
23
24
  locale = DEFAULT_LOCALE,
24
25
  className = "",
@@ -27,7 +28,9 @@ const Stat = React.forwardRef(
27
28
  const baseClass = "ds-stat";
28
29
  const hasIcon = icon != null && icon !== false && icon !== "";
29
30
  const hasCaption = caption != null && caption !== false && caption !== "";
30
- const hasHead = hasIcon || hasCaption;
31
+ const captionInHead = hasCaption && captionPlacement === "head";
32
+ const captionInLabel = hasCaption && captionPlacement === "label";
33
+ const hasHead = hasIcon || captionInHead;
31
34
  const classes = [
32
35
  baseClass,
33
36
  `${baseClass}--${size}`,
@@ -38,7 +41,10 @@ const Stat = React.forwardRef(
38
41
  ].filter(Boolean).join(" ");
39
42
  const parts = /* @__PURE__ */ jsxs(Fragment, { children: [
40
43
  /* @__PURE__ */ jsx("span", { className: `${baseClass}__value`, children: typeof value === "number" ? formatNumber(value, locale) : value }),
41
- /* @__PURE__ */ jsx("span", { className: `${baseClass}__label`, children: label }),
44
+ captionInLabel ? /* @__PURE__ */ jsxs("span", { className: `${baseClass}__label ${baseClass}__label--captioned`, children: [
45
+ /* @__PURE__ */ jsx("span", { className: `${baseClass}__label-text`, children: label }),
46
+ /* @__PURE__ */ jsx("span", { className: `${baseClass}__caption`, children: caption })
47
+ ] }) : /* @__PURE__ */ jsx("span", { className: `${baseClass}__label`, children: label }),
42
48
  delta && /* @__PURE__ */ jsxs("span", { className: `${baseClass}__delta ${baseClass}__delta--${trend}`, children: [
43
49
  /* @__PURE__ */ jsx("span", { className: "material-symbols-rounded", "aria-hidden": "true", children: TREND_ICONS[trend] }),
44
50
  delta
@@ -47,7 +53,7 @@ const Stat = React.forwardRef(
47
53
  return /* @__PURE__ */ jsxs("div", { ...rest, ref, className: classes, children: [
48
54
  hasHead && /* @__PURE__ */ jsxs("span", { className: `${baseClass}__head`, children: [
49
55
  hasIcon && (typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, size: "500", tile: true, className: `${baseClass}__icon` }) : /* @__PURE__ */ jsx("span", { className: `${baseClass}__icon`, "aria-hidden": "true", children: icon })),
50
- hasCaption && /* @__PURE__ */ jsx("span", { className: `${baseClass}__caption`, children: caption })
56
+ captionInHead && /* @__PURE__ */ jsx("span", { className: `${baseClass}__caption`, children: caption })
51
57
  ] }),
52
58
  deltaPlacement === "auto" ? /* @__PURE__ */ jsx("span", { className: `${baseClass}__body`, children: parts }) : parts,
53
59
  children != null && children !== false && /* @__PURE__ */ jsx("span", { className: `${baseClass}__extra`, children })
@@ -111,7 +111,7 @@ function ToolbarPanel({
111
111
  {
112
112
  size,
113
113
  surface: "menu",
114
- ariaLabel,
114
+ "aria-label": ariaLabel,
115
115
  position,
116
116
  onOpenChange,
117
117
  content,
@@ -1437,7 +1437,7 @@ const TableToolbar = React.forwardRef(
1437
1437
  {
1438
1438
  surface: "menu",
1439
1439
  size,
1440
- ariaLabel: labels.filters(activeFilters),
1440
+ "aria-label": labels.filters(activeFilters),
1441
1441
  onOpenChange: dropIncomplete,
1442
1442
  content: panelContent,
1443
1443
  children: /* @__PURE__ */ jsx(
@@ -15,7 +15,7 @@ type ThemeToggleOwnProps = {
15
15
  onValueChange?: (value: ColorModeSetting) => void;
16
16
  /** Control size, on SegmentedControl's scale: `default` (the default), the height of the CommandPaletteTrigger and AiButton beside it in a top bar, or `compact`. */
17
17
  size?: 'default' | 'compact';
18
- /** Show each segment's label beside its icon. Set `false` for an icon-only strip: each label becomes the segment's tooltip on hover and keyboard focus, and stays its accessible name. */
18
+ /** Show each segment's label beside its icon. Set `false` for an icon-only strip: each label becomes the segment's tooltip on hover and keyboard focus, and stays its accessible name. The labelled strip is wider than an expanded AppSidebar, so its `footerSlot` takes the icon-only strip. */
19
19
  showLabels?: boolean;
20
20
  /**
21
21
  * Draw one circle that shows the current setting and steps to the next on
@@ -36,7 +36,11 @@ type ThreadTabsOwnProps = {
36
36
  onAdd?: () => void;
37
37
  /** Accessible name for the new-tab button. */
38
38
  addLabel?: string;
39
- /** Accessible name for the tab strip. */
39
+ /**
40
+ * Legacy accessible-name prop for the tab strip. Defaults to "Open threads"; a native `aria-label` wins when both are passed, and names the strip rather than the wrapper.
41
+ *
42
+ * @deprecated Pass the native `aria-label` attribute instead.
43
+ */
40
44
  ariaLabel?: string;
41
45
  /** Additional CSS classes */
42
46
  className?: string;
@@ -30,6 +30,7 @@ const ThreadTabs = React.forwardRef(
30
30
  onAdd,
31
31
  addLabel = "New thread",
32
32
  ariaLabel = "Open threads",
33
+ "aria-label": nativeAriaLabel,
33
34
  className = "",
34
35
  ...rest
35
36
  }, ref) => {
@@ -106,7 +107,7 @@ const ThreadTabs = React.forwardRef(
106
107
  };
107
108
  const classes = [baseClass, className].filter(Boolean).join(" ");
108
109
  return /* @__PURE__ */ jsxs("div", { ...rest, ref, className: classes, children: [
109
- /* @__PURE__ */ jsx("ul", { className: `${baseClass}__list`, "aria-label": ariaLabel, ref: listRef, children: entries.map(({ tab, leaving: isLeaving }) => {
110
+ /* @__PURE__ */ jsx("ul", { className: `${baseClass}__list`, "aria-label": nativeAriaLabel ?? ariaLabel, ref: listRef, children: entries.map(({ tab, leaving: isLeaving }) => {
110
111
  const active = !isLeaving && tab.id === activeId;
111
112
  const status = tab.status ?? (tab.unread ? "unread" : "idle");
112
113
  const entering = !isLeaving && !enteredRef.current.has(tab.id);
@@ -4,7 +4,11 @@ export interface ToggleGroupItem {
4
4
  value: string;
5
5
  /** Display label or icon name (Material Symbols) */
6
6
  label: string;
7
- /** Use Material Symbol icon instead of text */
7
+ /**
8
+ * Draw `label` as a Material Symbol icon instead of text. An item is an
9
+ * icon or a label, never both: for icon-plus-label options, use
10
+ * SegmentedControl, whose segments take an `icon` beside their `label`.
11
+ */
8
12
  icon?: boolean;
9
13
  }
10
14
  /** Props owned by ToggleGroup itself — everything else falls through to the wrapper. */
@@ -278,8 +278,8 @@
278
278
  .ds-tool-call__content > .ds-code-block .ds-code-block__header {
279
279
  order: 1;
280
280
  justify-content: flex-start;
281
- /* 16px off the code, the chat cards' block seam. */
282
- margin-block-start: var(--gap-400);
281
+ /* A block gap off the code, the chat cards' seam. */
282
+ margin-block-start: var(--ds-chat-card-gap-block);
283
283
  padding: 0;
284
284
  border-bottom: none;
285
285
  }
@@ -5,9 +5,10 @@
5
5
  ============================================ */
6
6
 
7
7
  /* Base — the card chrome itself comes from ds-chart. In a chat it is one
8
- of the chat cards, so it takes their padding, title and rhythm: 12px
9
- above and below inside 20px sides, a title-body title with its subtitle
10
- 8px under it, and 16px between blocks. */
8
+ of the chat cards, so it takes their padding, title and rhythm: the
9
+ recipe's edge above and below inside its inset at the sides, a
10
+ title-body title with its subtitle under it, and a block gap between
11
+ blocks. */
11
12
  .ds-usage-card.ds-chart:not(.ds-chart--bare) {
12
13
  padding: var(--ds-chat-card-edge) var(--ds-chat-card-inset);
13
14
  border: var(--ds-chat-card-border);
@@ -77,6 +77,19 @@
77
77
  "client": true,
78
78
  "pattern": "accordion"
79
79
  },
80
+ {
81
+ "name": "ActionBar",
82
+ "label": "Action bar",
83
+ "slug": "action-bar",
84
+ "description": "A bar docked to the bottom of a long list or form, with a summary line and the primary actions over a progressive blur.",
85
+ "category": "actions",
86
+ "client": false,
87
+ "keys": { "by": "platform", "note": "The bar adds no keys of its own: its actions are buttons, and the browser owns Tab, Enter and Space." },
88
+ "alternatives": [
89
+ { "name": "Toolbar", "when": "the controls act on a canvas or a view and sit together in one pill, rather than closing out a list" },
90
+ { "name": "TableToolbar", "when": "the bar sits over a table and holds its search, filters and view settings" }
91
+ ]
92
+ },
80
93
  {
81
94
  "name": "ActionCard",
82
95
  "label": "Action card",
@@ -826,7 +839,7 @@
826
839
  "name": "FileInput",
827
840
  "label": "File input",
828
841
  "slug": "file-input",
829
- "description": "A click-or-drop upload zone paired with a controlled file list showing size, progress, and per-file errors.",
842
+ "description": "A click-or-drop upload zone paired with a file list showing size, progress, and per-file errors.",
830
843
  "category": "forms",
831
844
  "client": true,
832
845
  "pattern": "button"
@@ -1745,7 +1758,7 @@
1745
1758
  "client": false,
1746
1759
  "keys": { "by": "none" },
1747
1760
  "alternatives": [
1748
- { "name": "DataTable", "when": "the rows need sorting, filtering, editing or loading from a server" }
1761
+ { "name": "DataTable", "when": "the rows need sorting, filtering, paging, editing or loading from a server" }
1749
1762
  ]
1750
1763
  },
1751
1764
  {
@@ -1755,7 +1768,10 @@
1755
1768
  "description": "The control bar over a table: search, filter chips, sort, group, columns, density, saved views and a bulk bar, wired to a DataTable in its toolbar slot.",
1756
1769
  "category": "data-display",
1757
1770
  "client": true,
1758
- "keys": { "by": "component", "note": "Alt and the up or down arrow reorder a column or a sort row, and Escape closes a panel." }
1771
+ "keys": { "by": "component", "note": "Alt and the up or down arrow reorder a column or a sort row, and Escape closes a panel." },
1772
+ "alternatives": [
1773
+ { "name": "ActionBar", "when": "the actions finish the work on a long list or form, docked below it rather than over a table" }
1774
+ ]
1759
1775
  },
1760
1776
  {
1761
1777
  "name": "Tabs",
@@ -1901,7 +1917,8 @@
1901
1917
  "client": true,
1902
1918
  "pattern": "toolbar",
1903
1919
  "alternatives": [
1904
- { "name": "Menubar", "when": "the controls are named menus of commands, like an app's File and Edit" }
1920
+ { "name": "Menubar", "when": "the controls are named menus of commands, like an app's File and Edit" },
1921
+ { "name": "ActionBar", "when": "a summary and the primary actions close out a long list or form, docked to its bottom" }
1905
1922
  ]
1906
1923
  },
1907
1924
  {
@@ -77,6 +77,19 @@ declare const _default: {
77
77
  "client": true,
78
78
  "pattern": "accordion"
79
79
  },
80
+ {
81
+ "name": "ActionBar",
82
+ "label": "Action bar",
83
+ "slug": "action-bar",
84
+ "description": "A bar docked to the bottom of a long list or form, with a summary line and the primary actions over a progressive blur.",
85
+ "category": "actions",
86
+ "client": false,
87
+ "keys": { "by": "platform", "note": "The bar adds no keys of its own: its actions are buttons, and the browser owns Tab, Enter and Space." },
88
+ "alternatives": [
89
+ { "name": "Toolbar", "when": "the controls act on a canvas or a view and sit together in one pill, rather than closing out a list" },
90
+ { "name": "TableToolbar", "when": "the bar sits over a table and holds its search, filters and view settings" }
91
+ ]
92
+ },
80
93
  {
81
94
  "name": "ActionCard",
82
95
  "label": "Action card",
@@ -826,7 +839,7 @@ declare const _default: {
826
839
  "name": "FileInput",
827
840
  "label": "File input",
828
841
  "slug": "file-input",
829
- "description": "A click-or-drop upload zone paired with a controlled file list showing size, progress, and per-file errors.",
842
+ "description": "A click-or-drop upload zone paired with a file list showing size, progress, and per-file errors.",
830
843
  "category": "forms",
831
844
  "client": true,
832
845
  "pattern": "button"
@@ -1745,7 +1758,7 @@ declare const _default: {
1745
1758
  "client": false,
1746
1759
  "keys": { "by": "none" },
1747
1760
  "alternatives": [
1748
- { "name": "DataTable", "when": "the rows need sorting, filtering, editing or loading from a server" }
1761
+ { "name": "DataTable", "when": "the rows need sorting, filtering, paging, editing or loading from a server" }
1749
1762
  ]
1750
1763
  },
1751
1764
  {
@@ -1755,7 +1768,10 @@ declare const _default: {
1755
1768
  "description": "The control bar over a table: search, filter chips, sort, group, columns, density, saved views and a bulk bar, wired to a DataTable in its toolbar slot.",
1756
1769
  "category": "data-display",
1757
1770
  "client": true,
1758
- "keys": { "by": "component", "note": "Alt and the up or down arrow reorder a column or a sort row, and Escape closes a panel." }
1771
+ "keys": { "by": "component", "note": "Alt and the up or down arrow reorder a column or a sort row, and Escape closes a panel." },
1772
+ "alternatives": [
1773
+ { "name": "ActionBar", "when": "the actions finish the work on a long list or form, docked below it rather than over a table" }
1774
+ ]
1759
1775
  },
1760
1776
  {
1761
1777
  "name": "Tabs",
@@ -1901,7 +1917,8 @@ declare const _default: {
1901
1917
  "client": true,
1902
1918
  "pattern": "toolbar",
1903
1919
  "alternatives": [
1904
- { "name": "Menubar", "when": "the controls are named menus of commands, like an app's File and Edit" }
1920
+ { "name": "Menubar", "when": "the controls are named menus of commands, like an app's File and Edit" },
1921
+ { "name": "ActionBar", "when": "a summary and the primary actions close out a long list or form, docked to its bottom" }
1905
1922
  ]
1906
1923
  },
1907
1924
  {