@mechane-ai/elements 0.48.0 → 0.49.1

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 (140) hide show
  1. package/README.md +40 -2
  2. package/dist/ai.js +5 -5
  3. package/dist/{article-BXZr10QQ.js → article-CRlhq9oA.js} +532 -464
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +243 -1
  6. package/dist/{categorical-values-BpVq8cFj.js → categorical-values-BYP_R5gS.js} +13 -13
  7. package/dist/{cells-xVmnQ9oQ.js → cells-CNZE4us2.js} +2 -2
  8. package/dist/charts/cartesian.js +1 -1
  9. package/dist/charts/cells.js +1 -1
  10. package/dist/charts/comparison.js +1 -1
  11. package/dist/charts/distribution.js +1 -1
  12. package/dist/charts/figure.js +12 -12
  13. package/dist/charts/graph.js +1 -1
  14. package/dist/charts/hierarchy.js +1 -1
  15. package/dist/charts/image.js +1 -1
  16. package/dist/charts/matrix.js +1 -1
  17. package/dist/charts/plot.js +7 -7
  18. package/dist/charts/relationship.js +1 -1
  19. package/dist/charts/text.js +1 -1
  20. package/dist/charts/timeline.js +1 -1
  21. package/dist/charts/trend.js +1 -1
  22. package/dist/charts.js +7 -7
  23. package/dist/{code-block-DioAM2bZ.js → code-block-BZsY2sh3.js} +1 -1
  24. package/dist/collections.js +1 -1
  25. package/dist/content/code.js +1 -1
  26. package/dist/content/diff.js +3 -3
  27. package/dist/content/link.js +1 -1
  28. package/dist/content/markdown.js +2 -2
  29. package/dist/content/tree.js +1 -1
  30. package/dist/{content-link-NWuHp5rC.js → content-link-PnpcnTCx.js} +1 -1
  31. package/dist/content.js +1 -1
  32. package/dist/{dates-Cww8UR_n.js → dates-ckJdYF7t.js} +1 -1
  33. package/dist/{dumbbell-plot-DQdTxDeO.js → dumbbell-plot-B-Tn7ewW.js} +49 -48
  34. package/dist/{embedding-map-CF-J-8JW.js → embedding-map-Bljn-A5q.js} +533 -533
  35. package/dist/feedback.js +1 -1
  36. package/dist/figure-frame-CEijciL7.js +289 -0
  37. package/dist/forms/dates.js +1 -1
  38. package/dist/forms.js +3 -3
  39. package/dist/{image-grid-Dl2sjIMB.js → image-grid-mrG5u9oE.js} +49 -49
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +5 -5
  42. package/dist/kits/interpretability.js +320 -302
  43. package/dist/kits/operations.js +6 -6
  44. package/dist/kits/research.js +558 -0
  45. package/dist/kits/training.js +6 -6
  46. package/dist/layout.js +205 -110
  47. package/dist/lesson/spec.js +11 -11
  48. package/dist/lesson.js +4 -4
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation.js +2 -2
  51. package/dist/packages/charts/src/cartesian/index.d.ts +1 -1
  52. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +18 -0
  53. package/dist/packages/charts/src/chart-theme.d.ts +1 -1
  54. package/dist/packages/charts/src/figure/caption-scope.d.ts +12 -0
  55. package/dist/packages/charts/src/figure/figure-frame.d.ts +2 -1
  56. package/dist/packages/charts/src/index.d.ts +2 -0
  57. package/dist/packages/charts/src/plot/plot-surface.d.ts +3 -1
  58. package/dist/packages/collections/src/index.d.ts +1 -1
  59. package/dist/packages/collections/src/metrics.d.ts +9 -1
  60. package/dist/packages/content/src/index.d.ts +2 -0
  61. package/dist/packages/content/src/text-match.d.ts +22 -0
  62. package/dist/packages/core/src/index.d.ts +1 -0
  63. package/dist/packages/core/src/surfaces.d.ts +12 -2
  64. package/dist/packages/forms/src/index.d.ts +2 -0
  65. package/dist/packages/forms/src/token-input.d.ts +24 -0
  66. package/dist/packages/kits/src/interpretability/index.d.ts +1 -1
  67. package/dist/packages/kits/src/interpretability/logit-lens.d.ts +10 -1
  68. package/dist/packages/kits/src/research/finding-card.d.ts +43 -0
  69. package/dist/packages/kits/src/research/index.d.ts +8 -0
  70. package/dist/packages/kits/src/research/milestone-path.d.ts +36 -0
  71. package/dist/packages/kits/src/research/specimen-diff.d.ts +41 -0
  72. package/dist/packages/kits/src/research/work-heartbeat.d.ts +34 -0
  73. package/dist/packages/layout/src/figure-grid.d.ts +8 -0
  74. package/dist/packages/layout/src/index.d.ts +4 -1
  75. package/dist/packages/layout/src/sidebar.d.ts +7 -0
  76. package/dist/packages/layout/src/workbench.d.ts +4 -1
  77. package/dist/packages/teaching/src/article/article-context.d.ts +2 -0
  78. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +13 -0
  79. package/dist/packages/teaching/src/article/article.d.ts +6 -1
  80. package/dist/packages/teaching/src/article/figure.d.ts +20 -3
  81. package/dist/packages/teaching/src/article/index.d.ts +1 -1
  82. package/dist/packages/teaching/src/article/view-essay.d.ts +2 -1
  83. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +4 -0
  84. package/dist/packages/teaching/src/lesson/index.d.ts +2 -2
  85. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +19 -3
  86. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +2 -0
  87. package/dist/packages/teaching/src/lesson/playback.d.ts +9 -6
  88. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +7 -2
  89. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +4 -1
  90. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +5 -6
  91. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +1 -1
  92. package/dist/packages/teaching/src/scene/scene-node.d.ts +4 -1
  93. package/dist/packages/teaching/src/scene/scene-validate.d.ts +6 -0
  94. package/dist/packages/teaching/src/scene/scene-wire.d.ts +6 -1
  95. package/dist/packages/teaching/src/scene/scene.d.ts +1 -1
  96. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +5 -1
  97. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +1 -1
  98. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +1 -1
  99. package/dist/packages/teaching/src/time/tween.d.ts +2 -0
  100. package/dist/{param-CqKUTHaO.js → param-BdqTpZER.js} +175 -108
  101. package/dist/{pierre-diff-DlvjyuJn.js → pierre-diff-aGyQK5xK.js} +1 -1
  102. package/dist/{plot-axes-DJkLW4wk.js → plot-axes-D5S9BnBa.js} +1 -1
  103. package/dist/{plot-layout-CZVSJ-le.js → plot-layout-B2xRt-_k.js} +146 -132
  104. package/dist/{plot-marks-uozcbOIX.js → plot-marks-FVsbFkUs.js} +3 -3
  105. package/dist/{plot-surface-CbVBvgqZ.js → plot-surface-0cKFwtws.js} +11 -11
  106. package/dist/{plot-width-DcqtSgzb.js → plot-width-D3hTycYX.js} +1 -1
  107. package/dist/{reference-lines-BDcttOp0.js → reference-lines-nSxcZVF5.js} +2 -2
  108. package/dist/{scene-0z2gbaDE.js → scene-BwJKueD6.js} +1228 -1126
  109. package/dist/scene.js +1 -1
  110. package/dist/{slope-chart-BKVEAVCs.js → slope-chart-CGTYbFxi.js} +182 -182
  111. package/dist/{src-CpdJlDhO.js → src-9EJskqB_.js} +73 -31
  112. package/dist/{src-Dcfq8vE4.js → src-B2rgpWap.js} +48 -14
  113. package/dist/{src-BPTDJqt0.js → src-Ci8DeY8J.js} +1 -1
  114. package/dist/{src-CGc_hjxJ.js → src-DFW49IAs.js} +143 -111
  115. package/dist/{src-BD6xlvDt.js → src-Dxs3Buo_.js} +203 -137
  116. package/dist/{src-CExIrXPC.js → src-npqwq3Sa.js} +1 -1
  117. package/dist/styles2.css +136 -17
  118. package/dist/{time-series-BgzGNOk0.js → time-series-Dh8y5ba0.js} +1018 -944
  119. package/dist/{token-heatmap-BrW1OsKD.js → token-heatmap-BTrZ3-N4.js} +86 -86
  120. package/dist/{token-predictions-yerq_Oet.js → token-predictions-CUe4junQ.js} +129 -129
  121. package/dist/{transport-BJweqDPj.js → transport-4V9rfYHN.js} +291 -246
  122. package/dist/{tree-diagram-D09BRqE-.js → tree-diagram-Dpqmo-fh.js} +118 -118
  123. package/dist/{treemap-CW4WsJNL.js → treemap-BUSaVD3m.js} +28 -28
  124. package/dist/use-tween-BsaEO862.js +10 -0
  125. package/dist/{violin-plot-DrtPZ1-T.js → violin-plot-BxaLwdRi.js} +126 -126
  126. package/dist/{waterfall-DYLSnGjm.js → waterfall-CcDMdKec.js} +43 -43
  127. package/package.json +5 -1
  128. package/recipes/counting-cards.tsx +3 -3
  129. package/skills/review-explainer/SKILL.md +2 -1
  130. package/skills/upgrade-elements/references/releases.md +61 -0
  131. package/skills/use-elements/SKILL.md +3 -1
  132. package/skills/use-elements/references/kits.md +7 -6
  133. package/skills/use-elements/references/styling.md +23 -0
  134. package/skills/use-elements/references/teaching.md +13 -0
  135. package/skills/write-explainer/references/article.md +50 -2
  136. package/skills/write-explainer/references/lesson.md +18 -9
  137. package/skills/write-explainer/references/scene-parts.md +17 -12
  138. package/skills/write-explainer/references/scene.md +25 -3
  139. package/dist/figure-frame-BJ3REgTA.js +0 -270
  140. package/dist/use-tween-5HZ55_9d.js +0 -72
@@ -71,8 +71,8 @@ var v = /* @__PURE__ */ "Lesson.Param.Value.ParamSlider.ParamChoice.ParamToggle.
71
71
  ParamSlider: {
72
72
  entry: y,
73
73
  question: "How does the figure change as I sweep this value?",
74
- guidance: "Use it under a figure for a number param the reader sweeps through its range. Inside a sentence, use Param; for a time-like param the lesson plays, use Transport.",
75
- example: "<Figure id=\"bars\" caption=\"Probabilities after the softmax.\" description=\"Four bars, one per token, that sum to one.\" reads={['temperature']}>\n <TokenBars />\n <ParamSlider name=\"temperature\" />\n</Figure>"
74
+ guidance: "Use it in a figure's header or footer for a number param the reader sweeps through its range. Inside a sentence, use Param; for a time-like param the lesson plays, use Transport.",
75
+ example: "<Figure id=\"bars\" caption=\"Probabilities after the softmax.\" description=\"Four bars, one per token, that sum to one.\" reads={['temperature']} footer={<ParamSlider name=\"temperature\" />}>\n <TokenBars />\n</Figure>"
76
76
  },
77
77
  ParamChoice: {
78
78
  entry: y,
@@ -89,14 +89,14 @@ var v = /* @__PURE__ */ "Lesson.Param.Value.ParamSlider.ParamChoice.ParamToggle.
89
89
  Playback: {
90
90
  entry: y,
91
91
  question: "How does this unfold over time?",
92
- guidance: "Use it to drive a number param step by step, such as training steps or tokens generated. It renders nothing: pair it with a Transport so the reader can pause and scrub.",
92
+ guidance: "Use it to drive a number param step by step, such as training steps or tokens generated, or as one timed run with pace={{ run: 'long' }}, eased for a blend. It renders nothing: pair it with a Transport so the reader can pause and scrub.",
93
93
  example: "<Playback name=\"trainStep\" pace=\"regular\" />\n<Transport for=\"trainStep\" />"
94
94
  },
95
95
  Transport: {
96
96
  entry: y,
97
97
  question: "Can I pause it, step through it, or go back?",
98
- guidance: "Use it beside every Playback. It plays, pauses, steps and scrubs the same param. Use ParamSlider when the value has no natural order in time.",
99
- example: "<Transport for=\"trainStep\" />"
98
+ guidance: "Use it beside every Playback, in the header of the figure it drives. It plays, pauses, steps and scrubs the same param. Use ParamSlider when the value has no natural order in time.",
99
+ example: "<Figure id=\"run\" caption=\"The loss as training runs.\" description=\"A falling loss curve.\" reads={['trainStep']} header={<Transport for=\"trainStep\" />}>\n <LossCurve />\n</Figure>"
100
100
  },
101
101
  Scene: {
102
102
  entry: b,
@@ -113,7 +113,7 @@ var v = /* @__PURE__ */ "Lesson.Param.Value.ParamSlider.ParamChoice.ParamToggle.
113
113
  SceneWire: {
114
114
  entry: b,
115
115
  question: "What feeds into what, and how strongly?",
116
- guidance: "Use it between two nodes; weight sets its thickness and it stays attached while they move. Its text sits beside the stroke, above a level wire and right of an upright one; set textSide when that side collides. Use SceneFlow for a whole derivation graph.",
116
+ guidance: "Use it between two nodes; weight sets its thickness and it stays attached while they move. Its text sits beside the stroke, above a level wire and right of an upright one; set textSide when that side collides. A wire runs straight through what lies between its ends; give it a bend in pixels to bow it around a node. Use SceneFlow for a whole derivation graph.",
117
117
  example: "<SceneWire from=\"queen\" to=\"sum\" label=\"Weight 0.8\" weight={0.8} text=\"0.8\" textSide=\"bottom\" hasArrow />"
118
118
  },
119
119
  SceneGroup: {
@@ -161,7 +161,7 @@ var v = /* @__PURE__ */ "Lesson.Param.Value.ParamSlider.ParamChoice.ParamToggle.
161
161
  ScenePoint: {
162
162
  entry: b,
163
163
  question: "Where is this one value on the plane, and what if I move it?",
164
- guidance: "Use it for a single marked point. With sets, the reader drags it or moves it with the arrow keys and it writes lesson params on their step grid; at reads them back, and along keeps it on a curve. Use ScatterPlot for many records.",
164
+ guidance: "Use it for a single marked point. With sets it is a slider: the reader drags it, or reaches it with Tab and moves it with the arrow keys, Home and End, and it writes lesson params on their step grid; at reads them back, and along keeps it on a curve. Use ScatterPlot for many records.",
165
165
  example: "<ScenePoint id=\"probe\" at={[values.temperature, values.entropy]} along={entropyOf} sets={{ x: 'temperature' }} label={`Temperature ${values.temperature.toFixed(2)}`} />"
166
166
  },
167
167
  SceneVector: {
@@ -191,8 +191,8 @@ var v = /* @__PURE__ */ "Lesson.Param.Value.ParamSlider.ParamChoice.ParamToggle.
191
191
  SceneCard: {
192
192
  entry: b,
193
193
  question: "What is on the other side of this, and which comes first?",
194
- guidance: "Use it for an object that turns over, lifts or deals out, like a playing card or a hidden answer. Use SceneNode for a flat label, and SceneStack to lay several out.",
195
- example: "<SceneCard id=\"queen\" at={[1, 1]} rank=\"Q\" suit=\"heart\" isFaceUp={isRevealed} label=\"Queen of Hearts\" />"
194
+ guidance: "Use it for an object that turns over, lifts or deals out, like a playing card or a hidden answer. A face-down card shows and says nothing of its face, so leave out label and keep its id free of the card. To turn it when pressed, give the Scene selected={null} and onSelectedChange. Use SceneNode for a flat label, and SceneStack to lay several out.",
195
+ example: "<Scene title=\"The first card\" x={[0, 2]} y={[0, 1]} selected={null} onSelectedChange={() => set('isRevealed', !isRevealed)}>\n <SceneCard id=\"first\" at={[1, 0.5]} rank=\"Q\" suit=\"heart\" isFaceUp={isRevealed} />\n</Scene>"
196
196
  },
197
197
  SceneStack: {
198
198
  entry: b,
@@ -209,7 +209,7 @@ var v = /* @__PURE__ */ "Lesson.Param.Value.ParamSlider.ParamChoice.ParamToggle.
209
209
  SceneCells: {
210
210
  entry: b,
211
211
  question: "What is inside this vector or matrix, cell by cell?",
212
- guidance: "Use it for a small grid of values that moves and changes inside a scene: a flat list is one row, a list of lists is a matrix. Use Matrix for a large grid with axes and a scale legend.",
212
+ guidance: "Use it for a small grid of values that moves and changes inside a scene: a flat list is one row, a list of lists is a matrix. Each cell takes a tone, such as its suit, and isMuted for one already used. Use Matrix for a large grid with axes and a scale legend.",
213
213
  example: "<SceneCells id=\"weights\" at={[2, 1]} values={[[0.2, -0.4, 0.1], [0.7, 0.3, -0.2]]} rowLabels={['h1', 'h2']} format={{ maximumFractionDigits: 1 }} label=\"Weight matrix\" />"
214
214
  },
215
215
  SceneToken: {
@@ -257,7 +257,7 @@ var v = /* @__PURE__ */ "Lesson.Param.Value.ParamSlider.ParamChoice.ParamToggle.
257
257
  Figure: {
258
258
  entry: x,
259
259
  question: "What am I looking at here?",
260
- guidance: "Wrap every scene or chart in a beat with a Figure: a caption, a description for the static view, and the values it reads. Size text keeps it to the prose column.",
260
+ guidance: "Wrap every scene or chart in a beat with a Figure: a caption, a description for the static view, and the values it reads. Its header and footer frame the figure with its controls, and isFramed frames one with no controls, so an essay frames all its figures or none. A chart or scene inside prints only the caption and keeps its title as its name, so never repeat the beat heading. Size text keeps it to the prose column.",
261
261
  example: "<Figure id=\"bet-split\" caption=\"Your bet, split across the two cards.\" description=\"Two cards with the share of the bet on each.\" reads={['bet']} size=\"text\">\n <BetScene />\n</Figure>"
262
262
  },
263
263
  FigureReference: {
package/dist/lesson.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./clock-DSm5lkNE.js";
2
- import { n, t as r } from "./use-tween-5HZ55_9d.js";
3
- import { c as i, h as a, i as o, l as s, m as c, n as l, t as u } from "./param-CqKUTHaO.js";
4
- import { a as d, c as f, i as p, l as m, n as h, o as g, r as _, s as v, t as y, u as b } from "./transport-BJweqDPj.js";
5
- export { o as BoundValue, m as Lesson, c as LessonLocale, u as Param, p as ParamChoice, d as ParamSlider, g as ParamToggle, h as Playback, y as Transport, l as Value, n as createTween, i as defineLesson, t as isMotionReduced, s as lessonGraph, e as onFrame, b as playbackPaces, v as useLesson, f as useLessonContext, a as useLessonLocale, _ as usePlayback, r as useTween };
2
+ import { _ as n, g as r, h as i, i as a, l as o, n as s, t as c, u as l } from "./param-BdqTpZER.js";
3
+ import { t as u } from "./use-tween-BsaEO862.js";
4
+ import { a as d, c as f, d as p, i as m, l as h, n as g, o as _, r as v, s as y, t as b, u as x } from "./transport-4V9rfYHN.js";
5
+ export { a as BoundValue, h as Lesson, i as LessonLocale, c as Param, m as ParamChoice, d as ParamSlider, _ as ParamToggle, g as Playback, b as Transport, s as Value, n as createTween, o as defineLesson, t as isMotionReduced, l as lessonGraph, e as onFrame, x as playbackPaces, p as playbackRuns, y as useLesson, f as useLessonContext, r as useLessonLocale, v as usePlayback, u as useTween };
package/dist/mdx.js CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as e, b as t, d as n, f as r, g as i, i as ee, l as a, m as o, n as s, p as te, r as c, t as ne, u as re, v as ie, x as ae, y as oe } from "./article-BXZr10QQ.js";
2
- import { n as se, t as ce } from "./param-CqKUTHaO.js";
3
- import { a as l, i as u, n as d, o as f, t as p } from "./transport-BJweqDPj.js";
4
- import { C as m, F as h, G as g, H as _, I as v, J as y, L as b, M as x, N as S, P as C, U as w, W as T, X as E, Y as D, b as O, g as k, i as A, l as j, q as M, r as N, t as P, tt as F, u as I, x as L } from "./scene-0z2gbaDE.js";
5
- import { t as R } from "./code-block-DioAM2bZ.js";
6
- import { t as z } from "./content-link-NWuHp5rC.js";
1
+ import { _ as e, b as t, d as n, f as r, g as i, i as ee, l as a, m as o, n as s, p as te, r as c, t as ne, u as re, v as ie, x as ae, y as oe } from "./article-CRlhq9oA.js";
2
+ import { n as se, t as ce } from "./param-BdqTpZER.js";
3
+ import { a as l, i as u, n as d, o as f, t as p } from "./transport-4V9rfYHN.js";
4
+ import { C as m, F as h, G as g, H as _, I as v, J as y, L as b, M as x, N as S, P as C, U as w, W as T, X as E, Y as D, b as O, g as k, i as A, l as j, q as M, r as N, t as P, tt as F, u as I, x as L } from "./scene-BwJKueD6.js";
5
+ import { t as R } from "./code-block-BZsY2sh3.js";
6
+ import { t as z } from "./content-link-PnpcnTCx.js";
7
7
  import * as B from "@stylexjs/stylex";
8
8
  import { mergeProps as V } from "@ui-sdk/react/primitive";
9
9
  import { Children as H, isValidElement as U, useSyncExternalStore as W } from "react";
@@ -1,4 +1,4 @@
1
- import { j as e } from "./src-CpdJlDhO.js";
1
+ import { j as e } from "./src-9EJskqB_.js";
2
2
  import { n as t, t as n } from "./navigation-CveMIuXI.js";
3
- import { a as r, i, n as a, r as o, t as s } from "./src-BPTDJqt0.js";
3
+ import { a as r, i, n as a, r as o, t as s } from "./src-Ci8DeY8J.js";
4
4
  export { n as Breadcrumb, s as ContentTabs, t as Kbd, i as PageNavigation, r as PageNavigationPlaceholder, e as RouteLink, o as SkipLink, a as Tabs };
@@ -5,7 +5,7 @@ export { BreakdownBar } from './breakdown-bar.tsx';
5
5
  export type { BridgeChartProps, BridgeStep } from './bridge-chart.tsx';
6
6
  export { BridgeChart } from './bridge-chart.tsx';
7
7
  export type { ChartReferenceLine } from './reference-lines.tsx';
8
- export type { ScatterPoint, ScatterRange, ScatterRangeDetails, ScatterPlotProps } from './scatter-plot.tsx';
8
+ export type { ScatterDiagonal, ScatterPoint, ScatterRange, ScatterRangeDetails, ScatterPlotProps, } from './scatter-plot.tsx';
9
9
  export { ScatterPlot, scatterLimits } from './scatter-plot.tsx';
10
10
  export type { SparklineLayout, SparklineProps, SparklinePoint } from './sparkline.tsx';
11
11
  export { Sparkline } from './sparkline.tsx';
@@ -5,6 +5,7 @@ import type { ChartTone } from '../../../foundations/src/chart-tones.ts';
5
5
  import type { FigureProps, FigureSelectionProps } from '../figure/figure-props.ts';
6
6
  import type { PlotAxis, PlotHeight } from '../plot/plot-layout.ts';
7
7
  import type { NumericDomain } from '../plot/scale.ts';
8
+ import type { ChartReferenceLine } from './reference-lines.tsx';
8
9
  /** One supplied coordinate pair with a stable id, so selection survives reordering. */
9
10
  export type ScatterPoint = {
10
11
  readonly id: string;
@@ -21,10 +22,27 @@ export type ScatterRange = {
21
22
  type SliderDetails = Parameters<NonNullable<ComponentProps<typeof Slider.Root<[number, number]>>['onValueChange']>>[1];
22
23
  /** Why the range changed: a drag on the plot, one of the bound sliders, or the clear button. */
23
24
  export type ScatterRangeDetails = ChangeDetails<'drag' | 'clear-press'> | SliderDetails;
25
+ /** A dashed `y = x` identity reference line drawn across the overlapping x and y domains. */
26
+ export type ScatterDiagonal = {
27
+ /** Caption drawn beside the diagonal line (such as `"y = x"`). */
28
+ readonly label?: string | undefined;
29
+ /** Quiet region caption in the upper-left (`y > x`) half of the plot. */
30
+ readonly aboveLabel?: string | undefined;
31
+ /** Quiet region caption in the lower-right (`y < x`) half of the plot. */
32
+ readonly belowLabel?: string | undefined;
33
+ };
24
34
  export type ScatterPlotProps = FigureProps & FigureSelectionProps & {
25
35
  readonly points: ReadonlyArray<ScatterPoint>;
26
36
  readonly x: PlotAxis;
27
37
  readonly y: PlotAxis;
38
+ /** Optional `y = x` reference diagonal (true or labelled regions) for paired/generalization plots. */
39
+ readonly referenceDiagonal?: boolean | ScatterDiagonal | undefined;
40
+ /** Optional dashed horizontal reference lines on the y axis (such as a baseline or ceiling). */
41
+ readonly referenceLines?: ReadonlyArray<ChartReferenceLine> | undefined;
42
+ /** Ordered point ids connected by a dashed Pareto/frontier line. Computed by the application. */
43
+ readonly frontier?: ReadonlyArray<string> | undefined;
44
+ /** Point ids that carry a direct haloed label beside their mark. */
45
+ readonly labeledIds?: ReadonlyArray<string> | undefined;
28
46
  /** The coordinate range the application holds, or null for none. */
29
47
  readonly range?: ScatterRange | null | undefined;
30
48
  /** Asks the application to set or clear the range. With it, the plot offers a drag and two range sliders. */
@@ -94,6 +94,6 @@ export declare const chartStyles: Readonly<{
94
94
  readonly transitionTimingFunction: stylex.StyleXClassNameFor<"transitionTimingFunction", string>;
95
95
  }>;
96
96
  readonly receded: Readonly<{
97
- readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.32>;
97
+ readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.45>;
98
98
  }>;
99
99
  }>;
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ export type CaptionScopeProps = {
3
+ /** The charts and scenes the surrounding caption describes. */
4
+ readonly children: ReactNode;
5
+ };
6
+ /**
7
+ * Marks figures whose caption is printed around them, such as inside an article `Figure`. A chart or scene inside keeps
8
+ * its title as its accessible name, and prints neither the title nor the description.
9
+ */
10
+ export declare function CaptionScope({ children }: CaptionScopeProps): ReactNode;
11
+ /** Whether a figure sits in a `CaptionScope`, so its own title and description stay unprinted. */
12
+ export declare function useIsCaptioned(): boolean;
@@ -27,7 +27,8 @@ export type FigureFrameProps = FigureFrameInput & {
27
27
  };
28
28
  /**
29
29
  * The frame every figure shares: title, description, the plot, then the readout and one footnote. The footnote names
30
- * the source, how much of the data is drawn and what was done to it. A partial figure also says so beside its title.
30
+ * the source, how much of the data is drawn and what was done to it. In a `CaptionScope` the title is only the
31
+ * accessible name, and the description is not printed.
31
32
  */
32
33
  export declare function FigureFrame({ title, description, report, actions, locale, source, coverage, transforms, status, figure, series, titleDetail, footer, seriesLegend, scaleLegend, children, }: FigureFrameProps): ReactNode;
33
34
  /** The sentence a figure shows in place of its plot when there is nothing to draw. */
@@ -11,6 +11,8 @@ export type { ChartGridProps } from './chart-grid.tsx';
11
11
  export { ChartGrid } from './chart-grid.tsx';
12
12
  export type { ChartLinkControl, ChartLinkInspectChange, ChartLinkProps } from './chart-link.tsx';
13
13
  export { ChartLink, useChartLinkControl, useLinkedInspection } from './chart-link.tsx';
14
+ export type { CaptionScopeProps } from './figure/caption-scope.tsx';
15
+ export { CaptionScope, useIsCaptioned } from './figure/caption-scope.tsx';
14
16
  export type { TimeFormat, ValueFormat } from './figure/figure-format.ts';
15
17
  export { MISSING_VALUE_TEXT, formatTime, formatValue, tickFormat } from './figure/figure-format.ts';
16
18
  export type { FigureCoverage, FigureProps, FigureSelectionProps, FigureStatus, SeriesFigureProps, } from './figure/figure-props.ts';
@@ -26,7 +26,9 @@ export type PlotSurfaceProps = {
26
26
  */
27
27
  export declare function PlotSurface({ plotRef, box, label, readoutId, children, overlay, onPointerDown, }: PlotSurfaceProps): ReactNode;
28
28
  /** Keeps marks inside the axes. Wrap the marks, never the axes or the labels beside them. */
29
- export declare function PlotClip({ box, children }: {
29
+ export declare function PlotClip({ box, pad, children, }: {
30
30
  readonly box: PlotBox;
31
+ /** Optional pixel margin around the plot inner area so boundary dot marks are not half-clipped. */
32
+ readonly pad?: number | undefined;
31
33
  readonly children: ReactNode;
32
34
  }): ReactNode;
@@ -13,7 +13,7 @@ export type { InspectorProps } from './inspector.tsx';
13
13
  export { Inspector, Details } from './inspector.tsx';
14
14
  export { ListFooter } from './list-footer.tsx';
15
15
  export { MetricGrid, Metric } from './metrics.tsx';
16
- export type { MetricGridProps, MetricProps } from './metrics.tsx';
16
+ export type { MetricChange, MetricGridProps, MetricProps } from './metrics.tsx';
17
17
  export type { TimestampProps } from './timestamp.tsx';
18
18
  export { Timestamp } from './timestamp.tsx';
19
19
  export { Timeline } from './timeline.tsx';
@@ -1,5 +1,9 @@
1
1
  import * as stylex from '@stylexjs/stylex';
2
2
  import type { ComponentProps, ReactElement, ReactNode } from 'react';
3
+ export type MetricChange = {
4
+ readonly value: string;
5
+ readonly tone?: 'positive' | 'negative' | 'neutral';
6
+ };
3
7
  type MetricLayout = 'inline' | 'columns';
4
8
  declare const variants: {
5
9
  inline: {
@@ -55,6 +59,10 @@ export type MetricProps = Omit<ComponentProps<'div'>, 'children' | 'dangerouslyS
55
59
  readonly label: string;
56
60
  readonly variant?: MetricVariant;
57
61
  readonly trend?: ReactElement;
62
+ /** Optional signed delta badge drawn beside the value (such as `+20.9% vs starter`). */
63
+ readonly change?: MetricChange | undefined;
64
+ /** Optional target or ceiling reference shown quietly below the detail line. */
65
+ readonly target?: string | undefined;
58
66
  } & ({
59
67
  readonly isLoading?: false;
60
68
  readonly value: string;
@@ -67,5 +75,5 @@ export type MetricProps = Omit<ComponentProps<'div'>, 'children' | 'dangerouslyS
67
75
  readonly hasDetail?: boolean;
68
76
  });
69
77
  export declare function MetricGrid({ layout, ...props }: MetricGridProps): ReactNode;
70
- export declare function Metric({ label, value, detail, isLoading, hasDetail, variant, trend, ...props }: MetricProps): ReactNode;
78
+ export declare function Metric({ label, value, detail, change, target, isLoading, hasDetail, variant, trend, ...props }: MetricProps): ReactNode;
71
79
  export {};
@@ -8,3 +8,5 @@ export type { StackFrame, StackTraceProps } from './stack-trace.tsx';
8
8
  export { StackTrace } from './stack-trace.tsx';
9
9
  export type { TraceStatus, TraceRootProps, TraceGroupProps, TraceItemProps } from './trace.tsx';
10
10
  export { Trace } from './trace.tsx';
11
+ export type { MatchRange, MatchSegment, TextMatchMode, TextMatchProps, TextMatchTone } from './text-match.tsx';
12
+ export { fuzzyScore, matchRanges, matchSegments, TextMatch } from './text-match.tsx';
@@ -0,0 +1,22 @@
1
+ import type { MatchRange } from '@ui-sdk/react/text-match';
2
+ import type { ReactNode } from 'react';
3
+ export type TextMatchTone = 'warning' | 'accent' | 'danger';
4
+ export type TextMatchMode = 'contains' | 'startsWith' | 'fuzzy';
5
+ export type TextMatchProps = {
6
+ /** The full string to display. */
7
+ readonly text: string;
8
+ /** Highlight tone for matched ranges. Defaults to `'warning'`. */
9
+ readonly tone?: TextMatchTone;
10
+ /** Matching strategy when `query` is supplied. Defaults to `'contains'`. */
11
+ readonly mode?: TextMatchMode;
12
+ } & ({
13
+ readonly query: string;
14
+ readonly ranges?: never;
15
+ } | {
16
+ readonly ranges: ReadonlyArray<MatchRange>;
17
+ readonly query?: never;
18
+ });
19
+ /** Highlights matching spans of text using `@ui-sdk/react/text-match`, for search hits or token callouts. */
20
+ export declare function TextMatch({ text, query, ranges, tone, mode }: TextMatchProps): ReactNode;
21
+ export { fuzzyScore, matchRanges, matchSegments } from '@ui-sdk/react/text-match';
22
+ export type { MatchRange, MatchSegment } from '@ui-sdk/react/text-match';
@@ -9,6 +9,7 @@ export { AgentAvatar, agentAppearance, agentAvatarColors } from './agent-avatar.
9
9
  export { CopyValue } from './copy-value.tsx';
10
10
  export { RouteLink } from './route-link.tsx';
11
11
  export { Accordion, Collapsible } from './disclosure.tsx';
12
+ export type { PanelProps } from './surfaces.tsx';
12
13
  export { Panel, SurfaceLink, Row, Stack, Columns, Divider } from './surfaces.tsx';
13
14
  export { SectionHeading } from './section-heading.tsx';
14
15
  export type { SectionHeadingProps } from './section-heading.tsx';
@@ -1,7 +1,17 @@
1
1
  import type { ComponentProps, ReactNode } from 'react';
2
2
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
3
- type PanelProps = ComponentProps<'section'> & {
3
+ export type PanelProps = Omit<ComponentProps<'section'>, 'title'> & {
4
4
  readonly isPadded?: boolean;
5
+ /** Integrated technical-sheet title bar; when set, `Panel` renders a framed header strip. */
6
+ readonly title?: string | undefined;
7
+ /** Optional short index label (such as `"A"`, `"B"`, `"01"`) shown beside `title`. */
8
+ readonly index?: string | undefined;
9
+ /** Right-aligned scope, unit, or compact actions inside the header strip. */
10
+ readonly meta?: ReactNode;
11
+ /** Provenance or footnote bar anchored at the bottom of the panel. */
12
+ readonly footer?: ReactNode;
13
+ /** Removes inner body padding so tables or full-bleed visuals share the panel's outer border. */
14
+ readonly isFlush?: boolean;
5
15
  };
6
16
  type SurfaceLinkProps = ComponentProps<'a'> & {
7
17
  readonly xstyle?: PlacementStyle;
@@ -14,7 +24,7 @@ type StackProps = ComponentProps<'div'> & {
14
24
  };
15
25
  type ColumnsProps = ComponentProps<'div'>;
16
26
  type DividerProps = ComponentProps<'hr'>;
17
- export declare function Panel({ isPadded, ...props }: PanelProps): ReactNode;
27
+ export declare function Panel({ isPadded, title, index, meta, footer, isFlush, children, ...props }: PanelProps): ReactNode;
18
28
  export declare function SurfaceLink({ xstyle, ...props }: SurfaceLinkProps): ReactNode;
19
29
  export declare function Row({ shouldSpaceBetween, ...props }: RowProps): ReactNode;
20
30
  export declare function Stack({ isCompact, ...props }: StackProps): ReactNode;
@@ -17,3 +17,5 @@ export type { SettingsRowProps } from './settings-row.tsx';
17
17
  export { SettingsRow } from './settings-row.tsx';
18
18
  export type { SettingsSectionProps } from './settings-section.tsx';
19
19
  export { SettingsSection } from './settings-section.tsx';
20
+ export type { Token, TokenInputEditorProps, TokenInputRootProps, TokenInputTokenProps, TokenInputTokenRemoveProps, TokenInputValue, TokenInputValueChangeDetails, } from './token-input.tsx';
21
+ export { defaultCodec, fromText, toLabel, TokenInput, toText } from './token-input.tsx';
@@ -0,0 +1,24 @@
1
+ import { TokenInputEditor as SdkTokenInputEditor, TokenInputToken as SdkTokenInputToken, TokenInputTokenRemove as SdkTokenInputTokenRemove } from '@ui-sdk/react/token-input';
2
+ import type { TokenInputEditorProps as SdkEditorProps, TokenInputProps as SdkTokenInputProps } from '@ui-sdk/react/token-input';
3
+ import type { ComponentProps, ReactNode } from 'react';
4
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
5
+ import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
6
+ export type TokenInputRootProps = SdkTokenInputProps;
7
+ export type TokenInputEditorProps = Omit<ComponentProps<typeof SdkTokenInputEditor>, 'children'> & SdkEditorProps & {
8
+ readonly density?: ControlDensity;
9
+ readonly xstyle?: PlacementStyle;
10
+ };
11
+ export type TokenInputTokenProps = ComponentProps<typeof SdkTokenInputToken>;
12
+ export type TokenInputTokenRemoveProps = ComponentProps<typeof SdkTokenInputTokenRemove>;
13
+ declare function TokenInputRoot(props: TokenInputRootProps): ReactNode;
14
+ declare function TokenInputEditor({ className, style, density, xstyle, placeholder, ...props }: TokenInputEditorProps): ReactNode;
15
+ declare function TokenInputToken({ className, style, ...props }: TokenInputTokenProps): ReactNode;
16
+ declare function TokenInputTokenRemove({ className, style, children, ...props }: TokenInputTokenRemoveProps): ReactNode;
17
+ export declare const TokenInput: {
18
+ Root: typeof TokenInputRoot;
19
+ Editor: typeof TokenInputEditor;
20
+ Token: typeof TokenInputToken;
21
+ TokenRemove: typeof TokenInputTokenRemove;
22
+ };
23
+ export { defaultCodec, fromText, toLabel, toText } from '@ui-sdk/react/token-input';
24
+ export type { Token, TokenInputValue, TokenInputValueChangeDetails } from '@ui-sdk/react/token-input';
@@ -10,7 +10,7 @@ export type { FeatureListLabels, FeatureListProps, FeatureListRow } from './feat
10
10
  export { FeatureList } from './feature-list.tsx';
11
11
  export type { FeatureCardData, FeatureDensity, FeatureExamples, FeatureLogit, FeatureLogits, FeatureSummary, InterpretabilityChangeDetails, } from './features.ts';
12
12
  export { featureLimits } from './features.ts';
13
- export type { LensLayer, LensTrack, LogitLensLabels, LogitLensProps } from './logit-lens.tsx';
13
+ export type { LensLayer, LensLayerGroup, LensTrack, LogitLensLabels, LogitLensProps } from './logit-lens.tsx';
14
14
  export { LogitLens } from './logit-lens.tsx';
15
15
  export type { SteeringCompletions, SteeringFeature, SteeringPanelLabels, SteeringPanelProps, } from './steering-panel.tsx';
16
16
  export { SteeringPanel } from './steering-panel.tsx';
@@ -9,6 +9,13 @@ export type LensLayer = {
9
9
  /** The layer's number, the horizontal position of its point in the curve. */
10
10
  readonly depth: number;
11
11
  };
12
+ /** A contiguous depth band (such as a loop pass or prelude/coda stage) marked along the lens curve. */
13
+ export type LensLayerGroup = {
14
+ readonly id: string;
15
+ readonly label: string;
16
+ readonly fromDepth: number;
17
+ readonly toDepth: number;
18
+ };
12
19
  /** The probability of one chosen token at one position, read at each layer in `layers` order. */
13
20
  export type LensTrack = {
14
21
  readonly id: string;
@@ -34,6 +41,8 @@ export type LogitLensProps = Pick<FigureProps, 'title' | 'description' | 'locale
34
41
  readonly cells: ReadonlyArray<TokenGridCell>;
35
42
  /** The tokens to follow through the layers, for any positions the application chose. */
36
43
  readonly tracks?: ReadonlyArray<LensTrack> | undefined;
44
+ /** Optional contiguous depth bands (such as loop passes) marked on the trajectory curve. */
45
+ readonly layerGroups?: ReadonlyArray<LensLayerGroup> | undefined;
37
46
  /** How probabilities are written. Absent writes a percent. */
38
47
  readonly valueFormat?: ValueFormat | undefined;
39
48
  /** The cell in focus, as `tokenGridCellId(layerId, columnId)`. Its position's tracks are drawn as curves. */
@@ -47,4 +56,4 @@ export type LogitLensProps = Pick<FigureProps, 'title' | 'description' | 'locale
47
56
  * that position, how the chosen tokens' probabilities change from layer to layer, while the application decodes every
48
57
  * layer and supplies the cells and tracks.
49
58
  */
50
- export declare function LogitLens({ columns, layers, cells, tracks, valueFormat, selected, onSelectedChange, labels: given, ...figure }: LogitLensProps): ReactNode;
59
+ export declare function LogitLens({ columns, layers, cells, tracks, layerGroups, valueFormat, selected, onSelectedChange, labels: given, ...figure }: LogitLensProps): ReactNode;
@@ -0,0 +1,43 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ValueFormat } from '../../../charts/src/index.ts';
3
+ export type FindingStatus = 'supported' | 'mixed' | 'falsified' | 'open';
4
+ export type FindingMetric = {
5
+ readonly label: string;
6
+ readonly value: number | null;
7
+ readonly format: ValueFormat;
8
+ readonly tone?: 'neutral' | 'positive' | 'warning' | 'negative' | undefined;
9
+ };
10
+ export type FindingSource = {
11
+ readonly id: string;
12
+ readonly label: string;
13
+ readonly href?: string | undefined;
14
+ readonly summary?: string | undefined;
15
+ };
16
+ export type FindingCardLabels = {
17
+ readonly limitation: string;
18
+ readonly details: string;
19
+ readonly sources: string;
20
+ readonly statusLabels: Readonly<Record<FindingStatus, string>>;
21
+ };
22
+ export type FindingCardProps = {
23
+ readonly title: string;
24
+ readonly claim: string;
25
+ readonly locale: string;
26
+ readonly status: FindingStatus;
27
+ readonly index?: string | undefined;
28
+ readonly limitation?: string | undefined;
29
+ readonly metrics?: ReadonlyArray<FindingMetric> | undefined;
30
+ readonly sources?: ReadonlyArray<FindingSource> | undefined;
31
+ readonly author?: string | undefined;
32
+ readonly recordedAt?: string | undefined;
33
+ readonly recordedLabel?: string | undefined;
34
+ /** Optional full methodology, notes, or raw markdown disclosed on demand. */
35
+ readonly details?: ReactNode;
36
+ readonly actions?: ReactNode;
37
+ readonly labels?: Partial<FindingCardLabels> | undefined;
38
+ };
39
+ /**
40
+ * A framed scientific evidence card: headline claim, explicit limitation, declared metric chips, hover-previewable
41
+ * citations, and optional methodology disclosed on demand. Composes Elements families with zero custom SVG.
42
+ */
43
+ export declare function FindingCard({ title, claim, locale, status, index, limitation, metrics, sources, author, recordedAt, recordedLabel, details, actions, labels: given, }: FindingCardProps): ReactNode;
@@ -0,0 +1,8 @@
1
+ export type { FindingCardLabels, FindingCardProps, FindingMetric, FindingSource, FindingStatus, } from './finding-card.tsx';
2
+ export { FindingCard } from './finding-card.tsx';
3
+ export type { MilestoneKind, MilestonePathLabels, MilestonePathProps, ResearchMilestone } from './milestone-path.tsx';
4
+ export { MilestonePath } from './milestone-path.tsx';
5
+ export type { SpecimenDiffLabels, SpecimenDiffProps, SpecimenDiffRow, SpecimenFilter, SpecimenOutcome, } from './specimen-diff.tsx';
6
+ export { SpecimenDiff } from './specimen-diff.tsx';
7
+ export type { WorkHeartbeatLabels, WorkHeartbeatProps, WorkHeartbeatState, WorkProgress, WorkReportItem, } from './work-heartbeat.tsx';
8
+ export { WorkHeartbeat } from './work-heartbeat.tsx';
@@ -0,0 +1,36 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { FigureProps, FigureSelectionProps, ValueFormat } from '../../../charts/src/index.ts';
3
+ export type MilestoneKind = 'baseline' | 'result' | 'breakthrough' | 'counterexample' | 'decision';
4
+ export type ResearchMilestone = {
5
+ readonly id: string;
6
+ readonly parentId: string | null;
7
+ readonly label: string;
8
+ readonly kind: MilestoneKind;
9
+ readonly claim: string;
10
+ readonly limitation?: string | undefined;
11
+ readonly metric?: number | null | undefined;
12
+ readonly delta?: number | null | undefined;
13
+ readonly source?: string | undefined;
14
+ readonly wave?: string | undefined;
15
+ };
16
+ export type MilestonePathLabels = {
17
+ readonly metric: string;
18
+ readonly delta: string;
19
+ readonly limitation: string;
20
+ readonly source: string;
21
+ readonly selectHint: string;
22
+ readonly empty: string;
23
+ readonly kinds: Readonly<Record<MilestoneKind, string>>;
24
+ };
25
+ export type MilestonePathProps = Pick<FigureProps, 'title' | 'description' | 'locale' | 'status' | 'source' | 'transforms'> & FigureSelectionProps & {
26
+ readonly milestones: ReadonlyArray<ResearchMilestone>;
27
+ readonly valueLabel: string;
28
+ readonly valueFormat: ValueFormat;
29
+ readonly deltaFormat?: ValueFormat | undefined;
30
+ readonly labels?: Partial<MilestonePathLabels> | undefined;
31
+ };
32
+ /**
33
+ * A branching progression of research milestones: baselines, breakthroughs, falsified counterexamples, and decisions
34
+ * composed from `TreeDiagram` with a linked evidence inspection panel. Draws no SVG of its own.
35
+ */
36
+ export declare function MilestonePath({ milestones, valueLabel, valueFormat, deltaFormat, selected, onSelectedChange, labels: given, ...figure }: MilestonePathProps): ReactNode;
@@ -0,0 +1,41 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { FigureProps } from '../../../charts/src/index.ts';
3
+ export type SpecimenOutcome = 'gained' | 'regressed' | 'both_pass' | 'both_fail';
4
+ export type SpecimenFilter = 'all' | SpecimenOutcome;
5
+ export type SpecimenDiffRow = {
6
+ readonly id: string;
7
+ readonly prompt: string;
8
+ readonly family: string;
9
+ readonly expected: string;
10
+ readonly baselineOutput: string;
11
+ readonly candidateOutput: string;
12
+ readonly outcome: SpecimenOutcome;
13
+ };
14
+ export type SpecimenDiffLabels = {
15
+ readonly breakdownTitle: string;
16
+ readonly all: string;
17
+ readonly gained: string;
18
+ readonly regressed: string;
19
+ readonly bothPass: string;
20
+ readonly bothFail: string;
21
+ readonly specimen: string;
22
+ readonly expected: string;
23
+ readonly baseline: string;
24
+ readonly candidate: string;
25
+ readonly outcome: string;
26
+ readonly empty: string;
27
+ };
28
+ export type SpecimenDiffProps = Pick<FigureProps, 'title' | 'description' | 'locale' | 'status' | 'source'> & {
29
+ readonly rows: ReadonlyArray<SpecimenDiffRow>;
30
+ readonly baselineLabel: string;
31
+ readonly candidateLabel: string;
32
+ readonly filter: SpecimenFilter;
33
+ readonly onFilterChange: (filter: SpecimenFilter) => void;
34
+ readonly onSelectRow?: ((row: SpecimenDiffRow) => void) | undefined;
35
+ readonly labels?: Partial<SpecimenDiffLabels> | undefined;
36
+ };
37
+ /**
38
+ * Paired before/after example inspection: a `BreakdownBar` of outcome flips above a searchable specimen table that
39
+ * highlights expected targets with `TextMatch`. Composes Elements families with zero custom SVG.
40
+ */
41
+ export declare function SpecimenDiff({ rows, baselineLabel, candidateLabel, filter, onFilterChange, onSelectRow, labels: given, ...figure }: SpecimenDiffProps): ReactNode;
@@ -0,0 +1,34 @@
1
+ import type { ReactNode } from 'react';
2
+ export type WorkHeartbeatState = 'running' | 'completed' | 'blocked' | 'overdue' | 'stopped';
3
+ export type WorkProgress = {
4
+ readonly completed: number;
5
+ readonly total: number;
6
+ readonly unit: string;
7
+ };
8
+ export type WorkReportItem = {
9
+ readonly id: string;
10
+ readonly title: string;
11
+ readonly state: WorkHeartbeatState;
12
+ readonly observedAt: string;
13
+ readonly observedLabel: string;
14
+ readonly executionRef?: string | undefined;
15
+ readonly nextCheckpoint?: string | undefined;
16
+ readonly progress?: WorkProgress | undefined;
17
+ };
18
+ export type WorkHeartbeatLabels = {
19
+ readonly title: string;
20
+ readonly empty: string;
21
+ readonly nextCheckpoint: string;
22
+ readonly states: Readonly<Record<WorkHeartbeatState, string>>;
23
+ };
24
+ export type WorkHeartbeatProps = {
25
+ readonly reports: ReadonlyArray<WorkReportItem>;
26
+ readonly locale: string;
27
+ readonly title?: string | undefined;
28
+ readonly labels?: Partial<WorkHeartbeatLabels> | undefined;
29
+ };
30
+ /**
31
+ * Displays reported execution checkpoints with explicit freshness and optional finite batch progress. The application
32
+ * owns the state (including when an expired report becomes `'overdue'`); the kit never infers failure from staleness.
33
+ */
34
+ export declare function WorkHeartbeat({ reports, locale, title, labels: given }: WorkHeartbeatProps): ReactNode;
@@ -0,0 +1,8 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ export type FigureGridLayout = '2-up' | 'hero-aside' | '3-up';
3
+ export type FigureGridProps = ComponentProps<'div'> & {
4
+ /** Responsive multi-figure arrangement that collapses cleanly by container width. */
5
+ readonly layout?: FigureGridLayout;
6
+ };
7
+ /** Arranges sibling analytical figures on a responsive container-aware grid with shared spacing. */
8
+ export declare function FigureGrid({ layout, children, ...props }: FigureGridProps): ReactNode;
@@ -5,6 +5,8 @@ export type { NavigationRailLink, NavigationRailProps } from './navigation-rail.
5
5
  export { NavigationRailMenu } from './navigation-rail-menu.tsx';
6
6
  export type { NavigationRailMenuProps } from './navigation-rail-menu.tsx';
7
7
  export { DetailPage } from './detail-page.tsx';
8
+ export type { FigureGridLayout, FigureGridProps } from './figure-grid.tsx';
9
+ export { FigureGrid } from './figure-grid.tsx';
8
10
  export { FocusPage } from './focus-page.tsx';
9
11
  export { Workbench, WorkbenchScroll, WorkbenchFooter } from './workbench.tsx';
10
12
  export { ViewStack } from './view-stack.tsx';
@@ -17,4 +19,5 @@ export type { RecordPageBodyProps, RecordPageHeaderProps, RecordPageContentProps
17
19
  export { RecordPage } from './record-page.tsx';
18
20
  export type { ResizableRootProps, ResizablePaneProps, ResizableHandleProps } from './resizable.tsx';
19
21
  export { Resizable } from './resizable.tsx';
20
- export { Navigation, NavigationSection, NavigationItem, NavigationLink, SidebarLabel, SidebarFooter, } from './sidebar.tsx';
22
+ export type { SidebarBrandProps } from './sidebar.tsx';
23
+ export { Navigation, NavigationSection, NavigationItem, NavigationLink, SidebarBrand, SidebarLabel, SidebarFooter, } from './sidebar.tsx';
@@ -50,6 +50,13 @@ export declare function NavigationSection({ children, label, }: {
50
50
  }): ReactNode;
51
51
  export declare function NavigationItem({ children, icon, isSelected, shouldCloseOnActivate, onClick, className, style, ...props }: NavigationItemProps): ReactNode;
52
52
  export declare function NavigationLink({ children, icon, isSelected, onClick, className, style, ...props }: NavigationLinkProps): ReactNode;
53
+ export type SidebarBrandProps = {
54
+ readonly title: string;
55
+ readonly subtitle?: string | undefined;
56
+ readonly icon?: ReactNode;
57
+ };
58
+ /** Fits a workspace title, optional subtitle, and optional icon cleanly inside the 48px sidebar header. */
59
+ export declare function SidebarBrand({ title, subtitle, icon }: SidebarBrandProps): ReactNode;
53
60
  export declare function SidebarLabel({ children, shouldGrow }: SidebarLabelProps): ReactNode;
54
61
  export declare function SidebarFooter({ children, layout }: SidebarFooterProps): ReactNode;
55
62
  export declare function SidebarToggle(): ReactNode;